diff --git a/matchbox-engine/pom.xml b/matchbox-engine/pom.xml index 9954c899108..d9a669b77d3 100644 --- a/matchbox-engine/pom.xml +++ b/matchbox-engine/pom.xml @@ -5,7 +5,7 @@ matchbox matchbox.health - 3.2.0-SNAPSHOT + 3.2.0 ../pom.xml diff --git a/matchbox-frontend/package.json b/matchbox-frontend/package.json index 5d4c4692ebf..16bf9921a2e 100644 --- a/matchbox-frontend/package.json +++ b/matchbox-frontend/package.json @@ -1,6 +1,6 @@ { "name": "matchboxv3", - "version": "3.1.0", + "version": "3.2.0", "license": "MIT", "scripts": { "ng": "ng", diff --git a/matchbox-server/pom.xml b/matchbox-server/pom.xml index bdf8907e97a..3cc550ba4e2 100644 --- a/matchbox-server/pom.xml +++ b/matchbox-server/pom.xml @@ -6,13 +6,13 @@ matchbox matchbox.health - 3.2.0-SNAPSHOT + 3.2.0 ../pom.xml matchbox.health matchbox-server - 3.2.0-SNAPSHOT + 3.2.0 matchbox-server diff --git a/matchbox-server/src/main/resources/static/3rdpartylicenses.txt b/matchbox-server/src/main/resources/static/3rdpartylicenses.txt index 7bcf8716cb8..0f834023089 100644 --- a/matchbox-server/src/main/resources/static/3rdpartylicenses.txt +++ b/matchbox-server/src/main/resources/static/3rdpartylicenses.txt @@ -101,31 +101,6 @@ MIT @ngx-translate/http-loader MIT -abort-controller -MIT -MIT License - -Copyright (c) 2017 Toru Nagashima - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ace-builds BSD-3-Clause Copyright (c) 2010, Ajax.org B.V. @@ -232,21 +207,22 @@ debug MIT (The MIT License) -Copyright (c) 2014 TJ Holowaychuk +Copyright (c) 2014-2017 TJ Holowaychuk +Copyright (c) 2018-2021 Josh Junon -Permission is hereby granted, free of charge, to any person obtaining a copy of this software -and associated documentation files (the 'Software'), to deal in the Software without restriction, -including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +Permission is hereby granted, free of charge, to any person obtaining a copy of this software +and associated documentation files (the 'Software'), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -255,25 +231,13 @@ decode-uri-component MIT The MIT License (MIT) -Copyright (c) Sam Verschueren (github.com/SamVerschueren) +Copyright (c) 2017, Sam Verschueren (github.com/SamVerschueren) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. es6-promise @@ -299,32 +263,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -event-target-shim -MIT -The MIT License (MIT) - -Copyright (c) 2015 Toru Nagashima - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - fast-sha256 Unlicense This is free and unencumbered software released into the public domain. @@ -453,6 +391,31 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +filter-obj +MIT +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + highlight.js BSD-3-Clause BSD 3-Clause License @@ -636,6 +599,31 @@ SOFTWARE. ngx-highlightjs MIT +node-abort-controller +MIT +MIT License + +Copyright (c) 2019 Steve Faulkner + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + pako (MIT AND Zlib) (The MIT License) diff --git a/matchbox-server/src/main/resources/static/index.html b/matchbox-server/src/main/resources/static/index.html index 5c471d1bff6..0e3a3edd29d 100644 --- a/matchbox-server/src/main/resources/static/index.html +++ b/matchbox-server/src/main/resources/static/index.html @@ -1,14 +1,247 @@ - - + + + + + + matchbox - - - - - + + + + + + + + - - - \ No newline at end of file + + + + + diff --git a/matchbox-server/src/main/resources/static/main.86aade0d1ffaab80.js b/matchbox-server/src/main/resources/static/main.86aade0d1ffaab80.js new file mode 100644 index 00000000000..75408f48474 --- /dev/null +++ b/matchbox-server/src/main/resources/static/main.86aade0d1ffaab80.js @@ -0,0 +1,108474 @@ +(self.webpackChunkmatchbox_formfiller = + self.webpackChunkmatchbox_formfiller || []).push([ + [179], + { + 5424: (ye, j) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.Ucum = void 0), + (j.Ucum = { + dimLen_: 7, + validOps_: [".", "/"], + codeSep_: ": ", + valMsgStart_: "Did you mean ", + valMsgEnd_: "?", + cnvMsgStart_: "We assumed you meant ", + cnvMsgEnd_: ".", + openEmph_: " ->", + closeEmph_: "<- ", + openEmphHTML_: '', + closeEmphHTML_: "", + bracesMsg_: + "FYI - annotations (text in curly braces {}) are ignored, except that an annotation without a leading symbol implies the default unit 1 (the unity).", + needMoleWeightMsg_: + "Did you wish to convert between mass and moles? The molecular weight of the substance represented by the units is required to perform the conversion.", + csvCols_: { + "case-sensitive code": "csCode_", + "LOINC property": "loincProperty_", + "name (display)": "name_", + synonyms: "synonyms_", + source: "source_", + category: "category_", + Guidance: "guidance_", + }, + inputKey_: "case-sensitive code", + specUnits_: { + "B[10.nV]": "specialUnitOne", + "[m/s2/Hz^(1/2)]": "specialUnitTwo", + }, + }); + }, + 6227: (ye, j, p) => { + "use strict"; + j.R = void 0; + var f = p(5424), + _ = p(5984); + class m { + constructor(d) { + if (0 === f.Ucum.dimLen_) + throw new Error( + "Dimension.setDimensionLen must be called before Dimension constructor" + ); + if (null == d) this.assignZero(); + else if (d instanceof Array) { + if (d.length !== f.Ucum.dimLen_) + throw new Error( + `Parameter error, incorrect length of vector passed to Dimension constructor, vector = ${JSON.stringify( + d + )}` + ); + this.dimVec_ = []; + for (let u = 0; u < f.Ucum.dimLen_; u++) this.dimVec_.push(d[u]); + } else if (_(d)) { + if (d < 0 || d >= f.Ucum.dimLen_) + throw new Error( + "Parameter error, invalid element number specified for Dimension constructor" + ); + this.assignZero(), (this.dimVec_[d] = 1); + } + } + setElementAt(d, u) { + if (!_(d) || d < 0 || d >= f.Ucum.dimLen_) + throw new Error( + `Dimension.setElementAt called with an invalid index position (${d})` + ); + this.dimVec_ || this.assignZero(), + null == u && (u = 1), + (this.dimVec_[d] = u); + } + getElementAt(d) { + if (!_(d) || d < 0 || d >= f.Ucum.dimLen_) + throw new Error( + `Dimension.getElementAt called with an invalid index position (${d})` + ); + let u = null; + return this.dimVec_ && (u = this.dimVec_[d]), u; + } + getProperty(d) { + return this["_" === d.charAt(d.length - 1) ? d : d + "_"]; + } + toString() { + let d = null; + return this.dimVec_ && (d = "[" + this.dimVec_.join(", ") + "]"), d; + } + add(d) { + if (!d instanceof m) + throw new Error( + `Dimension.add called with an invalid parameter - ${typeof d} instead of a Dimension object` + ); + if (this.dimVec_ && d.dimVec_) + for (let u = 0; u < f.Ucum.dimLen_; u++) + this.dimVec_[u] += d.dimVec_[u]; + return this; + } + sub(d) { + if (!d instanceof m) + throw new Error( + `Dimension.sub called with an invalid parameter - ${typeof d} instead of a Dimension object` + ); + if (this.dimVec_ && d.dimVec_) + for (let u = 0; u < f.Ucum.dimLen_; u++) + this.dimVec_[u] -= d.dimVec_[u]; + return this; + } + minus() { + if (this.dimVec_) + for (let d = 0; d < f.Ucum.dimLen_; d++) + this.dimVec_[d] = -this.dimVec_[d]; + return this; + } + mul(d) { + if (!_(d)) + throw new Error( + `Dimension.sub called with an invalid parameter - ${typeof dim2} instead of a number` + ); + if (this.dimVec_) + for (let u = 0; u < f.Ucum.dimLen_; u++) this.dimVec_[u] *= d; + return this; + } + equals(d) { + if (!d instanceof m) + throw new Error( + `Dimension.equals called with an invalid parameter - ${typeof d} instead of a Dimension object` + ); + let u = !0, + h = d.dimVec_; + if (this.dimVec_ && h) + for (let r = 0; u && r < f.Ucum.dimLen_; r++) + u = this.dimVec_[r] === h[r]; + else u = null === this.dimVec_ && null === h; + return u; + } + assignDim(d) { + if (!d instanceof m) + throw new Error( + `Dimension.assignDim called with an invalid parameter - ${typeof d} instead of a Dimension object` + ); + if (null === d.dimVec_) this.dimVec_ = null; + else { + null === this.dimVec_ && (this.dimVec_ = []); + for (let u = 0; u < f.Ucum.dimLen_; u++) + this.dimVec_[u] = d.dimVec_[u]; + } + return this; + } + assignZero() { + null == this.dimVec_ && (this.dimVec_ = []); + for (let d = 0; d < f.Ucum.dimLen_; d++) this.dimVec_.push(0); + return this; + } + isZero() { + let d = null !== this.dimVec_; + if (this.dimVec_) + for (let u = 0; d && u < f.Ucum.dimLen_; u++) + d = 0 === this.dimVec_[u]; + return d; + } + isNull() { + return null === this.dimVec_; + } + clone() { + let d = new m(); + return d.assignDim(this), d; + } + } + j.R = m; + }, + 4784: (ye, j) => { + "use strict"; + j.DP = function (r) { + const o = r && r.config; + if (o) { + if (o.length && r.data) { + const i = m(o); + return r.data.map(d.bind(null, i)); + } + return r.data; + } + return r; + }; + function m(r) { + return r.map((o) => (Array.isArray(o) ? o : [o])); + } + function d(r, o) { + let i = {}; + return ( + r.forEach((c, l) => { + let g = i; + for (let b = 0; b < c.length - 1; b++) g = g[c[b]] = g[c[b]] || {}; + g[c[c.length - 1]] = o[l]; + }), + i + ); + } + }, + 3355: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.Prefix = void 0), + p(5424), + (j.Prefix = class { + constructor(m) { + if ( + null == m.code_ || + null == m.name_ || + null == m.value_ || + void 0 === m.exp_ + ) + throw new Error( + "Prefix constructor called missing one or more parameters. Prefix codes (cs or ci), name, value and exponent must all be specified and all but the exponent must not be null." + ); + (this.code_ = m.code_), + (this.ciCode_ = m.ciCode_), + (this.name_ = m.name_), + (this.printSymbol_ = m.printSymbol_), + (this.value_ = + "string" == typeof m.value_ ? parseFloat(m.value_) : m.value_), + (this.exp_ = m.exp_); + } + getValue() { + return this.value_; + } + getCode() { + return this.code_; + } + getCiCode() { + return this.ciCode_; + } + getName() { + return this.name_; + } + getPrintSymbol() { + return this.printSymbol_; + } + getExp() { + return this.exp_; + } + equals(m) { + return ( + this.code_ === m.code_ && + this.ciCode_ === m.ciCode_ && + this.name_ === m.name_ && + this.printSymbol_ === m.printSymbol_ && + this.value_ === m.value_ && + this.exp_ === m.exp_ + ); + } + }); + }, + 5361: (ye, j) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.PrefixTables = j.PrefixTablesFactory = void 0); + class p { + constructor() { + (this.byCode_ = {}), (this.byValue_ = {}); + } + prefixCount() { + return Object.keys(this.byCode_).length; + } + allPrefixesByValue() { + let m = "", + s = Object.keys(this.byValue_), + d = s.length; + for (let u = 0; u < d; u++) { + let h = this.getPrefixByValue(s[u]); + m += h.code_ + "," + h.name_ + ",," + h.value_ + "\r\n"; + } + return m; + } + allPrefixesByCode() { + let m = [], + s = Object.keys(this.byCode_); + s.sort(); + let d = s.length; + for (let u = 0; u < d; u++) m.push(this.getPrefixByCode(s[u])); + return m; + } + add(m) { + (this.byCode_[m.getCode()] = m), (this.byValue_[m.getValue()] = m); + } + isDefined(m) { + return null != this.byCode_[m]; + } + getPrefixByCode(m) { + return this.byCode_[m]; + } + getPrefixByValue(m) { + return this.byValue_[m]; + } + } + j.PrefixTablesFactory = p; + var n = new p(); + j.PrefixTables = { + getInstance: function () { + return n; + }, + }; + }, + 8287: (ye, j) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.default = void 0); + var n = new (class { + constructor() { + (this.funcs = {}), + (this.funcs.cel = { + cnvTo: function (_) { + return _ - 273.15; + }, + cnvFrom: function (_) { + return _ + 273.15; + }, + }), + (this.funcs.degf = { + cnvTo: function (_) { + return _ - 459.67; + }, + cnvFrom: function (_) { + return _ + 459.67; + }, + }), + (this.funcs.degre = { + cnvTo: function (_) { + return _ - 273.15; + }, + cnvFrom: function (_) { + return _ + 273.15; + }, + }), + (this.funcs.ph = { + cnvTo: function (_) { + return -Math.log(_) / Math.LN10; + }, + cnvFrom: function (_) { + return Math.pow(10, -_); + }, + }), + (this.funcs.ln = { + cnvTo: function (_) { + return Math.log(_); + }, + cnvFrom: function (_) { + return Math.exp(_); + }, + }), + (this.funcs["2ln"] = { + cnvTo: function (_) { + return 2 * Math.log(_); + }, + cnvFrom: function (_) { + return Math.exp(_ / 2); + }, + }), + (this.funcs.lg = { + cnvTo: function (_) { + return Math.log(_) / Math.LN10; + }, + cnvFrom: function (_) { + return Math.pow(10, _); + }, + }), + (this.funcs["10lg"] = { + cnvTo: function (_) { + return (10 * Math.log(_)) / Math.LN10; + }, + cnvFrom: function (_) { + return Math.pow(10, _ / 10); + }, + }), + (this.funcs["20lg"] = { + cnvTo: function (_) { + return (20 * Math.log(_)) / Math.LN10; + }, + cnvFrom: function (_) { + return Math.pow(10, _ / 20); + }, + }), + (this.funcs["2lg"] = { + cnvTo: function (_) { + return (2 * Math.log(_)) / Math.LN10; + }, + cnvFrom: function (_) { + return Math.pow(10, _ / 2); + }, + }), + (this.funcs.lgtimes2 = this.funcs["2lg"]), + (this.funcs.ld = { + cnvTo: function (_) { + return Math.log(_) / Math.LN2; + }, + cnvFrom: function (_) { + return Math.pow(2, _); + }, + }), + (this.funcs["100tan"] = { + cnvTo: function (_) { + return 100 * Math.tan(_); + }, + cnvFrom: function (_) { + return Math.atan(_ / 100); + }, + }), + (this.funcs.tanTimes100 = this.funcs["100tan"]), + (this.funcs.sqrt = { + cnvTo: function (_) { + return Math.sqrt(_); + }, + cnvFrom: function (_) { + return _ * _; + }, + }), + (this.funcs.inv = { + cnvTo: function (_) { + return 1 / _; + }, + cnvFrom: function (_) { + return 1 / _; + }, + }), + (this.funcs.hpX = { + cnvTo: function (_) { + return -this.funcs.lg(_); + }, + cnvFrom: function (_) { + return Math.pow(10, -_); + }, + }), + (this.funcs.hpC = { + cnvTo: function (_) { + return -this.func.ln(_) / this.funcs.ln(100); + }, + cnvFrom: function (_) { + return Math.pow(100, -_); + }, + }), + (this.funcs.hpM = { + cnvTo: function (_) { + return -this.funcs.ln(_) / this.funcs.ln(1e3); + }, + cnvFrom: function (_) { + return Math.pow(1e3, -_); + }, + }), + (this.funcs.hpQ = { + cnvTo: function (_) { + return -this.funcs.ln(_) / this.funcs.ln(5e4); + }, + cnvFrom: function (_) { + return Math.pow(5e4, -_); + }, + }); + } + forName(_) { + _ = _.toLowerCase(); + let m = this.funcs[_]; + if (null === m) + throw new Error(`Requested function ${_} is not defined`); + return m; + } + isDefined(_) { + return (_ = _.toLowerCase()), null !== this.funcs[_]; + } + })(); + j.default = n; + }, + 4693: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.isNumericString = function (s) { + let d = "" + s; + return !isNaN(d) && !isNaN(parseFloat(d)); + }), + (j.isIntegerUnit = function (s) { + return /^\d+$/.test(s); + }), + (j.getSynonyms = function (s) { + let d = {}, + h = {}; + if (((h = n.getInstance().getUnitBySynonym(s)), h.units)) { + d.status = "succeeded"; + let r = h.units.length; + d.units = []; + for (let o = 0; o < r; o++) { + let i = h.units[o]; + d.units[o] = { + code: i.csCode_, + name: i.name_, + guidance: i.guidance_, + }; + } + } else (d.status = h.status), (d.msg = h.msg); + return d; + }); + var n = p(8334).UnitTables; + }, + 6395: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.ucumJsonDefs = j.UcumJsonDefs = void 0); + var n = p(3355), + f = p(5361), + _ = p(8897), + m = p(8334), + s = p(4784).DP; + class d { + loadJsonDefs() { + const r = p(8210); + if ( + ((r.prefixes = s(r.prefixes)), + (r.units = s(r.units)), + 0 === m.UnitTables.getInstance().unitsCount()) + ) { + let o = f.PrefixTables.getInstance(), + i = r.prefixes, + c = i.length; + for (let y = 0; y < c; y++) { + let x = new n.Prefix(i[y]); + o.add(x); + } + let l = m.UnitTables.getInstance(), + g = r.units, + b = g.length; + for (let y = 0; y < b; y++) { + let x = new _.Unit(g[y]); + l.addUnit(x); + } + } + } + } + j.UcumJsonDefs = d; + var u = new d(); + j.ucumJsonDefs = u; + }, + 4854: (ye, j, p) => { + "use strict"; + j.n = void 0; + var f = p(6395), + _ = (function (o) { + if (o && o.__esModule) return o; + if (null === o || ("object" != typeof o && "function" != typeof o)) + return { default: o }; + var i = m(); + if (i && i.has(o)) return i.get(o); + var c = {}, + l = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var g in o) + if (Object.prototype.hasOwnProperty.call(o, g)) { + var b = l ? Object.getOwnPropertyDescriptor(o, g) : null; + b && (b.get || b.set) + ? Object.defineProperty(c, g, b) + : (c[g] = o[g]); + } + return (c.default = o), i && i.set(o, c), c; + })(p(4693)); + function m() { + if ("function" != typeof WeakMap) return null; + var o = new WeakMap(); + return ( + (m = function () { + return o; + }), + o + ); + } + var d = p(5424).Ucum, + u = p(8334).UnitTables, + h = p(5744).T; + class r { + constructor() { + 0 === u.getInstance().unitsCount() && f.ucumJsonDefs.loadJsonDefs(), + (this.uStrParser_ = h.getInstance()); + } + useHTMLInMessages(i) { + void 0 === i && (i = !0), this.uStrParser_.useHTMLInMessages(i); + } + useBraceMsgForEachString(i) { + void 0 === i && (i = !0), + this.uStrParser_.useBraceMsgForEachString(i); + } + validateUnitString(i, c, l) { + void 0 === c && (c = !1), void 0 === l && (l = "validate"); + let g = this.getSpecifiedUnit(i, l, c), + b = g.unit, + y = {}; + return ( + (y = b + ? { + status: g.origString === i ? "valid" : "invalid", + ucumCode: g.origString, + unit: { + code: b.csCode_, + name: b.name_, + guidance: b.guidance_, + }, + } + : { + status: + g.origString && null !== g.origString ? "invalid" : "error", + ucumCode: null, + }), + g.suggestions && (y.suggestions = g.suggestions), + (y.msg = g.retMsg), + y + ); + } + convertUnitTo(i, c, l, g, b) { + void 0 === g && (g = !1), void 0 === b && (b = null); + let y = { status: "failed", toVal: null, msg: [] }; + if ( + (i && (i = i.trim()), + (!i || "" == i) && + ((y.status = "error"), + y.msg.push('No "from" unit expression specified.')), + (null === c || + isNaN(c) || + ("number" != typeof c && !_.isNumericString(c))) && + ((y.status = "error"), + y.msg.push( + 'No "from" value, or an invalid "from" value, was specified.' + )), + l && (l = l.trim()), + (!l || "" == l) && + ((y.status = "error"), + y.msg.push('No "to" unit expression specified.')), + "error" !== y.status) + ) + try { + let x = null, + T = this.getSpecifiedUnit(i, "convert", g); + (x = T.unit), + T.retMsg && (y.msg = y.msg.concat(T.retMsg)), + T.suggestions && + ((y.suggestions = {}), (y.suggestions.from = T.suggestions)), + x || + y.msg.push( + `Unable to find a unit for ${i}, so no conversion could be performed.` + ); + let O = null; + if ( + ((T = this.getSpecifiedUnit(l, "convert", g)), + (O = T.unit), + T.retMsg && (y.msg = y.msg.concat(T.retMsg)), + T.suggestions && + (y.suggestions || (y.suggestions = {}), + (y.suggestions.to = T.suggestions)), + O || + y.msg.push( + `Unable to find a unit for ${l}, so no conversion could be performed.` + ), + x && O) + ) + try { + if (b) { + if (0 !== x.moleExp_ && 0 !== O.moleExp_) + throw new Error( + "A molecular weight was specified but a mass <-> mole conversion cannot be executed for two mole-based units. No conversion was attempted." + ); + if (0 === x.moleExp_ && 0 === O.moleExp_) + throw new Error( + "A molecular weight was specified but a mass <-> mole conversion cannot be executed when neither unit is mole-based. No conversion was attempted." + ); + if (!x.isMoleMassCommensurable(O)) + throw new Error( + `Sorry. ${i} cannot be converted to ${l}.` + ); + y.toVal = + 0 !== x.moleExp_ + ? x.convertMolToMass(c, O, b) + : x.convertMassToMol(c, O, b); + } else y.toVal = O.convertFrom(c, x); + (y.status = "succeeded"), (y.fromUnit = x), (y.toUnit = O); + } catch (M) { + (y.status = "failed"), y.msg.push(M.message); + } + } catch (x) { + (y.status = + x.message == d.needMoleWeightMsg_ ? "failed" : "error"), + y.msg.push(x.message); + } + return y; + } + checkSynonyms(i) { + let c = {}; + return ( + null == i + ? ((c.status = "error"), + (c.msg = "No term specified for synonym search.")) + : (c = _.getSynonyms(i)), + c + ); + } + getSpecifiedUnit(i, c, l) { + void 0 === l && (l = !1); + let g = { retMsg: [] }; + if (i) { + let b = u.getInstance(); + i = i.trim(); + let y = b.getUnitByCode(i); + if (y) (g.unit = y), (g.origString = i); + else + try { + let x = this.uStrParser_.parseString(i, c, l); + (g.unit = x[0]), + (g.origString = x[1]), + x[2] && (g.retMsg = x[2]), + (g.suggestions = x[3]); + } catch (x) { + console.log( + `Unit requested for unit string ${i}.request unsuccessful; error thrown = ` + + x.message + ), + g.retMsg.unshift(`${i} is not a valid unit. ${x.message}`); + } + } else g.retMsg.push("No unit string specified."); + return g; + } + commensurablesList(i) { + let c = [], + l = null, + g = this.getSpecifiedUnit(i, "validate", !1), + b = g.unit; + if ((g.retMsg.length > 0 && (c = g.retMsg), b)) { + let y = null, + x = b.getProperty("dim_"); + if (x) { + try { + y = x.getProperty("dimVec_"); + } catch (T) { + c.push(T.message), + "Dimension does not have requested property(dimVec_)" === + T.message && (y = null); + } + y && (l = u.getInstance().getUnitsByDimension(y)); + } else c.push("No commensurable units were found for " + i); + } else c.push(`Could not find unit ${i}.`); + return [l, c]; + } + } + (j.n = r), + (r.getInstance = function () { + return new r(); + }); + }, + 1334: (ye, j, p) => { + "use strict"; + (j.ng = void 0), p(5424); + var _ = p(4854).n; + (j.ng = _), p(8334); + }, + 8897: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), (j.Unit = void 0); + var i, + n = (i = p(8287)) && i.__esModule ? i : { default: i }, + f = (function (i) { + if (i && i.__esModule) return i; + if (null === i || ("object" != typeof i && "function" != typeof i)) + return { default: i }; + var c = _(); + if (c && c.has(i)) return c.get(i); + var l = {}, + g = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var b in i) + if (Object.prototype.hasOwnProperty.call(i, b)) { + var y = g ? Object.getOwnPropertyDescriptor(i, b) : null; + y && (y.get || y.set) + ? Object.defineProperty(l, b, y) + : (l[b] = i[b]); + } + return (l.default = i), c && c.set(i, l), l; + })(p(4693)); + function _() { + if ("function" != typeof WeakMap) return null; + var i = new WeakMap(); + return ( + (_ = function () { + return i; + }), + i + ); + } + var h, + d = p(5424).Ucum, + u = p(6227).R, + r = p(5984); + class o { + constructor(c = {}) { + (this.isBase_ = c.isBase_ || !1), + (this.name_ = c.name_ || ""), + (this.csCode_ = c.csCode_ || ""), + (this.ciCode_ = c.ciCode_ || ""), + (this.property_ = c.property_ || ""), + (this.magnitude_ = c.magnitude_ || 1), + (this.dim_ = + null == c.dim_ + ? new u() + : void 0 !== c.dim_.dimVec_ + ? new u(c.dim_.dimVec_) + : c.dim_ instanceof u + ? c.dim_ + : c.dim_ instanceof Array || r(c.dim_) + ? new u(c.dim_) + : new u()), + (this.printSymbol_ = c.printSymbol_ || null), + (this.class_ = c.class_ || null), + (this.isMetric_ = c.isMetric_ || !1), + (this.variable_ = c.variable_ || null), + (this.cnv_ = c.cnv_ || null), + (this.cnvPfx_ = c.cnvPfx_ || 1), + (this.isSpecial_ = c.isSpecial_ || !1), + (this.isArbitrary_ = c.isArbitrary_ || !1), + (this.moleExp_ = c.moleExp_ || 0), + (this.synonyms_ = c.synonyms_ || null), + (this.source_ = c.source_ || null), + (this.loincProperty_ = c.loincProperty_ || null), + (this.category_ = c.category_ || null), + (this.guidance_ = c.guidance_ || null), + (this.csUnitString_ = c.csUnitString_ || null), + (this.ciUnitString_ = c.ciUnitString_ || null), + (this.baseFactorStr_ = c.baseFactorStr_ || null), + (this.baseFactor_ = c.baseFactor_ || null), + (this.defError_ = c.defError_ || !1); + } + assignUnity() { + return ( + (this.name_ = ""), + (this.magnitude_ = 1), + this.dim_ || (this.dim_ = new u()), + this.dim_.assignZero(), + (this.cnv_ = null), + (this.cnvPfx_ = 1), + this + ); + } + assignVals(c) { + for (let l in c) { + let g = "_" === !l.charAt(l.length - 1) ? l + "_" : l; + if (!this.hasOwnProperty(g)) + throw new Error( + `Parameter error; ${l} is not a property of a Unit` + ); + this[g] = c[l]; + } + } + clone() { + let c = new o(); + return ( + Object.getOwnPropertyNames(this).forEach((l) => { + "dim_" === l + ? (c.dim_ = this.dim_ ? this.dim_.clone() : null) + : (c[l] = this[l]); + }), + c + ); + } + assign(c) { + Object.getOwnPropertyNames(c).forEach((l) => { + "dim_" === l + ? (this.dim_ = c.dim_ ? c.dim_.clone() : null) + : (this[l] = c[l]); + }); + } + equals(c) { + return ( + this.magnitude_ === c.magnitude_ && + this.cnv_ === c.cnv_ && + this.cnvPfx_ === c.cnvPfx_ && + ((null === this.dim_ && null === c.dim_) || + this.dim_.equals(c.dim_)) + ); + } + fullEquals(c) { + let l = Object.keys(this).sort(), + g = Object.keys(c).sort(), + b = l.length, + y = b === g.length; + for (let x = 0; x < b && y; x++) + y = + l[x] === g[x] && + ("dim_" === l[x] + ? this.dim_.equals(c.dim_) + : this[l[x]] === c[l[x]]); + return y; + } + getProperty(c) { + return this["_" === c.charAt(c.length - 1) ? c : c + "_"]; + } + convertFrom(c, l) { + let g = 0; + if (this.isArbitrary_) + throw new Error(`Attempt to convert arbitrary unit ${this.name_}`); + if (l.isArbitrary_) + throw new Error(`Attempt to convert to arbitrary unit ${l.name_}`); + if (l.dim_ && this.dim_ && !l.dim_.equals(this.dim_)) + throw this.isMoleMassCommensurable(l) + ? new Error(d.needMoleWeightMsg_) + : new Error( + `Sorry. ${l.csCode_} cannot be converted to ${this.csCode_}.` + ); + if (l.dim_ && (!this.dim_ || this.dim_.isNull())) + throw new Error( + `Sorry. ${l.csCode_} cannot be converted to ${this.csCode_}.` + ); + if (this.dim_ && (!l.dim_ || l.dim_.isNull())) + throw new Error( + `Sorry. ${l.csCode_} cannot be converted to ${this.csCode_}.` + ); + let b = l.cnv_, + y = l.magnitude_; + if (b === this.cnv_) g = (c * y) / this.magnitude_; + else { + let x = 0; + (x = + null != b + ? n.default.forName(b).cnvFrom(c * l.cnvPfx_) * y + : c * y), + (g = + null != this.cnv_ + ? n.default.forName(this.cnv_).cnvTo(x / this.magnitude_) / + this.cnvPfx_ + : x / this.magnitude_); + } + return g; + } + convertTo(c, l) { + return l.convertFrom(c, this); + } + convertCoherent(c) { + return ( + null !== this.cnv_ && + (c = this.cnv_.f_from(c / this.cnvPfx_) * this.magnitude_), + c + ); + } + mutateCoherent(c) { + (c = this.convertCoherent(c)), + (this.magnitude_ = 1), + (this.cnv_ = null), + (this.cnvPfx_ = 1), + (this.name_ = ""); + for (let l = 0, g = u.getMax(); l < g; l++) { + let b = this.dim_.getElementAt(l), + x = this._getUnitTables().getUnitsByDimension(new u(l)); + if (null == x) + throw new Error(`Can't find base unit for dimension ${l}`); + this.name_ = x.name + b; + } + return c; + } + convertMassToMol(c, l, g) { + let b = (this.magnitude_ * c) / g, + x = this._getUnitTables().getUnitByCode("mol").magnitude_; + return b / (l.magnitude_ / x); + } + convertMolToMass(c, l, g) { + let y = this._getUnitTables().getUnitByCode("mol").magnitude_; + return ((this.magnitude_ / y) * c * g) / l.magnitude_; + } + mutateRatio(c) { + return null == this.cnv_ ? this.mutateCoherent(c) : c; + } + multiplyThis(c) { + let l = this.clone(); + null != l.cnv_ ? (l.cnvPfx_ *= c) : (l.magnitude_ *= c); + let g = c.toString(); + return ( + (l.name_ = this._concatStrs(g, "*", this.name_, "[", "]")), + (l.csCode_ = this._concatStrs(g, ".", this.csCode_, "(", ")")), + (l.ciCode_ = this._concatStrs(g, ".", this.ciCode_, "(", ")")), + (l.printSymbol_ = this._concatStrs( + g, + ".", + this.printSymbol_, + "(", + ")" + )), + l + ); + } + multiplyThese(c) { + var l = this.clone(); + if (null != l.cnv_) { + if (null != c.cnv_ || (c.dim_ && !c.dim_.isZero())) + throw new Error( + `Attempt to multiply non-ratio unit ${l.name_} failed.` + ); + l.cnvPfx_ *= c.magnitude_; + } else if (null != c.cnv_) { + if (l.dim_ && !l.dim_.isZero()) + throw new Error(`Attempt to multiply non-ratio unit ${c.name_}`); + (l.cnvPfx_ = c.cnvPfx_ * l.magnitude_), (l.cnv_ = c.cnv_); + } else l.magnitude_ *= c.magnitude_; + return ( + !l.dim_ || (l.dim_ && !l.dim_.dimVec_) + ? (l.dim_ = c.dim_ ? c.dim_.clone() : c.dim_) + : c.dim_ && c.dim_ instanceof u && l.dim_.add(c.dim_), + (l.name_ = this._concatStrs(l.name_, "*", c.name_, "[", "]")), + (l.csCode_ = this._concatStrs(l.csCode_, ".", c.csCode_, "(", ")")), + l.ciCode_ && c.ciCode_ + ? (l.ciCode_ = this._concatStrs( + l.ciCode_, + ".", + c.ciCode_, + "(", + ")" + )) + : c.ciCode_ && (l.ciCode_ = c.ciCode_), + (l.guidance_ = ""), + l.printSymbol_ && c.printSymbol_ + ? (l.printSymbol_ = this._concatStrs( + l.printSymbol_, + ".", + c.printSymbol_, + "(", + ")" + )) + : c.printSymbol_ && (l.printSymbol_ = c.printSymbol_), + (l.moleExp_ = l.moleExp_ + c.moleExp_), + l.isArbitrary_ || (l.isArbitrary_ = c.isArbitrary_), + l + ); + } + divide(c) { + var l = this.clone(); + if (null != l.cnv_) + throw new Error(`Attempt to divide non-ratio unit ${l.name_}`); + if (null != c.cnv_) + throw new Error(`Attempt to divide by non-ratio unit ${c.name_}`); + return ( + l.name_ && c.name_ + ? (l.name_ = this._concatStrs(l.name_, "/", c.name_, "[", "]")) + : c.name_ && (l.name_ = c.invertString(c.name_)), + (l.csCode_ = this._concatStrs(l.csCode_, "/", c.csCode_, "(", ")")), + l.ciCode_ && c.ciCode_ + ? (l.ciCode_ = this._concatStrs( + l.ciCode_, + "/", + c.ciCode_, + "(", + ")" + )) + : c.ciCode_ && (l.ciCode_ = c.invertString(c.ciCode_)), + (l.guidance_ = ""), + (l.magnitude_ /= c.magnitude_), + l.printSymbol_ && c.printSymbol_ + ? (l.printSymbol_ = this._concatStrs( + l.printSymbol_, + "/", + c.printSymbol_, + "(", + ")" + )) + : c.printSymbol_ && + (l.printSymbol_ = c.invertString(c.printSymbol_)), + c.dim_ && + (l.dim_ + ? (l.dim_.isNull() && l.dim_.assignZero(), + (l.dim_ = l.dim_.sub(c.dim_))) + : (l.dim_ = c.dim_.clone().minus())), + (l.moleExp_ = l.moleExp_ - c.moleExp_), + l.isArbitrary_ || (l.isArbitrary_ = c.isArbitrary_), + l + ); + } + invert() { + if (null != this.cnv_) + throw new Error( + `Attempt to invert a non-ratio unit - ${this.name_}` + ); + return ( + (this.name_ = this.invertString(this.name_)), + (this.magnitude_ = 1 / this.magnitude_), + this.dim_.minus(), + this + ); + } + invertString(c) { + if (c.length > 0) { + let l = c.replace("/", "!").replace(".", "/").replace("!", "."); + switch (l.charAt(0)) { + case ".": + c = l.substr(1); + break; + case "/": + c = l; + break; + default: + c = "/" + l; + } + } + return c; + } + _concatStrs(c, l, g, b, y) { + return ( + this._buildOneString(c, b, y) + l + this._buildOneString(g, b, y) + ); + } + _buildOneString(c, l, g) { + let b = ""; + return ( + (b = + f.isNumericString(c) || "(" === c.charAt(0) || "[" === c.charAt(0) + ? c + : /[./* ]/.test(c) + ? l + c + g + : c), + b + ); + } + power(c) { + if (null != this.cnv_) + throw new Error( + `Attempt to raise a non-ratio unit, ${this.name_}, to a power.` + ); + let g = this.csCode_.match(/([./]|[^./]+)/g), + b = g.length; + for (let y = 0; y < b; y++) { + let x = g[y]; + if ("/" !== x && "." !== x) { + let T = parseInt(x); + if (r(T)) g[y] = Math.pow(T, c).toString(); + else { + let O = x.length; + for (let M = O - 1; M >= 0; M--) { + let A = parseInt(x[M]); + if (!r(A)) { + if ((("-" === x[M] || "+" === x[M]) && M--, M < O - 1)) { + let S = parseInt(x.substr(M)); + (S = Math.pow(S, c)), + (g[y] = x.substr(0, M) + S.toString()), + (M = -1); + } else (g[y] += c.toString()), (M = -1); + M = -1; + } + } + } + } + } + return ( + (this.csCode_ = g.join("")), + (this.magnitude_ = Math.pow(this.magnitude_, c)), + this.dim_ && this.dim_.mul(c), + this + ); + } + isMoleMassCommensurable(c) { + let g = this._getUnitTables().getMassDimensionIndex(), + b = !1; + if (1 === this.moleExp_ && 0 === c.moleExp_) { + let y = this.dim_.clone(), + x = y.getElementAt(g); + y.setElementAt(g, x + this.moleExp_), (b = y.equals(c.dim_)); + } else if (1 === c.moleExp_ && 0 === this.moleExp_) { + let y = c.dim_.clone(), + x = y.getElementAt(g); + y.setElementAt(g, x + c.moleExp_), (b = y.equals(this.dim_)); + } + return b; + } + _getUnitTables() { + return h || (h = p(8334).UnitTables), h.getInstance(); + } + } + j.Unit = o; + }, + 5744: (ye, j, p) => { + "use strict"; + j.T = void 0; + var f = (function (o) { + if (o && o.__esModule) return o; + if (null === o || ("object" != typeof o && "function" != typeof o)) + return { default: o }; + var i = _(); + if (i && i.has(o)) return i.get(o); + var c = {}, + l = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var g in o) + if (Object.prototype.hasOwnProperty.call(o, g)) { + var b = l ? Object.getOwnPropertyDescriptor(o, g) : null; + b && (b.get || b.set) + ? Object.defineProperty(c, g, b) + : (c[g] = o[g]); + } + return (c.default = o), i && i.set(o, c), c; + })(p(4693)); + function _() { + if ("function" != typeof WeakMap) return null; + var o = new WeakMap(); + return ( + (_ = function () { + return o; + }), + o + ); + } + var s = p(5424).Ucum, + d = p(8897).Unit, + u = p(8334).UnitTables, + h = p(5361).PrefixTables; + class r { + constructor() { + (this.utabs_ = u.getInstance()), + (this.pfxTabs_ = h.getInstance()), + (this.openEmph_ = s.openEmph_), + (this.closeEmph_ = s.closeEmph_), + (this.bracesMsg_ = ""), + (this.parensFlag_ = "parens_placeholder"), + (this.pFlagLen_ = this.parensFlag_.length), + (this.braceFlag_ = "braces_placeholder"), + (this.bFlagLen_ = this.braceFlag_.length), + (this.vcMsgStart_ = null), + (this.vcMsgEnd_ = null), + (this.retMsg_ = []), + (this.parensUnits_ = []), + (this.annotations_ = []), + (this.suggestions = []); + } + useHTMLInMessages(i) { + void 0 === i || i + ? ((this.openEmph_ = s.openEmphHTML_), + (this.closeEmph_ = s.closeEmphHTML_)) + : ((this.openEmph_ = s.openEmph_), + (this.closeEmph_ = s.closeEmph_)); + } + useBraceMsgForEachString(i) { + this.bracesMsg_ = void 0 === i || i ? s.bracesMsg_ : ""; + } + parseString(i, c, l) { + if ("" === (i = i.trim()) || null === i) + throw new Error( + "Please specify a unit expression to be validated." + ); + "validate" === c + ? ((this.vcMsgStart_ = s.valMsgStart_), + (this.vcMsgEnd_ = s.valMsgEnd_)) + : ((this.vcMsgStart_ = s.cnvMsgStart_), + (this.vcMsgEnd_ = s.cnvMsgEnd_)), + (this.suggestions_ = void 0 === l || !1 === l ? null : []), + (this.retMsg_ = []), + (this.parensUnits_ = []), + (this.annotations_ = []); + let g = i, + b = []; + if (((i = this._getAnnotations(i)), this.retMsg_.length > 0)) + (b[0] = null), (b[1] = null); + else { + let x = null; + for (x in s.specUnits_) + for (; -1 !== i.indexOf(x); ) i = i.replace(x, s.specUnits_[x]); + if (i.indexOf(" ") > -1) + throw new Error( + "Blank spaces are not allowed in unit expressions." + ); + b = this._parseTheString(i, g); + let T = b[0]; + (f.isIntegerUnit(T) || "number" == typeof T) && + ((T = new d({ csCode_: g, magnitude_: T, name_: g })), + (b[0] = T)); + } + return ( + (b[2] = this.retMsg_), + this.suggestions_ && + this.suggestions_.length > 0 && + (b[3] = this.suggestions_), + b + ); + } + _parseTheString(i, c) { + let l = null, + g = this.retMsg_.length > 0, + b = this._processParens(i, c); + g = b[2]; + let y = []; + if (!g) { + let x = this._makeUnitsArray((i = b[0]), (c = b[1])); + if (((g = x[2]), !g)) { + (y = x[0]), (c = x[1]); + let T = y.length; + for (let O = 0; O < T; O++) { + let M = y[O].un; + if (f.isIntegerUnit(M)) y[O].un = Number(M); + else if (M.indexOf(this.parensFlag_) >= 0) { + let A = this._getParensUnit(M, c); + g || (g = A[1]), g || (y[O].un = A[0]); + } else { + let A = this._makeUnit(M, c); + null === A[0] ? (g = !0) : ((y[O].un = A[0]), (c = A[1])); + } + } + } + } + return ( + g || + ((null === y[0] || " " === y[0] || null == y[0].un) && + 0 === this.retMsg_.length && + (this.retMsg_.push( + `Unit string (${c}) did not contain anything that could be used to create a unit, or else something that is not handled yet by this package. Sorry` + ), + (g = !0))), + g || (l = this._performUnitArithmetic(y, c)), + [l, c] + ); + } + _getAnnotations(i) { + let c = i.indexOf("{"); + for (; c >= 0; ) { + let g = i.indexOf("}"); + if (g < 0) + this.retMsg_.push( + "Missing closing brace for annotation starting at " + + this.openEmph_ + + i.substr(c) + + this.closeEmph_ + ), + (c = -1); + else { + let b = i.substring(c, g + 1), + y = this.annotations_.length.toString(); + (i = i.replace(b, this.braceFlag_ + y + this.braceFlag_)), + this.annotations_.push(b), + (c = i.indexOf("{")); + } + } + let l = i.indexOf("}"); + return ( + l >= 0 && + this.retMsg_.push( + "Missing opening brace for closing brace found at " + + this.openEmph_ + + i.substring(0, l + 1) + + this.closeEmph_ + ), + i + ); + } + _processParens(i, c) { + let l = [], + g = 0, + b = !1, + y = this.parensUnits_.length, + x = 0; + for (; "" !== i && !b; ) { + let T = 0, + O = 0, + M = i.indexOf("("); + if (M < 0) { + let A = i.indexOf(")"); + if (A >= 0) { + let S = `Missing open parenthesis for close parenthesis at ${i.substring( + 0, + A + x + )}${this.openEmph_}${i.substr(A, 1)}${this.closeEmph_}`; + A < i.length - 1 && (S += `${i.substr(A + 1)}`), + this.retMsg_.push(S), + (l[g] = i), + (b = !0); + } else (l[g] = i), (i = ""); + } else { + T += 1; + let A = i.length; + M > 0 && (l[g++] = i.substr(0, M)); + let S = 0, + w = M + 1; + for (; w < A && T != O; w++) + "(" === i[w] ? (T += 1) : ")" === i[w] && (O += 1); + if (T === O) { + (S = w), + (l[g++] = this.parensFlag_ + y.toString() + this.parensFlag_); + let I = this._parseTheString(i.substring(M + 1, S - 1), c); + null === I[0] + ? (b = !0) + : ((c = I[1]), + (this.parensUnits_[y++] = I[0]), + (i = i.substr(S)), + (x = S)); + } else + l.push(c.substr(M)), + this.retMsg_.push( + `Missing close parenthesis for open parenthesis at ${c.substring( + 0, + M + x + )}${this.openEmph_}${c.substr(M, 1)}${ + this.closeEmph_ + }${c.substr(M + 1)}` + ), + (b = !0); + } + } + return b && (this.parensUnits_ = []), [l.join(""), c, b]; + } + _makeUnitsArray(i, c) { + let l = i.match(/([./]|[^./]+)/g), + g = !1, + b = [], + y = /(^[0-9]+)(\[?[a-zA-Z\_0-9a-zA-Z\_]+\]?$)/; + if ( + ("/" === l[0] + ? l.unshift("1") + : "." === l[0] && + (this.retMsg_.push( + `${c} is not a valid UCUM code. The multiplication operator at the beginning of the expression is not valid. A multiplication operator must appear only between two codes.` + ), + (g = !0)), + !g) + ) { + if (!f.isNumericString(l[0])) { + let x = l[0].match(y); + if ( + x && + 3 === x.length && + "" !== x[1] && + "" !== x[2] && + 0 !== x[2].indexOf(this.braceFlag_) + ) { + let T = x[2]; + if (!g && -1 !== x[2].indexOf(this.parensFlag_)) { + let O = this._getParensUnit(x[2], c); + (x[2] = O[0].csCode_), (T = `(${x[2]})`), (g = O[1]); + } + g || + (this.retMsg_.push( + `${x[1]}${T} is not a valid UCUM code. ${this.vcMsgStart_}${x[1]}.${T}${this.vcMsgEnd_}` + ), + (c = c.replace(`${x[1]}${T}`, `${x[1]}.${T}`)), + (l[0] = x[2]), + l.unshift(x[1], ".")); + } + } + if (!g) { + let x = l.length; + b = [{ op: "", un: l[0] }]; + for (let T = 1; T < x; T++) { + let O = l[T++]; + if (l[T]) + if (-1 !== s.validOps_.indexOf(l[T])) + this.retMsg_.push( + `${c} is not a valid UCUM code. A unit code is missing between${this.openEmph_}${O}${this.closeEmph_}and${this.openEmph_}${l[T]}${this.closeEmph_}in${this.openEmph_}${O}${l[T]}${this.closeEmph_}.` + ), + (T = x), + (g = !0); + else if (f.isNumericString(l[T])) b.push({ op: O, un: l[T] }); + else { + let M = l[T].match(y); + if ( + M && + 3 === M.length && + "" !== M[1] && + "" !== M[2] && + 0 !== M[2].indexOf(this.braceFlag_) + ) { + let A = M[0]; + if (g || -1 === M[2].indexOf(this.parensFlag_)) { + let S = "(" + M[1] + "." + M[2] + ")", + w = this._processParens(S, c); + w[2] + ? ((T = x), (g = !0)) + : (this.retMsg_.push( + `${M[0]} is not a valid UCUM code. ${this.vcMsgStart_}${M[1]}.${M[2]}${this.vcMsgEnd_}` + ), + (c = c.replace(M[0], S)), + b.push({ op: O, un: w[0] })); + } else { + let S = this._getParensUnit(M[2], c); + if ( + ((M[2] = S[0].csCode_), + (A = `(${M[2]})`), + (g = S[1]), + !g) + ) { + this.retMsg_.push( + `${M[1]}${A} is not a valid UCUM code. ${this.vcMsgStart_}${M[1]}.${A}${this.vcMsgEnd_}` + ); + let w = `(${M[1]}.${A})`; + c = c.replace(`${M[1]}${A}`, w); + let I = this._processParens(w, c); + (g = I[2]), g || b.push({ op: O, un: I[0] }); + } + } + } else b.push({ op: O, un: l[T] }); + } + else + this.retMsg_.push( + `${c} is not a valid UCUM code. It is terminated with the operator ${this.openEmph_}${O}${this.closeEmph_}.` + ), + (T = x), + (g = !0); + } + } + } + return [b, c, g]; + } + _getParensUnit(i, c) { + let l = !1, + b = null, + T = i.indexOf(this.parensFlag_), + O = null; + T > 0 && (O = i.substr(0, T - 1)); + let M = i.lastIndexOf(this.parensFlag_), + A = null; + M + this.pFlagLen_ < i.length && (A = i.substr(M + this.pFlagLen_)); + let S = i.substring(T + this.pFlagLen_, M); + if (!f.isNumericString(S)) + throw new Error( + `Processing error - invalid parens number ${S} found in ${i}.` + ); + if ( + ((b = this.parensUnits_[Number(S)]), + (i = f.isIntegerUnit(b) ? b : b.csCode_), + O) + ) + if (f.isNumericString(O)) { + let w = b.getProperty("magnitude_"); + (w *= Number(O)), + b.assignVals({ magnitude_: w }), + this.retMsg_.push( + `${O}${(i = `${O}.${i}`)} is not a valid UCUM code.\n` + + this.vcMsgStart_ + + i + + this.vcMsgEnd_ + ); + } else if (O.indexOf(this.braceFlag_) >= 0) { + let w = this._getAnnoText(O, c); + if (w[1] || w[2]) + throw new Error( + `Text found before the parentheses (${O}) included an annotation along with other text for parenthetical unit ${b.csCode_}` + ); + this.retMsg_.push( + `The annotation ${w[0]} before the unit code is invalid.\n` + + this.vcMsgStart_ + + (i += w[0]) + + this.vcMsgEnd_ + ); + } else + this.suggestions_ + ? (l = "succeeded" !== this._getSuggestions(O)) + : (this.retMsg_.push( + `${O} preceding the unit code ${i} is invalid. Unable to make a substitution.` + ), + (l = !0)); + if (A) + if (A.indexOf(this.braceFlag_) >= 0) { + let w = this._getAnnoText(A, c); + if (w[1] || w[2]) + throw new Error( + `Text found after the parentheses (${A}) included an annotation along with other text for parenthetical unit ${b.csCode_}` + ); + i += w[0]; + } else + f.isNumericString(A) + ? ((i += A), + (b = b.power(Number(A))), + this.retMsg_.push( + `An exponent (${A}) following a parenthesis is invalid as of revision 1.9 of the UCUM Specification.\n ` + + this.vcMsgStart_ + + i + + this.vcMsgEnd_ + )) + : this.suggestions_ + ? (l = "succeeded" !== this._getSuggestions(O)) + : (this.retMsg_.push( + `Text ${A} following the unit code ${i} is invalid. Unable to make a substitution.` + ), + (l = !0)); + return ( + l || + (b + ? f.isIntegerUnit(b) + ? (b = new d({ csCode_: b, magnitude_: b, name_: b })) + : (b.csCode_ = i) + : (b = new d({ csCode_: i, magnitude_: 1, name_: i }))), + [b, l] + ); + } + _getAnnoText(i, c) { + let l = i.indexOf(this.braceFlag_), + g = l > 0 ? i.substring(0, l) : null; + 0 !== l && (i = i.substr(l)); + let b = i.indexOf(this.braceFlag_, 1), + y = + b + this.bFlagLen_ < i.length + ? i.substr(b + this.bFlagLen_) + : null, + x = i.substring(this.bFlagLen_, b), + T = Number(x); + if (!f.isNumericString(x) || T >= this.annotations_.length) + throw new Error( + `Processing Error - invalid annotation index ${x} found in ${i} that was created from ${c}` + ); + return [(i = this.annotations_[T]), g, y]; + } + _getSuggestions(i) { + let c = f.getSynonyms(i); + if ("succeeded" === c.status) { + let l = {}; + (l.msg = `${i} is not a valid UCUM code. We found possible units that might be what was meant:`), + (l.invalidUnit = i); + let g = c.units.length; + l.units = []; + for (let b = 0; b < g; b++) { + let y = c.units[b]; + l.units.push([y.code, y.name, y.guidance]); + } + this.suggestions_.push(l); + } else + this.retMsg_.push( + `${i} is not a valid UCUM code. No alternatives were found.` + ); + return c.status; + } + _makeUnit(i, c) { + let l = this.utabs_.getUnitByCode(i); + if (l) l = l.clone(); + else if (i.indexOf(this.braceFlag_) >= 0) { + let g = this._getUnitWithAnnotation(i, c); + (l = g[0]), l && (c = g[1]); + } else { + if (i.indexOf("^") > -1) { + let g = i.replace("^", "*"); + (l = this.utabs_.getUnitByCode(g)), + l && + ((l = l.clone()), + (l.csCode_ = l.csCode_.replace("*", "^")), + (l.ciCode_ = l.ciCode_.replace("*", "^"))); + } + if (!l) { + let g = "[" + i + "]"; + (l = this.utabs_.getUnitByCode(g)), + l && + ((l = l.clone()), + (c = c.replace(i, g)), + this.retMsg_.push( + `${i} is not a valid unit expression, but ${g} is.\n` + + this.vcMsgStart_ + + `${g} (${l.name_})${this.vcMsgEnd_}` + )); + } + if (!l) { + let g = this.utabs_.getUnitByName(i); + if (g && g.length > 0) { + l = g[0].clone(); + let b = + "The UCUM code for " + + i + + " is " + + l.csCode_ + + ".\n" + + this.vcMsgStart_ + + l.csCode_ + + this.vcMsgEnd_, + y = !1; + for (let O = 0; O < this.retMsg_.length && !y; O++) + y = this.retMsg_[O] === b; + y || this.retMsg_.push(b); + let x = new RegExp("(^|[./({])(" + i + ")($|[./)}])"), + T = c.match(x); + (c = c.replace(x, T[1] + l.csCode_ + T[3])), (i = l.csCode_); + } + } + if (!l) { + let g = null; + for (g in s.specUnits_) + -1 !== i.indexOf(s.specUnits_[g]) && + (i = i.replace(s.specUnits_[g], g)); + (l = this.utabs_.getUnitByCode(i)), l && (l = l.clone()); + } + if (!l) { + let g = i, + b = null, + y = null, + x = null, + T = null, + O = null, + M = null, + A = this._isCodeWithExponent(i); + if ( + (A && ((y = A[1]), (b = this.utabs_.getUnitByCode((i = A[0])))), + !b && + ((x = i.charAt(0)), + (T = this.pfxTabs_.getPrefixByCode(x)), + T) && + ((O = T.getValue()), + (M = T.getExp()), + (i = i.substr(x.length)), + (b = this.utabs_.getUnitByCode(i)), + !b && + "d" == x && + "a" == i.substr(0, 1) && + ((x = "da"), + (T = this.pfxTabs_.getPrefixByCode(x)), + (O = T.getValue()), + (i = i.substr(1)), + (b = this.utabs_.getUnitByCode(i)))), + b) + ) { + (l = b.clone()), (l.guidance_ = ""); + let S = l.getProperty("dim_"), + w = l.getProperty("magnitude_"), + I = l.getProperty("name_"), + C = l.getProperty("ciCode_"), + L = l.getProperty("printSymbol_"); + if (y) { + y = parseInt(y); + let ie = y; + S && (S = S.mul(y)), + (w = Math.pow(w, y)), + l.assignVals({ magnitude_: w }), + T && M && ((ie *= T.getExp()), (O = Math.pow(10, ie))); + } + T && + (l.cnv_ + ? l.assignVals({ cnvPfx_: O }) + : ((w *= O), l.assignVals({ magnitude_: w }))); + let F = l.csCode_; + if ( + (T && + ((I = T.getName() + I), + (F = x + F), + (C = T.getCiCode() + C), + (L = T.getPrintSymbol() + L), + l.assignVals({ + name_: I, + csCode_: F, + ciCode_: C, + printSymbol_: L, + })), + y) + ) { + let ie = y.toString(); + l.assignVals({ + name_: I + "" + ie + "", + csCode_: F + ie, + ciCode_: C + ie, + printSymbol_: L + "" + ie + "", + }); + } + } else + (l = null), + this.suggestions_ + ? this._getSuggestions(g) + : this.retMsg_.push(`${g} is not a valid UCUM code.`); + } + } + return [l, c]; + } + _getUnitWithAnnotation(i, c) { + let l = null, + g = this._getAnnoText(i, c), + b = g[0], + y = g[1], + x = g[2]; + this.bracesMsg_ && + -1 === this.retMsg_.indexOf(this.bracesMsg_) && + this.retMsg_.push(this.bracesMsg_); + let T = this.retMsg_.length; + if (y || x) + if (y && !x) + if (f.isIntegerUnit(y)) l = y; + else { + let O = this._makeUnit(y, c); + O[0] + ? ((l = O[0]), (l.csCode_ += b), (c = O[1])) + : this.retMsg_.push( + `Unable to find a unit for ${y} that precedes the annotation ${b}.` + ); + } + else if (!y && x) + if (f.isIntegerUnit(x)) + (l = x + b), + this.retMsg_.push( + `The annotation ${b} before the ``${x} is invalid.\n` + + this.vcMsgStart_ + + l + + this.vcMsgEnd_ + ); + else { + let O = this._makeUnit(x, c); + O[0] + ? ((l = O[0]), + (l.csCode_ += b), + (c = l.csCode_), + this.retMsg_.push( + `The annotation ${b} before the unit code is invalid.\n` + + this.vcMsgStart_ + + l.csCode_ + + this.vcMsgEnd_ + )) + : this.retMsg_.push( + `Unable to find a unit for ${y} that follows the annotation ${b}.` + ); + } + else + this.retMsg_.push( + `Unable to find a unit for ${y}${b}${x}.\nWe are not sure how to interpret text both before and after the annotation. Sorry` + ); + else { + let O = "[" + b.substring(1, b.length - 1) + "]", + M = this._makeUnit(O, c); + M[0] + ? ((l = M[0]), + (c = c.replace(b, O)), + this.retMsg_.push( + `${b} is not a valid unit expression, but ${O} is.\n` + + this.vcMsgStart_ + + `${O} (${l.name_})${this.vcMsgEnd_}` + )) + : (this.retMsg_.length > T && this.retMsg_.pop(), + (i = 1), + (l = 1)); + } + return [l, c]; + } + _performUnitArithmetic(i, c) { + let l = i[0].un; + f.isIntegerUnit(l) && + (l = new d({ csCode_: l, magnitude_: Number(l), name_: l })); + let g = i.length, + b = !1; + for (let y = 1; y < g && !b; y++) { + let x = i[y].un; + if ( + (f.isIntegerUnit(x) && + (x = new d({ csCode_: x, magnitude_: Number(x), name_: x })), + null === x || ("number" != typeof x && !x.getProperty)) + ) { + let T = `Unit string (${c}) contains unrecognized element`; + x && + (T += ` (${this.openEmph_}${x.toString()}${this.closeEmph_})`), + (T += "; could not parse full string. Sorry"), + this.retMsg_.push(T), + (b = !0); + } else + try { + l = "/" === i[y].op ? l.divide(x) : l.multiplyThese(x); + } catch (T) { + this.retMsg_.unshift(T.message), (b = !0), (l = null); + } + } + return l; + } + _isCodeWithExponent(i) { + let c = [], + l = i.match(/(^[^\-\+]+?)([\-\+\d]+)$/); + return ( + l && l[2] && "" !== l[2] + ? (c.push(l[1]), c.push(l[2])) + : (c = null), + c + ); + } + } + (j.T = r), + (r.getInstance = function () { + return new r(); + }); + }, + 8334: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.UnitTables = void 0); + var n = p(5424).Ucum, + _ = new (class { + constructor() { + (this.unitNames_ = {}), + (this.unitCodes_ = {}), + (this.codeOrder_ = []), + (this.unitStrings_ = {}), + (this.unitDimensions_ = {}), + (this.unitSynonyms_ = {}), + (this.massDimIndex_ = 0); + } + unitsCount() { + return Object.keys(this.unitCodes_).length; + } + addUnit(d) { + d.name_ && this.addUnitName(d), + this.addUnitCode(d), + this.addUnitString(d); + try { + d.dim_.getProperty("dimVec_") && this.addUnitDimension(d); + } catch (h) {} + } + addUnitName(d) { + let u = d.name_; + if (!u) + throw new Error( + `UnitTables.addUnitName called for a unit with no name. Unit code = ${d.csCode_}.` + ); + this.unitNames_[u] + ? this.unitNames_[u].push(d) + : (this.unitNames_[u] = [d]); + } + addUnitCode(d) { + let u = d.csCode_; + if (!u) + throw new Error( + "UnitTables.addUnitCode called for unit that has no code." + ); + if (this.unitCodes_[u]) + throw new Error( + `UnitTables.addUnitCode called, already contains entry for unit with code = ${u}` + ); + if (((this.unitCodes_[u] = d), this.codeOrder_.push(u), "g" == u)) { + let h = d.dim_.dimVec_, + r = 0; + for (; r < h.length && h[r] < 1; r++); + this.massDimIndex_ = r; + } + } + addUnitString(d) { + let u = null; + if ( + ((u = 1 == n.caseSensitive_ ? d.csUnitString_ : d.ciUnitString_), + u) + ) { + let h = { mag: d.baseFactorStr_, unit: d }; + this.unitStrings_[u] + ? this.unitStrings_[u].push(h) + : (this.unitStrings_[u] = [h]); + } + } + addUnitDimension(d) { + let u = d.dim_.getProperty("dimVec_"); + if (!u) + throw new Error( + `UnitTables.addUnitDimension called for a unit with no dimension. Unit code = ${d.csCode_}.` + ); + this.unitDimensions_[u] + ? this.unitDimensions_[u].push(d) + : (this.unitDimensions_[u] = [d]); + } + buildUnitSynonyms() { + for (let d in this.unitCodes_) { + let u = this.unitCodes_[d], + h = u.synonyms_; + if (h) { + let r = h.split(";"); + if ("" !== r[0]) { + let o = r.length; + for (let i = 0; i < o; i++) { + let c = r[i].trim(); + this.addSynonymCodes(d, c); + } + } + } + this.addSynonymCodes(d, u.name_); + } + } + addSynonymCodes(d, u) { + let h = u.split(" "), + r = h.length; + for (let o = 0; o < r; o++) { + let i = h[o]; + this.unitSynonyms_[i] + ? -1 === this.unitSynonyms_[i].indexOf(d) && + this.unitSynonyms_[i].push(d) + : (this.unitSynonyms_[i] = [d]); + } + } + getUnitByCode(d) { + let u = null; + return d && (u = this.unitCodes_[d]), u; + } + getUnitByName(d) { + if (null == d) + throw new Error( + "Unable to find unit by name because no name was provided." + ); + let u = d.indexOf(n.codeSep_), + h = null; + u >= 1 && + ((h = d.substr(u + n.codeSep_.length)), (d = d.substr(0, u))); + let r = this.unitNames_[d]; + if (r) { + let o = r.length; + if (h && o > 1) { + let i = 0; + for (; r[i].csCode_ !== h && i < o; i++); + r = i < o ? [r[i]] : null; + } + } + return r; + } + getUnitByString(d) { + let u = null; + return ( + d && ((u = this.unitStrings_[d]), void 0 === u && (u = null)), u + ); + } + getUnitsByDimension(d) { + let u = null; + if (null == d) + throw new Error( + "Unable to find unit by because no dimension vector was provided." + ); + return ( + (u = this.unitDimensions_[d]), + null == u && + console.log(`Unable to find unit with dimension = ${d}`), + u + ); + } + getUnitBySynonym(d) { + let u = {}, + h = []; + try { + if (null == d) + throw ( + ((u.status = "error"), + new Error( + "Unable to find unit by synonym because no synonym was provided." + )) + ); + 0 === Object.keys(this.unitSynonyms_).length && + this.buildUnitSynonyms(); + let r = []; + if (((r = this.unitSynonyms_[d]), r)) { + u.status = "succeeded"; + let o = r.length; + for (let i = 0; i < o; i++) h.push(this.unitCodes_[r[i]]); + u.units = h; + } + 0 === h.length && + ((u.status = "failed"), + (u.msg = `Unable to find any units with synonym = ${d}`)); + } catch (r) { + u.msg = r.message; + } + return u; + } + getAllUnitNames() { + return Object.keys(this.unitNames_); + } + getUnitNamesList() { + let d = [], + u = Object.keys(this.unitCodes_); + u.sort(this.compareCodes); + let h = u.length; + for (let r = 0; r < h; r++) + d[r] = u[r] + n.codeSep_ + this.unitCodes_[u[r]].name_; + return d; + } + getMassDimensionIndex() { + return this.massDimIndex_; + } + compareCodes(d, u) { + return (d = (d = d.replace(/[\[\]]/g, "")).toLowerCase()) < + (u = (u = u.replace(/[\[\]]/g, "")).toLowerCase()) + ? -1 + : 1; + } + getAllUnitCodes() { + return Object.keys(this.unitCodes_); + } + allUnitsByDef() { + let d = [], + u = this.codeOrder_.length; + for (let h = 0; h < u; h++) + d.push(this.getUnitByCode(this.codeOrder_[h])); + return d; + } + allUnitsByName(d, u) { + null == u && (u = "|"); + let h = "", + r = this.getAllUnitNames(), + o = r.length, + i = d.length; + for (let c = 0; c < o; c++) { + let l = this.getUnitByName(r[c]); + for (let g = 0; g < l.length; g++) { + let b = l[g]; + for (let y = 0; y < i; y++) + if ((y > 0 && (h += u), "dim_" === d[y])) + h += + null != b.dim_ && b.dim_.dimVec_ instanceof Array + ? "[" + b.dim_.dimVec_.join(",") + "]" + : ""; + else { + let x = b[d[y]]; + h += "string" == typeof x ? x.replace(/[\n\r]/g, " ") : x; + } + h += "\r\n"; + } + } + return h; + } + printUnits(d, u) { + void 0 === d && (d = !1), void 0 === u && (u = "|"); + let h = "", + r = this.codeOrder_.length, + o = "csCode" + u; + d && (o += "ciCode" + u), + (o += "name" + u), + d && (o += "isBase" + u), + (o += + "magnitude" + + u + + "dimension" + + u + + "from unit(s)" + + u + + "value" + + u + + "function" + + u), + d && + (o += + "property" + + u + + "printSymbol" + + u + + "synonyms" + + u + + "source" + + u + + "class" + + u + + "isMetric" + + u + + "variable" + + u + + "isSpecial" + + u + + "isAbitrary" + + u), + (o += "comment"), + (h = o + "\n"); + for (let i = 0; i < r; i++) { + let c = this.getUnitByCode(this.codeOrder_[i]); + (o = this.codeOrder_[i] + u), + d && (o += c.getProperty("ciCode_") + u), + (o += c.getProperty("name_") + u), + d && + (c.getProperty("isBase_") + ? (o += "true" + u) + : (o += "false" + u)), + (o += c.getProperty("magnitude_") + u); + let l = c.getProperty("dim_"); + (o += l ? l.dimVec_ + u : "null" + u), + (o += c.csUnitString_ + ? c.csUnitString_ + u + c.baseFactor_ + u + : "null" + u + "null" + u), + (o += c.cnv_ ? c.cnv_ + u : "null" + u), + d && + (o += + c.getProperty("property_") + + u + + c.getProperty("printSymbol_") + + u + + c.getProperty("synonyms_") + + u + + c.getProperty("source_") + + u + + c.getProperty("class_") + + u + + c.getProperty("isMetric_") + + u + + c.getProperty("variable_") + + u + + c.getProperty("isSpecial_") + + u + + c.getProperty("isArbitrary_") + + u), + c.defError_ && + (o += "problem parsing this one, deferred to later."), + (h += o + "\n"); + } + return h; + } + })(); + j.UnitTables = { + getInstance: function () { + return _; + }, + }; + }, + 5041: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.AppComponent = void 0); + const n = p(655), + m = (p(6165), p(2466), (0, n.__importStar)(p(5e3))), + s = (0, n.__importStar)(p(2466)), + d = (0, n.__importStar)(p(6165)), + u = (0, n.__importStar)(p(4594)), + h = (0, n.__importStar)(p(4202)), + r = (0, n.__importStar)(p(7423)), + o = (0, n.__importStar)(p(2181)), + i = (0, n.__importStar)(p(5245)); + class c { + constructor(g, b) { + g.setDefaultLang("de"), + g.use(g.getBrowserLang()), + "https://ahdis.github.io" === location.origin + ? (console.log( + "note: using ahdis test systems for matchbox and mag" + + location.origin + ), + b.changeFhirMicroService( + "https://test.ahdis.ch/matchboxv3/fhir" + ), + b.changeMagMicroService("https://test.ahdis.ch/mag-pmp/fhir")) + : console.log("running at " + location.origin); + } + } + (j.AppComponent = c), + (c.ɵfac = function (g) { + return new (g || c)( + m.ɵɵdirectiveInject(s.TranslateService), + m.ɵɵdirectiveInject(d.FhirConfigService) + ); + }), + (c.ɵcmp = m.ɵɵdefineComponent({ + type: c, + selectors: [["app-root"]], + decls: 53, + vars: 1, + consts: [ + ["color", "primary", "role", "header"], + ["routerLink", "/", 1, "home-link"], + [1, "logo-container"], + ["src", "assets/matchbox_logo_color.png"], + [1, "example-fill-remaining-space"], + ["mat-icon-button", "", 3, "matMenuTriggerFor"], + ["menu", "matMenu"], + ["mat-menu-item", "", "routerLink", "/"], + ["mat-menu-item", "", "routerLink", "/CapabilityStatement"], + ["mat-menu-item", "", "routerLink", "/igs"], + ["mat-menu-item", "", "routerLink", "/fhirpath"], + ["mat-menu-item", "", "routerLink", "/mappinglanguage"], + ["mat-menu-item", "", "routerLink", "/transform"], + ["mat-menu-item", "", "routerLink", "/validate"], + ["mat-menu-item", "", "routerLink", "/settings"], + [1, "mat-typography"], + ], + template: function (g, b) { + if ( + (1 & g && + (m.ɵɵelementStart(0, "mat-toolbar", 0), + m.ɵɵelementStart(1, "div", 1), + m.ɵɵelementStart(2, "div", 2), + m.ɵɵelement(3, "img", 3), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelement(4, "span", 4), + m.ɵɵelementStart(5, "span"), + m.ɵɵelementStart(6, "button", 5), + m.ɵɵelementStart(7, "mat-icon"), + m.ɵɵtext(8, "more_vert"), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(9, "mat-menu", null, 6), + m.ɵɵelementStart(11, "button", 7), + m.ɵɵelementStart(12, "mat-icon"), + m.ɵɵtext(13, "home"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(14, "span"), + m.ɵɵtext(15, "Home"), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(16, "button", 8), + m.ɵɵelementStart(17, "mat-icon"), + m.ɵɵtext(18, "info"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(19, "span"), + m.ɵɵtext(20, "CapabilityStatement"), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(21, "button", 9), + m.ɵɵelementStart(22, "mat-icon"), + m.ɵɵtext(23, "info"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(24, "span"), + m.ɵɵtext(25, "IGs ..."), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(26, "button", 10), + m.ɵɵelementStart(27, "mat-icon"), + m.ɵɵtext(28, "search"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(29, "span"), + m.ɵɵtext(30, "FHIRPath ..."), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(31, "button", 11), + m.ɵɵelementStart(32, "mat-icon"), + m.ɵɵtext(33, "search"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(34, "span"), + m.ɵɵtext(35, "FHIR mapping language ..."), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(36, "button", 12), + m.ɵɵelementStart(37, "mat-icon"), + m.ɵɵtext(38, "search"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(39, "span"), + m.ɵɵtext(40, "Transform ..."), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(41, "button", 13), + m.ɵɵelementStart(42, "mat-icon"), + m.ɵɵtext(43, "Validate"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(44, "span"), + m.ɵɵtext(45, "Validate ..."), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(46, "button", 14), + m.ɵɵelementStart(47, "mat-icon"), + m.ɵɵtext(48, "settings"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(49, "span"), + m.ɵɵtext(50, "Settings"), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(51, "main", 15), + m.ɵɵelement(52, "router-outlet"), + m.ɵɵelementEnd()), + 2 & g) + ) { + const y = m.ɵɵreference(10); + m.ɵɵadvance(6), m.ɵɵproperty("matMenuTriggerFor", y); + } + }, + directives: [ + u.MatToolbar, + h.RouterLink, + r.MatButton, + o.MatMenuTrigger, + i.MatIcon, + o.MatMenu, + o.MatMenuItem, + h.RouterOutlet, + ], + styles: [ + ".example-fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{padding-left:0}mat-toolbar[_ngcontent-%COMP%] .home-link[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;height:100%;width:160px;justify-content:center;align-items:center}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:calc(100% - 1.2em)}main[_ngcontent-%COMP%]{width:100%;margin:0 auto}@media screen and (min-width: 1020px){main[_ngcontent-%COMP%]{padding:3rem 0;width:1000px}}", + ], + })); + }, + 6747: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.AppModule = j.createTranslateLoader = void 0); + const n = p(655), + f = p(520), + _ = p(4202), + m = p(2466), + s = p(1744), + d = p(5041), + u = p(7901), + h = p(4090), + r = p(5067), + o = p(6218), + i = p(4586), + c = p(4466), + l = p(7206), + g = p(2756), + b = p(719), + y = p(3026), + x = p(6114), + T = (0, n.__importStar)(p(5e3)), + S = + ((0, n.__importStar)(p(4202)), + (0, n.__importStar)(p(2466)), + (0, n.__importStar)(p(6114)), + [ + { path: "", component: r.HomeComponent }, + { path: "fhirpath", component: h.FhirPathComponent }, + { path: "mappinglanguage", component: o.MappingLanguageComponent }, + { + path: "CapabilityStatement", + component: u.CapabilityStatementComponent, + }, + { path: "igs", component: l.IgsComponent }, + { path: "settings", component: i.SettingsComponent }, + { path: "transform", component: b.TransformComponent }, + { path: "validate", component: y.ValidateComponent }, + ]); + function w(C) { + return new s.TranslateHttpLoader(C, "./assets/i18n/", ".json"); + } + j.createTranslateLoader = w; + class I {} + (j.AppModule = I), + (I.ɵfac = function (L) { + return new (L || I)(); + }), + (I.ɵmod = T.ɵɵdefineNgModule({ type: I, bootstrap: [d.AppComponent] })), + (I.ɵinj = T.ɵɵdefineInjector({ + providers: [ + { + provide: g.HIGHLIGHT_OPTIONS, + useValue: { + coreLibraryLoader: () => + Promise.resolve().then(() => (0, n.__importStar)(p(5241))), + lineNumbersLoader: () => + Promise.resolve().then(() => (0, n.__importStar)(p(859))), + languages: { + json: () => + Promise.resolve().then(() => (0, n.__importStar)(p(7652))), + xml: () => + Promise.resolve().then(() => (0, n.__importStar)(p(1891))), + }, + }, + }, + ], + imports: [ + [ + c.SharedModule, + f.HttpClientModule, + g.HighlightModule, + _.RouterModule.forRoot(S, { + useHash: !0, + relativeLinkResolution: "legacy", + }), + m.TranslateModule.forRoot({ + loader: { + provide: m.TranslateLoader, + useFactory: w, + deps: [f.HttpClient], + }, + }), + x.OAuthModule.forRoot(), + ], + ], + })); + }, + 7901: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.CapabilityStatementComponent = void 0); + const n = p(655), + _ = (p(6165), (0, n.__importStar)(p(5e3))), + m = (0, n.__importStar)(p(6165)), + s = (0, n.__importStar)(p(9224)), + d = (0, n.__importStar)(p(2756)), + u = (0, n.__importStar)(p(9808)), + h = (0, n.__importStar)(p(7322)); + function r(c, l) { + if ( + (1 & c && (_.ɵɵelementStart(0, "li"), _.ɵɵtext(1), _.ɵɵelementEnd()), + 2 & c) + ) { + const g = l.$implicit; + _.ɵɵadvance(1), _.ɵɵtextInterpolate1(" ", g.diagnostics, " "); + } + } + function o(c, l) { + if ( + (1 & c && + (_.ɵɵelementStart(0, "mat-error"), + _.ɵɵelementStart(1, "ul"), + _.ɵɵtemplate(2, r, 2, 1, "li", 3), + _.ɵɵelementEnd(), + _.ɵɵelementEnd()), + 2 & c) + ) { + const g = _.ɵɵnextContext(); + _.ɵɵadvance(2), _.ɵɵproperty("ngForOf", g.operationOutcome.issue); + } + } + class i { + constructor(l) { + (this.data = l), + (this.client = l.getFhirClient()), + this.client + .capabilityStatement() + .then((g) => { + (this.operationOutcome = void 0), + (this.capabilitystatement = g); + }) + .catch((g) => { + (this.capabilitystatement = void 0), + (this.operationOutcome = g.response.data); + }); + } + getJson() { + return JSON.stringify(this.capabilitystatement, null, 2); + } + ngOnInit() {} + ngOnDestroy() {} + } + (j.CapabilityStatementComponent = i), + (i.ɵfac = function (l) { + return new (l || i)(_.ɵɵdirectiveInject(m.FhirConfigService)); + }), + (i.ɵcmp = _.ɵɵdefineComponent({ + type: i, + selectors: [["app-capability-statement"]], + decls: 8, + vars: 4, + consts: [ + [1, "display"], + [3, "highlight", "lineNumbers"], + [4, "ngIf"], + [4, "ngFor", "ngForOf"], + ], + template: function (l, g) { + 1 & l && + (_.ɵɵelementStart(0, "mat-card", 0), + _.ɵɵelementStart(1, "mat-card-content"), + _.ɵɵelementStart(2, "mat-card-header"), + _.ɵɵelementStart(3, "mat-card-title"), + _.ɵɵtext(4), + _.ɵɵelementEnd(), + _.ɵɵelementEnd(), + _.ɵɵelementStart(5, "pre"), + _.ɵɵelement(6, "code", 1), + _.ɵɵelementEnd(), + _.ɵɵtemplate(7, o, 3, 1, "mat-error", 2), + _.ɵɵelementEnd(), + _.ɵɵelementEnd()), + 2 & l && + (_.ɵɵadvance(4), + _.ɵɵtextInterpolate(g.client.baseUrl), + _.ɵɵadvance(2), + _.ɵɵproperty("highlight", g.getJson())("lineNumbers", !0), + _.ɵɵadvance(1), + _.ɵɵproperty("ngIf", g.operationOutcome)); + }, + directives: [ + s.MatCard, + s.MatCardContent, + s.MatCardHeader, + s.MatCardTitle, + d.Highlight, + u.NgIf, + h.MatError, + u.NgForOf, + ], + styles: [".display[_ngcontent-%COMP%]{display:inline-block}"], + })); + }, + 4090: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.FhirPathComponent = void 0); + const n = p(655), + m = (p(5e3), p(6315), p(3075)), + s = p(3460), + d = (0, n.__importStar)(p(5e3)), + u = (0, n.__importStar)(p(6315)), + h = (0, n.__importStar)(p(9224)), + r = (0, n.__importStar)(p(7322)), + o = (0, n.__importStar)(p(7531)), + i = (0, n.__importStar)(p(3075)), + c = (0, n.__importStar)(p(2756)); + class l { + constructor(b, y) { + (this.fhirPathService = b), + (this.cd = y), + (this.fhirPathExpression = new m.FormControl()), + this.fhirPathExpression.valueChanges + .pipe((0, s.debounceTime)(400), (0, s.distinctUntilChanged)()) + .subscribe((x) => { + if ((console.log("called with " + x), x)) + try { + this.fhirPathResult = this.fhirPathService.evaluate( + this.resource, + x + ); + } catch (T) { + console.log(T), (this.fhirPathResult = void 0); + } + else this.fhirPathResult = void 0; + }); + } + fileChange(b) { + const y = new FileReader(); + if (b.target.files && b.target.files.length) { + const [x] = b.target.files; + y.readAsText(x), + (y.onload = () => { + (this.resource = JSON.parse(y.result)), this.cd.markForCheck(); + }); + } + } + getFhirPathResult() { + return JSON.stringify(this.fhirPathResult, null, 2); + } + getJson() { + return JSON.stringify(this.resource, null, 2); + } + ngOnInit() {} + } + (j.FhirPathComponent = l), + (l.ɵfac = function (b) { + return new (b || l)( + d.ɵɵdirectiveInject(u.FhirPathService), + d.ɵɵdirectiveInject(d.ChangeDetectorRef) + ); + }), + (l.ɵcmp = d.ɵɵdefineComponent({ + type: l, + selectors: [["app-fhir-path"]], + decls: 15, + vars: 5, + consts: [ + [1, "display"], + ["matInput", "", 3, "formControl"], + [3, "highlight", "lineNumbers"], + [ + "type", + "file", + "placeholder", + "Upload resource", + "accept", + ".json", + 3, + "change", + ], + ], + template: function (b, y) { + 1 & b && + (d.ɵɵelementStart(0, "mat-card", 0), + d.ɵɵelementStart(1, "mat-card-content"), + d.ɵɵelementStart(2, "mat-form-field"), + d.ɵɵelementStart(3, "mat-label"), + d.ɵɵtext(4, "FHIRPath Expression"), + d.ɵɵelementEnd(), + d.ɵɵelement(5, "input", 1), + d.ɵɵelementEnd(), + d.ɵɵelementStart(6, "div"), + d.ɵɵtext(7, "Result"), + d.ɵɵelementEnd(), + d.ɵɵelementStart(8, "pre"), + d.ɵɵelement(9, "code", 2), + d.ɵɵelementEnd(), + d.ɵɵelementStart(10, "div"), + d.ɵɵtext(11, "Resource"), + d.ɵɵelementEnd(), + d.ɵɵelementStart(12, "input", 3), + d.ɵɵlistener("change", function (T) { + return y.fileChange(T); + }), + d.ɵɵelementEnd(), + d.ɵɵelementStart(13, "pre"), + d.ɵɵelement(14, "code", 2), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementEnd()), + 2 & b && + (d.ɵɵadvance(5), + d.ɵɵproperty("formControl", y.fhirPathExpression), + d.ɵɵadvance(4), + d.ɵɵproperty("highlight", y.getFhirPathResult())( + "lineNumbers", + !0 + ), + d.ɵɵadvance(5), + d.ɵɵproperty("highlight", y.getJson())("lineNumbers", !0)); + }, + directives: [ + h.MatCard, + h.MatCardContent, + r.MatFormField, + r.MatLabel, + o.MatInput, + i.DefaultValueAccessor, + i.NgControlStatus, + i.FormControlDirective, + c.Highlight, + ], + styles: [".display[_ngcontent-%COMP%]{display:inline-block}"], + })); + }, + 6165: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.FhirConfigService = void 0); + const n = p(655), + f = (0, n.__importDefault)(p(6336)), + _ = (0, n.__importStar)(p(5e3)); + class m { + constructor() {} + changeFhirMicroService(d) { + localStorage.setItem("fhirMicroServer", d); + } + changeMagMicroService(d) { + localStorage.setItem("magMicroService", d); + } + getFhirMicroService() { + return localStorage.getItem("fhirMicroServer") || "/matchboxv3/fhir"; + } + getMobileAccessGatewayService() { + return localStorage.getItem("magMicroService") || "/mag/fhir"; + } + getMobileAccessGatewayLoginUrl() { + return localStorage + .getItem("magMicroService") + .replace("/fhir", "/camel/authorize"); + } + getMobileAccessGatewayTokenEndpoint() { + return localStorage + .getItem("magMicroService") + .replace("/fhir", "/camel/token"); + } + getMobileAccessGatewayAssertionEndpoint() { + return localStorage + .getItem("magMicroService") + .replace("/fhir", "/camel/assertion"); + } + getRedirectUri() { + return location.origin + location.pathname + "#/mag"; + } + getClientId() { + return this.getRedirectUri().indexOf("localhost") >= 0 + ? "matchboxdev" + : "matchbox"; + } + getClientSecret() { + return "cd8455fc-e294-465a-8c86-35ae468c6b2f"; + } + getFhirClient() { + return new f.default({ baseUrl: this.getFhirMicroService() }); + } + getMobileAccessGatewayClient() { + return new f.default({ + baseUrl: this.getMobileAccessGatewayService(), + }); + } + getAuthCodeFlowConfig() { + return { + loginUrl: this.getMobileAccessGatewayLoginUrl(), + redirectUri: this.getRedirectUri(), + tokenEndpoint: this.getMobileAccessGatewayTokenEndpoint(), + clientId: this.getClientId(), + responseType: "code", + scope: "todo", + dummyClientSecret: this.getClientSecret(), + showDebugInformation: !0, + timeoutFactor: 0.75, + }; + } + } + (j.FhirConfigService = m), + (m.ɵfac = function (d) { + return new (d || m)(); + }), + (m.ɵprov = _.ɵɵdefineInjectable({ + token: m, + factory: m.ɵfac, + providedIn: "root", + })); + }, + 6315: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.FhirPathService = void 0); + const n = p(655), + f = p(2729), + _ = (0, n.__importStar)(p(5e3)); + class m { + evaluate(d, u) { + return (0, f.evaluate)(d, u, null); + } + evaluateToString(d, u) { + const h = this.evaluate(d, u); + return h && h instanceof Array && 1 === h.length ? h[0] : null; + } + getOauthUriToken(d) { + return this.evaluateToString( + d, + "rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='token').valueUri" + ); + } + getOauthUriAuthorize(d) { + return this.evaluateToString( + d, + "rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='authorize').valueUri" + ); + } + } + (j.FhirPathService = m), + (m.ɵfac = function (d) { + return new (d || m)(); + }), + (m.ɵprov = _.ɵɵdefineInjectable({ + token: m, + factory: m.ɵfac, + providedIn: "root", + })); + }, + 5067: (ye, j, p) => { + "use strict"; + var n = p(8926).default; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.HomeComponent = void 0); + const f = p(655), + s = (p(6165), p(4202), (0, f.__importDefault)(p(4147))), + d = (0, f.__importStar)(p(5e3)), + u = (0, f.__importStar)(p(6165)), + h = (0, f.__importStar)(p(4202)), + r = (0, f.__importStar)(p(9224)), + o = (0, f.__importStar)(p(2181)), + i = (0, f.__importStar)(p(5245)); + class c { + constructor(g, b) { + (this.router = b), + (this.version = s.default.version), + (this.client = g.getFhirClient()); + } + ngOnInit() { + return n(function* () {})(); + } + } + (j.HomeComponent = c), + (c.ɵfac = function (g) { + return new (g || c)( + d.ɵɵdirectiveInject(u.FhirConfigService), + d.ɵɵdirectiveInject(h.Router) + ); + }), + (c.ɵcmp = d.ɵɵdefineComponent({ + type: c, + selectors: [["app-home"]], + decls: 22, + vars: 1, + consts: [ + [1, "primary"], + ["mat-menu-item", "", "routerLink", "/validate"], + ["mat-menu-item", "", "routerLink", "/igs"], + ["mat-menu-item", "", "routerLink", "/settings"], + ["href", "https://www.ahdis.ch"], + ], + template: function (g, b) { + 1 & g && + (d.ɵɵelementStart(0, "mat-card", 0), + d.ɵɵelementStart(1, "mat-card-content"), + d.ɵɵelementStart(2, "button", 1), + d.ɵɵelementStart(3, "mat-icon"), + d.ɵɵtext(4, "Validate"), + d.ɵɵelementEnd(), + d.ɵɵelementStart(5, "span"), + d.ɵɵtext(6, "Validate ..."), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementStart(7, "button", 2), + d.ɵɵelementStart(8, "mat-icon"), + d.ɵɵtext(9, "info"), + d.ɵɵelementEnd(), + d.ɵɵelementStart(10, "span"), + d.ɵɵtext(11, "IGs ..."), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementStart(12, "button", 3), + d.ɵɵelementStart(13, "mat-icon"), + d.ɵɵtext(14, "settings"), + d.ɵɵelementEnd(), + d.ɵɵelementStart(15, "span"), + d.ɵɵtext(16, "Settings"), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementStart(17, "mat-card-footer"), + d.ɵɵelementStart(18, "p"), + d.ɵɵtext(19), + d.ɵɵelementStart(20, "a", 4), + d.ɵɵtext(21, "contact"), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementEnd()), + 2 & g && + (d.ɵɵadvance(19), + d.ɵɵtextInterpolate1("version: ", b.version, " ")); + }, + directives: [ + r.MatCard, + r.MatCardContent, + o.MatMenuItem, + h.RouterLink, + i.MatIcon, + r.MatCardFooter, + ], + styles: [ + ".mat-card.primary[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mat-card.primary[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .mat-subheading-2[_ngcontent-%COMP%]{margin:1rem 0 0}.mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] mat-tab-body>div{box-shadow:0 0 5px -3px #000 inset}.mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%]{padding:0 1.5rem 1.5rem}.mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-top:1rem;margin:0}", + ], + })); + }, + 7206: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.IgsComponent = void 0); + const n = p(655), + _ = (p(6165), p(6346)), + m = p(3075), + s = (0, n.__importDefault)(p(1455)), + u = (p(6315), (0, n.__importStar)(p(5e3))), + h = (0, n.__importStar)(p(6165)), + r = (0, n.__importStar)(p(6315)), + o = (0, n.__importStar)(p(9224)), + i = (0, n.__importStar)(p(6346)), + c = (0, n.__importStar)(p(7850)), + l = (0, n.__importStar)(p(7322)), + g = (0, n.__importStar)(p(7531)), + b = (0, n.__importStar)(p(3075)), + y = (0, n.__importStar)(p(7423)), + x = (0, n.__importStar)(p(9808)), + T = (0, n.__importStar)(p(773)), + O = (0, n.__importStar)(p(7259)); + function M(ne, ae) { + 1 & ne && + (u.ɵɵelementStart(0, "mat-header-cell", 20), + u.ɵɵtext(1, "Package Id"), + u.ɵɵelementEnd()); + } + function A(ne, ae) { + if ( + (1 & ne && + (u.ɵɵelementStart(0, "mat-cell", 20), + u.ɵɵtext(1), + u.ɵɵelementEnd()), + 2 & ne) + ) { + const le = ae.$implicit, + Oe = u.ɵɵnextContext(); + u.ɵɵadvance(1), u.ɵɵtextInterpolate(Oe.getPackageId(le)); + } + } + function S(ne, ae) { + 1 & ne && + (u.ɵɵelementStart(0, "mat-header-cell", 21), + u.ɵɵtext(1, "Version"), + u.ɵɵelementEnd()); + } + function w(ne, ae) { + if ( + (1 & ne && + (u.ɵɵelementStart(0, "mat-cell", 21), + u.ɵɵtext(1), + u.ɵɵelementEnd()), + 2 & ne) + ) { + const le = ae.$implicit, + Oe = u.ɵɵnextContext(); + u.ɵɵadvance(1), u.ɵɵtextInterpolate(Oe.getVersion(le)); + } + } + function I(ne, ae) { + 1 & ne && + (u.ɵɵelementStart(0, "mat-header-cell", 20), + u.ɵɵtext(1, "Title"), + u.ɵɵelementEnd()); + } + function C(ne, ae) { + if ( + (1 & ne && + (u.ɵɵelementStart(0, "mat-cell"), u.ɵɵtext(1), u.ɵɵelementEnd()), + 2 & ne) + ) { + const le = ae.$implicit, + Oe = u.ɵɵnextContext(); + u.ɵɵadvance(1), u.ɵɵtextInterpolate(Oe.getTitle(le)); + } + } + function L(ne, ae) { + 1 & ne && u.ɵɵelement(0, "mat-header-row"); + } + function F(ne, ae) { + if (1 & ne) { + const le = u.ɵɵgetCurrentView(); + u.ɵɵelementStart(0, "mat-row", 22), + u.ɵɵlistener("click", function () { + const Ye = u.ɵɵrestoreView(le).$implicit; + return u.ɵɵnextContext().selectRow(Ye); + }), + u.ɵɵelementEnd(); + } + } + function ie(ne, ae) { + if (1 & ne) { + const le = u.ɵɵgetCurrentView(); + u.ɵɵelementContainerStart(0), + u.ɵɵtext(1, "\xa0 "), + u.ɵɵelementStart(2, "button", 23), + u.ɵɵlistener("click", function () { + return u.ɵɵrestoreView(le), u.ɵɵnextContext().onUpdate(); + }), + u.ɵɵtext(3, "Update"), + u.ɵɵelementEnd(), + u.ɵɵelementContainerEnd(); + } + } + function Y(ne, ae) { + if (1 & ne) { + const le = u.ɵɵgetCurrentView(); + u.ɵɵelementContainerStart(0), + u.ɵɵtext(1, "\xa0 "), + u.ɵɵelementStart(2, "button", 23), + u.ɵɵlistener("click", function () { + return u.ɵɵrestoreView(le), u.ɵɵnextContext().onDelete(); + }), + u.ɵɵtext(3, "Delete"), + u.ɵɵelementEnd(), + u.ɵɵelementContainerEnd(); + } + } + function Z(ne, ae) { + 1 & ne && + (u.ɵɵelementContainerStart(0), + u.ɵɵelement(1, "mat-progress-spinner", 24), + u.ɵɵelementContainerEnd()); + } + function ee(ne, ae) { + if ( + (1 & ne && + (u.ɵɵelementContainerStart(0), + u.ɵɵelement(1, "app-operation-outcome", 25), + u.ɵɵelementContainerEnd()), + 2 & ne) + ) { + const le = u.ɵɵnextContext(); + u.ɵɵadvance(1), + u.ɵɵproperty("operationOutcome", le.operationOutcome)( + "title", + le.errMsg + ); + } + } + const $ = function () { + return ["packageId", "version", "title"]; + }; + class J { + constructor(ae, le) { + (this.data = ae), + (this.fhirPathService = le), + (this.length = 100), + (this.pageSize = 1e3), + (this.pageIndex = 0), + (this.pageSizeOptions = [this.pageSize]), + (this.dataSource = new _.MatTableDataSource()), + (this.update = !1), + (this.query = { _sort: "title" }), + (this.client = ae.getFhirClient()), + (this.addPackageId = new m.FormControl("", [ + m.Validators.required, + m.Validators.minLength(1), + ])), + (this.addVersion = new m.FormControl("current", [ + m.Validators.required, + m.Validators.minLength(1), + ])), + (this.addUrl = new m.FormControl("url")), + this.search(); + } + search() { + this.client + .search({ + resourceType: "ImplementationGuide", + searchParams: this.query, + }) + .then((ae) => { + (this.pageIndex = 0), + this.setBundle(ae), + (this.selection = void 0), + this.addPackageId.setValue(""), + this.addVersion.setValue(""), + this.addUrl.setValue(""); + }) + .catch((ae) => { + (this.errMsg = "Error accessing FHIR server"), + (this.operationOutcome = ae.response.data); + }), + (this.update = !1); + } + getPackageId(ae) { + const le = ae.resource; + return le.packageId ? le.packageId : ""; + } + getTitle(ae) { + const le = ae.resource; + return le.title ? le.title : ""; + } + getVersion(ae) { + const le = ae.resource; + return le.version ? le.version : ""; + } + getPackageUrl(ae) { + return this.fhirPathService.evaluateToString( + ae.resource, + "extension.where(url='http://ahdis.ch/fhir/extension/packageUrl').valueUri" + ); + } + setBundle(ae) { + (this.bundle = ae), + (this.dataSource.data = this.bundle.entry), + (this.length = this.bundle.total), + (this.selection = void 0); + } + ngOnInit() {} + selectRow(ae) { + (this.selection = ae.resource), + this.addPackageId.setValue(this.selection.packageId), + this.addUrl.setValue(this.getPackageUrl(ae)); + let le = this.selection.version; + le && + le.endsWith(" (current)") && + (le = le.substring(0, le.length - 10)), + this.addVersion.setValue(le); + } + onSubmit() { + if ( + (J.log("onSubmit " + this.addPackageId.value), + (this.errMsg = null), + this.addPackageId.invalid || this.addVersion.invalid) + ) + return void (this.errMsg = "Please provide package name"); + let ae = this.addPackageId.value.trim(); + ae.indexOf("#") > 0 && + (ae.substring(0, ae.indexOf("#") - 1), + this.addVersion.setValue(ae.substring(0, ae.indexOf("#") + 1))), + this.addPackageId.setValue(ae); + const le = this.addVersion.value.trim(); + this.addVersion.setValue(le), + (this.update = !0), + this.client + .create({ + resourceType: "ImplementationGuide", + body: { + resourceType: "ImplementationGuide", + name: ae, + version: le, + packageId: ae, + url: this.addUrl.value, + }, + options: { headers: { Prefer: "return=OperationOutcome" } }, + }) + .then((Oe) => { + (this.errMsg = + "Created Implementation Guide" + this.addPackageId.value), + (this.operationOutcome = Oe), + this.search(); + }) + .catch((Oe) => { + (this.errMsg = + "Error creating Implementation Guide " + + this.addPackageId.value), + (this.operationOutcome = Oe.response.data), + (this.update = !1); + }); + } + goToPage(ae) { + ae.pageIndex > this.pageIndex + ? this.client.nextPage({ bundle: this.bundle }).then((le) => { + (this.pageIndex = ae.pageIndex), + this.setBundle(le), + (this.selection = void 0), + console.log("next page called "); + }) + : this.client.prevPage({ bundle: this.bundle }).then((le) => { + (this.pageIndex = ae.pageIndex), + this.setBundle(le), + (this.selection = void 0), + console.log("previous page called "); + }); + } + onUpdate() { + (this.errMsg = null), + (this.selection.name = this.addPackageId.value), + (this.selection.version = this.addVersion.value), + (this.selection.packageId = this.addPackageId.value), + (this.selection.url = this.addUrl.value), + (this.update = !0), + this.client + .update({ + resourceType: this.selection.resourceType, + id: this.selection.id, + body: this.selection, + options: { headers: { Prefer: "return=OperationOutcome" } }, + }) + .then((ae) => { + (this.errMsg = + "Updated Implementation Guide " + this.selection.packageId), + (this.operationOutcome = ae), + this.search(); + }) + .catch((ae) => { + (this.errMsg = + "Error updating Implementation Guide " + + this.selection.packageId), + (this.operationOutcome = ae.response.data), + (this.update = !1); + }); + } + onDelete() { + (this.errMsg = null), + (this.update = !0), + this.client + .delete({ + resourceType: this.selection.resourceType, + id: this.selection.id, + options: { + headers: { + Prefer: "return=OperationOutcome", + "X-Cascade": "delete", + }, + }, + }) + .then((ae) => { + (this.errMsg = + "Deleted Implementation Guide Resource " + + this.selection.packageId), + (this.operationOutcome = ae), + this.search(); + }) + .catch((ae) => { + (this.errMsg = + "Error deleting Implementation Guide " + + this.selection.packageId), + (this.operationOutcome = ae.response.data), + (this.update = !1); + }); + } + } + (j.IgsComponent = J), + (J.log = (0, s.default)("app:")), + (J.ɵfac = function (ae) { + return new (ae || J)( + u.ɵɵdirectiveInject(h.FhirConfigService), + u.ɵɵdirectiveInject(r.FhirPathService) + ); + }), + (J.ɵcmp = u.ɵɵdefineComponent({ + type: J, + selectors: [["app-igs"]], + decls: 45, + vars: 16, + consts: [ + [1, "card-igs"], + [3, "dataSource"], + ["table", ""], + ["matColumnDef", "packageId"], + ["class", "packageId", 4, "matHeaderCellDef"], + ["class", "packageId", 4, "matCellDef"], + ["matColumnDef", "version"], + ["class", "version", 4, "matHeaderCellDef"], + ["class", "version", 4, "matCellDef"], + ["matColumnDef", "title", 1, "title"], + [4, "matCellDef"], + [4, "matHeaderRowDef"], + [3, "click", 4, "matRowDef", "matRowDefColumns"], + [3, "pageIndex", "length", "pageSize", "pageSizeOptions", "page"], + [1, "Search"], + ["matInput", "", 3, "formControl"], + [2, "width", "50vw"], + ["href", "https://packages.fhir.org"], + [ + "mat-raised-button", + "", + "color", + "primary", + "type", + "submit", + 3, + "click", + ], + [4, "ngIf"], + [1, "packageId"], + [1, "version"], + [3, "click"], + ["mat-button", "", "type", "submit", 3, "click"], + ["mode", "indeterminate"], + [3, "operationOutcome", "title"], + ], + template: function (ae, le) { + 1 & ae && + (u.ɵɵelementStart(0, "mat-card", 0), + u.ɵɵelementStart(1, "mat-card-content"), + u.ɵɵelementStart(2, "mat-card-header"), + u.ɵɵelementStart(3, "mat-card-title"), + u.ɵɵtext(4, "FHIR ImplementationGuides installed on server"), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementStart(5, "mat-table", 1, 2), + u.ɵɵelementContainerStart(7, 3), + u.ɵɵtemplate(8, M, 2, 0, "mat-header-cell", 4), + u.ɵɵtemplate(9, A, 2, 1, "mat-cell", 5), + u.ɵɵelementContainerEnd(), + u.ɵɵelementContainerStart(10, 6), + u.ɵɵtemplate(11, S, 2, 0, "mat-header-cell", 7), + u.ɵɵtemplate(12, w, 2, 1, "mat-cell", 8), + u.ɵɵelementContainerEnd(), + u.ɵɵelementContainerStart(13, 9), + u.ɵɵtemplate(14, I, 2, 0, "mat-header-cell", 4), + u.ɵɵtemplate(15, C, 2, 1, "mat-cell", 10), + u.ɵɵelementContainerEnd(), + u.ɵɵtemplate(16, L, 1, 0, "mat-header-row", 11), + u.ɵɵtemplate(17, F, 1, 0, "mat-row", 12), + u.ɵɵelementEnd(), + u.ɵɵelementStart(18, "mat-paginator", 13), + u.ɵɵlistener("page", function (Le) { + return le.goToPage(Le); + }), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementStart(19, "mat-card", 14), + u.ɵɵelementStart(20, "mat-card-content"), + u.ɵɵelementStart(21, "mat-form-field"), + u.ɵɵelementStart(22, "mat-label"), + u.ɵɵtext(23, "PackageId"), + u.ɵɵelementEnd(), + u.ɵɵelement(24, "input", 15), + u.ɵɵelementEnd(), + u.ɵɵtext(25, " \xa0 "), + u.ɵɵelementStart(26, "mat-form-field"), + u.ɵɵelementStart(27, "mat-label"), + u.ɵɵtext(28, "Version"), + u.ɵɵelementEnd(), + u.ɵɵelement(29, "input", 15), + u.ɵɵelementEnd(), + u.ɵɵtext(30, " \xa0 "), + u.ɵɵelementStart(31, "mat-form-field", 16), + u.ɵɵelementStart(32, "mat-label"), + u.ɵɵtext( + 33, + "Package url (optional, use only if not available through " + ), + u.ɵɵelementStart(34, "a", 17), + u.ɵɵtext(35, "packages.fhir.org"), + u.ɵɵelementEnd(), + u.ɵɵtext(36, ")"), + u.ɵɵelementEnd(), + u.ɵɵelement(37, "input", 15), + u.ɵɵelementEnd(), + u.ɵɵelementStart(38, "mat-card-actions"), + u.ɵɵelementStart(39, "button", 18), + u.ɵɵlistener("click", function () { + return le.onSubmit(); + }), + u.ɵɵtext(40, " Upload "), + u.ɵɵelementEnd(), + u.ɵɵtemplate(41, ie, 4, 0, "ng-container", 19), + u.ɵɵtemplate(42, Y, 4, 0, "ng-container", 19), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵtemplate(43, Z, 2, 0, "ng-container", 19), + u.ɵɵtemplate(44, ee, 2, 2, "ng-container", 19)), + 2 & ae && + (u.ɵɵadvance(5), + u.ɵɵproperty("dataSource", le.dataSource), + u.ɵɵadvance(11), + u.ɵɵproperty("matHeaderRowDef", u.ɵɵpureFunction0(14, $)), + u.ɵɵadvance(1), + u.ɵɵproperty("matRowDefColumns", u.ɵɵpureFunction0(15, $)), + u.ɵɵadvance(1), + u.ɵɵproperty("pageIndex", le.pageIndex)("length", le.length)( + "pageSize", + le.pageSize + )("pageSizeOptions", le.pageSizeOptions), + u.ɵɵadvance(6), + u.ɵɵproperty("formControl", le.addPackageId), + u.ɵɵadvance(5), + u.ɵɵproperty("formControl", le.addVersion), + u.ɵɵadvance(8), + u.ɵɵproperty("formControl", le.addUrl), + u.ɵɵadvance(4), + u.ɵɵproperty("ngIf", le.selection), + u.ɵɵadvance(1), + u.ɵɵproperty("ngIf", le.selection), + u.ɵɵadvance(1), + u.ɵɵproperty("ngIf", le.update), + u.ɵɵadvance(1), + u.ɵɵproperty("ngIf", le.errMsg)); + }, + directives: [ + o.MatCard, + o.MatCardContent, + o.MatCardHeader, + o.MatCardTitle, + i.MatTable, + i.MatColumnDef, + i.MatHeaderCellDef, + i.MatCellDef, + i.MatHeaderRowDef, + i.MatRowDef, + c.MatPaginator, + l.MatFormField, + l.MatLabel, + g.MatInput, + b.DefaultValueAccessor, + b.NgControlStatus, + b.FormControlDirective, + o.MatCardActions, + y.MatButton, + x.NgIf, + i.MatHeaderCell, + i.MatCell, + i.MatHeaderRow, + i.MatRow, + T.MatProgressSpinner, + O.OperationOutcomeComponent, + ], + styles: [ + "[_nghost-%COMP%]{display:flex;flex-direction:column}.mat-form-field.url[_ngcontent-%COMP%]{width:200px}.mat-table[_ngcontent-%COMP%]{margin:1rem}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-table[_ngcontent-%COMP%] .mat-cell.title[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.title[_ngcontent-%COMP%]{flex:2;justify-content:flex-end}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:first-child{padding-left:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-child{padding-right:1rem}.card-igs[_ngcontent-%COMP%]{margin-bottom:10px}", + ], + })); + }, + 6218: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.MappingLanguageComponent = void 0); + const n = p(655), + m = (p(5e3), p(6165), p(3075)), + s = p(3460), + d = (0, n.__importDefault)(p(1455)), + u = (0, n.__importStar)(p(5e3)), + h = (0, n.__importStar)(p(6165)), + r = (0, n.__importStar)(p(9224)), + o = (0, n.__importStar)(p(7322)), + i = (0, n.__importStar)(p(7531)), + c = (0, n.__importStar)(p(3075)), + l = (0, n.__importStar)(p(9808)); + function g(M, A) { + if ( + (1 & M && (u.ɵɵelementStart(0, "li"), u.ɵɵtext(1), u.ɵɵelementEnd()), + 2 & M) + ) { + const S = A.$implicit; + u.ɵɵadvance(1), u.ɵɵtextInterpolate1(" ", S.diagnostics, " "); + } + } + function b(M, A) { + if ( + (1 & M && + (u.ɵɵelementStart(0, "mat-error"), + u.ɵɵelementStart(1, "ul"), + u.ɵɵtemplate(2, g, 2, 1, "li", 7), + u.ɵɵelementEnd(), + u.ɵɵelementEnd()), + 2 & M) + ) { + const S = u.ɵɵnextContext(); + u.ɵɵadvance(2), u.ɵɵproperty("ngForOf", S.operationOutcome.issue); + } + } + function y(M, A) { + if ( + (1 & M && + (u.ɵɵelementStart(0, "mat-hint"), u.ɵɵtext(1), u.ɵɵelementEnd()), + 2 & M) + ) { + const S = u.ɵɵnextContext(); + u.ɵɵadvance(1), + u.ɵɵtextInterpolate1( + "Successfully created on server: ", + S.structureMap.url, + "" + ); + } + } + function x(M, A) { + if ( + (1 & M && (u.ɵɵelementStart(0, "li"), u.ɵɵtext(1), u.ɵɵelementEnd()), + 2 & M) + ) { + const S = A.$implicit; + u.ɵɵadvance(1), u.ɵɵtextInterpolate1(" ", S.diagnostics, " "); + } + } + function T(M, A) { + if ( + (1 & M && + (u.ɵɵelementStart(0, "mat-error"), + u.ɵɵelementStart(1, "ul"), + u.ɵɵtemplate(2, x, 2, 1, "li", 7), + u.ɵɵelementEnd(), + u.ɵɵelementEnd()), + 2 & M) + ) { + const S = u.ɵɵnextContext(); + u.ɵɵadvance(2), + u.ɵɵproperty("ngForOf", S.operationOutcomeTransformed.issue); + } + } + class O { + constructor(A, S) { + (this.cd = A), + (this.data = S), + (this.client = S.getFhirClient()), + (this.source = new m.FormControl()), + (this.map = new m.FormControl()), + (this.structureMap = null), + this.map.valueChanges + .pipe((0, s.debounceTime)(1e3), (0, s.distinctUntilChanged)()) + .subscribe((w) => { + O.log("create StructureMap"), + this.client + .create({ + resourceType: "StructureMap", + body: w, + headers: { + accept: "application/fhir+json", + "content-type": "text/fhir-mapping", + }, + }) + .then((I) => { + (this.operationOutcome = null), + (this.structureMap = I), + this.transform(); + }) + .catch((I) => { + (this.structureMap = null), + (this.operationOutcome = I.response.data); + }); + }), + this.source.valueChanges + .pipe((0, s.debounceTime)(1e3), (0, s.distinctUntilChanged)()) + .subscribe((w) => this.transform()); + } + transform() { + O.log("transform Source"); + let A = JSON.parse(this.source.value); + null != this.structureMap && + this.client + .operation({ + name: + "transform?source=" + + encodeURIComponent(this.structureMap.url), + resourceType: "StructureMap", + input: A, + }) + .then((S) => { + (this.operationOutcomeTransformed = null), + (this.transformed = S); + }) + .catch((S) => { + (this.transformed = null), + (this.operationOutcomeTransformed = S.response.data); + }); + } + ngOnInit() {} + fileSource(A) { + const S = new FileReader(); + if (A.target.files && A.target.files.length) { + const [w] = A.target.files; + S.readAsText(w), + (S.onload = () => { + this.source.setValue(S.result), this.cd.markForCheck(); + }); + } + } + fileChange(A) { + const S = new FileReader(); + if (A.target.files && A.target.files.length) { + const [w] = A.target.files; + S.readAsText(w), + (S.onload = () => { + this.map.setValue(S.result), this.cd.markForCheck(); + }); + } + } + } + (j.MappingLanguageComponent = O), + (O.log = (0, d.default)("app:")), + (O.ɵfac = function (A) { + return new (A || O)( + u.ɵɵdirectiveInject(u.ChangeDetectorRef), + u.ɵɵdirectiveInject(h.FhirConfigService) + ); + }), + (O.ɵcmp = u.ɵɵdefineComponent({ + type: O, + selectors: [["app-mapping-language"]], + decls: 31, + vars: 8, + consts: [ + [1, "card-maps"], + [1, "fixtextarea"], + [ + "type", + "file", + "placeholder", + "Upload source", + "accept", + ".json", + 3, + "change", + ], + [ + "matNativeControl", + "", + "rows", + "15", + "cols", + "400", + 3, + "formControl", + ], + [ + "type", + "file", + "placeholder", + "Upload map", + "accept", + ".map", + 3, + "change", + ], + [ + "matNativeControl", + "", + "rows", + "20", + "cols", + "400", + 3, + "formControl", + ], + [4, "ngIf"], + [4, "ngFor", "ngForOf"], + ], + template: function (A, S) { + 1 & A && + (u.ɵɵelementStart(0, "mat-card", 0), + u.ɵɵelementStart(1, "mat-card-content"), + u.ɵɵelementStart(2, "mat-card-header"), + u.ɵɵelementStart(3, "mat-card-title"), + u.ɵɵtext(4, "Source"), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementStart(5, "mat-form-field", 1), + u.ɵɵelementStart(6, "mat-card-actions"), + u.ɵɵelementStart(7, "input", 2), + u.ɵɵlistener("change", function (I) { + return S.fileSource(I); + }), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementStart(8, "textarea", 3), + u.ɵɵtext(9, " "), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementStart(10, "mat-card", 0), + u.ɵɵelementStart(11, "mat-card-content"), + u.ɵɵelementStart(12, "mat-card-header"), + u.ɵɵelementStart(13, "mat-card-title"), + u.ɵɵtext(14, "FHIR Mapping Language map"), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementStart(15, "mat-form-field", 1), + u.ɵɵelementStart(16, "mat-card-actions"), + u.ɵɵelementStart(17, "input", 4), + u.ɵɵlistener("change", function (I) { + return S.fileChange(I); + }), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementStart(18, "textarea", 5), + u.ɵɵtext(19, " "), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵtemplate(20, b, 3, 1, "mat-error", 6), + u.ɵɵtemplate(21, y, 2, 1, "mat-hint", 6), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementStart(22, "mat-card", 0), + u.ɵɵelementStart(23, "mat-card-content"), + u.ɵɵelementStart(24, "mat-card-header"), + u.ɵɵelementStart(25, "mat-card-title"), + u.ɵɵtext(26, "Transformed"), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵtemplate(27, T, 3, 1, "mat-error", 6), + u.ɵɵelementStart(28, "pre"), + u.ɵɵtext(29), + u.ɵɵpipe(30, "json"), + u.ɵɵelementEnd(), + u.ɵɵelementEnd(), + u.ɵɵelementEnd()), + 2 & A && + (u.ɵɵadvance(8), + u.ɵɵproperty("formControl", S.source), + u.ɵɵadvance(10), + u.ɵɵproperty("formControl", S.map), + u.ɵɵadvance(2), + u.ɵɵproperty("ngIf", S.operationOutcome), + u.ɵɵadvance(1), + u.ɵɵproperty("ngIf", S.structureMap), + u.ɵɵadvance(6), + u.ɵɵproperty("ngIf", S.operationOutcomeTransformed), + u.ɵɵadvance(2), + u.ɵɵtextInterpolate(u.ɵɵpipeBind1(30, 6, S.transformed))); + }, + directives: [ + r.MatCard, + r.MatCardContent, + r.MatCardHeader, + r.MatCardTitle, + o.MatFormField, + r.MatCardActions, + i.MatInput, + c.DefaultValueAccessor, + c.NgControlStatus, + c.FormControlDirective, + l.NgIf, + o.MatError, + l.NgForOf, + o.MatHint, + ], + pipes: [l.JsonPipe], + styles: [ + ".fixtextarea[_ngcontent-%COMP%]{display:inline}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}", + ], + })); + }, + 7259: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.OperationOutcomeComponent = void 0); + const n = p(655), + _ = (p(5e3), (0, n.__importStar)(p(5682))), + m = (0, n.__importStar)(p(5e3)), + s = (0, n.__importStar)(p(9224)), + d = (0, n.__importStar)(p(9808)), + u = ["editor"]; + function h(g, b) { + if ( + (1 & g && + (m.ɵɵelementContainerStart(0), + m.ɵɵtext(1), + m.ɵɵelementContainerEnd()), + 2 & g) + ) { + const y = m.ɵɵnextContext().$implicit; + m.ɵɵadvance(1), m.ɵɵtextInterpolate1(" ", y.diagnostics, " "); + } + } + function r(g, b) { + if ( + (1 & g && + (m.ɵɵelementStart(0, "li", 5), m.ɵɵtext(1), m.ɵɵelementEnd()), + 2 & g) + ) { + const y = b.$implicit; + m.ɵɵadvance(1), m.ɵɵtextInterpolate1(" ", y, " "); + } + } + function o(g, b) { + if ( + (1 & g && + (m.ɵɵelementContainerStart(0), + m.ɵɵelementStart(1, "ol"), + m.ɵɵtemplate(2, r, 2, 1, "li", 4), + m.ɵɵelementEnd(), + m.ɵɵelementContainerEnd()), + 2 & g) + ) { + const y = m.ɵɵnextContext().$implicit, + x = m.ɵɵnextContext(2); + m.ɵɵadvance(2), m.ɵɵproperty("ngForOf", x.getSliceInfo(y)); + } + } + function i(g, b) { + if (1 & g) { + const y = m.ɵɵgetCurrentView(); + m.ɵɵelementStart(0, "div", 5), + m.ɵɵelementStart(1, "a", 6), + m.ɵɵlistener("click", function () { + const O = m.ɵɵrestoreView(y).$implicit, + M = m.ɵɵnextContext(2); + return M.scroll(M.getLineNo(O)); + }), + m.ɵɵtext(2), + m.ɵɵelementEnd(), + m.ɵɵtext(3, ":"), + m.ɵɵelement(4, "br"), + m.ɵɵtemplate(5, h, 2, 1, "ng-container", 1), + m.ɵɵtemplate(6, o, 3, 1, "ng-container", 1), + m.ɵɵelementEnd(); + } + if (2 & g) { + const y = b.$implicit, + x = m.ɵɵnextContext(2); + m.ɵɵadvance(1), + m.ɵɵclassMap(y.severity), + m.ɵɵadvance(1), + m.ɵɵtextInterpolate2( + "", + x.getLineFromExtension(y), + ": ", + x.getLocation(y), + "" + ), + m.ɵɵadvance(3), + m.ɵɵproperty("ngIf", 0 == x.hasSliceInfo(y)), + m.ɵɵadvance(1), + m.ɵɵproperty("ngIf", x.hasSliceInfo(y)); + } + } + function c(g, b) { + if ( + (1 & g && + (m.ɵɵelementStart(0, "div"), + m.ɵɵtemplate(1, i, 7, 7, "div", 4), + m.ɵɵelementEnd()), + 2 & g) + ) { + const y = m.ɵɵnextContext(); + m.ɵɵadvance(1), m.ɵɵproperty("ngForOf", y.outcome.issue); + } + } + class l { + constructor() { + this.mode = "ace/mode/json"; + } + ngOnInit() {} + ngAfterViewInit() { + var b; + this.editor && + this.editor.nativeElement && + (_.config.set("fontSize", "11px"), + _.config.set( + "basePath", + "https://unpkg.com/ace-builds@1.4.12/src-noconflict" + ), + (this.aceEditor = _.edit(this.editor.nativeElement)), + this.aceEditor.setOption("useWorker", !1), + this.aceEditor.setTheme("ace/theme/chrome"), + (null === (b = this.mode) || void 0 === b + ? void 0 + : b.indexOf("xml")) >= 0 + ? this.aceEditor.session.setMode("ace/mode/xml") + : this.aceEditor.session.setMode("ace/mode/json"), + this.aceEditor.session.setValue(this.content), + this.aceEditor.setReadOnly(!0), + this.aceEditor.on("change", () => { + console.log(this.aceEditor.getValue()); + }), + this.updateAnnotations()); + } + updateAnnotations() { + var b, y; + const x = []; + if (this.outcome && this.aceEditor) { + const T = this.aceEditor.session.getMarkers(); + if (T) { + const O = Object.keys(T); + for (let M of O) this.aceEditor.session.removeMarker(T[M].id); + } + null === (b = this.outcome.issue) || + void 0 === b || + b.forEach((O) => + this.aceEditor + .getSession() + .addMarker( + new _.Range( + this.getLineNo(O) - 1, + 0, + this.getLineNo(O) - 1, + 1 + ), + this.getLineAceClass(O), + "fullLine", + !0 + ) + ), + null === (y = this.outcome.issue) || + void 0 === y || + y.forEach((O) => + x.push({ + row: this.getLineNo(O) - 1, + column: 0, + text: O.diagnostics, + type: this.getErrorType(O), + }) + ), + this.aceEditor.session.setAnnotations(x); + } + } + getErrorType(b) { + switch (b.severity) { + case "fatal": + case "error": + return "error"; + case "warning": + case "information": + return "warning"; + } + return ""; + } + set json(b) { + (this.content = b), this.ngAfterViewInit(); + } + set operationOutcome(b) { + var y, x; + (this.outcome = b), + this.outcome && + (null === (y = this.outcome.issue) || void 0 === y + ? void 0 + : y.length) > 0 && + (null === (x = this.outcome.issue) || + void 0 === x || + x.sort((T, O) => this.getLineNo(T) - this.getLineNo(O)), + this.ngAfterViewInit()); + } + getJson() { + return this.content; + } + getLineAceClass(b) { + return "ace-highlight-" + (null == b ? void 0 : b.severity); + } + getLineNo(b) { + var y; + return (null === (y = b.extension) || void 0 === y + ? void 0 + : y.length) > 0 + ? b.extension[0].valueInteger + : 0; + } + hasSliceInfo(b) { + var y; + return ( + (null === (y = null == b ? void 0 : b.diagnostics) || void 0 === y + ? void 0 + : y.indexOf("Slice info:")) >= 0 + ); + } + getSliceInfo(b) { + var y; + let x = + null == b + ? void 0 + : b.diagnostics + .substring( + (null === (y = null == b ? void 0 : b.diagnostics) || + void 0 === y + ? void 0 + : y.indexOf("Slice info: 1.)")) + 15 + ) + .trimLeft(), + T = new RegExp("[\\d]+[\\.][\\)]"); + return x.split(T); + } + getLineFromExtension(b) { + var y; + return (null === (y = b.extension) || void 0 === y + ? void 0 + : y.length) > 0 + ? "L" + b.extension[0].valueInteger + : ""; + } + getLocation(b) { + var y; + return (null === (y = b.location) || void 0 === y + ? void 0 + : y.length) > 0 + ? b.location[0] + : ""; + } + scroll(b) { + (b -= 1) < 0 && (b = 0), this.aceEditor.scrollToLine(b, !1, !0, null); + } + } + (j.OperationOutcomeComponent = l), + (l.ɵfac = function (b) { + return new (b || l)(); + }), + (l.ɵcmp = m.ɵɵdefineComponent({ + type: l, + selectors: [["app-operation-outcome"]], + viewQuery: function (b, y) { + if ((1 & b && m.ɵɵviewQuery(u, 5), 2 & b)) { + let x; + m.ɵɵqueryRefresh((x = m.ɵɵloadQuery())) && (y.editor = x.first); + } + }, + inputs: { + mode: "mode", + title: "title", + json: "json", + operationOutcome: "operationOutcome", + }, + decls: 8, + vars: 2, + consts: [ + [1, "card-maps"], + [4, "ngIf"], + [1, "app-ace-editor", 2, "width", "100%", "height", "500px"], + ["editor", ""], + ["class", "issue", 4, "ngFor", "ngForOf"], + [1, "issue"], + [3, "click"], + ], + template: function (b, y) { + 1 & b && + (m.ɵɵelementStart(0, "mat-card", 0), + m.ɵɵelementStart(1, "mat-card-content"), + m.ɵɵelementStart(2, "mat-card-header"), + m.ɵɵelementStart(3, "mat-card-title"), + m.ɵɵtext(4), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵtemplate(5, c, 2, 1, "div", 1), + m.ɵɵelement(6, "div", 2, 3), + m.ɵɵelementEnd(), + m.ɵɵelementEnd()), + 2 & b && + (m.ɵɵadvance(4), + m.ɵɵtextInterpolate(y.title), + m.ɵɵadvance(1), + m.ɵɵproperty("ngIf", y.outcome)); + }, + directives: [ + s.MatCard, + s.MatCardContent, + s.MatCardHeader, + s.MatCardTitle, + d.NgIf, + d.NgForOf, + ], + styles: [ + ".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.app-ace-editor[_ngcontent-%COMP%]{border:2px solid #f8f9fa;box-shadow:0 .5rem 1rem #00000026}.issue[_ngcontent-%COMP%]{border:2px solid #f8f9fa;padding:2px}.fatal[_ngcontent-%COMP%]{background:#cc3300}.error[_ngcontent-%COMP%]{background:#ff9966}.warning[_ngcontent-%COMP%]{background:#ffe69e}.information[_ngcontent-%COMP%]{background:#cde8a5} .ace-highlight-fatal{position:absolute;background:#cc3300;opacity:.4} .ace-highlight-error{position:absolute;background:#ff9966;opacity:.4} .ace-highlight-warning{position:absolute;background:#ffcc00;opacity:.4} .ace-highlight-information{position:absolute;background:#99cc33;opacity:.4}", + ], + })); + }, + 4586: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.SettingsComponent = void 0); + const n = p(655), + _ = (p(6165), (0, n.__importDefault)(p(1455))), + s = (p(4202), (0, n.__importStar)(p(5e3))), + d = (0, n.__importStar)(p(6165)), + u = (0, n.__importStar)(p(4202)), + h = (0, n.__importStar)(p(9224)), + r = (0, n.__importStar)(p(3075)), + o = (0, n.__importStar)(p(7322)), + i = (0, n.__importStar)(p(4107)), + c = (0, n.__importStar)(p(9808)), + l = (0, n.__importStar)(p(508)); + function g(y, x) { + if ( + (1 & y && + (s.ɵɵelementStart(0, "mat-option", 2), + s.ɵɵtext(1), + s.ɵɵelementEnd()), + 2 & y) + ) { + const T = x.$implicit; + s.ɵɵproperty("value", T), + s.ɵɵadvance(1), + s.ɵɵtextInterpolate1(" ", T, " "); + } + } + class b { + constructor(x, T) { + (this.data = x), + (this.router = T), + (this.fhirServers = [ + "https://test.ahdis.ch/matchboxv3/fhir", + "https://gazelle.ihe.net/matchbox/fhir", + "https://ehealthsuisse.ihe-europe.net/matchbox/fhir", + "https://hapi.fhir.org/baseR4", + "http://hapi.fhir.org/baseR4", + "http://tx.fhir.org/r4/", + "http://test.fhir.org/r4", + "https://test.ahdis.ch/mag-cara/fhir", + "https://test.ahdis.ch/mag-pmp/fhir", + "https://test.ahdis.ch/mag-bfh/fhir", + "https://test.ahdis.ch/mag-test-emedo/fhir", + "http://localhost:8080/matchboxv3/fhir", + "http://localhost:9090/mag-pmp/fhir", + "http://localhost:9090/mag-cara/fhir", + "https://fhir-mapping-lab.azurewebsites.net/", + ]), + (this.client = x.getFhirClient()); + } + ngOnInit() { + this.baseUrlFhir = this.data.getFhirMicroService(); + } + getFhirSelectedValue() { + return this.baseUrlFhir; + } + setFhirSelectedValue(x) { + (0, _.default)("setting new server to " + x), + this.data.changeFhirMicroService(x); + } + } + (j.SettingsComponent = b), + (b.ɵfac = function (x) { + return new (x || b)( + s.ɵɵdirectiveInject(d.FhirConfigService), + s.ɵɵdirectiveInject(u.Router) + ); + }), + (b.ɵcmp = s.ɵɵdefineComponent({ + type: b, + selectors: [["app-settings"]], + decls: 7, + vars: 2, + consts: [ + [ + "placeholder", + "FHIR Server", + "name", + "selectserver", + 3, + "ngModel", + "ngModelChange", + ], + [3, "value", 4, "ngFor", "ngForOf"], + [3, "value"], + ], + template: function (x, T) { + 1 & x && + (s.ɵɵelementStart(0, "mat-card"), + s.ɵɵelementStart(1, "mat-card-content"), + s.ɵɵelementStart(2, "form"), + s.ɵɵelementStart(3, "mat-form-field"), + s.ɵɵelementStart(4, "mat-select", 0), + s.ɵɵlistener("ngModelChange", function (M) { + return T.setFhirSelectedValue(M); + }), + s.ɵɵtemplate(5, g, 2, 2, "mat-option", 1), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵelement(6, "br"), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵelementEnd()), + 2 & x && + (s.ɵɵadvance(4), + s.ɵɵproperty("ngModel", T.getFhirSelectedValue()), + s.ɵɵadvance(1), + s.ɵɵproperty("ngForOf", T.fhirServers)); + }, + directives: [ + h.MatCard, + h.MatCardContent, + r.ɵNgNoValidate, + r.NgControlStatusGroup, + r.NgForm, + o.MatFormField, + i.MatSelect, + r.NgControlStatus, + r.NgModel, + c.NgForOf, + l.MatOption, + ], + styles: [""], + })); + }, + 4466: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.SharedModule = void 0); + const n = p(655), + f = p(9808), + _ = p(3075), + m = p(6360), + s = p(2313), + d = p(8922), + u = p(1079), + h = p(7423), + r = p(9224), + o = p(7446), + i = p(508), + c = p(4703), + l = p(4834), + g = p(7322), + b = p(5245), + y = p(7531), + x = p(2181), + T = p(7850), + O = p(9814), + M = p(4107), + A = p(2368), + S = p(8029), + w = p(6346), + I = p(3251), + C = p(4594), + L = p(2466), + F = p(773), + ie = (0, n.__importStar)(p(5e3)), + Y = [ + f.CommonModule, + s.BrowserModule, + m.BrowserAnimationsModule, + _.FormsModule, + _.ReactiveFormsModule, + L.TranslateModule, + u.MatAutocompleteModule, + h.MatButtonModule, + r.MatCardModule, + o.MatCheckboxModule, + l.MatDividerModule, + g.MatFormFieldModule, + b.MatIconModule, + y.MatInputModule, + x.MatMenuModule, + T.MatPaginatorModule, + M.MatSelectModule, + S.MatSliderModule, + A.MatSlideToggleModule, + w.MatTableModule, + C.MatToolbarModule, + I.MatTabsModule, + c.MatDatepickerModule, + i.MatNativeDateModule, + O.MatRadioModule, + d.FileSizeModule, + F.MatProgressSpinnerModule, + ]; + class ee {} + (j.SharedModule = ee), + (ee.ɵfac = function (J) { + return new (J || ee)(); + }), + (ee.ɵmod = ie.ɵɵdefineNgModule({ type: ee })), + (ee.ɵinj = ie.ɵɵdefineInjector({ + imports: [ + Y, + f.CommonModule, + s.BrowserModule, + m.BrowserAnimationsModule, + _.FormsModule, + _.ReactiveFormsModule, + L.TranslateModule, + u.MatAutocompleteModule, + h.MatButtonModule, + r.MatCardModule, + o.MatCheckboxModule, + l.MatDividerModule, + g.MatFormFieldModule, + b.MatIconModule, + y.MatInputModule, + x.MatMenuModule, + T.MatPaginatorModule, + M.MatSelectModule, + S.MatSliderModule, + A.MatSlideToggleModule, + w.MatTableModule, + C.MatToolbarModule, + I.MatTabsModule, + c.MatDatepickerModule, + i.MatNativeDateModule, + O.MatRadioModule, + d.FileSizeModule, + F.MatProgressSpinnerModule, + ], + })); + }, + 719: (ye, j, p) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.TransformComponent = void 0); + const n = p(655), + m = (p(5e3), p(6165), p(3075)), + s = p(3460), + d = (0, n.__importStar)(p(5e3)), + u = (0, n.__importStar)(p(6165)), + h = (0, n.__importStar)(p(9224)), + r = (0, n.__importStar)(p(68)), + o = (0, n.__importStar)(p(2756)), + i = (0, n.__importStar)(p(7322)), + c = (0, n.__importStar)(p(4107)), + l = (0, n.__importStar)(p(3075)), + g = (0, n.__importStar)(p(9808)), + b = (0, n.__importStar)(p(508)); + function y(M, A) { + if ( + (1 & M && + (d.ɵɵelementStart(0, "mat-option", 7), + d.ɵɵtext(1), + d.ɵɵelementEnd()), + 2 & M) + ) { + const S = A.$implicit; + d.ɵɵpropertyInterpolate("value", S.url), + d.ɵɵadvance(1), + d.ɵɵtextInterpolate(S.name); + } + } + function x(M, A) { + if ( + (1 & M && (d.ɵɵelementStart(0, "li"), d.ɵɵtext(1), d.ɵɵelementEnd()), + 2 & M) + ) { + const S = A.$implicit; + d.ɵɵadvance(1), d.ɵɵtextInterpolate1(" ", S.diagnostics, " "); + } + } + function T(M, A) { + if ( + (1 & M && + (d.ɵɵelementStart(0, "mat-error"), + d.ɵɵelementStart(1, "ul"), + d.ɵɵtemplate(2, x, 2, 1, "li", 8), + d.ɵɵelementEnd(), + d.ɵɵelementEnd()), + 2 & M) + ) { + const S = d.ɵɵnextContext(); + d.ɵɵadvance(2), + d.ɵɵproperty("ngForOf", S.operationOutcomeTransformed.issue); + } + } + class O { + constructor(A, S) { + (this.data = A), + (this.cd = S), + (this.query = { _summary: "true", _sort: "name" }), + (this.panelOpenState = !1), + (this.client = A.getFhirClient()), + this.client + .search({ + resourceType: "StructureMap", + searchParams: this.query, + }) + .then((w) => (this.setMaps(w), w)), + (this.selectedMap = new m.FormControl()), + this.selectedMap.valueChanges + .pipe((0, s.debounceTime)(400), (0, s.distinctUntilChanged)()) + .subscribe((w) => { + (this.selectedUrl = w), this.transform(); + }); + } + transform() { + null != this.source && + null != this.selectedUrl && + this.client + .operation({ + name: + "transform?source=" + encodeURIComponent(this.selectedUrl), + resourceType: "StructureMap", + input: this.source, + options: { headers: { "content-type": this.mimeType } }, + }) + .then((A) => { + (this.operationOutcomeTransformed = null), + (this.transformed = A); + }) + .catch((A) => { + (this.transformed = null), + (this.operationOutcomeTransformed = A.response.data); + }); + } + getSource() { + return this.source; + } + getMapped() { + return JSON.stringify(this.transformed, null, 2); + } + setMaps(A) { + this.structureMaps = A.entry.map((S) => S.resource); + } + ngOnInit() {} + addFile(A) { + (this.transformed = null), + ("application/json" === A.contentType || + A.name.endsWith(".json")) && + (this.mimeType = "application/fhir+json"), + ("application/xml" === A.contentType || A.name.endsWith(".xml")) && + (this.mimeType = "application/fhir+xml"); + const S = new FileReader(); + S.readAsText(A.blob), + (S.onload = () => { + this.source = S.result; + }); + } + } + (j.TransformComponent = O), + (O.ɵfac = function (A) { + return new (A || O)( + d.ɵɵdirectiveInject(u.FhirConfigService), + d.ɵɵdirectiveInject(d.ChangeDetectorRef) + ); + }), + (O.ɵcmp = d.ɵɵdefineComponent({ + type: O, + selectors: [["app-transform"]], + decls: 24, + vars: 8, + consts: [ + [1, "card-maps"], + [3, "addFiles"], + [3, "highlight", "lineNumbers"], + ["appearance", "fill"], + [3, "formControl"], + [3, "value", 4, "ngFor", "ngForOf"], + [4, "ngIf"], + [3, "value"], + [4, "ngFor", "ngForOf"], + ], + template: function (A, S) { + 1 & A && + (d.ɵɵelementStart(0, "mat-card", 0), + d.ɵɵelementStart(1, "mat-card-content"), + d.ɵɵelementStart(2, "mat-card-header"), + d.ɵɵelementStart(3, "mat-card-title"), + d.ɵɵtext(4), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementStart(5, "div"), + d.ɵɵtext(6, "Resource"), + d.ɵɵelementEnd(), + d.ɵɵelementStart(7, "app-upload", 1), + d.ɵɵlistener("addFiles", function (I) { + return S.addFile(I); + }), + d.ɵɵelementEnd(), + d.ɵɵelementStart(8, "pre"), + d.ɵɵelement(9, "code", 2), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementStart(10, "mat-card", 0), + d.ɵɵelementStart(11, "mat-form-field", 3), + d.ɵɵelementStart(12, "mat-label"), + d.ɵɵtext(13, "Map for transforming"), + d.ɵɵelementEnd(), + d.ɵɵelementStart(14, "mat-select", 4), + d.ɵɵtemplate(15, y, 2, 2, "mat-option", 5), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementStart(16, "mat-card", 0), + d.ɵɵelementStart(17, "mat-card-content"), + d.ɵɵelementStart(18, "mat-card-header"), + d.ɵɵelementStart(19, "mat-card-title"), + d.ɵɵtext(20, "Transformed"), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵtemplate(21, T, 3, 1, "mat-error", 6), + d.ɵɵelementStart(22, "pre"), + d.ɵɵelement(23, "code", 2), + d.ɵɵelementEnd(), + d.ɵɵelementEnd(), + d.ɵɵelementEnd()), + 2 & A && + (d.ɵɵadvance(4), + d.ɵɵtextInterpolate(S.client.baseUrl), + d.ɵɵadvance(5), + d.ɵɵproperty("highlight", S.getSource())("lineNumbers", !0), + d.ɵɵadvance(5), + d.ɵɵproperty("formControl", S.selectedMap), + d.ɵɵadvance(1), + d.ɵɵproperty("ngForOf", S.structureMaps), + d.ɵɵadvance(6), + d.ɵɵproperty("ngIf", S.operationOutcomeTransformed), + d.ɵɵadvance(2), + d.ɵɵproperty("highlight", S.getMapped())("lineNumbers", !0)); + }, + directives: [ + h.MatCard, + h.MatCardContent, + h.MatCardHeader, + h.MatCardTitle, + r.UploadComponent, + o.Highlight, + i.MatFormField, + i.MatLabel, + c.MatSelect, + l.NgControlStatus, + l.FormControlDirective, + g.NgForOf, + g.NgIf, + b.MatOption, + i.MatError, + ], + styles: [".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"], + })); + }, + 68: (ye, j, p) => { + "use strict"; + var n = p(8926).default; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.UploadComponent = void 0); + const f = p(655), + _ = p(5e3), + m = (0, f.__importStar)(p(5e3)), + s = (0, f.__importStar)(p(5245)), + d = (0, f.__importStar)(p(7423)); + class u { + constructor() { + (this.addFiles = new _.EventEmitter()), (this.dragCounter = 0); + } + checkStatus(r) { + if (!r.ok) throw new Error(`HTTP ${r.status} - ${r.statusText}`); + return r; + } + onDrop(r) { + r.preventDefault(), (this.dragCounter = 0); + const o = r.target.files || r.dataTransfer.items; + if (o) + for (let c = 0; c < o.length; c++) { + if (void 0 === o[c].kind || "file" === o[c].kind) { + const l = o[c].getAsFile ? o[c].getAsFile() : o[c]; + this.addFiles.emit({ name: l.name, contentType: "", blob: l }); + } + if ("string" === o[c].kind || "text/uri-list" === o[c].kind) { + var i = r.dataTransfer.getData("URL"); + this.fetchData(i); + } + } + } + fetchData(r) { + var o = this; + return n(function* () { + const i = yield fetch(r, { cache: "no-store" }), + c = i.headers.get("Content-Type"), + l = yield i.blob(); + o.addFiles.emit({ name: r, contentType: c, blob: l }); + })(); + } + onDragOver(r) { + r.preventDefault(); + } + onDragEnter() { + this.dragCounter++; + } + onDragLeave() { + this.dragCounter--; + } + } + (j.UploadComponent = u), + (u.ɵfac = function (r) { + return new (r || u)(); + }), + (u.ɵcmp = m.ɵɵdefineComponent({ + type: u, + selectors: [["app-upload"]], + outputs: { addFiles: "addFiles" }, + decls: 12, + vars: 2, + consts: [ + [1, "attachment-field"], + [1, "drop-zone", 3, "dragover", "drop", "dragenter", "dragleave"], + [3, "dragover", "dragenter", "dragleave"], + [1, "bold-text", 3, "dragenter", "dragleave"], + [1, "spacer"], + [ + "mat-raised-button", + "", + "color", + "primary", + "type", + "button", + 3, + "click", + ], + ["hidden", "", "type", "file", 3, "change"], + ["fileInput", ""], + ], + template: function (r, o) { + if (1 & r) { + const i = m.ɵɵgetCurrentView(); + m.ɵɵelementStart(0, "div", 0), + m.ɵɵelementStart(1, "div", 1), + m.ɵɵlistener("dragover", function (l) { + return o.onDragOver(l); + })("drop", function (l) { + return o.onDrop(l); + })("dragenter", function () { + return o.onDragEnter(); + })("dragleave", function () { + return o.onDragLeave(); + }), + m.ɵɵelementStart(2, "mat-icon", 2), + m.ɵɵlistener("dragover", function (l) { + return o.onDragOver(l); + })("dragenter", function () { + return o.onDragEnter(); + })("dragleave", function () { + return o.onDragLeave(); + }), + m.ɵɵtext(3, "cloud_upload"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(4, "div", 3), + m.ɵɵlistener("dragenter", function () { + return o.onDragEnter(); + })("dragleave", function () { + return o.onDragLeave(); + }), + m.ɵɵtext(5, " Drop file here "), + m.ɵɵelementEnd(), + m.ɵɵelementStart(6, "div", 4), + m.ɵɵtext(7, "or"), + m.ɵɵelementEnd(), + m.ɵɵelementStart(8, "button", 5), + m.ɵɵlistener("click", function () { + return m.ɵɵrestoreView(i), m.ɵɵreference(11).click(); + }), + m.ɵɵtext(9, " Add file "), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(), + m.ɵɵelementStart(10, "input", 6, 7), + m.ɵɵlistener("change", function (l) { + return o.onDrop(l); + }), + m.ɵɵelementEnd(); + } + 2 & r && + (m.ɵɵadvance(1), m.ɵɵclassProp("file-over", o.dragCounter > 0)); + }, + directives: [s.MatIcon, d.MatButton], + styles: [ + "[_nghost-%COMP%]{display:flex;flex-direction:column}.attachment-field[_ngcontent-%COMP%]{border-radius:5px;background:#f0f3f6}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;display:flex;align-items:center;height:40px}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .attachment-name[_ngcontent-%COMP%]{flex:1;padding:0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .attachment-size[_ngcontent-%COMP%]:last-child{margin-right:1rem}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;line-height:inherit}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%]{text-align:center;padding:2rem;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.attachment-field[_ngcontent-%COMP%] .drop-zone.file-over[_ngcontent-%COMP%]{background:#e0e6ec}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{line-height:3rem}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%] .bold-text[_ngcontent-%COMP%]{font-weight:700}", + ], + changeDetection: 0, + })); + }, + 3026: (ye, j, p) => { + "use strict"; + var n = p(8926).default; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.ValidateComponent = void 0); + const f = p(655), + s = (p(5e3), p(6165), p(3075)), + d = (0, f.__importDefault)(p(4956)), + u = (0, f.__importDefault)(p(1654)), + h = p(6346), + r = (0, f.__importStar)(p(5e3)), + o = (0, f.__importStar)(p(6165)), + i = (0, f.__importStar)(p(9224)), + c = (0, f.__importStar)(p(68)), + l = (0, f.__importStar)(p(7322)), + g = (0, f.__importStar)(p(4107)), + b = (0, f.__importStar)(p(3075)), + y = (0, f.__importStar)(p(9808)), + x = (0, f.__importStar)(p(7423)), + T = (0, f.__importStar)(p(6346)), + O = (0, f.__importStar)(p(2181)), + M = (0, f.__importStar)(p(5245)), + A = (0, f.__importStar)(p(508)), + S = (0, f.__importStar)(p(773)), + w = (0, f.__importStar)(p(7259)), + I = (0, f.__importStar)(p(7531)); + function C(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "mat-option", 26), + r.ɵɵtext(1), + r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = Et.$implicit; + r.ɵɵproperty("value", Ee), + r.ɵɵadvance(1), + r.ɵɵtextInterpolate1(" ", Ee, " "); + } + } + function L(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "mat-option", 26), + r.ɵɵtext(1), + r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = Et.$implicit; + r.ɵɵproperty("value", Ee), + r.ɵɵadvance(1), + r.ɵɵtextInterpolate1(" ", Ee, " "); + } + } + function F(Bt, Et) { + 1 & Bt && + (r.ɵɵelementContainerStart(0), + r.ɵɵelement(1, "mat-progress-spinner", 27), + r.ɵɵelementContainerEnd()); + } + function ie(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementContainerStart(0), + r.ɵɵelement(1, "app-operation-outcome", 28), + r.ɵɵelementContainerEnd()), + 2 & Bt) + ) { + const Ee = r.ɵɵnextContext(); + r.ɵɵadvance(1), + r.ɵɵproperty("operationOutcome", Ee.operationOutcome)( + "title", + Ee.errMsg + ); + } + } + function Y(Bt, Et) { + 1 & Bt && + (r.ɵɵelementStart(0, "mat-header-cell", 29), + r.ɵɵtext(1, "Resource"), + r.ɵɵelementEnd()); + } + function Z(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "mat-cell", 29), + r.ɵɵtext(1), + r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = Et.$implicit; + r.ɵɵadvance(1), r.ɵɵtextInterpolate(Ee.name); + } + } + function ee(Bt, Et) { + 1 & Bt && + (r.ɵɵelementStart(0, "mat-header-cell", 30), + r.ɵɵtext(1, "Profile/IG"), + r.ɵɵelementEnd()); + } + function $(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "div"), r.ɵɵtext(1), r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = Et.$implicit; + r.ɵɵadvance(1), r.ɵɵtextInterpolate1(" ", Ee, " "); + } + } + function J(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "div"), r.ɵɵtext(1), r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = r.ɵɵnextContext().$implicit; + r.ɵɵadvance(1), r.ɵɵtextInterpolate1(" ", Ee.ig, " "); + } + } + function ne(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "mat-cell", 30), + r.ɵɵelementStart(1, "div"), + r.ɵɵtemplate(2, $, 2, 1, "div", 31), + r.ɵɵtemplate(3, J, 2, 1, "div", 7), + r.ɵɵelementEnd(), + r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = Et.$implicit; + r.ɵɵadvance(2), + r.ɵɵproperty("ngForOf", Ee.profiles), + r.ɵɵadvance(1), + r.ɵɵproperty("ngIf", Ee.ig); + } + } + function ae(Bt, Et) { + 1 & Bt && + (r.ɵɵelementStart(0, "mat-header-cell", 32), + r.ɵɵtext(1, "Errors"), + r.ɵɵelementEnd()); + } + function le(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "mat-cell", 32), + r.ɵɵtext(1), + r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = Et.$implicit; + r.ɵɵadvance(1), + r.ɵɵtextInterpolate1( + "", + Ee.operationOutcome ? Ee.getErrors() : "-", + " " + ); + } + } + function Oe(Bt, Et) { + 1 & Bt && + (r.ɵɵelementStart(0, "mat-header-cell", 32), + r.ɵɵtext(1, "Warnings"), + r.ɵɵelementEnd()); + } + function Le(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "mat-cell", 32), + r.ɵɵtext(1), + r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = Et.$implicit; + r.ɵɵadvance(1), + r.ɵɵtextInterpolate1( + "", + Ee.operationOutcome ? Ee.getWarnings() : "-", + " " + ); + } + } + function Ye(Bt, Et) { + 1 & Bt && + (r.ɵɵelementStart(0, "mat-header-cell", 32), + r.ɵɵtext(1, "Info"), + r.ɵɵelementEnd()); + } + function Je(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "mat-cell", 32), + r.ɵɵtext(1), + r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = Et.$implicit; + r.ɵɵadvance(1), + r.ɵɵtextInterpolate1( + "", + Ee.operationOutcome ? Ee.getInfos() : "-", + " " + ); + } + } + function gt(Bt, Et) { + 1 & Bt && + (r.ɵɵelementStart(0, "mat-header-cell", 32), + r.ɵɵtext(1, "Remove"), + r.ɵɵelementEnd()); + } + function Ue(Bt, Et) { + if (1 & Bt) { + const Ee = r.ɵɵgetCurrentView(); + r.ɵɵelementStart(0, "mat-cell", 32), + r.ɵɵelementStart(1, "button", 33), + r.ɵɵlistener("click", function () { + const D = r.ɵɵrestoreView(Ee).$implicit; + return r.ɵɵnextContext().remove(D); + }), + r.ɵɵelementStart(2, "mat-icon"), + r.ɵɵtext(3, "remove"), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(); + } + } + function tt(Bt, Et) { + 1 & Bt && r.ɵɵelement(0, "mat-header-row"); + } + function at(Bt, Et) { + if (1 & Bt) { + const Ee = r.ɵɵgetCurrentView(); + r.ɵɵelementStart(0, "mat-row", 34), + r.ɵɵlistener("click", function () { + const D = r.ɵɵrestoreView(Ee).$implicit; + return r.ɵɵnextContext().selectRow(D); + }), + r.ɵɵelementEnd(); + } + } + function ft(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementStart(0, "div", 2), + r.ɵɵelementStart(1, "mat-form-field", 36), + r.ɵɵelementStart(2, "mat-label"), + r.ɵɵtext(3), + r.ɵɵelementEnd(), + r.ɵɵelement(4, "input", 37), + r.ɵɵelementEnd(), + r.ɵɵelementEnd()), + 2 & Bt) + ) { + const Ee = Et.$implicit; + r.ɵɵadvance(3), + r.ɵɵtextInterpolate(Ee.param.name), + r.ɵɵadvance(1), + r.ɵɵproperty("formControl", Ee.formControl); + } + } + function vt(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementContainerStart(0), + r.ɵɵtemplate(1, ft, 5, 2, "div", 35), + r.ɵɵelementContainerEnd()), + 2 & Bt) + ) { + const Ee = r.ɵɵnextContext(); + r.ɵɵadvance(1), r.ɵɵproperty("ngForOf", Ee.validatorSettings); + } + } + function yt(Bt, Et) { + if ( + (1 & Bt && + (r.ɵɵelementContainerStart(0), + r.ɵɵelement(1, "app-operation-outcome", 38), + r.ɵɵelementContainerEnd()), + 2 & Bt) + ) { + const Ee = r.ɵɵnextContext(); + r.ɵɵadvance(1), + r.ɵɵproperty("mode", Ee.selectedEntry.mimetype)( + "operationOutcome", + Ee.operationOutcome + )("json", Ee.json)("title", Ee.validationOutcomeTitle()); + } + } + const ot = function () { + return ["name", "profile", "error", "warning", "info", "action"]; + }; + class _t { + constructor(Et) { + (this.param = Et), (this.formControl = new s.FormControl()); + } + isValueSet() { + return null != this.valueBoolean || null != this.valueString; + } + } + class At { + constructor(Et, Ee, fe, H) { + (this.name = Et), + (this.json = Ee), + (this.mimetype = fe), + (this.profiles = H); + } + getErrors() { + var Et, Ee; + if (this.operationOutcome) + return null === + (Ee = + null === (Et = this.operationOutcome) || void 0 === Et + ? void 0 + : Et.issue) || void 0 === Ee + ? void 0 + : Ee.filter( + (fe) => + "processing" === fe.code && + ("error" === fe.severity || "fatal" === fe.severity) + ).length; + } + getWarnings() { + var Et, Ee; + if (this.operationOutcome) + return null === + (Ee = + null === (Et = this.operationOutcome) || void 0 === Et + ? void 0 + : Et.issue) || void 0 === Ee + ? void 0 + : Ee.filter( + (fe) => "processing" === fe.code && "warning" === fe.severity + ).length; + } + getInfos() { + var Et, Ee; + if (this.operationOutcome) + return null === + (Ee = + null === (Et = this.operationOutcome) || void 0 === Et + ? void 0 + : Et.issue) || void 0 === Ee + ? void 0 + : Ee.filter( + (fe) => + "processing" === fe.code && "information" === fe.severity + ).length; + } + } + class Tt { + constructor(Et, Ee) { + (this.data = Et), + (this.cd = Ee), + (this.selectedIg = null), + (this.validatorSettings = new Array()), + (this.dataSource = new h.MatTableDataSource()), + (this.showSettings = !1), + (this.client = Et.getFhirClient()), + this.client + .capabilityStatement() + .then((fe) => { + (this.capabilitystatement = fe), + this.client + .read({ + resourceType: "OperationDefinition", + id: "-s-validate", + }) + .then((H) => { + var D; + null === (D = H.parameter) || + void 0 === D || + D.forEach((U) => { + "profile" == U.name && + (this.profiles = U.targetProfile); + }), + H.parameter + .filter( + (U) => + "in" == U.use && + "resource" != U.name && + "profile" != U.name && + "ig" != U.name + ) + .forEach((U) => { + this.validatorSettings.push(new _t(U)); + }); + }); + }) + .catch((fe) => { + (this.errMsg = "Error accessing FHIR server"), + (this.operationOutcome = fe.response.data); + }), + this.client + .search({ + resourceType: "ImplementationGuide", + searchParams: { _sort: "title" }, + }) + .then((fe) => { + this.igs = fe.entry + .map((H) => H.resource.packageId + "#" + H.resource.version) + .sort(); + }) + .catch((fe) => { + (this.errMsg = "Error accessing FHIR server"), + (this.operationOutcome = fe.response.data); + }), + (this.validationInProgress = 0); + } + getSelectedProfile() { + return this.selectedProfile; + } + setSelectedProfile(Et) { + this.selectedProfile = Et; + } + getSelectedIg() { + return this.selectedIg; + } + setSelectedIg(Et) { + this.selectedIg = Et; + } + getProfiles() { + return this.profiles; + } + addFile(Et) { + (this.validationInProgress += 1), + ("application/json" === Et.contentType || + Et.name.endsWith(".json")) && + this.addJson(Et.blob), + ("application/xml" === Et.contentType || + Et.name.endsWith(".xml")) && + this.addXml(Et.blob), + Et.name.endsWith(".tgz") && this.addPackage(Et.blob), + (this.validationInProgress -= 1); + } + addXml(Et) { + (this.selectedProfile = null), (this.selectedIg = null); + const Ee = new FileReader(); + Ee.readAsText(Et), + (Ee.onload = () => { + this.cd.markForCheck(); + let H = new At(Et.name, Ee.result, "application/fhir+xml", null); + this.selectRow(H), + null != this.selectedProfile && + (H.profiles = [this.selectedProfile]), + this.validate(H); + }); + } + addJson(Et) { + (this.selectedProfile = null), (this.selectedIg = null); + const Ee = new FileReader(); + Ee.readAsText(Et), + (Ee.onload = () => { + this.cd.markForCheck(); + let H = new At(Et.name, Ee.result, "application/fhir+json", null); + this.selectRow(H), + null != this.selectedProfile && + (H.profiles = [this.selectedProfile]), + this.validate(H); + }); + } + onValidateIg() { + let Et = ""; + null != this.selectedIg && + ((Et = this.selectedIg.endsWith(" (current)") + ? this.selectedIg.substring(0, this.selectedIg.length - 10) + : this.selectedIg), + (Et = Et.replace("#", "-")), + this.fetchData(this.client.baseUrl + "/ImplementationGuide/" + Et)); + } + fetchData(Et) { + var Ee = this; + return n(function* () { + const fe = yield fetch(Et, { + cache: "no-store", + headers: { Accept: "application/gzip" }, + }), + D = (fe.headers.get("Content-Type"), yield fe.blob()); + Ee.addPackage(D); + })(); + } + addPackage(Et) { + (this.selectedProfile = null), (this.selectedIg = null); + const Ee = new FileReader(); + Ee.readAsArrayBuffer(Et), + (Ee.onload = () => { + if ( + ((this.package = Ee.result), + this.cd.markForCheck(), + null != this.package) + ) { + const fe = d.default.inflate(new Uint8Array(this.package)), + H = new Array(); + let D = null, + U = null; + const X = this; + (0, u.default)(fe.buffer).then( + function (_e) { + H.forEach((Be) => { + (Be.ig = U), (Be.fhirVersion = D), X.validate(Be); + }); + }, + function (_e) {}, + function (_e) { + var Be, $e, st, ut; + if ( + (null === (Be = _e.name) || void 0 === Be + ? void 0 + : Be.indexOf("package.json")) >= 0 + ) { + let St = new TextDecoder("utf-8"), + Xt = JSON.parse(St.decode(_e.buffer)); + (D = Xt.fhirVersions[0]), + (U = Xt.name + "#" + Xt.version); + } + if ( + (null === ($e = _e.name) || void 0 === $e + ? void 0 + : $e.indexOf("example")) >= 0 && + -1 == + (null === (st = _e.name) || void 0 === st + ? void 0 + : st.indexOf(".index.json")) + ) { + let St = _e.name; + St.startsWith("package/example/") && + (St = St.substring("package/example/".length)), + St.startsWith("example/") && + (St = St.substring("example/".length)); + let Xt = new TextDecoder("utf-8"), + tn = JSON.parse(Xt.decode(_e.buffer)), + Dt = + null === (ut = tn.meta) || void 0 === ut + ? void 0 + : ut.profile; + for (let et = 0; et < Dt.length; et++) Dt[et] = Dt[et]; + let Kt = new At( + St, + JSON.stringify(tn, null, 2), + "application/fhir+json", + Dt + ); + H.push(Kt); + } + } + ); + } + }); + } + onClear() { + (this.selectedProfile = null), + (this.selectedIg = null), + this.selectRow(void 0), + this.dataSource.data.splice(0, this.dataSource.data.length), + (this.dataSource.data = this.dataSource.data); + } + validate(Et) { + var Ee; + null != this.selectedProfile && + (Et.profiles = [this.selectedProfile]), + null != this.selectedIg && + (Et.ig = this.selectedIg.endsWith(" (current)") + ? this.selectedIg.substring(0, this.selectedIg.length - 10) + : this.selectedIg); + let fe = ""; + try { + if ( + !( + (null === (Ee = Et.profiles) || void 0 === Ee + ? void 0 + : Ee.length) > 0 + ) + ) + return; + (fe = "?profile=" + encodeURIComponent(Et.profiles[0])), + null != Et.ig && (fe += "&ig=" + encodeURIComponent(Et.ig)); + } catch (H) {} + for (let H = 0; H < this.validatorSettings.length; H++) + null != this.validatorSettings[H].formControl.value && + this.validatorSettings[H].formControl.value.length > 0 && + (fe += + "&" + + this.validatorSettings[H].param.name + + "=" + + encodeURIComponent( + this.validatorSettings[H].formControl.value + )); + (this.validationInProgress += 1), + this.client + .operation({ + name: "validate" + fe, + resourceType: void 0, + input: Et.json, + options: { + headers: { + accept: "application/fhir+json", + "content-type": Et.mimetype, + }, + }, + }) + .then((H) => { + (this.validationInProgress -= 1), + (Et.operationOutcome = H), + this.dataSource.data.push(Et), + (this.dataSource.data = this.dataSource.data), + 0 == this.validationInProgress && this.selectRow(Et); + }) + .catch((H) => { + this.validationInProgress -= 1; + }); + } + selectRow(Et) { + var Ee, fe; + if (((this.errMsg = ""), (this.selectedEntry = Et), Et)) { + if ( + ((this.operationOutcome = Et.operationOutcome), + (this.json = Et.json), + (this.resourceName = ""), + (this.resourceId = ""), + "application/fhir+json" === Et.mimetype) + ) + try { + const H = JSON.parse(this.json); + (null == H ? void 0 : H.resourceType) && + ((this.resourceName = H.resourceType), + (this.resourceId = H.id)), + (this.selectedProfile = + null === + (fe = + null === (Ee = H.meta) || void 0 === Ee + ? void 0 + : Ee.profile) || void 0 === fe + ? void 0 + : fe[0]), + null == this.selectedProfile && + (null == H ? void 0 : H.resourceType) && + (this.selectedProfile = + "http://hl7.org/fhir/StructureDefinition/" + + H.resourceType); + } catch (H) { + this.errMsg = H.message; + } + if ("application/fhir+xml" === Et.mimetype) { + let H = this.json.indexOf("", D); + if (D < U) { + let X = this.json.substring(D + 1, U - 1), + _e = X.indexOf(" xmlns"); + _e > 0 && (X = X.substring(0, _e)), + (_e = X.indexOf(":")), + _e > 0 && (X = X.substring(_e + 1)), + (this.resourceName = X); + let Be = this.json.indexOf("profile", U); + if (Be > 0) { + let $e = this.json.indexOf('value="', Be) + 7, + st = this.json.indexOf('"', $e); + $e < st && + (this.selectedProfile = this.json.substring($e, st)); + } + null == this.selectedProfile && + null != this.resourceName && + (this.selectedProfile = + "http://hl7.org/fhir/StructureDefinition/" + + this.resourceName); + } + } + } else (this.operationOutcome = void 0), (this.json = void 0); + } + remove(Et) { + const Ee = this.dataSource.data.indexOf(Et); + this.dataSource.data.splice(Ee, 1), + (this.dataSource.data = this.dataSource.data); + } + validationOutcomeTitle() { + return `Details Validation Results ${this.resourceName} / ${this.resourceId}`; + } + onValidate() { + let Et = new At( + this.selectedEntry.name, + this.selectedEntry.json, + this.selectedEntry.mimetype, + [this.selectedProfile] + ); + this.validate(Et); + } + getJson() { + return this.json; + } + ngOnInit() {} + toggleSettings() { + this.showSettings = !this.showSettings; + } + getLocalStorageItemOrDefault(Et, Ee) { + return localStorage.getItem(Et) || Ee; + } + setLocaleStorageItem(Et, Ee) { + return localStorage.setItem(Et, Ee), Ee; + } + } + (j.ValidateComponent = Tt), + (Tt.ɵfac = function (Et) { + return new (Et || Tt)( + r.ɵɵdirectiveInject(o.FhirConfigService), + r.ɵɵdirectiveInject(r.ChangeDetectorRef) + ); + }), + (Tt.ɵcmp = r.ɵɵdefineComponent({ + type: Tt, + selectors: [["app-validate"]], + decls: 60, + vars: 15, + consts: [ + [1, "card-maps"], + [3, "addFiles"], + [1, "form-field-group"], + [ + "placeholder", + "Validate against specific Profile", + "name", + "selectProfile", + 3, + "ngModel", + "ngModelChange", + ], + [3, "value", 4, "ngFor", "ngForOf"], + [ + "placeholder", + "Validate against specific Implementation Guide", + "name", + "selectIg", + 3, + "ngModel", + "ngModelChange", + ], + [ + "mat-raised-button", + "", + "color", + "primary", + "type", + "submit", + 3, + "click", + ], + [4, "ngIf"], + [3, "dataSource"], + ["table", ""], + ["matColumnDef", "name"], + ["class", "name", 4, "matHeaderCellDef"], + ["class", "name", 4, "matCellDef"], + ["matColumnDef", "profile"], + ["class", "profile", 4, "matHeaderCellDef"], + ["class", "profile", 4, "matCellDef"], + ["matColumnDef", "error"], + ["class", "res", 4, "matHeaderCellDef"], + ["class", "res", 4, "matCellDef"], + ["matColumnDef", "warning"], + ["matColumnDef", "info"], + ["matColumnDef", "action"], + [4, "matHeaderRowDef"], + [3, "click", 4, "matRowDef", "matRowDefColumns"], + ["mat-raised-button", "", "type", "submit", 3, "click"], + ["mat-menu-item", "", 3, "click"], + [3, "value"], + ["mode", "indeterminate"], + [3, "operationOutcome", "title"], + [1, "name"], + [1, "profile"], + [4, "ngFor", "ngForOf"], + [1, "res"], + [ + "mat-icon-button", + "", + "aria-label", + "Remove", + "type", + "button", + 3, + "click", + ], + [3, "click"], + ["class", "form-field-group", 4, "ngFor", "ngForOf"], + [1, "column50"], + ["matInput", "", 3, "formControl"], + [3, "mode", "operationOutcome", "json", "title"], + ], + template: function (Et, Ee) { + 1 & Et && + (r.ɵɵelementStart(0, "mat-card", 0), + r.ɵɵelementStart(1, "mat-card-content"), + r.ɵɵelementStart(2, "mat-card-header"), + r.ɵɵelementStart(3, "mat-card-title"), + r.ɵɵtext( + 4, + "Validate FHIR Resource or example FHIR resources in provided package" + ), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementStart(5, "app-upload", 1), + r.ɵɵlistener("addFiles", function (H) { + return Ee.addFile(H); + }), + r.ɵɵelementEnd(), + r.ɵɵelementStart(6, "div", 2), + r.ɵɵtext(7), + r.ɵɵelementEnd(), + r.ɵɵelementStart(8, "div", 2), + r.ɵɵelementStart(9, "mat-form-field"), + r.ɵɵelementStart(10, "mat-select", 3), + r.ɵɵlistener("ngModelChange", function (H) { + return Ee.setSelectedProfile(H); + }), + r.ɵɵtemplate(11, C, 2, 2, "mat-option", 4), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementStart(12, "div", 2), + r.ɵɵelementStart(13, "mat-form-field"), + r.ɵɵelementStart(14, "mat-select", 5), + r.ɵɵlistener("ngModelChange", function (H) { + return Ee.setSelectedIg(H); + }), + r.ɵɵtemplate(15, L, 2, 2, "mat-option", 4), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementStart(16, "mat-card-actions"), + r.ɵɵelementStart(17, "button", 6), + r.ɵɵlistener("click", function () { + return Ee.onValidate(); + }), + r.ɵɵtext(18, " Validate "), + r.ɵɵelementEnd(), + r.ɵɵelementStart(19, "button", 6), + r.ɵɵlistener("click", function () { + return Ee.onValidateIg(); + }), + r.ɵɵtext(20, " Validate all examples in IG on Server "), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵtemplate(21, F, 2, 0, "ng-container", 7), + r.ɵɵtemplate(22, ie, 2, 2, "ng-container", 7), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementStart(23, "mat-card", 0), + r.ɵɵelementStart(24, "mat-card-content"), + r.ɵɵelementStart(25, "mat-card-header"), + r.ɵɵelementStart(26, "mat-card-title"), + r.ɵɵtext(27, "Validation Results"), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementStart(28, "mat-table", 8, 9), + r.ɵɵelementContainerStart(30, 10), + r.ɵɵtemplate(31, Y, 2, 0, "mat-header-cell", 11), + r.ɵɵtemplate(32, Z, 2, 1, "mat-cell", 12), + r.ɵɵelementContainerEnd(), + r.ɵɵelementContainerStart(33, 13), + r.ɵɵtemplate(34, ee, 2, 0, "mat-header-cell", 14), + r.ɵɵtemplate(35, ne, 4, 2, "mat-cell", 15), + r.ɵɵelementContainerEnd(), + r.ɵɵelementContainerStart(36, 16), + r.ɵɵtemplate(37, ae, 2, 0, "mat-header-cell", 17), + r.ɵɵtemplate(38, le, 2, 1, "mat-cell", 18), + r.ɵɵelementContainerEnd(), + r.ɵɵelementContainerStart(39, 19), + r.ɵɵtemplate(40, Oe, 2, 0, "mat-header-cell", 17), + r.ɵɵtemplate(41, Le, 2, 1, "mat-cell", 18), + r.ɵɵelementContainerEnd(), + r.ɵɵelementContainerStart(42, 20), + r.ɵɵtemplate(43, Ye, 2, 0, "mat-header-cell", 17), + r.ɵɵtemplate(44, Je, 2, 1, "mat-cell", 18), + r.ɵɵelementContainerEnd(), + r.ɵɵelementContainerStart(45, 21), + r.ɵɵtemplate(46, gt, 2, 0, "mat-header-cell", 17), + r.ɵɵtemplate(47, Ue, 4, 0, "mat-cell", 18), + r.ɵɵelementContainerEnd(), + r.ɵɵtemplate(48, tt, 1, 0, "mat-header-row", 22), + r.ɵɵtemplate(49, at, 1, 0, "mat-row", 23), + r.ɵɵelementEnd(), + r.ɵɵelementStart(50, "mat-card-actions"), + r.ɵɵelementStart(51, "button", 24), + r.ɵɵlistener("click", function () { + return Ee.onClear(); + }), + r.ɵɵtext(52, "Clear"), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵelementStart(53, "mat-card", 0), + r.ɵɵelementStart(54, "mat-card-content"), + r.ɵɵelementStart(55, "button", 25), + r.ɵɵlistener("click", function () { + return Ee.toggleSettings(); + }), + r.ɵɵelementStart(56, "mat-icon"), + r.ɵɵtext(57, "settings"), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵtemplate(58, vt, 2, 1, "ng-container", 7), + r.ɵɵelementEnd(), + r.ɵɵelementEnd(), + r.ɵɵtemplate(59, yt, 2, 4, "ng-container", 7)), + 2 & Et && + (r.ɵɵadvance(7), + r.ɵɵtextInterpolate2( + " New validation for: ", + Ee.resourceName, + " / ", + Ee.resourceId, + " " + ), + r.ɵɵadvance(3), + r.ɵɵproperty("ngModel", Ee.getSelectedProfile()), + r.ɵɵadvance(1), + r.ɵɵproperty("ngForOf", Ee.getProfiles()), + r.ɵɵadvance(3), + r.ɵɵproperty("ngModel", Ee.getSelectedIg()), + r.ɵɵadvance(1), + r.ɵɵproperty("ngForOf", Ee.igs), + r.ɵɵadvance(6), + r.ɵɵproperty("ngIf", Ee.validationInProgress > 0), + r.ɵɵadvance(1), + r.ɵɵproperty("ngIf", Ee.errMsg), + r.ɵɵadvance(6), + r.ɵɵproperty("dataSource", Ee.dataSource), + r.ɵɵadvance(20), + r.ɵɵproperty("matHeaderRowDef", r.ɵɵpureFunction0(13, ot)), + r.ɵɵadvance(1), + r.ɵɵproperty("matRowDefColumns", r.ɵɵpureFunction0(14, ot)), + r.ɵɵadvance(9), + r.ɵɵproperty("ngIf", Ee.showSettings), + r.ɵɵadvance(1), + r.ɵɵproperty("ngIf", Ee.operationOutcome)); + }, + directives: [ + i.MatCard, + i.MatCardContent, + i.MatCardHeader, + i.MatCardTitle, + c.UploadComponent, + l.MatFormField, + g.MatSelect, + b.NgControlStatus, + b.NgModel, + y.NgForOf, + i.MatCardActions, + x.MatButton, + y.NgIf, + T.MatTable, + T.MatColumnDef, + T.MatHeaderCellDef, + T.MatCellDef, + T.MatHeaderRowDef, + T.MatRowDef, + O.MatMenuItem, + M.MatIcon, + A.MatOption, + S.MatProgressSpinner, + w.OperationOutcomeComponent, + T.MatHeaderCell, + T.MatCell, + T.MatHeaderRow, + T.MatRow, + l.MatLabel, + I.MatInput, + b.DefaultValueAccessor, + b.FormControlDirective, + ], + styles: [ + "[_nghost-%COMP%]{display:flex;flex-direction:column}.mat-table[_ngcontent-%COMP%]{margin:1rem}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-table[_ngcontent-%COMP%] .mat-cell.name[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.name[_ngcontent-%COMP%]{flex:2}.mat-table[_ngcontent-%COMP%] .mat-cell.profile[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.profile[_ngcontent-%COMP%]{flex:4}.mat-table[_ngcontent-%COMP%] .mat-cell.res[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.res[_ngcontent-%COMP%]{flex:.5;justify-content:flex-end}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:first-child{padding-left:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-child{padding-right:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .cell-content[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%] .cell-content[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-field-group[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;display:flex;flex-direction:row}.form-field-group[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.column50[_ngcontent-%COMP%]{width:40%}", + ], + })); + }, + 2340: (ye, j) => { + "use strict"; + Object.defineProperty(j, "__esModule", { value: !0 }), + (j.environment = void 0), + (j.environment = { production: !0 }); + }, + 4431: (ye, j, p) => { + "use strict"; + const _ = (0, p(655).__importStar)(p(2313)), + m = p(5e3), + s = p(6747); + p(2340).environment.production && (0, m.enableProdMode)(), + _.platformBrowser() + .bootstrapModule(s.AppModule) + .catch((u) => console.log(u)); + }, + 2466: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + TranslateModule: () => Y, + TranslateLoader: () => i, + TranslateFakeLoader: () => c, + USE_STORE: () => I, + USE_DEFAULT_LANG: () => C, + TranslateService: () => L, + MissingTranslationHandler: () => l, + FakeMissingTranslationHandler: () => g, + TranslateParser: () => A, + TranslateDefaultParser: () => S, + TranslateCompiler: () => b, + TranslateFakeCompiler: () => y, + TranslateDirective: () => F, + TranslatePipe: () => ie, + TranslateStore: () => w, + }); + var n = p(5e3), + f = p(1086), + _ = p(6787), + m = p(6498), + s = p(1961), + d = p(2986), + u = p(8117), + h = p(4850), + r = p(864), + o = p(7545); + class i {} + let c = (() => { + class Z extends i { + getTranslation($) { + return (0, f.of)({}); + } + } + return ( + (Z.ɵfac = (function () { + let ee; + return function (J) { + return (ee || (ee = n.ɵɵgetInheritedFactory(Z)))(J || Z); + }; + })()), + (Z.ɵprov = n.ɵɵdefineInjectable({ token: Z, factory: Z.ɵfac })), + Z + ); + })(); + class l {} + let g = (() => { + class Z { + handle($) { + return $.key; + } + } + return ( + (Z.ɵfac = function ($) { + return new ($ || Z)(); + }), + (Z.ɵprov = n.ɵɵdefineInjectable({ token: Z, factory: Z.ɵfac })), + Z + ); + })(); + class b {} + let y = (() => { + class Z extends b { + compile($, J) { + return $; + } + compileTranslations($, J) { + return $; + } + } + return ( + (Z.ɵfac = (function () { + let ee; + return function (J) { + return (ee || (ee = n.ɵɵgetInheritedFactory(Z)))(J || Z); + }; + })()), + (Z.ɵprov = n.ɵɵdefineInjectable({ token: Z, factory: Z.ɵfac })), + Z + ); + })(); + function x(Z, ee) { + if (Z === ee) return !0; + if (null === Z || null === ee) return !1; + if (Z != Z && ee != ee) return !0; + let ne, + ae, + le, + $ = typeof Z; + if ($ == typeof ee && "object" == $) { + if (!Array.isArray(Z)) { + if (Array.isArray(ee)) return !1; + for (ae in ((le = Object.create(null)), Z)) { + if (!x(Z[ae], ee[ae])) return !1; + le[ae] = !0; + } + for (ae in ee) if (!(ae in le) && void 0 !== ee[ae]) return !1; + return !0; + } + if (!Array.isArray(ee)) return !1; + if ((ne = Z.length) == ee.length) { + for (ae = 0; ae < ne; ae++) if (!x(Z[ae], ee[ae])) return !1; + return !0; + } + } + return !1; + } + function T(Z) { + return null != Z; + } + function O(Z) { + return Z && "object" == typeof Z && !Array.isArray(Z); + } + function M(Z, ee) { + let $ = Object.assign({}, Z); + return ( + O(Z) && + O(ee) && + Object.keys(ee).forEach((J) => { + O(ee[J]) + ? J in Z + ? ($[J] = M(Z[J], ee[J])) + : Object.assign($, { [J]: ee[J] }) + : Object.assign($, { [J]: ee[J] }); + }), + $ + ); + } + class A {} + let S = (() => { + class Z extends A { + constructor() { + super(...arguments), + (this.templateMatcher = /{{\s?([^{}\s]*)\s?}}/g); + } + interpolate($, J) { + let ne; + return ( + (ne = + "string" == typeof $ + ? this.interpolateString($, J) + : "function" == typeof $ + ? this.interpolateFunction($, J) + : $), + ne + ); + } + getValue($, J) { + let ne = J.split("."); + J = ""; + do { + (J += ne.shift()), + !T($) || !T($[J]) || ("object" != typeof $[J] && ne.length) + ? ne.length + ? (J += ".") + : ($ = void 0) + : (($ = $[J]), (J = "")); + } while (ne.length); + return $; + } + interpolateFunction($, J) { + return $(J); + } + interpolateString($, J) { + return J + ? $.replace(this.templateMatcher, (ne, ae) => { + let le = this.getValue(J, ae); + return T(le) ? le : ne; + }) + : $; + } + } + return ( + (Z.ɵfac = (function () { + let ee; + return function (J) { + return (ee || (ee = n.ɵɵgetInheritedFactory(Z)))(J || Z); + }; + })()), + (Z.ɵprov = n.ɵɵdefineInjectable({ token: Z, factory: Z.ɵfac })), + Z + ); + })(); + class w { + constructor() { + (this.currentLang = this.defaultLang), + (this.translations = {}), + (this.langs = []), + (this.onTranslationChange = new n.EventEmitter()), + (this.onLangChange = new n.EventEmitter()), + (this.onDefaultLangChange = new n.EventEmitter()); + } + } + const I = new n.InjectionToken("USE_STORE"), + C = new n.InjectionToken("USE_DEFAULT_LANG"); + let L = (() => { + class Z { + constructor($, J, ne, ae, le, Oe = !0, Le = !1) { + (this.store = $), + (this.currentLoader = J), + (this.compiler = ne), + (this.parser = ae), + (this.missingTranslationHandler = le), + (this.useDefaultLang = Oe), + (this.isolate = Le), + (this.pending = !1), + (this._onTranslationChange = new n.EventEmitter()), + (this._onLangChange = new n.EventEmitter()), + (this._onDefaultLangChange = new n.EventEmitter()), + (this._langs = []), + (this._translations = {}), + (this._translationRequests = {}); + } + get onTranslationChange() { + return this.isolate + ? this._onTranslationChange + : this.store.onTranslationChange; + } + get onLangChange() { + return this.isolate + ? this._onLangChange + : this.store.onLangChange; + } + get onDefaultLangChange() { + return this.isolate + ? this._onDefaultLangChange + : this.store.onDefaultLangChange; + } + get defaultLang() { + return this.isolate ? this._defaultLang : this.store.defaultLang; + } + set defaultLang($) { + this.isolate + ? (this._defaultLang = $) + : (this.store.defaultLang = $); + } + get currentLang() { + return this.isolate ? this._currentLang : this.store.currentLang; + } + set currentLang($) { + this.isolate + ? (this._currentLang = $) + : (this.store.currentLang = $); + } + get langs() { + return this.isolate ? this._langs : this.store.langs; + } + set langs($) { + this.isolate ? (this._langs = $) : (this.store.langs = $); + } + get translations() { + return this.isolate + ? this._translations + : this.store.translations; + } + set translations($) { + this.isolate + ? (this._translations = $) + : (this.store.translations = $); + } + setDefaultLang($) { + if ($ === this.defaultLang) return; + let J = this.retrieveTranslations($); + void 0 !== J + ? (this.defaultLang || (this.defaultLang = $), + J.pipe((0, d.q)(1)).subscribe((ne) => { + this.changeDefaultLang($); + })) + : this.changeDefaultLang($); + } + getDefaultLang() { + return this.defaultLang; + } + use($) { + if ($ === this.currentLang) + return (0, f.of)(this.translations[$]); + let J = this.retrieveTranslations($); + return void 0 !== J + ? (this.currentLang || (this.currentLang = $), + J.pipe((0, d.q)(1)).subscribe((ne) => { + this.changeLang($); + }), + J) + : (this.changeLang($), (0, f.of)(this.translations[$])); + } + retrieveTranslations($) { + let J; + return ( + void 0 === this.translations[$] && + ((this._translationRequests[$] = + this._translationRequests[$] || this.getTranslation($)), + (J = this._translationRequests[$])), + J + ); + } + getTranslation($) { + this.pending = !0; + const J = this.currentLoader.getTranslation($).pipe((0, u.B)()); + return ( + (this.loadingTranslations = J.pipe( + (0, d.q)(1), + (0, h.U)((ne) => this.compiler.compileTranslations(ne, $)), + (0, u.B)() + )), + this.loadingTranslations.subscribe( + (ne) => { + (this.translations[$] = ne), + this.updateLangs(), + (this.pending = !1); + }, + (ne) => { + this.pending = !1; + } + ), + J + ); + } + setTranslation($, J, ne = !1) { + (J = this.compiler.compileTranslations(J, $)), + (this.translations[$] = + ne && this.translations[$] ? M(this.translations[$], J) : J), + this.updateLangs(), + this.onTranslationChange.emit({ + lang: $, + translations: this.translations[$], + }); + } + getLangs() { + return this.langs; + } + addLangs($) { + $.forEach((J) => { + -1 === this.langs.indexOf(J) && this.langs.push(J); + }); + } + updateLangs() { + this.addLangs(Object.keys(this.translations)); + } + getParsedResult($, J, ne) { + let ae; + if (J instanceof Array) { + let le = {}, + Oe = !1; + for (let Le of J) + (le[Le] = this.getParsedResult($, Le, ne)), + "function" == typeof le[Le].subscribe && (Oe = !0); + if (Oe) { + let Le; + for (let Ye of J) { + let Je = + "function" == typeof le[Ye].subscribe + ? le[Ye] + : (0, f.of)(le[Ye]); + Le = void 0 === Le ? Je : (0, _.T)(Le, Je); + } + return Le.pipe( + (0, r.q)(), + (0, h.U)((Ye) => { + let Je = {}; + return ( + Ye.forEach((gt, Ue) => { + Je[J[Ue]] = gt; + }), + Je + ); + }) + ); + } + return le; + } + if ( + ($ && + (ae = this.parser.interpolate( + this.parser.getValue($, J), + ne + )), + void 0 === ae && + this.defaultLang && + this.defaultLang !== this.currentLang && + this.useDefaultLang && + (ae = this.parser.interpolate( + this.parser.getValue( + this.translations[this.defaultLang], + J + ), + ne + )), + void 0 === ae) + ) { + let le = { key: J, translateService: this }; + void 0 !== ne && (le.interpolateParams = ne), + (ae = this.missingTranslationHandler.handle(le)); + } + return void 0 !== ae ? ae : J; + } + get($, J) { + if (!T($) || !$.length) + throw new Error('Parameter "key" required'); + if (this.pending) + return m.y.create((ne) => { + let ae = (Oe) => { + ne.next(Oe), ne.complete(); + }, + le = (Oe) => { + ne.error(Oe); + }; + this.loadingTranslations.subscribe((Oe) => { + "function" == + typeof (Oe = this.getParsedResult(Oe, $, J)).subscribe + ? Oe.subscribe(ae, le) + : ae(Oe); + }, le); + }); + { + let ne = this.getParsedResult( + this.translations[this.currentLang], + $, + J + ); + return "function" == typeof ne.subscribe ? ne : (0, f.of)(ne); + } + } + stream($, J) { + if (!T($) || !$.length) + throw new Error('Parameter "key" required'); + return (0, s.z)( + this.get($, J), + this.onLangChange.pipe( + (0, o.w)((ne) => { + const ae = this.getParsedResult(ne.translations, $, J); + return "function" == typeof ae.subscribe + ? ae + : (0, f.of)(ae); + }) + ) + ); + } + instant($, J) { + if (!T($) || !$.length) + throw new Error('Parameter "key" required'); + let ne = this.getParsedResult( + this.translations[this.currentLang], + $, + J + ); + if (void 0 !== ne.subscribe) { + if ($ instanceof Array) { + let ae = {}; + return ( + $.forEach((le, Oe) => { + ae[$[Oe]] = $[Oe]; + }), + ae + ); + } + return $; + } + return ne; + } + set($, J, ne = this.currentLang) { + (this.translations[ne][$] = this.compiler.compile(J, ne)), + this.updateLangs(), + this.onTranslationChange.emit({ + lang: ne, + translations: this.translations[ne], + }); + } + changeLang($) { + (this.currentLang = $), + this.onLangChange.emit({ + lang: $, + translations: this.translations[$], + }), + this.defaultLang || this.changeDefaultLang($); + } + changeDefaultLang($) { + (this.defaultLang = $), + this.onDefaultLangChange.emit({ + lang: $, + translations: this.translations[$], + }); + } + reloadLang($) { + return this.resetLang($), this.getTranslation($); + } + resetLang($) { + (this._translationRequests[$] = void 0), + (this.translations[$] = void 0); + } + getBrowserLang() { + if ("undefined" == typeof window || void 0 === window.navigator) + return; + let $ = window.navigator.languages + ? window.navigator.languages[0] + : null; + return ( + ($ = + $ || + window.navigator.language || + window.navigator.browserLanguage || + window.navigator.userLanguage), + -1 !== $.indexOf("-") && ($ = $.split("-")[0]), + -1 !== $.indexOf("_") && ($ = $.split("_")[0]), + $ + ); + } + getBrowserCultureLang() { + if ("undefined" == typeof window || void 0 === window.navigator) + return; + let $ = window.navigator.languages + ? window.navigator.languages[0] + : null; + return ( + ($ = + $ || + window.navigator.language || + window.navigator.browserLanguage || + window.navigator.userLanguage), + $ + ); + } + } + return ( + (Z.ɵfac = function ($) { + return new ($ || Z)( + n.ɵɵinject(w), + n.ɵɵinject(i), + n.ɵɵinject(b), + n.ɵɵinject(A), + n.ɵɵinject(l), + n.ɵɵinject(C), + n.ɵɵinject(I) + ); + }), + (Z.ɵprov = n.ɵɵdefineInjectable({ token: Z, factory: Z.ɵfac })), + Z + ); + })(), + F = (() => { + class Z { + constructor($, J, ne) { + (this.translateService = $), + (this.element = J), + (this._ref = ne), + this.onTranslationChangeSub || + (this.onTranslationChangeSub = this.translateService.onTranslationChange.subscribe( + (ae) => { + ae.lang === this.translateService.currentLang && + this.checkNodes(!0, ae.translations); + } + )), + this.onLangChangeSub || + (this.onLangChangeSub = this.translateService.onLangChange.subscribe( + (ae) => { + this.checkNodes(!0, ae.translations); + } + )), + this.onDefaultLangChangeSub || + (this.onDefaultLangChangeSub = this.translateService.onDefaultLangChange.subscribe( + (ae) => { + this.checkNodes(!0); + } + )); + } + set translate($) { + $ && ((this.key = $), this.checkNodes()); + } + set translateParams($) { + x(this.currentParams, $) || + ((this.currentParams = $), this.checkNodes(!0)); + } + ngAfterViewChecked() { + this.checkNodes(); + } + checkNodes($ = !1, J) { + let ne = this.element.nativeElement.childNodes; + ne.length || + (this.setContent(this.element.nativeElement, this.key), + (ne = this.element.nativeElement.childNodes)); + for (let ae = 0; ae < ne.length; ++ae) { + let le = ne[ae]; + if (3 === le.nodeType) { + let Oe; + if (this.key) (Oe = this.key), $ && (le.lastKey = null); + else { + let Le = this.getContent(le), + Ye = Le.trim(); + Ye.length && + (Le !== le.currentValue + ? ((Oe = Ye), + (le.originalContent = this.getContent(le))) + : le.originalContent && + $ && + ((le.lastKey = null), + (Oe = le.originalContent.trim()))); + } + this.updateValue(Oe, le, J); + } + } + } + updateValue($, J, ne) { + if ($) { + if (J.lastKey === $ && this.lastParams === this.currentParams) + return; + this.lastParams = this.currentParams; + let ae = (le) => { + le !== $ && (J.lastKey = $), + J.originalContent || + (J.originalContent = this.getContent(J)), + (J.currentValue = T(le) ? le : J.originalContent || $), + this.setContent( + J, + this.key + ? J.currentValue + : J.originalContent.replace($, J.currentValue) + ), + this._ref.markForCheck(); + }; + if (T(ne)) { + let le = this.translateService.getParsedResult( + ne, + $, + this.currentParams + ); + "function" == typeof le.subscribe ? le.subscribe(ae) : ae(le); + } else + this.translateService + .get($, this.currentParams) + .subscribe(ae); + } + } + getContent($) { + return T($.textContent) ? $.textContent : $.data; + } + setContent($, J) { + T($.textContent) ? ($.textContent = J) : ($.data = J); + } + ngOnDestroy() { + this.onLangChangeSub && this.onLangChangeSub.unsubscribe(), + this.onDefaultLangChangeSub && + this.onDefaultLangChangeSub.unsubscribe(), + this.onTranslationChangeSub && + this.onTranslationChangeSub.unsubscribe(); + } + } + return ( + (Z.ɵfac = function ($) { + return new ($ || Z)( + n.ɵɵdirectiveInject(L), + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(n.ChangeDetectorRef) + ); + }), + (Z.ɵdir = n.ɵɵdefineDirective({ + type: Z, + selectors: [ + ["", "translate", ""], + ["", "ngx-translate", ""], + ], + inputs: { + translate: "translate", + translateParams: "translateParams", + }, + })), + Z + ); + })(), + ie = (() => { + class Z { + constructor($, J) { + (this.translate = $), (this._ref = J), (this.value = ""); + } + updateValue($, J, ne) { + let ae = (le) => { + (this.value = void 0 !== le ? le : $), + (this.lastKey = $), + this._ref.markForCheck(); + }; + if (ne) { + let le = this.translate.getParsedResult(ne, $, J); + "function" == typeof le.subscribe ? le.subscribe(ae) : ae(le); + } + this.translate.get($, J).subscribe(ae); + } + transform($, ...J) { + if (!$ || 0 === $.length) return $; + if (x($, this.lastKey) && x(J, this.lastParams)) + return this.value; + let ne; + if (T(J[0]) && J.length) + if ("string" == typeof J[0] && J[0].length) { + let ae = J[0] + .replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g, '"$2":') + .replace(/:(\s)?(\')(.*?)(\')/g, ':"$3"'); + try { + ne = JSON.parse(ae); + } catch (le) { + throw new SyntaxError( + `Wrong parameter in TranslatePipe. Expected a valid Object, received: ${J[0]}` + ); + } + } else + "object" == typeof J[0] && + !Array.isArray(J[0]) && + (ne = J[0]); + return ( + (this.lastKey = $), + (this.lastParams = J), + this.updateValue($, ne), + this._dispose(), + this.onTranslationChange || + (this.onTranslationChange = this.translate.onTranslationChange.subscribe( + (ae) => { + this.lastKey && + ae.lang === this.translate.currentLang && + ((this.lastKey = null), + this.updateValue($, ne, ae.translations)); + } + )), + this.onLangChange || + (this.onLangChange = this.translate.onLangChange.subscribe( + (ae) => { + this.lastKey && + ((this.lastKey = null), + this.updateValue($, ne, ae.translations)); + } + )), + this.onDefaultLangChange || + (this.onDefaultLangChange = this.translate.onDefaultLangChange.subscribe( + () => { + this.lastKey && + ((this.lastKey = null), this.updateValue($, ne)); + } + )), + this.value + ); + } + _dispose() { + void 0 !== this.onTranslationChange && + (this.onTranslationChange.unsubscribe(), + (this.onTranslationChange = void 0)), + void 0 !== this.onLangChange && + (this.onLangChange.unsubscribe(), + (this.onLangChange = void 0)), + void 0 !== this.onDefaultLangChange && + (this.onDefaultLangChange.unsubscribe(), + (this.onDefaultLangChange = void 0)); + } + ngOnDestroy() { + this._dispose(); + } + } + return ( + (Z.ɵfac = function ($) { + return new ($ || Z)( + n.ɵɵdirectiveInject(L, 16), + n.ɵɵdirectiveInject(n.ChangeDetectorRef, 16) + ); + }), + (Z.ɵpipe = n.ɵɵdefinePipe({ + name: "translate", + type: Z, + pure: !1, + })), + (Z.ɵprov = n.ɵɵdefineInjectable({ token: Z, factory: Z.ɵfac })), + Z + ); + })(), + Y = (() => { + class Z { + static forRoot($ = {}) { + return { + ngModule: Z, + providers: [ + $.loader || { provide: i, useClass: c }, + $.compiler || { provide: b, useClass: y }, + $.parser || { provide: A, useClass: S }, + $.missingTranslationHandler || { provide: l, useClass: g }, + w, + { provide: I, useValue: $.isolate }, + { provide: C, useValue: $.useDefaultLang }, + L, + ], + }; + } + static forChild($ = {}) { + return { + ngModule: Z, + providers: [ + $.loader || { provide: i, useClass: c }, + $.compiler || { provide: b, useClass: y }, + $.parser || { provide: A, useClass: S }, + $.missingTranslationHandler || { provide: l, useClass: g }, + { provide: I, useValue: $.isolate }, + { provide: C, useValue: $.useDefaultLang }, + L, + ], + }; + } + } + return ( + (Z.ɵfac = function ($) { + return new ($ || Z)(); + }), + (Z.ɵmod = n.ɵɵdefineNgModule({ type: Z })), + (Z.ɵinj = n.ɵɵdefineInjector({})), + Z + ); + })(); + }, + 1744: (ye, j, p) => { + "use strict"; + p.r(j), p.d(j, { TranslateHttpLoader: () => n }); + class n { + constructor(_, m = "/assets/i18n/", s = ".json") { + (this.http = _), (this.prefix = m), (this.suffix = s); + } + getTranslation(_) { + return this.http.get(`${this.prefix}${_}${this.suffix}`); + } + } + }, + 5682: (ye, j, p) => { + (ye = p.nmd(ye)), + (function () { + var f = (function () { + return this; + })(); + !f && "undefined" != typeof window && (f = window); + var _ = function (r, o, i) { + "string" == typeof r + ? (2 == arguments.length && (i = o), + _.modules[r] || ((_.payloads[r] = i), (_.modules[r] = null))) + : _.original + ? _.original.apply(this, arguments) + : (console.error( + "dropping module because define wasn't a string." + ), + console.trace()); + }; + (_.modules = {}), (_.payloads = {}); + var r, + o, + m = function (r, o, i) { + if ("string" == typeof o) { + var c = u(r, o); + if (null != c) return i && i(), c; + } else if ( + "[object Array]" === Object.prototype.toString.call(o) + ) { + for (var l = [], g = 0, b = o.length; g < b; ++g) { + var y = u(r, o[g]); + if (null == y && s.original) return; + l.push(y); + } + return (i && i.apply(null, l)) || !0; + } + }, + s = function (r, o) { + var i = m("", r, o); + return null == i && s.original + ? s.original.apply(this, arguments) + : i; + }, + d = function (r, o) { + if (-1 !== o.indexOf("!")) { + var i = o.split("!"); + return d(r, i[0]) + "!" + d(r, i[1]); + } + if ("." == o.charAt(0)) + for ( + o = r.split("/").slice(0, -1).join("/") + "/" + o; + -1 !== o.indexOf(".") && l != o; + + ) { + var l = o; + o = o.replace(/\/\.\//, "/").replace(/[^\/]+\/\.\.\//, ""); + } + return o; + }, + u = function (r, o) { + o = d(r, o); + var i = _.modules[o]; + if (!i) { + if ("function" == typeof (i = _.payloads[o])) { + var c = {}, + l = { id: o, uri: "", exports: c, packaged: !0 }, + b = i( + function (y, x) { + return m(o, y, x); + }, + c, + l + ); + (_.modules[o] = c = b || l.exports), delete _.payloads[o]; + } + i = _.modules[o] = c || i; + } + return i; + }; + (o = f), + (r = "ace") && (f[r] || (f[r] = {}), (o = f[r])), + (!o.define || !o.define.packaged) && + ((_.original = o.define), + (o.define = _), + (o.define.packaged = !0)), + (!o.require || !o.require.packaged) && + ((s.original = o.require), + (o.require = s), + (o.require.packaged = !0)); + })(), + ace.define( + "ace/lib/fixoldbrowsers", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + "undefined" != typeof Element && + !Element.prototype.remove && + Object.defineProperty(Element.prototype, "remove", { + enumerable: !1, + writable: !0, + configurable: !0, + value: function () { + this.parentNode && this.parentNode.removeChild(this); + }, + }); + } + ), + ace.define( + "ace/lib/useragent", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + (f.OS = { LINUX: "LINUX", MAC: "MAC", WINDOWS: "WINDOWS" }), + (f.getOS = function () { + return f.isMac + ? f.OS.MAC + : f.isLinux + ? f.OS.LINUX + : f.OS.WINDOWS; + }); + var m = "object" == typeof navigator ? navigator : {}, + s = (/mac|win|linux/i.exec(m.platform) || [ + "other", + ])[0].toLowerCase(), + d = m.userAgent || "", + u = m.appName || ""; + (f.isWin = "win" == s), + (f.isMac = "mac" == s), + (f.isLinux = "linux" == s), + (f.isIE = + "Microsoft Internet Explorer" == u || + u.indexOf("MSAppHost") >= 0 + ? parseFloat( + (d.match( + /(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/ + ) || [])[1] + ) + : parseFloat( + (d.match( + /(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/ + ) || [])[1] + )), + (f.isOldIE = f.isIE && f.isIE < 9), + (f.isGecko = f.isMozilla = d.match(/ Gecko\/\d+/)), + (f.isOpera = + "object" == typeof opera && + "[object Opera]" == + Object.prototype.toString.call(window.opera)), + (f.isWebKit = parseFloat(d.split("WebKit/")[1]) || void 0), + (f.isChrome = parseFloat(d.split(" Chrome/")[1]) || void 0), + (f.isEdge = parseFloat(d.split(" Edge/")[1]) || void 0), + (f.isAIR = d.indexOf("AdobeAIR") >= 0), + (f.isAndroid = d.indexOf("Android") >= 0), + (f.isChromeOS = d.indexOf(" CrOS ") >= 0), + (f.isIOS = /iPad|iPhone|iPod/.test(d) && !window.MSStream), + f.isIOS && (f.isMac = !0), + (f.isMobile = f.isIOS || f.isAndroid); + } + ), + ace.define( + "ace/lib/dom", + ["require", "exports", "module", "ace/lib/useragent"], + function (n, f, _) { + "use strict"; + var m = n("./useragent"); + (f.buildDom = function i(c, l, g) { + if ("string" == typeof c && c) { + var b = document.createTextNode(c); + return l && l.appendChild(b), b; + } + if (!Array.isArray(c)) + return c && c.appendChild && l && l.appendChild(c), c; + if ("string" != typeof c[0] || !c[0]) { + for (var y = [], x = 0; x < c.length; x++) { + var T = i(c[x], l, g); + T && y.push(T); + } + return y; + } + var O = document.createElement(c[0]), + M = c[1], + A = 1; + for ( + M && "object" == typeof M && !Array.isArray(M) && (A = 2), + x = A; + x < c.length; + x++ + ) + i(c[x], O, g); + return ( + 2 == A && + Object.keys(M).forEach(function (S) { + var w = M[S]; + "class" === S + ? (O.className = Array.isArray(w) ? w.join(" ") : w) + : "function" == typeof w || "value" == S || "$" == S[0] + ? (O[S] = w) + : "ref" === S + ? g && (g[w] = O) + : "style" === S + ? "string" == typeof w && (O.style.cssText = w) + : null != w && O.setAttribute(S, w); + }), + l && l.appendChild(O), + O + ); + }), + (f.getDocumentHead = function (i) { + return ( + i || (i = document), + i.head || + i.getElementsByTagName("head")[0] || + i.documentElement + ); + }), + (f.createElement = function (i, c) { + return document.createElementNS + ? document.createElementNS( + c || "http://www.w3.org/1999/xhtml", + i + ) + : document.createElement(i); + }), + (f.removeChildren = function (i) { + i.innerHTML = ""; + }), + (f.createTextNode = function (i, c) { + return (c ? c.ownerDocument : document).createTextNode(i); + }), + (f.createFragment = function (i) { + return (i + ? i.ownerDocument + : document + ).createDocumentFragment(); + }), + (f.hasCssClass = function (i, c) { + return -1 !== (i.className + "").split(/\s+/g).indexOf(c); + }), + (f.addCssClass = function (i, c) { + f.hasCssClass(i, c) || (i.className += " " + c); + }), + (f.removeCssClass = function (i, c) { + for (var l = i.className.split(/\s+/g); ; ) { + var g = l.indexOf(c); + if (-1 == g) break; + l.splice(g, 1); + } + i.className = l.join(" "); + }), + (f.toggleCssClass = function (i, c) { + for (var l = i.className.split(/\s+/g), g = !0; ; ) { + var b = l.indexOf(c); + if (-1 == b) break; + (g = !1), l.splice(b, 1); + } + return g && l.push(c), (i.className = l.join(" ")), g; + }), + (f.setCssClass = function (i, c, l) { + l ? f.addCssClass(i, c) : f.removeCssClass(i, c); + }), + (f.hasCssString = function (i, c) { + var g, + l = 0; + if ((g = (c = c || document).querySelectorAll("style"))) + for (; l < g.length; ) if (g[l++].id === i) return !0; + }); + var d, + u = []; + function h() { + var i = u; + (u = null), + i && + i.forEach(function (c) { + r(c[0], c[1]); + }); + } + function r(i, c, l) { + if ("undefined" != typeof document) { + if (u) + if (l) h(); + else if (!1 === l) return u.push([i, c]); + if (!d) { + var g = l; + l && l.getRootNode + ? (!(g = l.getRootNode()) || g == l) && (g = document) + : (g = document); + var b = g.ownerDocument || g; + if (c && f.hasCssString(c, g)) return null; + c && (i += "\n/*# sourceURL=ace/css/" + c + " */"); + var y = f.createElement("style"); + y.appendChild(b.createTextNode(i)), + c && (y.id = c), + g == b && (g = f.getDocumentHead(b)), + g.insertBefore(y, g.firstChild); + } + } + } + if ( + ((f.useStrictCSP = function (i) { + (d = i), 0 == i ? h() : u || (u = []); + }), + (f.importCssString = r), + (f.importCssStylsheet = function (i, c) { + f.buildDom( + ["link", { rel: "stylesheet", href: i }], + f.getDocumentHead(c) + ); + }), + (f.scrollbarWidth = function (i) { + var c = f.createElement("ace_inner"); + (c.style.width = "100%"), + (c.style.minWidth = "0px"), + (c.style.height = "200px"), + (c.style.display = "block"); + var l = f.createElement("ace_outer"), + g = l.style; + (g.position = "absolute"), + (g.left = "-10000px"), + (g.overflow = "hidden"), + (g.width = "200px"), + (g.minWidth = "0px"), + (g.height = "150px"), + (g.display = "block"), + l.appendChild(c); + var b = i.documentElement; + b.appendChild(l); + var y = c.offsetWidth; + g.overflow = "scroll"; + var x = c.offsetWidth; + return y == x && (x = l.clientWidth), b.removeChild(l), y - x; + }), + (f.computedStyle = function (i, c) { + return window.getComputedStyle(i, "") || {}; + }), + (f.setStyle = function (i, c, l) { + i[c] !== l && (i[c] = l); + }), + (f.HAS_CSS_ANIMATION = !1), + (f.HAS_CSS_TRANSFORMS = !1), + (f.HI_DPI = + !m.isWin || + ("undefined" != typeof window && + window.devicePixelRatio >= 1.5)), + m.isChromeOS && (f.HI_DPI = !1), + "undefined" != typeof document) + ) { + var o = document.createElement("div"); + f.HI_DPI && + void 0 !== o.style.transform && + (f.HAS_CSS_TRANSFORMS = !0), + !m.isEdge && + void 0 !== o.style.animationName && + (f.HAS_CSS_ANIMATION = !0), + (o = null); + } + f.translate = f.HAS_CSS_TRANSFORMS + ? function (i, c, l) { + i.style.transform = + "translate(" + + Math.round(c) + + "px, " + + Math.round(l) + + "px)"; + } + : function (i, c, l) { + (i.style.top = Math.round(l) + "px"), + (i.style.left = Math.round(c) + "px"); + }; + } + ), + ace.define( + "ace/lib/oop", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + (f.inherits = function (m, s) { + (m.super_ = s), + (m.prototype = Object.create(s.prototype, { + constructor: { + value: m, + enumerable: !1, + writable: !0, + configurable: !0, + }, + })); + }), + (f.mixin = function (m, s) { + for (var d in s) m[d] = s[d]; + return m; + }), + (f.implement = function (m, s) { + f.mixin(m, s); + }); + } + ), + ace.define( + "ace/lib/keys", + ["require", "exports", "module", "ace/lib/oop"], + function (n, f, _) { + "use strict"; + var m = n("./oop"), + s = (function () { + var u, + h, + d = { + MODIFIER_KEYS: { + 16: "Shift", + 17: "Ctrl", + 18: "Alt", + 224: "Meta", + 91: "MetaLeft", + 92: "MetaRight", + 93: "ContextMenu", + }, + KEY_MODS: { + ctrl: 1, + alt: 2, + option: 2, + shift: 4, + super: 8, + meta: 8, + command: 8, + cmd: 8, + control: 1, + }, + FUNCTION_KEYS: { + 8: "Backspace", + 9: "Tab", + 13: "Return", + 19: "Pause", + 27: "Esc", + 32: "Space", + 33: "PageUp", + 34: "PageDown", + 35: "End", + 36: "Home", + 37: "Left", + 38: "Up", + 39: "Right", + 40: "Down", + 44: "Print", + 45: "Insert", + 46: "Delete", + 96: "Numpad0", + 97: "Numpad1", + 98: "Numpad2", + 99: "Numpad3", + 100: "Numpad4", + 101: "Numpad5", + 102: "Numpad6", + 103: "Numpad7", + 104: "Numpad8", + 105: "Numpad9", + "-13": "NumpadEnter", + 112: "F1", + 113: "F2", + 114: "F3", + 115: "F4", + 116: "F5", + 117: "F6", + 118: "F7", + 119: "F8", + 120: "F9", + 121: "F10", + 122: "F11", + 123: "F12", + 144: "Numlock", + 145: "Scrolllock", + }, + PRINTABLE_KEYS: { + 32: " ", + 48: "0", + 49: "1", + 50: "2", + 51: "3", + 52: "4", + 53: "5", + 54: "6", + 55: "7", + 56: "8", + 57: "9", + 59: ";", + 61: "=", + 65: "a", + 66: "b", + 67: "c", + 68: "d", + 69: "e", + 70: "f", + 71: "g", + 72: "h", + 73: "i", + 74: "j", + 75: "k", + 76: "l", + 77: "m", + 78: "n", + 79: "o", + 80: "p", + 81: "q", + 82: "r", + 83: "s", + 84: "t", + 85: "u", + 86: "v", + 87: "w", + 88: "x", + 89: "y", + 90: "z", + 107: "+", + 109: "-", + 110: ".", + 186: ";", + 187: "=", + 188: ",", + 189: "-", + 190: ".", + 191: "/", + 192: "`", + 219: "[", + 220: "\\", + 221: "]", + 222: "'", + 111: "/", + 106: "*", + }, + }; + for (h in d.FUNCTION_KEYS) + (u = d.FUNCTION_KEYS[h].toLowerCase()), + (d[u] = parseInt(h, 10)); + for (h in d.PRINTABLE_KEYS) + (u = d.PRINTABLE_KEYS[h].toLowerCase()), + (d[u] = parseInt(h, 10)); + return ( + m.mixin(d, d.MODIFIER_KEYS), + m.mixin(d, d.PRINTABLE_KEYS), + m.mixin(d, d.FUNCTION_KEYS), + (d.enter = d.return), + (d.escape = d.esc), + (d.del = d.delete), + (d[173] = "-"), + (function () { + for ( + var r = ["cmd", "ctrl", "alt", "shift"], + o = Math.pow(2, r.length); + o--; + + ) + d.KEY_MODS[o] = + r + .filter(function (i) { + return o & d.KEY_MODS[i]; + }) + .join("-") + "-"; + })(), + (d.KEY_MODS[0] = ""), + (d.KEY_MODS[-1] = "input-"), + d + ); + })(); + m.mixin(f, s), + (f.keyCodeToString = function (d) { + var u = s[d]; + return ( + "string" != typeof u && (u = String.fromCharCode(d)), + u.toLowerCase() + ); + }); + } + ), + ace.define( + "ace/lib/event", + ["require", "exports", "module", "ace/lib/keys", "ace/lib/useragent"], + function (n, f, _) { + "use strict"; + var h, + m = n("./keys"), + s = n("./useragent"), + d = null, + u = 0; + function o() { + return ( + null == h && + (function () { + h = !1; + try { + document + .createComment("") + .addEventListener("test", function () {}, { + get passive() { + h = { passive: !1 }; + }, + }); + } catch (T) {} + })(), + h + ); + } + function i(T, O, M) { + (this.elem = T), (this.type = O), (this.callback = M); + } + i.prototype.destroy = function () { + l(this.elem, this.type, this.callback), + (this.elem = this.type = this.callback = void 0); + }; + var c = (f.addListener = function (T, O, M, A) { + T.addEventListener(O, M, o()), + A && A.$toDestroy.push(new i(T, O, M)); + }), + l = (f.removeListener = function (T, O, M) { + T.removeEventListener(O, M, o()); + }); + (f.stopEvent = function (T) { + return f.stopPropagation(T), f.preventDefault(T), !1; + }), + (f.stopPropagation = function (T) { + T.stopPropagation && T.stopPropagation(); + }), + (f.preventDefault = function (T) { + T.preventDefault && T.preventDefault(); + }), + (f.getButton = function (T) { + return "dblclick" == T.type + ? 0 + : "contextmenu" == T.type || + (s.isMac && T.ctrlKey && !T.altKey && !T.shiftKey) + ? 2 + : T.button; + }), + (f.capture = function (T, O, M) { + var A = (T && T.ownerDocument) || document; + function S(w) { + O && O(w), + M && M(w), + l(A, "mousemove", O), + l(A, "mouseup", S), + l(A, "dragstart", S); + } + return ( + c(A, "mousemove", O), + c(A, "mouseup", S), + c(A, "dragstart", S), + S + ); + }), + (f.addMouseWheelListener = function (T, O, M) { + "onmousewheel" in T + ? c( + T, + "mousewheel", + function (A) { + void 0 !== A.wheelDeltaX + ? ((A.wheelX = -A.wheelDeltaX / 8), + (A.wheelY = -A.wheelDeltaY / 8)) + : ((A.wheelX = 0), (A.wheelY = -A.wheelDelta / 8)), + O(A); + }, + M + ) + : "onwheel" in T + ? c( + T, + "wheel", + function (A) { + switch (A.deltaMode) { + case A.DOM_DELTA_PIXEL: + (A.wheelX = 0.35 * A.deltaX || 0), + (A.wheelY = 0.35 * A.deltaY || 0); + break; + case A.DOM_DELTA_LINE: + case A.DOM_DELTA_PAGE: + (A.wheelX = 5 * (A.deltaX || 0)), + (A.wheelY = 5 * (A.deltaY || 0)); + } + O(A); + }, + M + ) + : c( + T, + "DOMMouseScroll", + function (A) { + A.axis && A.axis == A.HORIZONTAL_AXIS + ? ((A.wheelX = 5 * (A.detail || 0)), (A.wheelY = 0)) + : ((A.wheelX = 0), (A.wheelY = 5 * (A.detail || 0))), + O(A); + }, + M + ); + }), + (f.addMultiMouseDownListener = function (T, O, M, A, S) { + var I, + C, + L, + w = 0, + F = { 2: "dblclick", 3: "tripleclick", 4: "quadclick" }; + function ie(Y) { + if ( + (0 !== f.getButton(Y) + ? (w = 0) + : Y.detail > 1 + ? ++w > 4 && (w = 1) + : (w = 1), + s.isIE) + ) { + var Z = + Math.abs(Y.clientX - I) > 5 || + Math.abs(Y.clientY - C) > 5; + (!L || Z) && (w = 1), + L && clearTimeout(L), + (L = setTimeout(function () { + L = null; + }, O[w - 1] || 600)), + 1 == w && ((I = Y.clientX), (C = Y.clientY)); + } + if (((Y._clicks = w), M[A]("mousedown", Y), w > 4)) w = 0; + else if (w > 1) return M[A](F[w], Y); + } + Array.isArray(T) || (T = [T]), + T.forEach(function (Y) { + c(Y, "mousedown", ie, S); + }); + }); + var g = function (T) { + return ( + 0 | + (T.ctrlKey ? 1 : 0) | + (T.altKey ? 2 : 0) | + (T.shiftKey ? 4 : 0) | + (T.metaKey ? 8 : 0) + ); + }; + function b(T, O, M) { + var A = g(O); + if (!s.isMac && d) { + if ( + (O.getModifierState && + (O.getModifierState("OS") || O.getModifierState("Win")) && + (A |= 8), + d.altGr) + ) { + if (3 == (3 & A)) return; + d.altGr = 0; + } + if (18 === M || 17 === M) { + var S = "location" in O ? O.location : O.keyLocation; + 17 === M && 1 === S + ? 1 == d[M] && (u = O.timeStamp) + : 18 === M && + 3 === A && + 2 === S && + O.timeStamp - u < 50 && + (d.altGr = !0); + } + } + if ( + (M in m.MODIFIER_KEYS && (M = -1), + A || + 13 !== M || + 3 !== (S = "location" in O ? O.location : O.keyLocation) || + (T(O, A, -M), !O.defaultPrevented)) + ) { + if (s.isChromeOS && 8 & A) { + if ((T(O, A, M), O.defaultPrevented)) return; + A &= -9; + } + return ( + !!(A || M in m.FUNCTION_KEYS || M in m.PRINTABLE_KEYS) && + T(O, A, M) + ); + } + } + function y() { + d = Object.create(null); + } + if ( + ((f.getModifierString = function (T) { + return m.KEY_MODS[g(T)]; + }), + (f.addCommandKeyListener = function (T, O, M) { + if ( + s.isOldGecko || + (s.isOpera && !("KeyboardEvent" in window)) + ) { + var A = null; + c( + T, + "keydown", + function (w) { + A = w.keyCode; + }, + M + ), + c( + T, + "keypress", + function (w) { + return b(O, w, A); + }, + M + ); + } else { + var S = null; + c( + T, + "keydown", + function (w) { + d[w.keyCode] = (d[w.keyCode] || 0) + 1; + var I = b(O, w, w.keyCode); + return (S = w.defaultPrevented), I; + }, + M + ), + c( + T, + "keypress", + function (w) { + S && + (w.ctrlKey || w.altKey || w.shiftKey || w.metaKey) && + (f.stopEvent(w), (S = null)); + }, + M + ), + c( + T, + "keyup", + function (w) { + d[w.keyCode] = null; + }, + M + ), + d || (y(), c(window, "focus", y)); + } + }), + "object" == typeof window && window.postMessage && !s.isOldIE) + ) { + var x = 1; + f.nextTick = function (T, O) { + O = O || window; + var M = "zero-timeout-message-" + x++, + A = function (S) { + S.data == M && + (f.stopPropagation(S), l(O, "message", A), T()); + }; + c(O, "message", A), O.postMessage(M, "*"); + }; + } + (f.$idleBlocked = !1), + (f.onIdle = function (T, O) { + return setTimeout(function M() { + f.$idleBlocked ? setTimeout(M, 100) : T(); + }, O); + }), + (f.$idleBlockId = null), + (f.blockIdle = function (T) { + f.$idleBlockId && clearTimeout(f.$idleBlockId), + (f.$idleBlocked = !0), + (f.$idleBlockId = setTimeout(function () { + f.$idleBlocked = !1; + }, T || 100)); + }), + (f.nextFrame = + "object" == typeof window && + (window.requestAnimationFrame || + window.mozRequestAnimationFrame || + window.webkitRequestAnimationFrame || + window.msRequestAnimationFrame || + window.oRequestAnimationFrame)), + (f.nextFrame = f.nextFrame + ? f.nextFrame.bind(window) + : function (T) { + setTimeout(T, 17); + }); + } + ), + ace.define( + "ace/range", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + var s = function (d, u, h, r) { + (this.start = { row: d, column: u }), + (this.end = { row: h, column: r }); + }; + (function () { + (this.isEqual = function (d) { + return ( + this.start.row === d.start.row && + this.end.row === d.end.row && + this.start.column === d.start.column && + this.end.column === d.end.column + ); + }), + (this.toString = function () { + return ( + "Range: [" + + this.start.row + + "/" + + this.start.column + + "] -> [" + + this.end.row + + "/" + + this.end.column + + "]" + ); + }), + (this.contains = function (d, u) { + return 0 == this.compare(d, u); + }), + (this.compareRange = function (d) { + var u, + h = d.end, + r = d.start; + return 1 == (u = this.compare(h.row, h.column)) + ? 1 == (u = this.compare(r.row, r.column)) + ? 2 + : 0 == u + ? 1 + : 0 + : -1 == u + ? -2 + : -1 == (u = this.compare(r.row, r.column)) + ? -1 + : 1 == u + ? 42 + : 0; + }), + (this.comparePoint = function (d) { + return this.compare(d.row, d.column); + }), + (this.containsRange = function (d) { + return ( + 0 == this.comparePoint(d.start) && + 0 == this.comparePoint(d.end) + ); + }), + (this.intersects = function (d) { + var u = this.compareRange(d); + return -1 == u || 0 == u || 1 == u; + }), + (this.isEnd = function (d, u) { + return this.end.row == d && this.end.column == u; + }), + (this.isStart = function (d, u) { + return this.start.row == d && this.start.column == u; + }), + (this.setStart = function (d, u) { + "object" == typeof d + ? ((this.start.column = d.column), (this.start.row = d.row)) + : ((this.start.row = d), (this.start.column = u)); + }), + (this.setEnd = function (d, u) { + "object" == typeof d + ? ((this.end.column = d.column), (this.end.row = d.row)) + : ((this.end.row = d), (this.end.column = u)); + }), + (this.inside = function (d, u) { + return ( + 0 == this.compare(d, u) && + !(this.isEnd(d, u) || this.isStart(d, u)) + ); + }), + (this.insideStart = function (d, u) { + return 0 == this.compare(d, u) && !this.isEnd(d, u); + }), + (this.insideEnd = function (d, u) { + return 0 == this.compare(d, u) && !this.isStart(d, u); + }), + (this.compare = function (d, u) { + return this.isMultiLine() || d !== this.start.row + ? d < this.start.row + ? -1 + : d > this.end.row + ? 1 + : this.start.row === d + ? u >= this.start.column + ? 0 + : -1 + : this.end.row === d + ? u <= this.end.column + ? 0 + : 1 + : 0 + : u < this.start.column + ? -1 + : u > this.end.column + ? 1 + : 0; + }), + (this.compareStart = function (d, u) { + return this.start.row == d && this.start.column == u + ? -1 + : this.compare(d, u); + }), + (this.compareEnd = function (d, u) { + return this.end.row == d && this.end.column == u + ? 1 + : this.compare(d, u); + }), + (this.compareInside = function (d, u) { + return this.end.row == d && this.end.column == u + ? 1 + : this.start.row == d && this.start.column == u + ? -1 + : this.compare(d, u); + }), + (this.clipRows = function (d, u) { + if (this.end.row > u) var h = { row: u + 1, column: 0 }; + else this.end.row < d && (h = { row: d, column: 0 }); + if (this.start.row > u) var r = { row: u + 1, column: 0 }; + else this.start.row < d && (r = { row: d, column: 0 }); + return s.fromPoints(r || this.start, h || this.end); + }), + (this.extend = function (d, u) { + var h = this.compare(d, u); + if (0 == h) return this; + if (-1 == h) var r = { row: d, column: u }; + else var o = { row: d, column: u }; + return s.fromPoints(r || this.start, o || this.end); + }), + (this.isEmpty = function () { + return ( + this.start.row === this.end.row && + this.start.column === this.end.column + ); + }), + (this.isMultiLine = function () { + return this.start.row !== this.end.row; + }), + (this.clone = function () { + return s.fromPoints(this.start, this.end); + }), + (this.collapseRows = function () { + return new s( + this.start.row, + 0, + 0 == this.end.column + ? Math.max(this.start.row, this.end.row - 1) + : this.end.row, + 0 + ); + }), + (this.toScreenRange = function (d) { + var u = d.documentToScreenPosition(this.start), + h = d.documentToScreenPosition(this.end); + return new s(u.row, u.column, h.row, h.column); + }), + (this.moveBy = function (d, u) { + (this.start.row += d), + (this.start.column += u), + (this.end.row += d), + (this.end.column += u); + }); + }.call(s.prototype), + (s.fromPoints = function (d, u) { + return new s(d.row, d.column, u.row, u.column); + }), + (s.comparePoints = function (d, u) { + return d.row - u.row || d.column - u.column; + }), + (s.comparePoints = function (d, u) { + return d.row - u.row || d.column - u.column; + }), + (f.Range = s)); + } + ), + ace.define( + "ace/lib/lang", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + (f.last = function (d) { + return d[d.length - 1]; + }), + (f.stringReverse = function (d) { + return d.split("").reverse().join(""); + }), + (f.stringRepeat = function (d, u) { + for (var h = ""; u > 0; ) + 1 & u && (h += d), (u >>= 1) && (d += d); + return h; + }); + var m = /^\s\s*/, + s = /\s\s*$/; + (f.stringTrimLeft = function (d) { + return d.replace(m, ""); + }), + (f.stringTrimRight = function (d) { + return d.replace(s, ""); + }), + (f.copyObject = function (d) { + var u = {}; + for (var h in d) u[h] = d[h]; + return u; + }), + (f.copyArray = function (d) { + for (var u = [], h = 0, r = d.length; h < r; h++) + u[h] = + d[h] && "object" == typeof d[h] + ? this.copyObject(d[h]) + : d[h]; + return u; + }), + (f.deepCopy = function d(u) { + if ("object" != typeof u || !u) return u; + var h; + if (Array.isArray(u)) { + h = []; + for (var r = 0; r < u.length; r++) h[r] = d(u[r]); + return h; + } + if ("[object Object]" !== Object.prototype.toString.call(u)) + return u; + for (var r in ((h = {}), u)) h[r] = d(u[r]); + return h; + }), + (f.arrayToMap = function (d) { + for (var u = {}, h = 0; h < d.length; h++) u[d[h]] = 1; + return u; + }), + (f.createMap = function (d) { + var u = Object.create(null); + for (var h in d) u[h] = d[h]; + return u; + }), + (f.arrayRemove = function (d, u) { + for (var h = 0; h <= d.length; h++) + u === d[h] && d.splice(h, 1); + }), + (f.escapeRegExp = function (d) { + return d.replace(/([.*+?^${}()|[\]\/\\])/g, "\\$1"); + }), + (f.escapeHTML = function (d) { + return ("" + d) + .replace(/&/g, "&") + .replace(/"/g, """) + .replace(/'/g, "'") + .replace(/ Date.now() - 50) || (m = !1); + }, + cancel: function () { + m = Date.now(); + }, + }; + } + ), + ace.define( + "ace/keyboard/textinput", + [ + "require", + "exports", + "module", + "ace/lib/event", + "ace/lib/useragent", + "ace/lib/dom", + "ace/lib/lang", + "ace/clipboard", + "ace/lib/keys", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/event"), + s = n("../lib/useragent"), + d = n("../lib/dom"), + u = n("../lib/lang"), + h = n("../clipboard"), + r = s.isChrome < 18, + o = s.isIE, + i = s.isChrome > 63, + c = 400, + l = n("../lib/keys"), + g = l.KEY_MODS, + b = s.isIOS, + y = b ? /\s/ : /\n/, + x = s.isMobile; + (f.TextInput = function (O, M) { + var A = d.createElement("textarea"); + (A.className = "ace_text-input"), + A.setAttribute("wrap", "off"), + A.setAttribute("autocorrect", "off"), + A.setAttribute("autocapitalize", "off"), + A.setAttribute("spellcheck", !1), + (A.style.opacity = "0"), + O.insertBefore(A, O.firstChild); + var S = !1, + w = !1, + I = !1, + C = !1, + L = ""; + x || (A.style.fontSize = "1px"); + var F = !1, + ie = !1, + Y = "", + Z = 0, + ee = 0, + $ = 0; + try { + var J = document.activeElement === A; + } catch (H) {} + m.addListener( + A, + "blur", + function (H) { + ie || (M.onBlur(H), (J = !1)); + }, + M + ), + m.addListener( + A, + "focus", + function (H) { + if (!ie) { + if (((J = !0), s.isEdge)) + try { + if (!document.hasFocus()) return; + } catch (D) {} + M.onFocus(H), s.isEdge ? setTimeout(ne) : ne(); + } + }, + M + ), + (this.$focusScroll = !1), + (this.focus = function () { + if (L || i || "browser" == this.$focusScroll) + return A.focus({ preventScroll: !0 }); + var H = A.style.top; + (A.style.position = "fixed"), (A.style.top = "0px"); + try { + var D = 0 != A.getBoundingClientRect().top; + } catch (_e) { + return; + } + var U = []; + if (D) + for (var X = A.parentElement; X && 1 == X.nodeType; ) + U.push(X), + X.setAttribute("ace_nocontext", !0), + (X = + !X.parentElement && X.getRootNode + ? X.getRootNode().host + : X.parentElement); + A.focus({ preventScroll: !0 }), + D && + U.forEach(function (_e) { + _e.removeAttribute("ace_nocontext"); + }), + setTimeout(function () { + (A.style.position = ""), + "0px" == A.style.top && (A.style.top = H); + }, 0); + }), + (this.blur = function () { + A.blur(); + }), + (this.isFocused = function () { + return J; + }), + M.on("beforeEndOperation", function () { + var H = M.curOp, + D = H && H.command && H.command.name; + "insertstring" != D && + (I && + D && + (H.docChanged || H.selectionChanged) && + ((Y = A.value = ""), ot()), + ne()); + }); + var ne = b + ? function (H) { + if (J && (!S || H) && !C) { + H || (H = ""); + var D = "\n ab" + H + "cde fg\n"; + D != A.value && (A.value = Y = D); + var X = 4 + (H.length || (M.selection.isEmpty() ? 0 : 1)); + (4 != Z || ee != X) && A.setSelectionRange(4, X), + (Z = 4), + (ee = X); + } + } + : function () { + if (!I && !C && (J || Le)) { + I = !0; + var H = 0, + D = 0, + U = ""; + if (M.session) { + var X = M.selection, + _e = X.getRange(), + Be = X.cursor.row; + if ( + ((H = _e.start.column), + (D = _e.end.column), + (U = M.session.getLine(Be)), + _e.start.row != Be) + ) { + var $e = M.session.getLine(Be - 1); + (H = _e.start.row < Be - 1 ? 0 : H), + (D += $e.length + 1), + (U = $e + "\n" + U); + } else if (_e.end.row != Be) { + var st = M.session.getLine(Be + 1); + (D = _e.end.row > Be + 1 ? st.length : D), + (D += U.length + 1), + (U = U + "\n" + st); + } else + x && Be > 0 && ((U = "\n" + U), (D += 1), (H += 1)); + U.length > c && + (H < c && D < c + ? (U = U.slice(0, c)) + : ((U = "\n"), + H == D ? (H = D = 0) : ((H = 0), (D = 1)))); + } + var ut = U + "\n\n"; + if ( + (ut != Y && ((A.value = Y = ut), (Z = ee = ut.length)), + Le && ((Z = A.selectionStart), (ee = A.selectionEnd)), + ee != D || Z != H || A.selectionEnd != ee) + ) + try { + A.setSelectionRange(H, D), (Z = H), (ee = D); + } catch (St) {} + I = !1; + } + }; + (this.resetSelection = ne), J && M.onFocus(); + var Oe = null; + (this.setInputHandler = function (H) { + Oe = H; + }), + (this.getInputHandler = function () { + return Oe; + }); + var Le = !1, + Ye = function (H, D) { + if ((Le && (Le = !1), w)) + return ne(), H && M.onPaste(H), (w = !1), ""; + for ( + var U = A.selectionStart, + X = A.selectionEnd, + _e = Z, + Be = Y.length - ee, + $e = H, + st = H.length - U, + ut = H.length - X, + St = 0; + _e > 0 && Y[St] == H[St]; + + ) + St++, _e--; + for ( + $e = $e.slice(St), St = 1; + Be > 0 && + Y.length - St > Z - 1 && + Y[Y.length - St] == H[H.length - St]; + + ) + St++, Be--; + (st -= St - 1), (ut -= St - 1); + var Xt = $e.length - St + 1; + if ( + (Xt < 0 && ((_e = -Xt), (Xt = 0)), + ($e = $e.slice(0, Xt)), + !(D || $e || st || _e || Be || ut)) + ) + return ""; + C = !0; + var tn = !1; + return ( + s.isAndroid && ". " == $e && (($e = " "), (tn = !0)), + ($e && !_e && !Be && !st && !ut) || F + ? M.onTextInput($e) + : M.onTextInput($e, { + extendLeft: _e, + extendRight: Be, + restoreStart: st, + restoreEnd: ut, + }), + (C = !1), + (Y = H), + (Z = U), + (ee = X), + ($ = ut), + tn ? "\n" : $e + ); + }, + Je = function (H) { + if (I) return yt(); + if (H && H.inputType) { + if ("historyUndo" == H.inputType) + return M.execCommand("undo"); + if ("historyRedo" == H.inputType) + return M.execCommand("redo"); + } + var D = A.value, + U = Ye(D, !0); + (D.length > 500 || y.test(U) || (x && Z < 1 && Z == ee)) && + ne(); + }, + gt = function (H, D, U) { + var X = H.clipboardData || window.clipboardData; + if (X && !r) { + var _e = o || U ? "Text" : "text/plain"; + try { + return D ? !1 !== X.setData(_e, D) : X.getData(_e); + } catch (Be) { + if (!U) return gt(Be, D, !0); + } + } + }, + Ue = function (H, D) { + var U = M.getCopyText(); + if (!U) return m.preventDefault(H); + gt(H, U) + ? (b && + (ne(U), + (S = U), + setTimeout(function () { + S = !1; + }, 10)), + D ? M.onCut() : M.onCopy(), + m.preventDefault(H)) + : ((S = !0), + (A.value = U), + A.select(), + setTimeout(function () { + (S = !1), ne(), D ? M.onCut() : M.onCopy(); + })); + }, + tt = function (H) { + Ue(H, !0); + }, + at = function (H) { + Ue(H, !1); + }, + ft = function (H) { + var D = gt(H); + h.pasteCancelled() || + ("string" == typeof D + ? (D && M.onPaste(D, H), + s.isIE && setTimeout(ne), + m.preventDefault(H)) + : ((A.value = ""), (w = !0))); + }; + m.addCommandKeyListener(A, M.onCommandKey.bind(M), M), + m.addListener( + A, + "select", + function (H) { + I || + (S + ? (S = !1) + : (function (H) { + return ( + 0 === H.selectionStart && + H.selectionEnd >= Y.length && + H.value === Y && + Y && + H.selectionEnd !== ee + ); + })(A) + ? (M.selectAll(), ne()) + : x && A.selectionStart != Z && ne()); + }, + M + ), + m.addListener(A, "input", Je, M), + m.addListener(A, "cut", tt, M), + m.addListener(A, "copy", at, M), + m.addListener(A, "paste", ft, M), + (!("oncut" in A) || !("oncopy" in A) || !("onpaste" in A)) && + m.addListener( + O, + "keydown", + function (H) { + if ((!s.isMac || H.metaKey) && H.ctrlKey) + switch (H.keyCode) { + case 67: + at(H); + break; + case 86: + ft(H); + break; + case 88: + tt(H); + } + }, + M + ); + var yt = function () { + if (I && M.onCompositionUpdate && !M.$readOnly) { + if (F) return _t(); + I.useTextareaForIME + ? M.onCompositionUpdate(A.value) + : (Ye(A.value), + I.markerRange && + (I.context && + (I.markerRange.start.column = I.selectionStart = + I.context.compositionStartOffset), + (I.markerRange.end.column = + I.markerRange.start.column + + ee - + I.selectionStart + + $))); + } + }, + ot = function (H) { + !M.onCompositionEnd || + M.$readOnly || + ((I = !1), + M.onCompositionEnd(), + M.off("mousedown", _t), + H && Je()); + }; + function _t() { + (ie = !0), A.blur(), A.focus(), (ie = !1); + } + var Bt, + At = u.delayedCall(yt, 50).schedule.bind(null, null); + function Et() { + clearTimeout(Bt), + (Bt = setTimeout(function () { + L && ((A.style.cssText = L), (L = "")), + (M.renderer.$isMousePressed = !1), + M.renderer.$keepTextAreaAtCursor && + M.renderer.$moveTextAreaToCursor(); + }, 0)); + } + m.addListener( + A, + "compositionstart", + function (H) { + if ( + !I && + M.onCompositionStart && + !M.$readOnly && + ((I = {}), !F) + ) { + H.data && (I.useTextareaForIME = !1), + setTimeout(yt, 0), + M._signal("compositionStart"), + M.on("mousedown", _t); + var D = M.getSelectionRange(); + (D.end.row = D.start.row), + (D.end.column = D.start.column), + (I.markerRange = D), + (I.selectionStart = Z), + M.onCompositionStart(I), + I.useTextareaForIME + ? ((Y = A.value = ""), (Z = 0), (ee = 0)) + : (A.msGetInputContext && + (I.context = A.msGetInputContext()), + A.getInputContext && + (I.context = A.getInputContext())); + } + }, + M + ), + m.addListener(A, "compositionupdate", yt, M), + m.addListener( + A, + "keyup", + function (H) { + 27 == H.keyCode && + A.value.length < A.selectionStart && + (I || (Y = A.value), (Z = ee = -1), ne()), + At(); + }, + M + ), + m.addListener(A, "keydown", At, M), + m.addListener(A, "compositionend", ot, M), + (this.getElement = function () { + return A; + }), + (this.setCommandMode = function (H) { + (F = H), (A.readOnly = !1); + }), + (this.setReadOnly = function (H) { + F || (A.readOnly = H); + }), + (this.setCopyWithEmptySelection = function (H) {}), + (this.onContextMenu = function (H) { + (Le = !0), + ne(), + M._emit("nativecontextmenu", { target: M, domEvent: H }), + this.moveToMouse(H, !0); + }), + (this.moveToMouse = function (H, D) { + L || (L = A.style.cssText), + (A.style.cssText = + (D ? "z-index:100000;" : "") + + (s.isIE ? "opacity:0.1;" : "") + + "text-indent: -" + + (Z + ee) * M.renderer.characterWidth * 0.5 + + "px;"); + var U = M.container.getBoundingClientRect(), + X = d.computedStyle(M.container), + _e = U.top + (parseInt(X.borderTopWidth) || 0), + Be = U.left + (parseInt(U.borderLeftWidth) || 0), + $e = U.bottom - _e - A.clientHeight - 2, + st = function (ut) { + d.translate( + A, + ut.clientX - Be - 2, + Math.min(ut.clientY - _e - 2, $e) + ); + }; + st(H), + "mousedown" == H.type && + ((M.renderer.$isMousePressed = !0), + clearTimeout(Bt), + s.isWin && m.capture(M.container, st, Et)); + }), + (this.onContextMenuClose = Et); + var Ee = function (H) { + M.textInput.onContextMenu(H), Et(); + }; + m.addListener(A, "mouseup", Ee, M), + m.addListener( + A, + "mousedown", + function (H) { + H.preventDefault(), Et(); + }, + M + ), + m.addListener(M.renderer.scroller, "contextmenu", Ee, M), + m.addListener(A, "contextmenu", Ee, M), + b && + (function (H, D, U) { + var X = null, + _e = !1; + U.addEventListener( + "keydown", + function ($e) { + X && clearTimeout(X), (_e = !0); + }, + !0 + ), + U.addEventListener( + "keyup", + function ($e) { + X = setTimeout(function () { + _e = !1; + }, 100); + }, + !0 + ); + var Be = function ($e) { + if ( + document.activeElement === U && + !(_e || I || D.$mouseHandler.isMousePressed) && + !S + ) { + var st = U.selectionStart, + ut = U.selectionEnd, + St = null, + Xt = 0; + if ( + (0 == st + ? (St = l.up) + : 1 == st + ? (St = l.home) + : ut > ee && "\n" == Y[ut] + ? (St = l.end) + : st < Z && " " == Y[st - 1] + ? ((St = l.left), (Xt = g.option)) + : st < Z || (st == Z && ee != Z && st == ut) + ? (St = l.left) + : ut > ee && Y.slice(0, ut).split("\n").length > 2 + ? (St = l.down) + : ut > ee && " " == Y[ut - 1] + ? ((St = l.right), (Xt = g.option)) + : (ut > ee || (ut == ee && ee != Z && st == ut)) && + (St = l.right), + st !== ut && (Xt |= g.shift), + St) + ) { + if (!D.onCommandKey({}, Xt, St) && D.commands) { + St = l.keyCodeToString(St); + var Dt = D.commands.findKeyCommand(Xt, St); + Dt && D.execCommand(Dt); + } + (Z = st), (ee = ut), ne(""); + } + } + }; + document.addEventListener("selectionchange", Be), + D.on("destroy", function () { + document.removeEventListener("selectionchange", Be); + }); + })(0, M, A); + }), + (f.$setUserAgentForTests = function (O, M) { + (x = O), (b = M); + }); + } + ), + ace.define( + "ace/mouse/default_handlers", + ["require", "exports", "module", "ace/lib/useragent"], + function (n, f, _) { + "use strict"; + var m = n("../lib/useragent"); + function u(o) { + o.$clickSelection = null; + var i = o.editor; + i.setDefaultHandler("mousedown", this.onMouseDown.bind(o)), + i.setDefaultHandler("dblclick", this.onDoubleClick.bind(o)), + i.setDefaultHandler("tripleclick", this.onTripleClick.bind(o)), + i.setDefaultHandler("quadclick", this.onQuadClick.bind(o)), + i.setDefaultHandler("mousewheel", this.onMouseWheel.bind(o)), + [ + "select", + "startSelect", + "selectEnd", + "selectAllEnd", + "selectByWordsEnd", + "selectByLinesEnd", + "dragWait", + "dragWaitEnd", + "focusWait", + ].forEach(function (l) { + o[l] = this[l]; + }, this), + (o.selectByLines = this.extendSelectionBy.bind( + o, + "getLineRange" + )), + (o.selectByWords = this.extendSelectionBy.bind( + o, + "getWordRange" + )); + } + function r(o, i) { + if (o.start.row == o.end.row) + var c = 2 * i.column - o.start.column - o.end.column; + else if ( + o.start.row != o.end.row - 1 || + o.start.column || + o.end.column + ) + c = 2 * i.row - o.start.row - o.end.row; + else c = i.column - 4; + return c < 0 + ? { cursor: o.start, anchor: o.end } + : { cursor: o.end, anchor: o.start }; + } + (function () { + (this.onMouseDown = function (o) { + var i = o.inSelection(), + c = o.getDocumentPosition(); + this.mousedownEvent = o; + var l = this.editor, + g = o.getButton(); + return 0 !== g + ? ((l.getSelectionRange().isEmpty() || 1 == g) && + l.selection.moveToPosition(c), + void ( + 2 == g && + (l.textInput.onContextMenu(o.domEvent), + m.isMozilla || o.preventDefault()) + )) + : ((this.mousedownEvent.time = Date.now()), + !i || + l.isFocused() || + (l.focus(), + !this.$focusTimeout || + this.$clickSelection || + l.inMultiSelectMode) + ? (this.captureMouse(o), + this.startSelect(c, o.domEvent._clicks > 1), + o.preventDefault()) + : (this.setState("focusWait"), + void this.captureMouse(o))); + }), + (this.startSelect = function (o, i) { + o = + o || + this.editor.renderer.screenToTextCoordinates( + this.x, + this.y + ); + var c = this.editor; + !this.mousedownEvent || + (this.mousedownEvent.getShiftKey() + ? c.selection.selectToPosition(o) + : i || c.selection.moveToPosition(o), + i || this.select(), + c.renderer.scroller.setCapture && + c.renderer.scroller.setCapture(), + c.setStyle("ace_selecting"), + this.setState("select")); + }), + (this.select = function () { + var o, + i = this.editor, + c = i.renderer.screenToTextCoordinates(this.x, this.y); + if (this.$clickSelection) { + var l = this.$clickSelection.comparePoint(c); + if (-1 == l) o = this.$clickSelection.end; + else if (1 == l) o = this.$clickSelection.start; + else { + var g = r(this.$clickSelection, c); + (c = g.cursor), (o = g.anchor); + } + i.selection.setSelectionAnchor(o.row, o.column); + } + i.selection.selectToPosition(c), + i.renderer.scrollCursorIntoView(); + }), + (this.extendSelectionBy = function (o) { + var i, + c = this.editor, + l = c.renderer.screenToTextCoordinates(this.x, this.y), + g = c.selection[o](l.row, l.column); + if (this.$clickSelection) { + var b = this.$clickSelection.comparePoint(g.start), + y = this.$clickSelection.comparePoint(g.end); + if (-1 == b && y <= 0) + (i = this.$clickSelection.end), + (g.end.row != l.row || g.end.column != l.column) && + (l = g.start); + else if (1 == y && b >= 0) + (i = this.$clickSelection.start), + (g.start.row != l.row || g.start.column != l.column) && + (l = g.end); + else if (-1 == b && 1 == y) (l = g.end), (i = g.start); + else { + var x = r(this.$clickSelection, l); + (l = x.cursor), (i = x.anchor); + } + c.selection.setSelectionAnchor(i.row, i.column); + } + c.selection.selectToPosition(l), + c.renderer.scrollCursorIntoView(); + }), + (this.selectEnd = this.selectAllEnd = this.selectByWordsEnd = this.selectByLinesEnd = function () { + (this.$clickSelection = null), + this.editor.unsetStyle("ace_selecting"), + this.editor.renderer.scroller.releaseCapture && + this.editor.renderer.scroller.releaseCapture(); + }), + (this.focusWait = function () { + var o = (function (o, i, c, l) { + return Math.sqrt(Math.pow(c - o, 2) + Math.pow(l - i, 2)); + })( + this.mousedownEvent.x, + this.mousedownEvent.y, + this.x, + this.y + ), + i = Date.now(); + (o > 0 || + i - this.mousedownEvent.time > this.$focusTimeout) && + this.startSelect(this.mousedownEvent.getDocumentPosition()); + }), + (this.onDoubleClick = function (o) { + var i = o.getDocumentPosition(), + c = this.editor, + g = c.session.getBracketRange(i); + g + ? (g.isEmpty() && (g.start.column--, g.end.column++), + this.setState("select")) + : ((g = c.selection.getWordRange(i.row, i.column)), + this.setState("selectByWords")), + (this.$clickSelection = g), + this.select(); + }), + (this.onTripleClick = function (o) { + var i = o.getDocumentPosition(), + c = this.editor; + this.setState("selectByLines"); + var l = c.getSelectionRange(); + l.isMultiLine() && l.contains(i.row, i.column) + ? ((this.$clickSelection = c.selection.getLineRange( + l.start.row + )), + (this.$clickSelection.end = c.selection.getLineRange( + l.end.row + ).end)) + : (this.$clickSelection = c.selection.getLineRange(i.row)), + this.select(); + }), + (this.onQuadClick = function (o) { + var i = this.editor; + i.selectAll(), + (this.$clickSelection = i.getSelectionRange()), + this.setState("selectAll"); + }), + (this.onMouseWheel = function (o) { + if (!o.getAccelKey()) { + o.getShiftKey() && + o.wheelY && + !o.wheelX && + ((o.wheelX = o.wheelY), (o.wheelY = 0)); + var i = this.editor; + this.$lastScroll || + (this.$lastScroll = { t: 0, vx: 0, vy: 0, allowed: 0 }); + var c = this.$lastScroll, + l = o.domEvent.timeStamp, + g = l - c.t, + b = g ? o.wheelX / g : c.vx, + y = g ? o.wheelY / g : c.vy; + g < 550 && ((b = (b + c.vx) / 2), (y = (y + c.vy) / 2)); + var x = Math.abs(b / y), + T = !1; + if ( + (x >= 1 && + i.renderer.isScrollableBy(o.wheelX * o.speed, 0) && + (T = !0), + x <= 1 && + i.renderer.isScrollableBy(0, o.wheelY * o.speed) && + (T = !0), + T + ? (c.allowed = l) + : l - c.allowed < 550 && + (Math.abs(b) <= 1.5 * Math.abs(c.vx) && + Math.abs(y) <= 1.5 * Math.abs(c.vy) + ? ((T = !0), (c.allowed = l)) + : (c.allowed = 0)), + (c.t = l), + (c.vx = b), + (c.vy = y), + T) + ) + return ( + i.renderer.scrollBy( + o.wheelX * o.speed, + o.wheelY * o.speed + ), + o.stop() + ); + } + }); + }.call(u.prototype), + (f.DefaultHandlers = u)); + } + ), + ace.define( + "ace/tooltip", + ["require", "exports", "module", "ace/lib/oop", "ace/lib/dom"], + function (n, f, _) { + "use strict"; + n("./lib/oop"); + var s = n("./lib/dom"); + function d(u) { + (this.isOpen = !1), + (this.$element = null), + (this.$parentNode = u); + } + (function () { + (this.$init = function () { + return ( + (this.$element = s.createElement("div")), + (this.$element.className = "ace_tooltip"), + (this.$element.style.display = "none"), + this.$parentNode.appendChild(this.$element), + this.$element + ); + }), + (this.getElement = function () { + return this.$element || this.$init(); + }), + (this.setText = function (u) { + this.getElement().textContent = u; + }), + (this.setHtml = function (u) { + this.getElement().innerHTML = u; + }), + (this.setPosition = function (u, h) { + (this.getElement().style.left = u + "px"), + (this.getElement().style.top = h + "px"); + }), + (this.setClassName = function (u) { + s.addCssClass(this.getElement(), u); + }), + (this.show = function (u, h, r) { + null != u && this.setText(u), + null != h && null != r && this.setPosition(h, r), + this.isOpen || + ((this.getElement().style.display = "block"), + (this.isOpen = !0)); + }), + (this.hide = function () { + this.isOpen && + ((this.getElement().style.display = "none"), + (this.isOpen = !1)); + }), + (this.getHeight = function () { + return this.getElement().offsetHeight; + }), + (this.getWidth = function () { + return this.getElement().offsetWidth; + }), + (this.destroy = function () { + (this.isOpen = !1), + this.$element && + this.$element.parentNode && + this.$element.parentNode.removeChild(this.$element); + }); + }.call(d.prototype), + (f.Tooltip = d)); + } + ), + ace.define( + "ace/mouse/default_gutter_handler", + [ + "require", + "exports", + "module", + "ace/lib/dom", + "ace/lib/oop", + "ace/lib/event", + "ace/tooltip", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/dom"), + s = n("../lib/oop"), + d = n("../lib/event"), + u = n("../tooltip").Tooltip; + function r(o) { + u.call(this, o); + } + s.inherits(r, u), + function () { + this.setPosition = function (o, i) { + var c = + window.innerWidth || document.documentElement.clientWidth, + l = + window.innerHeight || + document.documentElement.clientHeight, + g = this.getWidth(), + b = this.getHeight(); + (o += 15) + g > c && (o -= o + g - c), + (i += 15) + b > l && (i -= 20 + b), + u.prototype.setPosition.call(this, o, i); + }; + }.call(r.prototype), + (f.GutterHandler = function (o) { + var g, + b, + y, + i = o.editor, + c = i.renderer.$gutterLayer, + l = new r(i.container); + function T() { + g && (g = clearTimeout(g)), + y && + (l.hide(), + (y = null), + i._signal("hideGutterTooltip", l), + i.off("mousewheel", T)); + } + function O(M) { + l.setPosition(M.x, M.y); + } + o.editor.setDefaultHandler("guttermousedown", function (M) { + if ( + i.isFocused() && + 0 == M.getButton() && + "foldWidgets" != c.getRegion(M) + ) { + var S = M.getDocumentPosition().row, + w = i.session.selection; + if (M.getShiftKey()) w.selectTo(S, 0); + else { + if (2 == M.domEvent.detail) + return i.selectAll(), M.preventDefault(); + o.$clickSelection = i.selection.getLineRange(S); + } + return ( + o.setState("selectByLines"), + o.captureMouse(M), + M.preventDefault() + ); + } + }), + o.editor.setDefaultHandler("guttermousemove", function (M) { + if ( + m.hasCssClass( + M.domEvent.target || M.domEvent.srcElement, + "ace_fold-widget" + ) + ) + return T(); + y && o.$tooltipFollowsMouse && O(M), + (b = M), + !g && + (g = setTimeout(function () { + (g = null), + b && !o.isMousePressed + ? (function () { + var M = b.getDocumentPosition().row, + A = c.$annotations[M]; + if (!A) return T(); + if (M == i.session.getLength()) { + var w = i.renderer.pixelToScreenCoordinates( + 0, + b.y + ).row, + I = b.$pos; + if ( + w > + i.session.documentToScreenRow( + I.row, + I.column + ) + ) + return T(); + } + if (y != A) + if ( + ((y = A.text.join("
")), + l.setHtml(y), + l.show(), + i._signal("showGutterTooltip", l), + i.on("mousewheel", T), + o.$tooltipFollowsMouse) + ) + O(b); + else { + var L = b.domEvent.target.getBoundingClientRect(), + F = l.getElement().style; + (F.left = L.right + "px"), + (F.top = L.bottom + "px"); + } + })() + : T(); + }, 50)); + }), + d.addListener( + i.renderer.$gutter, + "mouseout", + function (M) { + (b = null), + y && + !g && + (g = setTimeout(function () { + (g = null), T(); + }, 50)); + }, + i + ), + i.on("changeSession", T); + }); + } + ), + ace.define( + "ace/mouse/mouse_event", + [ + "require", + "exports", + "module", + "ace/lib/event", + "ace/lib/useragent", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/event"), + s = n("../lib/useragent"), + d = (f.MouseEvent = function (u, h) { + (this.domEvent = u), + (this.editor = h), + (this.x = this.clientX = u.clientX), + (this.y = this.clientY = u.clientY), + (this.$pos = null), + (this.$inSelection = null), + (this.propagationStopped = !1), + (this.defaultPrevented = !1); + }); + (function () { + (this.stopPropagation = function () { + m.stopPropagation(this.domEvent), + (this.propagationStopped = !0); + }), + (this.preventDefault = function () { + m.preventDefault(this.domEvent), (this.defaultPrevented = !0); + }), + (this.stop = function () { + this.stopPropagation(), this.preventDefault(); + }), + (this.getDocumentPosition = function () { + return ( + this.$pos || + (this.$pos = this.editor.renderer.screenToTextCoordinates( + this.clientX, + this.clientY + )), + this.$pos + ); + }), + (this.inSelection = function () { + if (null !== this.$inSelection) return this.$inSelection; + var h = this.editor.getSelectionRange(); + if (h.isEmpty()) this.$inSelection = !1; + else { + var r = this.getDocumentPosition(); + this.$inSelection = h.contains(r.row, r.column); + } + return this.$inSelection; + }), + (this.getButton = function () { + return m.getButton(this.domEvent); + }), + (this.getShiftKey = function () { + return this.domEvent.shiftKey; + }), + (this.getAccelKey = s.isMac + ? function () { + return this.domEvent.metaKey; + } + : function () { + return this.domEvent.ctrlKey; + }); + }.call(d.prototype)); + } + ), + ace.define( + "ace/mouse/dragdrop_handler", + [ + "require", + "exports", + "module", + "ace/lib/dom", + "ace/lib/event", + "ace/lib/useragent", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/dom"), + s = n("../lib/event"), + d = n("../lib/useragent"); + function o(c) { + var l = c.editor, + g = m.createElement("div"); + (g.style.cssText = + "top:-100px;position:absolute;z-index:2147483647;opacity:0.5"), + (g.textContent = "\xa0"), + [ + "dragWait", + "dragWaitEnd", + "startDrag", + "dragReadyEnd", + "onMouseDrag", + ].forEach(function (Le) { + c[Le] = this[Le]; + }, this), + l.on("mousedown", this.onMouseDown.bind(c)); + var x, + T, + O, + M, + A, + S, + I, + C, + L, + F, + ie, + y = l.container, + w = 0; + function ee() { + var Le = S; + (function (Le, Ye) { + var Je = Date.now(); + F && Ye && Le.row == Ye.row && Ye && Le.column == Ye.column + ? i(ie.x, ie.y, T, O) > 5 + ? (F = null) + : Je - F >= 200 && + (l.renderer.scrollCursorIntoView(), (F = null)) + : (l.moveCursorToPosition(Le), + (F = Je), + (ie = { x: T, y: O })); + })((S = l.renderer.screenToTextCoordinates(T, O)), Le), + (function (Le, Ye) { + var Je = Date.now(), + gt = l.renderer.layerConfig.lineHeight, + Ue = l.renderer.layerConfig.characterWidth, + tt = l.renderer.scroller.getBoundingClientRect(), + at = { + x: { left: T - tt.left, right: tt.right - T }, + y: { top: O - tt.top, bottom: tt.bottom - O }, + }, + ft = Math.min(at.x.left, at.x.right), + vt = Math.min(at.y.top, at.y.bottom), + yt = { row: Le.row, column: Le.column }; + ft / Ue <= 2 && + (yt.column += at.x.left < at.x.right ? -3 : 2), + vt / gt <= 1 && + (yt.row += at.y.top < at.y.bottom ? -1 : 1), + Le.row != yt.row || + (Le.column != yt.column && Ye && Le.row == Ye.row) + ? L + ? Je - L >= 200 && l.renderer.scrollCursorIntoView(yt) + : (L = Je) + : (L = null); + })(S, Le); + } + function $() { + (A = l.selection.toOrientedRange()), + (x = l.session.addMarker( + A, + "ace_selection", + l.getSelectionStyle() + )), + l.clearSelection(), + l.isFocused() && l.renderer.$cursorLayer.setBlinking(!1), + clearInterval(M), + ee(), + (M = setInterval(ee, 20)), + (w = 0), + s.addListener(document, "mousemove", ae); + } + function J() { + clearInterval(M), + l.session.removeMarker(x), + (x = null), + l.selection.fromOrientedRange(A), + l.isFocused() && !C && l.$resetCursorStyle(), + (A = null), + (S = null), + (w = 0), + (L = null), + (F = null), + s.removeListener(document, "mousemove", ae); + } + (this.onDragStart = function (Le) { + if (this.cancelDrag || !y.draggable) { + var Ye = this; + return ( + setTimeout(function () { + Ye.startSelect(), Ye.captureMouse(Le); + }, 0), + Le.preventDefault() + ); + } + A = l.getSelectionRange(); + var Je = Le.dataTransfer; + (Je.effectAllowed = l.getReadOnly() ? "copy" : "copyMove"), + l.container.appendChild(g), + Je.setDragImage && Je.setDragImage(g, 0, 0), + setTimeout(function () { + l.container.removeChild(g); + }), + Je.clearData(), + Je.setData("Text", l.session.getTextRange()), + (C = !0), + this.setState("drag"); + }), + (this.onDragEnd = function (Le) { + (y.draggable = !1), + (C = !1), + this.setState(null), + l.getReadOnly() || + (!I && + "move" == Le.dataTransfer.dropEffect && + l.session.remove(l.getSelectionRange()), + l.$resetCursorStyle()), + this.editor.unsetStyle("ace_dragging"), + this.editor.renderer.setCursorStyle(""); + }), + (this.onDragEnter = function (Le) { + if (!l.getReadOnly() && le(Le.dataTransfer)) + return ( + (T = Le.clientX), + (O = Le.clientY), + x || $(), + w++, + (Le.dataTransfer.dropEffect = I = Oe(Le)), + s.preventDefault(Le) + ); + }), + (this.onDragOver = function (Le) { + if (!l.getReadOnly() && le(Le.dataTransfer)) + return ( + (T = Le.clientX), + (O = Le.clientY), + x || ($(), w++), + null !== ne && (ne = null), + (Le.dataTransfer.dropEffect = I = Oe(Le)), + s.preventDefault(Le) + ); + }), + (this.onDragLeave = function (Le) { + if (--w <= 0 && x) + return J(), (I = null), s.preventDefault(Le); + }), + (this.onDrop = function (Le) { + if (S) { + var Ye = Le.dataTransfer; + if (C) + switch (I) { + case "move": + A = A.contains(S.row, S.column) + ? { start: S, end: S } + : l.moveText(A, S); + break; + case "copy": + A = l.moveText(A, S, !0); + } + else { + var Je = Ye.getData("Text"); + (A = { start: S, end: l.session.insert(S, Je) }), + l.focus(), + (I = null); + } + return J(), s.preventDefault(Le); + } + }), + s.addListener(y, "dragstart", this.onDragStart.bind(c), l), + s.addListener(y, "dragend", this.onDragEnd.bind(c), l), + s.addListener(y, "dragenter", this.onDragEnter.bind(c), l), + s.addListener(y, "dragover", this.onDragOver.bind(c), l), + s.addListener(y, "dragleave", this.onDragLeave.bind(c), l), + s.addListener(y, "drop", this.onDrop.bind(c), l); + var ne = null; + function ae() { + null == ne && + (ne = setTimeout(function () { + null != ne && x && J(); + }, 20)); + } + function le(Le) { + var Ye = Le.types; + return ( + !Ye || + Array.prototype.some.call(Ye, function (Je) { + return "text/plain" == Je || "Text" == Je; + }) + ); + } + function Oe(Le) { + var Ye = ["copy", "copymove", "all", "uninitialized"], + gt = d.isMac ? Le.altKey : Le.ctrlKey, + Ue = "uninitialized"; + try { + Ue = Le.dataTransfer.effectAllowed.toLowerCase(); + } catch (at) {} + var tt = "none"; + return ( + gt && Ye.indexOf(Ue) >= 0 + ? (tt = "copy") + : [ + "move", + "copymove", + "linkmove", + "all", + "uninitialized", + ].indexOf(Ue) >= 0 + ? (tt = "move") + : Ye.indexOf(Ue) >= 0 && (tt = "copy"), + tt + ); + } + } + function i(c, l, g, b) { + return Math.sqrt(Math.pow(g - c, 2) + Math.pow(b - l, 2)); + } + (function () { + (this.dragWait = function () { + Date.now() - this.mousedownEvent.time > + this.editor.getDragDelay() && this.startDrag(); + }), + (this.dragWaitEnd = function () { + (this.editor.container.draggable = !1), + this.startSelect(this.mousedownEvent.getDocumentPosition()), + this.selectEnd(); + }), + (this.dragReadyEnd = function (c) { + this.editor.$resetCursorStyle(), + this.editor.unsetStyle("ace_dragging"), + this.editor.renderer.setCursorStyle(""), + this.dragWaitEnd(); + }), + (this.startDrag = function () { + this.cancelDrag = !1; + var c = this.editor; + (c.container.draggable = !0), + c.renderer.$cursorLayer.setBlinking(!1), + c.setStyle("ace_dragging"), + c.renderer.setCursorStyle(d.isWin ? "default" : "move"), + this.setState("dragReady"); + }), + (this.onMouseDrag = function (c) { + var l = this.editor.container; + d.isIE && + "dragReady" == this.state && + i( + this.mousedownEvent.x, + this.mousedownEvent.y, + this.x, + this.y + ) > 3 && + l.dragDrop(), + "dragWait" === this.state && + i( + this.mousedownEvent.x, + this.mousedownEvent.y, + this.x, + this.y + ) > 0 && + ((l.draggable = !1), + this.startSelect( + this.mousedownEvent.getDocumentPosition() + )); + }), + (this.onMouseDown = function (c) { + if (this.$dragEnabled) { + this.mousedownEvent = c; + var l = this.editor, + g = c.inSelection(), + b = c.getButton(); + if (1 === (c.domEvent.detail || 1) && 0 === b && g) { + if ( + c.editor.inMultiSelectMode && + (c.getAccelKey() || c.getShiftKey()) + ) + return; + this.mousedownEvent.time = Date.now(); + var x = c.domEvent.target || c.domEvent.srcElement; + "unselectable" in x && (x.unselectable = "on"), + l.getDragDelay() + ? (d.isWebKit && + ((this.cancelDrag = !0), + (l.container.draggable = !0)), + this.setState("dragWait")) + : this.startDrag(), + this.captureMouse(c, this.onMouseDrag.bind(this)), + (c.defaultPrevented = !0); + } + } + }); + }.call(o.prototype), + (f.DragdropHandler = o)); + } + ), + ace.define( + "ace/mouse/touch_handler", + [ + "require", + "exports", + "module", + "ace/mouse/mouse_event", + "ace/lib/event", + "ace/lib/dom", + ], + function (n, f, _) { + "use strict"; + var m = n("./mouse_event").MouseEvent, + s = n("../lib/event"), + d = n("../lib/dom"); + f.addTouchListeners = function (u, h) { + var o, + i, + c, + l, + g, + b, + x, + A, + S, + r = "scroll", + y = 0, + T = 0, + O = 0, + M = 0; + function I() { + S || + (function () { + var Y = window.navigator && window.navigator.clipboard, + Z = !1, + $ = function (J) { + var ne = J.target.getAttribute("action"); + if ("more" == ne || !Z) + return ( + (Z = !Z), + (function () { + var J = h.getCopyText(), + ne = h.session.getUndoManager().hasUndo(); + S.replaceChild( + d.buildDom( + Z + ? [ + "span", + !J && [ + "span", + { + class: "ace_mobile-button", + action: "selectall", + }, + "Select All", + ], + J && [ + "span", + { + class: "ace_mobile-button", + action: "copy", + }, + "Copy", + ], + J && [ + "span", + { + class: "ace_mobile-button", + action: "cut", + }, + "Cut", + ], + Y && [ + "span", + { + class: "ace_mobile-button", + action: "paste", + }, + "Paste", + ], + ne && [ + "span", + { + class: "ace_mobile-button", + action: "undo", + }, + "Undo", + ], + [ + "span", + { + class: "ace_mobile-button", + action: "find", + }, + "Find", + ], + [ + "span", + { + class: "ace_mobile-button", + action: "openCommandPallete", + }, + "Pallete", + ], + ] + : ["span"] + ), + S.firstChild + ); + })() + ); + "paste" == ne + ? Y.readText().then(function (ae) { + h.execCommand(ne, ae); + }) + : ne && + (("cut" == ne || "copy" == ne) && + (Y + ? Y.writeText(h.getCopyText()) + : document.execCommand("copy")), + h.execCommand(ne)), + (S.firstChild.style.display = "none"), + (Z = !1), + "openCommandPallete" != ne && h.focus(); + }; + S = d.buildDom( + [ + "div", + { + class: "ace_mobile-menu", + ontouchstart: function (J) { + (r = "menu"), + J.stopPropagation(), + J.preventDefault(), + h.textInput.focus(); + }, + ontouchend: function (J) { + J.stopPropagation(), J.preventDefault(), $(J); + }, + onclick: $, + }, + ["span"], + [ + "span", + { class: "ace_mobile-button", action: "more" }, + "...", + ], + ], + h.container + ); + })(); + var Y = h.selection.cursor, + Z = h.renderer.textToScreenCoordinates(Y.row, Y.column), + ee = h.renderer.textToScreenCoordinates(0, 0).pageX, + $ = h.renderer.scrollLeft, + J = h.container.getBoundingClientRect(); + (S.style.top = Z.pageY - J.top - 3 + "px"), + Z.pageX - J.left < J.width - 70 + ? ((S.style.left = ""), (S.style.right = "10px")) + : ((S.style.right = ""), + (S.style.left = ee + $ - J.left + "px")), + (S.style.display = ""), + (S.firstChild.style.display = "none"), + h.on("input", C); + } + function C(Y) { + S && (S.style.display = "none"), h.off("input", C); + } + function L() { + (g = null), clearTimeout(g); + var Y = h.selection.getRange(), + Z = Y.contains(x.row, x.column); + (Y.isEmpty() || !Z) && + (h.selection.moveToPosition(x), h.selection.selectWord()), + (r = "wait"), + I(); + } + s.addListener( + u, + "contextmenu", + function (Y) { + A && h.textInput.getElement().focus(); + }, + h + ), + s.addListener( + u, + "touchstart", + function (Y) { + var Z = Y.touches; + if (g || Z.length > 1) + return ( + clearTimeout(g), (g = null), (c = -1), void (r = "zoom") + ); + A = h.$mouseHandler.isMousePressed = !0; + var ee = h.renderer.layerConfig.lineHeight, + $ = h.renderer.layerConfig.lineHeight, + J = Y.timeStamp; + l = J; + var ne = Z[0], + ae = ne.clientX, + le = ne.clientY; + Math.abs(o - ae) + Math.abs(i - le) > ee && (c = -1), + (o = Y.clientX = ae), + (i = Y.clientY = le), + (O = M = 0); + var Oe = new m(Y, h); + if ( + ((x = Oe.getDocumentPosition()), + J - c < 500 && 1 == Z.length && !y) + ) + T++, + Y.preventDefault(), + (Y.button = 0), + (function () { + (g = null), + clearTimeout(g), + h.selection.moveToPosition(x); + var Y = + T >= 2 + ? h.selection.getLineRange(x.row) + : h.session.getBracketRange(x); + Y && !Y.isEmpty() + ? h.selection.setRange(Y) + : h.selection.selectWord(), + (r = "wait"); + })(); + else { + T = 0; + var Le = h.selection.cursor, + Ye = h.selection.isEmpty() ? Le : h.selection.anchor, + Je = h.renderer.$cursorLayer.getPixelPosition(Le, !0), + gt = h.renderer.$cursorLayer.getPixelPosition(Ye, !0), + Ue = h.renderer.scroller.getBoundingClientRect(), + tt = h.renderer.layerConfig.offset, + at = h.renderer.scrollLeft, + ft = function (ot, _t) { + return (ot /= $) * ot + (_t = _t / ee - 0.75) * _t; + }; + if (Y.clientX < Ue.left) return void (r = "zoom"); + var vt = ft( + Y.clientX - Ue.left - Je.left + at, + Y.clientY - Ue.top - Je.top + tt + ), + yt = ft( + Y.clientX - Ue.left - gt.left + at, + Y.clientY - Ue.top - gt.top + tt + ); + vt < 3.5 && + yt < 3.5 && + (r = vt > yt ? "cursor" : "anchor"), + (r = + yt < 3.5 ? "anchor" : vt < 3.5 ? "cursor" : "scroll"), + (g = setTimeout(L, 450)); + } + c = J; + }, + h + ), + s.addListener( + u, + "touchend", + function (Y) { + (A = h.$mouseHandler.isMousePressed = !1), + b && clearInterval(b), + "zoom" == r + ? ((r = ""), (y = 0)) + : g + ? (h.selection.moveToPosition(x), (y = 0), I()) + : "scroll" == r + ? ((y += 60), + (b = setInterval(function () { + y-- <= 0 && (clearInterval(b), (b = null)), + Math.abs(O) < 0.01 && (O = 0), + Math.abs(M) < 0.01 && (M = 0), + y < 20 && (O *= 0.9), + y < 20 && (M *= 0.9); + var Y = h.session.getScrollTop(); + h.renderer.scrollBy(10 * O, 10 * M), + Y == h.session.getScrollTop() && (y = 0); + }, 10)), + C()) + : I(), + clearTimeout(g), + (g = null); + }, + h + ), + s.addListener( + u, + "touchmove", + function (Y) { + g && (clearTimeout(g), (g = null)); + var Z = Y.touches; + if (!(Z.length > 1 || "zoom" == r)) { + var ee = Z[0], + $ = o - ee.clientX, + J = i - ee.clientY; + if ("wait" == r) { + if (!($ * $ + J * J > 4)) return Y.preventDefault(); + r = "cursor"; + } + (o = ee.clientX), + (i = ee.clientY), + (Y.clientX = ee.clientX), + (Y.clientY = ee.clientY); + var ne = Y.timeStamp, + ae = ne - l; + if (((l = ne), "scroll" == r)) { + var le = new m(Y, h); + (le.speed = 1), + (le.wheelX = $), + (le.wheelY = J), + 10 * Math.abs($) < Math.abs(J) && ($ = 0), + 10 * Math.abs(J) < Math.abs($) && (J = 0), + 0 != ae && ((O = $ / ae), (M = J / ae)), + h._emit("mousewheel", le), + le.propagationStopped || (O = M = 0); + } else { + var Le = new m(Y, h).getDocumentPosition(); + "cursor" == r + ? h.selection.moveCursorToPosition(Le) + : "anchor" == r && + h.selection.setSelectionAnchor(Le.row, Le.column), + h.renderer.scrollCursorIntoView(Le), + Y.preventDefault(); + } + } + }, + h + ); + }; + } + ), + ace.define( + "ace/lib/net", + ["require", "exports", "module", "ace/lib/dom"], + function (n, f, _) { + "use strict"; + var m = n("./dom"); + (f.get = function (s, d) { + var u = new XMLHttpRequest(); + u.open("GET", s, !0), + (u.onreadystatechange = function () { + 4 === u.readyState && d(u.responseText); + }), + u.send(null); + }), + (f.loadScript = function (s, d) { + var u = m.getDocumentHead(), + h = document.createElement("script"); + (h.src = s), + u.appendChild(h), + (h.onload = h.onreadystatechange = function (r, o) { + (o || + !h.readyState || + "loaded" == h.readyState || + "complete" == h.readyState) && + ((h = h.onload = h.onreadystatechange = null), o || d()); + }); + }), + (f.qualifyURL = function (s) { + var d = document.createElement("a"); + return (d.href = s), d.href; + }); + } + ), + ace.define( + "ace/lib/event_emitter", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + var m = {}, + s = function () { + this.propagationStopped = !0; + }, + d = function () { + this.defaultPrevented = !0; + }; + (m._emit = m._dispatchEvent = function (u, h) { + this._eventRegistry || (this._eventRegistry = {}), + this._defaultHandlers || (this._defaultHandlers = {}); + var r = this._eventRegistry[u] || [], + o = this._defaultHandlers[u]; + if (r.length || o) { + ("object" != typeof h || !h) && (h = {}), + h.type || (h.type = u), + h.stopPropagation || (h.stopPropagation = s), + h.preventDefault || (h.preventDefault = d), + (r = r.slice()); + for ( + var i = 0; + i < r.length && (r[i](h, this), !h.propagationStopped); + i++ + ); + if (o && !h.defaultPrevented) return o(h, this); + } + }), + (m._signal = function (u, h) { + var r = (this._eventRegistry || {})[u]; + if (r) { + r = r.slice(); + for (var o = 0; o < r.length; o++) r[o](h, this); + } + }), + (m.once = function (u, h) { + var r = this; + if ( + (this.on(u, function o() { + r.off(u, o), h.apply(null, arguments); + }), + !h) + ) + return new Promise(function (o) { + h = o; + }); + }), + (m.setDefaultHandler = function (u, h) { + var r = this._defaultHandlers; + if ( + (r || (r = this._defaultHandlers = { _disabled_: {} }), r[u]) + ) { + var o = r[u], + i = r._disabled_[u]; + i || (r._disabled_[u] = i = []), i.push(o); + var c = i.indexOf(h); + -1 != c && i.splice(c, 1); + } + r[u] = h; + }), + (m.removeDefaultHandler = function (u, h) { + var r = this._defaultHandlers; + if (r) { + var o = r._disabled_[u]; + if (r[u] == h) o && this.setDefaultHandler(u, o.pop()); + else if (o) { + var i = o.indexOf(h); + -1 != i && o.splice(i, 1); + } + } + }), + (m.on = m.addEventListener = function (u, h, r) { + this._eventRegistry = this._eventRegistry || {}; + var o = this._eventRegistry[u]; + return ( + o || (o = this._eventRegistry[u] = []), + -1 == o.indexOf(h) && o[r ? "unshift" : "push"](h), + h + ); + }), + (m.off = m.removeListener = m.removeEventListener = function ( + u, + h + ) { + this._eventRegistry = this._eventRegistry || {}; + var r = this._eventRegistry[u]; + if (r) { + var o = r.indexOf(h); + -1 !== o && r.splice(o, 1); + } + }), + (m.removeAllListeners = function (u) { + u || (this._eventRegistry = this._defaultHandlers = void 0), + this._eventRegistry && (this._eventRegistry[u] = void 0), + this._defaultHandlers && (this._defaultHandlers[u] = void 0); + }), + (f.EventEmitter = m); + } + ), + ace.define( + "ace/lib/app_config", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/event_emitter", + ], + function (n, f, _) { + var m = n("./oop"), + s = n("./event_emitter").EventEmitter, + d = { + setOptions: function (o) { + Object.keys(o).forEach(function (i) { + this.setOption(i, o[i]); + }, this); + }, + getOptions: function (o) { + var i = {}; + if (o) Array.isArray(o) || ((i = o), (o = Object.keys(i))); + else { + var c = this.$options; + o = Object.keys(c).filter(function (l) { + return !c[l].hidden; + }); + } + return ( + o.forEach(function (l) { + i[l] = this.getOption(l); + }, this), + i + ); + }, + setOption: function (o, i) { + if (this["$" + o] !== i) { + var c = this.$options[o]; + if (!c) return u('misspelled option "' + o + '"'); + if (c.forwardTo) + return ( + this[c.forwardTo] && this[c.forwardTo].setOption(o, i) + ); + c.handlesSet || (this["$" + o] = i), + c && c.set && c.set.call(this, i); + } + }, + getOption: function (o) { + var i = this.$options[o]; + return i + ? i.forwardTo + ? this[i.forwardTo] && this[i.forwardTo].getOption(o) + : i && i.get + ? i.get.call(this) + : this["$" + o] + : u('misspelled option "' + o + '"'); + }, + }; + function u(o) { + "undefined" != typeof console && + console.warn && + console.warn.apply(console, arguments); + } + function h(o, i) { + var c = new Error(o); + (c.data = i), + "object" == typeof console && console.error && console.error(c), + setTimeout(function () { + throw c; + }); + } + var r = function () { + this.$defaultOptions = {}; + }; + (function () { + m.implement(this, s), + (this.defineOptions = function (o, i, c) { + return ( + o.$options || (this.$defaultOptions[i] = o.$options = {}), + Object.keys(c).forEach(function (l) { + var g = c[l]; + "string" == typeof g && (g = { forwardTo: g }), + g.name || (g.name = l), + (o.$options[g.name] = g), + "initialValue" in g && + (o["$" + g.name] = g.initialValue); + }), + m.implement(o, d), + this + ); + }), + (this.resetOptions = function (o) { + Object.keys(o.$options).forEach(function (i) { + var c = o.$options[i]; + "value" in c && o.setOption(i, c.value); + }); + }), + (this.setDefaultValue = function (o, i, c) { + if (!o) { + for (o in this.$defaultOptions) + if (this.$defaultOptions[o][i]) break; + if (!this.$defaultOptions[o][i]) return !1; + } + var l = + this.$defaultOptions[o] || (this.$defaultOptions[o] = {}); + l[i] && + (l.forwardTo + ? this.setDefaultValue(l.forwardTo, i, c) + : (l[i].value = c)); + }), + (this.setDefaultValues = function (o, i) { + Object.keys(i).forEach(function (c) { + this.setDefaultValue(o, c, i[c]); + }, this); + }), + (this.warn = u), + (this.reportError = h); + }.call(r.prototype), + (f.AppConfig = r)); + } + ), + ace.define( + "ace/config", + [ + "require", + "exports", + "module", + "ace/lib/lang", + "ace/lib/oop", + "ace/lib/net", + "ace/lib/dom", + "ace/lib/app_config", + ], + function (n, f, _) { + var m = n("./lib/lang"), + d = (n("./lib/oop"), n("./lib/net")), + u = n("./lib/dom"), + h = n("./lib/app_config").AppConfig; + _.exports = f = new h(); + var r = (function () { + return this || ("undefined" != typeof window && window); + })(), + o = { + packaged: !1, + workerPath: null, + modePath: null, + themePath: null, + basePath: "", + suffix: ".js", + $moduleUrls: {}, + loadWorkerFromBlob: !0, + sharedPopups: !1, + useStrictCSP: null, + }; + (f.get = function (g) { + if (!o.hasOwnProperty(g)) + throw new Error("Unknown config key: " + g); + return o[g]; + }), + (f.set = function (g, b) { + if (o.hasOwnProperty(g)) o[g] = b; + else if (0 == this.setDefaultValue("", g, b)) + throw new Error("Unknown config key: " + g); + "useStrictCSP" == g && u.useStrictCSP(b); + }), + (f.all = function () { + return m.copyObject(o); + }), + (f.$modes = {}), + (f.moduleUrl = function (g, b) { + if (o.$moduleUrls[g]) return o.$moduleUrls[g]; + var y = g.split("/"), + x = + "snippets" == (b = b || y[y.length - 2] || "") ? "/" : "-", + T = y[y.length - 1]; + if ("worker" == b && "-" == x) { + var O = new RegExp("^" + b + "[\\-_]|[\\-_]" + b + "$", "g"); + T = T.replace(O, ""); + } + (!T || T == b) && y.length > 1 && (T = y[y.length - 2]); + var M = o[b + "Path"]; + return ( + null == M ? (M = o.basePath) : "/" == x && (b = x = ""), + M && "/" != M.slice(-1) && (M += "/"), + M + b + x + T + this.get("suffix") + ); + }), + (f.setModuleUrl = function (g, b) { + return (o.$moduleUrls[g] = b); + }), + (f.$loading = {}), + (f.loadModule = function (g, b) { + var y, x; + Array.isArray(g) && ((x = g[0]), (g = g[1])); + try { + y = n(g); + } catch (O) {} + if (y && !f.$loading[g]) return b && b(y); + if ( + (f.$loading[g] || (f.$loading[g] = []), + f.$loading[g].push(b), + !(f.$loading[g].length > 1)) + ) { + var T = function () { + n([g], function (O) { + f._emit("load.module", { name: g, module: O }); + var M = f.$loading[g]; + (f.$loading[g] = null), + M.forEach(function (A) { + A && A(O); + }); + }); + }; + if (!f.get("packaged")) return T(); + d.loadScript(f.moduleUrl(g, x), T), i(); + } + }); + var i = function () { + !o.basePath && + !o.workerPath && + !o.modePath && + !o.themePath && + !Object.keys(o.$moduleUrls).length && + (console.error( + "Unable to infer path to ace from script src,", + "use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes", + "or with webpack use ace/webpack-resolver" + ), + (i = function () {})); + }; + function c(g) { + if (r && r.document) { + o.packaged = + g || + n.packaged || + _.packaged || + (r.define && p.amdD.packaged); + for ( + var b = {}, + y = "", + x = document.currentScript || document._currentScript, + O = ( + (x && x.ownerDocument) || + document + ).getElementsByTagName("script"), + M = 0; + M < O.length; + M++ + ) { + var A = O[M], + S = A.src || A.getAttribute("src"); + if (S) { + for ( + var w = A.attributes, I = 0, C = w.length; + I < C; + I++ + ) { + var L = w[I]; + 0 === L.name.indexOf("data-ace-") && + (b[l(L.name.replace(/^data-ace-/, ""))] = L.value); + } + var F = S.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/); + F && (y = F[1]); + } + } + for (var ie in (y && + ((b.base = b.base || y), (b.packaged = !0)), + (b.basePath = b.base), + (b.workerPath = b.workerPath || b.base), + (b.modePath = b.modePath || b.base), + (b.themePath = b.themePath || b.base), + delete b.base, + b)) + void 0 !== b[ie] && f.set(ie, b[ie]); + } + } + function l(g) { + return g.replace(/-(.)/g, function (b, y) { + return y.toUpperCase(); + }); + } + c(!0), (f.init = c), (f.version = "1.4.14"); + } + ), + ace.define( + "ace/mouse/mouse_handler", + [ + "require", + "exports", + "module", + "ace/lib/event", + "ace/lib/useragent", + "ace/mouse/default_handlers", + "ace/mouse/default_gutter_handler", + "ace/mouse/mouse_event", + "ace/mouse/dragdrop_handler", + "ace/mouse/touch_handler", + "ace/config", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/event"), + s = n("../lib/useragent"), + d = n("./default_handlers").DefaultHandlers, + u = n("./default_gutter_handler").GutterHandler, + h = n("./mouse_event").MouseEvent, + r = n("./dragdrop_handler").DragdropHandler, + o = n("./touch_handler").addTouchListeners, + i = n("../config"), + c = function (l) { + var g = this; + (this.editor = l), new d(this), new u(this), new r(this); + var b = function (T) { + (!document.hasFocus || + !document.hasFocus() || + (!l.isFocused() && + document.activeElement == + (l.textInput && l.textInput.getElement()))) && + window.focus(), + l.focus(); + }, + y = l.renderer.getMouseEventTarget(); + m.addListener( + y, + "click", + this.onMouseEvent.bind(this, "click"), + l + ), + m.addListener( + y, + "mousemove", + this.onMouseMove.bind(this, "mousemove"), + l + ), + m.addMultiMouseDownListener( + [ + y, + l.renderer.scrollBarV && l.renderer.scrollBarV.inner, + l.renderer.scrollBarH && l.renderer.scrollBarH.inner, + l.textInput && l.textInput.getElement(), + ].filter(Boolean), + [400, 300, 250], + this, + "onMouseEvent", + l + ), + m.addMouseWheelListener( + l.container, + this.onMouseWheel.bind(this, "mousewheel"), + l + ), + o(l.container, l); + var x = l.renderer.$gutter; + m.addListener( + x, + "mousedown", + this.onMouseEvent.bind(this, "guttermousedown"), + l + ), + m.addListener( + x, + "click", + this.onMouseEvent.bind(this, "gutterclick"), + l + ), + m.addListener( + x, + "dblclick", + this.onMouseEvent.bind(this, "gutterdblclick"), + l + ), + m.addListener( + x, + "mousemove", + this.onMouseEvent.bind(this, "guttermousemove"), + l + ), + m.addListener(y, "mousedown", b, l), + m.addListener(x, "mousedown", b, l), + s.isIE && + l.renderer.scrollBarV && + (m.addListener( + l.renderer.scrollBarV.element, + "mousedown", + b, + l + ), + m.addListener( + l.renderer.scrollBarH.element, + "mousedown", + b, + l + )), + l.on( + "mousemove", + function (T) { + if (!g.state && !g.$dragDelay && g.$dragEnabled) { + var O = l.renderer.screenToTextCoordinates(T.x, T.y), + M = l.session.selection.getRange(), + A = l.renderer; + !M.isEmpty() && M.insideStart(O.row, O.column) + ? A.setCursorStyle("default") + : A.setCursorStyle(""); + } + }, + l + ); + }; + (function () { + (this.onMouseEvent = function (l, g) { + !this.editor.session || + this.editor._emit(l, new h(g, this.editor)); + }), + (this.onMouseMove = function (l, g) { + var b = + this.editor._eventRegistry && + this.editor._eventRegistry.mousemove; + !b || + !b.length || + this.editor._emit(l, new h(g, this.editor)); + }), + (this.onMouseWheel = function (l, g) { + var b = new h(g, this.editor); + (b.speed = 2 * this.$scrollSpeed), + (b.wheelX = g.wheelX), + (b.wheelY = g.wheelY), + this.editor._emit(l, b); + }), + (this.setState = function (l) { + this.state = l; + }), + (this.captureMouse = function (l, g) { + (this.x = l.x), (this.y = l.y), (this.isMousePressed = !0); + var b = this.editor, + y = this.editor.renderer; + y.$isMousePressed = !0; + var x = this, + T = function (w) { + if (w) { + if (s.isWebKit && !w.which && x.releaseMouse) + return x.releaseMouse(); + (x.x = w.clientX), + (x.y = w.clientY), + g && g(w), + (x.mouseEvent = new h(w, x.editor)), + (x.$mouseMoved = !0); + } + }, + O = function (w) { + b.off("beforeEndOperation", A), + clearInterval(S), + b.session && M(), + x[x.state + "End"] && x[x.state + "End"](w), + (x.state = ""), + (x.isMousePressed = y.$isMousePressed = !1), + y.$keepTextAreaAtCursor && y.$moveTextAreaToCursor(), + (x.$onCaptureMouseMove = x.releaseMouse = null), + w && x.onMouseEvent("mouseup", w), + b.endOperation(); + }, + M = function () { + x[x.state] && x[x.state](), (x.$mouseMoved = !1); + }; + if (s.isOldIE && "dblclick" == l.domEvent.type) + return setTimeout(function () { + O(l); + }); + var A = function (w) { + !x.releaseMouse || + (b.curOp.command.name && + b.curOp.selectionChanged && + (x[x.state + "End"] && x[x.state + "End"](), + (x.state = ""), + x.releaseMouse())); + }; + b.on("beforeEndOperation", A), + b.startOperation({ command: { name: "mouse" } }), + (x.$onCaptureMouseMove = T), + (x.releaseMouse = m.capture(this.editor.container, T, O)); + var S = setInterval(M, 20); + }), + (this.releaseMouse = null), + (this.cancelContextMenu = function () { + var l = function (g) { + (g && g.domEvent && "contextmenu" != g.domEvent.type) || + (this.editor.off("nativecontextmenu", l), + g && g.domEvent && m.stopEvent(g.domEvent)); + }.bind(this); + setTimeout(l, 10), this.editor.on("nativecontextmenu", l); + }), + (this.destroy = function () { + this.releaseMouse && this.releaseMouse(); + }); + }.call(c.prototype), + i.defineOptions(c.prototype, "mouseHandler", { + scrollSpeed: { initialValue: 2 }, + dragDelay: { initialValue: s.isMac ? 150 : 0 }, + dragEnabled: { initialValue: !0 }, + focusTimeout: { initialValue: 0 }, + tooltipFollowsMouse: { initialValue: !0 }, + }), + (f.MouseHandler = c)); + } + ), + ace.define( + "ace/mouse/fold_handler", + ["require", "exports", "module", "ace/lib/dom"], + function (n, f, _) { + "use strict"; + var m = n("../lib/dom"); + f.FoldHandler = function (d) { + d.on("click", function (u) { + var h = u.getDocumentPosition(), + r = d.session, + o = r.getFoldAt(h.row, h.column, 1); + o && + (u.getAccelKey() ? r.removeFold(o) : r.expandFold(o), + u.stop()); + var i = u.domEvent && u.domEvent.target; + i && + m.hasCssClass(i, "ace_inline_button") && + m.hasCssClass(i, "ace_toggle_wrap") && + (r.setOption("wrap", !r.getUseWrapMode()), + d.renderer.scrollCursorIntoView()); + }), + d.on("gutterclick", function (u) { + if ("foldWidgets" == d.renderer.$gutterLayer.getRegion(u)) { + var r = u.getDocumentPosition().row, + o = d.session; + o.foldWidgets && + o.foldWidgets[r] && + d.session.onFoldWidgetClick(r, u), + d.isFocused() || d.focus(), + u.stop(); + } + }), + d.on("gutterdblclick", function (u) { + if ("foldWidgets" == d.renderer.$gutterLayer.getRegion(u)) { + var r = u.getDocumentPosition().row, + o = d.session, + i = o.getParentFoldRangeData(r, !0), + c = i.range || i.firstRange; + if (c) { + var l = o.getFoldAt( + (r = c.start.row), + o.getLine(r).length, + 1 + ); + l + ? o.removeFold(l) + : (o.addFold("...", c), + d.renderer.scrollCursorIntoView({ + row: c.start.row, + column: 0, + })); + } + u.stop(); + } + }); + }; + } + ), + ace.define( + "ace/keyboard/keybinding", + ["require", "exports", "module", "ace/lib/keys", "ace/lib/event"], + function (n, f, _) { + "use strict"; + var m = n("../lib/keys"), + s = n("../lib/event"), + d = function (u) { + (this.$editor = u), + (this.$data = { editor: u }), + (this.$handlers = []), + this.setDefaultHandler(u.commands); + }; + (function () { + (this.setDefaultHandler = function (u) { + this.removeKeyboardHandler(this.$defaultHandler), + (this.$defaultHandler = u), + this.addKeyboardHandler(u, 0); + }), + (this.setKeyboardHandler = function (u) { + var h = this.$handlers; + if (h[h.length - 1] != u) { + for ( + ; + h[h.length - 1] && + h[h.length - 1] != this.$defaultHandler; + + ) + this.removeKeyboardHandler(h[h.length - 1]); + this.addKeyboardHandler(u, 1); + } + }), + (this.addKeyboardHandler = function (u, h) { + if (u) { + "function" == typeof u && + !u.handleKeyboard && + (u.handleKeyboard = u); + var r = this.$handlers.indexOf(u); + -1 != r && this.$handlers.splice(r, 1), + null == h + ? this.$handlers.push(u) + : this.$handlers.splice(h, 0, u), + -1 == r && u.attach && u.attach(this.$editor); + } + }), + (this.removeKeyboardHandler = function (u) { + var h = this.$handlers.indexOf(u); + return ( + -1 != h && + (this.$handlers.splice(h, 1), + u.detach && u.detach(this.$editor), + !0) + ); + }), + (this.getKeyboardHandler = function () { + return this.$handlers[this.$handlers.length - 1]; + }), + (this.getStatusText = function () { + var u = this.$data, + h = u.editor; + return this.$handlers + .map(function (r) { + return (r.getStatusText && r.getStatusText(h, u)) || ""; + }) + .filter(Boolean) + .join(" "); + }), + (this.$callKeyboardHandlers = function (u, h, r, o) { + for ( + var i, + c = !1, + l = this.$editor.commands, + g = this.$handlers.length; + g-- && + !( + (i = this.$handlers[g].handleKeyboard( + this.$data, + u, + h, + r, + o + )) && + i.command && + ((c = + "null" == i.command || + l.exec(i.command, this.$editor, i.args, o)), + c && + o && + -1 != u && + 1 != i.passEvent && + 1 != i.command.passEvent && + s.stopEvent(o), + c) + ); + + ); + return ( + !c && + -1 == u && + ((i = { command: "insertstring" }), + (c = l.exec("insertstring", this.$editor, h))), + c && + this.$editor._signal && + this.$editor._signal("keyboardActivity", i), + c + ); + }), + (this.onCommandKey = function (u, h, r) { + var o = m.keyCodeToString(r); + return this.$callKeyboardHandlers(h, o, r, u); + }), + (this.onTextInput = function (u) { + return this.$callKeyboardHandlers(-1, u); + }); + }.call(d.prototype), + (f.KeyBinding = d)); + } + ), + ace.define( + "ace/lib/bidiutil", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + var d = 0, + u = 0, + h = !1, + o = !1, + i = !1, + g = [ + [0, 3, 0, 1, 0, 0, 0], + [0, 3, 0, 1, 2, 2, 0], + [0, 3, 0, 17, 2, 0, 1], + [0, 3, 5, 5, 4, 1, 0], + [0, 3, 21, 21, 4, 0, 1], + [0, 3, 5, 5, 4, 2, 0], + ], + b = [ + [2, 0, 1, 1, 0, 1, 0], + [2, 0, 1, 1, 0, 2, 0], + [2, 0, 2, 1, 3, 2, 0], + [2, 0, 2, 33, 3, 1, 1], + ], + Y = 11, + Oe = [ + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 6, + 5, + 6, + 8, + 5, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 5, + 5, + 5, + 6, + 8, + 4, + 4, + Y, + Y, + Y, + 4, + 4, + 4, + 4, + 4, + 10, + 9, + 10, + 9, + 9, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 9, + 4, + 4, + 4, + 4, + 4, + 4, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 4, + 4, + 4, + 4, + 4, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 4, + 4, + 4, + 18, + 18, + 18, + 18, + 18, + 18, + 5, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 9, + 4, + Y, + Y, + Y, + Y, + 4, + 4, + 4, + 4, + 0, + 4, + 4, + 18, + 4, + 4, + Y, + Y, + 2, + 2, + 4, + 0, + 4, + 4, + 4, + 2, + 0, + 4, + 4, + 4, + 4, + 4, + ], + Le = [ + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 18, + 18, + 18, + 0, + 1, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 8, + 5, + 13, + 14, + 15, + 16, + 17, + 9, + Y, + Y, + Y, + Y, + Y, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 9, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 8, + ]; + function Je(at, ft, vt) { + if (!(u < at)) { + if (1 == at && 1 == d && !o) return void vt.reverse(); + for (var _t, At, Tt, Bt, yt = vt.length, ot = 0; ot < yt; ) { + if (ft[ot] >= at) { + for (_t = ot + 1; _t < yt && ft[_t] >= at; ) _t++; + for (At = ot, Tt = _t - 1; At < Tt; At++, Tt--) + (Bt = vt[At]), (vt[At] = vt[Tt]), (vt[Tt] = Bt); + ot = _t; + } + ot++; + } + } + } + function gt(at, ft, vt, yt) { + var _t, + At, + Tt, + Bt, + ot = ft[yt]; + switch (ot) { + case 0: + case 1: + h = !1; + case 4: + case 3: + return ot; + case 2: + return h ? 3 : 2; + case 7: + return (h = !0), 1; + case 8: + return 4; + case 9: + return yt < 1 || + yt + 1 >= ft.length || + (2 != (_t = vt[yt - 1]) && 3 != _t) || + (2 != (At = ft[yt + 1]) && 3 != At) + ? 4 + : (h && (At = 3), At == _t ? At : 4); + case 10: + return 2 == (_t = yt > 0 ? vt[yt - 1] : 5) && + yt + 1 < ft.length && + 2 == ft[yt + 1] + ? 2 + : 4; + case Y: + if (yt > 0 && 2 == vt[yt - 1]) return 2; + if (h) return 4; + for (Bt = yt + 1, Tt = ft.length; Bt < Tt && ft[Bt] == Y; ) + Bt++; + return Bt < Tt && 2 == ft[Bt] ? 2 : 4; + case 12: + for (Tt = ft.length, Bt = yt + 1; Bt < Tt && 12 == ft[Bt]; ) + Bt++; + if (Bt < Tt) { + var Et = at[yt]; + if ( + ((_t = ft[Bt]), + ((Et >= 1425 && Et <= 2303) || 64286 == Et) && + (1 == _t || 7 == _t)) + ) + return 1; + } + return yt < 1 || 5 == (_t = ft[yt - 1]) ? 4 : vt[yt - 1]; + case 5: + return (h = !1), (o = !0), d; + case 6: + return (i = !0), 4; + case 13: + case 14: + case 16: + case 17: + case 15: + h = !1; + case 18: + return 4; + } + } + function Ue(at) { + var ft = at.charCodeAt(0), + vt = ft >> 8; + return 0 == vt + ? ft > 191 + ? 0 + : Oe[ft] + : 5 == vt + ? /[\u0591-\u05f4]/.test(at) + ? 1 + : 0 + : 6 == vt + ? /[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test( + at + ) + ? 12 + : /[\u0660-\u0669\u066b-\u066c]/.test(at) + ? 3 + : 1642 == ft + ? Y + : /[\u06f0-\u06f9]/.test(at) + ? 2 + : 7 + : 32 == vt && ft <= 8287 + ? Le[255 & ft] + : 254 == vt && ft >= 65136 + ? 7 + : 4; + } + (f.L = 0), + (f.R = 1), + (f.EN = 2), + (f.ON_R = 3), + (f.AN = 4), + (f.R_H = 5), + (f.B = 6), + (f.RLE = 7), + (f.DOT = "\xb7"), + (f.doBidiReorder = function (at, ft, vt) { + if (at.length < 2) return {}; + var yt = at.split(""), + ot = new Array(yt.length), + _t = new Array(yt.length), + At = []; + (d = vt ? 1 : 0), + (function (at, ft, vt, yt) { + var ot = d ? b : g, + _t = null, + At = null, + Tt = null, + Bt = 0, + Et = null, + fe = -1, + H = null, + D = null, + U = []; + if (!yt) + for (H = 0, yt = []; H < vt; H++) yt[H] = Ue(at[H]); + for (u = d, h = !1, o = !1, i = !1, D = 0; D < vt; D++) { + if ( + ((_t = Bt), + (U[D] = At = gt(at, yt, U, D)), + (Et = 240 & (Bt = ot[_t][At])), + (ft[D] = Tt = ot[(Bt &= 15)][5]), + Et > 0) + ) + if (16 == Et) { + for (H = fe; H < D; H++) ft[H] = 1; + fe = -1; + } else fe = -1; + if (ot[Bt][6]) -1 == fe && (fe = D); + else if (fe > -1) { + for (H = fe; H < D; H++) ft[H] = Tt; + fe = -1; + } + 5 == yt[D] && (ft[D] = 0), (u |= Tt); + } + if (i) + for (H = 0; H < vt; H++) + if (6 == yt[H]) { + ft[H] = d; + for (var X = H - 1; X >= 0 && 8 == yt[X]; X--) + ft[X] = d; + } + })(yt, At, yt.length, ft); + for (var Tt = 0; Tt < ot.length; ot[Tt] = Tt, Tt++); + for ( + Je(2, At, ot), Je(1, At, ot), Tt = 0; + Tt < ot.length - 1; + Tt++ + ) + 3 === ft[Tt] + ? (At[Tt] = f.AN) + : 1 === At[Tt] && + ((ft[Tt] > 7 && ft[Tt] < 13) || + 4 === ft[Tt] || + 18 === ft[Tt]) + ? (At[Tt] = f.ON_R) + : Tt > 0 && + "\u0644" === yt[Tt - 1] && + /\u0622|\u0623|\u0625|\u0627/.test(yt[Tt]) && + ((At[Tt - 1] = At[Tt] = f.R_H), Tt++); + for ( + yt[yt.length - 1] === f.DOT && (At[yt.length - 1] = f.B), + "\u202b" === yt[0] && (At[0] = f.RLE), + Tt = 0; + Tt < ot.length; + Tt++ + ) + _t[Tt] = At[ot[Tt]]; + return { logicalFromVisual: ot, bidiLevels: _t }; + }), + (f.hasBidiCharacters = function (at, ft) { + for (var vt = !1, yt = 0; yt < at.length; yt++) + (ft[yt] = Ue(at.charAt(yt))), + !vt && + (1 == ft[yt] || 7 == ft[yt] || 3 == ft[yt]) && + (vt = !0); + return vt; + }), + (f.getVisualFromLogicalIdx = function (at, ft) { + for (var vt = 0; vt < ft.logicalFromVisual.length; vt++) + if (ft.logicalFromVisual[vt] == at) return vt; + return 0; + }); + } + ), + ace.define( + "ace/bidihandler", + ["require", "exports", "module", "ace/lib/bidiutil", "ace/lib/lang"], + function (n, f, _) { + "use strict"; + var m = n("./lib/bidiutil"), + s = n("./lib/lang"), + d = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/, + u = function (h) { + (this.session = h), + (this.bidiMap = {}), + (this.currentRow = null), + (this.bidiUtil = m), + (this.charWidths = []), + (this.EOL = "\xac"), + (this.showInvisibles = !0), + (this.isRtlDir = !1), + (this.$isRtl = !1), + (this.line = ""), + (this.wrapIndent = 0), + (this.EOF = "\xb6"), + (this.RLE = "\u202b"), + (this.contentWidth = 0), + (this.fontMetrics = null), + (this.rtlLineOffset = 0), + (this.wrapOffset = 0), + (this.isMoveLeftOperation = !1), + (this.seenBidi = d.test(h.getValue())); + }; + (function () { + (this.isBidiRow = function (h, r, o) { + return ( + !!this.seenBidi && + (h !== this.currentRow && + ((this.currentRow = h), + this.updateRowLine(r, o), + this.updateBidiMap()), + this.bidiMap.bidiLevels) + ); + }), + (this.onChange = function (h) { + this.seenBidi + ? (this.currentRow = null) + : "insert" == h.action && + d.test(h.lines.join("\n")) && + ((this.seenBidi = !0), (this.currentRow = null)); + }), + (this.getDocumentRow = function () { + var h = 0, + r = this.session.$screenRowCache; + if (r.length) { + var o = this.session.$getRowCacheIndex(r, this.currentRow); + o >= 0 && (h = this.session.$docRowCache[o]); + } + return h; + }), + (this.getSplitIndex = function () { + var h = 0, + r = this.session.$screenRowCache; + if (r.length) + for ( + var o, + i = this.session.$getRowCacheIndex(r, this.currentRow); + this.currentRow - h > 0 && + (o = this.session.$getRowCacheIndex( + r, + this.currentRow - h - 1 + )) === i; + + ) + (i = o), h++; + else h = this.currentRow; + return h; + }), + (this.updateRowLine = function (h, r) { + void 0 === h && (h = this.getDocumentRow()); + var i = + h === this.session.getLength() - 1 ? this.EOF : this.EOL; + if ( + ((this.wrapIndent = 0), + (this.line = this.session.getLine(h)), + (this.isRtlDir = + this.$isRtl || this.line.charAt(0) === this.RLE), + this.session.$useWrapMode) + ) { + var c = this.session.$wrapData[h]; + c && + (void 0 === r && (r = this.getSplitIndex()), + r > 0 && c.length + ? ((this.wrapIndent = c.indent), + (this.wrapOffset = + this.wrapIndent * this.charWidths[m.L]), + (this.line = + r < c.length + ? this.line.substring(c[r - 1], c[r]) + : this.line.substring(c[c.length - 1]))) + : (this.line = this.line.substring(0, c[r]))), + r == c.length && + (this.line += this.showInvisibles ? i : m.DOT); + } else this.line += this.showInvisibles ? i : m.DOT; + var b, + l = this.session, + g = 0; + (this.line = this.line.replace( + /\t|[\u1100-\u2029, \u202F-\uFFE6]/g, + function (y, x) { + return "\t" === y || l.isFullWidth(y.charCodeAt(0)) + ? ((b = "\t" === y ? l.getScreenTabSize(x + g) : 2), + (g += b - 1), + s.stringRepeat(m.DOT, b)) + : y; + } + )), + this.isRtlDir && + ((this.fontMetrics.$main.textContent = + this.line.charAt(this.line.length - 1) == m.DOT + ? this.line.substr(0, this.line.length - 1) + : this.line), + (this.rtlLineOffset = + this.contentWidth - + this.fontMetrics.$main.getBoundingClientRect().width)); + }), + (this.updateBidiMap = function () { + var h = []; + this.bidiMap = + m.hasBidiCharacters(this.line, h) || this.isRtlDir + ? m.doBidiReorder(this.line, h, this.isRtlDir) + : {}; + }), + (this.markAsDirty = function () { + this.currentRow = null; + }), + (this.updateCharacterWidths = function (h) { + if (this.characterWidth !== h.$characterSize.width) { + this.fontMetrics = h; + var r = (this.characterWidth = h.$characterSize.width), + o = h.$measureCharWidth("\u05d4"); + (this.charWidths[m.L] = this.charWidths[ + m.EN + ] = this.charWidths[m.ON_R] = r), + (this.charWidths[m.R] = this.charWidths[m.AN] = o), + (this.charWidths[m.R_H] = 0.45 * o), + (this.charWidths[m.B] = this.charWidths[m.RLE] = 0), + (this.currentRow = null); + } + }), + (this.setShowInvisibles = function (h) { + (this.showInvisibles = h), (this.currentRow = null); + }), + (this.setEolChar = function (h) { + this.EOL = h; + }), + (this.setContentWidth = function (h) { + this.contentWidth = h; + }), + (this.isRtlLine = function (h) { + return ( + !!this.$isRtl || + (null != h + ? this.session.getLine(h).charAt(0) == this.RLE + : this.isRtlDir) + ); + }), + (this.setRtlDirection = function (h, r) { + for ( + var o = h.getCursorPosition(), + i = h.selection.getSelectionAnchor().row; + i <= o.row; + i++ + ) + r || + h.session.getLine(i).charAt(0) !== + h.session.$bidiHandler.RLE + ? r && + h.session.getLine(i).charAt(0) !== + h.session.$bidiHandler.RLE && + h.session.doc.insert( + { column: 0, row: i }, + h.session.$bidiHandler.RLE + ) + : h.session.doc.removeInLine(i, 0, 1); + }), + (this.getPosLeft = function (h) { + h -= this.wrapIndent; + var r = this.line.charAt(0) === this.RLE ? 1 : 0, + o = h > r ? (this.session.getOverwrite() ? h : h - 1) : r, + i = m.getVisualFromLogicalIdx(o, this.bidiMap), + c = this.bidiMap.bidiLevels, + l = 0; + !this.session.getOverwrite() && + h <= r && + c[i] % 2 != 0 && + i++; + for (var g = 0; g < i; g++) l += this.charWidths[c[g]]; + return ( + !this.session.getOverwrite() && + h > r && + c[i] % 2 == 0 && + (l += this.charWidths[c[i]]), + this.wrapIndent && + (l += this.isRtlDir + ? -1 * this.wrapOffset + : this.wrapOffset), + this.isRtlDir && (l += this.rtlLineOffset), + l + ); + }), + (this.getSelections = function (h, r) { + var c, + o = this.bidiMap, + i = o.bidiLevels, + l = [], + g = 0, + b = Math.min(h, r) - this.wrapIndent, + y = Math.max(h, r) - this.wrapIndent, + x = !1, + T = !1, + O = 0; + this.wrapIndent && + (g += this.isRtlDir + ? -1 * this.wrapOffset + : this.wrapOffset); + for (var M, A = 0; A < i.length; A++) + (c = i[A]), + (x = (M = o.logicalFromVisual[A]) >= b && M < y) && !T + ? (O = g) + : !x && T && l.push({ left: O, width: g - O }), + (g += this.charWidths[c]), + (T = x); + if ( + (x && A === i.length && l.push({ left: O, width: g - O }), + this.isRtlDir) + ) + for (var S = 0; S < l.length; S++) + l[S].left += this.rtlLineOffset; + return l; + }), + (this.offsetToCol = function (h) { + this.isRtlDir && (h -= this.rtlLineOffset); + var r = 0, + o = ((h = Math.max(h, 0)), 0), + i = 0, + c = this.bidiMap.bidiLevels, + l = this.charWidths[c[i]]; + for ( + this.wrapIndent && + (h -= this.isRtlDir + ? -1 * this.wrapOffset + : this.wrapOffset); + h > o + l / 2; + + ) { + if (((o += l), i === c.length - 1)) { + l = 0; + break; + } + l = this.charWidths[c[++i]]; + } + return ( + i > 0 && c[i - 1] % 2 != 0 && c[i] % 2 == 0 + ? (h < o && i--, (r = this.bidiMap.logicalFromVisual[i])) + : i > 0 && c[i - 1] % 2 == 0 && c[i] % 2 != 0 + ? (r = + 1 + + (h > o + ? this.bidiMap.logicalFromVisual[i] + : this.bidiMap.logicalFromVisual[i - 1])) + : (this.isRtlDir && + i === c.length - 1 && + 0 === l && + c[i - 1] % 2 == 0) || + (!this.isRtlDir && 0 === i && c[i] % 2 != 0) + ? (r = 1 + this.bidiMap.logicalFromVisual[i]) + : (i > 0 && c[i - 1] % 2 != 0 && 0 !== l && i--, + (r = this.bidiMap.logicalFromVisual[i])), + 0 === r && this.isRtlDir && r++, + r + this.wrapIndent + ); + }); + }.call(u.prototype), + (f.BidiHandler = u)); + } + ), + ace.define( + "ace/selection", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/lang", + "ace/lib/event_emitter", + "ace/range", + ], + function (n, f, _) { + "use strict"; + var m = n("./lib/oop"), + s = n("./lib/lang"), + d = n("./lib/event_emitter").EventEmitter, + u = n("./range").Range, + h = function (r) { + (this.session = r), + (this.doc = r.getDocument()), + this.clearSelection(), + (this.cursor = this.lead = this.doc.createAnchor(0, 0)), + (this.anchor = this.doc.createAnchor(0, 0)), + (this.$silent = !1); + var o = this; + this.cursor.on("change", function (i) { + (o.$cursorChanged = !0), + o.$silent || o._emit("changeCursor"), + !o.$isEmpty && !o.$silent && o._emit("changeSelection"), + !o.$keepDesiredColumnOnChange && + i.old.column != i.value.column && + (o.$desiredColumn = null); + }), + this.anchor.on("change", function () { + (o.$anchorChanged = !0), + !o.$isEmpty && !o.$silent && o._emit("changeSelection"); + }); + }; + (function () { + m.implement(this, d), + (this.isEmpty = function () { + return ( + this.$isEmpty || + (this.anchor.row == this.lead.row && + this.anchor.column == this.lead.column) + ); + }), + (this.isMultiLine = function () { + return !this.$isEmpty && this.anchor.row != this.cursor.row; + }), + (this.getCursor = function () { + return this.lead.getPosition(); + }), + (this.setSelectionAnchor = function (r, o) { + (this.$isEmpty = !1), this.anchor.setPosition(r, o); + }), + (this.getAnchor = this.getSelectionAnchor = function () { + return this.$isEmpty + ? this.getSelectionLead() + : this.anchor.getPosition(); + }), + (this.getSelectionLead = function () { + return this.lead.getPosition(); + }), + (this.isBackwards = function () { + var r = this.anchor, + o = this.lead; + return ( + r.row > o.row || (r.row == o.row && r.column > o.column) + ); + }), + (this.getRange = function () { + var r = this.anchor, + o = this.lead; + return this.$isEmpty + ? u.fromPoints(o, o) + : this.isBackwards() + ? u.fromPoints(o, r) + : u.fromPoints(r, o); + }), + (this.clearSelection = function () { + this.$isEmpty || + ((this.$isEmpty = !0), this._emit("changeSelection")); + }), + (this.selectAll = function () { + this.$setSelection(0, 0, Number.MAX_VALUE, Number.MAX_VALUE); + }), + (this.setRange = this.setSelectionRange = function (r, o) { + var i = o ? r.end : r.start, + c = o ? r.start : r.end; + this.$setSelection(i.row, i.column, c.row, c.column); + }), + (this.$setSelection = function (r, o, i, c) { + if (!this.$silent) { + var l = this.$isEmpty, + g = this.inMultiSelectMode; + (this.$silent = !0), + (this.$cursorChanged = this.$anchorChanged = !1), + this.anchor.setPosition(r, o), + this.cursor.setPosition(i, c), + (this.$isEmpty = !u.comparePoints( + this.anchor, + this.cursor + )), + (this.$silent = !1), + this.$cursorChanged && this._emit("changeCursor"), + (this.$cursorChanged || + this.$anchorChanged || + l != this.$isEmpty || + g) && + this._emit("changeSelection"); + } + }), + (this.$moveSelection = function (r) { + var o = this.lead; + this.$isEmpty && this.setSelectionAnchor(o.row, o.column), + r.call(this); + }), + (this.selectTo = function (r, o) { + this.$moveSelection(function () { + this.moveCursorTo(r, o); + }); + }), + (this.selectToPosition = function (r) { + this.$moveSelection(function () { + this.moveCursorToPosition(r); + }); + }), + (this.moveTo = function (r, o) { + this.clearSelection(), this.moveCursorTo(r, o); + }), + (this.moveToPosition = function (r) { + this.clearSelection(), this.moveCursorToPosition(r); + }), + (this.selectUp = function () { + this.$moveSelection(this.moveCursorUp); + }), + (this.selectDown = function () { + this.$moveSelection(this.moveCursorDown); + }), + (this.selectRight = function () { + this.$moveSelection(this.moveCursorRight); + }), + (this.selectLeft = function () { + this.$moveSelection(this.moveCursorLeft); + }), + (this.selectLineStart = function () { + this.$moveSelection(this.moveCursorLineStart); + }), + (this.selectLineEnd = function () { + this.$moveSelection(this.moveCursorLineEnd); + }), + (this.selectFileEnd = function () { + this.$moveSelection(this.moveCursorFileEnd); + }), + (this.selectFileStart = function () { + this.$moveSelection(this.moveCursorFileStart); + }), + (this.selectWordRight = function () { + this.$moveSelection(this.moveCursorWordRight); + }), + (this.selectWordLeft = function () { + this.$moveSelection(this.moveCursorWordLeft); + }), + (this.getWordRange = function (r, o) { + if (void 0 === o) { + var i = r || this.lead; + (r = i.row), (o = i.column); + } + return this.session.getWordRange(r, o); + }), + (this.selectWord = function () { + this.setSelectionRange(this.getWordRange()); + }), + (this.selectAWord = function () { + var r = this.getCursor(), + o = this.session.getAWordRange(r.row, r.column); + this.setSelectionRange(o); + }), + (this.getLineRange = function (r, o) { + var c, + i = "number" == typeof r ? r : this.lead.row, + l = this.session.getFoldLine(i); + return ( + l ? ((i = l.start.row), (c = l.end.row)) : (c = i), + !0 === o + ? new u(i, 0, c, this.session.getLine(c).length) + : new u(i, 0, c + 1, 0) + ); + }), + (this.selectLine = function () { + this.setSelectionRange(this.getLineRange()); + }), + (this.moveCursorUp = function () { + this.moveCursorBy(-1, 0); + }), + (this.moveCursorDown = function () { + this.moveCursorBy(1, 0); + }), + (this.wouldMoveIntoSoftTab = function (r, o, i) { + var c = r.column, + l = r.column + o; + return ( + i < 0 && ((c = r.column - o), (l = r.column)), + this.session.isTabStop(r) && + this.doc.getLine(r.row).slice(c, l).split(" ").length - + 1 == + o + ); + }), + (this.moveCursorLeft = function () { + var o, + r = this.lead.getPosition(); + if ((o = this.session.getFoldAt(r.row, r.column, -1))) + this.moveCursorTo(o.start.row, o.start.column); + else if (0 === r.column) + r.row > 0 && + this.moveCursorTo( + r.row - 1, + this.doc.getLine(r.row - 1).length + ); + else { + var i = this.session.getTabSize(); + this.wouldMoveIntoSoftTab(r, i, -1) && + !this.session.getNavigateWithinSoftTabs() + ? this.moveCursorBy(0, -i) + : this.moveCursorBy(0, -1); + } + }), + (this.moveCursorRight = function () { + var o, + r = this.lead.getPosition(); + if ((o = this.session.getFoldAt(r.row, r.column, 1))) + this.moveCursorTo(o.end.row, o.end.column); + else if ( + this.lead.column == this.doc.getLine(this.lead.row).length + ) + this.lead.row < this.doc.getLength() - 1 && + this.moveCursorTo(this.lead.row + 1, 0); + else { + var i = this.session.getTabSize(); + this.wouldMoveIntoSoftTab((r = this.lead), i, 1) && + !this.session.getNavigateWithinSoftTabs() + ? this.moveCursorBy(0, i) + : this.moveCursorBy(0, 1); + } + }), + (this.moveCursorLineStart = function () { + var r = this.lead.row, + o = this.lead.column, + i = this.session.documentToScreenRow(r, o), + c = this.session.screenToDocumentPosition(i, 0), + g = this.session + .getDisplayLine(r, null, c.row, c.column) + .match(/^\s*/); + g[0].length != o && + !this.session.$useEmacsStyleLineStart && + (c.column += g[0].length), + this.moveCursorToPosition(c); + }), + (this.moveCursorLineEnd = function () { + var r = this.lead, + o = this.session.getDocumentLastRowColumnPosition( + r.row, + r.column + ); + if (this.lead.column == o.column) { + var i = this.session.getLine(o.row); + if (o.column == i.length) { + var c = i.search(/\s+$/); + c > 0 && (o.column = c); + } + } + this.moveCursorTo(o.row, o.column); + }), + (this.moveCursorFileEnd = function () { + var r = this.doc.getLength() - 1, + o = this.doc.getLine(r).length; + this.moveCursorTo(r, o); + }), + (this.moveCursorFileStart = function () { + this.moveCursorTo(0, 0); + }), + (this.moveCursorLongWordRight = function () { + var r = this.lead.row, + o = this.lead.column, + i = this.doc.getLine(r), + c = i.substring(o); + (this.session.nonTokenRe.lastIndex = 0), + (this.session.tokenRe.lastIndex = 0); + var l = this.session.getFoldAt(r, o, 1); + if (!l) + return ( + this.session.nonTokenRe.exec(c) && + ((o += this.session.nonTokenRe.lastIndex), + (this.session.nonTokenRe.lastIndex = 0), + (c = i.substring(o))), + o >= i.length + ? (this.moveCursorTo(r, i.length), + this.moveCursorRight(), + void ( + r < this.doc.getLength() - 1 && + this.moveCursorWordRight() + )) + : (this.session.tokenRe.exec(c) && + ((o += this.session.tokenRe.lastIndex), + (this.session.tokenRe.lastIndex = 0)), + void this.moveCursorTo(r, o)) + ); + this.moveCursorTo(l.end.row, l.end.column); + }), + (this.moveCursorLongWordLeft = function () { + var i, + r = this.lead.row, + o = this.lead.column; + if ((i = this.session.getFoldAt(r, o, -1))) + this.moveCursorTo(i.start.row, i.start.column); + else { + var c = this.session.getFoldStringAt(r, o, -1); + null == c && (c = this.doc.getLine(r).substring(0, o)); + var l = s.stringReverse(c); + if ( + ((this.session.nonTokenRe.lastIndex = 0), + (this.session.tokenRe.lastIndex = 0), + this.session.nonTokenRe.exec(l) && + ((o -= this.session.nonTokenRe.lastIndex), + (l = l.slice(this.session.nonTokenRe.lastIndex)), + (this.session.nonTokenRe.lastIndex = 0)), + o <= 0) + ) + return ( + this.moveCursorTo(r, 0), + this.moveCursorLeft(), + void (r > 0 && this.moveCursorWordLeft()) + ); + this.session.tokenRe.exec(l) && + ((o -= this.session.tokenRe.lastIndex), + (this.session.tokenRe.lastIndex = 0)), + this.moveCursorTo(r, o); + } + }), + (this.$shortWordEndIndex = function (r) { + var i, + o = 0, + c = /\s/, + l = this.session.tokenRe; + if (((l.lastIndex = 0), this.session.tokenRe.exec(r))) + o = this.session.tokenRe.lastIndex; + else { + for (; (i = r[o]) && c.test(i); ) o++; + if (o < 1) + for (l.lastIndex = 0; (i = r[o]) && !l.test(i); ) + if (((l.lastIndex = 0), o++, c.test(i))) { + if (o > 2) { + o--; + break; + } + for (; (i = r[o]) && c.test(i); ) o++; + if (o > 2) break; + } + } + return (l.lastIndex = 0), o; + }), + (this.moveCursorShortWordRight = function () { + var r = this.lead.row, + o = this.lead.column, + i = this.doc.getLine(r), + c = i.substring(o), + l = this.session.getFoldAt(r, o, 1); + if (l) return this.moveCursorTo(l.end.row, l.end.column); + if (o == i.length) { + var g = this.doc.getLength(); + do { + r++, (c = this.doc.getLine(r)); + } while (r < g && /^\s*$/.test(c)); + /^\s+/.test(c) || (c = ""), (o = 0); + } + var b = this.$shortWordEndIndex(c); + this.moveCursorTo(r, o + b); + }), + (this.moveCursorShortWordLeft = function () { + var i, + r = this.lead.row, + o = this.lead.column; + if ((i = this.session.getFoldAt(r, o, -1))) + return this.moveCursorTo(i.start.row, i.start.column); + var c = this.session.getLine(r).substring(0, o); + if (0 === o) { + do { + r--, (c = this.doc.getLine(r)); + } while (r > 0 && /^\s*$/.test(c)); + (o = c.length), /\s+$/.test(c) || (c = ""); + } + var l = s.stringReverse(c), + g = this.$shortWordEndIndex(l); + return this.moveCursorTo(r, o - g); + }), + (this.moveCursorWordRight = function () { + this.session.$selectLongWords + ? this.moveCursorLongWordRight() + : this.moveCursorShortWordRight(); + }), + (this.moveCursorWordLeft = function () { + this.session.$selectLongWords + ? this.moveCursorLongWordLeft() + : this.moveCursorShortWordLeft(); + }), + (this.moveCursorBy = function (r, o) { + var c, + i = this.session.documentToScreenPosition( + this.lead.row, + this.lead.column + ); + if ( + (0 === o && + (0 !== r && + (this.session.$bidiHandler.isBidiRow( + i.row, + this.lead.row + ) + ? ((c = this.session.$bidiHandler.getPosLeft( + i.column + )), + (i.column = Math.round( + c / this.session.$bidiHandler.charWidths[0] + ))) + : (c = + i.column * + this.session.$bidiHandler.charWidths[0])), + this.$desiredColumn + ? (i.column = this.$desiredColumn) + : (this.$desiredColumn = i.column)), + 0 != r && + this.session.lineWidgets && + this.session.lineWidgets[this.lead.row]) + ) { + var l = this.session.lineWidgets[this.lead.row]; + r < 0 + ? (r -= l.rowsAbove || 0) + : r > 0 && (r += l.rowCount - (l.rowsAbove || 0)); + } + var g = this.session.screenToDocumentPosition( + i.row + r, + i.column, + c + ); + this.moveCursorTo(g.row, g.column + o, 0 === o); + }), + (this.moveCursorToPosition = function (r) { + this.moveCursorTo(r.row, r.column); + }), + (this.moveCursorTo = function (r, o, i) { + var c = this.session.getFoldAt(r, o, 1); + c && ((r = c.start.row), (o = c.start.column)), + (this.$keepDesiredColumnOnChange = !0); + var l = this.session.getLine(r); + /[\uDC00-\uDFFF]/.test(l.charAt(o)) && + l.charAt(o - 1) && + (this.lead.row == r && this.lead.column == o + 1 + ? (o -= 1) + : (o += 1)), + this.lead.setPosition(r, o), + (this.$keepDesiredColumnOnChange = !1), + i || (this.$desiredColumn = null); + }), + (this.moveCursorToScreen = function (r, o, i) { + var c = this.session.screenToDocumentPosition(r, o); + this.moveCursorTo(c.row, c.column, i); + }), + (this.detach = function () { + this.lead.detach(), this.anchor.detach(); + }), + (this.fromOrientedRange = function (r) { + this.setSelectionRange(r, r.cursor == r.start), + (this.$desiredColumn = + r.desiredColumn || this.$desiredColumn); + }), + (this.toOrientedRange = function (r) { + var o = this.getRange(); + return ( + r + ? ((r.start.column = o.start.column), + (r.start.row = o.start.row), + (r.end.column = o.end.column), + (r.end.row = o.end.row)) + : (r = o), + (r.cursor = this.isBackwards() ? r.start : r.end), + (r.desiredColumn = this.$desiredColumn), + r + ); + }), + (this.getRangeOfMovements = function (r) { + var o = this.getCursor(); + try { + r(this); + var i = this.getCursor(); + return u.fromPoints(o, i); + } catch (c) { + return u.fromPoints(o, o); + } finally { + this.moveCursorToPosition(o); + } + }), + (this.toJSON = function () { + if (this.rangeCount) + var r = this.ranges.map(function (o) { + var i = o.clone(); + return (i.isBackwards = o.cursor == o.start), i; + }); + else (r = this.getRange()).isBackwards = this.isBackwards(); + return r; + }), + (this.fromJSON = function (r) { + if (null == r.start) { + if (this.rangeList && r.length > 1) { + this.toSingleRange(r[0]); + for (var o = r.length; o--; ) { + var i = u.fromPoints(r[o].start, r[o].end); + r[o].isBackwards && (i.cursor = i.start), + this.addRange(i, !0); + } + return; + } + r = r[0]; + } + this.rangeList && this.toSingleRange(r), + this.setSelectionRange(r, r.isBackwards); + }), + (this.isEqual = function (r) { + if ( + (r.length || this.rangeCount) && + r.length != this.rangeCount + ) + return !1; + if (!r.length || !this.ranges) + return this.getRange().isEqual(r); + for (var o = this.ranges.length; o--; ) + if (!this.ranges[o].isEqual(r[o])) return !1; + return !0; + }); + }.call(h.prototype), + (f.Selection = h)); + } + ), + ace.define( + "ace/tokenizer", + ["require", "exports", "module", "ace/config"], + function (n, f, _) { + "use strict"; + var m = n("./config"), + s = 2e3, + d = function (u) { + for (var h in ((this.states = u), + (this.regExps = {}), + (this.matchMappings = {}), + this.states)) { + for ( + var r = this.states[h], + o = [], + i = 0, + c = (this.matchMappings[h] = { defaultToken: "text" }), + l = "g", + g = [], + b = 0; + b < r.length; + b++ + ) { + var y = r[b]; + if ( + (y.defaultToken && (c.defaultToken = y.defaultToken), + y.caseInsensitive && (l = "gi"), + null != y.regex) + ) { + y.regex instanceof RegExp && + (y.regex = y.regex.toString().slice(1, -1)); + var x = y.regex, + T = + new RegExp("(?:(" + x + ")|(.))").exec("a").length - + 2; + Array.isArray(y.token) + ? 1 == y.token.length || 1 == T + ? (y.token = y.token[0]) + : T - 1 != y.token.length + ? (this.reportError( + "number of classes and regexp groups doesn't match", + { rule: y, groupCount: T - 1 } + ), + (y.token = y.token[0])) + : ((y.tokenArray = y.token), + (y.token = null), + (y.onMatch = this.$arrayTokens)) + : "function" == typeof y.token && + !y.onMatch && + (y.onMatch = T > 1 ? this.$applyToken : y.token), + T > 1 && + (/\\\d/.test(y.regex) + ? (x = y.regex.replace( + /\\([0-9]+)/g, + function (O, M) { + return "\\" + (parseInt(M, 10) + i + 1); + } + )) + : ((T = 1), + (x = this.removeCapturingGroups(y.regex))), + !y.splitRegex && + "string" != typeof y.token && + g.push(y)), + (c[i] = b), + (i += T), + o.push(x), + y.onMatch || (y.onMatch = null); + } + } + o.length || ((c[0] = 0), o.push("$")), + g.forEach(function (O) { + O.splitRegex = this.createSplitterRegexp(O.regex, l); + }, this), + (this.regExps[h] = new RegExp( + "(" + o.join(")|(") + ")|($)", + l + )); + } + }; + (function () { + (this.$setMaxTokenCount = function (u) { + s = 0 | u; + }), + (this.$applyToken = function (u) { + var h = this.splitRegex.exec(u).slice(1), + r = this.token.apply(this, h); + if ("string" == typeof r) return [{ type: r, value: u }]; + for (var o = [], i = 0, c = r.length; i < c; i++) + h[i] && (o[o.length] = { type: r[i], value: h[i] }); + return o; + }), + (this.$arrayTokens = function (u) { + if (!u) return []; + var h = this.splitRegex.exec(u); + if (!h) return "text"; + for ( + var r = [], o = this.tokenArray, i = 0, c = o.length; + i < c; + i++ + ) + h[i + 1] && (r[r.length] = { type: o[i], value: h[i + 1] }); + return r; + }), + (this.removeCapturingGroups = function (u) { + return u.replace( + /\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g, + function (r, o) { + return o ? "(?:" : r; + } + ); + }), + (this.createSplitterRegexp = function (u, h) { + if (-1 != u.indexOf("(?=")) { + var r = 0, + o = !1, + i = {}; + u.replace( + /(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g, + function (c, l, g, b, y, x) { + return ( + o + ? (o = "]" != y) + : y + ? (o = !0) + : b + ? (r == i.stack && + ((i.end = x + 1), (i.stack = -1)), + r--) + : g && + (r++, + 1 != g.length && ((i.stack = r), (i.start = x))), + c + ); + } + ), + null != i.end && + /^\)*$/.test(u.substr(i.end)) && + (u = u.substring(0, i.start) + u.substr(i.end)); + } + return ( + "^" != u.charAt(0) && (u = "^" + u), + "$" != u.charAt(u.length - 1) && (u += "$"), + new RegExp(u, (h || "").replace("g", "")) + ); + }), + (this.getLineTokens = function (u, h) { + if (h && "string" != typeof h) { + var r = h.slice(0); + "#tmp" === (h = r[0]) && (r.shift(), (h = r.shift())); + } else r = []; + var o = h || "start", + i = this.states[o]; + i || (i = this.states[(o = "start")]); + var c = this.matchMappings[o], + l = this.regExps[o]; + l.lastIndex = 0; + for ( + var g, b = [], y = 0, x = 0, T = { type: null, value: "" }; + (g = l.exec(u)); + + ) { + var O = c.defaultToken, + M = null, + A = g[0], + S = l.lastIndex; + if (S - A.length > y) { + var w = u.substring(y, S - A.length); + T.type == O + ? (T.value += w) + : (T.type && b.push(T), (T = { type: O, value: w })); + } + for (var I = 0; I < g.length - 2; I++) + if (void 0 !== g[I + 1]) { + (O = (M = i[c[I]]).onMatch + ? M.onMatch(A, o, r, u) + : M.token), + M.next && + ((o = + "string" == typeof M.next + ? M.next + : M.next(o, r)), + (i = this.states[o]) || + (this.reportError("state doesn't exist", o), + (i = this.states[(o = "start")])), + (c = this.matchMappings[o]), + (y = S), + ((l = this.regExps[o]).lastIndex = S)), + M.consumeLineEnd && (y = S); + break; + } + if (A) + if ("string" == typeof O) + (M && !1 === M.merge) || T.type !== O + ? (T.type && b.push(T), (T = { type: O, value: A })) + : (T.value += A); + else if (O) + for ( + T.type && b.push(T), + T = { type: null, value: "" }, + I = 0; + I < O.length; + I++ + ) + b.push(O[I]); + if (y == u.length) break; + if (((y = S), x++ > s)) { + for ( + x > 2 * u.length && + this.reportError( + "infinite loop with in ace tokenizer", + { startState: h, line: u } + ); + y < u.length; + + ) + T.type && b.push(T), + (T = { + value: u.substring(y, (y += 500)), + type: "overflow", + }); + (o = "start"), (r = []); + break; + } + } + return ( + T.type && b.push(T), + r.length > 1 && r[0] !== o && r.unshift("#tmp", o), + { tokens: b, state: r.length ? r : o } + ); + }), + (this.reportError = m.reportError); + }.call(d.prototype), + (f.Tokenizer = d)); + } + ), + ace.define( + "ace/mode/text_highlight_rules", + ["require", "exports", "module", "ace/lib/lang"], + function (n, f, _) { + "use strict"; + var m = n("../lib/lang"), + s = function () { + this.$rules = { + start: [ + { token: "empty_line", regex: "^$" }, + { defaultToken: "text" }, + ], + }; + }; + (function () { + (this.addRules = function (h, r) { + if (r) + for (var o in h) { + for (var i = h[o], c = 0; c < i.length; c++) { + var l = i[c]; + (l.next || l.onMatch) && + ("string" == typeof l.next && + 0 !== l.next.indexOf(r) && + (l.next = r + l.next), + l.nextState && + 0 !== l.nextState.indexOf(r) && + (l.nextState = r + l.nextState)); + } + this.$rules[r + o] = i; + } + else for (var o in h) this.$rules[o] = h[o]; + }), + (this.getRules = function () { + return this.$rules; + }), + (this.embedRules = function (h, r, o, i, c) { + var l = "function" == typeof h ? new h().getRules() : h; + if (i) for (var g = 0; g < i.length; g++) i[g] = r + i[g]; + else for (var b in ((i = []), l)) i.push(r + b); + if ((this.addRules(l, r), o)) { + var y = Array.prototype[c ? "push" : "unshift"]; + for (g = 0; g < i.length; g++) + y.apply(this.$rules[i[g]], m.deepCopy(o)); + } + this.$embeds || (this.$embeds = []), this.$embeds.push(r); + }), + (this.getEmbeds = function () { + return this.$embeds; + }); + var d = function (h, r) { + return ( + ("start" != h || r.length) && r.unshift(this.nextState, h), + this.nextState + ); + }, + u = function (h, r) { + return r.shift(), r.shift() || "start"; + }; + (this.normalizeRules = function () { + var h = 0, + r = this.$rules; + Object.keys(r).forEach(function o(i) { + var c = r[i]; + c.processed = !0; + for (var l = 0; l < c.length; l++) { + var g = c[l], + b = null; + Array.isArray(g) && ((b = g), (g = {})), + !g.regex && + g.start && + ((g.regex = g.start), + g.next || (g.next = []), + g.next.push( + { defaultToken: g.token }, + { + token: g.token + ".end", + regex: g.end || g.start, + next: "pop", + } + ), + (g.token = g.token + ".start"), + (g.push = !0)); + var y = g.next || g.push; + if (y && Array.isArray(y)) { + var x = g.stateName; + x || + ("string" != typeof (x = g.token) && (x = x[0] || ""), + r[x] && (x += h++)), + (r[x] = y), + (g.next = x), + o(x); + } else "pop" == y && (g.next = u); + if ( + (g.push && + ((g.nextState = g.next || g.push), + (g.next = d), + delete g.push), + g.rules) + ) + for (var T in g.rules) + r[T] + ? r[T].push && r[T].push.apply(r[T], g.rules[T]) + : (r[T] = g.rules[T]); + var O = "string" == typeof g ? g : g.include; + if ( + (O && + (b = Array.isArray(O) + ? O.map(function (A) { + return r[A]; + }) + : r[O]), + b) + ) { + var M = [l, 1].concat(b); + g.noEscape && + (M = M.filter(function (A) { + return !A.next; + })), + c.splice.apply(c, M), + l--; + } + g.keywordMap && + ((g.token = this.createKeywordMapper( + g.keywordMap, + g.defaultToken || "text", + g.caseInsensitive + )), + delete g.defaultToken); + } + }, this); + }), + (this.createKeywordMapper = function (h, r, o, i) { + var c = Object.create(null); + return ( + (this.$keywordList = []), + Object.keys(h).forEach(function (l) { + for (var b = h[l].split(i || "|"), y = b.length; y--; ) { + var x = b[y]; + this.$keywordList.push(x), + o && (x = x.toLowerCase()), + (c[x] = l); + } + }, this), + (h = null), + o + ? function (l) { + return c[l.toLowerCase()] || r; + } + : function (l) { + return c[l] || r; + } + ); + }), + (this.getKeywords = function () { + return this.$keywords; + }); + }.call(s.prototype), + (f.TextHighlightRules = s)); + } + ), + ace.define( + "ace/mode/behaviour", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + var m = function () { + this.$behaviours = {}; + }; + (function () { + (this.add = function (s, d, u) { + switch (void 0) { + case this.$behaviours: + this.$behaviours = {}; + case this.$behaviours[s]: + this.$behaviours[s] = {}; + } + this.$behaviours[s][d] = u; + }), + (this.addBehaviours = function (s) { + for (var d in s) for (var u in s[d]) this.add(d, u, s[d][u]); + }), + (this.remove = function (s) { + this.$behaviours && + this.$behaviours[s] && + delete this.$behaviours[s]; + }), + (this.inherit = function (s, d) { + if ("function" == typeof s) var u = new s().getBehaviours(d); + else u = s.getBehaviours(d); + this.addBehaviours(u); + }), + (this.getBehaviours = function (s) { + if (s) { + for (var d = {}, u = 0; u < s.length; u++) + this.$behaviours[s[u]] && + (d[s[u]] = this.$behaviours[s[u]]); + return d; + } + return this.$behaviours; + }); + }.call(m.prototype), + (f.Behaviour = m)); + } + ), + ace.define( + "ace/token_iterator", + ["require", "exports", "module", "ace/range"], + function (n, f, _) { + "use strict"; + var m = n("./range").Range, + s = function (d, u, h) { + (this.$session = d), + (this.$row = u), + (this.$rowTokens = d.getTokens(u)); + var r = d.getTokenAt(u, h); + this.$tokenIndex = r ? r.index : -1; + }; + (function () { + (this.stepBackward = function () { + for (this.$tokenIndex -= 1; this.$tokenIndex < 0; ) { + if (((this.$row -= 1), this.$row < 0)) + return (this.$row = 0), null; + (this.$rowTokens = this.$session.getTokens(this.$row)), + (this.$tokenIndex = this.$rowTokens.length - 1); + } + return this.$rowTokens[this.$tokenIndex]; + }), + (this.stepForward = function () { + this.$tokenIndex += 1; + for (var d; this.$tokenIndex >= this.$rowTokens.length; ) { + if ( + ((this.$row += 1), + d || (d = this.$session.getLength()), + this.$row >= d) + ) + return (this.$row = d - 1), null; + (this.$rowTokens = this.$session.getTokens(this.$row)), + (this.$tokenIndex = 0); + } + return this.$rowTokens[this.$tokenIndex]; + }), + (this.getCurrentToken = function () { + return this.$rowTokens[this.$tokenIndex]; + }), + (this.getCurrentTokenRow = function () { + return this.$row; + }), + (this.getCurrentTokenColumn = function () { + var d = this.$rowTokens, + u = this.$tokenIndex, + h = d[u].start; + if (void 0 !== h) return h; + for (h = 0; u > 0; ) h += d[(u -= 1)].value.length; + return h; + }), + (this.getCurrentTokenPosition = function () { + return { + row: this.$row, + column: this.getCurrentTokenColumn(), + }; + }), + (this.getCurrentTokenRange = function () { + var d = this.$rowTokens[this.$tokenIndex], + u = this.getCurrentTokenColumn(); + return new m(this.$row, u, this.$row, u + d.value.length); + }); + }.call(s.prototype), + (f.TokenIterator = s)); + } + ), + ace.define( + "ace/mode/behaviour/cstyle", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/mode/behaviour", + "ace/token_iterator", + "ace/lib/lang", + ], + function (n, f, _) { + "use strict"; + var o, + m = n("../../lib/oop"), + s = n("../behaviour").Behaviour, + d = n("../../token_iterator").TokenIterator, + u = n("../../lib/lang"), + h = [ + "text", + "paren.rparen", + "rparen", + "paren", + "punctuation.operator", + ], + r = [ + "text", + "paren.rparen", + "rparen", + "paren", + "punctuation.operator", + "comment", + ], + i = {}, + c = { '"': '"', "'": "'" }, + l = function (y) { + var x = -1; + if ( + (y.multiSelect && + ((x = y.selection.index), + i.rangeCount != y.multiSelect.rangeCount && + (i = { rangeCount: y.multiSelect.rangeCount })), + i[x]) + ) + return (o = i[x]); + o = i[x] = { + autoInsertedBrackets: 0, + autoInsertedRow: -1, + autoInsertedLineEnd: "", + maybeInsertedBrackets: 0, + maybeInsertedRow: -1, + maybeInsertedLineStart: "", + maybeInsertedLineEnd: "", + }; + }, + g = function (y, x, T, O) { + var M = y.end.row - y.start.row; + return { + text: T + x + O, + selection: [ + 0, + y.start.column + 1, + M, + y.end.column + (M ? 0 : 1), + ], + }; + }, + b = function (y) { + this.add("braces", "insertion", function (x, T, O, M, A) { + var S = O.getCursorPosition(), + w = M.doc.getLine(S.row); + if ("{" == A) { + l(O); + var I = O.getSelectionRange(), + C = M.doc.getTextRange(I); + if ("" !== C && "{" !== C && O.getWrapBehavioursEnabled()) + return g(I, C, "{", "}"); + if (b.isSaneInsertion(O, M)) + return /[\]\}\)]/.test(w[S.column]) || + O.inMultiSelectMode || + (y && y.braces) + ? (b.recordAutoInsert(O, M, "}"), + { text: "{}", selection: [1, 1] }) + : (b.recordMaybeInsert(O, M, "{"), + { text: "{", selection: [1, 1] }); + } else if ("}" == A) { + if ( + (l(O), + "}" == w.substring(S.column, S.column + 1) && + null !== + M.$findOpeningBracket("}", { + column: S.column + 1, + row: S.row, + }) && + b.isAutoInsertedClosing(S, w, A)) + ) + return ( + b.popAutoInsertedClosing(), + { text: "", selection: [1, 1] } + ); + } else { + if ("\n" == A || "\r\n" == A) { + l(O); + var ie = ""; + if ( + (b.isMaybeInsertedClosing(S, w) && + ((ie = u.stringRepeat("}", o.maybeInsertedBrackets)), + b.clearMaybeInsertedClosing()), + "}" === w.substring(S.column, S.column + 1)) + ) { + var Y = M.findMatchingBracket( + { row: S.row, column: S.column + 1 }, + "}" + ); + if (!Y) return null; + var Z = this.$getIndent(M.getLine(Y.row)); + } else { + if (!ie) return void b.clearMaybeInsertedClosing(); + Z = this.$getIndent(w); + } + var ee = Z + M.getTabString(); + return { + text: "\n" + ee + "\n" + Z + ie, + selection: [1, ee.length, 1, ee.length], + }; + } + b.clearMaybeInsertedClosing(); + } + }), + this.add("braces", "deletion", function (x, T, O, M, A) { + var S = M.doc.getTextRange(A); + if (!A.isMultiLine() && "{" == S) { + if ( + (l(O), + "}" == + M.doc + .getLine(A.start.row) + .substring(A.end.column, A.end.column + 1)) + ) + return A.end.column++, A; + o.maybeInsertedBrackets--; + } + }), + this.add("parens", "insertion", function (x, T, O, M, A) { + if ("(" == A) { + l(O); + var S = O.getSelectionRange(), + w = M.doc.getTextRange(S); + if ("" !== w && O.getWrapBehavioursEnabled()) + return g(S, w, "(", ")"); + if (b.isSaneInsertion(O, M)) + return ( + b.recordAutoInsert(O, M, ")"), + { text: "()", selection: [1, 1] } + ); + } else if (")" == A) { + l(O); + var I = O.getCursorPosition(), + C = M.doc.getLine(I.row); + if ( + ")" == C.substring(I.column, I.column + 1) && + null !== + M.$findOpeningBracket(")", { + column: I.column + 1, + row: I.row, + }) && + b.isAutoInsertedClosing(I, C, A) + ) + return ( + b.popAutoInsertedClosing(), + { text: "", selection: [1, 1] } + ); + } + }), + this.add("parens", "deletion", function (x, T, O, M, A) { + var S = M.doc.getTextRange(A); + if ( + !A.isMultiLine() && + "(" == S && + (l(O), + ")" == + M.doc + .getLine(A.start.row) + .substring(A.start.column + 1, A.start.column + 2)) + ) + return A.end.column++, A; + }), + this.add("brackets", "insertion", function (x, T, O, M, A) { + if ("[" == A) { + l(O); + var S = O.getSelectionRange(), + w = M.doc.getTextRange(S); + if ("" !== w && O.getWrapBehavioursEnabled()) + return g(S, w, "[", "]"); + if (b.isSaneInsertion(O, M)) + return ( + b.recordAutoInsert(O, M, "]"), + { text: "[]", selection: [1, 1] } + ); + } else if ("]" == A) { + l(O); + var I = O.getCursorPosition(), + C = M.doc.getLine(I.row); + if ( + "]" == C.substring(I.column, I.column + 1) && + null !== + M.$findOpeningBracket("]", { + column: I.column + 1, + row: I.row, + }) && + b.isAutoInsertedClosing(I, C, A) + ) + return ( + b.popAutoInsertedClosing(), + { text: "", selection: [1, 1] } + ); + } + }), + this.add("brackets", "deletion", function (x, T, O, M, A) { + var S = M.doc.getTextRange(A); + if ( + !A.isMultiLine() && + "[" == S && + (l(O), + "]" == + M.doc + .getLine(A.start.row) + .substring(A.start.column + 1, A.start.column + 2)) + ) + return A.end.column++, A; + }), + this.add( + "string_dquotes", + "insertion", + function (x, T, O, M, A) { + var S = M.$mode.$quotes || c; + if (1 == A.length && S[A]) { + if ( + this.lineCommentStart && + -1 != this.lineCommentStart.indexOf(A) + ) + return; + l(O); + var w = A, + I = O.getSelectionRange(), + C = M.doc.getTextRange(I); + if ( + "" !== C && + (1 != C.length || !S[C]) && + O.getWrapBehavioursEnabled() + ) + return g(I, C, w, w); + if (!C) { + var L = O.getCursorPosition(), + F = M.doc.getLine(L.row), + ie = F.substring(L.column - 1, L.column), + Y = F.substring(L.column, L.column + 1), + Z = M.getTokenAt(L.row, L.column), + ee = M.getTokenAt(L.row, L.column + 1); + if ("\\" == ie && Z && /escape/.test(Z.type)) + return null; + var ne, + $ = Z && /string|escape/.test(Z.type), + J = !ee || /string|escape/.test(ee.type); + if (Y == w) + (ne = $ !== J) && + /string\.end/.test(ee.type) && + (ne = !1); + else { + if (($ && !J) || ($ && J)) return null; + var ae = M.$mode.tokenRe; + ae.lastIndex = 0; + var le = ae.test(ie); + ae.lastIndex = 0; + var Oe = ae.test(ie); + if (le || Oe || (Y && !/[\s;,.})\]\\]/.test(Y))) + return null; + var Le = F[L.column - 2]; + if (ie == w && (Le == w || ae.test(Le))) + return null; + ne = !0; + } + return { text: ne ? w + w : "", selection: [1, 1] }; + } + } + } + ), + this.add( + "string_dquotes", + "deletion", + function (x, T, O, M, A) { + var S = M.$mode.$quotes || c, + w = M.doc.getTextRange(A); + if ( + !A.isMultiLine() && + S.hasOwnProperty(w) && + (l(O), + M.doc + .getLine(A.start.row) + .substring(A.start.column + 1, A.start.column + 2) == + w) + ) + return A.end.column++, A; + } + ); + }; + (b.isSaneInsertion = function (y, x) { + var T = y.getCursorPosition(), + O = new d(x, T.row, T.column); + if (!this.$matchTokenType(O.getCurrentToken() || "text", h)) { + if (/[)}\]]/.test(y.session.getLine(T.row)[T.column])) + return !0; + var M = new d(x, T.row, T.column + 1); + if (!this.$matchTokenType(M.getCurrentToken() || "text", h)) + return !1; + } + return ( + O.stepForward(), + O.getCurrentTokenRow() !== T.row || + this.$matchTokenType(O.getCurrentToken() || "text", r) + ); + }), + (b.$matchTokenType = function (y, x) { + return x.indexOf(y.type || y) > -1; + }), + (b.recordAutoInsert = function (y, x, T) { + var O = y.getCursorPosition(), + M = x.doc.getLine(O.row); + this.isAutoInsertedClosing(O, M, o.autoInsertedLineEnd[0]) || + (o.autoInsertedBrackets = 0), + (o.autoInsertedRow = O.row), + (o.autoInsertedLineEnd = T + M.substr(O.column)), + o.autoInsertedBrackets++; + }), + (b.recordMaybeInsert = function (y, x, T) { + var O = y.getCursorPosition(), + M = x.doc.getLine(O.row); + this.isMaybeInsertedClosing(O, M) || + (o.maybeInsertedBrackets = 0), + (o.maybeInsertedRow = O.row), + (o.maybeInsertedLineStart = M.substr(0, O.column) + T), + (o.maybeInsertedLineEnd = M.substr(O.column)), + o.maybeInsertedBrackets++; + }), + (b.isAutoInsertedClosing = function (y, x, T) { + return ( + o.autoInsertedBrackets > 0 && + y.row === o.autoInsertedRow && + T === o.autoInsertedLineEnd[0] && + x.substr(y.column) === o.autoInsertedLineEnd + ); + }), + (b.isMaybeInsertedClosing = function (y, x) { + return ( + o.maybeInsertedBrackets > 0 && + y.row === o.maybeInsertedRow && + x.substr(y.column) === o.maybeInsertedLineEnd && + x.substr(0, y.column) == o.maybeInsertedLineStart + ); + }), + (b.popAutoInsertedClosing = function () { + (o.autoInsertedLineEnd = o.autoInsertedLineEnd.substr(1)), + o.autoInsertedBrackets--; + }), + (b.clearMaybeInsertedClosing = function () { + o && ((o.maybeInsertedBrackets = 0), (o.maybeInsertedRow = -1)); + }), + m.inherits(b, s), + (f.CstyleBehaviour = b); + } + ), + ace.define( + "ace/unicode", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + for ( + var m = [ + 48, + 9, + 8, + 25, + 5, + 0, + 2, + 25, + 48, + 0, + 11, + 0, + 5, + 0, + 6, + 22, + 2, + 30, + 2, + 457, + 5, + 11, + 15, + 4, + 8, + 0, + 2, + 0, + 18, + 116, + 2, + 1, + 3, + 3, + 9, + 0, + 2, + 2, + 2, + 0, + 2, + 19, + 2, + 82, + 2, + 138, + 2, + 4, + 3, + 155, + 12, + 37, + 3, + 0, + 8, + 38, + 10, + 44, + 2, + 0, + 2, + 1, + 2, + 1, + 2, + 0, + 9, + 26, + 6, + 2, + 30, + 10, + 7, + 61, + 2, + 9, + 5, + 101, + 2, + 7, + 3, + 9, + 2, + 18, + 3, + 0, + 17, + 58, + 3, + 100, + 15, + 53, + 5, + 0, + 6, + 45, + 211, + 57, + 3, + 18, + 2, + 5, + 3, + 11, + 3, + 9, + 2, + 1, + 7, + 6, + 2, + 2, + 2, + 7, + 3, + 1, + 3, + 21, + 2, + 6, + 2, + 0, + 4, + 3, + 3, + 8, + 3, + 1, + 3, + 3, + 9, + 0, + 5, + 1, + 2, + 4, + 3, + 11, + 16, + 2, + 2, + 5, + 5, + 1, + 3, + 21, + 2, + 6, + 2, + 1, + 2, + 1, + 2, + 1, + 3, + 0, + 2, + 4, + 5, + 1, + 3, + 2, + 4, + 0, + 8, + 3, + 2, + 0, + 8, + 15, + 12, + 2, + 2, + 8, + 2, + 2, + 2, + 21, + 2, + 6, + 2, + 1, + 2, + 4, + 3, + 9, + 2, + 2, + 2, + 2, + 3, + 0, + 16, + 3, + 3, + 9, + 18, + 2, + 2, + 7, + 3, + 1, + 3, + 21, + 2, + 6, + 2, + 1, + 2, + 4, + 3, + 8, + 3, + 1, + 3, + 2, + 9, + 1, + 5, + 1, + 2, + 4, + 3, + 9, + 2, + 0, + 17, + 1, + 2, + 5, + 4, + 2, + 2, + 3, + 4, + 1, + 2, + 0, + 2, + 1, + 4, + 1, + 4, + 2, + 4, + 11, + 5, + 4, + 4, + 2, + 2, + 3, + 3, + 0, + 7, + 0, + 15, + 9, + 18, + 2, + 2, + 7, + 2, + 2, + 2, + 22, + 2, + 9, + 2, + 4, + 4, + 7, + 2, + 2, + 2, + 3, + 8, + 1, + 2, + 1, + 7, + 3, + 3, + 9, + 19, + 1, + 2, + 7, + 2, + 2, + 2, + 22, + 2, + 9, + 2, + 4, + 3, + 8, + 2, + 2, + 2, + 3, + 8, + 1, + 8, + 0, + 2, + 3, + 3, + 9, + 19, + 1, + 2, + 7, + 2, + 2, + 2, + 22, + 2, + 15, + 4, + 7, + 2, + 2, + 2, + 3, + 10, + 0, + 9, + 3, + 3, + 9, + 11, + 5, + 3, + 1, + 2, + 17, + 4, + 23, + 2, + 8, + 2, + 0, + 3, + 6, + 4, + 0, + 5, + 5, + 2, + 0, + 2, + 7, + 19, + 1, + 14, + 57, + 6, + 14, + 2, + 9, + 40, + 1, + 2, + 0, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 3, + 2, + 6, + 2, + 2, + 2, + 0, + 2, + 0, + 3, + 1, + 2, + 12, + 2, + 2, + 3, + 4, + 2, + 0, + 2, + 5, + 3, + 9, + 3, + 1, + 35, + 0, + 24, + 1, + 7, + 9, + 12, + 0, + 2, + 0, + 2, + 0, + 5, + 9, + 2, + 35, + 5, + 19, + 2, + 5, + 5, + 7, + 2, + 35, + 10, + 0, + 58, + 73, + 7, + 77, + 3, + 37, + 11, + 42, + 2, + 0, + 4, + 328, + 2, + 3, + 3, + 6, + 2, + 0, + 2, + 3, + 3, + 40, + 2, + 3, + 3, + 32, + 2, + 3, + 3, + 6, + 2, + 0, + 2, + 3, + 3, + 14, + 2, + 56, + 2, + 3, + 3, + 66, + 5, + 0, + 33, + 15, + 17, + 84, + 13, + 619, + 3, + 16, + 2, + 25, + 6, + 74, + 22, + 12, + 2, + 6, + 12, + 20, + 12, + 19, + 13, + 12, + 2, + 2, + 2, + 1, + 13, + 51, + 3, + 29, + 4, + 0, + 5, + 1, + 3, + 9, + 34, + 2, + 3, + 9, + 7, + 87, + 9, + 42, + 6, + 69, + 11, + 28, + 4, + 11, + 5, + 11, + 11, + 39, + 3, + 4, + 12, + 43, + 5, + 25, + 7, + 10, + 38, + 27, + 5, + 62, + 2, + 28, + 3, + 10, + 7, + 9, + 14, + 0, + 89, + 75, + 5, + 9, + 18, + 8, + 13, + 42, + 4, + 11, + 71, + 55, + 9, + 9, + 4, + 48, + 83, + 2, + 2, + 30, + 14, + 230, + 23, + 280, + 3, + 5, + 3, + 37, + 3, + 5, + 3, + 7, + 2, + 0, + 2, + 0, + 2, + 0, + 2, + 30, + 3, + 52, + 2, + 6, + 2, + 0, + 4, + 2, + 2, + 6, + 4, + 3, + 3, + 5, + 5, + 12, + 6, + 2, + 2, + 6, + 67, + 1, + 20, + 0, + 29, + 0, + 14, + 0, + 17, + 4, + 60, + 12, + 5, + 0, + 4, + 11, + 18, + 0, + 5, + 0, + 3, + 9, + 2, + 0, + 4, + 4, + 7, + 0, + 2, + 0, + 2, + 0, + 2, + 3, + 2, + 10, + 3, + 3, + 6, + 4, + 5, + 0, + 53, + 1, + 2684, + 46, + 2, + 46, + 2, + 132, + 7, + 6, + 15, + 37, + 11, + 53, + 10, + 0, + 17, + 22, + 10, + 6, + 2, + 6, + 2, + 6, + 2, + 6, + 2, + 6, + 2, + 6, + 2, + 6, + 2, + 6, + 2, + 31, + 48, + 0, + 470, + 1, + 36, + 5, + 2, + 4, + 6, + 1, + 5, + 85, + 3, + 1, + 3, + 2, + 2, + 89, + 2, + 3, + 6, + 40, + 4, + 93, + 18, + 23, + 57, + 15, + 513, + 6581, + 75, + 20939, + 53, + 1164, + 68, + 45, + 3, + 268, + 4, + 27, + 21, + 31, + 3, + 13, + 13, + 1, + 2, + 24, + 9, + 69, + 11, + 1, + 38, + 8, + 3, + 102, + 3, + 1, + 111, + 44, + 25, + 51, + 13, + 68, + 12, + 9, + 7, + 23, + 4, + 0, + 5, + 45, + 3, + 35, + 13, + 28, + 4, + 64, + 15, + 10, + 39, + 54, + 10, + 13, + 3, + 9, + 7, + 22, + 4, + 1, + 5, + 66, + 25, + 2, + 227, + 42, + 2, + 1, + 3, + 9, + 7, + 11171, + 13, + 22, + 5, + 48, + 8453, + 301, + 3, + 61, + 3, + 105, + 39, + 6, + 13, + 4, + 6, + 11, + 2, + 12, + 2, + 4, + 2, + 0, + 2, + 1, + 2, + 1, + 2, + 107, + 34, + 362, + 19, + 63, + 3, + 53, + 41, + 11, + 5, + 15, + 17, + 6, + 13, + 1, + 25, + 2, + 33, + 4, + 2, + 134, + 20, + 9, + 8, + 25, + 5, + 0, + 2, + 25, + 12, + 88, + 4, + 5, + 3, + 5, + 3, + 5, + 3, + 2, + ], + s = 0, + d = [], + u = 0; + u < m.length; + u += 2 + ) + d.push((s += m[u])), m[u + 1] && d.push(45, (s += m[u + 1])); + f.wordChars = String.fromCharCode.apply(null, d); + } + ), + ace.define( + "ace/mode/text", + [ + "require", + "exports", + "module", + "ace/config", + "ace/tokenizer", + "ace/mode/text_highlight_rules", + "ace/mode/behaviour/cstyle", + "ace/unicode", + "ace/lib/lang", + "ace/token_iterator", + "ace/range", + ], + function (n, f, _) { + "use strict"; + var m = n("../config"), + s = n("../tokenizer").Tokenizer, + d = n("./text_highlight_rules").TextHighlightRules, + u = n("./behaviour/cstyle").CstyleBehaviour, + h = n("../unicode"), + r = n("../lib/lang"), + o = n("../token_iterator").TokenIterator, + i = n("../range").Range, + c = function () { + this.HighlightRules = d; + }; + (function () { + (this.$defaultBehaviour = new u()), + (this.tokenRe = new RegExp("^[" + h.wordChars + "\\$_]+", "g")), + (this.nonTokenRe = new RegExp( + "^(?:[^" + h.wordChars + "\\$_]|\\s])+", + "g" + )), + (this.getTokenizer = function () { + return ( + this.$tokenizer || + ((this.$highlightRules = + this.$highlightRules || + new this.HighlightRules(this.$highlightRuleConfig)), + (this.$tokenizer = new s( + this.$highlightRules.getRules() + ))), + this.$tokenizer + ); + }), + (this.lineCommentStart = ""), + (this.blockComment = ""), + (this.toggleCommentLines = function (l, g, b, y) { + var x = g.doc, + T = !0, + O = !0, + M = 1 / 0, + A = g.getTabSize(), + S = !1; + if (this.lineCommentStart) { + if (Array.isArray(this.lineCommentStart)) + var C = this.lineCommentStart + .map(r.escapeRegExp) + .join("|"), + w = this.lineCommentStart[0]; + else + (C = r.escapeRegExp(this.lineCommentStart)), + (w = this.lineCommentStart); + (C = new RegExp("^(\\s*)(?:" + C + ") ?")), + (S = g.getUseSoftTabs()); + var ie = function (Oe, Le) { + var Ye = Oe.match(C); + if (Ye) { + var Je = Ye[1].length, + gt = Ye[0].length; + !ee(Oe, Je, gt) && " " == Ye[0][gt - 1] && gt--, + x.removeInLine(Le, Je, gt); + } + }, + Z = w + " ", + F = function (Oe, Le) { + (!T || /\S/.test(Oe)) && + (ee(Oe, M, M) + ? x.insertInLine({ row: Le, column: M }, Z) + : x.insertInLine({ row: Le, column: M }, w)); + }, + Y = function (Oe, Le) { + return C.test(Oe); + }, + ee = function (Oe, Le, Ye) { + for (var Je = 0; Le-- && " " == Oe.charAt(Le); ) Je++; + if (Je % A != 0) return !1; + for (Je = 0; " " == Oe.charAt(Ye++); ) Je++; + return A > 2 ? Je % A != A - 1 : Je % A == 0; + }; + } else { + if (!this.blockComment) return !1; + w = this.blockComment.start; + var I = this.blockComment.end, + L = + ((C = new RegExp( + "^(\\s*)(?:" + r.escapeRegExp(w) + ")" + )), + new RegExp("(?:" + r.escapeRegExp(I) + ")\\s*$")); + (F = function (ne, ae) { + Y(ne, ae) || + ((!T || /\S/.test(ne)) && + (x.insertInLine({ row: ae, column: ne.length }, I), + x.insertInLine({ row: ae, column: M }, w))); + }), + (ie = function (ne, ae) { + var le; + (le = ne.match(L)) && + x.removeInLine( + ae, + ne.length - le[0].length, + ne.length + ), + (le = ne.match(C)) && + x.removeInLine(ae, le[1].length, le[0].length); + }), + (Y = function (ne, ae) { + if (C.test(ne)) return !0; + for ( + var le = g.getTokens(ae), Oe = 0; + Oe < le.length; + Oe++ + ) + if ("comment" === le[Oe].type) return !0; + }); + } + function $(ne) { + for (var ae = b; ae <= y; ae++) ne(x.getLine(ae), ae); + } + var J = 1 / 0; + $(function (ne, ae) { + var le = ne.search(/\S/); + -1 !== le + ? (le < M && (M = le), O && !Y(ne, ae) && (O = !1)) + : J > ne.length && (J = ne.length); + }), + M == 1 / 0 && ((M = J), (T = !1), (O = !1)), + S && M % A != 0 && (M = Math.floor(M / A) * A), + $(O ? ie : F); + }), + (this.toggleBlockComment = function (l, g, b, y) { + var x = this.blockComment; + if (x) { + !x.start && x[0] && (x = x[0]); + var S, + w, + O = (T = new o(g, y.row, y.column)).getCurrentToken(), + A = g.selection.toOrientedRange(); + if (O && /comment/.test(O.type)) { + for (var I, C; O && /comment/.test(O.type); ) { + if (-1 != (L = O.value.indexOf(x.start))) { + var F = T.getCurrentTokenRow(), + ie = T.getCurrentTokenColumn() + L; + I = new i(F, ie, F, ie + x.start.length); + break; + } + O = T.stepBackward(); + } + var T; + for ( + O = (T = new o(g, y.row, y.column)).getCurrentToken(); + O && /comment/.test(O.type); + + ) { + var L; + if (-1 != (L = O.value.indexOf(x.end))) { + (F = T.getCurrentTokenRow()), + (ie = T.getCurrentTokenColumn() + L), + (C = new i(F, ie, F, ie + x.end.length)); + break; + } + O = T.stepForward(); + } + C && g.remove(C), + I && + (g.remove(I), + (S = I.start.row), + (w = -x.start.length)); + } else + (w = x.start.length), + (S = b.start.row), + g.insert(b.end, x.end), + g.insert(b.start, x.start); + A.start.row == S && (A.start.column += w), + A.end.row == S && (A.end.column += w), + g.selection.fromOrientedRange(A); + } + }), + (this.getNextLineIndent = function (l, g, b) { + return this.$getIndent(g); + }), + (this.checkOutdent = function (l, g, b) { + return !1; + }), + (this.autoOutdent = function (l, g, b) {}), + (this.$getIndent = function (l) { + return l.match(/^\s*/)[0]; + }), + (this.createWorker = function (l) { + return null; + }), + (this.createModeDelegates = function (l) { + for (var g in ((this.$embeds = []), (this.$modes = {}), l)) + if (l[g]) { + var b = l[g], + y = b.prototype.$id, + x = m.$modes[y]; + x || (m.$modes[y] = x = new b()), + m.$modes[g] || (m.$modes[g] = x), + this.$embeds.push(g), + (this.$modes[g] = x); + } + var T = [ + "toggleBlockComment", + "toggleCommentLines", + "getNextLineIndent", + "checkOutdent", + "autoOutdent", + "transformAction", + "getCompletions", + ]; + for (g = 0; g < T.length; g++) + !(function (M) { + var A = T[g], + S = M[A]; + M[T[g]] = function () { + return this.$delegator(A, arguments, S); + }; + })(this); + }), + (this.$delegator = function (l, g, b) { + var y = g[0] || "start"; + if ("string" != typeof y) { + if ( + Array.isArray(y[2]) && + (T = this.$modes[y[2][y[2].length - 1]]) + ) + return T[l].apply(T, [y[1]].concat([].slice.call(g, 1))); + y = y[0] || "start"; + } + for (var O = 0; O < this.$embeds.length; O++) + if (this.$modes[this.$embeds[O]]) { + var T, + M = y.split(this.$embeds[O]); + if (!M[0] && M[1]) + return ( + (g[0] = M[1]), + (T = this.$modes[this.$embeds[O]])[l].apply(T, g) + ); + } + var A = b.apply(this, g); + return b ? A : void 0; + }), + (this.transformAction = function (l, g, b, y, x) { + if (this.$behaviour) { + var T = this.$behaviour.getBehaviours(); + for (var O in T) + if (T[O][g]) { + var M = T[O][g].apply(this, arguments); + if (M) return M; + } + } + }), + (this.getKeywords = function (l) { + if (!this.completionKeywords) { + var g = this.$tokenizer.rules, + b = []; + for (var y in g) + for (var x = g[y], T = 0, O = x.length; T < O; T++) + if ("string" == typeof x[T].token) + /keyword|support|storage/.test(x[T].token) && + b.push(x[T].regex); + else if ("object" == typeof x[T].token) + for (var M = 0, A = x[T].token.length; M < A; M++) + /keyword|support|storage/.test(x[T].token[M]) && + ((y = x[T].regex.match(/\(.+?\)/g)[M]), + b.push(y.substr(1, y.length - 2))); + this.completionKeywords = b; + } + return l + ? b.concat(this.$keywordList || []) + : this.$keywordList; + }), + (this.$createKeywordList = function () { + return ( + this.$highlightRules || this.getTokenizer(), + (this.$keywordList = + this.$highlightRules.$keywordList || []) + ); + }), + (this.getCompletions = function (l, g, b, y) { + return (this.$keywordList || this.$createKeywordList()).map( + function (T) { + return { name: T, value: T, score: 0, meta: "keyword" }; + } + ); + }), + (this.$id = "ace/mode/text"); + }.call(c.prototype), + (f.Mode = c)); + } + ), + ace.define( + "ace/apply_delta", + ["require", "exports", "module"], + function (n, f, _) { + "use strict"; + f.applyDelta = function (u, h, r) { + var o = h.start.row, + i = h.start.column, + c = u[o] || ""; + switch (h.action) { + case "insert": + if (1 === h.lines.length) + u[o] = c.substring(0, i) + h.lines[0] + c.substring(i); + else { + var g = [o, 1].concat(h.lines); + u.splice.apply(u, g), + (u[o] = c.substring(0, i) + u[o]), + (u[o + h.lines.length - 1] += c.substring(i)); + } + break; + case "remove": + var b = h.end.column, + y = h.end.row; + o === y + ? (u[o] = c.substring(0, i) + c.substring(b)) + : u.splice( + o, + y - o + 1, + c.substring(0, i) + u[y].substring(b) + ); + } + }; + } + ), + ace.define( + "ace/anchor", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/event_emitter", + ], + function (n, f, _) { + "use strict"; + var m = n("./lib/oop"), + s = n("./lib/event_emitter").EventEmitter, + d = (f.Anchor = function (u, h, r) { + (this.$onChange = this.onChange.bind(this)), + this.attach(u), + void 0 === r + ? this.setPosition(h.row, h.column) + : this.setPosition(h, r); + }); + (function () { + function u(r, o, i) { + return ( + r.row < o.row || + (r.row == o.row && + (i ? r.column <= o.column : r.column < o.column)) + ); + } + m.implement(this, s), + (this.getPosition = function () { + return this.$clipPositionToDocument(this.row, this.column); + }), + (this.getDocument = function () { + return this.document; + }), + (this.$insertRight = !1), + (this.onChange = function (r) { + if ( + !( + (r.start.row == r.end.row && r.start.row != this.row) || + r.start.row > this.row + ) + ) { + var o = (function (r, o, i) { + var c = "insert" == r.action, + l = (c ? 1 : -1) * (r.end.row - r.start.row), + g = (c ? 1 : -1) * (r.end.column - r.start.column), + b = r.start, + y = c ? b : r.end; + return u(o, b, i) + ? { row: o.row, column: o.column } + : u(y, o, !i) + ? { + row: o.row + l, + column: o.column + (o.row == y.row ? g : 0), + } + : { row: b.row, column: b.column }; + })( + r, + { row: this.row, column: this.column }, + this.$insertRight + ); + this.setPosition(o.row, o.column, !0); + } + }), + (this.setPosition = function (r, o, i) { + var c; + if ( + ((c = i + ? { row: r, column: o } + : this.$clipPositionToDocument(r, o)), + this.row != c.row || this.column != c.column) + ) { + var l = { row: this.row, column: this.column }; + (this.row = c.row), + (this.column = c.column), + this._signal("change", { old: l, value: c }); + } + }), + (this.detach = function () { + this.document.off("change", this.$onChange); + }), + (this.attach = function (r) { + (this.document = r || this.document), + this.document.on("change", this.$onChange); + }), + (this.$clipPositionToDocument = function (r, o) { + var i = {}; + return ( + r >= this.document.getLength() + ? ((i.row = Math.max(0, this.document.getLength() - 1)), + (i.column = this.document.getLine(i.row).length)) + : r < 0 + ? ((i.row = 0), (i.column = 0)) + : ((i.row = r), + (i.column = Math.min( + this.document.getLine(i.row).length, + Math.max(0, o) + ))), + o < 0 && (i.column = 0), + i + ); + }); + }.call(d.prototype)); + } + ), + ace.define( + "ace/document", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/apply_delta", + "ace/lib/event_emitter", + "ace/range", + "ace/anchor", + ], + function (n, f, _) { + "use strict"; + var m = n("./lib/oop"), + s = n("./apply_delta").applyDelta, + d = n("./lib/event_emitter").EventEmitter, + u = n("./range").Range, + h = n("./anchor").Anchor, + r = function (o) { + (this.$lines = [""]), + 0 === o.length + ? (this.$lines = [""]) + : Array.isArray(o) + ? this.insertMergedLines({ row: 0, column: 0 }, o) + : this.insert({ row: 0, column: 0 }, o); + }; + (function () { + m.implement(this, d), + (this.setValue = function (o) { + var i = this.getLength() - 1; + this.remove(new u(0, 0, i, this.getLine(i).length)), + this.insert({ row: 0, column: 0 }, o); + }), + (this.getValue = function () { + return this.getAllLines().join(this.getNewLineCharacter()); + }), + (this.createAnchor = function (o, i) { + return new h(this, o, i); + }), + (this.$split = + 0 === "aaa".split(/a/).length + ? function (o) { + return o.replace(/\r\n|\r/g, "\n").split("\n"); + } + : function (o) { + return o.split(/\r\n|\r|\n/); + }), + (this.$detectNewLine = function (o) { + var i = o.match(/^.*?(\r\n|\r|\n)/m); + (this.$autoNewLine = i ? i[1] : "\n"), + this._signal("changeNewLineMode"); + }), + (this.getNewLineCharacter = function () { + switch (this.$newLineMode) { + case "windows": + return "\r\n"; + case "unix": + return "\n"; + default: + return this.$autoNewLine || "\n"; + } + }), + (this.$autoNewLine = ""), + (this.$newLineMode = "auto"), + (this.setNewLineMode = function (o) { + this.$newLineMode !== o && + ((this.$newLineMode = o), + this._signal("changeNewLineMode")); + }), + (this.getNewLineMode = function () { + return this.$newLineMode; + }), + (this.isNewLine = function (o) { + return "\r\n" == o || "\r" == o || "\n" == o; + }), + (this.getLine = function (o) { + return this.$lines[o] || ""; + }), + (this.getLines = function (o, i) { + return this.$lines.slice(o, i + 1); + }), + (this.getAllLines = function () { + return this.getLines(0, this.getLength()); + }), + (this.getLength = function () { + return this.$lines.length; + }), + (this.getTextRange = function (o) { + return this.getLinesForRange(o).join( + this.getNewLineCharacter() + ); + }), + (this.getLinesForRange = function (o) { + var i; + if (o.start.row === o.end.row) + i = [ + this.getLine(o.start.row).substring( + o.start.column, + o.end.column + ), + ]; + else { + (i = this.getLines(o.start.row, o.end.row))[0] = ( + i[0] || "" + ).substring(o.start.column); + var c = i.length - 1; + o.end.row - o.start.row == c && + (i[c] = i[c].substring(0, o.end.column)); + } + return i; + }), + (this.insertLines = function (o, i) { + return ( + console.warn( + "Use of document.insertLines is deprecated. Use the insertFullLines method instead." + ), + this.insertFullLines(o, i) + ); + }), + (this.removeLines = function (o, i) { + return ( + console.warn( + "Use of document.removeLines is deprecated. Use the removeFullLines method instead." + ), + this.removeFullLines(o, i) + ); + }), + (this.insertNewLine = function (o) { + return ( + console.warn( + "Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead." + ), + this.insertMergedLines(o, ["", ""]) + ); + }), + (this.insert = function (o, i) { + return ( + this.getLength() <= 1 && this.$detectNewLine(i), + this.insertMergedLines(o, this.$split(i)) + ); + }), + (this.insertInLine = function (o, i) { + var c = this.clippedPos(o.row, o.column), + l = this.pos(o.row, o.column + i.length); + return ( + this.applyDelta( + { start: c, end: l, action: "insert", lines: [i] }, + !0 + ), + this.clonePos(l) + ); + }), + (this.clippedPos = function (o, i) { + var c = this.getLength(); + void 0 === o + ? (o = c) + : o < 0 + ? (o = 0) + : o >= c && ((o = c - 1), (i = void 0)); + var l = this.getLine(o); + return ( + null == i && (i = l.length), + { row: o, column: (i = Math.min(Math.max(i, 0), l.length)) } + ); + }), + (this.clonePos = function (o) { + return { row: o.row, column: o.column }; + }), + (this.pos = function (o, i) { + return { row: o, column: i }; + }), + (this.$clipPosition = function (o) { + var i = this.getLength(); + return ( + o.row >= i + ? ((o.row = Math.max(0, i - 1)), + (o.column = this.getLine(i - 1).length)) + : ((o.row = Math.max(0, o.row)), + (o.column = Math.min( + Math.max(o.column, 0), + this.getLine(o.row).length + ))), + o + ); + }), + (this.insertFullLines = function (o, i) { + var c = 0; + (o = Math.min(Math.max(o, 0), this.getLength())) < + this.getLength() + ? ((i = i.concat([""])), (c = 0)) + : ((i = [""].concat(i)), o--, (c = this.$lines[o].length)), + this.insertMergedLines({ row: o, column: c }, i); + }), + (this.insertMergedLines = function (o, i) { + var c = this.clippedPos(o.row, o.column), + l = { + row: c.row + i.length - 1, + column: + (1 == i.length ? c.column : 0) + i[i.length - 1].length, + }; + return ( + this.applyDelta({ + start: c, + end: l, + action: "insert", + lines: i, + }), + this.clonePos(l) + ); + }), + (this.remove = function (o) { + var i = this.clippedPos(o.start.row, o.start.column), + c = this.clippedPos(o.end.row, o.end.column); + return ( + this.applyDelta({ + start: i, + end: c, + action: "remove", + lines: this.getLinesForRange({ start: i, end: c }), + }), + this.clonePos(i) + ); + }), + (this.removeInLine = function (o, i, c) { + var l = this.clippedPos(o, i), + g = this.clippedPos(o, c); + return ( + this.applyDelta( + { + start: l, + end: g, + action: "remove", + lines: this.getLinesForRange({ start: l, end: g }), + }, + !0 + ), + this.clonePos(l) + ); + }), + (this.removeFullLines = function (o, i) { + o = Math.min(Math.max(0, o), this.getLength() - 1); + var c = + (i = Math.min(Math.max(0, i), this.getLength() - 1)) == + this.getLength() - 1 && o > 0, + l = i < this.getLength() - 1, + g = c ? o - 1 : o, + b = c ? this.getLine(g).length : 0, + y = l ? i + 1 : i, + x = l ? 0 : this.getLine(y).length, + T = new u(g, b, y, x), + O = this.$lines.slice(o, i + 1); + return ( + this.applyDelta({ + start: T.start, + end: T.end, + action: "remove", + lines: this.getLinesForRange(T), + }), + O + ); + }), + (this.removeNewLine = function (o) { + o < this.getLength() - 1 && + o >= 0 && + this.applyDelta({ + start: this.pos(o, this.getLine(o).length), + end: this.pos(o + 1, 0), + action: "remove", + lines: ["", ""], + }); + }), + (this.replace = function (o, i) { + return ( + o instanceof u || (o = u.fromPoints(o.start, o.end)), + 0 === i.length && o.isEmpty() + ? o.start + : i == this.getTextRange(o) + ? o.end + : (this.remove(o), i ? this.insert(o.start, i) : o.start) + ); + }), + (this.applyDeltas = function (o) { + for (var i = 0; i < o.length; i++) this.applyDelta(o[i]); + }), + (this.revertDeltas = function (o) { + for (var i = o.length - 1; i >= 0; i--) + this.revertDelta(o[i]); + }), + (this.applyDelta = function (o, i) { + var c = "insert" == o.action; + (c + ? o.lines.length <= 1 && !o.lines[0] + : !u.comparePoints(o.start, o.end)) || + (c && o.lines.length > 2e4 + ? this.$splitAndapplyLargeDelta(o, 2e4) + : (s(this.$lines, o, i), this._signal("change", o))); + }), + (this.$safeApplyDelta = function (o) { + var i = this.$lines.length; + (("remove" == o.action && o.start.row < i && o.end.row < i) || + ("insert" == o.action && o.start.row <= i)) && + this.applyDelta(o); + }), + (this.$splitAndapplyLargeDelta = function (o, i) { + for ( + var c = o.lines, + l = c.length - i + 1, + g = o.start.row, + b = o.start.column, + y = 0, + x = 0; + y < l; + y = x + ) { + var T = c.slice(y, (x += i - 1)); + T.push(""), + this.applyDelta( + { + start: this.pos(g + y, b), + end: this.pos(g + x, (b = 0)), + action: o.action, + lines: T, + }, + !0 + ); + } + (o.lines = c.slice(y)), + (o.start.row = g + y), + (o.start.column = b), + this.applyDelta(o, !0); + }), + (this.revertDelta = function (o) { + this.$safeApplyDelta({ + start: this.clonePos(o.start), + end: this.clonePos(o.end), + action: "insert" == o.action ? "remove" : "insert", + lines: o.lines.slice(), + }); + }), + (this.indexToPosition = function (o, i) { + for ( + var c = this.$lines || this.getAllLines(), + l = this.getNewLineCharacter().length, + g = i || 0, + b = c.length; + g < b; + g++ + ) + if ((o -= c[g].length + l) < 0) + return { row: g, column: o + c[g].length + l }; + return { row: b - 1, column: o + c[b - 1].length + l }; + }), + (this.positionToIndex = function (o, i) { + for ( + var c = this.$lines || this.getAllLines(), + l = this.getNewLineCharacter().length, + g = 0, + b = Math.min(o.row, c.length), + y = i || 0; + y < b; + ++y + ) + g += c[y].length + l; + return g + o.column; + }); + }.call(r.prototype), + (f.Document = r)); + } + ), + ace.define( + "ace/background_tokenizer", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/event_emitter", + ], + function (n, f, _) { + "use strict"; + var m = n("./lib/oop"), + s = n("./lib/event_emitter").EventEmitter, + d = function (u, h) { + (this.running = !1), + (this.lines = []), + (this.states = []), + (this.currentLine = 0), + (this.tokenizer = u); + var r = this; + this.$worker = function () { + if (r.running) { + for ( + var o = new Date(), + i = r.currentLine, + c = -1, + l = r.doc, + g = i; + r.lines[i]; + + ) + i++; + var b = l.getLength(), + y = 0; + for (r.running = !1; i < b; ) { + r.$tokenizeRow(i), (c = i); + do { + i++; + } while (r.lines[i]); + if (++y % 5 == 0 && new Date() - o > 20) { + r.running = setTimeout(r.$worker, 20); + break; + } + } + (r.currentLine = i), + -1 == c && (c = i), + g <= c && r.fireUpdateEvent(g, c); + } + }; + }; + (function () { + m.implement(this, s), + (this.setTokenizer = function (u) { + (this.tokenizer = u), + (this.lines = []), + (this.states = []), + this.start(0); + }), + (this.setDocument = function (u) { + (this.doc = u), + (this.lines = []), + (this.states = []), + this.stop(); + }), + (this.fireUpdateEvent = function (u, h) { + this._signal("update", { data: { first: u, last: h } }); + }), + (this.start = function (u) { + (this.currentLine = Math.min( + u || 0, + this.currentLine, + this.doc.getLength() + )), + this.lines.splice(this.currentLine, this.lines.length), + this.states.splice(this.currentLine, this.states.length), + this.stop(), + (this.running = setTimeout(this.$worker, 700)); + }), + (this.scheduleStart = function () { + this.running || + (this.running = setTimeout(this.$worker, 700)); + }), + (this.$updateOnChange = function (u) { + var h = u.start.row, + r = u.end.row - h; + if (0 === r) this.lines[h] = null; + else if ("remove" == u.action) + this.lines.splice(h, r + 1, null), + this.states.splice(h, r + 1, null); + else { + var o = Array(r + 1); + o.unshift(h, 1), + this.lines.splice.apply(this.lines, o), + this.states.splice.apply(this.states, o); + } + (this.currentLine = Math.min( + h, + this.currentLine, + this.doc.getLength() + )), + this.stop(); + }), + (this.stop = function () { + this.running && clearTimeout(this.running), + (this.running = !1); + }), + (this.getTokens = function (u) { + return this.lines[u] || this.$tokenizeRow(u); + }), + (this.getState = function (u) { + return ( + this.currentLine == u && this.$tokenizeRow(u), + this.states[u] || "start" + ); + }), + (this.$tokenizeRow = function (u) { + var h = this.doc.getLine(u), + o = this.tokenizer.getLineTokens(h, this.states[u - 1], u); + return ( + this.states[u] + "" != o.state + "" + ? ((this.states[u] = o.state), + (this.lines[u + 1] = null), + this.currentLine > u + 1 && (this.currentLine = u + 1)) + : this.currentLine == u && (this.currentLine = u + 1), + (this.lines[u] = o.tokens) + ); + }); + }.call(d.prototype), + (f.BackgroundTokenizer = d)); + } + ), + ace.define( + "ace/search_highlight", + [ + "require", + "exports", + "module", + "ace/lib/lang", + "ace/lib/oop", + "ace/range", + ], + function (n, f, _) { + "use strict"; + var m = n("./lib/lang"), + d = (n("./lib/oop"), n("./range").Range), + u = function (h, r, o) { + this.setRegexp(h), (this.clazz = r), (this.type = o || "text"); + }; + (function () { + (this.MAX_RANGES = 500), + (this.setRegexp = function (h) { + this.regExp + "" != h + "" && + ((this.regExp = h), (this.cache = [])); + }), + (this.update = function (h, r, o, i) { + if (this.regExp) + for (var l = i.lastRow, g = i.firstRow; g <= l; g++) { + var b = this.cache[g]; + null == b && + ((b = m.getMatchOffsets(o.getLine(g), this.regExp)) + .length > this.MAX_RANGES && + (b = b.slice(0, this.MAX_RANGES)), + (b = b.map(function (x) { + return new d(g, x.offset, g, x.offset + x.length); + })), + (this.cache[g] = b.length ? b : "")); + for (var y = b.length; y--; ) + r.drawSingleLineMarker( + h, + b[y].toScreenRange(o), + this.clazz, + i + ); + } + }); + }.call(u.prototype), + (f.SearchHighlight = u)); + } + ), + ace.define( + "ace/edit_session/fold_line", + ["require", "exports", "module", "ace/range"], + function (n, f, _) { + "use strict"; + var m = n("../range").Range; + function s(d, u) { + (this.foldData = d), + Array.isArray(u) ? (this.folds = u) : (u = this.folds = [u]); + var h = u[u.length - 1]; + (this.range = new m( + u[0].start.row, + u[0].start.column, + h.end.row, + h.end.column + )), + (this.start = this.range.start), + (this.end = this.range.end), + this.folds.forEach(function (r) { + r.setFoldLine(this); + }, this); + } + (function () { + (this.shiftRow = function (d) { + (this.start.row += d), + (this.end.row += d), + this.folds.forEach(function (u) { + (u.start.row += d), (u.end.row += d); + }); + }), + (this.addFold = function (d) { + if (d.sameRow) { + if (d.start.row < this.startRow || d.endRow > this.endRow) + throw new Error( + "Can't add a fold to this FoldLine as it has no connection" + ); + this.folds.push(d), + this.folds.sort(function (u, h) { + return -u.range.compareEnd(h.start.row, h.start.column); + }), + this.range.compareEnd(d.start.row, d.start.column) > 0 + ? ((this.end.row = d.end.row), + (this.end.column = d.end.column)) + : this.range.compareStart(d.end.row, d.end.column) < + 0 && + ((this.start.row = d.start.row), + (this.start.column = d.start.column)); + } else if (d.start.row == this.end.row) + this.folds.push(d), + (this.end.row = d.end.row), + (this.end.column = d.end.column); + else { + if (d.end.row != this.start.row) + throw new Error( + "Trying to add fold to FoldRow that doesn't have a matching row" + ); + this.folds.unshift(d), + (this.start.row = d.start.row), + (this.start.column = d.start.column); + } + d.foldLine = this; + }), + (this.containsRow = function (d) { + return d >= this.start.row && d <= this.end.row; + }), + (this.walk = function (d, u, h) { + var i, + c, + r = 0, + o = this.folds, + g = !0; + null == u && ((u = this.end.row), (h = this.end.column)); + for (var b = 0; b < o.length; b++) { + if (-1 == (c = (i = o[b]).range.compareStart(u, h))) + return void d(null, u, h, r, g); + if ( + (!d(null, i.start.row, i.start.column, r, g) && + d(i.placeholder, i.start.row, i.start.column, r)) || + 0 === c + ) + return; + (g = !i.sameRow), (r = i.end.column); + } + d(null, u, h, r, g); + }), + (this.getNextFoldTo = function (d, u) { + for (var h, r, o = 0; o < this.folds.length; o++) { + if (-1 == (r = (h = this.folds[o]).range.compareEnd(d, u))) + return { fold: h, kind: "after" }; + if (0 === r) return { fold: h, kind: "inside" }; + } + return null; + }), + (this.addRemoveChars = function (d, u, h) { + var o, + i, + r = this.getNextFoldTo(d, u); + if (r) + if ( + ((o = r.fold), + "inside" == r.kind && + o.start.column != u && + o.start.row != d) + ) + window.console && window.console.log(d, u, o); + else if (o.start.row == d) { + var c = (i = this.folds).indexOf(o); + for ( + 0 === c && (this.start.column += h); + c < i.length; + c++ + ) { + if ((((o = i[c]).start.column += h), !o.sameRow)) + return; + o.end.column += h; + } + this.end.column += h; + } + }), + (this.split = function (d, u) { + var h = this.getNextFoldTo(d, u); + if (!h || "inside" == h.kind) return null; + var o = this.folds, + i = this.foldData, + c = o.indexOf(h.fold), + l = o[c - 1]; + (this.end.row = l.end.row), (this.end.column = l.end.column); + var g = new s(i, (o = o.splice(c, o.length - c))); + return i.splice(i.indexOf(this) + 1, 0, g), g; + }), + (this.merge = function (d) { + for (var u = d.folds, h = 0; h < u.length; h++) + this.addFold(u[h]); + var r = this.foldData; + r.splice(r.indexOf(d), 1); + }), + (this.toString = function () { + var d = [this.range.toString() + ": ["]; + return ( + this.folds.forEach(function (u) { + d.push(" " + u.toString()); + }), + d.push("]"), + d.join("\n") + ); + }), + (this.idxToPosition = function (d) { + for (var u = 0, h = 0; h < this.folds.length; h++) { + var r = this.folds[h]; + if ((d -= r.start.column - u) < 0) + return { row: r.start.row, column: r.start.column + d }; + if ((d -= r.placeholder.length) < 0) return r.start; + u = r.end.column; + } + return { row: this.end.row, column: this.end.column + d }; + }); + }.call(s.prototype), + (f.FoldLine = s)); + } + ), + ace.define( + "ace/range_list", + ["require", "exports", "module", "ace/range"], + function (n, f, _) { + "use strict"; + var s = n("./range").Range.comparePoints, + d = function () { + (this.ranges = []), (this.$bias = 1); + }; + (function () { + (this.comparePoints = s), + (this.pointIndex = function (u, h, r) { + for (var o = this.ranges, i = r || 0; i < o.length; i++) { + var c = o[i], + l = s(u, c.end); + if (!(l > 0)) { + var g = s(u, c.start); + return 0 === l + ? h && 0 !== g + ? -i - 2 + : i + : g > 0 || (0 === g && !h) + ? i + : -i - 1; + } + } + return -i - 1; + }), + (this.add = function (u) { + var h = !u.isEmpty(), + r = this.pointIndex(u.start, h); + r < 0 && (r = -r - 1); + var o = this.pointIndex(u.end, h, r); + return ( + o < 0 ? (o = -o - 1) : o++, this.ranges.splice(r, o - r, u) + ); + }), + (this.addList = function (u) { + for (var h = [], r = u.length; r--; ) + h.push.apply(h, this.add(u[r])); + return h; + }), + (this.substractPoint = function (u) { + var h = this.pointIndex(u); + if (h >= 0) return this.ranges.splice(h, 1); + }), + (this.merge = function () { + for ( + var o, + u = [], + h = this.ranges, + r = (h = h.sort(function (l, g) { + return s(l.start, g.start); + }))[0], + i = 1; + i < h.length; + i++ + ) { + var c = s((o = r).end, (r = h[i]).start); + c < 0 || + (0 == c && !o.isEmpty() && !r.isEmpty()) || + (s(o.end, r.end) < 0 && + ((o.end.row = r.end.row), + (o.end.column = r.end.column)), + h.splice(i, 1), + u.push(r), + (r = o), + i--); + } + return (this.ranges = h), u; + }), + (this.contains = function (u, h) { + return this.pointIndex({ row: u, column: h }) >= 0; + }), + (this.containsPoint = function (u) { + return this.pointIndex(u) >= 0; + }), + (this.rangeAtPoint = function (u) { + var h = this.pointIndex(u); + if (h >= 0) return this.ranges[h]; + }), + (this.clipRows = function (u, h) { + var r = this.ranges; + if (r[0].start.row > h || r[r.length - 1].start.row < u) + return []; + var o = this.pointIndex({ row: u, column: 0 }); + o < 0 && (o = -o - 1); + var i = this.pointIndex({ row: h, column: 0 }, o); + i < 0 && (i = -i - 1); + for (var c = [], l = o; l < i; l++) c.push(r[l]); + return c; + }), + (this.removeAll = function () { + return this.ranges.splice(0, this.ranges.length); + }), + (this.attach = function (u) { + this.session && this.detach(), + (this.session = u), + (this.onChange = this.$onChange.bind(this)), + this.session.on("change", this.onChange); + }), + (this.detach = function () { + !this.session || + (this.session.removeListener("change", this.onChange), + (this.session = null)); + }), + (this.$onChange = function (u) { + for ( + var h = u.start, + r = u.end, + o = h.row, + i = r.row, + c = this.ranges, + l = 0, + g = c.length; + l < g && !((b = c[l]).end.row >= o); + l++ + ); + if ("insert" == u.action) { + for ( + var y = i - o, x = -h.column + r.column; + l < g && !((b = c[l]).start.row > o); + l++ + ) + if ( + (b.start.row == o && + b.start.column >= h.column && + ((b.start.column == h.column && this.$bias <= 0) || + ((b.start.column += x), (b.start.row += y))), + b.end.row == o && b.end.column >= h.column) + ) { + if (b.end.column == h.column && this.$bias < 0) + continue; + b.end.column == h.column && + x > 0 && + l < g - 1 && + b.end.column > b.start.column && + b.end.column == c[l + 1].start.column && + (b.end.column -= x), + (b.end.column += x), + (b.end.row += y); + } + } else + for ( + y = o - i, x = h.column - r.column; + l < g && !((b = c[l]).start.row > i); + l++ + ) + b.end.row < i && + (o < b.end.row || + (o == b.end.row && h.column < b.end.column)) + ? ((b.end.row = o), (b.end.column = h.column)) + : b.end.row == i + ? b.end.column <= r.column + ? (y || b.end.column > h.column) && + ((b.end.column = h.column), (b.end.row = h.row)) + : ((b.end.column += x), (b.end.row += y)) + : b.end.row > i && (b.end.row += y), + b.start.row < i && + (o < b.start.row || + (o == b.start.row && h.column < b.start.column)) + ? ((b.start.row = o), (b.start.column = h.column)) + : b.start.row == i + ? b.start.column <= r.column + ? (y || b.start.column > h.column) && + ((b.start.column = h.column), + (b.start.row = h.row)) + : ((b.start.column += x), (b.start.row += y)) + : b.start.row > i && (b.start.row += y); + if (0 != y && l < g) + for (; l < g; l++) { + var b; + ((b = c[l]).start.row += y), (b.end.row += y); + } + }); + }.call(d.prototype), + (f.RangeList = d)); + } + ), + ace.define( + "ace/edit_session/fold", + ["require", "exports", "module", "ace/range_list", "ace/lib/oop"], + function (n, f, _) { + "use strict"; + var m = n("../range_list").RangeList, + s = n("../lib/oop"), + d = (f.Fold = function (i, c) { + (this.foldLine = null), + (this.placeholder = c), + (this.range = i), + (this.start = i.start), + (this.end = i.end), + (this.sameRow = i.start.row == i.end.row), + (this.subFolds = this.ranges = []); + }); + function u(i, c) { + (i.row -= c.row), 0 == i.row && (i.column -= c.column); + } + function r(i, c) { + 0 == i.row && (i.column += c.column), (i.row += c.row); + } + s.inherits(d, m), + function () { + (this.toString = function () { + return '"' + this.placeholder + '" ' + this.range.toString(); + }), + (this.setFoldLine = function (i) { + (this.foldLine = i), + this.subFolds.forEach(function (c) { + c.setFoldLine(i); + }); + }), + (this.clone = function () { + var i = this.range.clone(), + c = new d(i, this.placeholder); + return ( + this.subFolds.forEach(function (l) { + c.subFolds.push(l.clone()); + }), + (c.collapseChildren = this.collapseChildren), + c + ); + }), + (this.addSubFold = function (i) { + if (!this.range.isEqual(i)) { + !(function (i, c) { + u(i.start, c), u(i.end, c); + })(i, this.start); + for ( + var c = i.start.row, l = i.start.column, g = 0, b = -1; + g < this.subFolds.length && + 1 == (b = this.subFolds[g].range.compare(c, l)); + g++ + ); + var y = this.subFolds[g], + x = 0; + if (0 == b) { + if (y.range.containsRange(i)) return y.addSubFold(i); + x = 1; + } + (c = i.range.end.row), (l = i.range.end.column); + var T = g; + for ( + b = -1; + T < this.subFolds.length && + 1 == (b = this.subFolds[T].range.compare(c, l)); + T++ + ); + 0 == b && T++; + for ( + var O = this.subFolds.splice(g, T - g, i), + M = 0 == b ? O.length - 1 : O.length, + A = x; + A < M; + A++ + ) + i.addSubFold(O[A]); + return i.setFoldLine(this.foldLine), i; + } + }), + (this.restoreRange = function (i) { + return (function (i, c) { + r(i.start, c), r(i.end, c); + })(i, this.start); + }); + }.call(d.prototype); + } + ), + ace.define( + "ace/edit_session/folding", + [ + "require", + "exports", + "module", + "ace/range", + "ace/edit_session/fold_line", + "ace/edit_session/fold", + "ace/token_iterator", + ], + function (n, f, _) { + "use strict"; + var m = n("../range").Range, + s = n("./fold_line").FoldLine, + d = n("./fold").Fold, + u = n("../token_iterator").TokenIterator; + f.Folding = function () { + (this.getFoldAt = function (r, o, i) { + var c = this.getFoldLine(r); + if (!c) return null; + for (var l = c.folds, g = 0; g < l.length; g++) { + var b = l[g].range; + if (b.contains(r, o)) { + if (1 == i && b.isEnd(r, o) && !b.isEmpty()) continue; + if (-1 == i && b.isStart(r, o) && !b.isEmpty()) continue; + return l[g]; + } + } + }), + (this.getFoldsInRange = function (r) { + var o = r.start, + i = r.end, + c = this.$foldData, + l = []; + (o.column += 1), (i.column -= 1); + for (var g = 0; g < c.length; g++) { + var b = c[g].range.compareRange(r); + if (2 != b) { + if (-2 == b) break; + for (var y = c[g].folds, x = 0; x < y.length; x++) { + var T = y[x]; + if (-2 == (b = T.range.compareRange(r))) break; + if (2 != b) { + if (42 == b) break; + l.push(T); + } + } + } + } + return (o.column -= 1), (i.column += 1), l; + }), + (this.getFoldsInRangeList = function (r) { + if (Array.isArray(r)) { + var o = []; + r.forEach(function (i) { + o = o.concat(this.getFoldsInRange(i)); + }, this); + } else o = this.getFoldsInRange(r); + return o; + }), + (this.getAllFolds = function () { + for (var r = [], o = this.$foldData, i = 0; i < o.length; i++) + for (var c = 0; c < o[i].folds.length; c++) + r.push(o[i].folds[c]); + return r; + }), + (this.getFoldStringAt = function (r, o, i, c) { + if (!(c = c || this.getFoldLine(r))) return null; + for ( + var g, b, l = { end: { column: 0 } }, y = 0; + y < c.folds.length; + y++ + ) { + var x = (b = c.folds[y]).range.compareEnd(r, o); + if (-1 == x) { + g = this.getLine(b.start.row).substring( + l.end.column, + b.start.column + ); + break; + } + if (0 === x) return null; + l = b; + } + return ( + g || + (g = this.getLine(b.start.row).substring(l.end.column)), + -1 == i + ? g.substring(0, o - l.end.column) + : 1 == i + ? g.substring(o - l.end.column) + : g + ); + }), + (this.getFoldLine = function (r, o) { + var i = this.$foldData, + c = 0; + for ( + o && (c = i.indexOf(o)), -1 == c && (c = 0); + c < i.length; + c++ + ) { + var l = i[c]; + if (l.start.row <= r && l.end.row >= r) return l; + if (l.end.row > r) return null; + } + return null; + }), + (this.getNextFoldLine = function (r, o) { + var i = this.$foldData, + c = 0; + for ( + o && (c = i.indexOf(o)), -1 == c && (c = 0); + c < i.length; + c++ + ) { + var l = i[c]; + if (l.end.row >= r) return l; + } + return null; + }), + (this.getFoldedRowCount = function (r, o) { + for ( + var i = this.$foldData, c = o - r + 1, l = 0; + l < i.length; + l++ + ) { + var g = i[l], + b = g.end.row, + y = g.start.row; + if (b >= o) { + y < o && (y >= r ? (c -= o - y) : (c = 0)); + break; + } + b >= r && (c -= y >= r ? b - y : b - r + 1); + } + return c; + }), + (this.$addFoldLine = function (r) { + return ( + this.$foldData.push(r), + this.$foldData.sort(function (o, i) { + return o.start.row - i.start.row; + }), + r + ); + }), + (this.addFold = function (r, o) { + var l, + i = this.$foldData, + c = !1; + r instanceof d + ? (l = r) + : ((l = new d(o, r)).collapseChildren = o.collapseChildren), + this.$clipRangeToDocument(l.range); + var g = l.start.row, + b = l.start.column, + y = l.end.row, + x = l.end.column, + T = this.getFoldAt(g, b, 1), + O = this.getFoldAt(y, x, -1); + if (T && O == T) return T.addSubFold(l); + T && !T.range.isStart(g, b) && this.removeFold(T), + O && !O.range.isEnd(y, x) && this.removeFold(O); + var M = this.getFoldsInRange(l.range); + M.length > 0 && + (this.removeFolds(M), + l.collapseChildren || + M.forEach(function (I) { + l.addSubFold(I); + })); + for (var A = 0; A < i.length; A++) { + var S = i[A]; + if (y == S.start.row) { + S.addFold(l), (c = !0); + break; + } + if (g == S.end.row) { + if ((S.addFold(l), (c = !0), !l.sameRow)) { + var w = i[A + 1]; + if (w && w.start.row == y) { + S.merge(w); + break; + } + } + break; + } + if (y <= S.start.row) break; + } + return ( + c || (S = this.$addFoldLine(new s(this.$foldData, l))), + this.$useWrapMode + ? this.$updateWrapData(S.start.row, S.start.row) + : this.$updateRowLengthCache(S.start.row, S.start.row), + (this.$modified = !0), + this._signal("changeFold", { data: l, action: "add" }), + l + ); + }), + (this.addFolds = function (r) { + r.forEach(function (o) { + this.addFold(o); + }, this); + }), + (this.removeFold = function (r) { + var o = r.foldLine, + i = o.start.row, + c = o.end.row, + l = this.$foldData, + g = o.folds; + if (1 == g.length) l.splice(l.indexOf(o), 1); + else if (o.range.isEnd(r.end.row, r.end.column)) + g.pop(), + (o.end.row = g[g.length - 1].end.row), + (o.end.column = g[g.length - 1].end.column); + else if (o.range.isStart(r.start.row, r.start.column)) + g.shift(), + (o.start.row = g[0].start.row), + (o.start.column = g[0].start.column); + else if (r.sameRow) g.splice(g.indexOf(r), 1); + else { + var b = o.split(r.start.row, r.start.column); + (g = b.folds).shift(), + (b.start.row = g[0].start.row), + (b.start.column = g[0].start.column); + } + this.$updating || + (this.$useWrapMode + ? this.$updateWrapData(i, c) + : this.$updateRowLengthCache(i, c)), + (this.$modified = !0), + this._signal("changeFold", { data: r, action: "remove" }); + }), + (this.removeFolds = function (r) { + for (var o = [], i = 0; i < r.length; i++) o.push(r[i]); + o.forEach(function (c) { + this.removeFold(c); + }, this), + (this.$modified = !0); + }), + (this.expandFold = function (r) { + this.removeFold(r), + r.subFolds.forEach(function (o) { + r.restoreRange(o), this.addFold(o); + }, this), + r.collapseChildren > 0 && + this.foldAll( + r.start.row + 1, + r.end.row, + r.collapseChildren - 1 + ), + (r.subFolds = []); + }), + (this.expandFolds = function (r) { + r.forEach(function (o) { + this.expandFold(o); + }, this); + }), + (this.unfold = function (r, o) { + var i, c; + if (null == r) + (i = new m(0, 0, this.getLength(), 0)), + null == o && (o = !0); + else if ("number" == typeof r) + i = new m(r, 0, r, this.getLine(r).length); + else if ("row" in r) i = m.fromPoints(r, r); + else { + if (Array.isArray(r)) + return ( + (c = []), + r.forEach(function (g) { + c = c.concat(this.unfold(g)); + }, this), + c + ); + i = r; + } + for ( + var l = (c = this.getFoldsInRangeList(i)); + 1 == c.length && + m.comparePoints(c[0].start, i.start) < 0 && + m.comparePoints(c[0].end, i.end) > 0; + + ) + this.expandFolds(c), (c = this.getFoldsInRangeList(i)); + if ( + (0 != o ? this.removeFolds(c) : this.expandFolds(c), + l.length) + ) + return l; + }), + (this.isRowFolded = function (r, o) { + return !!this.getFoldLine(r, o); + }), + (this.getRowFoldEnd = function (r, o) { + var i = this.getFoldLine(r, o); + return i ? i.end.row : r; + }), + (this.getRowFoldStart = function (r, o) { + var i = this.getFoldLine(r, o); + return i ? i.start.row : r; + }), + (this.getFoldDisplayLine = function (r, o, i, c, l) { + null == c && (c = r.start.row), + null == l && (l = 0), + null == o && (o = r.end.row), + null == i && (i = this.getLine(o).length); + var g = this.doc, + b = ""; + return ( + r.walk( + function (y, x, T, O) { + if (!(x < c)) { + if (x == c) { + if (T < l) return; + O = Math.max(l, O); + } + b += null != y ? y : g.getLine(x).substring(O, T); + } + }, + o, + i + ), + b + ); + }), + (this.getDisplayLine = function (r, o, i, c) { + var g, + l = this.getFoldLine(r); + return l + ? this.getFoldDisplayLine(l, r, o, i, c) + : (g = this.doc.getLine(r)).substring( + c || 0, + o || g.length + ); + }), + (this.$cloneFoldData = function () { + var r = []; + return (r = this.$foldData.map(function (o) { + var i = o.folds.map(function (c) { + return c.clone(); + }); + return new s(r, i); + })); + }), + (this.toggleFold = function (r) { + var c, + l, + i = this.selection.getRange(); + if (i.isEmpty()) { + var g = i.start; + if ((c = this.getFoldAt(g.row, g.column))) + return void this.expandFold(c); + (l = this.findMatchingBracket(g)) + ? 1 == i.comparePoint(l) + ? (i.end = l) + : ((i.start = l), i.start.column++, i.end.column--) + : (l = this.findMatchingBracket({ + row: g.row, + column: g.column + 1, + })) + ? (1 == i.comparePoint(l) ? (i.end = l) : (i.start = l), + i.start.column++) + : (i = this.getCommentFoldRange(g.row, g.column) || i); + } else { + var b = this.getFoldsInRange(i); + if (r && b.length) return void this.expandFolds(b); + 1 == b.length && (c = b[0]); + } + if ( + (c || (c = this.getFoldAt(i.start.row, i.start.column)), + c && c.range.toString() == i.toString()) + ) + this.expandFold(c); + else { + var y = "..."; + if (!i.isMultiLine()) { + if ((y = this.getTextRange(i)).length < 4) return; + y = y.trim().substring(0, 2) + ".."; + } + this.addFold(y, i); + } + }), + (this.getCommentFoldRange = function (r, o, i) { + var c = new u(this, r, o), + l = c.getCurrentToken(), + g = l && l.type; + if (l && /^comment|string/.test(g)) { + "comment" == (g = g.match(/comment|string/)[0]) && + (g += "|doc-start"); + var b = new RegExp(g), + y = new m(); + if (1 != i) { + do { + l = c.stepBackward(); + } while (l && b.test(l.type)); + c.stepForward(); + } + if ( + ((y.start.row = c.getCurrentTokenRow()), + (y.start.column = c.getCurrentTokenColumn() + 2), + (c = new u(this, r, o)), + -1 != i) + ) { + var x = -1; + do { + if (((l = c.stepForward()), -1 == x)) { + var T = this.getState(c.$row); + b.test(T) || (x = c.$row); + } else if (c.$row > x) break; + } while (l && b.test(l.type)); + l = c.stepBackward(); + } else l = c.getCurrentToken(); + return ( + (y.end.row = c.getCurrentTokenRow()), + (y.end.column = + c.getCurrentTokenColumn() + l.value.length - 2), + y + ); + } + }), + (this.foldAll = function (r, o, i, c) { + null == i && (i = 1e5); + var l = this.foldWidgets; + if (l) { + o = o || this.getLength(); + for (var g = (r = r || 0); g < o; g++) + if ( + (null == l[g] && (l[g] = this.getFoldWidget(g)), + "start" == l[g] && (!c || c(g))) + ) { + var b = this.getFoldWidgetRange(g); + b && + b.isMultiLine() && + b.end.row <= o && + b.start.row >= r && + ((g = b.end.row), + (b.collapseChildren = i), + this.addFold("...", b)); + } + } + }), + (this.foldToLevel = function (r) { + for (this.foldAll(); r-- > 0; ) this.unfold(null, !1); + }), + (this.foldAllComments = function () { + var r = this; + this.foldAll(null, null, null, function (o) { + for (var i = r.getTokens(o), c = 0; c < i.length; c++) { + var l = i[c]; + if ("text" != l.type || !/^\s+$/.test(l.value)) + return !!/comment/.test(l.type); + } + }); + }), + (this.$foldStyles = { + manual: 1, + markbegin: 1, + markbeginend: 1, + }), + (this.$foldStyle = "markbegin"), + (this.setFoldStyle = function (r) { + if (!this.$foldStyles[r]) + throw new Error( + "invalid fold style: " + + r + + "[" + + Object.keys(this.$foldStyles).join(", ") + + "]" + ); + if (this.$foldStyle != r) { + (this.$foldStyle = r), "manual" == r && this.unfold(); + var o = this.$foldMode; + this.$setFolding(null), this.$setFolding(o); + } + }), + (this.$setFolding = function (r) { + if (this.$foldMode != r) { + if ( + ((this.$foldMode = r), + this.off("change", this.$updateFoldWidgets), + this.off( + "tokenizerUpdate", + this.$tokenizerUpdateFoldWidgets + ), + this._signal("changeAnnotation"), + !r || "manual" == this.$foldStyle) + ) + return void (this.foldWidgets = null); + (this.foldWidgets = []), + (this.getFoldWidget = r.getFoldWidget.bind( + r, + this, + this.$foldStyle + )), + (this.getFoldWidgetRange = r.getFoldWidgetRange.bind( + r, + this, + this.$foldStyle + )), + (this.$updateFoldWidgets = this.updateFoldWidgets.bind( + this + )), + (this.$tokenizerUpdateFoldWidgets = this.tokenizerUpdateFoldWidgets.bind( + this + )), + this.on("change", this.$updateFoldWidgets), + this.on( + "tokenizerUpdate", + this.$tokenizerUpdateFoldWidgets + ); + } + }), + (this.getParentFoldRangeData = function (r, o) { + var i = this.foldWidgets; + if (!i || (o && i[r])) return {}; + for (var l, c = r - 1; c >= 0; ) { + var g = i[c]; + if ( + (null == g && (g = i[c] = this.getFoldWidget(c)), + "start" == g) + ) { + var b = this.getFoldWidgetRange(c); + if ((l || (l = b), b && b.end.row >= r)) break; + } + c--; + } + return { range: -1 !== c && b, firstRange: l }; + }), + (this.onFoldWidgetClick = function (r, o) { + if ( + !this.$toggleFoldWidget(r, { + children: (o = o.domEvent).shiftKey, + all: o.ctrlKey || o.metaKey, + siblings: o.altKey, + }) + ) { + var l = o.target || o.srcElement; + l && + /ace_fold-widget/.test(l.className) && + (l.className += " ace_invalid"); + } + }), + (this.$toggleFoldWidget = function (r, o) { + if (this.getFoldWidget) { + var i = this.getFoldWidget(r), + c = this.getLine(r), + l = "end" === i ? -1 : 1, + g = this.getFoldAt(r, -1 === l ? 0 : c.length, l); + if (g) + return ( + o.children || o.all + ? this.removeFold(g) + : this.expandFold(g), + g + ); + var b = this.getFoldWidgetRange(r, !0); + if ( + b && + !b.isMultiLine() && + (g = this.getFoldAt(b.start.row, b.start.column, 1)) && + b.isEqual(g.range) + ) + return this.removeFold(g), g; + if (o.siblings) { + var y = this.getParentFoldRangeData(r); + if (y.range) + var x = y.range.start.row + 1, + T = y.range.end.row; + this.foldAll(x, T, o.all ? 1e4 : 0); + } else + o.children + ? ((T = b ? b.end.row : this.getLength()), + this.foldAll(r + 1, T, o.all ? 1e4 : 0)) + : b && + (o.all && (b.collapseChildren = 1e4), + this.addFold("...", b)); + return b; + } + }), + (this.toggleFoldWidget = function (r) { + var o = this.selection.getCursor().row; + o = this.getRowFoldStart(o); + var i = this.$toggleFoldWidget(o, {}); + if (!i) { + var c = this.getParentFoldRangeData(o, !0); + if ((i = c.range || c.firstRange)) { + var l = this.getFoldAt( + (o = i.start.row), + this.getLine(o).length, + 1 + ); + l ? this.removeFold(l) : this.addFold("...", i); + } + } + }), + (this.updateFoldWidgets = function (r) { + var o = r.start.row, + i = r.end.row - o; + if (0 === i) this.foldWidgets[o] = null; + else if ("remove" == r.action) + this.foldWidgets.splice(o, i + 1, null); + else { + var c = Array(i + 1); + c.unshift(o, 1), + this.foldWidgets.splice.apply(this.foldWidgets, c); + } + }), + (this.tokenizerUpdateFoldWidgets = function (r) { + var o = r.data; + o.first != o.last && + this.foldWidgets.length > o.first && + this.foldWidgets.splice(o.first, this.foldWidgets.length); + }); + }; + } + ), + ace.define( + "ace/edit_session/bracket_match", + ["require", "exports", "module", "ace/token_iterator", "ace/range"], + function (n, f, _) { + "use strict"; + var m = n("../token_iterator").TokenIterator, + s = n("../range").Range; + f.BracketMatch = function () { + (this.findMatchingBracket = function (u, h) { + if (0 == u.column) return null; + var r = h || this.getLine(u.row).charAt(u.column - 1); + if ("" == r) return null; + var o = r.match(/([\(\[\{])|([\)\]\}])/); + return o + ? o[1] + ? this.$findClosingBracket(o[1], u) + : this.$findOpeningBracket(o[2], u) + : null; + }), + (this.getBracketRange = function (u) { + var o, + h = this.getLine(u.row), + r = !0, + i = h.charAt(u.column - 1), + c = i && i.match(/([\(\[\{])|([\)\]\}])/); + if ( + (c || + ((i = h.charAt(u.column)), + (u = { row: u.row, column: u.column + 1 }), + (c = i && i.match(/([\(\[\{])|([\)\]\}])/)), + (r = !1)), + !c) + ) + return null; + if (c[1]) { + if (!(l = this.$findClosingBracket(c[1], u))) return null; + (o = s.fromPoints(u, l)), + r || (o.end.column++, o.start.column--), + (o.cursor = o.end); + } else { + var l; + if (!(l = this.$findOpeningBracket(c[2], u))) return null; + (o = s.fromPoints(l, u)), + r || (o.start.column++, o.end.column--), + (o.cursor = o.start); + } + return o; + }), + (this.getMatchingBracketRanges = function (u) { + var h = this.getLine(u.row), + r = h.charAt(u.column - 1), + o = r && r.match(/([\(\[\{])|([\)\]\}])/); + if ( + (o || + ((r = h.charAt(u.column)), + (u = { row: u.row, column: u.column + 1 }), + (o = r && r.match(/([\(\[\{])|([\)\]\}])/))), + !o) + ) + return null; + var i = new s(u.row, u.column - 1, u.row, u.column), + c = o[1] + ? this.$findClosingBracket(o[1], u) + : this.$findOpeningBracket(o[2], u); + return c + ? [i, new s(c.row, c.column, c.row, c.column + 1)] + : [i]; + }), + (this.$brackets = { + ")": "(", + "(": ")", + "]": "[", + "[": "]", + "{": "}", + "}": "{", + "<": ">", + ">": "<", + }), + (this.$findOpeningBracket = function (u, h, r) { + var o = this.$brackets[u], + i = 1, + c = new m(this, h.row, h.column), + l = c.getCurrentToken(); + if ((l || (l = c.stepForward()), l)) { + r || + (r = new RegExp( + "(\\.?" + + l.type + .replace(".", "\\.") + .replace("rparen", ".paren") + .replace(/\b(?:end)\b/, "(?:start|begin|end)") + + ")+" + )); + for ( + var g = h.column - c.getCurrentTokenColumn() - 2, + b = l.value; + ; + + ) { + for (; g >= 0; ) { + var y = b.charAt(g); + if (y == o) { + if (0 == (i -= 1)) + return { + row: c.getCurrentTokenRow(), + column: g + c.getCurrentTokenColumn(), + }; + } else y == u && (i += 1); + g -= 1; + } + do { + l = c.stepBackward(); + } while (l && !r.test(l.type)); + if (null == l) break; + g = (b = l.value).length - 1; + } + return null; + } + }), + (this.$findClosingBracket = function (u, h, r) { + var o = this.$brackets[u], + i = 1, + c = new m(this, h.row, h.column), + l = c.getCurrentToken(); + if ((l || (l = c.stepForward()), l)) { + r || + (r = new RegExp( + "(\\.?" + + l.type + .replace(".", "\\.") + .replace("lparen", ".paren") + .replace( + /\b(?:start|begin)\b/, + "(?:start|begin|end)" + ) + + ")+" + )); + for (var g = h.column - c.getCurrentTokenColumn(); ; ) { + for (var b = l.value, y = b.length; g < y; ) { + var x = b.charAt(g); + if (x == o) { + if (0 == (i -= 1)) + return { + row: c.getCurrentTokenRow(), + column: g + c.getCurrentTokenColumn(), + }; + } else x == u && (i += 1); + g += 1; + } + do { + l = c.stepForward(); + } while (l && !r.test(l.type)); + if (null == l) break; + g = 0; + } + return null; + } + }); + }; + } + ), + ace.define( + "ace/edit_session", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/lang", + "ace/bidihandler", + "ace/config", + "ace/lib/event_emitter", + "ace/selection", + "ace/mode/text", + "ace/range", + "ace/document", + "ace/background_tokenizer", + "ace/search_highlight", + "ace/edit_session/folding", + "ace/edit_session/bracket_match", + ], + function (n, f, _) { + "use strict"; + var m = n("./lib/oop"), + s = n("./lib/lang"), + d = n("./bidihandler").BidiHandler, + u = n("./config"), + h = n("./lib/event_emitter").EventEmitter, + r = n("./selection").Selection, + o = n("./mode/text").Mode, + i = n("./range").Range, + c = n("./document").Document, + l = n("./background_tokenizer").BackgroundTokenizer, + g = n("./search_highlight").SearchHighlight, + b = function (y, x) { + (this.$breakpoints = []), + (this.$decorations = []), + (this.$frontMarkers = {}), + (this.$backMarkers = {}), + (this.$markerId = 1), + (this.$undoSelect = !0), + (this.$foldData = []), + (this.id = "session" + ++b.$uid), + (this.$foldData.toString = function () { + return this.join("\n"); + }), + this.on("changeFold", this.onChangeFold.bind(this)), + (this.$onChange = this.onChange.bind(this)), + ("object" != typeof y || !y.getLine) && (y = new c(y)), + this.setDocument(y), + (this.selection = new r(this)), + (this.$bidiHandler = new d(this)), + u.resetOptions(this), + this.setMode(x), + u._signal("session", this); + }; + (b.$uid = 0), + function () { + m.implement(this, h), + (this.setDocument = function (C) { + this.doc && this.doc.off("change", this.$onChange), + (this.doc = C), + C.on("change", this.$onChange), + this.bgTokenizer && + this.bgTokenizer.setDocument(this.getDocument()), + this.resetCaches(); + }), + (this.getDocument = function () { + return this.doc; + }), + (this.$resetRowCache = function (C) { + if (!C) + return ( + (this.$docRowCache = []), + void (this.$screenRowCache = []) + ); + var L = this.$docRowCache.length, + F = this.$getRowCacheIndex(this.$docRowCache, C) + 1; + L > F && + (this.$docRowCache.splice(F, L), + this.$screenRowCache.splice(F, L)); + }), + (this.$getRowCacheIndex = function (C, L) { + for (var F = 0, ie = C.length - 1; F <= ie; ) { + var Y = (F + ie) >> 1, + Z = C[Y]; + if (L > Z) F = Y + 1; + else { + if (!(L < Z)) return Y; + ie = Y - 1; + } + } + return F - 1; + }), + (this.resetCaches = function () { + (this.$modified = !0), + (this.$wrapData = []), + (this.$rowLengthCache = []), + this.$resetRowCache(0), + this.bgTokenizer && this.bgTokenizer.start(0); + }), + (this.onChangeFold = function (C) { + this.$resetRowCache(C.data.start.row); + }), + (this.onChange = function (C) { + (this.$modified = !0), + this.$bidiHandler.onChange(C), + this.$resetRowCache(C.start.row); + var L = this.$updateInternalDataOnChange(C); + !this.$fromUndo && + this.$undoManager && + (L && + L.length && + (this.$undoManager.add( + { action: "removeFolds", folds: L }, + this.mergeUndoDeltas + ), + (this.mergeUndoDeltas = !0)), + this.$undoManager.add(C, this.mergeUndoDeltas), + (this.mergeUndoDeltas = !0), + this.$informUndoManager.schedule()), + this.bgTokenizer && this.bgTokenizer.$updateOnChange(C), + this._signal("change", C); + }), + (this.setValue = function (C) { + this.doc.setValue(C), + this.selection.moveTo(0, 0), + this.$resetRowCache(0), + this.setUndoManager(this.$undoManager), + this.getUndoManager().reset(); + }), + (this.getValue = this.toString = function () { + return this.doc.getValue(); + }), + (this.getSelection = function () { + return this.selection; + }), + (this.getState = function (C) { + return this.bgTokenizer.getState(C); + }), + (this.getTokens = function (C) { + return this.bgTokenizer.getTokens(C); + }), + (this.getTokenAt = function (C, L) { + var ie, + F = this.bgTokenizer.getTokens(C), + Y = 0; + if (null == L) { + var Z = F.length - 1; + Y = this.getLine(C).length; + } else + for ( + Z = 0; + Z < F.length && !((Y += F[Z].value.length) >= L); + Z++ + ); + return (ie = F[Z]) + ? ((ie.index = Z), (ie.start = Y - ie.value.length), ie) + : null; + }), + (this.setUndoManager = function (C) { + if ( + ((this.$undoManager = C), + this.$informUndoManager && + this.$informUndoManager.cancel(), + C) + ) { + var L = this; + C.addSession(this), + (this.$syncInformUndoManager = function () { + L.$informUndoManager.cancel(), + (L.mergeUndoDeltas = !1); + }), + (this.$informUndoManager = s.delayedCall( + this.$syncInformUndoManager + )); + } else this.$syncInformUndoManager = function () {}; + }), + (this.markUndoGroup = function () { + this.$syncInformUndoManager && + this.$syncInformUndoManager(); + }), + (this.$defaultUndoManager = { + undo: function () {}, + redo: function () {}, + hasUndo: function () {}, + hasRedo: function () {}, + reset: function () {}, + add: function () {}, + addSelection: function () {}, + startNewGroup: function () {}, + addSession: function () {}, + }), + (this.getUndoManager = function () { + return this.$undoManager || this.$defaultUndoManager; + }), + (this.getTabString = function () { + return this.getUseSoftTabs() + ? s.stringRepeat(" ", this.getTabSize()) + : "\t"; + }), + (this.setUseSoftTabs = function (C) { + this.setOption("useSoftTabs", C); + }), + (this.getUseSoftTabs = function () { + return this.$useSoftTabs && !this.$mode.$indentWithTabs; + }), + (this.setTabSize = function (C) { + this.setOption("tabSize", C); + }), + (this.getTabSize = function () { + return this.$tabSize; + }), + (this.isTabStop = function (C) { + return this.$useSoftTabs && C.column % this.$tabSize == 0; + }), + (this.setNavigateWithinSoftTabs = function (C) { + this.setOption("navigateWithinSoftTabs", C); + }), + (this.getNavigateWithinSoftTabs = function () { + return this.$navigateWithinSoftTabs; + }), + (this.$overwrite = !1), + (this.setOverwrite = function (C) { + this.setOption("overwrite", C); + }), + (this.getOverwrite = function () { + return this.$overwrite; + }), + (this.toggleOverwrite = function () { + this.setOverwrite(!this.$overwrite); + }), + (this.addGutterDecoration = function (C, L) { + this.$decorations[C] || (this.$decorations[C] = ""), + (this.$decorations[C] += " " + L), + this._signal("changeBreakpoint", {}); + }), + (this.removeGutterDecoration = function (C, L) { + (this.$decorations[C] = ( + this.$decorations[C] || "" + ).replace(" " + L, "")), + this._signal("changeBreakpoint", {}); + }), + (this.getBreakpoints = function () { + return this.$breakpoints; + }), + (this.setBreakpoints = function (C) { + this.$breakpoints = []; + for (var L = 0; L < C.length; L++) + this.$breakpoints[C[L]] = "ace_breakpoint"; + this._signal("changeBreakpoint", {}); + }), + (this.clearBreakpoints = function () { + (this.$breakpoints = []), + this._signal("changeBreakpoint", {}); + }), + (this.setBreakpoint = function (C, L) { + void 0 === L && (L = "ace_breakpoint"), + L + ? (this.$breakpoints[C] = L) + : delete this.$breakpoints[C], + this._signal("changeBreakpoint", {}); + }), + (this.clearBreakpoint = function (C) { + delete this.$breakpoints[C], + this._signal("changeBreakpoint", {}); + }), + (this.addMarker = function (C, L, F, ie) { + var Y = this.$markerId++, + Z = { + range: C, + type: F || "line", + renderer: "function" == typeof F ? F : null, + clazz: L, + inFront: !!ie, + id: Y, + }; + return ( + ie + ? ((this.$frontMarkers[Y] = Z), + this._signal("changeFrontMarker")) + : ((this.$backMarkers[Y] = Z), + this._signal("changeBackMarker")), + Y + ); + }), + (this.addDynamicMarker = function (C, L) { + if (C.update) { + var F = this.$markerId++; + return ( + (C.id = F), + (C.inFront = !!L), + L + ? ((this.$frontMarkers[F] = C), + this._signal("changeFrontMarker")) + : ((this.$backMarkers[F] = C), + this._signal("changeBackMarker")), + C + ); + } + }), + (this.removeMarker = function (C) { + var L = this.$frontMarkers[C] || this.$backMarkers[C]; + L && + (delete (L.inFront + ? this.$frontMarkers + : this.$backMarkers)[C], + this._signal( + L.inFront ? "changeFrontMarker" : "changeBackMarker" + )); + }), + (this.getMarkers = function (C) { + return C ? this.$frontMarkers : this.$backMarkers; + }), + (this.highlight = function (C) { + if (!this.$searchHighlight) { + var L = new g(null, "ace_selected-word", "text"); + this.$searchHighlight = this.addDynamicMarker(L); + } + this.$searchHighlight.setRegexp(C); + }), + (this.highlightLines = function (C, L, F, ie) { + "number" != typeof L && ((F = L), (L = C)), + F || (F = "ace_step"); + var Y = new i(C, 0, L, 1 / 0); + return (Y.id = this.addMarker(Y, F, "fullLine", ie)), Y; + }), + (this.setAnnotations = function (C) { + (this.$annotations = C), + this._signal("changeAnnotation", {}); + }), + (this.getAnnotations = function () { + return this.$annotations || []; + }), + (this.clearAnnotations = function () { + this.setAnnotations([]); + }), + (this.$detectNewLine = function (C) { + var L = C.match(/^.*?(\r?\n)/m); + this.$autoNewLine = L ? L[1] : "\n"; + }), + (this.getWordRange = function (C, L) { + var F = this.getLine(C), + ie = !1; + if ( + (L > 0 && (ie = !!F.charAt(L - 1).match(this.tokenRe)), + ie || (ie = !!F.charAt(L).match(this.tokenRe)), + ie) + ) + var Y = this.tokenRe; + else + Y = /^\s+$/.test(F.slice(L - 1, L + 1)) + ? /\s/ + : this.nonTokenRe; + var Z = L; + if (Z > 0) { + do { + Z--; + } while (Z >= 0 && F.charAt(Z).match(Y)); + Z++; + } + for (var ee = L; ee < F.length && F.charAt(ee).match(Y); ) + ee++; + return new i(C, Z, C, ee); + }), + (this.getAWordRange = function (C, L) { + for ( + var F = this.getWordRange(C, L), + ie = this.getLine(F.end.row); + ie.charAt(F.end.column).match(/[ \t]/); + + ) + F.end.column += 1; + return F; + }), + (this.setNewLineMode = function (C) { + this.doc.setNewLineMode(C); + }), + (this.getNewLineMode = function () { + return this.doc.getNewLineMode(); + }), + (this.setUseWorker = function (C) { + this.setOption("useWorker", C); + }), + (this.getUseWorker = function () { + return this.$useWorker; + }), + (this.onReloadTokenizer = function (C) { + this.bgTokenizer.start(C.data.first), + this._signal("tokenizerUpdate", C); + }), + (this.$modes = u.$modes), + (this.$mode = null), + (this.$modeId = null), + (this.setMode = function (C, L) { + if (C && "object" == typeof C) { + if (C.getTokenizer) return this.$onChangeMode(C); + var F = C, + ie = C.path; + } else ie = C || "ace/mode/text"; + if ( + (this.$modes["ace/mode/text"] || + (this.$modes["ace/mode/text"] = new o()), + this.$modes[ie] && !F) + ) + return ( + this.$onChangeMode(this.$modes[ie]), void (L && L()) + ); + (this.$modeId = ie), + u.loadModule( + ["mode", ie], + function (Y) { + if (this.$modeId !== ie) return L && L(); + this.$modes[ie] && !F + ? this.$onChangeMode(this.$modes[ie]) + : Y && + Y.Mode && + ((Y = new Y.Mode(F)), + F || ((this.$modes[ie] = Y), (Y.$id = ie)), + this.$onChangeMode(Y)), + L && L(); + }.bind(this) + ), + this.$mode || + this.$onChangeMode(this.$modes["ace/mode/text"], !0); + }), + (this.$onChangeMode = function (C, L) { + if ((L || (this.$modeId = C.$id), this.$mode !== C)) { + var F = this.$mode; + (this.$mode = C), + this.$stopWorker(), + this.$useWorker && this.$startWorker(); + var ie = C.getTokenizer(); + if (void 0 !== ie.on) { + var Y = this.onReloadTokenizer.bind(this); + ie.on("update", Y); + } + if (this.bgTokenizer) this.bgTokenizer.setTokenizer(ie); + else { + this.bgTokenizer = new l(ie); + var Z = this; + this.bgTokenizer.on("update", function (ee) { + Z._signal("tokenizerUpdate", ee); + }); + } + this.bgTokenizer.setDocument(this.getDocument()), + (this.tokenRe = C.tokenRe), + (this.nonTokenRe = C.nonTokenRe), + L || + (C.attachToSession && C.attachToSession(this), + this.$options.wrapMethod.set.call( + this, + this.$wrapMethod + ), + this.$setFolding(C.foldingRules), + this.bgTokenizer.start(0), + this._emit("changeMode", { oldMode: F, mode: C })); + } + }), + (this.$stopWorker = function () { + this.$worker && + (this.$worker.terminate(), (this.$worker = null)); + }), + (this.$startWorker = function () { + try { + this.$worker = this.$mode.createWorker(this); + } catch (C) { + u.warn("Could not load worker", C), (this.$worker = null); + } + }), + (this.getMode = function () { + return this.$mode; + }), + (this.$scrollTop = 0), + (this.setScrollTop = function (C) { + this.$scrollTop === C || + isNaN(C) || + ((this.$scrollTop = C), + this._signal("changeScrollTop", C)); + }), + (this.getScrollTop = function () { + return this.$scrollTop; + }), + (this.$scrollLeft = 0), + (this.setScrollLeft = function (C) { + this.$scrollLeft === C || + isNaN(C) || + ((this.$scrollLeft = C), + this._signal("changeScrollLeft", C)); + }), + (this.getScrollLeft = function () { + return this.$scrollLeft; + }), + (this.getScreenWidth = function () { + return ( + this.$computeWidth(), + this.lineWidgets + ? Math.max( + this.getLineWidgetMaxWidth(), + this.screenWidth + ) + : this.screenWidth + ); + }), + (this.getLineWidgetMaxWidth = function () { + if (null != this.lineWidgetsWidth) + return this.lineWidgetsWidth; + var C = 0; + return ( + this.lineWidgets.forEach(function (L) { + L && L.screenWidth > C && (C = L.screenWidth); + }), + (this.lineWidgetWidth = C) + ); + }), + (this.$computeWidth = function (C) { + if (this.$modified || C) { + if (((this.$modified = !1), this.$useWrapMode)) + return (this.screenWidth = this.$wrapLimit); + for ( + var L = this.doc.getAllLines(), + F = this.$rowLengthCache, + ie = 0, + Y = 0, + Z = this.$foldData[Y], + ee = Z ? Z.start.row : 1 / 0, + $ = L.length, + J = 0; + J < $; + J++ + ) { + if (J > ee) { + if ((J = Z.end.row + 1) >= $) break; + ee = (Z = this.$foldData[Y++]) ? Z.start.row : 1 / 0; + } + null == F[J] && + (F[J] = this.$getStringScreenWidth(L[J])[0]), + F[J] > ie && (ie = F[J]); + } + this.screenWidth = ie; + } + }), + (this.getLine = function (C) { + return this.doc.getLine(C); + }), + (this.getLines = function (C, L) { + return this.doc.getLines(C, L); + }), + (this.getLength = function () { + return this.doc.getLength(); + }), + (this.getTextRange = function (C) { + return this.doc.getTextRange( + C || this.selection.getRange() + ); + }), + (this.insert = function (C, L) { + return this.doc.insert(C, L); + }), + (this.remove = function (C) { + return this.doc.remove(C); + }), + (this.removeFullLines = function (C, L) { + return this.doc.removeFullLines(C, L); + }), + (this.undoChanges = function (C, L) { + if (C.length) { + this.$fromUndo = !0; + for (var F = C.length - 1; -1 != F; F--) { + var ie = C[F]; + "insert" == ie.action || "remove" == ie.action + ? this.doc.revertDelta(ie) + : ie.folds && this.addFolds(ie.folds); + } + !L && + this.$undoSelect && + (C.selectionBefore + ? this.selection.fromJSON(C.selectionBefore) + : this.selection.setRange( + this.$getUndoSelection(C, !0) + )), + (this.$fromUndo = !1); + } + }), + (this.redoChanges = function (C, L) { + if (C.length) { + this.$fromUndo = !0; + for (var F = 0; F < C.length; F++) { + var ie = C[F]; + ("insert" == ie.action || "remove" == ie.action) && + this.doc.$safeApplyDelta(ie); + } + !L && + this.$undoSelect && + (C.selectionAfter + ? this.selection.fromJSON(C.selectionAfter) + : this.selection.setRange( + this.$getUndoSelection(C, !1) + )), + (this.$fromUndo = !1); + } + }), + (this.setUndoSelect = function (C) { + this.$undoSelect = C; + }), + (this.$getUndoSelection = function (C, L) { + function F($) { + return L ? "insert" !== $.action : "insert" === $.action; + } + for (var ie, Y, Z = 0; Z < C.length; Z++) { + var ee = C[Z]; + if (ee.start) { + if (!ie) { + ie = F(ee) + ? i.fromPoints(ee.start, ee.end) + : i.fromPoints(ee.start, ee.start); + continue; + } + F(ee) + ? (-1 == ie.compare((Y = ee.start).row, Y.column) && + ie.setStart(Y), + 1 == ie.compare((Y = ee.end).row, Y.column) && + ie.setEnd(Y)) + : -1 == ie.compare((Y = ee.start).row, Y.column) && + (ie = i.fromPoints(ee.start, ee.start)); + } + } + return ie; + }), + (this.replace = function (C, L) { + return this.doc.replace(C, L); + }), + (this.moveText = function (C, L, F) { + var ie = this.getTextRange(C), + Y = this.getFoldsInRange(C), + Z = i.fromPoints(L, L); + if ( + (F || + (this.remove(C), + ($ = (ee = C.start.row - C.end.row) + ? -C.end.column + : C.start.column - C.end.column) && + (Z.start.row == C.end.row && + Z.start.column > C.end.column && + (Z.start.column += $), + Z.end.row == C.end.row && + Z.end.column > C.end.column && + (Z.end.column += $)), + ee && + Z.start.row >= C.end.row && + ((Z.start.row += ee), (Z.end.row += ee))), + (Z.end = this.insert(Z.start, ie)), + Y.length) + ) { + var J = C.start, + ne = Z.start, + ee = ne.row - J.row, + $ = ne.column - J.column; + this.addFolds( + Y.map(function (Oe) { + return ( + (Oe = Oe.clone()).start.row == J.row && + (Oe.start.column += $), + Oe.end.row == J.row && (Oe.end.column += $), + (Oe.start.row += ee), + (Oe.end.row += ee), + Oe + ); + }) + ); + } + return Z; + }), + (this.indentRows = function (C, L, F) { + F = F.replace(/\t/g, this.getTabString()); + for (var ie = C; ie <= L; ie++) + this.doc.insertInLine({ row: ie, column: 0 }, F); + }), + (this.outdentRows = function (C) { + for ( + var L = C.collapseRows(), + F = new i(0, 0, 0, 0), + ie = this.getTabSize(), + Y = L.start.row; + Y <= L.end.row; + ++Y + ) { + var Z = this.getLine(Y); + (F.start.row = Y), (F.end.row = Y); + for (var ee = 0; ee < ie && " " == Z.charAt(ee); ++ee); + ee < ie && "\t" == Z.charAt(ee) + ? ((F.start.column = ee), (F.end.column = ee + 1)) + : ((F.start.column = 0), (F.end.column = ee)), + this.remove(F); + } + }), + (this.$moveLines = function (C, L, F) { + if ( + ((C = this.getRowFoldStart(C)), + (L = this.getRowFoldEnd(L)), + F < 0) + ) { + if ((ie = this.getRowFoldStart(C + F)) < 0) return 0; + var Y = ie - C; + } else if (F > 0) { + var ie; + if ( + (ie = this.getRowFoldEnd(L + F)) > + this.doc.getLength() - 1 + ) + return 0; + Y = ie - L; + } else + (C = this.$clipRowToDocument(C)), + (Y = (L = this.$clipRowToDocument(L)) - C + 1); + var Z = new i(C, 0, L, Number.MAX_VALUE), + ee = this.getFoldsInRange(Z).map(function (J) { + return ( + ((J = J.clone()).start.row += Y), (J.end.row += Y), J + ); + }), + $ = + 0 == F + ? this.doc.getLines(C, L) + : this.doc.removeFullLines(C, L); + return ( + this.doc.insertFullLines(C + Y, $), + ee.length && this.addFolds(ee), + Y + ); + }), + (this.moveLinesUp = function (C, L) { + return this.$moveLines(C, L, -1); + }), + (this.moveLinesDown = function (C, L) { + return this.$moveLines(C, L, 1); + }), + (this.duplicateLines = function (C, L) { + return this.$moveLines(C, L, 0); + }), + (this.$clipRowToDocument = function (C) { + return Math.max(0, Math.min(C, this.doc.getLength() - 1)); + }), + (this.$clipColumnToRow = function (C, L) { + return L < 0 ? 0 : Math.min(this.doc.getLine(C).length, L); + }), + (this.$clipPositionToDocument = function (C, L) { + if (((L = Math.max(0, L)), C < 0)) (C = 0), (L = 0); + else { + var F = this.doc.getLength(); + C >= F + ? ((C = F - 1), (L = this.doc.getLine(F - 1).length)) + : (L = Math.min(this.doc.getLine(C).length, L)); + } + return { row: C, column: L }; + }), + (this.$clipRangeToDocument = function (C) { + C.start.row < 0 + ? ((C.start.row = 0), (C.start.column = 0)) + : (C.start.column = this.$clipColumnToRow( + C.start.row, + C.start.column + )); + var L = this.doc.getLength() - 1; + return ( + C.end.row > L + ? ((C.end.row = L), + (C.end.column = this.doc.getLine(L).length)) + : (C.end.column = this.$clipColumnToRow( + C.end.row, + C.end.column + )), + C + ); + }), + (this.$wrapLimit = 80), + (this.$useWrapMode = !1), + (this.$wrapLimitRange = { min: null, max: null }), + (this.setUseWrapMode = function (C) { + if (C != this.$useWrapMode) { + if ( + ((this.$useWrapMode = C), + (this.$modified = !0), + this.$resetRowCache(0), + C) + ) { + var L = this.getLength(); + (this.$wrapData = Array(L)), + this.$updateWrapData(0, L - 1); + } + this._signal("changeWrapMode"); + } + }), + (this.getUseWrapMode = function () { + return this.$useWrapMode; + }), + (this.setWrapLimitRange = function (C, L) { + (this.$wrapLimitRange.min !== C || + this.$wrapLimitRange.max !== L) && + ((this.$wrapLimitRange = { min: C, max: L }), + (this.$modified = !0), + this.$bidiHandler.markAsDirty(), + this.$useWrapMode && this._signal("changeWrapMode")); + }), + (this.adjustWrapLimit = function (C, L) { + var F = this.$wrapLimitRange; + F.max < 0 && (F = { min: L, max: L }); + var ie = this.$constrainWrapLimit(C, F.min, F.max); + return ( + ie != this.$wrapLimit && + ie > 1 && + ((this.$wrapLimit = ie), + (this.$modified = !0), + this.$useWrapMode && + (this.$updateWrapData(0, this.getLength() - 1), + this.$resetRowCache(0), + this._signal("changeWrapLimit")), + !0) + ); + }), + (this.$constrainWrapLimit = function (C, L, F) { + return ( + L && (C = Math.max(L, C)), F && (C = Math.min(F, C)), C + ); + }), + (this.getWrapLimit = function () { + return this.$wrapLimit; + }), + (this.setWrapLimit = function (C) { + this.setWrapLimitRange(C, C); + }), + (this.getWrapLimitRange = function () { + return { + min: this.$wrapLimitRange.min, + max: this.$wrapLimitRange.max, + }; + }), + (this.$updateInternalDataOnChange = function (C) { + var L = this.$useWrapMode, + F = C.action, + ie = C.start, + Y = C.end, + Z = ie.row, + ee = Y.row, + $ = ee - Z, + J = null; + if (((this.$updating = !0), 0 != $)) + if ("remove" === F) { + this[L ? "$wrapData" : "$rowLengthCache"].splice(Z, $); + var ne = this.$foldData; + (J = this.getFoldsInRange(C)), this.removeFolds(J); + var le = 0; + if ((ae = this.getFoldLine(Y.row))) { + ae.addRemoveChars( + Y.row, + Y.column, + ie.column - Y.column + ), + ae.shiftRow(-$); + var Oe = this.getFoldLine(Z); + Oe && Oe !== ae && (Oe.merge(ae), (ae = Oe)), + (le = ne.indexOf(ae) + 1); + } + for (; le < ne.length; le++) + (ae = ne[le]).start.row >= Y.row && ae.shiftRow(-$); + ee = Z; + } else { + var Le = Array($); + Le.unshift(Z, 0); + var Ye = L ? this.$wrapData : this.$rowLengthCache; + if ( + (Ye.splice.apply(Ye, Le), + (ne = this.$foldData), + (le = 0), + (ae = this.getFoldLine(Z))) + ) { + var Je = ae.range.compareInside(ie.row, ie.column); + 0 == Je + ? (ae = ae.split(ie.row, ie.column)) && + (ae.shiftRow($), + ae.addRemoveChars(ee, 0, Y.column - ie.column)) + : -1 == Je && + (ae.addRemoveChars(Z, 0, Y.column - ie.column), + ae.shiftRow($)), + (le = ne.indexOf(ae) + 1); + } + for (; le < ne.length; le++) { + var ae; + (ae = ne[le]).start.row >= Z && ae.shiftRow($); + } + } + else + ($ = Math.abs(C.start.column - C.end.column)), + "remove" === F && + ((J = this.getFoldsInRange(C)), + this.removeFolds(J), + ($ = -$)), + (ae = this.getFoldLine(Z)) && + ae.addRemoveChars(Z, ie.column, $); + return ( + L && + this.$wrapData.length != this.doc.getLength() && + console.error( + "doc.getLength() and $wrapData.length have to be the same!" + ), + (this.$updating = !1), + L + ? this.$updateWrapData(Z, ee) + : this.$updateRowLengthCache(Z, ee), + J + ); + }), + (this.$updateRowLengthCache = function (C, L, F) { + (this.$rowLengthCache[C] = null), + (this.$rowLengthCache[L] = null); + }), + (this.$updateWrapData = function (C, L) { + var ee, + $, + F = this.doc.getAllLines(), + ie = this.getTabSize(), + Y = this.$wrapData, + Z = this.$wrapLimit, + J = C; + for (L = Math.min(L, F.length - 1); J <= L; ) + ($ = this.getFoldLine(J, $)) + ? ((ee = []), + $.walk( + function (ne, ae, le, Oe) { + var Le; + if (null != ne) { + (Le = this.$getDisplayTokens( + ne, + ee.length + ))[0] = T; + for (var Ye = 1; Ye < Le.length; Ye++) + Le[Ye] = O; + } else + Le = this.$getDisplayTokens( + F[ae].substring(Oe, le), + ee.length + ); + ee = ee.concat(Le); + }.bind(this), + $.end.row, + F[$.end.row].length + 1 + ), + (Y[$.start.row] = this.$computeWrapSplits(ee, Z, ie)), + (J = $.end.row + 1)) + : ((ee = this.$getDisplayTokens(F[J])), + (Y[J] = this.$computeWrapSplits(ee, Z, ie)), + J++); + }); + var T = 3, + O = 4; + function I(C) { + return ( + !(C < 4352) && + ((C >= 4352 && C <= 4447) || + (C >= 4515 && C <= 4519) || + (C >= 4602 && C <= 4607) || + (C >= 9001 && C <= 9002) || + (C >= 11904 && C <= 11929) || + (C >= 11931 && C <= 12019) || + (C >= 12032 && C <= 12245) || + (C >= 12272 && C <= 12283) || + (C >= 12288 && C <= 12350) || + (C >= 12353 && C <= 12438) || + (C >= 12441 && C <= 12543) || + (C >= 12549 && C <= 12589) || + (C >= 12593 && C <= 12686) || + (C >= 12688 && C <= 12730) || + (C >= 12736 && C <= 12771) || + (C >= 12784 && C <= 12830) || + (C >= 12832 && C <= 12871) || + (C >= 12880 && C <= 13054) || + (C >= 13056 && C <= 19903) || + (C >= 19968 && C <= 42124) || + (C >= 42128 && C <= 42182) || + (C >= 43360 && C <= 43388) || + (C >= 44032 && C <= 55203) || + (C >= 55216 && C <= 55238) || + (C >= 55243 && C <= 55291) || + (C >= 63744 && C <= 64255) || + (C >= 65040 && C <= 65049) || + (C >= 65072 && C <= 65106) || + (C >= 65108 && C <= 65126) || + (C >= 65128 && C <= 65131) || + (C >= 65281 && C <= 65376) || + (C >= 65504 && C <= 65510)) + ); + } + (this.$computeWrapSplits = function (C, L, F) { + if (0 == C.length) return []; + var ie = [], + Y = C.length, + Z = 0, + ee = 0, + $ = this.$wrapAsCode, + J = this.$indentedSoftWrap, + ne = + L <= Math.max(2 * F, 8) || !1 === J + ? 0 + : Math.floor(L / 2); + function le(Je) { + for (var gt = Je - Z, Ue = Z; Ue < Je; Ue++) { + var tt = C[Ue]; + (12 === tt || 2 === tt) && (gt -= 1); + } + ie.length || + ((Oe = (function () { + var Je = 0; + if (0 === ne) return Je; + if (J) + for (var gt = 0; gt < C.length; gt++) { + var Ue = C[gt]; + if (10 == Ue) Je += 1; + else { + if (11 != Ue) { + if (12 == Ue) continue; + break; + } + Je += F; + } + } + return $ && !1 !== J && (Je += F), Math.min(Je, ne); + })()), + (ie.indent = Oe)), + ie.push((ee += gt)), + (Z = Je); + } + for (var Oe = 0; Y - Z > L - Oe; ) { + var Le = Z + L - Oe; + if (C[Le - 1] >= 10 && C[Le] >= 10) le(Le); + else if (C[Le] != T && C[Le] != O) { + for ( + var Ye = Math.max(Le - (L - (L >> 2)), Z - 1); + Le > Ye && C[Le] < T; + + ) + Le--; + if ($) { + for (; Le > Ye && C[Le] < T; ) Le--; + for (; Le > Ye && 9 == C[Le]; ) Le--; + } else for (; Le > Ye && C[Le] < 10; ) Le--; + Le > Ye + ? le(++Le) + : (2 == C[(Le = Z + L)] && Le--, le(Le - Oe)); + } else { + for (; Le != Z - 1 && C[Le] != T; Le--); + if (Le > Z) { + le(Le); + continue; + } + for (Le = Z + L; Le < C.length && C[Le] == O; Le++); + if (Le == C.length) break; + le(Le); + } + } + return ie; + }), + (this.$getDisplayTokens = function (C, L) { + var ie, + F = []; + L = L || 0; + for (var Y = 0; Y < C.length; Y++) { + var Z = C.charCodeAt(Y); + if (9 == Z) { + (ie = this.getScreenTabSize(F.length + L)), F.push(11); + for (var ee = 1; ee < ie; ee++) F.push(12); + } else + 32 == Z + ? F.push(10) + : (Z > 39 && Z < 48) || (Z > 57 && Z < 64) + ? F.push(9) + : Z >= 4352 && I(Z) + ? F.push(1, 2) + : F.push(1); + } + return F; + }), + (this.$getStringScreenWidth = function (C, L, F) { + if (0 == L) return [0, 0]; + var ie, Y; + for ( + null == L && (L = 1 / 0), F = F || 0, Y = 0; + Y < C.length && + (9 == (ie = C.charCodeAt(Y)) + ? (F += this.getScreenTabSize(F)) + : ie >= 4352 && I(ie) + ? (F += 2) + : (F += 1), + !(F > L)); + Y++ + ); + return [F, Y]; + }), + (this.lineWidgets = null), + (this.getRowLength = function (C) { + var L = 1; + return ( + this.lineWidgets && + (L += + (this.lineWidgets[C] && + this.lineWidgets[C].rowCount) || + 0), + this.$useWrapMode && this.$wrapData[C] + ? this.$wrapData[C].length + L + : L + ); + }), + (this.getRowLineCount = function (C) { + return this.$useWrapMode && this.$wrapData[C] + ? this.$wrapData[C].length + 1 + : 1; + }), + (this.getRowWrapIndent = function (C) { + if (this.$useWrapMode) { + var L = this.screenToDocumentPosition( + C, + Number.MAX_VALUE + ), + F = this.$wrapData[L.row]; + return F.length && F[0] < L.column ? F.indent : 0; + } + return 0; + }), + (this.getScreenLastRowColumn = function (C) { + var L = this.screenToDocumentPosition(C, Number.MAX_VALUE); + return this.documentToScreenColumn(L.row, L.column); + }), + (this.getDocumentLastRowColumn = function (C, L) { + var F = this.documentToScreenRow(C, L); + return this.getScreenLastRowColumn(F); + }), + (this.getDocumentLastRowColumnPosition = function (C, L) { + var F = this.documentToScreenRow(C, L); + return this.screenToDocumentPosition( + F, + Number.MAX_VALUE / 10 + ); + }), + (this.getRowSplitData = function (C) { + if (this.$useWrapMode) return this.$wrapData[C]; + }), + (this.getScreenTabSize = function (C) { + return this.$tabSize - (C % this.$tabSize | 0); + }), + (this.screenToDocumentRow = function (C, L) { + return this.screenToDocumentPosition(C, L).row; + }), + (this.screenToDocumentColumn = function (C, L) { + return this.screenToDocumentPosition(C, L).column; + }), + (this.screenToDocumentPosition = function (C, L, F) { + if (C < 0) return { row: 0, column: 0 }; + var ie, + ee, + Y = 0, + Z = 0, + $ = 0, + J = 0, + ne = this.$screenRowCache, + ae = this.$getRowCacheIndex(ne, C), + le = ne.length; + if (le && ae >= 0) { + ($ = ne[ae]), (Y = this.$docRowCache[ae]); + var Oe = C > ne[le - 1]; + } else Oe = !le; + for ( + var Le = this.getLength() - 1, + Ye = this.getNextFoldLine(Y), + Je = Ye ? Ye.start.row : 1 / 0; + $ <= C && + !($ + (J = this.getRowLength(Y)) > C || Y >= Le); + + ) + ($ += J), + ++Y > Je && + (Je = (Ye = this.getNextFoldLine( + (Y = Ye.end.row + 1), + Ye + )) + ? Ye.start.row + : 1 / 0), + Oe && + (this.$docRowCache.push(Y), + this.$screenRowCache.push($)); + if (Ye && Ye.start.row <= Y) + (ie = this.getFoldDisplayLine(Ye)), (Y = Ye.start.row); + else { + if ($ + J <= C || Y > Le) + return { row: Le, column: this.getLine(Le).length }; + (ie = this.getLine(Y)), (Ye = null); + } + var gt = 0, + Ue = Math.floor(C - $); + if (this.$useWrapMode) { + var tt = this.$wrapData[Y]; + tt && + ((ee = tt[Ue]), + Ue > 0 && + tt.length && + ((gt = tt.indent), + (ie = ie.substring( + (Z = tt[Ue - 1] || tt[tt.length - 1]) + )))); + } + return ( + void 0 !== F && + this.$bidiHandler.isBidiRow($ + Ue, Y, Ue) && + (L = this.$bidiHandler.offsetToCol(F)), + (Z += this.$getStringScreenWidth(ie, L - gt)[1]), + this.$useWrapMode && Z >= ee && (Z = ee - 1), + Ye ? Ye.idxToPosition(Z) : { row: Y, column: Z } + ); + }), + (this.documentToScreenPosition = function (C, L) { + if (void 0 === L) + var F = this.$clipPositionToDocument(C.row, C.column); + else F = this.$clipPositionToDocument(C, L); + var Z, + ie = 0, + Y = null; + (Z = this.getFoldAt((C = F.row), (L = F.column), 1)) && + ((C = Z.start.row), (L = Z.start.column)); + var ee, + $ = 0, + J = this.$docRowCache, + ne = this.$getRowCacheIndex(J, C), + ae = J.length; + if (ae && ne >= 0) { + ($ = J[ne]), (ie = this.$screenRowCache[ne]); + var le = C > J[ae - 1]; + } else le = !ae; + for ( + var Oe = this.getNextFoldLine($), + Le = Oe ? Oe.start.row : 1 / 0; + $ < C; + + ) { + if ($ >= Le) { + if ((ee = Oe.end.row + 1) > C) break; + Le = (Oe = this.getNextFoldLine(ee, Oe)) + ? Oe.start.row + : 1 / 0; + } else ee = $ + 1; + (ie += this.getRowLength($)), + ($ = ee), + le && + (this.$docRowCache.push($), + this.$screenRowCache.push(ie)); + } + var Ye = ""; + Oe && $ >= Le + ? ((Ye = this.getFoldDisplayLine(Oe, C, L)), + (Y = Oe.start.row)) + : ((Ye = this.getLine(C).substring(0, L)), (Y = C)); + var Je = 0; + if (this.$useWrapMode) { + var gt = this.$wrapData[Y]; + if (gt) { + for (var Ue = 0; Ye.length >= gt[Ue]; ) ie++, Ue++; + (Ye = Ye.substring(gt[Ue - 1] || 0, Ye.length)), + (Je = Ue > 0 ? gt.indent : 0); + } + } + return ( + this.lineWidgets && + this.lineWidgets[$] && + this.lineWidgets[$].rowsAbove && + (ie += this.lineWidgets[$].rowsAbove), + { + row: ie, + column: Je + this.$getStringScreenWidth(Ye)[0], + } + ); + }), + (this.documentToScreenColumn = function (C, L) { + return this.documentToScreenPosition(C, L).column; + }), + (this.documentToScreenRow = function (C, L) { + return this.documentToScreenPosition(C, L).row; + }), + (this.getScreenLength = function () { + var C = 0, + L = null; + if (this.$useWrapMode) + for ( + var Y = this.$wrapData.length, + Z = 0, + ie = 0, + ee = (L = this.$foldData[ie++]) ? L.start.row : 1 / 0; + Z < Y; + + ) { + var $ = this.$wrapData[Z]; + (C += $ ? $.length + 1 : 1), + ++Z > ee && + ((Z = L.end.row + 1), + (ee = (L = this.$foldData[ie++]) + ? L.start.row + : 1 / 0)); + } + else { + C = this.getLength(); + var F = this.$foldData; + for (ie = 0; ie < F.length; ie++) + C -= (L = F[ie]).end.row - L.start.row; + } + return ( + this.lineWidgets && (C += this.$getWidgetScreenLength()), + C + ); + }), + (this.$setFontMetrics = function (C) { + !this.$enableVarChar || + (this.$getStringScreenWidth = function (L, F, ie) { + if (0 === F) return [0, 0]; + var Y, Z; + for ( + F || (F = 1 / 0), ie = ie || 0, Z = 0; + Z < L.length && + !( + (ie += + "\t" === (Y = L.charAt(Z)) + ? this.getScreenTabSize(ie) + : C.getCharacterWidth(Y)) > F + ); + Z++ + ); + return [ie, Z]; + }); + }), + (this.destroy = function () { + this.bgTokenizer && + (this.bgTokenizer.setDocument(null), + (this.bgTokenizer = null)), + this.$stopWorker(), + this.removeAllListeners(), + this.doc && this.doc.off("change", this.$onChange), + this.selection.detach(); + }), + (this.isFullWidth = I); + }.call(b.prototype), + n("./edit_session/folding").Folding.call(b.prototype), + n("./edit_session/bracket_match").BracketMatch.call(b.prototype), + u.defineOptions(b.prototype, "session", { + wrap: { + set: function (y) { + if ( + (y && "off" != y + ? "free" == y + ? (y = !0) + : "printMargin" == y + ? (y = -1) + : "string" == typeof y && (y = parseInt(y, 10) || !1) + : (y = !1), + this.$wrap != y) + ) + if (((this.$wrap = y), y)) { + var x = "number" == typeof y ? y : null; + this.setWrapLimitRange(x, x), this.setUseWrapMode(!0); + } else this.setUseWrapMode(!1); + }, + get: function () { + return this.getUseWrapMode() + ? -1 == this.$wrap + ? "printMargin" + : this.getWrapLimitRange().min + ? this.$wrap + : "free" + : "off"; + }, + handlesSet: !0, + }, + wrapMethod: { + set: function (y) { + (y = + "auto" == y ? "text" != this.$mode.type : "text" != y) != + this.$wrapAsCode && + ((this.$wrapAsCode = y), + this.$useWrapMode && + ((this.$useWrapMode = !1), this.setUseWrapMode(!0))); + }, + initialValue: "auto", + }, + indentedSoftWrap: { + set: function () { + this.$useWrapMode && + ((this.$useWrapMode = !1), this.setUseWrapMode(!0)); + }, + initialValue: !0, + }, + firstLineNumber: { + set: function () { + this._signal("changeBreakpoint"); + }, + initialValue: 1, + }, + useWorker: { + set: function (y) { + (this.$useWorker = y), + this.$stopWorker(), + y && this.$startWorker(); + }, + initialValue: !0, + }, + useSoftTabs: { initialValue: !0 }, + tabSize: { + set: function (y) { + (y = parseInt(y)) > 0 && + this.$tabSize !== y && + ((this.$modified = !0), + (this.$rowLengthCache = []), + (this.$tabSize = y), + this._signal("changeTabSize")); + }, + initialValue: 4, + handlesSet: !0, + }, + navigateWithinSoftTabs: { initialValue: !1 }, + foldStyle: { + set: function (y) { + this.setFoldStyle(y); + }, + handlesSet: !0, + }, + overwrite: { + set: function (y) { + this._signal("changeOverwrite"); + }, + initialValue: !1, + }, + newLineMode: { + set: function (y) { + this.doc.setNewLineMode(y); + }, + get: function () { + return this.doc.getNewLineMode(); + }, + handlesSet: !0, + }, + mode: { + set: function (y) { + this.setMode(y); + }, + get: function () { + return this.$modeId; + }, + handlesSet: !0, + }, + }), + (f.EditSession = b); + } + ), + ace.define( + "ace/search", + [ + "require", + "exports", + "module", + "ace/lib/lang", + "ace/lib/oop", + "ace/range", + ], + function (n, f, _) { + "use strict"; + var m = n("./lib/lang"), + s = n("./lib/oop"), + d = n("./range").Range, + u = function () { + this.$options = {}; + }; + (function () { + (this.set = function (r) { + return s.mixin(this.$options, r), this; + }), + (this.getOptions = function () { + return m.copyObject(this.$options); + }), + (this.setOptions = function (r) { + this.$options = r; + }), + (this.find = function (r) { + var o = this.$options, + i = this.$matchIterator(r, o); + if (!i) return !1; + var c = null; + return ( + i.forEach(function (l, g, b, y) { + return ( + (c = new d(l, g, b, y)), + !( + g == y && + o.start && + o.start.start && + 0 != o.skipCurrent && + c.isEqual(o.start) && + ((c = null), 1) + ) + ); + }), + c + ); + }), + (this.findAll = function (r) { + var o = this.$options; + if (!o.needle) return []; + this.$assembleRegExp(o); + var i = o.range, + c = i + ? r.getLines(i.start.row, i.end.row) + : r.doc.getAllLines(), + l = [], + g = o.re; + if (o.$isMultiLine) { + var x, + b = g.length, + y = c.length - b; + e: for (var T = g.offset || 0; T <= y; T++) { + for (var O = 0; O < b; O++) + if (-1 == c[T + O].search(g[O])) continue e; + var M = c[T], + A = c[T + b - 1], + S = M.length - M.match(g[0])[0].length, + w = A.match(g[b - 1])[0].length; + (x && x.end.row === T && x.end.column > S) || + (l.push((x = new d(T, S, T + b - 1, w))), + b > 2 && (T = T + b - 2)); + } + } else + for (var I = 0; I < c.length; I++) { + var C = m.getMatchOffsets(c[I], g); + for (O = 0; O < C.length; O++) { + var L = C[O]; + l.push(new d(I, L.offset, I, L.offset + L.length)); + } + } + if (i) { + var F = i.start.column, + ie = i.start.column; + for ( + I = 0, O = l.length - 1; + I < O && + l[I].start.column < F && + l[I].start.row == i.start.row; + + ) + I++; + for ( + ; + I < O && + l[O].end.column > ie && + l[O].end.row == i.end.row; + + ) + O--; + for (l = l.slice(I, O + 1), I = 0, O = l.length; I < O; I++) + (l[I].start.row += i.start.row), + (l[I].end.row += i.start.row); + } + return l; + }), + (this.replace = function (r, o) { + var i = this.$options, + c = this.$assembleRegExp(i); + if (i.$isMultiLine) return o; + if (c) { + var l = c.exec(r); + if (!l || l[0].length != r.length) return null; + if (((o = r.replace(c, o)), i.preserveCase)) { + o = o.split(""); + for (var g = Math.min(r.length, r.length); g--; ) { + var b = r[g]; + o[g] = + b && b.toLowerCase() != b + ? o[g].toUpperCase() + : o[g].toLowerCase(); + } + o = o.join(""); + } + return o; + } + }), + (this.$assembleRegExp = function (r, o) { + if (r.needle instanceof RegExp) return (r.re = r.needle); + var i = r.needle; + if (!r.needle) return (r.re = !1); + r.regExp || (i = m.escapeRegExp(i)), + r.wholeWord && + (i = (function (r, o) { + function i(c) { + return /\w/.test(c) || o.regExp ? "\\b" : ""; + } + return i(r[0]) + r + i(r[r.length - 1]); + })(i, r)); + var c = r.caseSensitive ? "gm" : "gmi"; + if ( + ((r.$isMultiLine = !o && /[\n\r]/.test(i)), r.$isMultiLine) + ) + return (r.re = this.$assembleMultilineRegExp(i, c)); + try { + var l = new RegExp(i, c); + } catch (g) { + l = !1; + } + return (r.re = l); + }), + (this.$assembleMultilineRegExp = function (r, o) { + for ( + var i = r.replace(/\r\n|\r|\n/g, "$\n^").split("\n"), + c = [], + l = 0; + l < i.length; + l++ + ) + try { + c.push(new RegExp(i[l], o)); + } catch (g) { + return !1; + } + return c; + }), + (this.$matchIterator = function (r, o) { + var i = this.$assembleRegExp(o); + if (!i) return !1; + var c = 1 == o.backwards, + l = 0 != o.skipCurrent, + g = o.range, + b = o.start; + b || + (b = g ? g[c ? "end" : "start"] : r.selection.getRange()), + b.start && (b = b[l != c ? "end" : "start"]); + var y = g ? g.start.row : 0, + x = g ? g.end.row : r.getLength() - 1; + if (c) + var T = function (A) { + var S = b.row; + if (!M(S, b.column, A)) { + for (S--; S >= y; S--) + if (M(S, Number.MAX_VALUE, A)) return; + if (0 != o.wrap) + for (S = x, y = b.row; S >= y; S--) + if (M(S, Number.MAX_VALUE, A)) return; + } + }; + else + T = function (S) { + var w = b.row; + if (!M(w, b.column, S)) { + for (w += 1; w <= x; w++) if (M(w, 0, S)) return; + if (0 != o.wrap) + for (w = y, x = b.row; w <= x; w++) + if (M(w, 0, S)) return; + } + }; + if (o.$isMultiLine) + var O = i.length, + M = function (A, S, w) { + var I = c ? A - O + 1 : A; + if (!(I < 0 || I + O > r.getLength())) { + var C = r.getLine(I), + L = C.search(i[0]); + if (!((!c && L < S) || -1 === L)) { + for (var F = 1; F < O; F++) + if (-1 == (C = r.getLine(I + F)).search(i[F])) + return; + var ie = C.match(i[O - 1])[0].length; + if (!(c && ie > S) && w(I, L, I + O - 1, ie)) + return !0; + } + } + }; + else + M = c + ? function (S, w, I) { + var F, + C = r.getLine(S), + L = [], + ie = 0; + for (i.lastIndex = 0; (F = i.exec(C)); ) { + if (((ie = F.index), !(Y = F[0].length))) { + if (ie >= C.length) break; + i.lastIndex = ie += 1; + } + if (F.index + Y > w) break; + L.push(F.index, Y); + } + for (var Z = L.length - 1; Z >= 0; Z -= 2) { + var Y, + ee = L[Z - 1]; + if (I(S, ee, S, ee + (Y = L[Z]))) return !0; + } + } + : function (S, w, I) { + var L, + F, + C = r.getLine(S); + for (i.lastIndex = w; (F = i.exec(C)); ) { + var ie = F[0].length; + if (I(S, (L = F.index), S, L + ie)) return !0; + if (!ie && ((i.lastIndex = L += 1), L >= C.length)) + return !1; + } + }; + return { forEach: T }; + }); + }.call(u.prototype), + (f.Search = u)); + } + ), + ace.define( + "ace/keyboard/hash_handler", + ["require", "exports", "module", "ace/lib/keys", "ace/lib/useragent"], + function (n, f, _) { + "use strict"; + var m = n("../lib/keys"), + s = n("../lib/useragent"), + d = m.KEY_MODS; + function u(r, o) { + (this.platform = o || (s.isMac ? "mac" : "win")), + (this.commands = {}), + (this.commandKeyBinding = {}), + this.addCommands(r), + (this.$singleCommand = !0); + } + function h(r, o) { + u.call(this, r, o), (this.$singleCommand = !1); + } + (h.prototype = u.prototype), + function () { + function r(o) { + return ( + ("object" == typeof o && o.bindKey && o.bindKey.position) || + (o.isDefault ? -100 : 0) + ); + } + (this.addCommand = function (o) { + this.commands[o.name] && this.removeCommand(o), + (this.commands[o.name] = o), + o.bindKey && this._buildKeyHash(o); + }), + (this.removeCommand = function (o, i) { + var c = o && ("string" == typeof o ? o : o.name); + (o = this.commands[c]), i || delete this.commands[c]; + var l = this.commandKeyBinding; + for (var g in l) { + var b = l[g]; + if (b == o) delete l[g]; + else if (Array.isArray(b)) { + var y = b.indexOf(o); + -1 != y && + (b.splice(y, 1), 1 == b.length && (l[g] = b[0])); + } + } + }), + (this.bindKey = function (o, i, c) { + if ( + ("object" == typeof o && + o && + (null == c && (c = o.position), (o = o[this.platform])), + o) + ) { + if ("function" == typeof i) + return this.addCommand({ + exec: i, + bindKey: o, + name: i.name || o, + }); + o.split("|").forEach(function (l) { + var g = ""; + if (-1 != l.indexOf(" ")) { + var b = l.split(/\s+/); + (l = b.pop()), + b.forEach(function (T) { + var O = this.parseKeys(T); + this._addCommandToBinding( + (g += (g ? " " : "") + (d[O.hashId] + O.key)), + "chainKeys" + ); + }, this), + (g += " "); + } + var y = this.parseKeys(l); + this._addCommandToBinding( + g + (d[y.hashId] + y.key), + i, + c + ); + }, this); + } + }), + (this._addCommandToBinding = function (o, i, c) { + var g, + l = this.commandKeyBinding; + if (i) + if (!l[o] || this.$singleCommand) l[o] = i; + else { + Array.isArray(l[o]) + ? -1 != (g = l[o].indexOf(i)) && l[o].splice(g, 1) + : (l[o] = [l[o]]), + "number" != typeof c && (c = r(i)); + var b = l[o]; + for (g = 0; g < b.length && !(r(b[g]) > c); g++); + b.splice(g, 0, i); + } + else delete l[o]; + }), + (this.addCommands = function (o) { + o && + Object.keys(o).forEach(function (i) { + var c = o[i]; + if (c) { + if ("string" == typeof c) return this.bindKey(c, i); + "function" == typeof c && (c = { exec: c }), + "object" == typeof c && + (c.name || (c.name = i), this.addCommand(c)); + } + }, this); + }), + (this.removeCommands = function (o) { + Object.keys(o).forEach(function (i) { + this.removeCommand(o[i]); + }, this); + }), + (this.bindKeys = function (o) { + Object.keys(o).forEach(function (i) { + this.bindKey(i, o[i]); + }, this); + }), + (this._buildKeyHash = function (o) { + this.bindKey(o.bindKey, o); + }), + (this.parseKeys = function (o) { + var i = o + .toLowerCase() + .split(/[\-\+]([\-\+])?/) + .filter(function (x) { + return x; + }), + c = i.pop(), + l = m[c]; + if (m.FUNCTION_KEYS[l]) + c = m.FUNCTION_KEYS[l].toLowerCase(); + else { + if (!i.length) return { key: c, hashId: -1 }; + if (1 == i.length && "shift" == i[0]) + return { key: c.toUpperCase(), hashId: -1 }; + } + for (var g = 0, b = i.length; b--; ) { + var y = m.KEY_MODS[i[b]]; + if (null == y) + return ( + "undefined" != typeof console && + console.error( + "invalid modifier " + i[b] + " in " + o + ), + !1 + ); + g |= y; + } + return { key: c, hashId: g }; + }), + (this.findKeyCommand = function (i, c) { + return this.commandKeyBinding[d[i] + c]; + }), + (this.handleKeyboard = function (o, i, c, l) { + if (!(l < 0)) { + var g = d[i] + c, + b = this.commandKeyBinding[g]; + return ( + o.$keyChain && + ((o.$keyChain += " " + g), + (b = this.commandKeyBinding[o.$keyChain] || b)), + !b || + ("chainKeys" != b && "chainKeys" != b[b.length - 1]) + ? (o.$keyChain && + ((i && 4 != i) || 1 != c.length + ? (-1 == i || l > 0) && (o.$keyChain = "") + : (o.$keyChain = o.$keyChain.slice( + 0, + -g.length - 1 + ))), + { command: b }) + : ((o.$keyChain = o.$keyChain || g), + { command: "null" }) + ); + } + }), + (this.getStatusText = function (o, i) { + return i.$keyChain || ""; + }); + }.call(u.prototype), + (f.HashHandler = u), + (f.MultiHashHandler = h); + } + ), + ace.define( + "ace/commands/command_manager", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/keyboard/hash_handler", + "ace/lib/event_emitter", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/oop"), + s = n("../keyboard/hash_handler").MultiHashHandler, + d = n("../lib/event_emitter").EventEmitter, + u = function (h, r) { + s.call(this, r, h), + (this.byName = this.commands), + this.setDefaultHandler("exec", function (o) { + return o.command.exec(o.editor, o.args || {}); + }); + }; + m.inherits(u, s), + function () { + m.implement(this, d), + (this.exec = function (h, r, o) { + if (Array.isArray(h)) { + for (var i = h.length; i--; ) + if (this.exec(h[i], r, o)) return !0; + return !1; + } + if ( + ("string" == typeof h && (h = this.commands[h]), + !h || + (r && r.$readOnly && !h.readOnly) || + (0 != this.$checkCommandState && + h.isAvailable && + !h.isAvailable(r))) + ) + return !1; + var c = { editor: r, command: h, args: o }; + return ( + (c.returnValue = this._emit("exec", c)), + this._signal("afterExec", c), + !1 !== c.returnValue + ); + }), + (this.toggleRecording = function (h) { + if (!this.$inReplay) + return ( + h && h._emit("changeStatus"), + this.recording + ? (this.macro.pop(), + this.off("exec", this.$addCommandToMacro), + this.macro.length || (this.macro = this.oldMacro), + (this.recording = !1)) + : (this.$addCommandToMacro || + (this.$addCommandToMacro = function (r) { + this.macro.push([r.command, r.args]); + }.bind(this)), + (this.oldMacro = this.macro), + (this.macro = []), + this.on("exec", this.$addCommandToMacro), + (this.recording = !0)) + ); + }), + (this.replay = function (h) { + if (!this.$inReplay && this.macro) { + if (this.recording) return this.toggleRecording(h); + try { + (this.$inReplay = !0), + this.macro.forEach(function (r) { + "string" == typeof r + ? this.exec(r, h) + : this.exec(r[0], h, r[1]); + }, this); + } finally { + this.$inReplay = !1; + } + } + }), + (this.trimMacro = function (h) { + return h.map(function (r) { + return ( + "string" != typeof r[0] && (r[0] = r[0].name), + r[1] || (r = r[0]), + r + ); + }); + }); + }.call(u.prototype), + (f.CommandManager = u); + } + ), + ace.define( + "ace/commands/default_commands", + [ + "require", + "exports", + "module", + "ace/lib/lang", + "ace/config", + "ace/range", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/lang"), + s = n("../config"), + d = n("../range").Range; + function u(r, o) { + return { win: r, mac: o }; + } + f.commands = [ + { + name: "showSettingsMenu", + description: "Show settings menu", + bindKey: u("Ctrl-,", "Command-,"), + exec: function (r) { + s.loadModule("ace/ext/settings_menu", function (o) { + o.init(r), r.showSettingsMenu(); + }); + }, + readOnly: !0, + }, + { + name: "goToNextError", + description: "Go to next error", + bindKey: u("Alt-E", "F4"), + exec: function (r) { + s.loadModule("./ext/error_marker", function (o) { + o.showErrorMarker(r, 1); + }); + }, + scrollIntoView: "animate", + readOnly: !0, + }, + { + name: "goToPreviousError", + description: "Go to previous error", + bindKey: u("Alt-Shift-E", "Shift-F4"), + exec: function (r) { + s.loadModule("./ext/error_marker", function (o) { + o.showErrorMarker(r, -1); + }); + }, + scrollIntoView: "animate", + readOnly: !0, + }, + { + name: "selectall", + description: "Select all", + bindKey: u("Ctrl-A", "Command-A"), + exec: function (r) { + r.selectAll(); + }, + readOnly: !0, + }, + { + name: "centerselection", + description: "Center selection", + bindKey: u(null, "Ctrl-L"), + exec: function (r) { + r.centerSelection(); + }, + readOnly: !0, + }, + { + name: "gotoline", + description: "Go to line...", + bindKey: u("Ctrl-L", "Command-L"), + exec: function (r, o) { + "number" == typeof o && !isNaN(o) && r.gotoLine(o), + r.prompt({ $type: "gotoLine" }); + }, + readOnly: !0, + }, + { + name: "fold", + bindKey: u("Alt-L|Ctrl-F1", "Command-Alt-L|Command-F1"), + exec: function (r) { + r.session.toggleFold(!1); + }, + multiSelectAction: "forEach", + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "unfold", + bindKey: u( + "Alt-Shift-L|Ctrl-Shift-F1", + "Command-Alt-Shift-L|Command-Shift-F1" + ), + exec: function (r) { + r.session.toggleFold(!0); + }, + multiSelectAction: "forEach", + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "toggleFoldWidget", + description: "Toggle fold widget", + bindKey: u("F2", "F2"), + exec: function (r) { + r.session.toggleFoldWidget(); + }, + multiSelectAction: "forEach", + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "toggleParentFoldWidget", + description: "Toggle parent fold widget", + bindKey: u("Alt-F2", "Alt-F2"), + exec: function (r) { + r.session.toggleFoldWidget(!0); + }, + multiSelectAction: "forEach", + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "foldall", + description: "Fold all", + bindKey: u(null, "Ctrl-Command-Option-0"), + exec: function (r) { + r.session.foldAll(); + }, + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "foldAllComments", + description: "Fold all comments", + bindKey: u(null, "Ctrl-Command-Option-0"), + exec: function (r) { + r.session.foldAllComments(); + }, + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "foldOther", + description: "Fold other", + bindKey: u("Alt-0", "Command-Option-0"), + exec: function (r) { + r.session.foldAll(), + r.session.unfold(r.selection.getAllRanges()); + }, + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "unfoldall", + description: "Unfold all", + bindKey: u("Alt-Shift-0", "Command-Option-Shift-0"), + exec: function (r) { + r.session.unfold(); + }, + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "findnext", + description: "Find next", + bindKey: u("Ctrl-K", "Command-G"), + exec: function (r) { + r.findNext(); + }, + multiSelectAction: "forEach", + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "findprevious", + description: "Find previous", + bindKey: u("Ctrl-Shift-K", "Command-Shift-G"), + exec: function (r) { + r.findPrevious(); + }, + multiSelectAction: "forEach", + scrollIntoView: "center", + readOnly: !0, + }, + { + name: "selectOrFindNext", + description: "Select or find next", + bindKey: u("Alt-K", "Ctrl-G"), + exec: function (r) { + r.selection.isEmpty() + ? r.selection.selectWord() + : r.findNext(); + }, + readOnly: !0, + }, + { + name: "selectOrFindPrevious", + description: "Select or find previous", + bindKey: u("Alt-Shift-K", "Ctrl-Shift-G"), + exec: function (r) { + r.selection.isEmpty() + ? r.selection.selectWord() + : r.findPrevious(); + }, + readOnly: !0, + }, + { + name: "find", + description: "Find", + bindKey: u("Ctrl-F", "Command-F"), + exec: function (r) { + s.loadModule("ace/ext/searchbox", function (o) { + o.Search(r); + }); + }, + readOnly: !0, + }, + { + name: "overwrite", + description: "Overwrite", + bindKey: "Insert", + exec: function (r) { + r.toggleOverwrite(); + }, + readOnly: !0, + }, + { + name: "selecttostart", + description: "Select to start", + bindKey: u( + "Ctrl-Shift-Home", + "Command-Shift-Home|Command-Shift-Up" + ), + exec: function (r) { + r.getSelection().selectFileStart(); + }, + multiSelectAction: "forEach", + readOnly: !0, + scrollIntoView: "animate", + aceCommandGroup: "fileJump", + }, + { + name: "gotostart", + description: "Go to start", + bindKey: u("Ctrl-Home", "Command-Home|Command-Up"), + exec: function (r) { + r.navigateFileStart(); + }, + multiSelectAction: "forEach", + readOnly: !0, + scrollIntoView: "animate", + aceCommandGroup: "fileJump", + }, + { + name: "selectup", + description: "Select up", + bindKey: u("Shift-Up", "Shift-Up|Ctrl-Shift-P"), + exec: function (r) { + r.getSelection().selectUp(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "golineup", + description: "Go line up", + bindKey: u("Up", "Up|Ctrl-P"), + exec: function (r, o) { + r.navigateUp(o.times); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selecttoend", + description: "Select to end", + bindKey: u( + "Ctrl-Shift-End", + "Command-Shift-End|Command-Shift-Down" + ), + exec: function (r) { + r.getSelection().selectFileEnd(); + }, + multiSelectAction: "forEach", + readOnly: !0, + scrollIntoView: "animate", + aceCommandGroup: "fileJump", + }, + { + name: "gotoend", + description: "Go to end", + bindKey: u("Ctrl-End", "Command-End|Command-Down"), + exec: function (r) { + r.navigateFileEnd(); + }, + multiSelectAction: "forEach", + readOnly: !0, + scrollIntoView: "animate", + aceCommandGroup: "fileJump", + }, + { + name: "selectdown", + description: "Select down", + bindKey: u("Shift-Down", "Shift-Down|Ctrl-Shift-N"), + exec: function (r) { + r.getSelection().selectDown(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "golinedown", + description: "Go line down", + bindKey: u("Down", "Down|Ctrl-N"), + exec: function (r, o) { + r.navigateDown(o.times); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectwordleft", + description: "Select word left", + bindKey: u("Ctrl-Shift-Left", "Option-Shift-Left"), + exec: function (r) { + r.getSelection().selectWordLeft(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "gotowordleft", + description: "Go to word left", + bindKey: u("Ctrl-Left", "Option-Left"), + exec: function (r) { + r.navigateWordLeft(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selecttolinestart", + description: "Select to line start", + bindKey: u("Alt-Shift-Left", "Command-Shift-Left|Ctrl-Shift-A"), + exec: function (r) { + r.getSelection().selectLineStart(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "gotolinestart", + description: "Go to line start", + bindKey: u("Alt-Left|Home", "Command-Left|Home|Ctrl-A"), + exec: function (r) { + r.navigateLineStart(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectleft", + description: "Select left", + bindKey: u("Shift-Left", "Shift-Left|Ctrl-Shift-B"), + exec: function (r) { + r.getSelection().selectLeft(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "gotoleft", + description: "Go to left", + bindKey: u("Left", "Left|Ctrl-B"), + exec: function (r, o) { + r.navigateLeft(o.times); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectwordright", + description: "Select word right", + bindKey: u("Ctrl-Shift-Right", "Option-Shift-Right"), + exec: function (r) { + r.getSelection().selectWordRight(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "gotowordright", + description: "Go to word right", + bindKey: u("Ctrl-Right", "Option-Right"), + exec: function (r) { + r.navigateWordRight(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selecttolineend", + description: "Select to line end", + bindKey: u( + "Alt-Shift-Right", + "Command-Shift-Right|Shift-End|Ctrl-Shift-E" + ), + exec: function (r) { + r.getSelection().selectLineEnd(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "gotolineend", + description: "Go to line end", + bindKey: u("Alt-Right|End", "Command-Right|End|Ctrl-E"), + exec: function (r) { + r.navigateLineEnd(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectright", + description: "Select right", + bindKey: u("Shift-Right", "Shift-Right"), + exec: function (r) { + r.getSelection().selectRight(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "gotoright", + description: "Go to right", + bindKey: u("Right", "Right|Ctrl-F"), + exec: function (r, o) { + r.navigateRight(o.times); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectpagedown", + description: "Select page down", + bindKey: "Shift-PageDown", + exec: function (r) { + r.selectPageDown(); + }, + readOnly: !0, + }, + { + name: "pagedown", + description: "Page down", + bindKey: u(null, "Option-PageDown"), + exec: function (r) { + r.scrollPageDown(); + }, + readOnly: !0, + }, + { + name: "gotopagedown", + description: "Go to page down", + bindKey: u("PageDown", "PageDown|Ctrl-V"), + exec: function (r) { + r.gotoPageDown(); + }, + readOnly: !0, + }, + { + name: "selectpageup", + description: "Select page up", + bindKey: "Shift-PageUp", + exec: function (r) { + r.selectPageUp(); + }, + readOnly: !0, + }, + { + name: "pageup", + description: "Page up", + bindKey: u(null, "Option-PageUp"), + exec: function (r) { + r.scrollPageUp(); + }, + readOnly: !0, + }, + { + name: "gotopageup", + description: "Go to page up", + bindKey: "PageUp", + exec: function (r) { + r.gotoPageUp(); + }, + readOnly: !0, + }, + { + name: "scrollup", + description: "Scroll up", + bindKey: u("Ctrl-Up", null), + exec: function (r) { + r.renderer.scrollBy( + 0, + -2 * r.renderer.layerConfig.lineHeight + ); + }, + readOnly: !0, + }, + { + name: "scrolldown", + description: "Scroll down", + bindKey: u("Ctrl-Down", null), + exec: function (r) { + r.renderer.scrollBy(0, 2 * r.renderer.layerConfig.lineHeight); + }, + readOnly: !0, + }, + { + name: "selectlinestart", + description: "Select line start", + bindKey: "Shift-Home", + exec: function (r) { + r.getSelection().selectLineStart(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectlineend", + description: "Select line end", + bindKey: "Shift-End", + exec: function (r) { + r.getSelection().selectLineEnd(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "togglerecording", + description: "Toggle recording", + bindKey: u("Ctrl-Alt-E", "Command-Option-E"), + exec: function (r) { + r.commands.toggleRecording(r); + }, + readOnly: !0, + }, + { + name: "replaymacro", + description: "Replay macro", + bindKey: u("Ctrl-Shift-E", "Command-Shift-E"), + exec: function (r) { + r.commands.replay(r); + }, + readOnly: !0, + }, + { + name: "jumptomatching", + description: "Jump to matching", + bindKey: u("Ctrl-\\|Ctrl-P", "Command-\\"), + exec: function (r) { + r.jumpToMatching(); + }, + multiSelectAction: "forEach", + scrollIntoView: "animate", + readOnly: !0, + }, + { + name: "selecttomatching", + description: "Select to matching", + bindKey: u("Ctrl-Shift-\\|Ctrl-Shift-P", "Command-Shift-\\"), + exec: function (r) { + r.jumpToMatching(!0); + }, + multiSelectAction: "forEach", + scrollIntoView: "animate", + readOnly: !0, + }, + { + name: "expandToMatching", + description: "Expand to matching", + bindKey: u("Ctrl-Shift-M", "Ctrl-Shift-M"), + exec: function (r) { + r.jumpToMatching(!0, !0); + }, + multiSelectAction: "forEach", + scrollIntoView: "animate", + readOnly: !0, + }, + { + name: "passKeysToBrowser", + description: "Pass keys to browser", + bindKey: u(null, null), + exec: function () {}, + passEvent: !0, + readOnly: !0, + }, + { + name: "copy", + description: "Copy", + exec: function (r) {}, + readOnly: !0, + }, + { + name: "cut", + description: "Cut", + exec: function (r) { + var i = + r.$copyWithEmptySelection && r.selection.isEmpty() + ? r.selection.getLineRange() + : r.selection.getRange(); + r._emit("cut", i), + i.isEmpty() || r.session.remove(i), + r.clearSelection(); + }, + scrollIntoView: "cursor", + multiSelectAction: "forEach", + }, + { + name: "paste", + description: "Paste", + exec: function (r, o) { + r.$handlePaste(o); + }, + scrollIntoView: "cursor", + }, + { + name: "removeline", + description: "Remove line", + bindKey: u("Ctrl-D", "Command-D"), + exec: function (r) { + r.removeLines(); + }, + scrollIntoView: "cursor", + multiSelectAction: "forEachLine", + }, + { + name: "duplicateSelection", + description: "Duplicate selection", + bindKey: u("Ctrl-Shift-D", "Command-Shift-D"), + exec: function (r) { + r.duplicateSelection(); + }, + scrollIntoView: "cursor", + multiSelectAction: "forEach", + }, + { + name: "sortlines", + description: "Sort lines", + bindKey: u("Ctrl-Alt-S", "Command-Alt-S"), + exec: function (r) { + r.sortLines(); + }, + scrollIntoView: "selection", + multiSelectAction: "forEachLine", + }, + { + name: "togglecomment", + description: "Toggle comment", + bindKey: u("Ctrl-/", "Command-/"), + exec: function (r) { + r.toggleCommentLines(); + }, + multiSelectAction: "forEachLine", + scrollIntoView: "selectionPart", + }, + { + name: "toggleBlockComment", + description: "Toggle block comment", + bindKey: u("Ctrl-Shift-/", "Command-Shift-/"), + exec: function (r) { + r.toggleBlockComment(); + }, + multiSelectAction: "forEach", + scrollIntoView: "selectionPart", + }, + { + name: "modifyNumberUp", + description: "Modify number up", + bindKey: u("Ctrl-Shift-Up", "Alt-Shift-Up"), + exec: function (r) { + r.modifyNumber(1); + }, + scrollIntoView: "cursor", + multiSelectAction: "forEach", + }, + { + name: "modifyNumberDown", + description: "Modify number down", + bindKey: u("Ctrl-Shift-Down", "Alt-Shift-Down"), + exec: function (r) { + r.modifyNumber(-1); + }, + scrollIntoView: "cursor", + multiSelectAction: "forEach", + }, + { + name: "replace", + description: "Replace", + bindKey: u("Ctrl-H", "Command-Option-F"), + exec: function (r) { + s.loadModule("ace/ext/searchbox", function (o) { + o.Search(r, !0); + }); + }, + }, + { + name: "undo", + description: "Undo", + bindKey: u("Ctrl-Z", "Command-Z"), + exec: function (r) { + r.undo(); + }, + }, + { + name: "redo", + description: "Redo", + bindKey: u("Ctrl-Shift-Z|Ctrl-Y", "Command-Shift-Z|Command-Y"), + exec: function (r) { + r.redo(); + }, + }, + { + name: "copylinesup", + description: "Copy lines up", + bindKey: u("Alt-Shift-Up", "Command-Option-Up"), + exec: function (r) { + r.copyLinesUp(); + }, + scrollIntoView: "cursor", + }, + { + name: "movelinesup", + description: "Move lines up", + bindKey: u("Alt-Up", "Option-Up"), + exec: function (r) { + r.moveLinesUp(); + }, + scrollIntoView: "cursor", + }, + { + name: "copylinesdown", + description: "Copy lines down", + bindKey: u("Alt-Shift-Down", "Command-Option-Down"), + exec: function (r) { + r.copyLinesDown(); + }, + scrollIntoView: "cursor", + }, + { + name: "movelinesdown", + description: "Move lines down", + bindKey: u("Alt-Down", "Option-Down"), + exec: function (r) { + r.moveLinesDown(); + }, + scrollIntoView: "cursor", + }, + { + name: "del", + description: "Delete", + bindKey: u("Delete", "Delete|Ctrl-D|Shift-Delete"), + exec: function (r) { + r.remove("right"); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "backspace", + description: "Backspace", + bindKey: u( + "Shift-Backspace|Backspace", + "Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H" + ), + exec: function (r) { + r.remove("left"); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "cut_or_delete", + description: "Cut or delete", + bindKey: u("Shift-Delete", null), + exec: function (r) { + if (!r.selection.isEmpty()) return !1; + r.remove("left"); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "removetolinestart", + description: "Remove to line start", + bindKey: u("Alt-Backspace", "Command-Backspace"), + exec: function (r) { + r.removeToLineStart(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "removetolineend", + description: "Remove to line end", + bindKey: u("Alt-Delete", "Ctrl-K|Command-Delete"), + exec: function (r) { + r.removeToLineEnd(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "removetolinestarthard", + description: "Remove to line start hard", + bindKey: u("Ctrl-Shift-Backspace", null), + exec: function (r) { + var o = r.selection.getRange(); + (o.start.column = 0), r.session.remove(o); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "removetolineendhard", + description: "Remove to line end hard", + bindKey: u("Ctrl-Shift-Delete", null), + exec: function (r) { + var o = r.selection.getRange(); + (o.end.column = Number.MAX_VALUE), r.session.remove(o); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "removewordleft", + description: "Remove word left", + bindKey: u( + "Ctrl-Backspace", + "Alt-Backspace|Ctrl-Alt-Backspace" + ), + exec: function (r) { + r.removeWordLeft(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "removewordright", + description: "Remove word right", + bindKey: u("Ctrl-Delete", "Alt-Delete"), + exec: function (r) { + r.removeWordRight(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "outdent", + description: "Outdent", + bindKey: u("Shift-Tab", "Shift-Tab"), + exec: function (r) { + r.blockOutdent(); + }, + multiSelectAction: "forEach", + scrollIntoView: "selectionPart", + }, + { + name: "indent", + description: "Indent", + bindKey: u("Tab", "Tab"), + exec: function (r) { + r.indent(); + }, + multiSelectAction: "forEach", + scrollIntoView: "selectionPart", + }, + { + name: "blockoutdent", + description: "Block outdent", + bindKey: u("Ctrl-[", "Ctrl-["), + exec: function (r) { + r.blockOutdent(); + }, + multiSelectAction: "forEachLine", + scrollIntoView: "selectionPart", + }, + { + name: "blockindent", + description: "Block indent", + bindKey: u("Ctrl-]", "Ctrl-]"), + exec: function (r) { + r.blockIndent(); + }, + multiSelectAction: "forEachLine", + scrollIntoView: "selectionPart", + }, + { + name: "insertstring", + description: "Insert string", + exec: function (r, o) { + r.insert(o); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "inserttext", + description: "Insert text", + exec: function (r, o) { + r.insert(m.stringRepeat(o.text || "", o.times || 1)); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "splitline", + description: "Split line", + bindKey: u(null, "Ctrl-O"), + exec: function (r) { + r.splitLine(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "transposeletters", + description: "Transpose letters", + bindKey: u("Alt-Shift-X", "Ctrl-T"), + exec: function (r) { + r.transposeLetters(); + }, + multiSelectAction: function (r) { + r.transposeSelections(1); + }, + scrollIntoView: "cursor", + }, + { + name: "touppercase", + description: "To uppercase", + bindKey: u("Ctrl-U", "Ctrl-U"), + exec: function (r) { + r.toUpperCase(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "tolowercase", + description: "To lowercase", + bindKey: u("Ctrl-Shift-U", "Ctrl-Shift-U"), + exec: function (r) { + r.toLowerCase(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "autoindent", + description: "Auto Indent", + bindKey: u(null, null), + exec: function (r) { + r.autoIndent(); + }, + multiSelectAction: "forEachLine", + scrollIntoView: "animate", + }, + { + name: "expandtoline", + description: "Expand to line", + bindKey: u("Ctrl-Shift-L", "Command-Shift-L"), + exec: function (r) { + var o = r.selection.getRange(); + (o.start.column = o.end.column = 0), + o.end.row++, + r.selection.setRange(o, !1); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "joinlines", + description: "Join lines", + bindKey: u(null, null), + exec: function (r) { + for ( + var o = r.selection.isBackwards(), + i = o + ? r.selection.getSelectionLead() + : r.selection.getSelectionAnchor(), + c = o + ? r.selection.getSelectionAnchor() + : r.selection.getSelectionLead(), + l = r.session.doc.getLine(i.row).length, + b = r.session.doc + .getTextRange(r.selection.getRange()) + .replace(/\n\s*/, " ").length, + y = r.session.doc.getLine(i.row), + x = i.row + 1; + x <= c.row + 1; + x++ + ) { + var T = m.stringTrimLeft( + m.stringTrimRight(r.session.doc.getLine(x)) + ); + 0 !== T.length && (T = " " + T), (y += T); + } + c.row + 1 < r.session.doc.getLength() - 1 && + (y += r.session.doc.getNewLineCharacter()), + r.clearSelection(), + r.session.doc.replace(new d(i.row, 0, c.row + 2, 0), y), + b > 0 + ? (r.selection.moveCursorTo(i.row, i.column), + r.selection.selectTo(i.row, i.column + b)) + : ((l = + r.session.doc.getLine(i.row).length > l ? l + 1 : l), + r.selection.moveCursorTo(i.row, l)); + }, + multiSelectAction: "forEach", + readOnly: !0, + }, + { + name: "invertSelection", + description: "Invert selection", + bindKey: u(null, null), + exec: function (r) { + var o = r.session.doc.getLength() - 1, + i = r.session.doc.getLine(o).length, + c = r.selection.rangeList.ranges, + l = []; + c.length < 1 && (c = [r.selection.getRange()]); + for (var g = 0; g < c.length; g++) + g == c.length - 1 && + ((c[g].end.row === o && c[g].end.column === i) || + l.push(new d(c[g].end.row, c[g].end.column, o, i))), + 0 === g + ? (0 === c[g].start.row && 0 === c[g].start.column) || + l.push(new d(0, 0, c[g].start.row, c[g].start.column)) + : l.push( + new d( + c[g - 1].end.row, + c[g - 1].end.column, + c[g].start.row, + c[g].start.column + ) + ); + for ( + r.exitMultiSelectMode(), r.clearSelection(), g = 0; + g < l.length; + g++ + ) + r.selection.addRange(l[g], !1); + }, + readOnly: !0, + scrollIntoView: "none", + }, + { + name: "addLineAfter", + description: "Add new line after the current line", + exec: function (r) { + r.selection.clearSelection(), + r.navigateLineEnd(), + r.insert("\n"); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "addLineBefore", + description: "Add new line before the current line", + exec: function (r) { + r.selection.clearSelection(); + var o = r.getCursorPosition(); + r.selection.moveTo(o.row - 1, Number.MAX_VALUE), + r.insert("\n"), + 0 === o.row && r.navigateUp(); + }, + multiSelectAction: "forEach", + scrollIntoView: "cursor", + }, + { + name: "openCommandPallete", + description: "Open command pallete", + bindKey: u("F1", "F1"), + exec: function (r) { + r.prompt({ $type: "commands" }); + }, + readOnly: !0, + }, + { + name: "modeSelect", + description: "Change language mode...", + bindKey: u(null, null), + exec: function (r) { + r.prompt({ $type: "modes" }); + }, + readOnly: !0, + }, + ]; + for (var h = 1; h < 9; h++) + f.commands.push({ + name: "foldToLevel" + h, + description: "Fold To Level " + h, + level: h, + exec: function (r) { + r.session.foldToLevel(this.level); + }, + scrollIntoView: "center", + readOnly: !0, + }); + } + ), + ace.define( + "ace/editor", + [ + "require", + "exports", + "module", + "ace/lib/fixoldbrowsers", + "ace/lib/oop", + "ace/lib/dom", + "ace/lib/lang", + "ace/lib/useragent", + "ace/keyboard/textinput", + "ace/mouse/mouse_handler", + "ace/mouse/fold_handler", + "ace/keyboard/keybinding", + "ace/edit_session", + "ace/search", + "ace/range", + "ace/lib/event_emitter", + "ace/commands/command_manager", + "ace/commands/default_commands", + "ace/config", + "ace/token_iterator", + "ace/clipboard", + ], + function (n, f, _) { + "use strict"; + n("./lib/fixoldbrowsers"); + var m = n("./lib/oop"), + s = n("./lib/dom"), + d = n("./lib/lang"), + u = n("./lib/useragent"), + h = n("./keyboard/textinput").TextInput, + r = n("./mouse/mouse_handler").MouseHandler, + o = n("./mouse/fold_handler").FoldHandler, + i = n("./keyboard/keybinding").KeyBinding, + c = n("./edit_session").EditSession, + l = n("./search").Search, + g = n("./range").Range, + b = n("./lib/event_emitter").EventEmitter, + y = n("./commands/command_manager").CommandManager, + x = n("./commands/default_commands").commands, + T = n("./config"), + O = n("./token_iterator").TokenIterator, + M = n("./clipboard"), + A = function (w, I, C) { + this.$toDestroy = []; + var L = w.getContainerElement(); + (this.container = L), + (this.renderer = w), + (this.id = "editor" + ++A.$uid), + (this.commands = new y(u.isMac ? "mac" : "win", x)), + "object" == typeof document && + ((this.textInput = new h(w.getTextAreaContainer(), this)), + (this.renderer.textarea = this.textInput.getElement()), + (this.$mouseHandler = new r(this)), + new o(this)), + (this.keyBinding = new i(this)), + (this.$search = new l().set({ wrap: !0 })), + (this.$historyTracker = this.$historyTracker.bind(this)), + this.commands.on("exec", this.$historyTracker), + this.$initOperationListeners(), + (this._$emitInputEvent = d.delayedCall( + function () { + this._signal("input", {}), + this.session && + this.session.bgTokenizer && + this.session.bgTokenizer.scheduleStart(); + }.bind(this) + )), + this.on("change", function (F, ie) { + ie._$emitInputEvent.schedule(31); + }), + this.setSession(I || (C && C.session) || new c("")), + T.resetOptions(this), + C && this.setOptions(C), + T._signal("editor", this); + }; + (A.$uid = 0), + function () { + m.implement(this, b), + (this.$initOperationListeners = function () { + this.commands.on( + "exec", + this.startOperation.bind(this), + !0 + ), + this.commands.on( + "afterExec", + this.endOperation.bind(this), + !0 + ), + (this.$opResetTimer = d.delayedCall( + this.endOperation.bind(this, !0) + )), + this.on( + "change", + function () { + this.curOp || + (this.startOperation(), + (this.curOp.selectionBefore = this.$lastSel)), + (this.curOp.docChanged = !0); + }.bind(this), + !0 + ), + this.on( + "changeSelection", + function () { + this.curOp || + (this.startOperation(), + (this.curOp.selectionBefore = this.$lastSel)), + (this.curOp.selectionChanged = !0); + }.bind(this), + !0 + ); + }), + (this.curOp = null), + (this.prevOp = {}), + (this.startOperation = function (w) { + if (this.curOp) { + if (!w || this.curOp.command) return; + this.prevOp = this.curOp; + } + w || ((this.previousCommand = null), (w = {})), + this.$opResetTimer.schedule(), + (this.curOp = this.session.curOp = { + command: w.command || {}, + args: w.args, + scrollTop: this.renderer.scrollTop, + }), + (this.curOp.selectionBefore = this.selection.toJSON()); + }), + (this.endOperation = function (w) { + if (this.curOp && this.session) { + if ((w && !1 === w.returnValue) || !this.session) + return (this.curOp = null); + if ( + (1 == w && + this.curOp.command && + "mouse" == this.curOp.command.name) || + (this._signal("beforeEndOperation"), !this.curOp) + ) + return; + var I = this.curOp.command, + C = I && I.scrollIntoView; + if (C) { + switch (C) { + case "center-animate": + C = "animate"; + case "center": + this.renderer.scrollCursorIntoView(null, 0.5); + break; + case "animate": + case "cursor": + this.renderer.scrollCursorIntoView(); + break; + case "selectionPart": + var L = this.selection.getRange(), + F = this.renderer.layerConfig; + (L.start.row >= F.lastRow || + L.end.row <= F.firstRow) && + this.renderer.scrollSelectionIntoView( + this.selection.anchor, + this.selection.lead + ); + } + "animate" == C && + this.renderer.animateScrolling(this.curOp.scrollTop); + } + var ie = this.selection.toJSON(); + (this.curOp.selectionAfter = ie), + (this.$lastSel = this.selection.toJSON()), + this.session.getUndoManager().addSelection(ie), + (this.prevOp = this.curOp), + (this.curOp = null); + } + }), + (this.$mergeableCommands = [ + "backspace", + "del", + "insertstring", + ]), + (this.$historyTracker = function (w) { + if (this.$mergeUndoDeltas) { + var I = this.prevOp, + C = this.$mergeableCommands, + L = I.command && w.command.name == I.command.name; + if ("insertstring" == w.command.name) { + var F = w.args; + void 0 === this.mergeNextCommand && + (this.mergeNextCommand = !0), + (L = + L && + this.mergeNextCommand && + (!/\s/.test(F) || /\s/.test(I.args))), + (this.mergeNextCommand = !0); + } else L = L && -1 !== C.indexOf(w.command.name); + "always" != this.$mergeUndoDeltas && + Date.now() - this.sequenceStartTime > 2e3 && + (L = !1), + L + ? (this.session.mergeUndoDeltas = !0) + : -1 !== C.indexOf(w.command.name) && + (this.sequenceStartTime = Date.now()); + } + }), + (this.setKeyboardHandler = function (w, I) { + if (w && "string" == typeof w && "ace" != w) { + this.$keybindingId = w; + var C = this; + T.loadModule(["keybinding", w], function (L) { + C.$keybindingId == w && + C.keyBinding.setKeyboardHandler(L && L.handler), + I && I(); + }); + } else + (this.$keybindingId = null), + this.keyBinding.setKeyboardHandler(w), + I && I(); + }), + (this.getKeyboardHandler = function () { + return this.keyBinding.getKeyboardHandler(); + }), + (this.setSession = function (w) { + if (this.session != w) { + this.curOp && this.endOperation(), (this.curOp = {}); + var I = this.session; + if (I) { + this.session.off("change", this.$onDocumentChange), + this.session.off("changeMode", this.$onChangeMode), + this.session.off( + "tokenizerUpdate", + this.$onTokenizerUpdate + ), + this.session.off( + "changeTabSize", + this.$onChangeTabSize + ), + this.session.off( + "changeWrapLimit", + this.$onChangeWrapLimit + ), + this.session.off( + "changeWrapMode", + this.$onChangeWrapMode + ), + this.session.off("changeFold", this.$onChangeFold), + this.session.off( + "changeFrontMarker", + this.$onChangeFrontMarker + ), + this.session.off( + "changeBackMarker", + this.$onChangeBackMarker + ), + this.session.off( + "changeBreakpoint", + this.$onChangeBreakpoint + ), + this.session.off( + "changeAnnotation", + this.$onChangeAnnotation + ), + this.session.off( + "changeOverwrite", + this.$onCursorChange + ), + this.session.off( + "changeScrollTop", + this.$onScrollTopChange + ), + this.session.off( + "changeScrollLeft", + this.$onScrollLeftChange + ); + var C = this.session.getSelection(); + C.off("changeCursor", this.$onCursorChange), + C.off("changeSelection", this.$onSelectionChange); + } + (this.session = w), + w + ? ((this.$onDocumentChange = this.onDocumentChange.bind( + this + )), + w.on("change", this.$onDocumentChange), + this.renderer.setSession(w), + (this.$onChangeMode = this.onChangeMode.bind(this)), + w.on("changeMode", this.$onChangeMode), + (this.$onTokenizerUpdate = this.onTokenizerUpdate.bind( + this + )), + w.on("tokenizerUpdate", this.$onTokenizerUpdate), + (this.$onChangeTabSize = this.renderer.onChangeTabSize.bind( + this.renderer + )), + w.on("changeTabSize", this.$onChangeTabSize), + (this.$onChangeWrapLimit = this.onChangeWrapLimit.bind( + this + )), + w.on("changeWrapLimit", this.$onChangeWrapLimit), + (this.$onChangeWrapMode = this.onChangeWrapMode.bind( + this + )), + w.on("changeWrapMode", this.$onChangeWrapMode), + (this.$onChangeFold = this.onChangeFold.bind(this)), + w.on("changeFold", this.$onChangeFold), + (this.$onChangeFrontMarker = this.onChangeFrontMarker.bind( + this + )), + this.session.on( + "changeFrontMarker", + this.$onChangeFrontMarker + ), + (this.$onChangeBackMarker = this.onChangeBackMarker.bind( + this + )), + this.session.on( + "changeBackMarker", + this.$onChangeBackMarker + ), + (this.$onChangeBreakpoint = this.onChangeBreakpoint.bind( + this + )), + this.session.on( + "changeBreakpoint", + this.$onChangeBreakpoint + ), + (this.$onChangeAnnotation = this.onChangeAnnotation.bind( + this + )), + this.session.on( + "changeAnnotation", + this.$onChangeAnnotation + ), + (this.$onCursorChange = this.onCursorChange.bind( + this + )), + this.session.on( + "changeOverwrite", + this.$onCursorChange + ), + (this.$onScrollTopChange = this.onScrollTopChange.bind( + this + )), + this.session.on( + "changeScrollTop", + this.$onScrollTopChange + ), + (this.$onScrollLeftChange = this.onScrollLeftChange.bind( + this + )), + this.session.on( + "changeScrollLeft", + this.$onScrollLeftChange + ), + (this.selection = w.getSelection()), + this.selection.on( + "changeCursor", + this.$onCursorChange + ), + (this.$onSelectionChange = this.onSelectionChange.bind( + this + )), + this.selection.on( + "changeSelection", + this.$onSelectionChange + ), + this.onChangeMode(), + this.onCursorChange(), + this.onScrollTopChange(), + this.onScrollLeftChange(), + this.onSelectionChange(), + this.onChangeFrontMarker(), + this.onChangeBackMarker(), + this.onChangeBreakpoint(), + this.onChangeAnnotation(), + this.session.getUseWrapMode() && + this.renderer.adjustWrapLimit(), + this.renderer.updateFull()) + : ((this.selection = null), + this.renderer.setSession(w)), + this._signal("changeSession", { + session: w, + oldSession: I, + }), + (this.curOp = null), + I && I._signal("changeEditor", { oldEditor: this }), + w && w._signal("changeEditor", { editor: this }), + w && w.bgTokenizer && w.bgTokenizer.scheduleStart(); + } + }), + (this.getSession = function () { + return this.session; + }), + (this.setValue = function (w, I) { + return ( + this.session.doc.setValue(w), + I + ? 1 == I + ? this.navigateFileEnd() + : -1 == I && this.navigateFileStart() + : this.selectAll(), + w + ); + }), + (this.getValue = function () { + return this.session.getValue(); + }), + (this.getSelection = function () { + return this.selection; + }), + (this.resize = function (w) { + this.renderer.onResize(w); + }), + (this.setTheme = function (w, I) { + this.renderer.setTheme(w, I); + }), + (this.getTheme = function () { + return this.renderer.getTheme(); + }), + (this.setStyle = function (w) { + this.renderer.setStyle(w); + }), + (this.unsetStyle = function (w) { + this.renderer.unsetStyle(w); + }), + (this.getFontSize = function () { + return ( + this.getOption("fontSize") || + s.computedStyle(this.container).fontSize + ); + }), + (this.setFontSize = function (w) { + this.setOption("fontSize", w); + }), + (this.$highlightBrackets = function () { + if (!this.$highlightPending) { + var w = this; + (this.$highlightPending = !0), + setTimeout(function () { + w.$highlightPending = !1; + var I = w.session; + if (I && I.bgTokenizer) { + I.$bracketHighlight && + (I.$bracketHighlight.markerIds.forEach(function ( + F + ) { + I.removeMarker(F); + }), + (I.$bracketHighlight = null)); + var C = I.getMatchingBracketRanges( + w.getCursorPosition() + ); + if ( + (!C && + I.$mode.getMatching && + (C = I.$mode.getMatching(w.session)), + C) + ) { + var L = "ace_bracket"; + Array.isArray(C) + ? 1 == C.length && (L = "ace_error_bracket") + : (C = [C]), + 2 == C.length && + (0 == g.comparePoints(C[0].end, C[1].start) + ? (C = [g.fromPoints(C[0].start, C[1].end)]) + : 0 == + g.comparePoints(C[0].start, C[1].end) && + (C = [ + g.fromPoints(C[1].start, C[0].end), + ])), + (I.$bracketHighlight = { + ranges: C, + markerIds: C.map(function (F) { + return I.addMarker(F, L, "text"); + }), + }); + } + } + }, 50); + } + }), + (this.$highlightTags = function () { + if (!this.$highlightTagPending) { + var w = this; + (this.$highlightTagPending = !0), + setTimeout(function () { + w.$highlightTagPending = !1; + var I = w.session; + if (I && I.bgTokenizer) { + var C = w.getCursorPosition(), + L = new O(w.session, C.row, C.column), + F = L.getCurrentToken(); + if (!F || !/\b(?:tag-open|tag-name)/.test(F.type)) + return ( + I.removeMarker(I.$tagHighlight), + void (I.$tagHighlight = null) + ); + if ( + -1 === F.type.indexOf("tag-open") || + (F = L.stepForward()) + ) { + var ie = F.value, + Y = F.value, + Z = 0, + ee = L.stepBackward(); + if ("<" === ee.value) + do { + (ee = F), + (F = L.stepForward()) && + (-1 !== F.type.indexOf("tag-name") + ? ie === (Y = F.value) && + ("<" === ee.value + ? Z++ + : "" === F.value && Z--); + } while (F && Z >= 0); + else { + do { + if (((F = ee), (ee = L.stepBackward()), F)) + if (-1 !== F.type.indexOf("tag-name")) + ie === F.value && + ("<" === ee.value + ? Z++ + : "" === F.value) { + for (var $ = 0, J = ee; J; ) { + if ( + -1 !== J.type.indexOf("tag-name") && + J.value === ie + ) { + Z--; + break; + } + if ("<" === J.value) break; + (J = L.stepBackward()), $++; + } + for (var ne = 0; ne < $; ne++) + L.stepForward(); + } + } while (ee && Z <= 0); + L.stepForward(); + } + if (!F) + return ( + I.removeMarker(I.$tagHighlight), + void (I.$tagHighlight = null) + ); + var ae = L.getCurrentTokenRow(), + le = L.getCurrentTokenColumn(), + Oe = new g(ae, le, ae, le + F.value.length), + Le = I.$backMarkers[I.$tagHighlight]; + I.$tagHighlight && + null != Le && + 0 !== Oe.compareRange(Le.range) && + (I.removeMarker(I.$tagHighlight), + (I.$tagHighlight = null)), + I.$tagHighlight || + (I.$tagHighlight = I.addMarker( + Oe, + "ace_bracket", + "text" + )); + } + } + }, 50); + } + }), + (this.focus = function () { + var w = this; + setTimeout(function () { + w.isFocused() || w.textInput.focus(); + }), + this.textInput.focus(); + }), + (this.isFocused = function () { + return this.textInput.isFocused(); + }), + (this.blur = function () { + this.textInput.blur(); + }), + (this.onFocus = function (w) { + this.$isFocused || + ((this.$isFocused = !0), + this.renderer.showCursor(), + this.renderer.visualizeFocus(), + this._emit("focus", w)); + }), + (this.onBlur = function (w) { + !this.$isFocused || + ((this.$isFocused = !1), + this.renderer.hideCursor(), + this.renderer.visualizeBlur(), + this._emit("blur", w)); + }), + (this.$cursorChange = function () { + this.renderer.updateCursor(), + this.$highlightBrackets(), + this.$highlightTags(), + this.$updateHighlightActiveLine(); + }), + (this.onDocumentChange = function (w) { + this.renderer.updateLines( + w.start.row, + w.start.row == w.end.row ? w.end.row : 1 / 0, + this.session.$useWrapMode + ), + this._signal("change", w), + this.$cursorChange(); + }), + (this.onTokenizerUpdate = function (w) { + var I = w.data; + this.renderer.updateLines(I.first, I.last); + }), + (this.onScrollTopChange = function () { + this.renderer.scrollToY(this.session.getScrollTop()); + }), + (this.onScrollLeftChange = function () { + this.renderer.scrollToX(this.session.getScrollLeft()); + }), + (this.onCursorChange = function () { + this.$cursorChange(), this._signal("changeSelection"); + }), + (this.$updateHighlightActiveLine = function () { + var I, + w = this.getSession(); + if ( + (this.$highlightActiveLine && + (("line" != this.$selectionStyle || + !this.selection.isMultiLine()) && + (I = this.getCursorPosition()), + this.renderer.theme && + this.renderer.theme.$selectionColorConflict && + !this.selection.isEmpty() && + (I = !1), + this.renderer.$maxLines && + 1 === this.session.getLength() && + !(this.renderer.$minLines > 1) && + (I = !1)), + w.$highlightLineMarker && !I) + ) + w.removeMarker(w.$highlightLineMarker.id), + (w.$highlightLineMarker = null); + else if (!w.$highlightLineMarker && I) { + var C = new g(I.row, I.column, I.row, 1 / 0); + (C.id = w.addMarker(C, "ace_active-line", "screenLine")), + (w.$highlightLineMarker = C); + } else + I && + ((w.$highlightLineMarker.start.row = I.row), + (w.$highlightLineMarker.end.row = I.row), + (w.$highlightLineMarker.start.column = I.column), + w._signal("changeBackMarker")); + }), + (this.onSelectionChange = function (w) { + var I = this.session; + if ( + (I.$selectionMarker && I.removeMarker(I.$selectionMarker), + (I.$selectionMarker = null), + this.selection.isEmpty()) + ) + this.$updateHighlightActiveLine(); + else { + var C = this.selection.getRange(), + L = this.getSelectionStyle(); + I.$selectionMarker = I.addMarker(C, "ace_selection", L); + } + var F = + this.$highlightSelectedWord && + this.$getSelectionHighLightRegexp(); + this.session.highlight(F), this._signal("changeSelection"); + }), + (this.$getSelectionHighLightRegexp = function () { + var w = this.session, + I = this.getSelectionRange(); + if (!I.isEmpty() && !I.isMultiLine()) { + var C = I.start.column, + L = I.end.column, + F = w.getLine(I.start.row), + ie = F.substring(C, L); + if (!(ie.length > 5e3) && /[\w\d]/.test(ie)) { + var Y = this.$search.$assembleRegExp({ + wholeWord: !0, + caseSensitive: !0, + needle: ie, + }), + Z = F.substring(C - 1, L + 1); + if (Y.test(Z)) return Y; + } + } + }), + (this.onChangeFrontMarker = function () { + this.renderer.updateFrontMarkers(); + }), + (this.onChangeBackMarker = function () { + this.renderer.updateBackMarkers(); + }), + (this.onChangeBreakpoint = function () { + this.renderer.updateBreakpoints(); + }), + (this.onChangeAnnotation = function () { + this.renderer.setAnnotations(this.session.getAnnotations()); + }), + (this.onChangeMode = function (w) { + this.renderer.updateText(), this._emit("changeMode", w); + }), + (this.onChangeWrapLimit = function () { + this.renderer.updateFull(); + }), + (this.onChangeWrapMode = function () { + this.renderer.onResize(!0); + }), + (this.onChangeFold = function () { + this.$updateHighlightActiveLine(), + this.renderer.updateFull(); + }), + (this.getSelectedText = function () { + return this.session.getTextRange(this.getSelectionRange()); + }), + (this.getCopyText = function () { + var w = this.getSelectedText(), + I = this.session.doc.getNewLineCharacter(), + C = !1; + if (!w && this.$copyWithEmptySelection) { + C = !0; + for ( + var L = this.selection.getAllRanges(), F = 0; + F < L.length; + F++ + ) { + var ie = L[F]; + (F && L[F - 1].start.row == ie.start.row) || + (w += this.session.getLine(ie.start.row) + I); + } + } + var Y = { text: w }; + return ( + this._signal("copy", Y), + (M.lineMode = !!C && Y.text), + Y.text + ); + }), + (this.onCopy = function () { + this.commands.exec("copy", this); + }), + (this.onCut = function () { + this.commands.exec("cut", this); + }), + (this.onPaste = function (w, I) { + this.commands.exec("paste", this, { text: w, event: I }); + }), + (this.$handlePaste = function (w) { + "string" == typeof w && (w = { text: w }), + this._signal("paste", w); + var I = w.text, + C = I === M.lineMode, + L = this.session; + if (!this.inMultiSelectMode || this.inVirtualSelectionMode) + C + ? L.insert( + { row: this.selection.lead.row, column: 0 }, + I + ) + : this.insert(I); + else if (C) + this.selection.rangeList.ranges.forEach(function ($) { + L.insert({ row: $.start.row, column: 0 }, I); + }); + else { + var F = I.split(/\r\n|\r|\n/), + ie = this.selection.rangeList.ranges; + if ( + F.length != ie.length || + !(2 != F.length || (F[0] && F[1])) + ) + return this.commands.exec("insertstring", this, I); + for (var Z = ie.length; Z--; ) { + var ee = ie[Z]; + ee.isEmpty() || L.remove(ee), L.insert(ee.start, F[Z]); + } + } + }), + (this.execCommand = function (w, I) { + return this.commands.exec(w, this, I); + }), + (this.insert = function (w, I) { + var C = this.session, + L = C.getMode(), + F = this.getCursorPosition(); + if (this.getBehavioursEnabled() && !I) { + var ie = L.transformAction( + C.getState(F.row), + "insertion", + this, + C, + w + ); + ie && + (w !== ie.text && + (this.inVirtualSelectionMode || + ((this.session.mergeUndoDeltas = !1), + (this.mergeNextCommand = !1))), + (w = ie.text)); + } + if ( + ("\t" == w && (w = this.session.getTabString()), + this.selection.isEmpty()) + ) + this.session.getOverwrite() && + -1 == w.indexOf("\n") && + (((Y = new g.fromPoints(F, F)).end.column += w.length), + this.session.remove(Y)); + else { + var Y = this.getSelectionRange(); + (F = this.session.remove(Y)), this.clearSelection(); + } + if ("\n" == w || "\r\n" == w) { + var J = C.getLine(F.row); + if (F.column > J.search(/\S|$/)) { + var Z = J.substr(F.column).search(/\S|$/); + C.doc.removeInLine(F.row, F.column, F.column + Z); + } + } + this.clearSelection(); + var ee = F.column, + $ = C.getState(F.row), + ne = ((J = C.getLine(F.row)), L.checkOutdent($, J, w)); + if ( + (C.insert(F, w), + ie && + ie.selection && + this.selection.setSelectionRange( + 2 == ie.selection.length + ? new g( + F.row, + ee + ie.selection[0], + F.row, + ee + ie.selection[1] + ) + : new g( + F.row + ie.selection[0], + ie.selection[1], + F.row + ie.selection[2], + ie.selection[3] + ) + ), + this.$enableAutoIndent) + ) { + if (C.getDocument().isNewLine(w)) { + var ae = L.getNextLineIndent( + $, + J.slice(0, F.column), + C.getTabString() + ); + C.insert({ row: F.row + 1, column: 0 }, ae); + } + ne && L.autoOutdent($, C, F.row); + } + }), + (this.autoIndent = function () { + var C, + L, + w = this.session, + I = w.getMode(); + if (this.selection.isEmpty()) + (C = 0), (L = w.doc.getLength() - 1); + else { + var F = this.getSelectionRange(); + (C = F.start.row), (L = F.end.row); + } + for ( + var ee, + $, + J, + ie = "", + Y = "", + Z = "", + ne = w.getTabString(), + ae = C; + ae <= L; + ae++ + ) + ae > 0 && + ((ie = w.getState(ae - 1)), + (Y = w.getLine(ae - 1)), + (Z = I.getNextLineIndent(ie, Y, ne))), + (ee = w.getLine(ae)), + Z !== ($ = I.$getIndent(ee)) && + ($.length > 0 && + ((J = new g(ae, 0, ae, $.length)), w.remove(J)), + Z.length > 0 && w.insert({ row: ae, column: 0 }, Z)), + I.autoOutdent(ie, w, ae); + }), + (this.onTextInput = function (w, I) { + if (!I) return this.keyBinding.onTextInput(w); + this.startOperation({ command: { name: "insertstring" } }); + var C = this.applyComposition.bind(this, w, I); + this.selection.rangeCount ? this.forEachSelection(C) : C(), + this.endOperation(); + }), + (this.applyComposition = function (w, I) { + var C; + (I.extendLeft || I.extendRight) && + (((C = this.selection.getRange()).start.column -= + I.extendLeft), + (C.end.column += I.extendRight), + C.start.column < 0 && + (C.start.row--, + (C.start.column += + this.session.getLine(C.start.row).length + 1)), + this.selection.setRange(C), + !w && !C.isEmpty() && this.remove()), + (w || !this.selection.isEmpty()) && this.insert(w, !0), + (I.restoreStart || I.restoreEnd) && + (((C = this.selection.getRange()).start.column -= + I.restoreStart), + (C.end.column -= I.restoreEnd), + this.selection.setRange(C)); + }), + (this.onCommandKey = function (w, I, C) { + return this.keyBinding.onCommandKey(w, I, C); + }), + (this.setOverwrite = function (w) { + this.session.setOverwrite(w); + }), + (this.getOverwrite = function () { + return this.session.getOverwrite(); + }), + (this.toggleOverwrite = function () { + this.session.toggleOverwrite(); + }), + (this.setScrollSpeed = function (w) { + this.setOption("scrollSpeed", w); + }), + (this.getScrollSpeed = function () { + return this.getOption("scrollSpeed"); + }), + (this.setDragDelay = function (w) { + this.setOption("dragDelay", w); + }), + (this.getDragDelay = function () { + return this.getOption("dragDelay"); + }), + (this.setSelectionStyle = function (w) { + this.setOption("selectionStyle", w); + }), + (this.getSelectionStyle = function () { + return this.getOption("selectionStyle"); + }), + (this.setHighlightActiveLine = function (w) { + this.setOption("highlightActiveLine", w); + }), + (this.getHighlightActiveLine = function () { + return this.getOption("highlightActiveLine"); + }), + (this.setHighlightGutterLine = function (w) { + this.setOption("highlightGutterLine", w); + }), + (this.getHighlightGutterLine = function () { + return this.getOption("highlightGutterLine"); + }), + (this.setHighlightSelectedWord = function (w) { + this.setOption("highlightSelectedWord", w); + }), + (this.getHighlightSelectedWord = function () { + return this.$highlightSelectedWord; + }), + (this.setAnimatedScroll = function (w) { + this.renderer.setAnimatedScroll(w); + }), + (this.getAnimatedScroll = function () { + return this.renderer.getAnimatedScroll(); + }), + (this.setShowInvisibles = function (w) { + this.renderer.setShowInvisibles(w); + }), + (this.getShowInvisibles = function () { + return this.renderer.getShowInvisibles(); + }), + (this.setDisplayIndentGuides = function (w) { + this.renderer.setDisplayIndentGuides(w); + }), + (this.getDisplayIndentGuides = function () { + return this.renderer.getDisplayIndentGuides(); + }), + (this.setShowPrintMargin = function (w) { + this.renderer.setShowPrintMargin(w); + }), + (this.getShowPrintMargin = function () { + return this.renderer.getShowPrintMargin(); + }), + (this.setPrintMarginColumn = function (w) { + this.renderer.setPrintMarginColumn(w); + }), + (this.getPrintMarginColumn = function () { + return this.renderer.getPrintMarginColumn(); + }), + (this.setReadOnly = function (w) { + this.setOption("readOnly", w); + }), + (this.getReadOnly = function () { + return this.getOption("readOnly"); + }), + (this.setBehavioursEnabled = function (w) { + this.setOption("behavioursEnabled", w); + }), + (this.getBehavioursEnabled = function () { + return this.getOption("behavioursEnabled"); + }), + (this.setWrapBehavioursEnabled = function (w) { + this.setOption("wrapBehavioursEnabled", w); + }), + (this.getWrapBehavioursEnabled = function () { + return this.getOption("wrapBehavioursEnabled"); + }), + (this.setShowFoldWidgets = function (w) { + this.setOption("showFoldWidgets", w); + }), + (this.getShowFoldWidgets = function () { + return this.getOption("showFoldWidgets"); + }), + (this.setFadeFoldWidgets = function (w) { + this.setOption("fadeFoldWidgets", w); + }), + (this.getFadeFoldWidgets = function () { + return this.getOption("fadeFoldWidgets"); + }), + (this.remove = function (w) { + this.selection.isEmpty() && + ("left" == w + ? this.selection.selectLeft() + : this.selection.selectRight()); + var I = this.getSelectionRange(); + if (this.getBehavioursEnabled()) { + var C = this.session, + L = C.getState(I.start.row), + F = C.getMode().transformAction( + L, + "deletion", + this, + C, + I + ); + if (0 === I.end.column) { + var ie = C.getTextRange(I); + if ("\n" == ie[ie.length - 1]) { + var Y = C.getLine(I.end.row); + /^\s+$/.test(Y) && (I.end.column = Y.length); + } + } + F && (I = F); + } + this.session.remove(I), this.clearSelection(); + }), + (this.removeWordRight = function () { + this.selection.isEmpty() && + this.selection.selectWordRight(), + this.session.remove(this.getSelectionRange()), + this.clearSelection(); + }), + (this.removeWordLeft = function () { + this.selection.isEmpty() && this.selection.selectWordLeft(), + this.session.remove(this.getSelectionRange()), + this.clearSelection(); + }), + (this.removeToLineStart = function () { + this.selection.isEmpty() && + this.selection.selectLineStart(), + this.selection.isEmpty() && this.selection.selectLeft(), + this.session.remove(this.getSelectionRange()), + this.clearSelection(); + }), + (this.removeToLineEnd = function () { + this.selection.isEmpty() && this.selection.selectLineEnd(); + var w = this.getSelectionRange(); + w.start.column == w.end.column && + w.start.row == w.end.row && + ((w.end.column = 0), w.end.row++), + this.session.remove(w), + this.clearSelection(); + }), + (this.splitLine = function () { + this.selection.isEmpty() || + (this.session.remove(this.getSelectionRange()), + this.clearSelection()); + var w = this.getCursorPosition(); + this.insert("\n"), this.moveCursorToPosition(w); + }), + (this.transposeLetters = function () { + if (this.selection.isEmpty()) { + var w = this.getCursorPosition(), + I = w.column; + if (0 !== I) { + var L, + F, + C = this.session.getLine(w.row); + I < C.length + ? ((L = C.charAt(I) + C.charAt(I - 1)), + (F = new g(w.row, I - 1, w.row, I + 1))) + : ((L = C.charAt(I - 1) + C.charAt(I - 2)), + (F = new g(w.row, I - 2, w.row, I))), + this.session.replace(F, L), + this.session.selection.moveToPosition(F.end); + } + } + }), + (this.toLowerCase = function () { + var w = this.getSelectionRange(); + this.selection.isEmpty() && this.selection.selectWord(); + var I = this.getSelectionRange(), + C = this.session.getTextRange(I); + this.session.replace(I, C.toLowerCase()), + this.selection.setSelectionRange(w); + }), + (this.toUpperCase = function () { + var w = this.getSelectionRange(); + this.selection.isEmpty() && this.selection.selectWord(); + var I = this.getSelectionRange(), + C = this.session.getTextRange(I); + this.session.replace(I, C.toUpperCase()), + this.selection.setSelectionRange(w); + }), + (this.indent = function () { + var w = this.session, + I = this.getSelectionRange(); + if (!(I.start.row < I.end.row)) { + if (I.start.column < I.end.column) { + var L = w.getTextRange(I); + if (!/^\s+$/.test(L)) + return ( + (C = this.$getSelectedRows()), + void w.indentRows(C.first, C.last, "\t") + ); + } + var F = w.getLine(I.start.row), + ie = I.start, + Y = w.getTabSize(), + Z = w.documentToScreenColumn(ie.row, ie.column); + if (this.session.getUseSoftTabs()) + var $ = d.stringRepeat(" ", (ee = Y - (Z % Y))); + else { + for ( + var ee = Z % Y; + " " == F[I.start.column - 1] && ee; + + ) + I.start.column--, ee--; + this.selection.setSelectionRange(I), ($ = "\t"); + } + return this.insert($); + } + var C = this.$getSelectedRows(); + w.indentRows(C.first, C.last, "\t"); + }), + (this.blockIndent = function () { + var w = this.$getSelectedRows(); + this.session.indentRows(w.first, w.last, "\t"); + }), + (this.blockOutdent = function () { + var w = this.session.getSelection(); + this.session.outdentRows(w.getRange()); + }), + (this.sortLines = function () { + for ( + var w = this.$getSelectedRows(), + I = this.session, + C = [], + L = w.first; + L <= w.last; + L++ + ) + C.push(I.getLine(L)); + C.sort(function (Y, Z) { + return Y.toLowerCase() < Z.toLowerCase() + ? -1 + : Y.toLowerCase() > Z.toLowerCase() + ? 1 + : 0; + }); + var F = new g(0, 0, 0, 0); + for (L = w.first; L <= w.last; L++) { + var ie = I.getLine(L); + (F.start.row = L), + (F.end.row = L), + (F.end.column = ie.length), + I.replace(F, C[L - w.first]); + } + }), + (this.toggleCommentLines = function () { + var w = this.session.getState(this.getCursorPosition().row), + I = this.$getSelectedRows(); + this.session + .getMode() + .toggleCommentLines(w, this.session, I.first, I.last); + }), + (this.toggleBlockComment = function () { + var w = this.getCursorPosition(), + I = this.session.getState(w.row), + C = this.getSelectionRange(); + this.session + .getMode() + .toggleBlockComment(I, this.session, C, w); + }), + (this.getNumberAt = function (w, I) { + var C = /[\-]?[0-9]+(?:\.[0-9]+)?/g; + C.lastIndex = 0; + for (var L = this.session.getLine(w); C.lastIndex < I; ) { + var F = C.exec(L); + if (F.index <= I && F.index + F[0].length >= I) + return { + value: F[0], + start: F.index, + end: F.index + F[0].length, + }; + } + return null; + }), + (this.modifyNumber = function (w) { + var I = this.selection.getCursor().row, + C = this.selection.getCursor().column, + L = new g(I, C - 1, I, C), + F = this.session.getTextRange(L); + if (!isNaN(parseFloat(F)) && isFinite(F)) { + var ie = this.getNumberAt(I, C); + if (ie) { + var Y = + ie.value.indexOf(".") >= 0 + ? ie.start + ie.value.indexOf(".") + 1 + : ie.end, + Z = ie.start + ie.value.length - Y, + ee = parseFloat(ie.value); + (ee *= Math.pow(10, Z)), + (ee += w *= + Y !== ie.end && C < Y + ? Math.pow(10, ie.end - C - 1) + : Math.pow(10, ie.end - C)); + var $ = (ee /= Math.pow(10, Z)).toFixed(Z), + J = new g(I, ie.start, I, ie.end); + this.session.replace(J, $), + this.moveCursorTo( + I, + Math.max( + ie.start + 1, + C + $.length - ie.value.length + ) + ); + } + } else this.toggleWord(); + }), + (this.$toggleWordPairs = [ + ["first", "last"], + ["true", "false"], + ["yes", "no"], + ["width", "height"], + ["top", "bottom"], + ["right", "left"], + ["on", "off"], + ["x", "y"], + ["get", "set"], + ["max", "min"], + ["horizontal", "vertical"], + ["show", "hide"], + ["add", "remove"], + ["up", "down"], + ["before", "after"], + ["even", "odd"], + ["in", "out"], + ["inside", "outside"], + ["next", "previous"], + ["increase", "decrease"], + ["attach", "detach"], + ["&&", "||"], + ["==", "!="], + ]), + (this.toggleWord = function () { + var w = this.selection.getCursor().row, + I = this.selection.getCursor().column; + this.selection.selectWord(); + var C = this.getSelectedText(), + L = this.selection.getWordRange().start.column, + F = C.replace( + /([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g, + "$1 " + ).split(/\s/), + ie = I - L - 1; + ie < 0 && (ie = 0); + var Y = 0, + Z = 0, + ee = this; + C.match(/[A-Za-z0-9_]+/) && + F.forEach(function (Je, gt) { + (Z = Y + Je.length), + ie >= Y && + ie <= Z && + ((C = Je), + ee.selection.clearSelection(), + ee.moveCursorTo(w, Y + L), + ee.selection.selectTo(w, Z + L)), + (Y = Z); + }); + for ( + var J, $ = this.$toggleWordPairs, ne = 0; + ne < $.length; + ne++ + ) + for (var ae = $[ne], le = 0; le <= 1; le++) { + var Oe = +!le, + Le = C.match( + new RegExp( + "^\\s?_?(" + d.escapeRegExp(ae[le]) + ")\\s?$", + "i" + ) + ); + Le && + C.match( + new RegExp( + "([_]|^|\\s)(" + + d.escapeRegExp(Le[1]) + + ")($|\\s)", + "g" + ) + ) && + ((J = C.replace( + new RegExp(d.escapeRegExp(ae[le]), "i"), + function (Je) { + var gt = ae[Oe]; + return ( + Je.toUpperCase() == Je + ? (gt = gt.toUpperCase()) + : Je.charAt(0).toUpperCase() == + Je.charAt(0) && + (gt = + gt.substr(0, 0) + + ae[Oe].charAt(0).toUpperCase() + + gt.substr(1)), + gt + ); + } + )), + this.insert(J), + (J = "")); + } + }), + (this.removeLines = function () { + var w = this.$getSelectedRows(); + this.session.removeFullLines(w.first, w.last), + this.clearSelection(); + }), + (this.duplicateSelection = function () { + var w = this.selection, + I = this.session, + C = w.getRange(), + L = w.isBackwards(); + if (C.isEmpty()) { + var F = C.start.row; + I.duplicateLines(F, F); + } else { + var ie = L ? C.start : C.end, + Y = I.insert(ie, I.getTextRange(C), !1); + (C.start = ie), (C.end = Y), w.setSelectionRange(C, L); + } + }), + (this.moveLinesDown = function () { + this.$moveLines(1, !1); + }), + (this.moveLinesUp = function () { + this.$moveLines(-1, !1); + }), + (this.moveText = function (w, I, C) { + return this.session.moveText(w, I, C); + }), + (this.copyLinesUp = function () { + this.$moveLines(-1, !0); + }), + (this.copyLinesDown = function () { + this.$moveLines(1, !0); + }), + (this.$moveLines = function (w, I) { + var C, + L, + F = this.selection; + if (!F.inMultiSelectMode || this.inVirtualSelectionMode) { + var ie = F.toOrientedRange(); + (C = this.$getSelectedRows(ie)), + (L = this.session.$moveLines( + C.first, + C.last, + I ? 0 : w + )), + I && -1 == w && (L = 0), + ie.moveBy(L, 0), + F.fromOrientedRange(ie); + } else { + var Y = F.rangeList.ranges; + F.rangeList.detach(this.session), + (this.inVirtualSelectionMode = !0); + for (var Z = 0, ee = 0, $ = Y.length, J = 0; J < $; J++) { + var ne = J; + Y[J].moveBy(Z, 0); + for ( + var ae = (C = this.$getSelectedRows(Y[J])).first, + le = C.last; + ++J < $; + + ) { + ee && Y[J].moveBy(ee, 0); + var Oe = this.$getSelectedRows(Y[J]); + if (I && Oe.first != le) break; + if (!I && Oe.first > le + 1) break; + le = Oe.last; + } + for ( + J--, + Z = this.session.$moveLines(ae, le, I ? 0 : w), + I && -1 == w && (ne = J + 1); + ne <= J; + + ) + Y[ne].moveBy(Z, 0), ne++; + I || (Z = 0), (ee += Z); + } + F.fromOrientedRange(F.ranges[0]), + F.rangeList.attach(this.session), + (this.inVirtualSelectionMode = !1); + } + }), + (this.$getSelectedRows = function (w) { + return ( + (w = (w || this.getSelectionRange()).collapseRows()), + { + first: this.session.getRowFoldStart(w.start.row), + last: this.session.getRowFoldEnd(w.end.row), + } + ); + }), + (this.onCompositionStart = function (w) { + this.renderer.showComposition(w); + }), + (this.onCompositionUpdate = function (w) { + this.renderer.setCompositionText(w); + }), + (this.onCompositionEnd = function () { + this.renderer.hideComposition(); + }), + (this.getFirstVisibleRow = function () { + return this.renderer.getFirstVisibleRow(); + }), + (this.getLastVisibleRow = function () { + return this.renderer.getLastVisibleRow(); + }), + (this.isRowVisible = function (w) { + return ( + w >= this.getFirstVisibleRow() && + w <= this.getLastVisibleRow() + ); + }), + (this.isRowFullyVisible = function (w) { + return ( + w >= this.renderer.getFirstFullyVisibleRow() && + w <= this.renderer.getLastFullyVisibleRow() + ); + }), + (this.$getVisibleRowCount = function () { + return ( + this.renderer.getScrollBottomRow() - + this.renderer.getScrollTopRow() + + 1 + ); + }), + (this.$moveByPage = function (w, I) { + var C = this.renderer, + L = this.renderer.layerConfig, + F = w * Math.floor(L.height / L.lineHeight); + !0 === I + ? this.selection.$moveSelection(function () { + this.moveCursorBy(F, 0); + }) + : !1 === I && + (this.selection.moveCursorBy(F, 0), + this.selection.clearSelection()); + var ie = C.scrollTop; + C.scrollBy(0, F * L.lineHeight), + null != I && C.scrollCursorIntoView(null, 0.5), + C.animateScrolling(ie); + }), + (this.selectPageDown = function () { + this.$moveByPage(1, !0); + }), + (this.selectPageUp = function () { + this.$moveByPage(-1, !0); + }), + (this.gotoPageDown = function () { + this.$moveByPage(1, !1); + }), + (this.gotoPageUp = function () { + this.$moveByPage(-1, !1); + }), + (this.scrollPageDown = function () { + this.$moveByPage(1); + }), + (this.scrollPageUp = function () { + this.$moveByPage(-1); + }), + (this.scrollToRow = function (w) { + this.renderer.scrollToRow(w); + }), + (this.scrollToLine = function (w, I, C, L) { + this.renderer.scrollToLine(w, I, C, L); + }), + (this.centerSelection = function () { + var w = this.getSelectionRange(), + I = { + row: Math.floor( + w.start.row + (w.end.row - w.start.row) / 2 + ), + column: Math.floor( + w.start.column + (w.end.column - w.start.column) / 2 + ), + }; + this.renderer.alignCursor(I, 0.5); + }), + (this.getCursorPosition = function () { + return this.selection.getCursor(); + }), + (this.getCursorPositionScreen = function () { + return this.session.documentToScreenPosition( + this.getCursorPosition() + ); + }), + (this.getSelectionRange = function () { + return this.selection.getRange(); + }), + (this.selectAll = function () { + this.selection.selectAll(); + }), + (this.clearSelection = function () { + this.selection.clearSelection(); + }), + (this.moveCursorTo = function (w, I) { + this.selection.moveCursorTo(w, I); + }), + (this.moveCursorToPosition = function (w) { + this.selection.moveCursorToPosition(w); + }), + (this.jumpToMatching = function (w, I) { + var C = this.getCursorPosition(), + L = new O(this.session, C.row, C.column), + F = L.getCurrentToken(), + ie = F || L.stepForward(); + if (ie) { + var Y, + J, + Z = !1, + ee = {}, + $ = C.column - ie.start, + ne = { + ")": "(", + "(": "(", + "]": "[", + "[": "[", + "{": "{", + "}": "{", + }; + do { + if (ie.value.match(/[{}()\[\]]/g)) { + for (; $ < ie.value.length && !Z; $++) + if (ne[ie.value[$]]) + switch ( + ((J = + ne[ie.value[$]] + + "." + + ie.type.replace("rparen", "lparen")), + isNaN(ee[J]) && (ee[J] = 0), + ie.value[$]) + ) { + case "(": + case "[": + case "{": + ee[J]++; + break; + case ")": + case "]": + case "}": + ee[J]--, + -1 === ee[J] && ((Y = "bracket"), (Z = !0)); + } + } else + -1 !== ie.type.indexOf("tag-name") && + (isNaN(ee[ie.value]) && (ee[ie.value] = 0), + "<" === F.value + ? ee[ie.value]++ + : "= 0; --ie) + this.$tryReplace(C[ie], w) && L++; + return this.selection.setSelectionRange(F), L; + }), + (this.$tryReplace = function (w, I) { + var C = this.session.getTextRange(w); + return null !== (I = this.$search.replace(C, I)) + ? ((w.end = this.session.replace(w, I)), w) + : null; + }), + (this.getLastSearchOptions = function () { + return this.$search.getOptions(); + }), + (this.find = function (w, I, C) { + I || (I = {}), + "string" == typeof w || w instanceof RegExp + ? (I.needle = w) + : "object" == typeof w && m.mixin(I, w); + var L = this.selection.getRange(); + null == I.needle && + ((w = + this.session.getTextRange(L) || + this.$search.$options.needle) || + ((L = this.session.getWordRange( + L.start.row, + L.start.column + )), + (w = this.session.getTextRange(L))), + this.$search.set({ needle: w })), + this.$search.set(I), + I.start || this.$search.set({ start: L }); + var F = this.$search.find(this.session); + return I.preventScroll + ? F + : F + ? (this.revealRange(F, C), F) + : (I.backwards ? (L.start = L.end) : (L.end = L.start), + void this.selection.setRange(L)); + }), + (this.findNext = function (w, I) { + this.find({ skipCurrent: !0, backwards: !1 }, w, I); + }), + (this.findPrevious = function (w, I) { + this.find(w, { skipCurrent: !0, backwards: !0 }, I); + }), + (this.revealRange = function (w, I) { + this.session.unfold(w), this.selection.setSelectionRange(w); + var C = this.renderer.scrollTop; + this.renderer.scrollSelectionIntoView(w.start, w.end, 0.5), + !1 !== I && this.renderer.animateScrolling(C); + }), + (this.undo = function () { + this.session.getUndoManager().undo(this.session), + this.renderer.scrollCursorIntoView(null, 0.5); + }), + (this.redo = function () { + this.session.getUndoManager().redo(this.session), + this.renderer.scrollCursorIntoView(null, 0.5); + }), + (this.destroy = function () { + this.$toDestroy && + (this.$toDestroy.forEach(function (w) { + w.destroy(); + }), + (this.$toDestroy = null)), + this.$mouseHandler && this.$mouseHandler.destroy(), + this.renderer.destroy(), + this._signal("destroy", this), + this.session && this.session.destroy(), + this._$emitInputEvent && this._$emitInputEvent.cancel(), + this.removeAllListeners(); + }), + (this.setAutoScrollEditorIntoView = function (w) { + if (w) { + var I, + C = this, + L = !1; + this.$scrollAnchor || + (this.$scrollAnchor = document.createElement("div")); + var F = this.$scrollAnchor; + (F.style.cssText = "position:absolute"), + this.container.insertBefore( + F, + this.container.firstChild + ); + var ie = this.on("changeSelection", function () { + L = !0; + }), + Y = this.renderer.on("beforeRender", function () { + L && + (I = C.renderer.container.getBoundingClientRect()); + }), + Z = this.renderer.on("afterRender", function () { + if ( + L && + I && + (C.isFocused() || + (C.searchBox && C.searchBox.isFocused())) + ) { + var ee = C.renderer, + $ = ee.$cursorLayer.$pixelPos, + J = ee.layerConfig, + ne = $.top - J.offset; + null != + (L = + ($.top >= 0 && ne + I.top < 0) || + (!( + $.top < J.height && + $.top + I.top + J.lineHeight > + window.innerHeight + ) && + null)) && + ((F.style.top = ne + "px"), + (F.style.left = $.left + "px"), + (F.style.height = J.lineHeight + "px"), + F.scrollIntoView(L)), + (L = I = null); + } + }); + this.setAutoScrollEditorIntoView = function (ee) { + ee || + (delete this.setAutoScrollEditorIntoView, + this.off("changeSelection", ie), + this.renderer.off("afterRender", Z), + this.renderer.off("beforeRender", Y)); + }; + } + }), + (this.$resetCursorStyle = function () { + var w = this.$cursorStyle || "ace", + I = this.renderer.$cursorLayer; + !I || + (I.setSmoothBlinking(/smooth/.test(w)), + (I.isBlinking = !this.$readOnly && "wide" != w), + s.setCssClass( + I.element, + "ace_slim-cursors", + /slim/.test(w) + )); + }), + (this.prompt = function (w, I, C) { + var L = this; + T.loadModule("./ext/prompt", function (F) { + F.prompt(L, w, I, C); + }); + }); + }.call(A.prototype), + T.defineOptions(A.prototype, "editor", { + selectionStyle: { + set: function (w) { + this.onSelectionChange(), + this._signal("changeSelectionStyle", { data: w }); + }, + initialValue: "line", + }, + highlightActiveLine: { + set: function () { + this.$updateHighlightActiveLine(); + }, + initialValue: !0, + }, + highlightSelectedWord: { + set: function (w) { + this.$onSelectionChange(); + }, + initialValue: !0, + }, + readOnly: { + set: function (w) { + this.textInput.setReadOnly(w), this.$resetCursorStyle(); + }, + initialValue: !1, + }, + copyWithEmptySelection: { + set: function (w) { + this.textInput.setCopyWithEmptySelection(w); + }, + initialValue: !1, + }, + cursorStyle: { + set: function (w) { + this.$resetCursorStyle(); + }, + values: ["ace", "slim", "smooth", "wide"], + initialValue: "ace", + }, + mergeUndoDeltas: { + values: [!1, !0, "always"], + initialValue: !0, + }, + behavioursEnabled: { initialValue: !0 }, + wrapBehavioursEnabled: { initialValue: !0 }, + enableAutoIndent: { initialValue: !0 }, + autoScrollEditorIntoView: { + set: function (w) { + this.setAutoScrollEditorIntoView(w); + }, + }, + keyboardHandler: { + set: function (w) { + this.setKeyboardHandler(w); + }, + get: function () { + return this.$keybindingId; + }, + handlesSet: !0, + }, + value: { + set: function (w) { + this.session.setValue(w); + }, + get: function () { + return this.getValue(); + }, + handlesSet: !0, + hidden: !0, + }, + session: { + set: function (w) { + this.setSession(w); + }, + get: function () { + return this.session; + }, + handlesSet: !0, + hidden: !0, + }, + showLineNumbers: { + set: function (w) { + this.renderer.$gutterLayer.setShowLineNumbers(w), + this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER), + w && this.$relativeLineNumbers + ? S.attach(this) + : S.detach(this); + }, + initialValue: !0, + }, + relativeLineNumbers: { + set: function (w) { + this.$showLineNumbers && w + ? S.attach(this) + : S.detach(this); + }, + }, + placeholder: { + set: function (w) { + this.$updatePlaceholder || + ((this.$updatePlaceholder = function () { + var I = + this.session && + (this.renderer.$composition || this.getValue()); + if (I && this.renderer.placeholderNode) + this.renderer.off( + "afterRender", + this.$updatePlaceholder + ), + s.removeCssClass( + this.container, + "ace_hasPlaceholder" + ), + this.renderer.placeholderNode.remove(), + (this.renderer.placeholderNode = null); + else if (I || this.renderer.placeholderNode) + !I && + this.renderer.placeholderNode && + (this.renderer.placeholderNode.textContent = + this.$placeholder || ""); + else { + this.renderer.on( + "afterRender", + this.$updatePlaceholder + ), + s.addCssClass(this.container, "ace_hasPlaceholder"); + var C = s.createElement("div"); + (C.className = "ace_placeholder"), + (C.textContent = this.$placeholder || ""), + (this.renderer.placeholderNode = C), + this.renderer.content.appendChild( + this.renderer.placeholderNode + ); + } + }.bind(this)), + this.on("input", this.$updatePlaceholder)), + this.$updatePlaceholder(); + }, + }, + hScrollBarAlwaysVisible: "renderer", + vScrollBarAlwaysVisible: "renderer", + highlightGutterLine: "renderer", + animatedScroll: "renderer", + showInvisibles: "renderer", + showPrintMargin: "renderer", + printMarginColumn: "renderer", + printMargin: "renderer", + fadeFoldWidgets: "renderer", + showFoldWidgets: "renderer", + displayIndentGuides: "renderer", + showGutter: "renderer", + fontSize: "renderer", + fontFamily: "renderer", + maxLines: "renderer", + minLines: "renderer", + scrollPastEnd: "renderer", + fixedWidthGutter: "renderer", + theme: "renderer", + hasCssTransforms: "renderer", + maxPixelHeight: "renderer", + useTextareaForIME: "renderer", + scrollSpeed: "$mouseHandler", + dragDelay: "$mouseHandler", + dragEnabled: "$mouseHandler", + focusTimeout: "$mouseHandler", + tooltipFollowsMouse: "$mouseHandler", + firstLineNumber: "session", + overwrite: "session", + newLineMode: "session", + useWorker: "session", + useSoftTabs: "session", + navigateWithinSoftTabs: "session", + tabSize: "session", + wrap: "session", + indentedSoftWrap: "session", + foldStyle: "session", + mode: "session", + }); + var S = { + getText: function (w, I) { + return ( + (Math.abs(w.selection.lead.row - I) || + I + 1 + (I < 9 ? "\xb7" : "")) + "" + ); + }, + getWidth: function (w, I, C) { + return ( + Math.max( + I.toString().length, + (C.lastRow + 1).toString().length, + 2 + ) * C.characterWidth + ); + }, + update: function (w, I) { + I.renderer.$loop.schedule(I.renderer.CHANGE_GUTTER); + }, + attach: function (w) { + (w.renderer.$gutterLayer.$renderer = this), + w.on("changeSelection", this.update), + this.update(null, w); + }, + detach: function (w) { + w.renderer.$gutterLayer.$renderer == this && + (w.renderer.$gutterLayer.$renderer = null), + w.off("changeSelection", this.update), + this.update(null, w); + }, + }; + f.Editor = A; + } + ), + ace.define( + "ace/undomanager", + ["require", "exports", "module", "ace/range"], + function (n, f, _) { + "use strict"; + var m = function () { + (this.$maxRev = 0), (this.$fromUndo = !1), this.reset(); + }; + (function () { + (this.addSession = function (S) { + this.$session = S; + }), + (this.add = function (S, w, I) { + this.$fromUndo || + (S != this.$lastDelta && + (this.$keepRedoStack || (this.$redoStack.length = 0), + (!1 === w || !this.lastDeltas) && + ((this.lastDeltas = []), + this.$undoStack.push(this.lastDeltas), + (S.id = this.$rev = ++this.$maxRev)), + ("remove" == S.action || "insert" == S.action) && + (this.$lastDelta = S), + this.lastDeltas.push(S))); + }), + (this.addSelection = function (S, w) { + this.selections.push({ value: S, rev: w || this.$rev }); + }), + (this.startNewGroup = function () { + return (this.lastDeltas = null), this.$rev; + }), + (this.markIgnored = function (S, w) { + null == w && (w = this.$rev + 1); + for (var I = this.$undoStack, C = I.length; C--; ) { + var L = I[C][0]; + if (L.id <= S) break; + L.id < w && (L.ignore = !0); + } + this.lastDeltas = null; + }), + (this.getSelection = function (S, w) { + for (var I = this.selections, C = I.length; C--; ) { + var L = I[C]; + if (L.rev < S) return w && (L = I[C + 1]), L; + } + }), + (this.getRevision = function () { + return this.$rev; + }), + (this.getDeltas = function (S, w) { + null == w && (w = this.$rev + 1); + for ( + var I = this.$undoStack, C = null, L = 0, F = I.length; + F--; + + ) { + var ie = I[F][0]; + if ((ie.id < w && !C && (C = F + 1), ie.id <= S)) { + L = F + 1; + break; + } + } + return I.slice(L, C); + }), + (this.getChangedRanges = function (S, w) { + null == w && (w = this.$rev + 1); + }), + (this.getChangedLines = function (S, w) { + null == w && (w = this.$rev + 1); + }), + (this.undo = function (S, w) { + this.lastDeltas = null; + var I = this.$undoStack; + if ( + (function (S, w) { + for (var I = w; I--; ) { + var C = S[I]; + if (C && !C[0].ignore) { + for (; I < w - 1; ) { + var L = b(S[I], S[I + 1]); + (S[I] = L[0]), (S[I + 1] = L[1]), I++; + } + return !0; + } + } + })(I, I.length) + ) { + S || (S = this.$session), + this.$redoStackBaseRev !== this.$rev && + this.$redoStack.length && + (this.$redoStack = []), + (this.$fromUndo = !0); + var C = I.pop(), + L = null; + return ( + C && + ((L = S.undoChanges(C, w)), + this.$redoStack.push(C), + this.$syncRev()), + (this.$fromUndo = !1), + L + ); + } + }), + (this.redo = function (S, w) { + if ( + ((this.lastDeltas = null), + S || (S = this.$session), + (this.$fromUndo = !0), + this.$redoStackBaseRev != this.$rev) + ) { + var I = this.getDeltas( + this.$redoStackBaseRev, + this.$rev + 1 + ); + (function (S, w) { + for (var I = 0; I < w.length; I++) + for (var C = w[I], L = 0; L < C.length; L++) M(S, C[L]); + })(this.$redoStack, I), + (this.$redoStackBaseRev = this.$rev), + this.$redoStack.forEach(function (F) { + F[0].id = ++this.$maxRev; + }, this); + } + var C = this.$redoStack.pop(), + L = null; + return ( + C && + ((L = S.redoChanges(C, w)), + this.$undoStack.push(C), + this.$syncRev()), + (this.$fromUndo = !1), + L + ); + }), + (this.$syncRev = function () { + var S = this.$undoStack, + w = S[S.length - 1], + I = (w && w[0].id) || 0; + (this.$redoStackBaseRev = I), (this.$rev = I); + }), + (this.reset = function () { + (this.lastDeltas = null), + (this.$lastDelta = null), + (this.$undoStack = []), + (this.$redoStack = []), + (this.$rev = 0), + (this.mark = 0), + (this.$redoStackBaseRev = this.$rev), + (this.selections = []); + }), + (this.canUndo = function () { + return this.$undoStack.length > 0; + }), + (this.canRedo = function () { + return this.$redoStack.length > 0; + }), + (this.bookmark = function (S) { + null == S && (S = this.$rev), (this.mark = S); + }), + (this.isAtBookmark = function () { + return this.$rev === this.mark; + }), + (this.toJSON = function () {}), + (this.fromJSON = function () {}), + (this.hasUndo = this.canUndo), + (this.hasRedo = this.canRedo), + (this.isClean = this.isAtBookmark), + (this.markClean = this.bookmark), + (this.$prettyPrint = function (S) { + return S + ? c(S) + : c(this.$undoStack) + "\n---\n" + c(this.$redoStack); + }); + }.call(m.prototype)); + var d = n("./range").Range, + u = d.comparePoints; + function o(S) { + return { row: S.row, column: S.column }; + } + function c(S) { + if (((S = S || this), Array.isArray(S))) + return S.map(c).join("\n"); + var w = ""; + return ( + S.action + ? ((w = "insert" == S.action ? "+" : "-"), + (w += "[" + S.lines + "]")) + : S.value && + (w = Array.isArray(S.value) + ? S.value.map(l).join("\n") + : l(S.value)), + S.start && (w += l(S)), + (S.id || S.rev) && (w += "\t(" + (S.id || S.rev) + ")"), + w + ); + } + function l(S) { + return ( + S.start.row + + ":" + + S.start.column + + "=>" + + S.end.row + + ":" + + S.end.column + ); + } + function g(S, w) { + var I = "insert" == S.action, + C = "insert" == w.action; + if (I && C) + if (u(w.start, S.end) >= 0) x(w, S, -1); + else { + if (!(u(w.start, S.start) <= 0)) return null; + x(S, w, 1); + } + else if (I && !C) + if (u(w.start, S.end) >= 0) x(w, S, -1); + else { + if (!(u(w.end, S.start) <= 0)) return null; + x(S, w, -1); + } + else if (!I && C) + if (u(w.start, S.start) >= 0) x(w, S, 1); + else { + if (!(u(w.start, S.start) <= 0)) return null; + x(S, w, 1); + } + else if (!I && !C) + if (u(w.start, S.start) >= 0) x(w, S, 1); + else { + if (!(u(w.end, S.start) <= 0)) return null; + x(S, w, -1); + } + return [w, S]; + } + function b(S, w) { + for (var I = S.length; I--; ) + for (var C = 0; C < w.length; C++) + if (!g(S[I], w[C])) { + for (; I < S.length; ) { + for (; C--; ) g(w[C], S[I]); + (C = w.length), I++; + } + return [S, w]; + } + return ( + (S.selectionBefore = w.selectionBefore = S.selectionAfter = w.selectionAfter = null), + [w, S] + ); + } + function y(S, w) { + var I = "insert" == S.action, + C = "insert" == w.action; + if (I && C) u(S.start, w.start) < 0 ? x(w, S, 1) : x(S, w, 1); + else if (I && !C) + u(S.start, w.end) >= 0 + ? x(S, w, -1) + : (u(S.start, w.start) <= 0 || + x(S, d.fromPoints(w.start, S.start), -1), + x(w, S, 1)); + else if (!I && C) + u(w.start, S.end) >= 0 + ? x(w, S, -1) + : (u(w.start, S.start) <= 0 || + x(w, d.fromPoints(S.start, w.start), -1), + x(S, w, 1)); + else if (!I && !C) + if (u(w.start, S.end) >= 0) x(w, S, -1); + else { + var L, F; + if (!(u(w.end, S.start) <= 0)) + return ( + u(S.start, w.start) < 0 && ((L = S), (S = O(S, w.start))), + u(S.end, w.end) > 0 && (F = O(S, w.end)), + T(w.end, S.start, S.end, -1), + F && + !L && + ((S.lines = F.lines), + (S.start = F.start), + (S.end = F.end), + (F = S)), + [w, L, F].filter(Boolean) + ); + x(S, w, -1); + } + return [w, S]; + } + function x(S, w, I) { + T(S.start, w.start, w.end, I), T(S.end, w.start, w.end, I); + } + function T(S, w, I, C) { + S.row == (1 == C ? w : I).row && + (S.column += C * (I.column - w.column)), + (S.row += C * (I.row - w.row)); + } + function O(S, w) { + var I = S.lines, + C = S.end; + S.end = o(w); + var L = S.end.row - S.start.row, + F = I.splice(L, I.length), + ie = L ? w.column : w.column - S.start.column; + return ( + I.push(F[0].substring(0, ie)), + (F[0] = F[0].substr(ie)), + { start: o(w), end: C, lines: F, action: S.action } + ); + } + function M(S, w) { + w = (function (S) { + return { + start: o(S.start), + end: o(S.end), + action: S.action, + lines: S.lines.slice(), + }; + })(w); + for (var I = S.length; I--; ) { + for (var C = S[I], L = 0; L < C.length; L++) { + var ie = y(C[L], w); + (w = ie[0]), + 2 != ie.length && + (ie[2] + ? (C.splice(L + 1, 1, ie[1], ie[2]), L++) + : ie[1] || (C.splice(L, 1), L--)); + } + C.length || S.splice(I, 1); + } + return S; + } + f.UndoManager = m; + } + ), + ace.define( + "ace/layer/lines", + ["require", "exports", "module", "ace/lib/dom"], + function (n, f, _) { + "use strict"; + var m = n("../lib/dom"), + s = function (d, u) { + (this.element = d), + (this.canvasHeight = u || 5e5), + (this.element.style.height = 2 * this.canvasHeight + "px"), + (this.cells = []), + (this.cellCache = []), + (this.$offsetCoefficient = 0); + }; + (function () { + (this.moveContainer = function (d) { + m.translate( + this.element, + 0, + ((-d.firstRowScreen * d.lineHeight) % this.canvasHeight) - + d.offset * this.$offsetCoefficient + ); + }), + (this.pageChanged = function (d, u) { + return ( + Math.floor( + (d.firstRowScreen * d.lineHeight) / this.canvasHeight + ) !== + Math.floor( + (u.firstRowScreen * u.lineHeight) / this.canvasHeight + ) + ); + }), + (this.computeLineTop = function (d, u, h) { + var o = Math.floor( + (u.firstRowScreen * u.lineHeight) / this.canvasHeight + ); + return ( + h.documentToScreenRow(d, 0) * u.lineHeight - + o * this.canvasHeight + ); + }), + (this.computeLineHeight = function (d, u, h) { + return u.lineHeight * h.getRowLineCount(d); + }), + (this.getLength = function () { + return this.cells.length; + }), + (this.get = function (d) { + return this.cells[d]; + }), + (this.shift = function () { + this.$cacheCell(this.cells.shift()); + }), + (this.pop = function () { + this.$cacheCell(this.cells.pop()); + }), + (this.push = function (d) { + if (Array.isArray(d)) { + this.cells.push.apply(this.cells, d); + for ( + var u = m.createFragment(this.element), h = 0; + h < d.length; + h++ + ) + u.appendChild(d[h].element); + this.element.appendChild(u); + } else + this.cells.push(d), this.element.appendChild(d.element); + }), + (this.unshift = function (d) { + if (Array.isArray(d)) { + this.cells.unshift.apply(this.cells, d); + for ( + var u = m.createFragment(this.element), h = 0; + h < d.length; + h++ + ) + u.appendChild(d[h].element); + this.element.firstChild + ? this.element.insertBefore(u, this.element.firstChild) + : this.element.appendChild(u); + } else + this.cells.unshift(d), + this.element.insertAdjacentElement( + "afterbegin", + d.element + ); + }), + (this.last = function () { + return this.cells.length + ? this.cells[this.cells.length - 1] + : null; + }), + (this.$cacheCell = function (d) { + !d || (d.element.remove(), this.cellCache.push(d)); + }), + (this.createCell = function (d, u, h, r) { + var o = this.cellCache.pop(); + if (!o) { + var i = m.createElement("div"); + r && r(i), + this.element.appendChild(i), + (o = { element: i, text: "", row: d }); + } + return (o.row = d), o; + }); + }.call(s.prototype), + (f.Lines = s)); + } + ), + ace.define( + "ace/layer/gutter", + [ + "require", + "exports", + "module", + "ace/lib/dom", + "ace/lib/oop", + "ace/lib/lang", + "ace/lib/event_emitter", + "ace/layer/lines", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/dom"), + s = n("../lib/oop"), + d = n("../lib/lang"), + u = n("../lib/event_emitter").EventEmitter, + h = n("./lines").Lines, + r = function (i) { + (this.element = m.createElement("div")), + (this.element.className = "ace_layer ace_gutter-layer"), + i.appendChild(this.element), + this.setShowFoldWidgets(this.$showFoldWidgets), + (this.gutterWidth = 0), + (this.$annotations = []), + (this.$updateAnnotations = this.$updateAnnotations.bind( + this + )), + (this.$lines = new h(this.element)), + (this.$lines.$offsetCoefficient = 1); + }; + function o(i) { + var c = document.createTextNode(""); + i.appendChild(c); + var l = m.createElement("span"); + return i.appendChild(l), i; + } + (function () { + s.implement(this, u), + (this.setSession = function (i) { + this.session && + this.session.off("change", this.$updateAnnotations), + (this.session = i), + i && i.on("change", this.$updateAnnotations); + }), + (this.addGutterDecoration = function (i, c) { + window.console && + console.warn && + console.warn("deprecated use session.addGutterDecoration"), + this.session.addGutterDecoration(i, c); + }), + (this.removeGutterDecoration = function (i, c) { + window.console && + console.warn && + console.warn( + "deprecated use session.removeGutterDecoration" + ), + this.session.removeGutterDecoration(i, c); + }), + (this.setAnnotations = function (i) { + this.$annotations = []; + for (var c = 0; c < i.length; c++) { + var l = i[c], + g = l.row, + b = this.$annotations[g]; + b || (b = this.$annotations[g] = { text: [] }); + var y = l.text; + (y = y ? d.escapeHTML(y) : l.html || ""), + -1 === b.text.indexOf(y) && b.text.push(y); + var x = l.type; + "error" == x + ? (b.className = " ace_error") + : "warning" == x && " ace_error" != b.className + ? (b.className = " ace_warning") + : "info" == x && + !b.className && + (b.className = " ace_info"); + } + }), + (this.$updateAnnotations = function (i) { + if (this.$annotations.length) { + var c = i.start.row, + l = i.end.row - c; + if (0 !== l) + if ("remove" == i.action) + this.$annotations.splice(c, l + 1, null); + else { + var g = new Array(l + 1); + g.unshift(c, 1), + this.$annotations.splice.apply(this.$annotations, g); + } + } + }), + (this.update = function (i) { + this.config = i; + var c = this.session, + l = i.firstRow, + g = Math.min(i.lastRow + i.gutterOffset, c.getLength() - 1); + (this.oldLastRow = g), + (this.config = i), + this.$lines.moveContainer(i), + this.$updateCursorRow(); + for ( + var b = c.getNextFoldLine(l), + y = b ? b.start.row : 1 / 0, + x = null, + T = -1, + O = l; + ; + + ) { + if ( + (O > y && + (y = (b = c.getNextFoldLine((O = b.end.row + 1), b)) + ? b.start.row + : 1 / 0), + O > g) + ) { + for (; this.$lines.getLength() > T + 1; ) + this.$lines.pop(); + break; + } + (x = this.$lines.get(++T)) + ? (x.row = O) + : ((x = this.$lines.createCell(O, i, this.session, o)), + this.$lines.push(x)), + this.$renderCell(x, i, b, O), + O++; + } + this._signal("afterRender"), this.$updateGutterWidth(i); + }), + (this.$updateGutterWidth = function (i) { + var c = this.session, + l = c.gutterRenderer || this.$renderer, + g = c.$firstLineNumber, + b = this.$lines.last() ? this.$lines.last().text : ""; + (this.$fixedWidth || c.$useWrapMode) && + (b = c.getLength() + g - 1); + var y = l + ? l.getWidth(c, b, i) + : b.toString().length * i.characterWidth, + x = this.$padding || this.$computePadding(); + (y += x.left + x.right) !== this.gutterWidth && + !isNaN(y) && + ((this.gutterWidth = y), + (this.element.parentNode.style.width = this.element.style.width = + Math.ceil(this.gutterWidth) + "px"), + this._signal("changeGutterWidth", y)); + }), + (this.$updateCursorRow = function () { + if (this.$highlightGutterLine) { + var i = this.session.selection.getCursor(); + this.$cursorRow !== i.row && (this.$cursorRow = i.row); + } + }), + (this.updateLineHighlight = function () { + if (this.$highlightGutterLine) { + var i = this.session.selection.cursor.row; + if ( + ((this.$cursorRow = i), + !this.$cursorCell || this.$cursorCell.row != i) + ) { + this.$cursorCell && + (this.$cursorCell.element.className = this.$cursorCell.element.className.replace( + "ace_gutter-active-line ", + "" + )); + var c = this.$lines.cells; + this.$cursorCell = null; + for (var l = 0; l < c.length; l++) { + var g = c[l]; + if (g.row >= this.$cursorRow) { + if (g.row > this.$cursorRow) { + var b = this.session.getFoldLine(this.$cursorRow); + if (!(l > 0 && b && b.start.row == c[l - 1].row)) + break; + g = c[l - 1]; + } + (g.element.className = + "ace_gutter-active-line " + g.element.className), + (this.$cursorCell = g); + break; + } + } + } + } + }), + (this.scrollLines = function (i) { + var c = this.config; + if ( + ((this.config = i), + this.$updateCursorRow(), + this.$lines.pageChanged(c, i)) + ) + return this.update(i); + this.$lines.moveContainer(i); + var l = Math.min( + i.lastRow + i.gutterOffset, + this.session.getLength() - 1 + ), + g = this.oldLastRow; + if (((this.oldLastRow = l), !c || g < i.firstRow)) + return this.update(i); + if (l < c.firstRow) return this.update(i); + if (c.firstRow < i.firstRow) + for ( + var b = this.session.getFoldedRowCount( + c.firstRow, + i.firstRow - 1 + ); + b > 0; + b-- + ) + this.$lines.shift(); + if (g > l) + for ( + b = this.session.getFoldedRowCount(l + 1, g); + b > 0; + b-- + ) + this.$lines.pop(); + i.firstRow < c.firstRow && + this.$lines.unshift( + this.$renderLines(i, i.firstRow, c.firstRow - 1) + ), + l > g && this.$lines.push(this.$renderLines(i, g + 1, l)), + this.updateLineHighlight(), + this._signal("afterRender"), + this.$updateGutterWidth(i); + }), + (this.$renderLines = function (i, c, l) { + for ( + var g = [], + b = c, + y = this.session.getNextFoldLine(b), + x = y ? y.start.row : 1 / 0; + b > x && + (x = (y = this.session.getNextFoldLine( + (b = y.end.row + 1), + y + )) + ? y.start.row + : 1 / 0), + !(b > l); + + ) { + var T = this.$lines.createCell(b, i, this.session, o); + this.$renderCell(T, i, y, b), g.push(T), b++; + } + return g; + }), + (this.$renderCell = function (i, c, l, g) { + var b = i.element, + y = this.session, + x = b.childNodes[0], + T = b.childNodes[1], + O = y.$firstLineNumber, + M = y.$breakpoints, + A = y.$decorations, + S = y.gutterRenderer || this.$renderer, + w = this.$showFoldWidgets && y.foldWidgets, + I = l ? l.start.row : Number.MAX_VALUE, + C = "ace_gutter-cell "; + if ( + (this.$highlightGutterLine && + (g == this.$cursorRow || + (l && + g < this.$cursorRow && + g >= I && + this.$cursorRow <= l.end.row)) && + ((C += "ace_gutter-active-line "), + this.$cursorCell != i && + (this.$cursorCell && + (this.$cursorCell.element.className = this.$cursorCell.element.className.replace( + "ace_gutter-active-line ", + "" + )), + (this.$cursorCell = i))), + M[g] && (C += M[g]), + A[g] && (C += A[g]), + this.$annotations[g] && + (C += this.$annotations[g].className), + b.className != C && (b.className = C), + w) + ) { + var L = w[g]; + null == L && (L = w[g] = y.getFoldWidget(g)); + } + L + ? ((C = "ace_fold-widget ace_" + L), + T.className != + (C += + "start" == L && g == I && g < l.end.row + ? " ace_closed" + : " ace_open") && (T.className = C), + m.setStyle(T.style, "height", c.lineHeight + "px"), + m.setStyle(T.style, "display", "inline-block")) + : T && m.setStyle(T.style, "display", "none"); + var ie = (S ? S.getText(y, g) : g + O).toString(); + return ( + ie !== x.data && (x.data = ie), + m.setStyle( + i.element.style, + "height", + this.$lines.computeLineHeight(g, c, y) + "px" + ), + m.setStyle( + i.element.style, + "top", + this.$lines.computeLineTop(g, c, y) + "px" + ), + (i.text = ie), + i + ); + }), + (this.$fixedWidth = !1), + (this.$highlightGutterLine = !0), + (this.$renderer = ""), + (this.setHighlightGutterLine = function (i) { + this.$highlightGutterLine = i; + }), + (this.$showLineNumbers = !0), + (this.$renderer = ""), + (this.setShowLineNumbers = function (i) { + this.$renderer = !i && { + getWidth: function () { + return 0; + }, + getText: function () { + return ""; + }, + }; + }), + (this.getShowLineNumbers = function () { + return this.$showLineNumbers; + }), + (this.$showFoldWidgets = !0), + (this.setShowFoldWidgets = function (i) { + i + ? m.addCssClass(this.element, "ace_folding-enabled") + : m.removeCssClass(this.element, "ace_folding-enabled"), + (this.$showFoldWidgets = i), + (this.$padding = null); + }), + (this.getShowFoldWidgets = function () { + return this.$showFoldWidgets; + }), + (this.$computePadding = function () { + if (!this.element.firstChild) return { left: 0, right: 0 }; + var i = m.computedStyle(this.element.firstChild); + return ( + (this.$padding = {}), + (this.$padding.left = + (parseInt(i.borderLeftWidth) || 0) + + (parseInt(i.paddingLeft) || 0) + + 1), + (this.$padding.right = + (parseInt(i.borderRightWidth) || 0) + + (parseInt(i.paddingRight) || 0)), + this.$padding + ); + }), + (this.getRegion = function (i) { + var c = this.$padding || this.$computePadding(), + l = this.element.getBoundingClientRect(); + return i.x < c.left + l.left + ? "markers" + : this.$showFoldWidgets && i.x > l.right - c.right + ? "foldWidgets" + : void 0; + }); + }.call(r.prototype), + (f.Gutter = r)); + } + ), + ace.define( + "ace/layer/marker", + ["require", "exports", "module", "ace/range", "ace/lib/dom"], + function (n, f, _) { + "use strict"; + var m = n("../range").Range, + s = n("../lib/dom"), + d = function (u) { + (this.element = s.createElement("div")), + (this.element.className = "ace_layer ace_marker-layer"), + u.appendChild(this.element); + }; + (function () { + function u(h, r, o, i) { + return (h ? 1 : 0) | (r ? 2 : 0) | (o ? 4 : 0) | (i ? 8 : 0); + } + (this.$padding = 0), + (this.setPadding = function (h) { + this.$padding = h; + }), + (this.setSession = function (h) { + this.session = h; + }), + (this.setMarkers = function (h) { + this.markers = h; + }), + (this.elt = function (h, r) { + var o = -1 != this.i && this.element.childNodes[this.i]; + o + ? this.i++ + : ((o = document.createElement("div")), + this.element.appendChild(o), + (this.i = -1)), + (o.style.cssText = r), + (o.className = h); + }), + (this.update = function (h) { + if (h) { + var r; + for (var o in ((this.config = h), + (this.i = 0), + this.markers)) { + var i = this.markers[o]; + if (i.range) { + var c = i.range.clipRows(h.firstRow, h.lastRow); + if (!c.isEmpty()) + if ( + ((c = c.toScreenRange(this.session)), i.renderer) + ) { + var l = this.$getTop(c.start.row, h); + i.renderer( + r, + c, + this.$padding + c.start.column * h.characterWidth, + l, + h + ); + } else + "fullLine" == i.type + ? this.drawFullLineMarker(r, c, i.clazz, h) + : "screenLine" == i.type + ? this.drawScreenLineMarker(r, c, i.clazz, h) + : c.isMultiLine() + ? "text" == i.type + ? this.drawTextMarker(r, c, i.clazz, h) + : this.drawMultiLineMarker(r, c, i.clazz, h) + : this.drawSingleLineMarker( + r, + c, + i.clazz + " ace_start ace_br15", + h + ); + } else i.update(r, this, this.session, h); + } + if (-1 != this.i) + for (; this.i < this.element.childElementCount; ) + this.element.removeChild(this.element.lastChild); + } + }), + (this.$getTop = function (h, r) { + return (h - r.firstRowScreen) * r.lineHeight; + }), + (this.drawTextMarker = function (h, r, o, i, c) { + for ( + var l = this.session, + g = r.start.row, + b = r.end.row, + y = g, + x = 0, + T = 0, + O = l.getScreenLastRowColumn(y), + M = new m(y, r.start.column, y, T); + y <= b; + y++ + ) + (M.start.row = M.end.row = y), + (M.start.column = + y == g ? r.start.column : l.getRowWrapIndent(y)), + (M.end.column = O), + (x = T), + (T = O), + (O = + y + 1 < b + ? l.getScreenLastRowColumn(y + 1) + : y == b + ? 0 + : r.end.column), + this.drawSingleLineMarker( + h, + M, + o + + (y == g ? " ace_start" : "") + + " ace_br" + + u( + y == g || (y == g + 1 && r.start.column), + x < T, + T > O, + y == b + ), + i, + y == b ? 0 : 1, + c + ); + }), + (this.drawMultiLineMarker = function (h, r, o, i, c) { + var x, + l = this.$padding, + g = i.lineHeight, + b = this.$getTop(r.start.row, i), + y = l + r.start.column * i.characterWidth; + if ( + ((c = c || ""), + this.session.$bidiHandler.isBidiRow(r.start.row) + ? (((x = r.clone()).end.row = x.start.row), + (x.end.column = this.session.getLine( + x.start.row + ).length), + this.drawBidiSingleLineMarker( + h, + x, + o + " ace_br1 ace_start", + i, + null, + c + )) + : this.elt( + o + " ace_br1 ace_start", + "height:" + + g + + "px;right:0;top:" + + b + + "px;left:" + + y + + "px;" + + (c || "") + ), + this.session.$bidiHandler.isBidiRow(r.end.row) + ? (((x = r.clone()).start.row = x.end.row), + (x.start.column = 0), + this.drawBidiSingleLineMarker( + h, + x, + o + " ace_br12", + i, + null, + c + )) + : ((b = this.$getTop(r.end.row, i)), + this.elt( + o + " ace_br12", + "height:" + + g + + "px;width:" + + r.end.column * i.characterWidth + + "px;top:" + + b + + "px;left:" + + l + + "px;" + + (c || "") + )), + !((g = (r.end.row - r.start.row - 1) * i.lineHeight) <= 0)) + ) { + b = this.$getTop(r.start.row + 1, i); + var O = (r.start.column ? 1 : 0) | (r.end.column ? 0 : 8); + this.elt( + o + (O ? " ace_br" + O : ""), + "height:" + + g + + "px;right:0;top:" + + b + + "px;left:" + + l + + "px;" + + (c || "") + ); + } + }), + (this.drawSingleLineMarker = function (h, r, o, i, c, l) { + if (this.session.$bidiHandler.isBidiRow(r.start.row)) + return this.drawBidiSingleLineMarker(h, r, o, i, c, l); + var g = i.lineHeight, + b = + (r.end.column + (c || 0) - r.start.column) * + i.characterWidth, + y = this.$getTop(r.start.row, i); + this.elt( + o, + "height:" + + g + + "px;width:" + + b + + "px;top:" + + y + + "px;left:" + + (this.$padding + r.start.column * i.characterWidth) + + "px;" + + (l || "") + ); + }), + (this.drawBidiSingleLineMarker = function (h, r, o, i, c, l) { + var g = i.lineHeight, + b = this.$getTop(r.start.row, i), + y = this.$padding; + this.session.$bidiHandler + .getSelections(r.start.column, r.end.column) + .forEach(function (T) { + this.elt( + o, + "height:" + + g + + "px;width:" + + T.width + + (c || 0) + + "px;top:" + + b + + "px;left:" + + (y + T.left) + + "px;" + + (l || "") + ); + }, this); + }), + (this.drawFullLineMarker = function (h, r, o, i, c) { + var l = this.$getTop(r.start.row, i), + g = i.lineHeight; + r.start.row != r.end.row && + (g += this.$getTop(r.end.row, i) - l), + this.elt( + o, + "height:" + + g + + "px;top:" + + l + + "px;left:0;right:0;" + + (c || "") + ); + }), + (this.drawScreenLineMarker = function (h, r, o, i, c) { + var l = this.$getTop(r.start.row, i); + this.elt( + o, + "height:" + + i.lineHeight + + "px;top:" + + l + + "px;left:0;right:0;" + + (c || "") + ); + }); + }.call(d.prototype), + (f.Marker = d)); + } + ), + ace.define( + "ace/layer/text", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/dom", + "ace/lib/lang", + "ace/layer/lines", + "ace/lib/event_emitter", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/oop"), + s = n("../lib/dom"), + d = n("../lib/lang"), + u = n("./lines").Lines, + h = n("../lib/event_emitter").EventEmitter, + r = function (o) { + (this.dom = s), + (this.element = this.dom.createElement("div")), + (this.element.className = "ace_layer ace_text-layer"), + o.appendChild(this.element), + (this.$updateEolChar = this.$updateEolChar.bind(this)), + (this.$lines = new u(this.element)); + }; + (function () { + m.implement(this, h), + (this.EOF_CHAR = "\xb6"), + (this.EOL_CHAR_LF = "\xac"), + (this.EOL_CHAR_CRLF = "\xa4"), + (this.EOL_CHAR = this.EOL_CHAR_LF), + (this.TAB_CHAR = "\u2014"), + (this.SPACE_CHAR = "\xb7"), + (this.$padding = 0), + (this.MAX_LINE_LENGTH = 1e4), + (this.$updateEolChar = function () { + var o = this.session.doc, + c = + "\n" == o.getNewLineCharacter() && + "windows" != o.getNewLineMode() + ? this.EOL_CHAR_LF + : this.EOL_CHAR_CRLF; + if (this.EOL_CHAR != c) return (this.EOL_CHAR = c), !0; + }), + (this.setPadding = function (o) { + (this.$padding = o), + (this.element.style.margin = "0 " + o + "px"); + }), + (this.getLineHeight = function () { + return this.$fontMetrics.$characterSize.height || 0; + }), + (this.getCharacterWidth = function () { + return this.$fontMetrics.$characterSize.width || 0; + }), + (this.$setFontMetrics = function (o) { + (this.$fontMetrics = o), + this.$fontMetrics.on( + "changeCharacterSize", + function (i) { + this._signal("changeCharacterSize", i); + }.bind(this) + ), + this.$pollSizeChanges(); + }), + (this.checkForSizeChanges = function () { + this.$fontMetrics.checkForSizeChanges(); + }), + (this.$pollSizeChanges = function () { + return (this.$pollSizeChangesTimer = this.$fontMetrics.$pollSizeChanges()); + }), + (this.setSession = function (o) { + (this.session = o), o && this.$computeTabString(); + }), + (this.showInvisibles = !1), + (this.showSpaces = !1), + (this.showTabs = !1), + (this.showEOL = !1), + (this.setShowInvisibles = function (o) { + return ( + this.showInvisibles != o && + ((this.showInvisibles = o), + "string" == typeof o + ? ((this.showSpaces = /tab/i.test(o)), + (this.showTabs = /space/i.test(o)), + (this.showEOL = /eol/i.test(o))) + : (this.showSpaces = this.showTabs = this.showEOL = o), + this.$computeTabString(), + !0) + ); + }), + (this.displayIndentGuides = !0), + (this.setDisplayIndentGuides = function (o) { + return ( + this.displayIndentGuides != o && + ((this.displayIndentGuides = o), + this.$computeTabString(), + !0) + ); + }), + (this.$tabStrings = []), + (this.onChangeTabSize = this.$computeTabString = function () { + var o = this.session.getTabSize(); + this.tabSize = o; + for (var i = (this.$tabStrings = [0]), c = 1; c < o + 1; c++) + this.showTabs + ? (((l = this.dom.createElement("span")).className = + "ace_invisible ace_invisible_tab"), + (l.textContent = d.stringRepeat(this.TAB_CHAR, c)), + i.push(l)) + : i.push( + this.dom.createTextNode( + d.stringRepeat(" ", c), + this.element + ) + ); + if (this.displayIndentGuides) { + this.$indentGuideRe = /\s\S| \t|\t |\s$/; + var l, + g = "ace_indent-guide", + b = this.showSpaces + ? " ace_invisible ace_invisible_space" + : "", + y = d.stringRepeat( + this.showSpaces ? this.SPACE_CHAR : " ", + this.tabSize + ), + x = this.showTabs + ? " ace_invisible ace_invisible_tab" + : "", + T = this.showTabs + ? d.stringRepeat(this.TAB_CHAR, this.tabSize) + : y; + ((l = this.dom.createElement("span")).className = g + b), + (l.textContent = y), + (this.$tabStrings[" "] = l), + ((l = this.dom.createElement("span")).className = g + x), + (l.textContent = T), + (this.$tabStrings["\t"] = l); + } + }), + (this.updateLines = function (o, i, c) { + if ( + this.config.lastRow != o.lastRow || + this.config.firstRow != o.firstRow + ) + return this.update(o); + this.config = o; + for ( + var l = Math.max(i, o.firstRow), + g = Math.min(c, o.lastRow), + b = this.element.childNodes, + y = 0, + T = o.firstRow; + T < l; + T++ + ) { + if ((O = this.session.getFoldLine(T))) { + if (O.containsRow(l)) { + l = O.start.row; + break; + } + T = O.end.row; + } + y++; + } + for ( + var O, + x = !1, + M = (O = this.session.getNextFoldLine((T = l))) + ? O.start.row + : 1 / 0; + T > M && + (M = (O = this.session.getNextFoldLine( + (T = O.end.row + 1), + O + )) + ? O.start.row + : 1 / 0), + !(T > g); + + ) { + var A = b[y++]; + if (A) { + this.dom.removeChildren(A), + this.$renderLine(A, T, T == M && O), + x && + (A.style.top = + this.$lines.computeLineTop(T, o, this.session) + + "px"); + var S = + o.lineHeight * this.session.getRowLength(T) + "px"; + A.style.height != S && ((x = !0), (A.style.height = S)); + } + T++; + } + if (x) + for (; y < this.$lines.cells.length; ) { + var w = this.$lines.cells[y++]; + w.element.style.top = + this.$lines.computeLineTop(w.row, o, this.session) + + "px"; + } + }), + (this.scrollLines = function (o) { + var i = this.config; + if (((this.config = o), this.$lines.pageChanged(i, o))) + return this.update(o); + this.$lines.moveContainer(o); + var c = o.lastRow; + if (!i || (i ? i.lastRow : -1) < o.firstRow) + return this.update(o); + if (c < i.firstRow) return this.update(o); + if (!i || i.lastRow < o.firstRow) return this.update(o); + if (o.lastRow < i.firstRow) return this.update(o); + if (i.firstRow < o.firstRow) + for ( + var g = this.session.getFoldedRowCount( + i.firstRow, + o.firstRow - 1 + ); + g > 0; + g-- + ) + this.$lines.shift(); + if (i.lastRow > o.lastRow) + for ( + g = this.session.getFoldedRowCount( + o.lastRow + 1, + i.lastRow + ); + g > 0; + g-- + ) + this.$lines.pop(); + o.firstRow < i.firstRow && + this.$lines.unshift( + this.$renderLinesFragment(o, o.firstRow, i.firstRow - 1) + ), + o.lastRow > i.lastRow && + this.$lines.push( + this.$renderLinesFragment(o, i.lastRow + 1, o.lastRow) + ); + }), + (this.$renderLinesFragment = function (o, i, c) { + for ( + var l = [], + g = i, + b = this.session.getNextFoldLine(g), + y = b ? b.start.row : 1 / 0; + g > y && + (y = (b = this.session.getNextFoldLine( + (g = b.end.row + 1), + b + )) + ? b.start.row + : 1 / 0), + !(g > c); + + ) { + var x = this.$lines.createCell(g, o, this.session), + T = x.element; + this.dom.removeChildren(T), + s.setStyle( + T.style, + "height", + this.$lines.computeLineHeight(g, o, this.session) + "px" + ), + s.setStyle( + T.style, + "top", + this.$lines.computeLineTop(g, o, this.session) + "px" + ), + this.$renderLine(T, g, g == y && b), + (T.className = this.$useLineGroups() + ? "ace_line_group" + : "ace_line"), + l.push(x), + g++; + } + return l; + }), + (this.update = function (o) { + this.$lines.moveContainer(o), (this.config = o); + for ( + var i = o.firstRow, c = o.lastRow, l = this.$lines; + l.getLength(); + + ) + l.pop(); + l.push(this.$renderLinesFragment(o, i, c)); + }), + (this.$textToken = { text: !0, rparen: !0, lparen: !0 }), + (this.$renderToken = function (o, i, c, l) { + for ( + var x, + g = this, + b = /(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g, + y = this.dom.createFragment(this.element), + T = 0; + (x = b.exec(l)); + + ) { + var O = x[1], + M = x[2], + A = x[3], + S = x[4], + w = x[5]; + if (g.showSpaces || !M) { + var I = T != x.index ? l.slice(T, x.index) : ""; + if ( + ((T = x.index + x[0].length), + I && + y.appendChild( + this.dom.createTextNode(I, this.element) + ), + O) + ) { + var C = g.session.getScreenTabSize(i + x.index); + y.appendChild(g.$tabStrings[C].cloneNode(!0)), + (i += C - 1); + } else + M + ? g.showSpaces + ? (((L = this.dom.createElement("span")).className = + "ace_invisible ace_invisible_space"), + (L.textContent = d.stringRepeat( + g.SPACE_CHAR, + M.length + )), + y.appendChild(L)) + : y.appendChild( + this.com.createTextNode(M, this.element) + ) + : A + ? (((L = this.dom.createElement("span")).className = + "ace_invisible ace_invisible_space ace_invalid"), + (L.textContent = d.stringRepeat( + g.SPACE_CHAR, + A.length + )), + y.appendChild(L)) + : S + ? ((i += 1), + ((L = this.dom.createElement("span")).style.width = + 2 * g.config.characterWidth + "px"), + (L.className = g.showSpaces + ? "ace_cjk ace_invisible ace_invisible_space" + : "ace_cjk"), + (L.textContent = g.showSpaces ? g.SPACE_CHAR : S), + y.appendChild(L)) + : w && + ((i += 1), + ((L = this.dom.createElement("span")).style.width = + 2 * g.config.characterWidth + "px"), + (L.className = "ace_cjk"), + (L.textContent = w), + y.appendChild(L)); + } + } + if ( + (y.appendChild( + this.dom.createTextNode(T ? l.slice(T) : l, this.element) + ), + this.$textToken[c.type]) + ) + o.appendChild(y); + else { + var F = "ace_" + c.type.replace(/\./g, " ace_"), + L = this.dom.createElement("span"); + "fold" == c.type && + (L.style.width = + c.value.length * this.config.characterWidth + "px"), + (L.className = F), + L.appendChild(y), + o.appendChild(L); + } + return i + l.length; + }), + (this.renderIndentGuide = function (o, i, c) { + var l = i.search(this.$indentGuideRe); + if (l <= 0 || l >= c) return i; + if (" " == i[0]) { + for ( + var g = (l -= l % this.tabSize) / this.tabSize, b = 0; + b < g; + b++ + ) + o.appendChild(this.$tabStrings[" "].cloneNode(!0)); + return i.substr(l); + } + if ("\t" == i[0]) { + for (b = 0; b < l; b++) + o.appendChild(this.$tabStrings["\t"].cloneNode(!0)); + return i.substr(l); + } + return i; + }), + (this.$createLineElement = function (o) { + var i = this.dom.createElement("div"); + return ( + (i.className = "ace_line"), + (i.style.height = this.config.lineHeight + "px"), + i + ); + }), + (this.$renderWrappedLine = function (o, i, c) { + var l = 0, + g = 0, + b = c[0], + y = 0, + x = this.$createLineElement(); + o.appendChild(x); + for (var T = 0; T < i.length; T++) { + var O = i[T], + M = O.value; + if (0 == T && this.displayIndentGuides) { + if ( + ((l = M.length), !(M = this.renderIndentGuide(x, M, b))) + ) + continue; + l -= M.length; + } + if (l + M.length < b) + (y = this.$renderToken(x, y, O, M)), (l += M.length); + else { + for (; l + M.length >= b; ) + (y = this.$renderToken(x, y, O, M.substring(0, b - l))), + (M = M.substring(b - l)), + (l = b), + (x = this.$createLineElement()), + o.appendChild(x), + x.appendChild( + this.dom.createTextNode( + d.stringRepeat("\xa0", c.indent), + this.element + ) + ), + (y = 0), + (b = c[++g] || Number.MAX_VALUE); + 0 != M.length && + ((l += M.length), (y = this.$renderToken(x, y, O, M))); + } + } + c[c.length - 1] > this.MAX_LINE_LENGTH && + this.$renderOverflowMessage(x, y, null, "", !0); + }), + (this.$renderSimpleLine = function (o, i) { + var c = 0, + l = i[0], + g = l.value; + this.displayIndentGuides && + (g = this.renderIndentGuide(o, g)), + g && (c = this.$renderToken(o, c, l, g)); + for (var b = 1; b < i.length; b++) { + if ( + c + (g = (l = i[b]).value).length > + this.MAX_LINE_LENGTH + ) + return this.$renderOverflowMessage(o, c, l, g); + c = this.$renderToken(o, c, l, g); + } + }), + (this.$renderOverflowMessage = function (o, i, c, l, g) { + c && + this.$renderToken( + o, + i, + c, + l.slice(0, this.MAX_LINE_LENGTH - i) + ); + var b = this.dom.createElement("span"); + (b.className = + "ace_inline_button ace_keyword ace_toggle_wrap"), + (b.textContent = g ? "" : ""), + o.appendChild(b); + }), + (this.$renderLine = function (o, i, c) { + if ((!c && 0 != c && (c = this.session.getFoldLine(i)), c)) + var l = this.$getFoldLineTokens(i, c); + else l = this.session.getTokens(i); + var g = o; + if (l.length) { + var b = this.session.getRowSplitData(i); + b && b.length + ? (this.$renderWrappedLine(o, l, b), (g = o.lastChild)) + : ((g = o), + this.$useLineGroups() && + ((g = this.$createLineElement()), o.appendChild(g)), + this.$renderSimpleLine(g, l)); + } else + this.$useLineGroups() && + ((g = this.$createLineElement()), o.appendChild(g)); + if (this.showEOL && g) { + c && (i = c.end.row); + var y = this.dom.createElement("span"); + (y.className = "ace_invisible ace_invisible_eol"), + (y.textContent = + i == this.session.getLength() - 1 + ? this.EOF_CHAR + : this.EOL_CHAR), + g.appendChild(y); + } + }), + (this.$getFoldLineTokens = function (o, i) { + var c = this.session, + l = [], + b = c.getTokens(o); + return ( + i.walk( + function (y, x, T, O, M) { + null != y + ? l.push({ type: "fold", value: y }) + : (M && (b = c.getTokens(x)), + b.length && + (function (y, x, T) { + for ( + var O = 0, M = 0; + M + y[O].value.length < x; + + ) + if ( + ((M += y[O].value.length), ++O == y.length) + ) + return; + for ( + M != x && + ((A = y[O].value.substring(x - M)).length > + T - x && (A = A.substring(0, T - x)), + l.push({ type: y[O].type, value: A }), + (M = x + A.length), + (O += 1)); + M < T && O < y.length; + + ) { + var A; + l.push( + (A = y[O].value).length + M > T + ? { + type: y[O].type, + value: A.substring(0, T - M), + } + : y[O] + ), + (M += A.length), + (O += 1); + } + })(b, O, T)); + }, + i.end.row, + this.session.getLine(i.end.row).length + ), + l + ); + }), + (this.$useLineGroups = function () { + return this.session.getUseWrapMode(); + }), + (this.destroy = function () {}); + }.call(r.prototype), + (f.Text = r)); + } + ), + ace.define( + "ace/layer/cursor", + ["require", "exports", "module", "ace/lib/dom"], + function (n, f, _) { + "use strict"; + var m = n("../lib/dom"), + s = function (d) { + (this.element = m.createElement("div")), + (this.element.className = "ace_layer ace_cursor-layer"), + d.appendChild(this.element), + (this.isVisible = !1), + (this.isBlinking = !0), + (this.blinkInterval = 1e3), + (this.smoothBlinking = !1), + (this.cursors = []), + (this.cursor = this.addCursor()), + m.addCssClass(this.element, "ace_hidden-cursors"), + (this.$updateCursors = this.$updateOpacity.bind(this)); + }; + (function () { + (this.$updateOpacity = function (d) { + for (var u = this.cursors, h = u.length; h--; ) + m.setStyle(u[h].style, "opacity", d ? "" : "0"); + }), + (this.$startCssAnimation = function () { + for (var d = this.cursors, u = d.length; u--; ) + d[u].style.animationDuration = this.blinkInterval + "ms"; + (this.$isAnimating = !0), + setTimeout( + function () { + this.$isAnimating && + m.addCssClass(this.element, "ace_animate-blinking"); + }.bind(this) + ); + }), + (this.$stopCssAnimation = function () { + (this.$isAnimating = !1), + m.removeCssClass(this.element, "ace_animate-blinking"); + }), + (this.$padding = 0), + (this.setPadding = function (d) { + this.$padding = d; + }), + (this.setSession = function (d) { + this.session = d; + }), + (this.setBlinking = function (d) { + d != this.isBlinking && + ((this.isBlinking = d), this.restartTimer()); + }), + (this.setBlinkInterval = function (d) { + d != this.blinkInterval && + ((this.blinkInterval = d), this.restartTimer()); + }), + (this.setSmoothBlinking = function (d) { + d != this.smoothBlinking && + ((this.smoothBlinking = d), + m.setCssClass(this.element, "ace_smooth-blinking", d), + this.$updateCursors(!0), + this.restartTimer()); + }), + (this.addCursor = function () { + var d = m.createElement("div"); + return ( + (d.className = "ace_cursor"), + this.element.appendChild(d), + this.cursors.push(d), + d + ); + }), + (this.removeCursor = function () { + if (this.cursors.length > 1) { + var d = this.cursors.pop(); + return d.parentNode.removeChild(d), d; + } + }), + (this.hideCursor = function () { + (this.isVisible = !1), + m.addCssClass(this.element, "ace_hidden-cursors"), + this.restartTimer(); + }), + (this.showCursor = function () { + (this.isVisible = !0), + m.removeCssClass(this.element, "ace_hidden-cursors"), + this.restartTimer(); + }), + (this.restartTimer = function () { + var d = this.$updateCursors; + if ( + (clearInterval(this.intervalId), + clearTimeout(this.timeoutId), + this.$stopCssAnimation(), + this.smoothBlinking && + ((this.$isSmoothBlinking = !1), + m.removeCssClass(this.element, "ace_smooth-blinking")), + d(!0), + this.isBlinking && this.blinkInterval && this.isVisible) + ) + if ( + (this.smoothBlinking && + ((this.$isSmoothBlinking = !0), + setTimeout( + function () { + this.$isSmoothBlinking && + m.addCssClass( + this.element, + "ace_smooth-blinking" + ); + }.bind(this) + )), + m.HAS_CSS_ANIMATION) + ) + this.$startCssAnimation(); + else { + var u = function () { + this.timeoutId = setTimeout(function () { + d(!1); + }, 0.6 * this.blinkInterval); + }.bind(this); + (this.intervalId = setInterval(function () { + d(!0), u(); + }, this.blinkInterval)), + u(); + } + else this.$stopCssAnimation(); + }), + (this.getPixelPosition = function (d, u) { + if (!this.config || !this.session) return { left: 0, top: 0 }; + d || (d = this.session.selection.getCursor()); + var h = this.session.documentToScreenPosition(d); + return { + left: + this.$padding + + (this.session.$bidiHandler.isBidiRow(h.row, d.row) + ? this.session.$bidiHandler.getPosLeft(h.column) + : h.column * this.config.characterWidth), + top: + (h.row - (u ? this.config.firstRowScreen : 0)) * + this.config.lineHeight, + }; + }), + (this.isCursorInView = function (d, u) { + return d.top >= 0 && d.top < u.maxHeight; + }), + (this.update = function (d) { + this.config = d; + var u = this.session.$selectionMarkers, + h = 0, + r = 0; + (void 0 === u || 0 === u.length) && (u = [{ cursor: null }]), + (h = 0); + for (var o = u.length; h < o; h++) { + var i = this.getPixelPosition(u[h].cursor, !0); + if ( + !((i.top > d.height + d.offset || i.top < 0) && h > 1) + ) { + var c = this.cursors[r++] || this.addCursor(), + l = c.style; + this.drawCursor + ? this.drawCursor(c, i, d, u[h], this.session) + : this.isCursorInView(i, d) + ? (m.setStyle(l, "display", "block"), + m.translate(c, i.left, i.top), + m.setStyle( + l, + "width", + Math.round(d.characterWidth) + "px" + ), + m.setStyle(l, "height", d.lineHeight + "px")) + : m.setStyle(l, "display", "none"); + } + } + for (; this.cursors.length > r; ) this.removeCursor(); + var g = this.session.getOverwrite(); + this.$setOverwrite(g), + (this.$pixelPos = i), + this.restartTimer(); + }), + (this.drawCursor = null), + (this.$setOverwrite = function (d) { + d != this.overwrite && + ((this.overwrite = d), + d + ? m.addCssClass(this.element, "ace_overwrite-cursors") + : m.removeCssClass( + this.element, + "ace_overwrite-cursors" + )); + }), + (this.destroy = function () { + clearInterval(this.intervalId), clearTimeout(this.timeoutId); + }); + }.call(s.prototype), + (f.Cursor = s)); + } + ), + ace.define( + "ace/scrollbar", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/dom", + "ace/lib/event", + "ace/lib/event_emitter", + ], + function (n, f, _) { + "use strict"; + var m = n("./lib/oop"), + s = n("./lib/dom"), + d = n("./lib/event"), + u = n("./lib/event_emitter").EventEmitter, + h = 32768, + r = function (c) { + (this.element = s.createElement("div")), + (this.element.className = + "ace_scrollbar ace_scrollbar" + this.classSuffix), + (this.inner = s.createElement("div")), + (this.inner.className = "ace_scrollbar-inner"), + (this.inner.textContent = "\xa0"), + this.element.appendChild(this.inner), + c.appendChild(this.element), + this.setVisible(!1), + (this.skipEvent = !1), + d.addListener( + this.element, + "scroll", + this.onScroll.bind(this) + ), + d.addListener(this.element, "mousedown", d.preventDefault); + }; + (function () { + m.implement(this, u), + (this.setVisible = function (c) { + (this.element.style.display = c ? "" : "none"), + (this.isVisible = c), + (this.coeff = 1); + }); + }.call(r.prototype)); + var o = function (c, l) { + r.call(this, c), + (this.scrollTop = 0), + (this.scrollHeight = 0), + (l.$scrollbarWidth = this.width = s.scrollbarWidth( + c.ownerDocument + )), + (this.inner.style.width = this.element.style.width = + (this.width || 15) + 5 + "px"), + (this.$minWidth = 0); + }; + m.inherits(o, r), + function () { + (this.classSuffix = "-v"), + (this.onScroll = function () { + if (!this.skipEvent) { + if ( + ((this.scrollTop = this.element.scrollTop), + 1 != this.coeff) + ) { + var c = this.element.clientHeight / this.scrollHeight; + this.scrollTop = + (this.scrollTop * (1 - c)) / (this.coeff - c); + } + this._emit("scroll", { data: this.scrollTop }); + } + this.skipEvent = !1; + }), + (this.getWidth = function () { + return Math.max( + this.isVisible ? this.width : 0, + this.$minWidth || 0 + ); + }), + (this.setHeight = function (c) { + this.element.style.height = c + "px"; + }), + (this.setInnerHeight = this.setScrollHeight = function (c) { + (this.scrollHeight = c), + c > h + ? ((this.coeff = h / c), (c = h)) + : 1 != this.coeff && (this.coeff = 1), + (this.inner.style.height = c + "px"); + }), + (this.setScrollTop = function (c) { + this.scrollTop != c && + ((this.skipEvent = !0), + (this.scrollTop = c), + (this.element.scrollTop = c * this.coeff)); + }); + }.call(o.prototype); + var i = function (c, l) { + r.call(this, c), + (this.scrollLeft = 0), + (this.height = l.$scrollbarWidth), + (this.inner.style.height = this.element.style.height = + (this.height || 15) + 5 + "px"); + }; + m.inherits(i, r), + function () { + (this.classSuffix = "-h"), + (this.onScroll = function () { + this.skipEvent || + ((this.scrollLeft = this.element.scrollLeft), + this._emit("scroll", { data: this.scrollLeft })), + (this.skipEvent = !1); + }), + (this.getHeight = function () { + return this.isVisible ? this.height : 0; + }), + (this.setWidth = function (c) { + this.element.style.width = c + "px"; + }), + (this.setInnerWidth = function (c) { + this.inner.style.width = c + "px"; + }), + (this.setScrollWidth = function (c) { + this.inner.style.width = c + "px"; + }), + (this.setScrollLeft = function (c) { + this.scrollLeft != c && + ((this.skipEvent = !0), + (this.scrollLeft = this.element.scrollLeft = c)); + }); + }.call(i.prototype), + (f.ScrollBar = o), + (f.ScrollBarV = o), + (f.ScrollBarH = i), + (f.VScrollBar = o), + (f.HScrollBar = i); + } + ), + ace.define( + "ace/renderloop", + ["require", "exports", "module", "ace/lib/event"], + function (n, f, _) { + "use strict"; + var m = n("./lib/event"), + s = function (d, u) { + (this.onRender = d), + (this.pending = !1), + (this.changes = 0), + (this.$recursionLimit = 2), + (this.window = u || window); + var h = this; + this._flush = function (r) { + h.pending = !1; + var o = h.changes; + if ( + (o && (m.blockIdle(100), (h.changes = 0), h.onRender(o)), + h.changes) + ) { + if (h.$recursionLimit-- < 0) return; + h.schedule(); + } else h.$recursionLimit = 2; + }; + }; + (function () { + (this.schedule = function (d) { + (this.changes = this.changes | d), + this.changes && + !this.pending && + (m.nextFrame(this._flush), (this.pending = !0)); + }), + (this.clear = function (d) { + var u = this.changes; + return (this.changes = 0), u; + }); + }.call(s.prototype), + (f.RenderLoop = s)); + } + ), + ace.define( + "ace/layer/font_metrics", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/dom", + "ace/lib/lang", + "ace/lib/event", + "ace/lib/useragent", + "ace/lib/event_emitter", + ], + function (n, f, _) { + var m = n("../lib/oop"), + s = n("../lib/dom"), + d = n("../lib/lang"), + u = n("../lib/event"), + h = n("../lib/useragent"), + r = n("../lib/event_emitter").EventEmitter, + o = 256, + i = "function" == typeof ResizeObserver, + c = 200, + l = (f.FontMetrics = function (g) { + (this.el = s.createElement("div")), + this.$setMeasureNodeStyles(this.el.style, !0), + (this.$main = s.createElement("div")), + this.$setMeasureNodeStyles(this.$main.style), + (this.$measureNode = s.createElement("div")), + this.$setMeasureNodeStyles(this.$measureNode.style), + this.el.appendChild(this.$main), + this.el.appendChild(this.$measureNode), + g.appendChild(this.el), + (this.$measureNode.textContent = d.stringRepeat("X", o)), + (this.$characterSize = { width: 0, height: 0 }), + i ? this.$addObserver() : this.checkForSizeChanges(); + }); + (function () { + m.implement(this, r), + (this.$characterSize = { width: 0, height: 0 }), + (this.$setMeasureNodeStyles = function (g, b) { + (g.width = g.height = "auto"), + (g.left = g.top = "0px"), + (g.visibility = "hidden"), + (g.position = "absolute"), + (g.whiteSpace = "pre"), + h.isIE < 8 + ? (g["font-family"] = "inherit") + : (g.font = "inherit"), + (g.overflow = b ? "hidden" : "visible"); + }), + (this.checkForSizeChanges = function (g) { + if ( + (void 0 === g && (g = this.$measureSizes()), + g && + (this.$characterSize.width !== g.width || + this.$characterSize.height !== g.height)) + ) { + this.$measureNode.style.fontWeight = "bold"; + var b = this.$measureSizes(); + (this.$measureNode.style.fontWeight = ""), + (this.$characterSize = g), + (this.charSizes = Object.create(null)), + (this.allowBoldFonts = + b && b.width === g.width && b.height === g.height), + this._emit("changeCharacterSize", { data: g }); + } + }), + (this.$addObserver = function () { + var g = this; + (this.$observer = new window.ResizeObserver(function (b) { + g.checkForSizeChanges(); + })), + this.$observer.observe(this.$measureNode); + }), + (this.$pollSizeChanges = function () { + if (this.$pollSizeChangesTimer || this.$observer) + return this.$pollSizeChangesTimer; + var g = this; + return (this.$pollSizeChangesTimer = u.onIdle(function b() { + g.checkForSizeChanges(), u.onIdle(b, 500); + }, 500)); + }), + (this.setPolling = function (g) { + g + ? this.$pollSizeChanges() + : this.$pollSizeChangesTimer && + (clearInterval(this.$pollSizeChangesTimer), + (this.$pollSizeChangesTimer = 0)); + }), + (this.$measureSizes = function (g) { + var b = { + height: (g || this.$measureNode).clientHeight, + width: (g || this.$measureNode).clientWidth / o, + }; + return 0 === b.width || 0 === b.height ? null : b; + }), + (this.$measureCharWidth = function (g) { + return ( + (this.$main.textContent = d.stringRepeat(g, o)), + this.$main.getBoundingClientRect().width / o + ); + }), + (this.getCharacterWidth = function (g) { + var b = this.charSizes[g]; + return ( + void 0 === b && + (b = this.charSizes[g] = + this.$measureCharWidth(g) / this.$characterSize.width), + b + ); + }), + (this.destroy = function () { + clearInterval(this.$pollSizeChangesTimer), + this.$observer && this.$observer.disconnect(), + this.el && + this.el.parentNode && + this.el.parentNode.removeChild(this.el); + }), + (this.$getZoom = function g(b) { + return b && b.parentElement + ? (window.getComputedStyle(b).zoom || 1) * + g(b.parentElement) + : 1; + }), + (this.$initTransformMeasureNodes = function () { + var g = function (b, y) { + return [ + "div", + { + style: + "position: absolute;top:" + + b + + "px;left:" + + y + + "px;", + }, + ]; + }; + this.els = s.buildDom( + [g(0, 0), g(c, 0), g(0, c), g(c, c)], + this.el + ); + }), + (this.transformCoordinates = function (g, b) { + function x(ne, ae, le) { + var Oe = ne[1] * ae[0] - ne[0] * ae[1]; + return [ + (-ae[1] * le[0] + ae[0] * le[1]) / Oe, + (+ne[1] * le[0] - ne[0] * le[1]) / Oe, + ]; + } + function T(ne, ae) { + return [ne[0] - ae[0], ne[1] - ae[1]]; + } + function O(ne, ae) { + return [ne[0] + ae[0], ne[1] + ae[1]]; + } + function M(ne, ae) { + return [ne * ae[0], ne * ae[1]]; + } + function A(ne) { + var ae = ne.getBoundingClientRect(); + return [ae.left, ae.top]; + } + g && (g = M(1 / this.$getZoom(this.el), g)), + this.els || this.$initTransformMeasureNodes(); + var S = A(this.els[0]), + w = A(this.els[1]), + I = A(this.els[2]), + C = A(this.els[3]), + L = x(T(C, w), T(C, I), T(O(w, I), O(C, S))), + F = M(1 + L[0], T(w, S)), + ie = M(1 + L[1], T(I, S)); + if (b) { + var Y = b, + Z = (L[0] * Y[0]) / c + (L[1] * Y[1]) / c + 1, + ee = O(M(Y[0], F), M(Y[1], ie)); + return O(M(1 / Z / c, ee), S); + } + var $ = T(g, S), + J = x(T(F, M(L[0], $)), T(ie, M(L[1], $)), $); + return M(c, J); + }); + }.call(l.prototype)); + } + ), + ace.define( + "ace/virtual_renderer", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/dom", + "ace/config", + "ace/layer/gutter", + "ace/layer/marker", + "ace/layer/text", + "ace/layer/cursor", + "ace/scrollbar", + "ace/scrollbar", + "ace/renderloop", + "ace/layer/font_metrics", + "ace/lib/event_emitter", + "ace/lib/useragent", + ], + function (n, f, _) { + "use strict"; + var m = n("./lib/oop"), + s = n("./lib/dom"), + d = n("./config"), + u = n("./layer/gutter").Gutter, + h = n("./layer/marker").Marker, + r = n("./layer/text").Text, + o = n("./layer/cursor").Cursor, + i = n("./scrollbar").HScrollBar, + c = n("./scrollbar").VScrollBar, + l = n("./renderloop").RenderLoop, + g = n("./layer/font_metrics").FontMetrics, + b = n("./lib/event_emitter").EventEmitter, + y = + '.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}', + x = n("./lib/useragent"), + T = x.isIE; + s.importCssString(y, "ace_editor.css", !1); + var O = function (M, A) { + var S = this; + (this.container = M || s.createElement("div")), + s.addCssClass(this.container, "ace_editor"), + s.HI_DPI && s.addCssClass(this.container, "ace_hidpi"), + this.setTheme(A), + null == d.get("useStrictCSP") && d.set("useStrictCSP", !1), + (this.$gutter = s.createElement("div")), + (this.$gutter.className = "ace_gutter"), + this.container.appendChild(this.$gutter), + this.$gutter.setAttribute("aria-hidden", !0), + (this.scroller = s.createElement("div")), + (this.scroller.className = "ace_scroller"), + this.container.appendChild(this.scroller), + (this.content = s.createElement("div")), + (this.content.className = "ace_content"), + this.scroller.appendChild(this.content), + (this.$gutterLayer = new u(this.$gutter)), + this.$gutterLayer.on( + "changeGutterWidth", + this.onGutterResize.bind(this) + ), + (this.$markerBack = new h(this.content)); + var w = (this.$textLayer = new r(this.content)); + (this.canvas = w.element), + (this.$markerFront = new h(this.content)), + (this.$cursorLayer = new o(this.content)), + (this.$horizScroll = !1), + (this.$vScroll = !1), + (this.scrollBar = this.scrollBarV = new c( + this.container, + this + )), + (this.scrollBarH = new i(this.container, this)), + this.scrollBarV.on("scroll", function (I) { + S.$scrollAnimation || + S.session.setScrollTop(I.data - S.scrollMargin.top); + }), + this.scrollBarH.on("scroll", function (I) { + S.$scrollAnimation || + S.session.setScrollLeft(I.data - S.scrollMargin.left); + }), + (this.scrollTop = 0), + (this.scrollLeft = 0), + (this.cursorPos = { row: 0, column: 0 }), + (this.$fontMetrics = new g(this.container)), + this.$textLayer.$setFontMetrics(this.$fontMetrics), + this.$textLayer.on("changeCharacterSize", function (I) { + S.updateCharacterSize(), + S.onResize( + !0, + S.gutterWidth, + S.$size.width, + S.$size.height + ), + S._signal("changeCharacterSize", I); + }), + (this.$size = { + width: 0, + height: 0, + scrollerHeight: 0, + scrollerWidth: 0, + $dirty: !0, + }), + (this.layerConfig = { + width: 1, + padding: 0, + firstRow: 0, + firstRowScreen: 0, + lastRow: 0, + lineHeight: 0, + characterWidth: 0, + minHeight: 1, + maxHeight: 1, + offset: 0, + height: 1, + gutterOffset: 1, + }), + (this.scrollMargin = { + left: 0, + right: 0, + top: 0, + bottom: 0, + v: 0, + h: 0, + }), + (this.margin = { + left: 0, + right: 0, + top: 0, + bottom: 0, + v: 0, + h: 0, + }), + (this.$keepTextAreaAtCursor = !x.isIOS), + (this.$loop = new l( + this.$renderChanges.bind(this), + this.container.ownerDocument.defaultView + )), + this.$loop.schedule(this.CHANGE_FULL), + this.updateCharacterSize(), + this.setPadding(4), + d.resetOptions(this), + d._signal("renderer", this); + }; + (function () { + (this.CHANGE_CURSOR = 1), + (this.CHANGE_MARKER = 2), + (this.CHANGE_GUTTER = 4), + (this.CHANGE_SCROLL = 8), + (this.CHANGE_LINES = 16), + (this.CHANGE_TEXT = 32), + (this.CHANGE_SIZE = 64), + (this.CHANGE_MARKER_BACK = 128), + (this.CHANGE_MARKER_FRONT = 256), + (this.CHANGE_FULL = 512), + (this.CHANGE_H_SCROLL = 1024), + m.implement(this, b), + (this.updateCharacterSize = function () { + this.$textLayer.allowBoldFonts != this.$allowBoldFonts && + ((this.$allowBoldFonts = this.$textLayer.allowBoldFonts), + this.setStyle("ace_nobold", !this.$allowBoldFonts)), + (this.layerConfig.characterWidth = this.characterWidth = this.$textLayer.getCharacterWidth()), + (this.layerConfig.lineHeight = this.lineHeight = this.$textLayer.getLineHeight()), + this.$updatePrintMargin(), + s.setStyle( + this.scroller.style, + "line-height", + this.lineHeight + "px" + ); + }), + (this.setSession = function (M) { + this.session && + this.session.doc.off( + "changeNewLineMode", + this.onChangeNewLineMode + ), + (this.session = M), + M && + this.scrollMargin.top && + M.getScrollTop() <= 0 && + M.setScrollTop(-this.scrollMargin.top), + this.$cursorLayer.setSession(M), + this.$markerBack.setSession(M), + this.$markerFront.setSession(M), + this.$gutterLayer.setSession(M), + this.$textLayer.setSession(M), + M && + (this.$loop.schedule(this.CHANGE_FULL), + this.session.$setFontMetrics(this.$fontMetrics), + (this.scrollBarH.scrollLeft = this.scrollBarV.scrollTop = null), + (this.onChangeNewLineMode = this.onChangeNewLineMode.bind( + this + )), + this.onChangeNewLineMode(), + this.session.doc.on( + "changeNewLineMode", + this.onChangeNewLineMode + )); + }), + (this.updateLines = function (M, A, S) { + if ( + (void 0 === A && (A = 1 / 0), + this.$changedLines + ? (this.$changedLines.firstRow > M && + (this.$changedLines.firstRow = M), + this.$changedLines.lastRow < A && + (this.$changedLines.lastRow = A)) + : (this.$changedLines = { firstRow: M, lastRow: A }), + this.$changedLines.lastRow < this.layerConfig.firstRow) + ) { + if (!S) return; + this.$changedLines.lastRow = this.layerConfig.lastRow; + } + this.$changedLines.firstRow > this.layerConfig.lastRow || + this.$loop.schedule(this.CHANGE_LINES); + }), + (this.onChangeNewLineMode = function () { + this.$loop.schedule(this.CHANGE_TEXT), + this.$textLayer.$updateEolChar(), + this.session.$bidiHandler.setEolChar( + this.$textLayer.EOL_CHAR + ); + }), + (this.onChangeTabSize = function () { + this.$loop.schedule(this.CHANGE_TEXT | this.CHANGE_MARKER), + this.$textLayer.onChangeTabSize(); + }), + (this.updateText = function () { + this.$loop.schedule(this.CHANGE_TEXT); + }), + (this.updateFull = function (M) { + M + ? this.$renderChanges(this.CHANGE_FULL, !0) + : this.$loop.schedule(this.CHANGE_FULL); + }), + (this.updateFontSize = function () { + this.$textLayer.checkForSizeChanges(); + }), + (this.$changes = 0), + (this.$updateSizeAsync = function () { + this.$loop.pending + ? (this.$size.$dirty = !0) + : this.onResize(); + }), + (this.onResize = function (M, A, S, w) { + if (!(this.resizing > 2)) { + this.resizing > 0 + ? this.resizing++ + : (this.resizing = M ? 1 : 0); + var I = this.container; + w || (w = I.clientHeight || I.scrollHeight), + S || (S = I.clientWidth || I.scrollWidth); + var C = this.$updateCachedSize(M, A, S, w); + if (!this.$size.scrollerHeight || (!S && !w)) + return (this.resizing = 0); + M && (this.$gutterLayer.$padding = null), + M + ? this.$renderChanges(C | this.$changes, !0) + : this.$loop.schedule(C | this.$changes), + this.resizing && (this.resizing = 0), + (this.scrollBarH.scrollLeft = this.scrollBarV.scrollTop = null); + } + }), + (this.$updateCachedSize = function (M, A, S, w) { + var I = 0, + C = this.$size, + L = { + width: C.width, + height: C.height, + scrollerHeight: C.scrollerHeight, + scrollerWidth: C.scrollerWidth, + }; + if ( + ((w -= this.$extraHeight || 0) && + (M || C.height != w) && + ((C.height = w), + (I |= this.CHANGE_SIZE), + (C.scrollerHeight = C.height), + this.$horizScroll && + (C.scrollerHeight -= this.scrollBarH.getHeight()), + (this.scrollBarV.element.style.bottom = + this.scrollBarH.getHeight() + "px"), + (I |= this.CHANGE_SCROLL)), + S && (M || C.width != S)) + ) { + (I |= this.CHANGE_SIZE), + (C.width = S), + null == A && + (A = this.$showGutter ? this.$gutter.offsetWidth : 0), + (this.gutterWidth = A), + s.setStyle( + this.scrollBarH.element.style, + "left", + A + "px" + ), + s.setStyle( + this.scroller.style, + "left", + A + this.margin.left + "px" + ), + (C.scrollerWidth = Math.max( + 0, + S - A - this.scrollBarV.getWidth() - this.margin.h + )), + s.setStyle( + this.$gutter.style, + "left", + this.margin.left + "px" + ); + var F = this.scrollBarV.getWidth() + "px"; + s.setStyle(this.scrollBarH.element.style, "right", F), + s.setStyle(this.scroller.style, "right", F), + s.setStyle( + this.scroller.style, + "bottom", + this.scrollBarH.getHeight() + ), + ((this.session && + this.session.getUseWrapMode() && + this.adjustWrapLimit()) || + M) && + (I |= this.CHANGE_FULL); + } + return ( + (C.$dirty = !S || !w), I && this._signal("resize", L), I + ); + }), + (this.onGutterResize = function (M) { + var A = this.$showGutter ? M : 0; + A != this.gutterWidth && + (this.$changes |= this.$updateCachedSize( + !0, + A, + this.$size.width, + this.$size.height + )), + (this.session.getUseWrapMode() && this.adjustWrapLimit()) || + this.$size.$dirty + ? this.$loop.schedule(this.CHANGE_FULL) + : this.$computeLayerConfig(); + }), + (this.adjustWrapLimit = function () { + var A = Math.floor( + (this.$size.scrollerWidth - 2 * this.$padding) / + this.characterWidth + ); + return this.session.adjustWrapLimit( + A, + this.$showPrintMargin && this.$printMarginColumn + ); + }), + (this.setAnimatedScroll = function (M) { + this.setOption("animatedScroll", M); + }), + (this.getAnimatedScroll = function () { + return this.$animatedScroll; + }), + (this.setShowInvisibles = function (M) { + this.setOption("showInvisibles", M), + this.session.$bidiHandler.setShowInvisibles(M); + }), + (this.getShowInvisibles = function () { + return this.getOption("showInvisibles"); + }), + (this.getDisplayIndentGuides = function () { + return this.getOption("displayIndentGuides"); + }), + (this.setDisplayIndentGuides = function (M) { + this.setOption("displayIndentGuides", M); + }), + (this.setShowPrintMargin = function (M) { + this.setOption("showPrintMargin", M); + }), + (this.getShowPrintMargin = function () { + return this.getOption("showPrintMargin"); + }), + (this.setPrintMarginColumn = function (M) { + this.setOption("printMarginColumn", M); + }), + (this.getPrintMarginColumn = function () { + return this.getOption("printMarginColumn"); + }), + (this.getShowGutter = function () { + return this.getOption("showGutter"); + }), + (this.setShowGutter = function (M) { + return this.setOption("showGutter", M); + }), + (this.getFadeFoldWidgets = function () { + return this.getOption("fadeFoldWidgets"); + }), + (this.setFadeFoldWidgets = function (M) { + this.setOption("fadeFoldWidgets", M); + }), + (this.setHighlightGutterLine = function (M) { + this.setOption("highlightGutterLine", M); + }), + (this.getHighlightGutterLine = function () { + return this.getOption("highlightGutterLine"); + }), + (this.$updatePrintMargin = function () { + if (this.$showPrintMargin || this.$printMarginEl) { + if (!this.$printMarginEl) { + var M = s.createElement("div"); + (M.className = "ace_layer ace_print-margin-layer"), + (this.$printMarginEl = s.createElement("div")), + (this.$printMarginEl.className = "ace_print-margin"), + M.appendChild(this.$printMarginEl), + this.content.insertBefore(M, this.content.firstChild); + } + var A = this.$printMarginEl.style; + (A.left = + Math.round( + this.characterWidth * this.$printMarginColumn + + this.$padding + ) + "px"), + (A.visibility = this.$showPrintMargin + ? "visible" + : "hidden"), + this.session && + -1 == this.session.$wrap && + this.adjustWrapLimit(); + } + }), + (this.getContainerElement = function () { + return this.container; + }), + (this.getMouseEventTarget = function () { + return this.scroller; + }), + (this.getTextAreaContainer = function () { + return this.container; + }), + (this.$moveTextAreaToCursor = function () { + if (!this.$isMousePressed) { + var M = this.textarea.style, + A = this.$composition; + if (!this.$keepTextAreaAtCursor && !A) + return void s.translate(this.textarea, -100, 0); + var S = this.$cursorLayer.$pixelPos; + if (S) { + A && + A.markerRange && + (S = this.$cursorLayer.getPixelPosition( + A.markerRange.start, + !0 + )); + var w = this.layerConfig, + I = S.top, + C = S.left, + L = + A && A.useTextareaForIME + ? this.lineHeight + : T + ? 0 + : 1; + if ((I -= w.offset) < 0 || I > w.height - L) + return void s.translate(this.textarea, 0, 0); + var F = 1, + ie = this.$size.height - L; + A + ? A.useTextareaForIME + ? (F = + this.characterWidth * + this.session.$getStringScreenWidth( + this.textarea.value + )[0]) + : (I += this.lineHeight + 2) + : (I += this.lineHeight), + (C -= this.scrollLeft) > this.$size.scrollerWidth - F && + (C = this.$size.scrollerWidth - F), + (C += this.gutterWidth + this.margin.left), + s.setStyle(M, "height", L + "px"), + s.setStyle(M, "width", F + "px"), + s.translate( + this.textarea, + Math.min(C, this.$size.scrollerWidth - F), + Math.min(I, ie) + ); + } + } + }), + (this.getFirstVisibleRow = function () { + return this.layerConfig.firstRow; + }), + (this.getFirstFullyVisibleRow = function () { + return ( + this.layerConfig.firstRow + + (0 === this.layerConfig.offset ? 0 : 1) + ); + }), + (this.getLastFullyVisibleRow = function () { + var M = this.layerConfig, + A = M.lastRow; + return this.session.documentToScreenRow(A, 0) * M.lineHeight - + this.session.getScrollTop() > + M.height - M.lineHeight + ? A - 1 + : A; + }), + (this.getLastVisibleRow = function () { + return this.layerConfig.lastRow; + }), + (this.$padding = null), + (this.setPadding = function (M) { + (this.$padding = M), + this.$textLayer.setPadding(M), + this.$cursorLayer.setPadding(M), + this.$markerFront.setPadding(M), + this.$markerBack.setPadding(M), + this.$loop.schedule(this.CHANGE_FULL), + this.$updatePrintMargin(); + }), + (this.setScrollMargin = function (M, A, S, w) { + var I = this.scrollMargin; + (I.top = 0 | M), + (I.bottom = 0 | A), + (I.right = 0 | w), + (I.left = 0 | S), + (I.v = I.top + I.bottom), + (I.h = I.left + I.right), + I.top && + this.scrollTop <= 0 && + this.session && + this.session.setScrollTop(-I.top), + this.updateFull(); + }), + (this.setMargin = function (M, A, S, w) { + var I = this.margin; + (I.top = 0 | M), + (I.bottom = 0 | A), + (I.right = 0 | w), + (I.left = 0 | S), + (I.v = I.top + I.bottom), + (I.h = I.left + I.right), + this.$updateCachedSize( + !0, + this.gutterWidth, + this.$size.width, + this.$size.height + ), + this.updateFull(); + }), + (this.getHScrollBarAlwaysVisible = function () { + return this.$hScrollBarAlwaysVisible; + }), + (this.setHScrollBarAlwaysVisible = function (M) { + this.setOption("hScrollBarAlwaysVisible", M); + }), + (this.getVScrollBarAlwaysVisible = function () { + return this.$vScrollBarAlwaysVisible; + }), + (this.setVScrollBarAlwaysVisible = function (M) { + this.setOption("vScrollBarAlwaysVisible", M); + }), + (this.$updateScrollBarV = function () { + var M = this.layerConfig.maxHeight, + A = this.$size.scrollerHeight; + !this.$maxLines && + this.$scrollPastEnd && + this.scrollTop > + (M -= (A - this.lineHeight) * this.$scrollPastEnd) - A && + ((M = this.scrollTop + A), + (this.scrollBarV.scrollTop = null)), + this.scrollBarV.setScrollHeight(M + this.scrollMargin.v), + this.scrollBarV.setScrollTop( + this.scrollTop + this.scrollMargin.top + ); + }), + (this.$updateScrollBarH = function () { + this.scrollBarH.setScrollWidth( + this.layerConfig.width + + 2 * this.$padding + + this.scrollMargin.h + ), + this.scrollBarH.setScrollLeft( + this.scrollLeft + this.scrollMargin.left + ); + }), + (this.$frozen = !1), + (this.freeze = function () { + this.$frozen = !0; + }), + (this.unfreeze = function () { + this.$frozen = !1; + }), + (this.$renderChanges = function (M, A) { + if ( + (this.$changes && + ((M |= this.$changes), (this.$changes = 0)), + this.session && + this.container.offsetWidth && + !this.$frozen && + (M || A)) + ) { + if (this.$size.$dirty) + return (this.$changes |= M), this.onResize(!0); + this.lineHeight || this.$textLayer.checkForSizeChanges(), + this._signal("beforeRender", M), + this.session && + this.session.$bidiHandler && + this.session.$bidiHandler.updateCharacterWidths( + this.$fontMetrics + ); + var S = this.layerConfig; + if ( + M & this.CHANGE_FULL || + M & this.CHANGE_SIZE || + M & this.CHANGE_TEXT || + M & this.CHANGE_LINES || + M & this.CHANGE_SCROLL || + M & this.CHANGE_H_SCROLL + ) { + if ( + ((M |= this.$computeLayerConfig() | this.$loop.clear()), + S.firstRow != this.layerConfig.firstRow && + S.firstRowScreen == this.layerConfig.firstRowScreen) + ) { + var w = + this.scrollTop + + (S.firstRow - this.layerConfig.firstRow) * + this.lineHeight; + w > 0 && + ((this.scrollTop = w), + (M |= this.CHANGE_SCROLL), + (M |= + this.$computeLayerConfig() | this.$loop.clear())); + } + (S = this.layerConfig), + this.$updateScrollBarV(), + M & this.CHANGE_H_SCROLL && this.$updateScrollBarH(), + s.translate(this.content, -this.scrollLeft, -S.offset); + var C = S.minHeight + "px"; + s.setStyle( + this.content.style, + "width", + S.width + 2 * this.$padding + "px" + ), + s.setStyle(this.content.style, "height", C); + } + return ( + M & this.CHANGE_H_SCROLL && + (s.translate(this.content, -this.scrollLeft, -S.offset), + (this.scroller.className = + this.scrollLeft <= 0 + ? "ace_scroller" + : "ace_scroller ace_scroll-left")), + M & this.CHANGE_FULL + ? ((this.$changedLines = null), + this.$textLayer.update(S), + this.$showGutter && this.$gutterLayer.update(S), + this.$markerBack.update(S), + this.$markerFront.update(S), + this.$cursorLayer.update(S), + this.$moveTextAreaToCursor(), + void this._signal("afterRender", M)) + : M & this.CHANGE_SCROLL + ? ((this.$changedLines = null), + M & this.CHANGE_TEXT || M & this.CHANGE_LINES + ? this.$textLayer.update(S) + : this.$textLayer.scrollLines(S), + this.$showGutter && + (M & this.CHANGE_GUTTER || M & this.CHANGE_LINES + ? this.$gutterLayer.update(S) + : this.$gutterLayer.scrollLines(S)), + this.$markerBack.update(S), + this.$markerFront.update(S), + this.$cursorLayer.update(S), + this.$moveTextAreaToCursor(), + void this._signal("afterRender", M)) + : (M & this.CHANGE_TEXT + ? ((this.$changedLines = null), + this.$textLayer.update(S), + this.$showGutter && this.$gutterLayer.update(S)) + : M & this.CHANGE_LINES + ? (this.$updateLines() || + (M & this.CHANGE_GUTTER && this.$showGutter)) && + this.$gutterLayer.update(S) + : M & this.CHANGE_TEXT || M & this.CHANGE_GUTTER + ? this.$showGutter && this.$gutterLayer.update(S) + : M & this.CHANGE_CURSOR && + this.$highlightGutterLine && + this.$gutterLayer.updateLineHighlight(S), + M & this.CHANGE_CURSOR && + (this.$cursorLayer.update(S), + this.$moveTextAreaToCursor()), + M & (this.CHANGE_MARKER | this.CHANGE_MARKER_FRONT) && + this.$markerFront.update(S), + M & (this.CHANGE_MARKER | this.CHANGE_MARKER_BACK) && + this.$markerBack.update(S), + void this._signal("afterRender", M)) + ); + } + this.$changes |= M; + }), + (this.$autosize = function () { + var M = this.session.getScreenLength() * this.lineHeight, + A = this.$maxLines * this.lineHeight, + S = + Math.min( + A, + Math.max((this.$minLines || 1) * this.lineHeight, M) + ) + + this.scrollMargin.v + + (this.$extraHeight || 0); + this.$horizScroll && (S += this.scrollBarH.getHeight()), + this.$maxPixelHeight && + S > this.$maxPixelHeight && + (S = this.$maxPixelHeight); + var I = !(S <= 2 * this.lineHeight) && M > A; + if ( + S != this.desiredHeight || + this.$size.height != this.desiredHeight || + I != this.$vScroll + ) { + I != this.$vScroll && + ((this.$vScroll = I), this.scrollBarV.setVisible(I)); + var C = this.container.clientWidth; + (this.container.style.height = S + "px"), + this.$updateCachedSize(!0, this.$gutterWidth, C, S), + (this.desiredHeight = S), + this._signal("autosize"); + } + }), + (this.$computeLayerConfig = function () { + var M = this.session, + A = this.$size, + S = A.height <= 2 * this.lineHeight, + I = this.session.getScreenLength() * this.lineHeight, + C = this.$getLongestLine(), + L = + !S && + (this.$hScrollBarAlwaysVisible || + A.scrollerWidth - C - 2 * this.$padding < 0), + F = this.$horizScroll !== L; + F && ((this.$horizScroll = L), this.scrollBarH.setVisible(L)); + var ie = this.$vScroll; + this.$maxLines && this.lineHeight > 1 && this.$autosize(); + var Y = A.scrollerHeight + this.lineHeight, + Z = + !this.$maxLines && this.$scrollPastEnd + ? (A.scrollerHeight - this.lineHeight) * + this.$scrollPastEnd + : 0; + I += Z; + var ee = this.scrollMargin; + this.session.setScrollTop( + Math.max( + -ee.top, + Math.min(this.scrollTop, I - A.scrollerHeight + ee.bottom) + ) + ), + this.session.setScrollLeft( + Math.max( + -ee.left, + Math.min( + this.scrollLeft, + C + 2 * this.$padding - A.scrollerWidth + ee.right + ) + ) + ); + var $ = + !S && + (this.$vScrollBarAlwaysVisible || + A.scrollerHeight - I + Z < 0 || + this.scrollTop > ee.top), + J = ie !== $; + J && ((this.$vScroll = $), this.scrollBarV.setVisible($)); + var Le, + Ye, + ne = this.scrollTop % this.lineHeight, + ae = Math.ceil(Y / this.lineHeight) - 1, + le = Math.max( + 0, + Math.round((this.scrollTop - ne) / this.lineHeight) + ), + Oe = le + ae, + Je = this.lineHeight; + le = M.screenToDocumentRow(le, 0); + var gt = M.getFoldLine(le); + gt && (le = gt.start.row), + (Le = M.documentToScreenRow(le, 0)), + (Ye = M.getRowLength(le) * Je), + (Oe = Math.min( + M.screenToDocumentRow(Oe, 0), + M.getLength() - 1 + )), + (Y = A.scrollerHeight + M.getRowLength(Oe) * Je + Ye), + (ne = this.scrollTop - Le * Je); + var Ue = 0; + return ( + (this.layerConfig.width != C || F) && + (Ue = this.CHANGE_H_SCROLL), + (F || J) && + ((Ue |= this.$updateCachedSize( + !0, + this.gutterWidth, + A.width, + A.height + )), + this._signal("scrollbarVisibilityChanged"), + J && (C = this.$getLongestLine())), + (this.layerConfig = { + width: C, + padding: this.$padding, + firstRow: le, + firstRowScreen: Le, + lastRow: Oe, + lineHeight: Je, + characterWidth: this.characterWidth, + minHeight: Y, + maxHeight: I, + offset: ne, + gutterOffset: Je + ? Math.max( + 0, + Math.ceil((ne + A.height - A.scrollerHeight) / Je) + ) + : 0, + height: this.$size.scrollerHeight, + }), + this.session.$bidiHandler && + this.session.$bidiHandler.setContentWidth( + C - this.$padding + ), + Ue + ); + }), + (this.$updateLines = function () { + if (this.$changedLines) { + var M = this.$changedLines.firstRow, + A = this.$changedLines.lastRow; + this.$changedLines = null; + var S = this.layerConfig; + if (!(M > S.lastRow + 1 || A < S.firstRow)) + return A === 1 / 0 + ? (this.$showGutter && this.$gutterLayer.update(S), + void this.$textLayer.update(S)) + : (this.$textLayer.updateLines(S, M, A), !0); + } + }), + (this.$getLongestLine = function () { + var M = this.session.getScreenWidth(); + return ( + this.showInvisibles && + !this.session.$useWrapMode && + (M += 1), + this.$textLayer && + M > this.$textLayer.MAX_LINE_LENGTH && + (M = this.$textLayer.MAX_LINE_LENGTH + 30), + Math.max( + this.$size.scrollerWidth - 2 * this.$padding, + Math.round(M * this.characterWidth) + ) + ); + }), + (this.updateFrontMarkers = function () { + this.$markerFront.setMarkers(this.session.getMarkers(!0)), + this.$loop.schedule(this.CHANGE_MARKER_FRONT); + }), + (this.updateBackMarkers = function () { + this.$markerBack.setMarkers(this.session.getMarkers()), + this.$loop.schedule(this.CHANGE_MARKER_BACK); + }), + (this.addGutterDecoration = function (M, A) { + this.$gutterLayer.addGutterDecoration(M, A); + }), + (this.removeGutterDecoration = function (M, A) { + this.$gutterLayer.removeGutterDecoration(M, A); + }), + (this.updateBreakpoints = function (M) { + this.$loop.schedule(this.CHANGE_GUTTER); + }), + (this.setAnnotations = function (M) { + this.$gutterLayer.setAnnotations(M), + this.$loop.schedule(this.CHANGE_GUTTER); + }), + (this.updateCursor = function () { + this.$loop.schedule(this.CHANGE_CURSOR); + }), + (this.hideCursor = function () { + this.$cursorLayer.hideCursor(); + }), + (this.showCursor = function () { + this.$cursorLayer.showCursor(); + }), + (this.scrollSelectionIntoView = function (M, A, S) { + this.scrollCursorIntoView(M, S), + this.scrollCursorIntoView(A, S); + }), + (this.scrollCursorIntoView = function (M, A, S) { + if (0 !== this.$size.scrollerHeight) { + var w = this.$cursorLayer.getPixelPosition(M), + I = w.left, + C = w.top, + L = (S && S.top) || 0, + F = (S && S.bottom) || 0, + ie = this.$scrollAnimation + ? this.session.getScrollTop() + : this.scrollTop; + ie + L > C + ? (A && + ie + L > C + this.lineHeight && + (C -= A * this.$size.scrollerHeight), + 0 === C && (C = -this.scrollMargin.top), + this.session.setScrollTop(C)) + : ie + this.$size.scrollerHeight - F < + C + this.lineHeight && + (A && + ie + this.$size.scrollerHeight - F < + C - this.lineHeight && + (C += A * this.$size.scrollerHeight), + this.session.setScrollTop( + C + this.lineHeight + F - this.$size.scrollerHeight + )); + var Y = this.scrollLeft; + Y > I + ? (I < + this.$padding + 2 * this.layerConfig.characterWidth && + (I = -this.scrollMargin.left), + this.session.setScrollLeft(I)) + : Y + this.$size.scrollerWidth < I + this.characterWidth + ? this.session.setScrollLeft( + Math.round( + I + this.characterWidth - this.$size.scrollerWidth + ) + ) + : Y <= this.$padding && + I - Y < this.characterWidth && + this.session.setScrollLeft(0); + } + }), + (this.getScrollTop = function () { + return this.session.getScrollTop(); + }), + (this.getScrollLeft = function () { + return this.session.getScrollLeft(); + }), + (this.getScrollTopRow = function () { + return this.scrollTop / this.lineHeight; + }), + (this.getScrollBottomRow = function () { + return Math.max( + 0, + Math.floor( + (this.scrollTop + this.$size.scrollerHeight) / + this.lineHeight + ) - 1 + ); + }), + (this.scrollToRow = function (M) { + this.session.setScrollTop(M * this.lineHeight); + }), + (this.alignCursor = function (M, A) { + "number" == typeof M && (M = { row: M, column: 0 }); + var I = + this.$cursorLayer.getPixelPosition(M).top - + (this.$size.scrollerHeight - this.lineHeight) * (A || 0); + return this.session.setScrollTop(I), I; + }), + (this.STEPS = 8), + (this.$calcSteps = function (M, A) { + var F, + S = 0, + w = this.STEPS, + I = []; + for (S = 0; S < w; ++S) + I.push( + ((F = M), + (A - M) * (Math.pow(S / this.STEPS - 1, 3) + 1) + F) + ); + return I; + }), + (this.scrollToLine = function (M, A, S, w) { + var C = this.$cursorLayer.getPixelPosition({ + row: M, + column: 0, + }).top; + A && (C -= this.$size.scrollerHeight / 2); + var L = this.scrollTop; + this.session.setScrollTop(C), + !1 !== S && this.animateScrolling(L, w); + }), + (this.animateScrolling = function (M, A) { + var S = this.scrollTop; + if (this.$animatedScroll) { + var w = this; + if (M != S) { + if (this.$scrollAnimation) { + var I = this.$scrollAnimation.steps; + if (I.length && (M = I[0]) == S) return; + } + var C = w.$calcSteps(M, S); + (this.$scrollAnimation = { from: M, to: S, steps: C }), + clearInterval(this.$timer), + w.session.setScrollTop(C.shift()), + (w.session.$scrollTop = S), + (this.$timer = setInterval(function () { + if (!w.session) return clearInterval(w.$timer); + C.length + ? (w.session.setScrollTop(C.shift()), + (w.session.$scrollTop = S)) + : null != S + ? ((w.session.$scrollTop = -1), + w.session.setScrollTop(S), + (S = null)) + : ((w.$timer = clearInterval(w.$timer)), + (w.$scrollAnimation = null), + A && A()); + }, 10)); + } + } + }), + (this.scrollToY = function (M) { + this.scrollTop !== M && + (this.$loop.schedule(this.CHANGE_SCROLL), + (this.scrollTop = M)); + }), + (this.scrollToX = function (M) { + this.scrollLeft !== M && (this.scrollLeft = M), + this.$loop.schedule(this.CHANGE_H_SCROLL); + }), + (this.scrollTo = function (M, A) { + this.session.setScrollTop(A), this.session.setScrollLeft(M); + }), + (this.scrollBy = function (M, A) { + A && + this.session.setScrollTop(this.session.getScrollTop() + A), + M && + this.session.setScrollLeft( + this.session.getScrollLeft() + M + ); + }), + (this.isScrollableBy = function (M, A) { + if ( + (A < 0 && + this.session.getScrollTop() >= + 1 - this.scrollMargin.top) || + (A > 0 && + this.session.getScrollTop() + + this.$size.scrollerHeight - + this.layerConfig.maxHeight < + -1 + this.scrollMargin.bottom) || + (M < 0 && + this.session.getScrollLeft() >= + 1 - this.scrollMargin.left) || + (M > 0 && + this.session.getScrollLeft() + + this.$size.scrollerWidth - + this.layerConfig.width < + -1 + this.scrollMargin.right) + ) + return !0; + }), + (this.pixelToScreenCoordinates = function (M, A) { + var S; + if (this.$hasCssTransforms) { + S = { top: 0, left: 0 }; + var w = this.$fontMetrics.transformCoordinates([M, A]); + (M = w[1] - this.gutterWidth - this.margin.left), + (A = w[0]); + } else S = this.scroller.getBoundingClientRect(); + var I = M + this.scrollLeft - S.left - this.$padding, + C = I / this.characterWidth, + L = Math.floor( + (A + this.scrollTop - S.top) / this.lineHeight + ), + F = this.$blockCursor ? Math.floor(C) : Math.round(C); + return { + row: L, + column: F, + side: C - F > 0 ? 1 : -1, + offsetX: I, + }; + }), + (this.screenToTextCoordinates = function (M, A) { + var S; + if (this.$hasCssTransforms) { + S = { top: 0, left: 0 }; + var w = this.$fontMetrics.transformCoordinates([M, A]); + (M = w[1] - this.gutterWidth - this.margin.left), + (A = w[0]); + } else S = this.scroller.getBoundingClientRect(); + var I = M + this.scrollLeft - S.left - this.$padding, + C = I / this.characterWidth, + L = this.$blockCursor ? Math.floor(C) : Math.round(C), + F = Math.floor( + (A + this.scrollTop - S.top) / this.lineHeight + ); + return this.session.screenToDocumentPosition( + F, + Math.max(L, 0), + I + ); + }), + (this.textToScreenCoordinates = function (M, A) { + var S = this.scroller.getBoundingClientRect(), + w = this.session.documentToScreenPosition(M, A), + I = + this.$padding + + (this.session.$bidiHandler.isBidiRow(w.row, M) + ? this.session.$bidiHandler.getPosLeft(w.column) + : Math.round(w.column * this.characterWidth)); + return { + pageX: S.left + I - this.scrollLeft, + pageY: S.top + w.row * this.lineHeight - this.scrollTop, + }; + }), + (this.visualizeFocus = function () { + s.addCssClass(this.container, "ace_focus"); + }), + (this.visualizeBlur = function () { + s.removeCssClass(this.container, "ace_focus"); + }), + (this.showComposition = function (M) { + (this.$composition = M), + M.cssText || (M.cssText = this.textarea.style.cssText), + null == M.useTextareaForIME && + (M.useTextareaForIME = this.$useTextareaForIME), + this.$useTextareaForIME + ? (s.addCssClass(this.textarea, "ace_composition"), + (this.textarea.style.cssText = ""), + this.$moveTextAreaToCursor(), + (this.$cursorLayer.element.style.display = "none")) + : (M.markerId = this.session.addMarker( + M.markerRange, + "ace_composition_marker", + "text" + )); + }), + (this.setCompositionText = function (M) { + var A = this.session.selection.cursor; + this.addToken(M, "composition_placeholder", A.row, A.column), + this.$moveTextAreaToCursor(); + }), + (this.hideComposition = function () { + if (this.$composition) { + this.$composition.markerId && + this.session.removeMarker(this.$composition.markerId), + s.removeCssClass(this.textarea, "ace_composition"), + (this.textarea.style.cssText = this.$composition.cssText); + var M = this.session.selection.cursor; + this.removeExtraToken(M.row, M.column), + (this.$composition = null), + (this.$cursorLayer.element.style.display = ""); + } + }), + (this.addToken = function (M, A, S, w) { + var I = this.session; + I.bgTokenizer.lines[S] = null; + var C = { type: A, value: M }, + L = I.getTokens(S); + if (null == w) L.push(C); + else + for (var F = 0, ie = 0; ie < L.length; ie++) { + var Y = L[ie]; + if (w <= (F += Y.value.length)) { + var Z = Y.value.length - (F - w), + ee = Y.value.slice(0, Z), + $ = Y.value.slice(Z); + L.splice(ie, 1, { type: Y.type, value: ee }, C, { + type: Y.type, + value: $, + }); + break; + } + } + this.updateLines(S, S); + }), + (this.removeExtraToken = function (M, A) { + this.updateLines(M, M); + }), + (this.setTheme = function (M, A) { + var S = this; + function I(C) { + if (S.$themeId != M) return A && A(); + if (!C || !C.cssClass) + throw new Error( + "couldn't load module " + + M + + " or it didn't call define" + ); + C.$id && (S.$themeId = C.$id), + s.importCssString(C.cssText, C.cssClass, S.container), + S.theme && + s.removeCssClass(S.container, S.theme.cssClass); + var L = + "padding" in C + ? C.padding + : "padding" in (S.theme || {}) + ? 4 + : S.$padding; + S.$padding && L != S.$padding && S.setPadding(L), + (S.$theme = C.cssClass), + (S.theme = C), + s.addCssClass(S.container, C.cssClass), + s.setCssClass(S.container, "ace_dark", C.isDark), + S.$size && ((S.$size.width = 0), S.$updateSizeAsync()), + S._dispatchEvent("themeLoaded", { theme: C }), + A && A(); + } + (this.$themeId = M), + S._dispatchEvent("themeChange", { theme: M }), + M && "string" != typeof M + ? I(M) + : d.loadModule( + ["theme", M || this.$options.theme.initialValue], + I + ); + }), + (this.getTheme = function () { + return this.$themeId; + }), + (this.setStyle = function (M, A) { + s.setCssClass(this.container, M, !1 !== A); + }), + (this.unsetStyle = function (M) { + s.removeCssClass(this.container, M); + }), + (this.setCursorStyle = function (M) { + s.setStyle(this.scroller.style, "cursor", M); + }), + (this.setMouseCursor = function (M) { + s.setStyle(this.scroller.style, "cursor", M); + }), + (this.attachToShadowRoot = function () { + s.importCssString(y, "ace_editor.css", this.container); + }), + (this.destroy = function () { + this.freeze(), + this.$fontMetrics.destroy(), + this.$cursorLayer.destroy(), + this.removeAllListeners(), + (this.container.textContent = ""); + }); + }.call(O.prototype), + d.defineOptions(O.prototype, "renderer", { + animatedScroll: { initialValue: !1 }, + showInvisibles: { + set: function (M) { + this.$textLayer.setShowInvisibles(M) && + this.$loop.schedule(this.CHANGE_TEXT); + }, + initialValue: !1, + }, + showPrintMargin: { + set: function () { + this.$updatePrintMargin(); + }, + initialValue: !0, + }, + printMarginColumn: { + set: function () { + this.$updatePrintMargin(); + }, + initialValue: 80, + }, + printMargin: { + set: function (M) { + "number" == typeof M && (this.$printMarginColumn = M), + (this.$showPrintMargin = !!M), + this.$updatePrintMargin(); + }, + get: function () { + return this.$showPrintMargin && this.$printMarginColumn; + }, + }, + showGutter: { + set: function (M) { + (this.$gutter.style.display = M ? "block" : "none"), + this.$loop.schedule(this.CHANGE_FULL), + this.onGutterResize(); + }, + initialValue: !0, + }, + fadeFoldWidgets: { + set: function (M) { + s.setCssClass(this.$gutter, "ace_fade-fold-widgets", M); + }, + initialValue: !1, + }, + showFoldWidgets: { + set: function (M) { + this.$gutterLayer.setShowFoldWidgets(M), + this.$loop.schedule(this.CHANGE_GUTTER); + }, + initialValue: !0, + }, + displayIndentGuides: { + set: function (M) { + this.$textLayer.setDisplayIndentGuides(M) && + this.$loop.schedule(this.CHANGE_TEXT); + }, + initialValue: !0, + }, + highlightGutterLine: { + set: function (M) { + this.$gutterLayer.setHighlightGutterLine(M), + this.$loop.schedule(this.CHANGE_GUTTER); + }, + initialValue: !0, + }, + hScrollBarAlwaysVisible: { + set: function (M) { + (!this.$hScrollBarAlwaysVisible || !this.$horizScroll) && + this.$loop.schedule(this.CHANGE_SCROLL); + }, + initialValue: !1, + }, + vScrollBarAlwaysVisible: { + set: function (M) { + (!this.$vScrollBarAlwaysVisible || !this.$vScroll) && + this.$loop.schedule(this.CHANGE_SCROLL); + }, + initialValue: !1, + }, + fontSize: { + set: function (M) { + "number" == typeof M && (M += "px"), + (this.container.style.fontSize = M), + this.updateFontSize(); + }, + initialValue: 12, + }, + fontFamily: { + set: function (M) { + (this.container.style.fontFamily = M), + this.updateFontSize(); + }, + }, + maxLines: { + set: function (M) { + this.updateFull(); + }, + }, + minLines: { + set: function (M) { + this.$minLines < 562949953421311 || (this.$minLines = 0), + this.updateFull(); + }, + }, + maxPixelHeight: { + set: function (M) { + this.updateFull(); + }, + initialValue: 0, + }, + scrollPastEnd: { + set: function (M) { + this.$scrollPastEnd != (M = +M || 0) && + ((this.$scrollPastEnd = M), + this.$loop.schedule(this.CHANGE_SCROLL)); + }, + initialValue: 0, + handlesSet: !0, + }, + fixedWidthGutter: { + set: function (M) { + (this.$gutterLayer.$fixedWidth = !!M), + this.$loop.schedule(this.CHANGE_GUTTER); + }, + }, + theme: { + set: function (M) { + this.setTheme(M); + }, + get: function () { + return this.$themeId || this.theme; + }, + initialValue: "./theme/textmate", + handlesSet: !0, + }, + hasCssTransforms: {}, + useTextareaForIME: { initialValue: !x.isMobile && !x.isIE }, + }), + (f.VirtualRenderer = O)); + } + ), + ace.define( + "ace/worker/worker_client", + [ + "require", + "exports", + "module", + "ace/lib/oop", + "ace/lib/net", + "ace/lib/event_emitter", + "ace/config", + ], + function (n, f, _) { + "use strict"; + var m = n("../lib/oop"), + s = n("../lib/net"), + d = n("../lib/event_emitter").EventEmitter, + u = n("../config"); + function r(c) { + if ("undefined" == typeof Worker) + return { + postMessage: function () {}, + terminate: function () {}, + }; + if (u.get("loadWorkerFromBlob")) { + var l = (function (c) { + var l = "importScripts('" + s.qualifyURL(c) + "');"; + try { + return new Blob([l], { type: "application/javascript" }); + } catch (y) { + var b = new (window.BlobBuilder || + window.WebKitBlobBuilder || + window.MozBlobBuilder)(); + return b.append(l), b.getBlob("application/javascript"); + } + })(c), + b = (window.URL || window.webkitURL).createObjectURL(l); + return new Worker(b); + } + return new Worker(c); + } + var o = function (c) { + c.postMessage || + (c = this.$createWorkerFromOldConfig.apply(this, arguments)), + (this.$worker = c), + (this.$sendDeltaQueue = this.$sendDeltaQueue.bind(this)), + (this.changeListener = this.changeListener.bind(this)), + (this.onMessage = this.onMessage.bind(this)), + (this.callbackId = 1), + (this.callbacks = {}), + (this.$worker.onmessage = this.onMessage); + }; + (function () { + m.implement(this, d), + (this.$createWorkerFromOldConfig = function (c, l, g, b, y) { + if ( + (n.nameToUrl && !n.toUrl && (n.toUrl = n.nameToUrl), + u.get("packaged") || !n.toUrl) + ) + b = b || u.moduleUrl(l, "worker"); + else { + var x = this.$normalizePath; + b = b || x(n.toUrl("ace/worker/worker.js", null, "_")); + var T = {}; + c.forEach(function (O) { + T[O] = x( + n.toUrl(O, null, "_").replace(/(\.js)?(\?.*)?$/, "") + ); + }); + } + return ( + (this.$worker = r(b)), + y && this.send("importScripts", y), + this.$worker.postMessage({ + init: !0, + tlns: T, + module: l, + classname: g, + }), + this.$worker + ); + }), + (this.onMessage = function (c) { + var l = c.data; + switch (l.type) { + case "event": + this._signal(l.name, { data: l.data }); + break; + case "call": + var g = this.callbacks[l.id]; + g && (g(l.data), delete this.callbacks[l.id]); + break; + case "error": + this.reportError(l.data); + break; + case "log": + window.console && + console.log && + console.log.apply(console, l.data); + } + }), + (this.reportError = function (c) { + window.console && console.error && console.error(c); + }), + (this.$normalizePath = function (c) { + return s.qualifyURL(c); + }), + (this.terminate = function () { + this._signal("terminate", {}), + (this.deltaQueue = null), + this.$worker.terminate(), + (this.$worker = null), + this.$doc && this.$doc.off("change", this.changeListener), + (this.$doc = null); + }), + (this.send = function (c, l) { + this.$worker.postMessage({ command: c, args: l }); + }), + (this.call = function (c, l, g) { + if (g) { + var b = this.callbackId++; + (this.callbacks[b] = g), l.push(b); + } + this.send(c, l); + }), + (this.emit = function (c, l) { + try { + l.data && + l.data.err && + (l.data.err = { + message: l.data.err.message, + stack: l.data.err.stack, + code: l.data.err.code, + }), + this.$worker.postMessage({ + event: c, + data: { data: l.data }, + }); + } catch (g) { + console.error(g.stack); + } + }), + (this.attachToDocument = function (c) { + this.$doc && this.terminate(), + (this.$doc = c), + this.call("setValue", [c.getValue()]), + c.on("change", this.changeListener); + }), + (this.changeListener = function (c) { + this.deltaQueue || + ((this.deltaQueue = []), + setTimeout(this.$sendDeltaQueue, 0)), + this.deltaQueue.push( + c.start, + "insert" == c.action ? c.lines : c.end + ); + }), + (this.$sendDeltaQueue = function () { + var c = this.deltaQueue; + !c || + ((this.deltaQueue = null), + c.length > 50 && c.length > this.$doc.getLength() >> 1 + ? this.call("setValue", [this.$doc.getValue()]) + : this.emit("change", { data: c })); + }); + }.call(o.prototype), + (f.UIWorkerClient = function (c, l, g) { + var b = null, + y = !1, + x = Object.create(d), + T = [], + O = new o({ + messageBuffer: T, + terminate: function () {}, + postMessage: function (A) { + T.push(A), b && (y ? setTimeout(M) : M()); + }, + }); + O.setEmitSync = function (A) { + y = A; + }; + var M = function () { + var A = T.shift(); + A.command + ? b[A.command].apply(b, A.args) + : A.event && x._signal(A.event, A.data); + }; + return ( + (x.postMessage = function (A) { + O.onMessage({ data: A }); + }), + (x.callback = function (A, S) { + this.postMessage({ type: "call", id: S, data: A }); + }), + (x.emit = function (A, S) { + this.postMessage({ type: "event", name: A, data: S }); + }), + u.loadModule(["worker", l], function (A) { + for (b = new A[g](x); T.length; ) M(); + }), + O + ); + }), + (f.WorkerClient = o), + (f.createWorker = r)); + } + ), + ace.define( + "ace/placeholder", + [ + "require", + "exports", + "module", + "ace/range", + "ace/lib/event_emitter", + "ace/lib/oop", + ], + function (n, f, _) { + "use strict"; + var m = n("./range").Range, + s = n("./lib/event_emitter").EventEmitter, + d = n("./lib/oop"), + u = function (h, r, o, i, c, l) { + var g = this; + (this.length = r), + (this.session = h), + (this.doc = h.getDocument()), + (this.mainClass = c), + (this.othersClass = l), + (this.$onUpdate = this.onUpdate.bind(this)), + this.doc.on("change", this.$onUpdate), + (this.$others = i), + (this.$onCursorChange = function () { + setTimeout(function () { + g.onCursorChange(); + }); + }), + (this.$pos = o); + var b = h.getUndoManager().$undoStack || + h.getUndoManager().$undostack || { length: -1 }; + (this.$undoStackDepth = b.length), + this.setup(), + h.selection.on("changeCursor", this.$onCursorChange); + }; + (function () { + d.implement(this, s), + (this.setup = function () { + var h = this, + r = this.doc, + o = this.session; + (this.selectionBefore = o.selection.toJSON()), + o.selection.inMultiSelectMode && + o.selection.toSingleRange(), + (this.pos = r.createAnchor( + this.$pos.row, + this.$pos.column + )); + var i = this.pos; + (i.$insertRight = !0), + i.detach(), + (i.markerId = o.addMarker( + new m(i.row, i.column, i.row, i.column + this.length), + this.mainClass, + null, + !1 + )), + (this.others = []), + this.$others.forEach(function (c) { + var l = r.createAnchor(c.row, c.column); + (l.$insertRight = !0), l.detach(), h.others.push(l); + }), + o.setUndoSelect(!1); + }), + (this.showOtherMarkers = function () { + if (!this.othersActive) { + var h = this.session, + r = this; + (this.othersActive = !0), + this.others.forEach(function (o) { + o.markerId = h.addMarker( + new m(o.row, o.column, o.row, o.column + r.length), + r.othersClass, + null, + !1 + ); + }); + } + }), + (this.hideOtherMarkers = function () { + if (this.othersActive) { + this.othersActive = !1; + for (var h = 0; h < this.others.length; h++) + this.session.removeMarker(this.others[h].markerId); + } + }), + (this.onUpdate = function (h) { + if (this.$updating) return this.updateAnchors(h); + var r = h; + if ( + r.start.row === r.end.row && + r.start.row === this.pos.row + ) { + this.$updating = !0; + var o = + "insert" === h.action + ? r.end.column - r.start.column + : r.start.column - r.end.column, + i = + r.start.column >= this.pos.column && + r.start.column <= this.pos.column + this.length + 1, + c = r.start.column - this.pos.column; + if ( + (this.updateAnchors(h), + i && (this.length += o), + i && !this.session.$fromUndo) + ) + if ("insert" === h.action) + for (var l = this.others.length - 1; l >= 0; l--) + this.doc.insertMergedLines( + (b = { + row: (g = this.others[l]).row, + column: g.column + c, + }), + h.lines + ); + else if ("remove" === h.action) + for (l = this.others.length - 1; l >= 0; l--) { + var g, b; + this.doc.remove( + new m( + (b = { + row: (g = this.others[l]).row, + column: g.column + c, + }).row, + b.column, + b.row, + b.column - o + ) + ); + } + (this.$updating = !1), this.updateMarkers(); + } + }), + (this.updateAnchors = function (h) { + this.pos.onChange(h); + for (var r = this.others.length; r--; ) + this.others[r].onChange(h); + this.updateMarkers(); + }), + (this.updateMarkers = function () { + if (!this.$updating) { + var h = this, + r = this.session, + o = function (c, l) { + r.removeMarker(c.markerId), + (c.markerId = r.addMarker( + new m(c.row, c.column, c.row, c.column + h.length), + l, + null, + !1 + )); + }; + o(this.pos, this.mainClass); + for (var i = this.others.length; i--; ) + o(this.others[i], this.othersClass); + } + }), + (this.onCursorChange = function (h) { + if (!this.$updating && this.session) { + var r = this.session.selection.getCursor(); + r.row === this.pos.row && + r.column >= this.pos.column && + r.column <= this.pos.column + this.length + ? (this.showOtherMarkers(), this._emit("cursorEnter", h)) + : (this.hideOtherMarkers(), this._emit("cursorLeave", h)); + } + }), + (this.detach = function () { + this.session.removeMarker(this.pos && this.pos.markerId), + this.hideOtherMarkers(), + this.doc.off("change", this.$onUpdate), + this.session.selection.off( + "changeCursor", + this.$onCursorChange + ), + this.session.setUndoSelect(!0), + (this.session = null); + }), + (this.cancel = function () { + if (-1 !== this.$undoStackDepth) { + for ( + var h = this.session.getUndoManager(), + r = + (h.$undoStack || h.$undostack).length - + this.$undoStackDepth, + o = 0; + o < r; + o++ + ) + h.undo(this.session, !0); + this.selectionBefore && + this.session.selection.fromJSON(this.selectionBefore); + } + }); + }.call(u.prototype), + (f.PlaceHolder = u)); + } + ), + ace.define( + "ace/mouse/multi_select_handler", + [ + "require", + "exports", + "module", + "ace/lib/event", + "ace/lib/useragent", + ], + function (n, f, _) { + var m = n("../lib/event"), + s = n("../lib/useragent"); + function d(h, r) { + return h.row == r.row && h.column == r.column; + } + f.onMouseDown = function (h) { + var r = h.domEvent, + o = r.altKey, + i = r.shiftKey, + c = r.ctrlKey, + l = h.getAccelKey(), + g = h.getButton(); + if ( + (c && s.isMac && (g = r.button), + h.editor.inMultiSelectMode && 2 == g) + ) + h.editor.textInput.onContextMenu(h.domEvent); + else if (c || o || l) { + if (0 === g) { + var F, + b = h.editor, + y = b.selection, + x = b.inMultiSelectMode, + T = h.getDocumentPosition(), + O = y.getCursor(), + M = h.inSelection() || (y.isEmpty() && d(T, O)), + A = h.x, + S = h.y, + I = b.session, + C = b.renderer.pixelToScreenCoordinates(A, S), + L = C; + if (b.$mouseHandler.$enableJumpToDef) + (c && o) || (l && o) + ? (F = i ? "block" : "add") + : o && b.$blockSelectEnabled && (F = "block"); + else if (l && !o) { + if (((F = "add"), !x && i)) return; + } else o && b.$blockSelectEnabled && (F = "block"); + if ( + (F && + s.isMac && + r.ctrlKey && + b.$mouseHandler.cancelContextMenu(), + "add" == F) + ) { + if (!x && M) return; + if (!x) { + var ie = y.toOrientedRange(); + b.addSelectionMarker(ie); + } + var Y = y.rangeList.rangeAtPoint(T); + (b.inVirtualSelectionMode = !0), + i && + ((Y = null), + b.removeSelectionMarker((ie = y.ranges[0] || ie))), + b.once("mouseup", function () { + var le = y.toOrientedRange(); + Y && le.isEmpty() && d(Y.cursor, le.cursor) + ? y.substractPoint(le.cursor) + : (i + ? y.substractPoint(ie.cursor) + : ie && + (b.removeSelectionMarker(ie), y.addRange(ie)), + y.addRange(le)), + (b.inVirtualSelectionMode = !1); + }); + } else if ("block" == F) { + h.stop(), (b.inVirtualSelectionMode = !0); + var Z, + ee = [], + $ = function () { + var le = b.renderer.pixelToScreenCoordinates(A, S), + Oe = I.screenToDocumentPosition( + le.row, + le.column, + le.offsetX + ); + (d(L, le) && d(Oe, y.lead)) || + ((L = le), + b.selection.moveToPosition(Oe), + b.renderer.scrollCursorIntoView(), + b.removeSelectionMarkers(ee), + (ee = y.rectangularRangeBlock(L, C)), + b.$mouseHandler.$clickSelection && + 1 == ee.length && + ee[0].isEmpty() && + (ee[0] = b.$mouseHandler.$clickSelection.clone()), + ee.forEach(b.addSelectionMarker, b), + b.updateSelectionMarkers()); + }; + x && !l + ? y.toSingleRange() + : !x && + l && + ((Z = y.toOrientedRange()), b.addSelectionMarker(Z)), + i + ? (C = I.documentToScreenPosition(y.lead)) + : y.moveToPosition(T), + (L = { row: -1, column: -1 }); + var ne = $; + m.capture( + b.container, + function (le) { + (A = le.clientX), (S = le.clientY); + }, + function (le) { + $(), + clearInterval(ae), + b.removeSelectionMarkers(ee), + ee.length || (ee = [y.toOrientedRange()]), + Z && (b.removeSelectionMarker(Z), y.toSingleRange(Z)); + for (var Oe = 0; Oe < ee.length; Oe++) + y.addRange(ee[Oe]); + (b.inVirtualSelectionMode = !1), + (b.$mouseHandler.$clickSelection = null); + } + ); + var ae = setInterval(function () { + ne(); + }, 20); + return h.preventDefault(); + } + } + } else + 0 === g && + h.editor.inMultiSelectMode && + h.editor.exitMultiSelectMode(); + }; + } + ), + ace.define( + "ace/commands/multi_select_commands", + ["require", "exports", "module", "ace/keyboard/hash_handler"], + function (n, f, _) { + (f.defaultCommands = [ + { + name: "addCursorAbove", + description: "Add cursor above", + exec: function (s) { + s.selectMoreLines(-1); + }, + bindKey: { win: "Ctrl-Alt-Up", mac: "Ctrl-Alt-Up" }, + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "addCursorBelow", + description: "Add cursor below", + exec: function (s) { + s.selectMoreLines(1); + }, + bindKey: { win: "Ctrl-Alt-Down", mac: "Ctrl-Alt-Down" }, + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "addCursorAboveSkipCurrent", + description: "Add cursor above (skip current)", + exec: function (s) { + s.selectMoreLines(-1, !0); + }, + bindKey: { win: "Ctrl-Alt-Shift-Up", mac: "Ctrl-Alt-Shift-Up" }, + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "addCursorBelowSkipCurrent", + description: "Add cursor below (skip current)", + exec: function (s) { + s.selectMoreLines(1, !0); + }, + bindKey: { + win: "Ctrl-Alt-Shift-Down", + mac: "Ctrl-Alt-Shift-Down", + }, + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectMoreBefore", + description: "Select more before", + exec: function (s) { + s.selectMore(-1); + }, + bindKey: { win: "Ctrl-Alt-Left", mac: "Ctrl-Alt-Left" }, + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectMoreAfter", + description: "Select more after", + exec: function (s) { + s.selectMore(1); + }, + bindKey: { win: "Ctrl-Alt-Right", mac: "Ctrl-Alt-Right" }, + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectNextBefore", + description: "Select next before", + exec: function (s) { + s.selectMore(-1, !0); + }, + bindKey: { + win: "Ctrl-Alt-Shift-Left", + mac: "Ctrl-Alt-Shift-Left", + }, + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "selectNextAfter", + description: "Select next after", + exec: function (s) { + s.selectMore(1, !0); + }, + bindKey: { + win: "Ctrl-Alt-Shift-Right", + mac: "Ctrl-Alt-Shift-Right", + }, + scrollIntoView: "cursor", + readOnly: !0, + }, + { + name: "toggleSplitSelectionIntoLines", + description: "Split into lines", + exec: function (s) { + s.multiSelect.rangeCount > 1 + ? s.multiSelect.joinSelections() + : s.multiSelect.splitIntoLines(); + }, + bindKey: { win: "Ctrl-Alt-L", mac: "Ctrl-Alt-L" }, + readOnly: !0, + }, + { + name: "splitSelectionIntoLines", + description: "Split into lines", + exec: function (s) { + s.multiSelect.splitIntoLines(); + }, + readOnly: !0, + }, + { + name: "alignCursors", + description: "Align cursors", + exec: function (s) { + s.alignCursors(); + }, + bindKey: { win: "Ctrl-Alt-A", mac: "Ctrl-Alt-A" }, + scrollIntoView: "cursor", + }, + { + name: "findAll", + description: "Find all", + exec: function (s) { + s.findAll(); + }, + bindKey: { win: "Ctrl-Alt-K", mac: "Ctrl-Alt-G" }, + scrollIntoView: "cursor", + readOnly: !0, + }, + ]), + (f.multiSelectCommands = [ + { + name: "singleSelection", + description: "Single selection", + bindKey: "esc", + exec: function (s) { + s.exitMultiSelectMode(); + }, + scrollIntoView: "cursor", + readOnly: !0, + isAvailable: function (s) { + return s && s.inMultiSelectMode; + }, + }, + ]); + var m = n("../keyboard/hash_handler").HashHandler; + f.keyboardHandler = new m(f.multiSelectCommands); + } + ), + ace.define( + "ace/multi_select", + [ + "require", + "exports", + "module", + "ace/range_list", + "ace/range", + "ace/selection", + "ace/mouse/multi_select_handler", + "ace/lib/event", + "ace/lib/lang", + "ace/commands/multi_select_commands", + "ace/search", + "ace/edit_session", + "ace/editor", + "ace/config", + ], + function (n, f, _) { + var m = n("./range_list").RangeList, + s = n("./range").Range, + d = n("./selection").Selection, + u = n("./mouse/multi_select_handler").onMouseDown, + h = n("./lib/event"), + r = n("./lib/lang"), + o = n("./commands/multi_select_commands"); + f.commands = o.defaultCommands.concat(o.multiSelectCommands); + var c = new (0, n("./search").Search)(), + g = n("./edit_session").EditSession; + (function () { + this.getSelectionMarkers = function () { + return this.$selectionMarkers; + }; + }.call(g.prototype), + function () { + (this.ranges = null), + (this.rangeList = null), + (this.addRange = function (O, M) { + if (O) { + if (!this.inMultiSelectMode && 0 === this.rangeCount) { + var A = this.toOrientedRange(); + if ( + (this.rangeList.add(A), + this.rangeList.add(O), + 2 != this.rangeList.ranges.length) + ) + return ( + this.rangeList.removeAll(), + M || this.fromOrientedRange(O) + ); + this.rangeList.removeAll(), + this.rangeList.add(A), + this.$onAddRange(A); + } + O.cursor || (O.cursor = O.end); + var S = this.rangeList.add(O); + return ( + this.$onAddRange(O), + S.length && this.$onRemoveRange(S), + this.rangeCount > 1 && + !this.inMultiSelectMode && + (this._signal("multiSelect"), + (this.inMultiSelectMode = !0), + (this.session.$undoSelect = !1), + this.rangeList.attach(this.session)), + M || this.fromOrientedRange(O) + ); + } + }), + (this.toSingleRange = function (O) { + O = O || this.ranges[0]; + var M = this.rangeList.removeAll(); + M.length && this.$onRemoveRange(M), + O && this.fromOrientedRange(O); + }), + (this.substractPoint = function (O) { + var M = this.rangeList.substractPoint(O); + if (M) return this.$onRemoveRange(M), M[0]; + }), + (this.mergeOverlappingRanges = function () { + var O = this.rangeList.merge(); + O.length && this.$onRemoveRange(O); + }), + (this.$onAddRange = function (O) { + (this.rangeCount = this.rangeList.ranges.length), + this.ranges.unshift(O), + this._signal("addRange", { range: O }); + }), + (this.$onRemoveRange = function (O) { + if ( + ((this.rangeCount = this.rangeList.ranges.length), + 1 == this.rangeCount && this.inMultiSelectMode) + ) { + var M = this.rangeList.ranges.pop(); + O.push(M), (this.rangeCount = 0); + } + for (var A = O.length; A--; ) { + var S = this.ranges.indexOf(O[A]); + this.ranges.splice(S, 1); + } + this._signal("removeRange", { ranges: O }), + 0 === this.rangeCount && + this.inMultiSelectMode && + ((this.inMultiSelectMode = !1), + this._signal("singleSelect"), + (this.session.$undoSelect = !0), + this.rangeList.detach(this.session)), + (M = M || this.ranges[0]) && + !M.isEqual(this.getRange()) && + this.fromOrientedRange(M); + }), + (this.$initRangeList = function () { + this.rangeList || + ((this.rangeList = new m()), + (this.ranges = []), + (this.rangeCount = 0)); + }), + (this.getAllRanges = function () { + return this.rangeCount + ? this.rangeList.ranges.concat() + : [this.getRange()]; + }), + (this.splitIntoLines = function () { + for ( + var O = this.ranges.length + ? this.ranges + : [this.getRange()], + M = [], + A = 0; + A < O.length; + A++ + ) { + var S = O[A], + w = S.start.row, + I = S.end.row; + if (w === I) M.push(S.clone()); + else { + for ( + M.push( + new s( + w, + S.start.column, + w, + this.session.getLine(w).length + ) + ); + ++w < I; + + ) + M.push(this.getLineRange(w, !0)); + M.push(new s(I, 0, I, S.end.column)); + } + 0 == A && !this.isBackwards() && (M = M.reverse()); + } + for (this.toSingleRange(), A = M.length; A--; ) + this.addRange(M[A]); + }), + (this.joinSelections = function () { + var O = this.rangeList.ranges, + M = O[O.length - 1], + A = s.fromPoints(O[0].start, M.end); + this.toSingleRange(), + this.setSelectionRange(A, M.cursor == M.start); + }), + (this.toggleBlockSelection = function () { + if (this.rangeCount > 1) { + var O = this.rangeList.ranges, + M = O[O.length - 1], + A = s.fromPoints(O[0].start, M.end); + this.toSingleRange(), + this.setSelectionRange(A, M.cursor == M.start); + } else { + var S = this.session.documentToScreenPosition( + this.cursor + ), + w = this.session.documentToScreenPosition(this.anchor); + this.rectangularRangeBlock(S, w).forEach( + this.addRange, + this + ); + } + }), + (this.rectangularRangeBlock = function (O, M, A) { + var S = [], + w = O.column < M.column; + if (w) + var I = O.column, + C = M.column, + L = O.offsetX, + F = M.offsetX; + else + (I = M.column), + (C = O.column), + (L = M.offsetX), + (F = O.offsetX); + var ie = O.row < M.row; + if (ie) + var Y = O.row, + Z = M.row; + else (Y = M.row), (Z = O.row); + I < 0 && (I = 0), Y < 0 && (Y = 0), Y == Z && (A = !0); + for (var ee, $ = Y; $ <= Z; $++) { + var J = s.fromPoints( + this.session.screenToDocumentPosition($, I, L), + this.session.screenToDocumentPosition($, C, F) + ); + if (J.isEmpty()) { + if (ee && y(J.end, ee)) break; + ee = J.end; + } + (J.cursor = w ? J.start : J.end), S.push(J); + } + if ((ie && S.reverse(), !A)) { + for (var ne = S.length - 1; S[ne].isEmpty() && ne > 0; ) + ne--; + if (ne > 0) for (var ae = 0; S[ae].isEmpty(); ) ae++; + for (var le = ne; le >= ae; le--) + S[le].isEmpty() && S.splice(le, 1); + } + return S; + }); + }.call(d.prototype)); + var b = n("./editor").Editor; + function y(O, M) { + return O.row == M.row && O.column == M.column; + } + function x(O) { + O.$multiselectOnSessionChange || + ((O.$onAddRange = O.$onAddRange.bind(O)), + (O.$onRemoveRange = O.$onRemoveRange.bind(O)), + (O.$onMultiSelect = O.$onMultiSelect.bind(O)), + (O.$onSingleSelect = O.$onSingleSelect.bind(O)), + (O.$multiselectOnSessionChange = f.onSessionChange.bind(O)), + (O.$checkMultiselectChange = O.$checkMultiselectChange.bind(O)), + O.$multiselectOnSessionChange(O), + O.on("changeSession", O.$multiselectOnSessionChange), + O.on("mousedown", u), + O.commands.addCommands(o.defaultCommands), + (function (O) { + if (O.textInput) { + var M = O.textInput.getElement(), + A = !1; + h.addListener( + M, + "keydown", + function (w) { + O.$blockSelectEnabled && + 18 == w.keyCode && + !(w.ctrlKey || w.shiftKey || w.metaKey) + ? A || + (O.renderer.setMouseCursor("crosshair"), (A = !0)) + : A && S(); + }, + O + ), + h.addListener(M, "keyup", S, O), + h.addListener(M, "blur", S, O); + } + function S(w) { + A && (O.renderer.setMouseCursor(""), (A = !1)); + } + })(O)); + } + (function () { + (this.updateSelectionMarkers = function () { + this.renderer.updateCursor(), this.renderer.updateBackMarkers(); + }), + (this.addSelectionMarker = function (O) { + O.cursor || (O.cursor = O.end); + var M = this.getSelectionStyle(); + return ( + (O.marker = this.session.addMarker(O, "ace_selection", M)), + this.session.$selectionMarkers.push(O), + (this.session.selectionMarkerCount = this.session.$selectionMarkers.length), + O + ); + }), + (this.removeSelectionMarker = function (O) { + if (O.marker) { + this.session.removeMarker(O.marker); + var M = this.session.$selectionMarkers.indexOf(O); + -1 != M && this.session.$selectionMarkers.splice(M, 1), + (this.session.selectionMarkerCount = this.session.$selectionMarkers.length); + } + }), + (this.removeSelectionMarkers = function (O) { + for ( + var M = this.session.$selectionMarkers, A = O.length; + A--; + + ) { + var S = O[A]; + if (S.marker) { + this.session.removeMarker(S.marker); + var w = M.indexOf(S); + -1 != w && M.splice(w, 1); + } + } + this.session.selectionMarkerCount = M.length; + }), + (this.$onAddRange = function (O) { + this.addSelectionMarker(O.range), + this.renderer.updateCursor(), + this.renderer.updateBackMarkers(); + }), + (this.$onRemoveRange = function (O) { + this.removeSelectionMarkers(O.ranges), + this.renderer.updateCursor(), + this.renderer.updateBackMarkers(); + }), + (this.$onMultiSelect = function (O) { + this.inMultiSelectMode || + ((this.inMultiSelectMode = !0), + this.setStyle("ace_multiselect"), + this.keyBinding.addKeyboardHandler(o.keyboardHandler), + this.commands.setDefaultHandler( + "exec", + this.$onMultiSelectExec + ), + this.renderer.updateCursor(), + this.renderer.updateBackMarkers()); + }), + (this.$onSingleSelect = function (O) { + this.session.multiSelect.inVirtualMode || + ((this.inMultiSelectMode = !1), + this.unsetStyle("ace_multiselect"), + this.keyBinding.removeKeyboardHandler(o.keyboardHandler), + this.commands.removeDefaultHandler( + "exec", + this.$onMultiSelectExec + ), + this.renderer.updateCursor(), + this.renderer.updateBackMarkers(), + this._emit("changeSelection")); + }), + (this.$onMultiSelectExec = function (O) { + var M = O.command, + A = O.editor; + if (A.multiSelect) { + if (M.multiSelectAction) + "forEach" == M.multiSelectAction + ? (S = A.forEachSelection(M, O.args)) + : "forEachLine" == M.multiSelectAction + ? (S = A.forEachSelection(M, O.args, !0)) + : "single" == M.multiSelectAction + ? (A.exitMultiSelectMode(), + (S = M.exec(A, O.args || {}))) + : (S = M.multiSelectAction(A, O.args || {})); + else { + var S = M.exec(A, O.args || {}); + A.multiSelect.addRange(A.multiSelect.toOrientedRange()), + A.multiSelect.mergeOverlappingRanges(); + } + return S; + } + }), + (this.forEachSelection = function (O, M, A) { + if (!this.inVirtualSelectionMode) { + var ie, + w = 1 == A || (A && A.$byLines), + I = this.session, + C = this.selection, + F = (A && A.keepOrder ? C : C.rangeList).ranges; + if (!F.length) + return O.exec ? O.exec(this, M || {}) : O(this, M || {}); + var Y = C._eventRegistry; + C._eventRegistry = {}; + var Z = new d(I); + this.inVirtualSelectionMode = !0; + for (var ee = F.length; ee--; ) { + if (w) + for (; ee > 0 && F[ee].start.row == F[ee - 1].end.row; ) + ee--; + Z.fromOrientedRange(F[ee]), + (Z.index = ee), + (this.selection = I.selection = Z); + var $ = O.exec ? O.exec(this, M || {}) : O(this, M || {}); + !ie && void 0 !== $ && (ie = $), Z.toOrientedRange(F[ee]); + } + Z.detach(), + (this.selection = I.selection = C), + (this.inVirtualSelectionMode = !1), + (C._eventRegistry = Y), + C.mergeOverlappingRanges(), + C.ranges[0] && C.fromOrientedRange(C.ranges[0]); + var J = this.renderer.$scrollAnimation; + return ( + this.onCursorChange(), + this.onSelectionChange(), + J && + J.from == J.to && + this.renderer.animateScrolling(J.from), + ie + ); + } + }), + (this.exitMultiSelectMode = function () { + !this.inMultiSelectMode || + this.inVirtualSelectionMode || + this.multiSelect.toSingleRange(); + }), + (this.getSelectedText = function () { + var O = ""; + if (this.inMultiSelectMode && !this.inVirtualSelectionMode) { + for ( + var M = this.multiSelect.rangeList.ranges, A = [], S = 0; + S < M.length; + S++ + ) + A.push(this.session.getTextRange(M[S])); + var w = this.session.getDocument().getNewLineCharacter(); + (O = A.join(w)).length == (A.length - 1) * w.length && + (O = ""); + } else + this.selection.isEmpty() || + (O = this.session.getTextRange(this.getSelectionRange())); + return O; + }), + (this.$checkMultiselectChange = function (O, M) { + if (this.inMultiSelectMode && !this.inVirtualSelectionMode) { + var A = this.multiSelect.ranges[0]; + if ( + this.multiSelect.isEmpty() && + M == this.multiSelect.anchor + ) + return; + var S = + M == this.multiSelect.anchor + ? A.cursor == A.start + ? A.end + : A.start + : A.cursor; + S.row != M.row || + this.session.$clipPositionToDocument(S.row, S.column) + .column != M.column + ? this.multiSelect.toSingleRange( + this.multiSelect.toOrientedRange() + ) + : this.multiSelect.mergeOverlappingRanges(); + } + }), + (this.findAll = function (O, M, A) { + if ( + (((M = M || {}).needle = O || M.needle), null == M.needle) + ) { + var S = this.selection.isEmpty() + ? this.selection.getWordRange() + : this.selection.getRange(); + M.needle = this.session.getTextRange(S); + } + this.$search.set(M); + var w = this.$search.findAll(this.session); + if (!w.length) return 0; + var I = this.multiSelect; + A || I.toSingleRange(w[0]); + for (var C = w.length; C--; ) I.addRange(w[C], !0); + return ( + S && I.rangeList.rangeAtPoint(S.start) && I.addRange(S, !0), + w.length + ); + }), + (this.selectMoreLines = function (O, M) { + var A = this.selection.toOrientedRange(), + S = A.cursor == A.end, + w = this.session.documentToScreenPosition(A.cursor); + this.selection.$desiredColumn && + (w.column = this.selection.$desiredColumn); + var F, + I = this.session.screenToDocumentPosition( + w.row + O, + w.column + ); + if (A.isEmpty()) var L = I; + else { + var C = this.session.documentToScreenPosition( + S ? A.end : A.start + ); + L = this.session.screenToDocumentPosition( + C.row + O, + C.column + ); + } + if ( + (S + ? ((F = s.fromPoints(I, L)).cursor = F.start) + : ((F = s.fromPoints(L, I)).cursor = F.end), + (F.desiredColumn = w.column), + this.selection.inMultiSelectMode) + ) { + if (M) var ie = A.cursor; + } else this.selection.addRange(A); + this.selection.addRange(F), + ie && this.selection.substractPoint(ie); + }), + (this.transposeSelections = function (O) { + for ( + var M = this.session, + A = M.multiSelect, + S = A.ranges, + w = S.length; + w--; + + ) + if ((I = S[w]).isEmpty()) { + var C = M.getWordRange(I.start.row, I.start.column); + (I.start.row = C.start.row), + (I.start.column = C.start.column), + (I.end.row = C.end.row), + (I.end.column = C.end.column); + } + A.mergeOverlappingRanges(); + var L = []; + for (w = S.length; w--; ) + L.unshift(M.getTextRange((I = S[w]))); + for ( + O < 0 ? L.unshift(L.pop()) : L.push(L.shift()), + w = S.length; + w--; + + ) { + var I; + (C = (I = S[w]).clone()), + M.replace(I, L[w]), + (I.start.row = C.start.row), + (I.start.column = C.start.column); + } + A.fromOrientedRange(A.ranges[0]); + }), + (this.selectMore = function (O, M, A) { + var S = this.session, + I = S.multiSelect.toOrientedRange(); + if ( + !I.isEmpty() || + (((I = S.getWordRange(I.start.row, I.start.column)).cursor = + -1 == O ? I.start : I.end), + this.multiSelect.addRange(I), + !A) + ) { + var C = S.getTextRange(I), + L = (function (O, M, A) { + return ( + (c.$options.wrap = !0), + (c.$options.needle = M), + (c.$options.backwards = -1 == A), + c.find(O) + ); + })(S, C, O); + L && + ((L.cursor = -1 == O ? L.start : L.end), + this.session.unfold(L), + this.multiSelect.addRange(L), + this.renderer.scrollCursorIntoView(null, 0.5)), + M && this.multiSelect.substractPoint(I.cursor); + } + }), + (this.alignCursors = function () { + var O = this.session, + M = O.multiSelect, + A = M.ranges, + S = -1, + w = A.filter(function (ne) { + if (ne.cursor.row == S) return !0; + S = ne.cursor.row; + }); + if (A.length && w.length != A.length - 1) { + w.forEach(function (ne) { + M.substractPoint(ne.cursor); + }); + var ee = 0, + $ = 1 / 0, + J = A.map(function (ne) { + var ae = ne.cursor, + Oe = O.getLine(ae.row) + .substr(ae.column) + .search(/\S/g); + return ( + -1 == Oe && (Oe = 0), + ae.column > ee && (ee = ae.column), + Oe < $ && ($ = Oe), + Oe + ); + }); + A.forEach(function (ne, ae) { + var le = ne.cursor, + Oe = ee - le.column, + Le = J[ae] - $; + Oe > Le + ? O.insert(le, r.stringRepeat(" ", Oe - Le)) + : O.remove( + new s( + le.row, + le.column, + le.row, + le.column - Oe + Le + ) + ), + (ne.start.column = ne.end.column = ee), + (ne.start.row = ne.end.row = le.row), + (ne.cursor = ne.end); + }), + M.fromOrientedRange(A[0]), + this.renderer.updateCursor(), + this.renderer.updateBackMarkers(); + } else { + var I = this.selection.getRange(), + C = I.start.row, + L = I.end.row, + F = C == L; + if (F) { + var Y, + ie = this.session.getLength(); + do { + Y = this.session.getLine(L); + } while (/[=:]/.test(Y) && ++L < ie); + do { + Y = this.session.getLine(C); + } while (/[=:]/.test(Y) && --C > 0); + C < 0 && (C = 0), L >= ie && (L = ie - 1); + } + var Z = this.session.removeFullLines(C, L); + (Z = this.$reAlignText(Z, F)), + this.session.insert( + { row: C, column: 0 }, + Z.join("\n") + "\n" + ), + F || + ((I.start.column = 0), + (I.end.column = Z[Z.length - 1].length)), + this.selection.setRange(I); + } + }), + (this.$reAlignText = function (O, M) { + var w, + I, + C, + A = !0, + S = !0; + return O.map(function (Z) { + var ee = Z.match(/(\s*)(.*?)(\s*)([=:].*)/); + return ee + ? null == w + ? ((w = ee[1].length), + (I = ee[2].length), + (C = ee[3].length), + ee) + : (w + I + C != + ee[1].length + ee[2].length + ee[3].length && + (S = !1), + w != ee[1].length && (A = !1), + w > ee[1].length && (w = ee[1].length), + I < ee[2].length && (I = ee[2].length), + C > ee[3].length && (C = ee[3].length), + ee) + : [Z]; + }).map( + M + ? F + : A + ? S + ? function (Z) { + return Z[2] + ? L(w + I - Z[2].length) + + Z[2] + + L(C) + + Z[4].replace(/^([=:])\s+/, "$1 ") + : Z[0]; + } + : F + : function (Z) { + return Z[2] + ? L(w) + + Z[2] + + L(C) + + Z[4].replace(/^([=:])\s+/, "$1 ") + : Z[0]; + } + ); + function L(Z) { + return r.stringRepeat(" ", Z); + } + function F(Z) { + return Z[2] + ? L(w) + + Z[2] + + L(I - Z[2].length + C) + + Z[4].replace(/^([=:])\s+/, "$1 ") + : Z[0]; + } + }); + }.call(b.prototype), + (f.onSessionChange = function (O) { + var M = O.session; + M && + !M.multiSelect && + ((M.$selectionMarkers = []), + M.selection.$initRangeList(), + (M.multiSelect = M.selection)), + (this.multiSelect = M && M.multiSelect); + var A = O.oldSession; + A && + (A.multiSelect.off("addRange", this.$onAddRange), + A.multiSelect.off("removeRange", this.$onRemoveRange), + A.multiSelect.off("multiSelect", this.$onMultiSelect), + A.multiSelect.off("singleSelect", this.$onSingleSelect), + A.multiSelect.lead.off( + "change", + this.$checkMultiselectChange + ), + A.multiSelect.anchor.off( + "change", + this.$checkMultiselectChange + )), + M && + (M.multiSelect.on("addRange", this.$onAddRange), + M.multiSelect.on("removeRange", this.$onRemoveRange), + M.multiSelect.on("multiSelect", this.$onMultiSelect), + M.multiSelect.on("singleSelect", this.$onSingleSelect), + M.multiSelect.lead.on( + "change", + this.$checkMultiselectChange + ), + M.multiSelect.anchor.on( + "change", + this.$checkMultiselectChange + )), + M && + this.inMultiSelectMode != M.selection.inMultiSelectMode && + (M.selection.inMultiSelectMode + ? this.$onMultiSelect() + : this.$onSingleSelect()); + }), + (f.MultiSelect = x), + n("./config").defineOptions(b.prototype, "editor", { + enableMultiselect: { + set: function (O) { + x(this), + O + ? (this.on( + "changeSession", + this.$multiselectOnSessionChange + ), + this.on("mousedown", u)) + : (this.off( + "changeSession", + this.$multiselectOnSessionChange + ), + this.off("mousedown", u)); + }, + value: !0, + }, + enableBlockSelect: { + set: function (O) { + this.$blockSelectEnabled = O; + }, + value: !0, + }, + })); + } + ), + ace.define( + "ace/mode/folding/fold_mode", + ["require", "exports", "module", "ace/range"], + function (n, f, _) { + "use strict"; + var m = n("../../range").Range, + s = (f.FoldMode = function () {}); + (function () { + (this.foldingStartMarker = null), + (this.foldingStopMarker = null), + (this.getFoldWidget = function (d, u, h) { + var r = d.getLine(h); + return this.foldingStartMarker.test(r) + ? "start" + : "markbeginend" == u && + this.foldingStopMarker && + this.foldingStopMarker.test(r) + ? "end" + : ""; + }), + (this.getFoldWidgetRange = function (d, u, h) { + return null; + }), + (this.indentationBlock = function (d, u, h) { + var r = /\S/, + o = d.getLine(u), + i = o.search(r); + if (-1 != i) { + for ( + var c = h || o.length, l = d.getLength(), g = u, b = u; + ++u < l; + + ) { + var y = d.getLine(u).search(r); + if (-1 != y) { + if (y <= i) { + var x = d.getTokenAt(u, 0); + if (!x || "string" !== x.type) break; + } + b = u; + } + } + if (b > g) { + var T = d.getLine(b).length; + return new m(g, c, b, T); + } + } + }), + (this.openingBracketBlock = function (d, u, h, r, o) { + var i = { row: h, column: r + 1 }, + c = d.$findClosingBracket(u, i, o); + if (c) { + var l = d.foldWidgets[c.row]; + return ( + null == l && (l = d.getFoldWidget(c.row)), + "start" == l && + c.row > i.row && + (c.row--, (c.column = d.getLine(c.row).length)), + m.fromPoints(i, c) + ); + } + }), + (this.closingBracketBlock = function (d, u, h, r, o) { + var i = { row: h, column: r }, + c = d.$findOpeningBracket(u, i); + if (c) return c.column++, i.column--, m.fromPoints(c, i); + }); + }.call(s.prototype)); + } + ), + ace.define( + "ace/theme/textmate", + ["require", "exports", "module", "ace/lib/dom"], + function (n, f, _) { + "use strict"; + (f.isDark = !1), + (f.cssClass = "ace-tm"), + (f.cssText = + '.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}'), + (f.$id = "ace/theme/textmate"), + n("../lib/dom").importCssString(f.cssText, f.cssClass, !1); + } + ), + ace.define( + "ace/line_widgets", + ["require", "exports", "module", "ace/lib/dom"], + function (n, f, _) { + "use strict"; + var m = n("./lib/dom"); + function s(d) { + (this.session = d), + (this.session.widgetManager = this), + (this.session.getRowLength = this.getRowLength), + (this.session.$getWidgetScreenLength = this.$getWidgetScreenLength), + (this.updateOnChange = this.updateOnChange.bind(this)), + (this.renderWidgets = this.renderWidgets.bind(this)), + (this.measureWidgets = this.measureWidgets.bind(this)), + (this.session._changedWidgets = []), + (this.$onChangeEditor = this.$onChangeEditor.bind(this)), + this.session.on("change", this.updateOnChange), + this.session.on("changeFold", this.updateOnFold), + this.session.on("changeEditor", this.$onChangeEditor); + } + (function () { + (this.getRowLength = function (d) { + var u; + return ( + (u = + (this.lineWidgets && + this.lineWidgets[d] && + this.lineWidgets[d].rowCount) || + 0), + this.$useWrapMode && this.$wrapData[d] + ? this.$wrapData[d].length + 1 + u + : 1 + u + ); + }), + (this.$getWidgetScreenLength = function () { + var d = 0; + return ( + this.lineWidgets.forEach(function (u) { + u && u.rowCount && !u.hidden && (d += u.rowCount); + }), + d + ); + }), + (this.$onChangeEditor = function (d) { + this.attach(d.editor); + }), + (this.attach = function (d) { + d && + d.widgetManager && + d.widgetManager != this && + d.widgetManager.detach(), + this.editor != d && + (this.detach(), + (this.editor = d), + d && + ((d.widgetManager = this), + d.renderer.on("beforeRender", this.measureWidgets), + d.renderer.on("afterRender", this.renderWidgets))); + }), + (this.detach = function (d) { + var u = this.editor; + if (u) { + (this.editor = null), + (u.widgetManager = null), + u.renderer.off("beforeRender", this.measureWidgets), + u.renderer.off("afterRender", this.renderWidgets); + var h = this.session.lineWidgets; + h && + h.forEach(function (r) { + r && + r.el && + r.el.parentNode && + ((r._inDocument = !1), + r.el.parentNode.removeChild(r.el)); + }); + } + }), + (this.updateOnFold = function (d, u) { + var h = u.lineWidgets; + if (h && d.action) { + for ( + var r = d.data, + o = r.start.row, + i = r.end.row, + c = "add" == d.action, + l = o + 1; + l < i; + l++ + ) + h[l] && (h[l].hidden = c); + h[i] && + (c + ? h[o] + ? (h[i].hidden = c) + : (h[o] = h[i]) + : (h[o] == h[i] && (h[o] = void 0), (h[i].hidden = c))); + } + }), + (this.updateOnChange = function (d) { + var u = this.session.lineWidgets; + if (u) { + var h = d.start.row, + r = d.end.row - h; + if (0 !== r) + if ("remove" == d.action) { + var o = u.splice(h + 1, r); + !u[h] && o[o.length - 1] && (u[h] = o.pop()), + o.forEach(function (c) { + c && this.removeLineWidget(c); + }, this), + this.$updateRows(); + } else { + var i = new Array(r); + u[h] && + null != u[h].column && + d.start.column > u[h].column && + h++, + i.unshift(h, 0), + u.splice.apply(u, i), + this.$updateRows(); + } + } + }), + (this.$updateRows = function () { + var d = this.session.lineWidgets; + if (d) { + var u = !0; + d.forEach(function (h, r) { + if (h) + for (u = !1, h.row = r; h.$oldWidget; ) + (h.$oldWidget.row = r), (h = h.$oldWidget); + }), + u && (this.session.lineWidgets = null); + } + }), + (this.$registerLineWidget = function (d) { + this.session.lineWidgets || + (this.session.lineWidgets = new Array( + this.session.getLength() + )); + var u = this.session.lineWidgets[d.row]; + return ( + u && + ((d.$oldWidget = u), + u.el && + u.el.parentNode && + (u.el.parentNode.removeChild(u.el), + (u._inDocument = !1))), + (this.session.lineWidgets[d.row] = d), + d + ); + }), + (this.addLineWidget = function (d) { + if ( + (this.$registerLineWidget(d), + (d.session = this.session), + !this.editor) + ) + return d; + var u = this.editor.renderer; + d.html && + !d.el && + ((d.el = m.createElement("div")), + (d.el.innerHTML = d.html)), + d.el && + (m.addCssClass(d.el, "ace_lineWidgetContainer"), + (d.el.style.position = "absolute"), + (d.el.style.zIndex = 5), + u.container.appendChild(d.el), + (d._inDocument = !0), + d.coverGutter || (d.el.style.zIndex = 3), + null == d.pixelHeight && + (d.pixelHeight = d.el.offsetHeight)), + null == d.rowCount && + (d.rowCount = d.pixelHeight / u.layerConfig.lineHeight); + var h = this.session.getFoldAt(d.row, 0); + if (((d.$fold = h), h)) { + var r = this.session.lineWidgets; + d.row != h.end.row || r[h.start.row] + ? (d.hidden = !0) + : (r[h.start.row] = d); + } + return ( + this.session._emit("changeFold", { + data: { start: { row: d.row } }, + }), + this.$updateRows(), + this.renderWidgets(null, u), + this.onWidgetChanged(d), + d + ); + }), + (this.removeLineWidget = function (d) { + if ( + ((d._inDocument = !1), + (d.session = null), + d.el && + d.el.parentNode && + d.el.parentNode.removeChild(d.el), + d.editor && d.editor.destroy) + ) + try { + d.editor.destroy(); + } catch (h) {} + if (this.session.lineWidgets) { + var u = this.session.lineWidgets[d.row]; + if (u == d) + (this.session.lineWidgets[d.row] = d.$oldWidget), + d.$oldWidget && this.onWidgetChanged(d.$oldWidget); + else + for (; u; ) { + if (u.$oldWidget == d) { + u.$oldWidget = d.$oldWidget; + break; + } + u = u.$oldWidget; + } + } + this.session._emit("changeFold", { + data: { start: { row: d.row } }, + }), + this.$updateRows(); + }), + (this.getWidgetsAtRow = function (d) { + for ( + var u = this.session.lineWidgets, h = u && u[d], r = []; + h; + + ) + r.push(h), (h = h.$oldWidget); + return r; + }), + (this.onWidgetChanged = function (d) { + this.session._changedWidgets.push(d), + this.editor && this.editor.renderer.updateFull(); + }), + (this.measureWidgets = function (d, u) { + var h = this.session._changedWidgets, + r = u.layerConfig; + if (h && h.length) { + for (var o = 1 / 0, i = 0; i < h.length; i++) { + var c = h[i]; + if (c && c.el && c.session == this.session) { + if (!c._inDocument) { + if (this.session.lineWidgets[c.row] != c) continue; + (c._inDocument = !0), u.container.appendChild(c.el); + } + (c.h = c.el.offsetHeight), + c.fixedWidth || + ((c.w = c.el.offsetWidth), + (c.screenWidth = Math.ceil( + c.w / r.characterWidth + ))); + var l = c.h / r.lineHeight; + c.coverLine && + (l -= this.session.getRowLineCount(c.row)) < 0 && + (l = 0), + c.rowCount != l && + ((c.rowCount = l), c.row < o && (o = c.row)); + } + } + o != 1 / 0 && + (this.session._emit("changeFold", { + data: { start: { row: o } }, + }), + (this.session.lineWidgetWidth = null)), + (this.session._changedWidgets = []); + } + }), + (this.renderWidgets = function (d, u) { + var h = u.layerConfig, + r = this.session.lineWidgets; + if (r) { + for ( + var o = Math.min(this.firstRow, h.firstRow), + i = Math.max(this.lastRow, h.lastRow, r.length); + o > 0 && !r[o]; + + ) + o--; + (this.firstRow = h.firstRow), + (this.lastRow = h.lastRow), + (u.$cursorLayer.config = h); + for (var c = o; c <= i; c++) { + var l = r[c]; + if (l && l.el) { + if (l.hidden) { + l.el.style.top = -100 - (l.pixelHeight || 0) + "px"; + continue; + } + l._inDocument || + ((l._inDocument = !0), u.container.appendChild(l.el)); + var g = u.$cursorLayer.getPixelPosition( + { row: c, column: 0 }, + !0 + ).top; + l.coverLine || + (g += + h.lineHeight * this.session.getRowLineCount(l.row)), + (l.el.style.top = g - h.offset + "px"); + var b = l.coverGutter ? 0 : u.gutterWidth; + l.fixedWidth || (b -= u.scrollLeft), + (l.el.style.left = b + "px"), + l.fullWidth && + l.screenWidth && + (l.el.style.minWidth = + h.width + 2 * h.padding + "px"), + (l.el.style.right = l.fixedWidth + ? u.scrollBar.getWidth() + "px" + : ""); + } + } + } + }); + }.call(s.prototype), + (f.LineWidgets = s)); + } + ), + ace.define( + "ace/ext/error_marker", + [ + "require", + "exports", + "module", + "ace/line_widgets", + "ace/lib/dom", + "ace/range", + ], + function (n, f, _) { + "use strict"; + var m = n("../line_widgets").LineWidgets, + s = n("../lib/dom"), + d = n("../range").Range; + (f.showErrorMarker = function (r, o) { + var i = r.session; + i.widgetManager || + ((i.widgetManager = new m(i)), i.widgetManager.attach(r)); + var c = r.getCursorPosition(), + l = c.row, + g = i.widgetManager.getWidgetsAtRow(l).filter(function (w) { + return "errorMarker" == w.type; + })[0]; + g ? g.destroy() : (l -= o); + var y, + b = (function (r, o, i) { + var c = r.getAnnotations().sort(d.comparePoints); + if (c.length) { + var l = (function (r, o, i) { + for (var c = 0, l = r.length - 1; c <= l; ) { + var g = (c + l) >> 1, + b = i(o, r[g]); + if (b > 0) c = g + 1; + else { + if (!(b < 0)) return g; + l = g - 1; + } + } + return -(c + 1); + })(c, { row: o, column: -1 }, d.comparePoints); + l < 0 && (l = -l - 1), + l >= c.length + ? (l = i > 0 ? 0 : c.length - 1) + : 0 === l && i < 0 && (l = c.length - 1); + var g = c[l]; + if (g && i) { + if (g.row === o) { + do { + g = c[(l += i)]; + } while (g && g.row === o); + if (!g) return c.slice(); + } + var b = []; + o = g.row; + do { + b[i < 0 ? "unshift" : "push"](g), (g = c[(l += i)]); + } while (g && g.row == o); + return b.length && b; + } + } + })(i, l, o); + if (b) { + var x = b[0]; + (c.column = + (x.pos && "number" != typeof x.column + ? x.pos.sc + : x.column) || 0), + (c.row = x.row), + (y = r.renderer.$gutterLayer.$annotations[c.row]); + } else { + if (g) return; + y = { text: ["Looks good!"], className: "ace_ok" }; + } + r.session.unfold(c.row), r.selection.moveToPosition(c); + var T = { + row: c.row, + fixedWidth: !0, + coverGutter: !0, + el: s.createElement("div"), + type: "errorMarker", + }, + O = T.el.appendChild(s.createElement("div")), + M = T.el.appendChild(s.createElement("div")); + M.className = "error_widget_arrow " + y.className; + var A = r.renderer.$cursorLayer.getPixelPosition(c).left; + (M.style.left = A + r.renderer.gutterWidth - 5 + "px"), + (T.el.className = "error_widget_wrapper"), + (O.className = "error_widget " + y.className), + (O.innerHTML = y.text.join("
")), + O.appendChild(s.createElement("div")); + var S = function (w, I, C) { + if (0 === I && ("esc" === C || "return" === C)) + return T.destroy(), { command: "null" }; + }; + (T.destroy = function () { + r.$mouseHandler.isMousePressed || + (r.keyBinding.removeKeyboardHandler(S), + i.widgetManager.removeLineWidget(T), + r.off("changeSelection", T.destroy), + r.off("changeSession", T.destroy), + r.off("mouseup", T.destroy), + r.off("change", T.destroy)); + }), + r.keyBinding.addKeyboardHandler(S), + r.on("changeSelection", T.destroy), + r.on("changeSession", T.destroy), + r.on("mouseup", T.destroy), + r.on("change", T.destroy), + r.session.widgetManager.addLineWidget(T), + (T.el.onmousedown = r.focus.bind(r)), + r.renderer.scrollCursorIntoView(null, 0.5, { + bottom: T.el.offsetHeight, + }); + }), + s.importCssString( + " .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }", + "error_marker.css", + !1 + ); + } + ), + ace.define( + "ace/ace", + [ + "require", + "exports", + "module", + "ace/lib/fixoldbrowsers", + "ace/lib/dom", + "ace/lib/event", + "ace/range", + "ace/editor", + "ace/edit_session", + "ace/undomanager", + "ace/virtual_renderer", + "ace/worker/worker_client", + "ace/keyboard/hash_handler", + "ace/placeholder", + "ace/multi_select", + "ace/mode/folding/fold_mode", + "ace/theme/textmate", + "ace/ext/error_marker", + "ace/config", + ], + function (n, f, _) { + "use strict"; + n("./lib/fixoldbrowsers"); + var m = n("./lib/dom"), + s = n("./lib/event"), + d = n("./range").Range, + u = n("./editor").Editor, + h = n("./edit_session").EditSession, + r = n("./undomanager").UndoManager, + o = n("./virtual_renderer").VirtualRenderer; + n("./worker/worker_client"), + n("./keyboard/hash_handler"), + n("./placeholder"), + n("./multi_select"), + n("./mode/folding/fold_mode"), + n("./theme/textmate"), + n("./ext/error_marker"), + (f.config = n("./config")), + (f.require = n), + (f.define = p.amdD), + (f.edit = function (i, c) { + if ("string" == typeof i) { + var l = i; + if (!(i = document.getElementById(l))) + throw new Error("ace.edit can't find div #" + l); + } + if (i && i.env && i.env.editor instanceof u) + return i.env.editor; + var g = ""; + if (i && /input|textarea/i.test(i.tagName)) { + var b = i; + (g = b.value), + (i = m.createElement("pre")), + b.parentNode.replaceChild(i, b); + } else i && ((g = i.textContent), (i.innerHTML = "")); + var y = f.createEditSession(g), + x = new u(new o(i), y, c), + T = { + document: y, + editor: x, + onResize: x.resize.bind(x, null), + }; + return ( + b && (T.textarea = b), + s.addListener(window, "resize", T.onResize), + x.on("destroy", function () { + s.removeListener(window, "resize", T.onResize), + (T.editor.container.env = null); + }), + (x.container.env = x.env = T), + x + ); + }), + (f.createEditSession = function (i, c) { + var l = new h(i, c); + return l.setUndoManager(new r()), l; + }), + (f.Range = d), + (f.Editor = u), + (f.EditSession = h), + (f.UndoManager = r), + (f.VirtualRenderer = o), + (f.version = f.config.version); + } + ), + ace.require(["ace/ace"], function (n) { + for (var f in (n && (n.config.init(!0), (n.define = ace.define)), + window.ace || (window.ace = n), + n)) + n.hasOwnProperty(f) && (window.ace[f] = n[f]); + (window.ace.default = window.ace), ye && (ye.exports = window.ace); + }); + }, + 9426: (ye) => { + function j() {} + (ye.exports = j), (ye.exports.HttpsAgent = j); + }, + 6512: (ye, j, p) => { + var n = p(9696).Token, + f = p(8123).Lexer, + _ = p(3491).Interval; + function m() { + return this; + } + function s(d) { + return ( + m.call(this), + (this.tokenSource = d), + (this.tokens = []), + (this.index = -1), + (this.fetchedEOF = !1), + this + ); + } + ((s.prototype = Object.create(m.prototype)).constructor = s), + (s.prototype.mark = function () { + return 0; + }), + (s.prototype.release = function (d) {}), + (s.prototype.reset = function () { + this.seek(0); + }), + (s.prototype.seek = function (d) { + this.lazyInit(), (this.index = this.adjustSeekIndex(d)); + }), + (s.prototype.get = function (d) { + return this.lazyInit(), this.tokens[d]; + }), + (s.prototype.consume = function () { + if ( + !( + this.index >= 0 && + (this.fetchedEOF + ? this.index < this.tokens.length - 1 + : this.index < this.tokens.length) + ) && + this.LA(1) === n.EOF + ) + throw "cannot consume EOF"; + this.sync(this.index + 1) && + (this.index = this.adjustSeekIndex(this.index + 1)); + }), + (s.prototype.sync = function (d) { + var u = d - this.tokens.length + 1; + return !(u > 0) || this.fetch(u) >= u; + }), + (s.prototype.fetch = function (d) { + if (this.fetchedEOF) return 0; + for (var u = 0; u < d; u++) { + var h = this.tokenSource.nextToken(); + if ( + ((h.tokenIndex = this.tokens.length), + this.tokens.push(h), + h.type === n.EOF) + ) + return (this.fetchedEOF = !0), u + 1; + } + return d; + }), + (s.prototype.getTokens = function (d, u, h) { + if ((void 0 === h && (h = null), d < 0 || u < 0)) return null; + this.lazyInit(); + var r = []; + u >= this.tokens.length && (u = this.tokens.length - 1); + for (var o = d; o < u; o++) { + var i = this.tokens[o]; + if (i.type === n.EOF) break; + (null === h || h.contains(i.type)) && r.push(i); + } + return r; + }), + (s.prototype.LA = function (d) { + return this.LT(d).type; + }), + (s.prototype.LB = function (d) { + return this.index - d < 0 ? null : this.tokens[this.index - d]; + }), + (s.prototype.LT = function (d) { + if ((this.lazyInit(), 0 === d)) return null; + if (d < 0) return this.LB(-d); + var u = this.index + d - 1; + return ( + this.sync(u), + u >= this.tokens.length + ? this.tokens[this.tokens.length - 1] + : this.tokens[u] + ); + }), + (s.prototype.adjustSeekIndex = function (d) { + return d; + }), + (s.prototype.lazyInit = function () { + -1 === this.index && this.setup(); + }), + (s.prototype.setup = function () { + this.sync(0), (this.index = this.adjustSeekIndex(0)); + }), + (s.prototype.setTokenSource = function (d) { + (this.tokenSource = d), + (this.tokens = []), + (this.index = -1), + (this.fetchedEOF = !1); + }), + (s.prototype.nextTokenOnChannel = function (d, u) { + if ((this.sync(d), d >= this.tokens.length)) return -1; + for (var h = this.tokens[d]; h.channel !== this.channel; ) { + if (h.type === n.EOF) return -1; + this.sync((d += 1)), (h = this.tokens[d]); + } + return d; + }), + (s.prototype.previousTokenOnChannel = function (d, u) { + for (; d >= 0 && this.tokens[d].channel !== u; ) d -= 1; + return d; + }), + (s.prototype.getHiddenTokensToRight = function (d, u) { + if ( + (void 0 === u && (u = -1), + this.lazyInit(), + d < 0 || d >= this.tokens.length) + ) + throw d + " not in 0.." + this.tokens.length - 1; + var h = this.nextTokenOnChannel(d + 1, f.DEFAULT_TOKEN_CHANNEL); + return this.filterForChannel( + d + 1, + -1 === h ? this.tokens.length - 1 : h, + u + ); + }), + (s.prototype.getHiddenTokensToLeft = function (d, u) { + if ( + (void 0 === u && (u = -1), + this.lazyInit(), + d < 0 || d >= this.tokens.length) + ) + throw d + " not in 0.." + this.tokens.length - 1; + var h = this.previousTokenOnChannel(d - 1, f.DEFAULT_TOKEN_CHANNEL); + return h === d - 1 ? null : this.filterForChannel(h + 1, d - 1, u); + }), + (s.prototype.filterForChannel = function (d, u, h) { + for (var r = [], o = d; o < u + 1; o++) { + var i = this.tokens[o]; + -1 === h + ? i.channel !== f.DEFAULT_TOKEN_CHANNEL && r.push(i) + : i.channel === h && r.push(i); + } + return 0 === r.length ? null : r; + }), + (s.prototype.getSourceName = function () { + return this.tokenSource.getSourceName(); + }), + (s.prototype.getText = function (d) { + this.lazyInit(), + this.fill(), + null == d && (d = new _(0, this.tokens.length - 1)); + var u = d.start; + u instanceof n && (u = u.tokenIndex); + var h = d.stop; + if ( + (h instanceof n && (h = h.tokenIndex), + null === u || null === h || u < 0 || h < 0) + ) + return ""; + h >= this.tokens.length && (h = this.tokens.length - 1); + for (var r = "", o = u; o < h + 1; o++) { + var i = this.tokens[o]; + if (i.type === n.EOF) break; + r += i.text; + } + return r; + }), + (s.prototype.fill = function () { + for (this.lazyInit(); 1e3 === this.fetch(1e3); ); + }), + (j.B = s); + }, + 4412: (ye, j, p) => { + var n = p(9696).CommonToken; + function f() { + return this; + } + function _(m) { + return f.call(this), (this.copyText = void 0 !== m && m), this; + } + ((_.prototype = Object.create(f.prototype)).constructor = _), + (_.DEFAULT = new _()), + (_.prototype.create = function (m, s, d, u, h, r, o, i) { + var c = new n(m, s, u, h, r); + return ( + (c.line = o), + (c.column = i), + null !== d + ? (c.text = d) + : this.copyText && null !== m[1] && (c.text = m[1].getText(h, r)), + c + ); + }), + (_.prototype.createThin = function (m, s) { + var d = new n(null, m); + return (d.text = s), d; + }), + (j.$ = _); + }, + 3973: (ye, j, p) => { + var n = p(9696).Token, + f = p(6512).B; + function _(m, s) { + return ( + f.call(this, m), + (this.channel = void 0 === s ? n.DEFAULT_CHANNEL : s), + this + ); + } + ((_.prototype = Object.create(f.prototype)).constructor = _), + (_.prototype.adjustSeekIndex = function (m) { + return this.nextTokenOnChannel(m, this.channel); + }), + (_.prototype.LB = function (m) { + if (0 === m || this.index - m < 0) return null; + for (var s = this.index, d = 1; d <= m; ) + (s = this.previousTokenOnChannel(s - 1, this.channel)), (d += 1); + return s < 0 ? null : this.tokens[s]; + }), + (_.prototype.LT = function (m) { + if ((this.lazyInit(), 0 === m)) return null; + if (m < 0) return this.LB(-m); + for (var s = this.index, d = 1; d < m; ) + this.sync(s + 1) && + (s = this.nextTokenOnChannel(s + 1, this.channel)), + (d += 1); + return this.tokens[s]; + }), + (_.prototype.getNumberOfOnChannelTokens = function () { + var m = 0; + this.fill(); + for (var s = 0; s < this.tokens.length; s++) { + var d = this.tokens[s]; + if ((d.channel === this.channel && (m += 1), d.type === n.EOF)) + break; + } + return m; + }), + (j.CommonTokenStream = _); + }, + 3673: (ye, j, p) => { + var n = p(9696).Token; + function _(m, s) { + return ( + (this.name = ""), + (this.strdata = m), + (this.decodeToUnicodeCodePoints = s || !1), + (function (m) { + if (((m._index = 0), (m.data = []), m.decodeToUnicodeCodePoints)) + for (var s = 0; s < m.strdata.length; ) { + var d = m.strdata.codePointAt(s); + m.data.push(d), (s += d <= 65535 ? 1 : 2); + } + else + for (s = 0; s < m.strdata.length; s++) { + var u = m.strdata.charCodeAt(s); + m.data.push(u); + } + m._size = m.data.length; + })(this), + this + ); + } + p(3747), + p(617), + Object.defineProperty(_.prototype, "index", { + get: function () { + return this._index; + }, + }), + Object.defineProperty(_.prototype, "size", { + get: function () { + return this._size; + }, + }), + (_.prototype.reset = function () { + this._index = 0; + }), + (_.prototype.consume = function () { + if (this._index >= this._size) throw "cannot consume EOF"; + this._index += 1; + }), + (_.prototype.LA = function (m) { + if (0 === m) return 0; + m < 0 && (m += 1); + var s = this._index + m - 1; + return s < 0 || s >= this._size ? n.EOF : this.data[s]; + }), + (_.prototype.LT = function (m) { + return this.LA(m); + }), + (_.prototype.mark = function () { + return -1; + }), + (_.prototype.release = function (m) {}), + (_.prototype.seek = function (m) { + this._index = m <= this._index ? m : Math.min(m, this._size); + }), + (_.prototype.getText = function (m, s) { + if ((s >= this._size && (s = this._size - 1), m >= this._size)) + return ""; + if (this.decodeToUnicodeCodePoints) { + for (var d = "", u = m; u <= s; u++) + d += String.fromCodePoint(this.data[u]); + return d; + } + return this.strdata.slice(m, s + 1); + }), + (_.prototype.toString = function () { + return this.strdata; + }), + (j.InputStream = _); + }, + 3491: (ye, j, p) => { + var n = p(9696).Token; + function f(m, s) { + return (this.start = m), (this.stop = s), this; + } + function _() { + (this.intervals = null), (this.readOnly = !1); + } + (f.prototype.contains = function (m) { + return m >= this.start && m < this.stop; + }), + (f.prototype.toString = function () { + return this.start === this.stop - 1 + ? this.start.toString() + : this.start.toString() + ".." + (this.stop - 1).toString(); + }), + Object.defineProperty(f.prototype, "length", { + get: function () { + return this.stop - this.start; + }, + }), + (_.prototype.first = function (m) { + return null === this.intervals || 0 === this.intervals.length + ? n.INVALID_TYPE + : this.intervals[0].start; + }), + (_.prototype.addOne = function (m) { + this.addInterval(new f(m, m + 1)); + }), + (_.prototype.addRange = function (m, s) { + this.addInterval(new f(m, s + 1)); + }), + (_.prototype.addInterval = function (m) { + if (null === this.intervals) + (this.intervals = []), this.intervals.push(m); + else { + for (var s = 0; s < this.intervals.length; s++) { + var d = this.intervals[s]; + if (m.stop < d.start) return void this.intervals.splice(s, 0, m); + if (m.stop === d.start) + return void (this.intervals[s].start = m.start); + if (m.start <= d.stop) + return ( + (this.intervals[s] = new f( + Math.min(d.start, m.start), + Math.max(d.stop, m.stop) + )), + void this.reduce(s) + ); + } + this.intervals.push(m); + } + }), + (_.prototype.addSet = function (m) { + if (null !== m.intervals) + for (var s = 0; s < m.intervals.length; s++) { + var d = m.intervals[s]; + this.addInterval(new f(d.start, d.stop)); + } + return this; + }), + (_.prototype.reduce = function (m) { + if (m < this.intervalslength - 1) { + var s = this.intervals[m], + d = this.intervals[m + 1]; + s.stop >= d.stop + ? (this.intervals.pop(m + 1), this.reduce(m)) + : s.stop >= d.start && + ((this.intervals[m] = new f(s.start, d.stop)), + this.intervals.pop(m + 1)); + } + }), + (_.prototype.complement = function (m, s) { + var d = new _(); + d.addInterval(new f(m, s + 1)); + for (var u = 0; u < this.intervals.length; u++) + d.removeRange(this.intervals[u]); + return d; + }), + (_.prototype.contains = function (m) { + if (null === this.intervals) return !1; + for (var s = 0; s < this.intervals.length; s++) + if (this.intervals[s].contains(m)) return !0; + return !1; + }), + Object.defineProperty(_.prototype, "length", { + get: function () { + var m = 0; + return ( + this.intervals.map(function (s) { + m += s.length; + }), + m + ); + }, + }), + (_.prototype.removeRange = function (m) { + if (m.start === m.stop - 1) this.removeOne(m.start); + else if (null !== this.intervals) + for (var s = 0, d = 0; d < this.intervals.length; d++) { + var u = this.intervals[s]; + if (m.stop <= u.start) return; + if (m.start > u.start && m.stop < u.stop) { + this.intervals[s] = new f(u.start, m.start); + var h = new f(m.stop, u.stop); + return void this.intervals.splice(s, 0, h); + } + m.start <= u.start && m.stop >= u.stop + ? (this.intervals.splice(s, 1), (s -= 1)) + : m.start < u.stop + ? (this.intervals[s] = new f(u.start, m.start)) + : m.stop < u.stop && + (this.intervals[s] = new f(m.stop, u.stop)), + (s += 1); + } + }), + (_.prototype.removeOne = function (m) { + if (null !== this.intervals) + for (var s = 0; s < this.intervals.length; s++) { + var d = this.intervals[s]; + if (m < d.start) return; + if (m === d.start && m === d.stop - 1) + return void this.intervals.splice(s, 1); + if (m === d.start) + return void (this.intervals[s] = new f(d.start + 1, d.stop)); + if (m === d.stop - 1) + return void (this.intervals[s] = new f(d.start, d.stop - 1)); + if (m < d.stop - 1) { + var u = new f(d.start, m); + return (d.start = m + 1), void this.intervals.splice(s, 0, u); + } + } + }), + (_.prototype.toString = function (m, s, d) { + return ( + (m = m || null), + (s = s || null), + (d = d || !1), + null === this.intervals + ? "{}" + : null !== m || null !== s + ? this.toTokenString(m, s) + : d + ? this.toCharString() + : this.toIndexString() + ); + }), + (_.prototype.toCharString = function () { + for (var m = [], s = 0; s < this.intervals.length; s++) { + var d = this.intervals[s]; + m.push( + d.stop === d.start + 1 + ? d.start === n.EOF + ? "" + : "'" + String.fromCharCode(d.start) + "'" + : "'" + + String.fromCharCode(d.start) + + "'..'" + + String.fromCharCode(d.stop - 1) + + "'" + ); + } + return m.length > 1 ? "{" + m.join(", ") + "}" : m[0]; + }), + (_.prototype.toIndexString = function () { + for (var m = [], s = 0; s < this.intervals.length; s++) { + var d = this.intervals[s]; + m.push( + d.stop === d.start + 1 + ? d.start === n.EOF + ? "" + : d.start.toString() + : d.start.toString() + ".." + (d.stop - 1).toString() + ); + } + return m.length > 1 ? "{" + m.join(", ") + "}" : m[0]; + }), + (_.prototype.toTokenString = function (m, s) { + for (var d = [], u = 0; u < this.intervals.length; u++) + for (var h = this.intervals[u], r = h.start; r < h.stop; r++) + d.push(this.elementName(m, s, r)); + return d.length > 1 ? "{" + d.join(", ") + "}" : d[0]; + }), + (_.prototype.elementName = function (m, s, d) { + return d === n.EOF + ? "" + : d === n.EPSILON + ? "" + : m[d] || s[d]; + }), + (j.Interval = f), + (j.V = _); + }, + 640: (ye, j, p) => { + var n = p(3126).Set, + f = p(3126).BitSet, + _ = p(9696).Token, + m = p(6980).m, + d = (p(3491), p(3491).V), + u = p(7069).RuleStopState, + h = p(8792).RuleTransition, + r = p(8792).NotSetTransition, + o = p(8792).WildcardTransition, + i = p(8792).AbstractPredicateTransition, + c = p(8267), + l = c.predictionContextFromRuleContext, + g = c.PredictionContext, + b = c.SingletonPredictionContext; + function y(x) { + this.atn = x; + } + (y.HIT_PRED = _.INVALID_TYPE), + (y.prototype.getDecisionLookahead = function (x) { + if (null === x) return null; + for (var T = x.transitions.length, O = [], M = 0; M < T; M++) { + O[M] = new d(); + var A = new n(); + this._LOOK( + x.transition(M).target, + null, + g.EMPTY, + O[M], + A, + new f(), + !1, + !1 + ), + (0 === O[M].length || O[M].contains(y.HIT_PRED)) && (O[M] = null); + } + return O; + }), + (y.prototype.LOOK = function (x, T, O) { + var M = new d(), + S = null !== (O = O || null) ? l(x.atn, O) : null; + return this._LOOK(x, T, S, M, new n(), new f(), !0, !0), M; + }), + (y.prototype._LOOK = function (x, T, O, M, A, S, w, I) { + var C = new m({ state: x, alt: 0, context: O }, null); + if (!A.contains(C)) { + if ((A.add(C), x === T)) { + if (null === O) return void M.addOne(_.EPSILON); + if (O.isEmpty() && I) return void M.addOne(_.EOF); + } + if (x instanceof u) { + if (null === O) return void M.addOne(_.EPSILON); + if (O.isEmpty() && I) return void M.addOne(_.EOF); + if (O !== g.EMPTY) { + for (var L = 0; L < O.length; L++) { + var F = this.atn.states[O.getReturnState(L)], + ie = S.contains(F.ruleIndex); + try { + S.remove(F.ruleIndex), + this._LOOK(F, T, O.getParent(L), M, A, S, w, I); + } finally { + ie && S.add(F.ruleIndex); + } + } + return; + } + } + for (var Y = 0; Y < x.transitions.length; Y++) { + var Z = x.transitions[Y]; + if (Z.constructor === h) { + if (S.contains(Z.target.ruleIndex)) continue; + var ee = b.create(O, Z.followState.stateNumber); + try { + S.add(Z.target.ruleIndex), + this._LOOK(Z.target, T, ee, M, A, S, w, I); + } finally { + S.remove(Z.target.ruleIndex); + } + } else if (Z instanceof i) + w + ? this._LOOK(Z.target, T, O, M, A, S, w, I) + : M.addOne(y.HIT_PRED); + else if (Z.isEpsilon) this._LOOK(Z.target, T, O, M, A, S, w, I); + else if (Z.constructor === o) + M.addRange(_.MIN_USER_TOKEN_TYPE, this.atn.maxTokenType); + else { + var $ = Z.label; + null !== $ && + (Z instanceof r && + ($ = $.complement( + _.MIN_USER_TOKEN_TYPE, + this.atn.maxTokenType + )), + M.addSet($)); + } + } + } + }), + (j.u = y); + }, + 8123: (ye, j, p) => { + var n = p(9696).Token, + f = p(8646).c, + _ = p(4412).$, + m = p(9329).RecognitionException, + s = p(9329).LexerNoViableAltException; + function u(h) { + return ( + f.call(this), + (this._input = h), + (this._factory = _.DEFAULT), + (this._tokenFactorySourcePair = [this, h]), + (this._interp = null), + (this._token = null), + (this._tokenStartCharIndex = -1), + (this._tokenStartLine = -1), + (this._tokenStartColumn = -1), + (this._hitEOF = !1), + (this._channel = n.DEFAULT_CHANNEL), + (this._type = n.INVALID_TYPE), + (this._modeStack = []), + (this._mode = u.DEFAULT_MODE), + (this._text = null), + this + ); + } + ((u.prototype = Object.create(f.prototype)).constructor = u), + (u.DEFAULT_MODE = 0), + (u.MORE = -2), + (u.SKIP = -3), + (u.DEFAULT_TOKEN_CHANNEL = n.DEFAULT_CHANNEL), + (u.HIDDEN = n.HIDDEN_CHANNEL), + (u.MIN_CHAR_VALUE = 0), + (u.MAX_CHAR_VALUE = 1114111), + (u.prototype.reset = function () { + null !== this._input && this._input.seek(0), + (this._token = null), + (this._type = n.INVALID_TYPE), + (this._channel = n.DEFAULT_CHANNEL), + (this._tokenStartCharIndex = -1), + (this._tokenStartColumn = -1), + (this._tokenStartLine = -1), + (this._text = null), + (this._hitEOF = !1), + (this._mode = u.DEFAULT_MODE), + (this._modeStack = []), + this._interp.reset(); + }), + (u.prototype.nextToken = function () { + if (null === this._input) + throw "nextToken requires a non-null input stream."; + var h = this._input.mark(); + try { + for (;;) { + if (this._hitEOF) return this.emitEOF(), this._token; + (this._token = null), + (this._channel = n.DEFAULT_CHANNEL), + (this._tokenStartCharIndex = this._input.index), + (this._tokenStartColumn = this._interp.column), + (this._tokenStartLine = this._interp.line), + (this._text = null); + for (var r = !1; ; ) { + this._type = n.INVALID_TYPE; + var o = u.SKIP; + try { + o = this._interp.match(this._input, this._mode); + } catch (i) { + if (!(i instanceof m)) throw (console.log(i.stack), i); + this.notifyListeners(i), this.recover(i); + } + if ( + (this._input.LA(1) === n.EOF && (this._hitEOF = !0), + this._type === n.INVALID_TYPE && (this._type = o), + this._type === u.SKIP) + ) { + r = !0; + break; + } + if (this._type !== u.MORE) break; + } + if (!r) return null === this._token && this.emit(), this._token; + } + } finally { + this._input.release(h); + } + }), + (u.prototype.skip = function () { + this._type = u.SKIP; + }), + (u.prototype.more = function () { + this._type = u.MORE; + }), + (u.prototype.mode = function (h) { + this._mode = h; + }), + (u.prototype.pushMode = function (h) { + this._interp.debug && console.log("pushMode " + h), + this._modeStack.push(this._mode), + this.mode(h); + }), + (u.prototype.popMode = function () { + if (0 === this._modeStack.length) throw "Empty Stack"; + return ( + this._interp.debug && + console.log("popMode back to " + this._modeStack.slice(0, -1)), + this.mode(this._modeStack.pop()), + this._mode + ); + }), + Object.defineProperty(u.prototype, "inputStream", { + get: function () { + return this._input; + }, + set: function (h) { + (this._input = null), + (this._tokenFactorySourcePair = [this, this._input]), + this.reset(), + (this._input = h), + (this._tokenFactorySourcePair = [this, this._input]); + }, + }), + Object.defineProperty(u.prototype, "sourceName", { + get: function () { + return this._input.sourceName; + }, + }), + (u.prototype.emitToken = function (h) { + this._token = h; + }), + (u.prototype.emit = function () { + var h = this._factory.create( + this._tokenFactorySourcePair, + this._type, + this._text, + this._channel, + this._tokenStartCharIndex, + this.getCharIndex() - 1, + this._tokenStartLine, + this._tokenStartColumn + ); + return this.emitToken(h), h; + }), + (u.prototype.emitEOF = function () { + var o = this._factory.create( + this._tokenFactorySourcePair, + n.EOF, + null, + n.DEFAULT_CHANNEL, + this._input.index, + this._input.index - 1, + this.line, + this.column + ); + return this.emitToken(o), o; + }), + Object.defineProperty(u.prototype, "type", { + get: function () { + return this.type; + }, + set: function (h) { + this._type = h; + }, + }), + Object.defineProperty(u.prototype, "line", { + get: function () { + return this._interp.line; + }, + set: function (h) { + this._interp.line = h; + }, + }), + Object.defineProperty(u.prototype, "column", { + get: function () { + return this._interp.column; + }, + set: function (h) { + this._interp.column = h; + }, + }), + (u.prototype.getCharIndex = function () { + return this._input.index; + }), + Object.defineProperty(u.prototype, "text", { + get: function () { + return null !== this._text + ? this._text + : this._interp.getText(this._input); + }, + set: function (h) { + this._text = h; + }, + }), + (u.prototype.getAllTokens = function () { + for (var h = [], r = this.nextToken(); r.type !== n.EOF; ) + h.push(r), (r = this.nextToken()); + return h; + }), + (u.prototype.notifyListeners = function (h) { + var i = this._input.getText( + this._tokenStartCharIndex, + this._input.index + ), + c = "token recognition error at: '" + this.getErrorDisplay(i) + "'"; + this.getErrorListenerDispatch().syntaxError( + this, + null, + this._tokenStartLine, + this._tokenStartColumn, + c, + h + ); + }), + (u.prototype.getErrorDisplay = function (h) { + for (var r = [], o = 0; o < h.length; o++) r.push(h[o]); + return r.join(""); + }), + (u.prototype.getErrorDisplayForChar = function (h) { + return h.charCodeAt(0) === n.EOF + ? "" + : "\n" === h + ? "\\n" + : "\t" === h + ? "\\t" + : "\r" === h + ? "\\r" + : h; + }), + (u.prototype.getCharErrorDisplay = function (h) { + return "'" + this.getErrorDisplayForChar(h) + "'"; + }), + (u.prototype.recover = function (h) { + this._input.LA(1) !== n.EOF && + (h instanceof s + ? this._interp.consume(this._input) + : this._input.consume()); + }), + (j.Lexer = u); + }, + 4541: (ye, j, p) => { + var n = p(9696).Token, + f = p(7774).ParseTreeListener, + _ = p(8646).c, + m = p(6863).t, + s = p(9535).ATNDeserializer, + d = p(6557).W, + u = p(7774).TerminalNode, + h = p(7774).ErrorNode; + function r(c) { + return f.call(this), (this.parser = c), this; + } + function o(c) { + return ( + _.call(this), + (this._input = null), + (this._errHandler = new m()), + (this._precedenceStack = []), + this._precedenceStack.push(0), + (this._ctx = null), + (this.buildParseTrees = !0), + (this._tracer = null), + (this._parseListeners = null), + (this._syntaxErrors = 0), + this.setInputStream(c), + this + ); + } + ((r.prototype = Object.create(f.prototype)).constructor = r), + (r.prototype.enterEveryRule = function (c) { + console.log( + "enter " + + this.parser.ruleNames[c.ruleIndex] + + ", LT(1)=" + + this.parser._input.LT(1).text + ); + }), + (r.prototype.visitTerminal = function (c) { + console.log( + "consume " + + c.symbol + + " rule " + + this.parser.ruleNames[this.parser._ctx.ruleIndex] + ); + }), + (r.prototype.exitEveryRule = function (c) { + console.log( + "exit " + + this.parser.ruleNames[c.ruleIndex] + + ", LT(1)=" + + this.parser._input.LT(1).text + ); + }), + ((o.prototype = Object.create(_.prototype)).contructor = o), + (o.bypassAltsAtnCache = {}), + (o.prototype.reset = function () { + null !== this._input && this._input.seek(0), + this._errHandler.reset(this), + (this._ctx = null), + (this._syntaxErrors = 0), + this.setTrace(!1), + (this._precedenceStack = []), + this._precedenceStack.push(0), + null !== this._interp && this._interp.reset(); + }), + (o.prototype.match = function (c) { + var l = this.getCurrentToken(); + return ( + l.type === c + ? (this._errHandler.reportMatch(this), this.consume()) + : ((l = this._errHandler.recoverInline(this)), + this.buildParseTrees && + -1 === l.tokenIndex && + this._ctx.addErrorNode(l)), + l + ); + }), + (o.prototype.matchWildcard = function () { + var c = this.getCurrentToken(); + return ( + c.type > 0 + ? (this._errHandler.reportMatch(this), this.consume()) + : ((c = this._errHandler.recoverInline(this)), + this._buildParseTrees && + -1 === c.tokenIndex && + this._ctx.addErrorNode(c)), + c + ); + }), + (o.prototype.getParseListeners = function () { + return this._parseListeners || []; + }), + (o.prototype.addParseListener = function (c) { + if (null === c) throw "listener"; + null === this._parseListeners && (this._parseListeners = []), + this._parseListeners.push(c); + }), + (o.prototype.removeParseListener = function (c) { + if (null !== this._parseListeners) { + var l = this._parseListeners.indexOf(c); + l >= 0 && this._parseListeners.splice(l, 1), + 0 === this._parseListeners.length && + (this._parseListeners = null); + } + }), + (o.prototype.removeParseListeners = function () { + this._parseListeners = null; + }), + (o.prototype.triggerEnterRuleEvent = function () { + if (null !== this._parseListeners) { + var c = this._ctx; + this._parseListeners.map(function (l) { + l.enterEveryRule(c), c.enterRule(l); + }); + } + }), + (o.prototype.triggerExitRuleEvent = function () { + if (null !== this._parseListeners) { + var c = this._ctx; + this._parseListeners + .slice(0) + .reverse() + .map(function (l) { + c.exitRule(l), l.exitEveryRule(c); + }); + } + }), + (o.prototype.getTokenFactory = function () { + return this._input.tokenSource._factory; + }), + (o.prototype.setTokenFactory = function (c) { + this._input.tokenSource._factory = c; + }), + (o.prototype.getATNWithBypassAlts = function () { + var c = this.getSerializedATN(); + if (null === c) + throw "The current parser does not support an ATN with bypass alternatives."; + var l = this.bypassAltsAtnCache[c]; + if (null === l) { + var g = new d(); + (g.generateRuleBypassTransitions = !0), + (l = new s(g).deserialize(c)), + (this.bypassAltsAtnCache[c] = l); + } + return l; + }); + var i = p(8123).Lexer; + (o.prototype.compileParseTreePattern = function (c, l, g) { + if (null === (g = g || null) && null !== this.getTokenStream()) { + var b = this.getTokenStream().tokenSource; + b instanceof i && (g = b); + } + if (null === g) throw "Parser can't discover a lexer to use"; + return new ParseTreePatternMatcher(g, this).compile(c, l); + }), + (o.prototype.getInputStream = function () { + return this.getTokenStream(); + }), + (o.prototype.setInputStream = function (c) { + this.setTokenStream(c); + }), + (o.prototype.getTokenStream = function () { + return this._input; + }), + (o.prototype.setTokenStream = function (c) { + (this._input = null), this.reset(), (this._input = c); + }), + (o.prototype.getCurrentToken = function () { + return this._input.LT(1); + }), + (o.prototype.notifyErrorListeners = function (c, l, g) { + (g = g || null), + null === (l = l || null) && (l = this.getCurrentToken()), + (this._syntaxErrors += 1); + var b = l.line, + y = l.column; + this.getErrorListenerDispatch().syntaxError(this, l, b, y, c, g); + }), + (o.prototype.consume = function () { + var c = this.getCurrentToken(); + c.type !== n.EOF && this.getInputStream().consume(); + var g, + l = + null !== this._parseListeners && this._parseListeners.length > 0; + return ( + (this.buildParseTrees || l) && + (((g = this._errHandler.inErrorRecoveryMode(this) + ? this._ctx.addErrorNode(c) + : this._ctx.addTokenNode(c)).invokingState = this.state), + l && + this._parseListeners.map(function (b) { + g instanceof h || + (void 0 !== g.isErrorNode && g.isErrorNode()) + ? b.visitErrorNode(g) + : g instanceof u && b.visitTerminal(g); + })), + c + ); + }), + (o.prototype.addContextToParseTree = function () { + null !== this._ctx.parentCtx && + this._ctx.parentCtx.addChild(this._ctx); + }), + (o.prototype.enterRule = function (c, l, g) { + (this.state = l), + (this._ctx = c), + (this._ctx.start = this._input.LT(1)), + this.buildParseTrees && this.addContextToParseTree(), + null !== this._parseListeners && this.triggerEnterRuleEvent(); + }), + (o.prototype.exitRule = function () { + (this._ctx.stop = this._input.LT(-1)), + null !== this._parseListeners && this.triggerExitRuleEvent(), + (this.state = this._ctx.invokingState), + (this._ctx = this._ctx.parentCtx); + }), + (o.prototype.enterOuterAlt = function (c, l) { + c.setAltNumber(l), + this.buildParseTrees && + this._ctx !== c && + null !== this._ctx.parentCtx && + (this._ctx.parentCtx.removeLastChild(), + this._ctx.parentCtx.addChild(c)), + (this._ctx = c); + }), + (o.prototype.getPrecedence = function () { + return 0 === this._precedenceStack.length + ? -1 + : this._precedenceStack[this._precedenceStack.length - 1]; + }), + (o.prototype.enterRecursionRule = function (c, l, g, b) { + (this.state = l), + this._precedenceStack.push(b), + (this._ctx = c), + (this._ctx.start = this._input.LT(1)), + null !== this._parseListeners && this.triggerEnterRuleEvent(); + }), + (o.prototype.pushNewRecursionContext = function (c, l, g) { + var b = this._ctx; + (b.parentCtx = c), + (b.invokingState = l), + (b.stop = this._input.LT(-1)), + (this._ctx = c), + (this._ctx.start = b.start), + this.buildParseTrees && this._ctx.addChild(b), + null !== this._parseListeners && this.triggerEnterRuleEvent(); + }), + (o.prototype.unrollRecursionContexts = function (c) { + this._precedenceStack.pop(), (this._ctx.stop = this._input.LT(-1)); + var l = this._ctx; + if (null !== this._parseListeners) + for (; this._ctx !== c; ) + this.triggerExitRuleEvent(), (this._ctx = this._ctx.parentCtx); + else this._ctx = c; + (l.parentCtx = c), + this.buildParseTrees && null !== c && c.addChild(l); + }), + (o.prototype.getInvokingContext = function (c) { + for (var l = this._ctx; null !== l; ) { + if (l.ruleIndex === c) return l; + l = l.parentCtx; + } + return null; + }), + (o.prototype.precpred = function (c, l) { + return l >= this._precedenceStack[this._precedenceStack.length - 1]; + }), + (o.prototype.inContext = function (c) { + return !1; + }), + (o.prototype.isExpectedToken = function (c) { + var l = this._interp.atn, + g = this._ctx, + y = l.nextTokens(l.states[this.state]); + if (y.contains(c)) return !0; + if (!y.contains(n.EPSILON)) return !1; + for ( + ; + null !== g && g.invokingState >= 0 && y.contains(n.EPSILON); + + ) { + if ( + (y = l.nextTokens( + l.states[g.invokingState].transitions[0].followState + )).contains(c) + ) + return !0; + g = g.parentCtx; + } + return !(!y.contains(n.EPSILON) || c !== n.EOF); + }), + (o.prototype.getExpectedTokens = function () { + return this._interp.atn.getExpectedTokens(this.state, this._ctx); + }), + (o.prototype.getExpectedTokensWithinCurrentRule = function () { + var c = this._interp.atn; + return c.nextTokens(c.states[this.state]); + }), + (o.prototype.getRuleIndex = function (c) { + var l = this.getRuleIndexMap()[c]; + return null !== l ? l : -1; + }), + (o.prototype.getRuleInvocationStack = function (c) { + null === (c = c || null) && (c = this._ctx); + for (var l = []; null !== c; ) { + var g = c.ruleIndex; + l.push(g < 0 ? "n/a" : this.ruleNames[g]), (c = c.parentCtx); + } + return l; + }), + (o.prototype.getDFAStrings = function () { + return this._interp.decisionToDFA.toString(); + }), + (o.prototype.dumpDFA = function () { + for (var c = !1, l = 0; l < this._interp.decisionToDFA.length; l++) { + var g = this._interp.decisionToDFA[l]; + g.states.length > 0 && + (c && console.log(), + this.printer.println("Decision " + g.decision + ":"), + this.printer.print( + g.toString(this.literalNames, this.symbolicNames) + ), + (c = !0)); + } + }), + (o.prototype.getSourceName = function () { + return this._input.sourceName; + }), + (o.prototype.setTrace = function (c) { + c + ? (null !== this._tracer && this.removeParseListener(this._tracer), + (this._tracer = new r(this)), + this.addParseListener(this._tracer)) + : (this.removeParseListener(this._tracer), (this._tracer = null)); + }), + (j.Parser = o); + }, + 7335: (ye, j, p) => { + var n = p(3955).r, + f = p(7774), + _ = f.INVALID_INTERVAL, + m = f.TerminalNode, + s = f.TerminalNodeImpl, + d = f.ErrorNodeImpl, + u = p(3491).Interval; + function h(o, i) { + n.call(this, (o = o || null), (i = i || null)), + (this.ruleIndex = -1), + (this.children = null), + (this.start = null), + (this.stop = null), + (this.exception = null); + } + function r(o, i, c) { + return h.call(o, i), (this.ruleIndex = c), this; + } + ((h.prototype = Object.create(n.prototype)).constructor = h), + (h.prototype.copyFrom = function (o) { + (this.parentCtx = o.parentCtx), + (this.invokingState = o.invokingState), + (this.children = null), + (this.start = o.start), + (this.stop = o.stop), + o.children && + ((this.children = []), + o.children.map(function (i) { + i instanceof d && (this.children.push(i), (i.parentCtx = this)); + }, this)); + }), + (h.prototype.enterRule = function (o) {}), + (h.prototype.exitRule = function (o) {}), + (h.prototype.addChild = function (o) { + return ( + null === this.children && (this.children = []), + this.children.push(o), + o + ); + }), + (h.prototype.removeLastChild = function () { + null !== this.children && this.children.pop(); + }), + (h.prototype.addTokenNode = function (o) { + var i = new s(o); + return this.addChild(i), (i.parentCtx = this), i; + }), + (h.prototype.addErrorNode = function (o) { + var i = new d(o); + return this.addChild(i), (i.parentCtx = this), i; + }), + (h.prototype.getChild = function (o, i) { + if (null === this.children || o < 0 || o >= this.children.length) + return null; + if (null === (i = i || null)) return this.children[o]; + for (var c = 0; c < this.children.length; c++) { + var l = this.children[c]; + if (l instanceof i) { + if (0 === o) return l; + o -= 1; + } + } + return null; + }), + (h.prototype.getToken = function (o, i) { + if (null === this.children || i < 0 || i >= this.children.length) + return null; + for (var c = 0; c < this.children.length; c++) { + var l = this.children[c]; + if (l instanceof m && l.symbol.type === o) { + if (0 === i) return l; + i -= 1; + } + } + return null; + }), + (h.prototype.getTokens = function (o) { + if (null === this.children) return []; + for (var i = [], c = 0; c < this.children.length; c++) { + var l = this.children[c]; + l instanceof m && l.symbol.type === o && i.push(l); + } + return i; + }), + (h.prototype.getTypedRuleContext = function (o, i) { + return this.getChild(i, o); + }), + (h.prototype.getTypedRuleContexts = function (o) { + if (null === this.children) return []; + for (var i = [], c = 0; c < this.children.length; c++) { + var l = this.children[c]; + l instanceof o && i.push(l); + } + return i; + }), + (h.prototype.getChildCount = function () { + return null === this.children ? 0 : this.children.length; + }), + (h.prototype.getSourceInterval = function () { + return null === this.start || null === this.stop + ? _ + : new u(this.start.tokenIndex, this.stop.tokenIndex); + }), + (n.EMPTY = new h()), + ((r.prototype = Object.create(h.prototype)).constructor = r), + (j.ParserRuleContext = h); + }, + 8267: (ye, j, p) => { + var n = p(3955).r, + f = p(3126).Hash; + function _(y) { + this.cachedHashCode = y; + } + function m() { + return (this.cache = {}), this; + } + function s(y, x) { + var T = 0; + if (null !== y) { + var O = new f(); + O.update(y, x), (T = O.finish()); + } + _.call(this, T), (this.parentCtx = y), (this.returnState = x); + } + function d() { + return s.call(this, null, _.EMPTY_RETURN_STATE), this; + } + function u(y, x) { + var T = new f(); + T.update(y, x); + var O = T.finish(); + return ( + _.call(this, O), (this.parents = y), (this.returnStates = x), this + ); + } + (_.EMPTY = null), + (_.EMPTY_RETURN_STATE = 2147483647), + (_.id = _.globalNodeCount = 1), + (_.prototype.isEmpty = function () { + return this === _.EMPTY; + }), + (_.prototype.hasEmptyPath = function () { + return this.getReturnState(this.length - 1) === _.EMPTY_RETURN_STATE; + }), + (_.prototype.hashCode = function () { + return this.cachedHashCode; + }), + (_.prototype.updateHashCode = function (y) { + y.update(this.cachedHashCode); + }), + (m.prototype.add = function (y) { + if (y === _.EMPTY) return _.EMPTY; + var x = this.cache[y] || null; + return null !== x ? x : ((this.cache[y] = y), y); + }), + (m.prototype.get = function (y) { + return this.cache[y] || null; + }), + Object.defineProperty(m.prototype, "length", { + get: function () { + return this.cache.length; + }, + }), + ((s.prototype = Object.create(_.prototype)).contructor = s), + (s.create = function (y, x) { + return x === _.EMPTY_RETURN_STATE && null === y + ? _.EMPTY + : new s(y, x); + }), + Object.defineProperty(s.prototype, "length", { + get: function () { + return 1; + }, + }), + (s.prototype.getParent = function (y) { + return this.parentCtx; + }), + (s.prototype.getReturnState = function (y) { + return this.returnState; + }), + (s.prototype.equals = function (y) { + return ( + this === y || + (y instanceof s && + this.hashCode() === y.hashCode() && + this.returnState === y.returnState && + (null == this.parentCtx + ? null == y.parentCtx + : this.parentCtx.equals(y.parentCtx))) + ); + }), + (s.prototype.toString = function () { + var y = null === this.parentCtx ? "" : this.parentCtx.toString(); + return 0 === y.length + ? this.returnState === _.EMPTY_RETURN_STATE + ? "$" + : "" + this.returnState + : this.returnState + " " + y; + }), + ((d.prototype = Object.create(s.prototype)).constructor = d), + (d.prototype.isEmpty = function () { + return !0; + }), + (d.prototype.getParent = function (y) { + return null; + }), + (d.prototype.getReturnState = function (y) { + return this.returnState; + }), + (d.prototype.equals = function (y) { + return this === y; + }), + (d.prototype.toString = function () { + return "$"; + }), + (_.EMPTY = new d()), + ((u.prototype = Object.create(_.prototype)).constructor = u), + (u.prototype.isEmpty = function () { + return this.returnStates[0] === _.EMPTY_RETURN_STATE; + }), + Object.defineProperty(u.prototype, "length", { + get: function () { + return this.returnStates.length; + }, + }), + (u.prototype.getParent = function (y) { + return this.parents[y]; + }), + (u.prototype.getReturnState = function (y) { + return this.returnStates[y]; + }), + (u.prototype.equals = function (y) { + return ( + this === y || + (y instanceof u && + this.hashCode() === y.hashCode() && + this.returnStates === y.returnStates && + this.parents === y.parents) + ); + }), + (u.prototype.toString = function () { + if (this.isEmpty()) return "[]"; + for (var y = "[", x = 0; x < this.returnStates.length; x++) + x > 0 && (y += ", "), + this.returnStates[x] !== _.EMPTY_RETURN_STATE + ? ((y += this.returnStates[x]), + null !== this.parents[x] + ? (y = y + " " + this.parents[x]) + : (y += "null")) + : (y += "$"); + return y + "]"; + }), + (j.merge = function r(y, x, T, O) { + if (y === x) return y; + if (y instanceof s && x instanceof s) + return (function (y, x, T, O) { + if (null !== O) { + var M = O.get(y, x); + if (null !== M || null !== (M = O.get(x, y))) return M; + } + var A = (function (y, x, T) { + if (T) { + if (y === _.EMPTY || x === _.EMPTY) return _.EMPTY; + } else { + if (y === _.EMPTY && x === _.EMPTY) return _.EMPTY; + if (y === _.EMPTY) + return new u( + [x.parentCtx, null], + [x.returnState, _.EMPTY_RETURN_STATE] + ); + if (x === _.EMPTY) + return new u( + [y.parentCtx, null], + [y.returnState, _.EMPTY_RETURN_STATE] + ); + } + return null; + })(y, x, T); + if (null !== A) return null !== O && O.set(y, x, A), A; + if (y.returnState === x.returnState) { + var S = r(y.parentCtx, x.parentCtx, T, O); + if (S === y.parentCtx) return y; + if (S === x.parentCtx) return x; + var w = s.create(S, y.returnState); + return null !== O && O.set(y, x, w), w; + } + var I = null; + if ( + ((y === x || + (null !== y.parentCtx && y.parentCtx === x.parentCtx)) && + (I = y.parentCtx), + null !== I) + ) { + var L = [y.returnState, x.returnState]; + y.returnState > x.returnState && + ((L[0] = x.returnState), (L[1] = y.returnState)); + var C = new u((F = [I, I]), L); + return null !== O && O.set(y, x, C), C; + } + L = [y.returnState, x.returnState]; + var F = [y.parentCtx, x.parentCtx]; + y.returnState > x.returnState && + ((L[0] = x.returnState), + (L[1] = y.returnState), + (F = [x.parentCtx, y.parentCtx])); + var ie = new u(F, L); + return null !== O && O.set(y, x, ie), ie; + })(y, x, T, O); + if (T) { + if (y instanceof d) return y; + if (x instanceof d) return x; + } + return ( + y instanceof s && (y = new u([y.getParent()], [y.returnState])), + x instanceof s && (x = new u([x.getParent()], [x.returnState])), + (function (y, x, T, O) { + if (null !== O) { + var M = O.get(y, x); + if (null !== M || null !== (M = O.get(x, y))) return M; + } + for ( + var A = 0, S = 0, w = 0, I = [], C = []; + A < y.returnStates.length && S < x.returnStates.length; + + ) { + var L = y.parents[A], + F = x.parents[S]; + if (y.returnStates[A] === x.returnStates[S]) { + var ie = y.returnStates[A]; + if ( + (ie === _.EMPTY_RETURN_STATE && null === L && null === F) || + (null !== L && null !== F && L === F) + ) + (C[w] = L), (I[w] = ie); + else { + var ee = r(L, F, T, O); + (C[w] = ee), (I[w] = ie); + } + (A += 1), (S += 1); + } else + y.returnStates[A] < x.returnStates[S] + ? ((C[w] = L), (I[w] = y.returnStates[A]), (A += 1)) + : ((C[w] = F), (I[w] = x.returnStates[S]), (S += 1)); + w += 1; + } + if (A < y.returnStates.length) + for (var $ = A; $ < y.returnStates.length; $++) + (C[w] = y.parents[$]), (I[w] = y.returnStates[$]), (w += 1); + else + for ($ = S; $ < x.returnStates.length; $++) + (C[w] = x.parents[$]), (I[w] = x.returnStates[$]), (w += 1); + if (w < C.length) { + if (1 === w) { + var J = s.create(C[0], I[0]); + return null !== O && O.set(y, x, J), J; + } + (C = C.slice(0, w)), (I = I.slice(0, w)); + } + var ne = new u(C, I); + return ne === y + ? (null !== O && O.set(y, x, y), y) + : ne === x + ? (null !== O && O.set(y, x, x), x) + : ((function (y) { + for (var x = {}, T = 0; T < y.length; T++) { + var O = y[T]; + O in x || (x[O] = O); + } + for (var M = 0; M < y.length; M++) y[M] = x[y[M]]; + })(C), + null !== O && O.set(y, x, ne), + ne); + })(y, x, T, O) + ); + }), + (j.PredictionContext = _), + (j.PredictionContextCache = m), + (j.SingletonPredictionContext = s), + (j.predictionContextFromRuleContext = function h(y, x) { + if ( + (null == x && (x = n.EMPTY), null === x.parentCtx || x === n.EMPTY) + ) + return _.EMPTY; + var T = h(y, x.parentCtx); + return s.create( + T, + y.states[x.invokingState].transitions[0].followState.stateNumber + ); + }), + (j.getCachedPredictionContext = function g(y, x, T) { + if (y.isEmpty()) return y; + var O = T[y] || null; + if (null !== O) return O; + if (null !== (O = x.get(y))) return (T[y] = O), O; + for (var M = !1, A = [], S = 0; S < A.length; S++) { + var w = g(y.getParent(S), x, T); + if (M || w !== y.getParent(S)) { + if (!M) { + A = []; + for (var I = 0; I < y.length; I++) A[I] = y.getParent(I); + M = !0; + } + A[S] = w; + } + } + if (!M) return x.add(y), (T[y] = y), y; + var C; + return ( + (C = + 0 === A.length + ? _.EMPTY + : 1 === A.length + ? s.create(A[0], y.getReturnState(0)) + : new u(A, y.returnStates)), + x.add(C), + (T[C] = C), + (T[y] = C), + C + ); + }); + }, + 8646: (ye, j, p) => { + var n = p(9696).Token, + f = p(5490).s, + _ = p(5490).N; + function m() { + return ( + (this._listeners = [f.INSTANCE]), + (this._interp = null), + (this._stateNumber = -1), + this + ); + } + (m.tokenTypeMapCache = {}), + (m.ruleIndexMapCache = {}), + (m.prototype.checkVersion = function (s) { + "4.7.2" !== s && + console.log( + "ANTLR runtime and generated code versions disagree: 4.7.2!=" + s + ); + }), + (m.prototype.addErrorListener = function (s) { + this._listeners.push(s); + }), + (m.prototype.removeErrorListeners = function () { + this._listeners = []; + }), + (m.prototype.getTokenTypeMap = function () { + var s = this.getTokenNames(); + if (null === s) + throw "The current recognizer does not provide a list of token names."; + var d = this.tokenTypeMapCache[s]; + return ( + void 0 === d && + (((d = s.reduce(function (u, h, r) { + u[h] = r; + })).EOF = n.EOF), + (this.tokenTypeMapCache[s] = d)), + d + ); + }), + (m.prototype.getRuleIndexMap = function () { + var s = this.ruleNames; + if (null === s) + throw "The current recognizer does not provide a list of rule names."; + var d = this.ruleIndexMapCache[s]; + return ( + void 0 === d && + ((d = s.reduce(function (u, h, r) { + u[h] = r; + })), + (this.ruleIndexMapCache[s] = d)), + d + ); + }), + (m.prototype.getTokenType = function (s) { + var d = this.getTokenTypeMap()[s]; + return void 0 !== d ? d : n.INVALID_TYPE; + }), + (m.prototype.getErrorHeader = function (s) { + return ( + "line " + + s.getOffendingToken().line + + ":" + + s.getOffendingToken().column + ); + }), + (m.prototype.getTokenErrorDisplay = function (s) { + if (null === s) return ""; + var d = s.text; + return ( + null === d && (d = s.type === n.EOF ? "" : "<" + s.type + ">"), + "'" + + (d = d + .replace("\n", "\\n") + .replace("\r", "\\r") + .replace("\t", "\\t")) + + "'" + ); + }), + (m.prototype.getErrorListenerDispatch = function () { + return new _(this._listeners); + }), + (m.prototype.sempred = function (s, d, u) { + return !0; + }), + (m.prototype.precpred = function (s, d) { + return !0; + }), + Object.defineProperty(m.prototype, "state", { + get: function () { + return this._stateNumber; + }, + set: function (s) { + this._stateNumber = s; + }, + }), + (j.c = m); + }, + 3955: (ye, j, p) => { + var n = p(7774).RuleNode, + f = p(7774).INVALID_INTERVAL, + _ = p(4562).INVALID_ALT_NUMBER; + function m(d, u) { + return ( + n.call(this), + (this.parentCtx = d || null), + (this.invokingState = u || -1), + this + ); + } + ((m.prototype = Object.create(n.prototype)).constructor = m), + (m.prototype.depth = function () { + for (var d = 0, u = this; null !== u; ) (u = u.parentCtx), (d += 1); + return d; + }), + (m.prototype.isEmpty = function () { + return -1 === this.invokingState; + }), + (m.prototype.getSourceInterval = function () { + return f; + }), + (m.prototype.getRuleContext = function () { + return this; + }), + (m.prototype.getPayload = function () { + return this; + }), + (m.prototype.getText = function () { + return 0 === this.getChildCount() + ? "" + : this.children + .map(function (d) { + return d.getText(); + }) + .join(""); + }), + (m.prototype.getAltNumber = function () { + return _; + }), + (m.prototype.setAltNumber = function (d) {}), + (m.prototype.getChild = function (d) { + return null; + }), + (m.prototype.getChildCount = function () { + return 0; + }), + (m.prototype.accept = function (d) { + return d.visitChildren(this); + }), + (j.r = m); + var s = p(8245).Trees; + (m.prototype.toStringTree = function (d, u) { + return s.toStringTree(this, d, u); + }), + (m.prototype.toString = function (d, u) { + (d = d || null), (u = u || null); + for (var h = this, r = "["; null !== h && h !== u; ) { + if (null === d) h.isEmpty() || (r += h.invokingState); + else { + var o = h.ruleIndex; + r += o >= 0 && o < d.length ? d[o] : "" + o; + } + null !== h.parentCtx && + (null !== d || !h.parentCtx.isEmpty()) && + (r += " "), + (h = h.parentCtx); + } + return r + "]"; + }); + }, + 9696: (ye, j) => { + function p() { + return ( + (this.source = null), + (this.type = null), + (this.channel = null), + (this.start = null), + (this.stop = null), + (this.tokenIndex = null), + (this.line = null), + (this.column = null), + (this._text = null), + this + ); + } + function n(f, _, m, s, d) { + return ( + p.call(this), + (this.source = void 0 !== f ? f : n.EMPTY_SOURCE), + (this.type = void 0 !== _ ? _ : null), + (this.channel = void 0 !== m ? m : p.DEFAULT_CHANNEL), + (this.start = void 0 !== s ? s : -1), + (this.stop = void 0 !== d ? d : -1), + (this.tokenIndex = -1), + null !== this.source[0] + ? ((this.line = f[0].line), (this.column = f[0].column)) + : (this.column = -1), + this + ); + } + (p.INVALID_TYPE = 0), + (p.EPSILON = -2), + (p.MIN_USER_TOKEN_TYPE = 1), + (p.EOF = -1), + (p.DEFAULT_CHANNEL = 0), + (p.HIDDEN_CHANNEL = 1), + Object.defineProperty(p.prototype, "text", { + get: function () { + return this._text; + }, + set: function (f) { + this._text = f; + }, + }), + (p.prototype.getTokenSource = function () { + return this.source[0]; + }), + (p.prototype.getInputStream = function () { + return this.source[1]; + }), + ((n.prototype = Object.create(p.prototype)).constructor = n), + (n.EMPTY_SOURCE = [null, null]), + (n.prototype.clone = function () { + var f = new n( + this.source, + this.type, + this.channel, + this.start, + this.stop + ); + return ( + (f.tokenIndex = this.tokenIndex), + (f.line = this.line), + (f.column = this.column), + (f.text = this.text), + f + ); + }), + Object.defineProperty(n.prototype, "text", { + get: function () { + if (null !== this._text) return this._text; + var f = this.getInputStream(); + if (null === f) return null; + var _ = f.size; + return this.start < _ && this.stop < _ + ? f.getText(this.start, this.stop) + : ""; + }, + set: function (f) { + this._text = f; + }, + }), + (n.prototype.toString = function () { + var f = this.text; + return ( + (f = + null !== f + ? f + .replace(/\n/g, "\\n") + .replace(/\r/g, "\\r") + .replace(/\t/g, "\\t") + : ""), + "[@" + + this.tokenIndex + + "," + + this.start + + ":" + + this.stop + + "='" + + f + + "',<" + + this.type + + ">" + + (this.channel > 0 ? ",channel=" + this.channel : "") + + "," + + this.line + + ":" + + this.column + + "]" + ); + }), + (j.Token = p), + (j.CommonToken = n); + }, + 3126: (ye, j) => { + function p(l) { + return "[" + l.join(", ") + "]"; + } + function n(l, g) { + return l.equals(g); + } + function f(l) { + return l.hashCode(); + } + function _(l, g) { + return ( + (this.data = {}), + (this.hashFunction = l || f), + (this.equalsFunction = g || n), + this + ); + } + function m() { + return (this.data = []), this; + } + function s(l, g) { + return ( + (this.data = {}), + (this.hashFunction = l || f), + (this.equalsFunction = g || n), + this + ); + } + function d() { + return (this.data = {}), this; + } + function u() { + return this; + } + function h() { + return (this.count = 0), (this.hash = 0), this; + } + (String.prototype.seed = + String.prototype.seed || Math.round(Math.random() * Math.pow(2, 32))), + (String.prototype.hashCode = function () { + var l, + g, + b, + y, + x, + O, + A, + S, + w = this.toString(); + for ( + g = w.length - (l = 3 & w.length), + b = String.prototype.seed, + x = 3432918353, + O = 461845907, + S = 0; + S < g; + + ) + (A = + (255 & w.charCodeAt(S)) | + ((255 & w.charCodeAt(++S)) << 8) | + ((255 & w.charCodeAt(++S)) << 16) | + ((255 & w.charCodeAt(++S)) << 24)), + ++S, + (b = + 27492 + + (65535 & + (y = + (5 * + (65535 & + (b = + ((b ^= A = + ((65535 & + (A = + ((A = + ((65535 & A) * x + + ((((A >>> 16) * x) & 65535) << 16)) & + 4294967295) << + 15) | + (A >>> 17))) * + O + + ((((A >>> 16) * O) & 65535) << 16)) & + 4294967295) << + 13) | + (b >>> 19))) + + (((5 * (b >>> 16)) & 65535) << 16)) & + 4294967295)) + + (((58964 + (y >>> 16)) & 65535) << 16)); + switch (((A = 0), l)) { + case 3: + A ^= (255 & w.charCodeAt(S + 2)) << 16; + case 2: + A ^= (255 & w.charCodeAt(S + 1)) << 8; + case 1: + b ^= A = + ((65535 & + (A = + ((A = + ((65535 & (A ^= 255 & w.charCodeAt(S))) * x + + ((((A >>> 16) * x) & 65535) << 16)) & + 4294967295) << + 15) | + (A >>> 17))) * + O + + ((((A >>> 16) * O) & 65535) << 16)) & + 4294967295; + } + return ( + (b ^= w.length), + (b = + (2246822507 * (65535 & (b ^= b >>> 16)) + + (((2246822507 * (b >>> 16)) & 65535) << 16)) & + 4294967295), + (b = + (3266489909 * (65535 & (b ^= b >>> 13)) + + (((3266489909 * (b >>> 16)) & 65535) << 16)) & + 4294967295), + (b ^= b >>> 16) >>> 0 + ); + }), + Object.defineProperty(_.prototype, "length", { + get: function () { + var l = 0; + for (var g in this.data) + 0 === g.indexOf("hash_") && (l += this.data[g].length); + return l; + }, + }), + (_.prototype.add = function (l) { + var b = "hash_" + this.hashFunction(l); + if (b in this.data) { + for (var y = this.data[b], x = 0; x < y.length; x++) + if (this.equalsFunction(l, y[x])) return y[x]; + return y.push(l), l; + } + return (this.data[b] = [l]), l; + }), + (_.prototype.contains = function (l) { + return null != this.get(l); + }), + (_.prototype.get = function (l) { + var b = "hash_" + this.hashFunction(l); + if (b in this.data) + for (var y = this.data[b], x = 0; x < y.length; x++) + if (this.equalsFunction(l, y[x])) return y[x]; + return null; + }), + (_.prototype.values = function () { + var l = []; + for (var g in this.data) + 0 === g.indexOf("hash_") && (l = l.concat(this.data[g])); + return l; + }), + (_.prototype.toString = function () { + return p(this.values()); + }), + (m.prototype.add = function (l) { + this.data[l] = !0; + }), + (m.prototype.or = function (l) { + var g = this; + Object.keys(l.data).map(function (b) { + g.add(b); + }); + }), + (m.prototype.remove = function (l) { + delete this.data[l]; + }), + (m.prototype.contains = function (l) { + return !0 === this.data[l]; + }), + (m.prototype.values = function () { + return Object.keys(this.data); + }), + (m.prototype.minValue = function () { + return Math.min.apply(null, this.values()); + }), + (m.prototype.hashCode = function () { + var l = new h(); + return l.update(this.values()), l.finish(); + }), + (m.prototype.equals = function (l) { + return l instanceof m && this.hashCode() === l.hashCode(); + }), + Object.defineProperty(m.prototype, "length", { + get: function () { + return this.values().length; + }, + }), + (m.prototype.toString = function () { + return "{" + this.values().join(", ") + "}"; + }), + Object.defineProperty(s.prototype, "length", { + get: function () { + var l = 0; + for (var g in this.data) + 0 === g.indexOf("hash_") && (l += this.data[g].length); + return l; + }, + }), + (s.prototype.put = function (l, g) { + var b = "hash_" + this.hashFunction(l); + if (b in this.data) { + for (var y = this.data[b], x = 0; x < y.length; x++) { + var T = y[x]; + if (this.equalsFunction(l, T.key)) { + var O = T.value; + return (T.value = g), O; + } + } + return y.push({ key: l, value: g }), g; + } + return (this.data[b] = [{ key: l, value: g }]), g; + }), + (s.prototype.containsKey = function (l) { + var g = "hash_" + this.hashFunction(l); + if (g in this.data) + for (var b = this.data[g], y = 0; y < b.length; y++) + if (this.equalsFunction(l, b[y].key)) return !0; + return !1; + }), + (s.prototype.get = function (l) { + var g = "hash_" + this.hashFunction(l); + if (g in this.data) + for (var b = this.data[g], y = 0; y < b.length; y++) { + var x = b[y]; + if (this.equalsFunction(l, x.key)) return x.value; + } + return null; + }), + (s.prototype.entries = function () { + var l = []; + for (var g in this.data) + 0 === g.indexOf("hash_") && (l = l.concat(this.data[g])); + return l; + }), + (s.prototype.getKeys = function () { + return this.entries().map(function (l) { + return l.key; + }); + }), + (s.prototype.getValues = function () { + return this.entries().map(function (l) { + return l.value; + }); + }), + (s.prototype.toString = function () { + return ( + "[" + + this.entries() + .map(function (g) { + return "{" + g.key + ":" + g.value + "}"; + }) + .join(", ") + + "]" + ); + }), + (d.prototype.get = function (l) { + return (l = "k-" + l) in this.data ? this.data[l] : null; + }), + (d.prototype.put = function (l, g) { + this.data[(l = "k-" + l)] = g; + }), + (d.prototype.values = function () { + var l = this.data; + return Object.keys(this.data).map(function (b) { + return l[b]; + }); + }), + (h.prototype.update = function () { + for (var l = 0; l < arguments.length; l++) { + var g = arguments[l]; + if (null != g) + if (Array.isArray(g)) this.update.apply(g); + else { + var b = 0; + switch (typeof g) { + case "undefined": + case "function": + continue; + case "number": + case "boolean": + b = g; + break; + case "string": + b = g.hashCode(); + break; + default: + g.updateHashCode(this); + continue; + } + (b = ((b *= 3432918353) << 15) | (b >>> 17)), + (b *= 461845907), + (this.count = this.count + 1); + var y = this.hash ^ b; + this.hash = y = 5 * (y = (y << 13) | (y >>> 19)) + 3864292196; + } + } + }), + (h.prototype.finish = function () { + var l = this.hash ^ (4 * this.count); + return ( + (l ^= l >>> 16), + (l *= 2246822507), + (l ^= l >>> 13), + (l *= 3266489909) ^ (l >>> 16) + ); + }), + (u.prototype.get = function (l, g) { + var b = this[l] || null; + return null === b ? null : b[g] || null; + }), + (u.prototype.set = function (l, g, b) { + var y = this[l] || null; + null === y && (this[l] = y = {}), (y[g] = b); + }), + (j.Hash = h), + (j.Set = _), + (j.Map = s), + (j.BitSet = m), + (j.AltDict = d), + (j.DoubleDict = u), + (j.hashStuff = function () { + var l = new h(); + return l.update.apply(arguments), l.finish(); + }), + (j.escapeWhitespace = function (l, g) { + return ( + (l = l + .replace(/\t/g, "\\t") + .replace(/\n/g, "\\n") + .replace(/\r/g, "\\r")), + g && (l = l.replace(/ /g, "\xb7")), + l + ); + }), + (j.arrayToString = p), + (j.titleCase = function (l) { + return l.replace(/\w\S*/g, function (g) { + return g.charAt(0).toUpperCase() + g.substr(1); + }); + }), + (j.equalArrays = function (l, g) { + if (!Array.isArray(l) || !Array.isArray(g)) return !1; + if (l == g) return !0; + if (l.length != g.length) return !1; + for (var b = 0; b < l.length; b++) + if (l[b] != g[b] && !l[b].equals(g[b])) return !1; + return !0; + }); + }, + 4562: (ye, j, p) => { + var n = p(640).u, + f = p(3491).V; + function _(s, d) { + return ( + (this.grammarType = s), + (this.maxTokenType = d), + (this.states = []), + (this.decisionToState = []), + (this.ruleToStartState = []), + (this.ruleToStopState = null), + (this.modeNameToStartState = {}), + (this.ruleToTokenType = null), + (this.lexerActions = null), + (this.modeToStartState = []), + this + ); + } + (_.prototype.nextTokensInContext = function (s, d) { + return new n(this).LOOK(s, null, d); + }), + (_.prototype.nextTokensNoContext = function (s) { + return ( + null !== s.nextTokenWithinRule || + ((s.nextTokenWithinRule = this.nextTokensInContext(s, null)), + (s.nextTokenWithinRule.readOnly = !0)), + s.nextTokenWithinRule + ); + }), + (_.prototype.nextTokens = function (s, d) { + return void 0 === d + ? this.nextTokensNoContext(s) + : this.nextTokensInContext(s, d); + }), + (_.prototype.addState = function (s) { + null !== s && ((s.atn = this), (s.stateNumber = this.states.length)), + this.states.push(s); + }), + (_.prototype.removeState = function (s) { + this.states[s.stateNumber] = null; + }), + (_.prototype.defineDecisionState = function (s) { + return ( + this.decisionToState.push(s), + (s.decision = this.decisionToState.length - 1), + s.decision + ); + }), + (_.prototype.getDecisionState = function (s) { + return 0 === this.decisionToState.length + ? null + : this.decisionToState[s]; + }); + var m = p(9696).Token; + (_.prototype.getExpectedTokens = function (s, d) { + if (s < 0 || s >= this.states.length) throw "Invalid state number."; + var h = this.nextTokens(this.states[s]); + if (!h.contains(m.EPSILON)) return h; + var r = new f(); + for ( + r.addSet(h), r.removeOne(m.EPSILON); + null !== d && d.invokingState >= 0 && h.contains(m.EPSILON); + + ) + (h = this.nextTokens( + this.states[d.invokingState].transitions[0].followState + )), + r.addSet(h), + r.removeOne(m.EPSILON), + (d = d.parentCtx); + return h.contains(m.EPSILON) && r.addOne(m.EOF), r; + }), + (_.INVALID_ALT_NUMBER = 0), + (j.ATN = _); + }, + 6980: (ye, j, p) => { + var n = p(7069).DecisionState, + f = p(7884).dP, + _ = p(3126).Hash; + function m(u, h) { + if (null === u) { + var r = { + state: null, + alt: null, + context: null, + semanticContext: null, + }; + return h && (r.reachesIntoOuterContext = 0), r; + } + var o = {}; + return ( + (o.state = u.state || null), + (o.alt = void 0 === u.alt ? null : u.alt), + (o.context = u.context || null), + (o.semanticContext = u.semanticContext || null), + h && + ((o.reachesIntoOuterContext = u.reachesIntoOuterContext || 0), + (o.precedenceFilterSuppressed = + u.precedenceFilterSuppressed || !1)), + o + ); + } + function s(u, h) { + return ( + this.checkContext(u, h), + (u = m(u)), + (h = m(h, !0)), + (this.state = null !== u.state ? u.state : h.state), + (this.alt = null !== u.alt ? u.alt : h.alt), + (this.context = null !== u.context ? u.context : h.context), + (this.semanticContext = + null !== u.semanticContext + ? u.semanticContext + : null !== h.semanticContext + ? h.semanticContext + : f.NONE), + (this.reachesIntoOuterContext = h.reachesIntoOuterContext), + (this.precedenceFilterSuppressed = h.precedenceFilterSuppressed), + this + ); + } + function d(u, h) { + return ( + s.call(this, u, h), + (this.lexerActionExecutor = + u.lexerActionExecutor || + (null !== h ? h.lexerActionExecutor : null)), + (this.passedThroughNonGreedyDecision = + null !== h && this.checkNonGreedyDecision(h, this.state)), + this + ); + } + (s.prototype.checkContext = function (u, h) { + null == u.context && + (null === h || null == h.context) && + (this.context = null); + }), + (s.prototype.hashCode = function () { + var u = new _(); + return this.updateHashCode(u), u.finish(); + }), + (s.prototype.updateHashCode = function (u) { + u.update( + this.state.stateNumber, + this.alt, + this.context, + this.semanticContext + ); + }), + (s.prototype.equals = function (u) { + return ( + this === u || + (u instanceof s && + this.state.stateNumber === u.state.stateNumber && + this.alt === u.alt && + (null === this.context + ? null === u.context + : this.context.equals(u.context)) && + this.semanticContext.equals(u.semanticContext) && + this.precedenceFilterSuppressed === u.precedenceFilterSuppressed) + ); + }), + (s.prototype.hashCodeForConfigSet = function () { + var u = new _(); + return ( + u.update(this.state.stateNumber, this.alt, this.semanticContext), + u.finish() + ); + }), + (s.prototype.equalsForConfigSet = function (u) { + return ( + this === u || + (u instanceof s && + this.state.stateNumber === u.state.stateNumber && + this.alt === u.alt && + this.semanticContext.equals(u.semanticContext)) + ); + }), + (s.prototype.toString = function () { + return ( + "(" + + this.state + + "," + + this.alt + + (null !== this.context + ? ",[" + this.context.toString() + "]" + : "") + + (this.semanticContext !== f.NONE + ? "," + this.semanticContext.toString() + : "") + + (this.reachesIntoOuterContext > 0 + ? ",up=" + this.reachesIntoOuterContext + : "") + + ")" + ); + }), + ((d.prototype = Object.create(s.prototype)).constructor = d), + (d.prototype.updateHashCode = function (u) { + u.update( + this.state.stateNumber, + this.alt, + this.context, + this.semanticContext, + this.passedThroughNonGreedyDecision, + this.lexerActionExecutor + ); + }), + (d.prototype.equals = function (u) { + return ( + this === u || + (u instanceof d && + this.passedThroughNonGreedyDecision == + u.passedThroughNonGreedyDecision && + (this.lexerActionExecutor + ? this.lexerActionExecutor.equals(u.lexerActionExecutor) + : !u.lexerActionExecutor) && + s.prototype.equals.call(this, u)) + ); + }), + (d.prototype.hashCodeForConfigSet = d.prototype.hashCode), + (d.prototype.equalsForConfigSet = d.prototype.equals), + (d.prototype.checkNonGreedyDecision = function (u, h) { + return ( + u.passedThroughNonGreedyDecision || (h instanceof n && h.nonGreedy) + ); + }), + (j.m = s), + (j.P = d); + }, + 7578: (ye, j, p) => { + var n = p(4562).ATN, + f = p(3126), + _ = f.Hash, + m = f.Set, + s = p(7884).dP, + d = p(8267).merge; + function u(i) { + return i.hashCodeForConfigSet(); + } + function h(i, c) { + return i === c || (null !== i && null !== c && i.equalsForConfigSet(c)); + } + function r(i) { + return ( + (this.configLookup = new m(u, h)), + (this.fullCtx = void 0 === i || i), + (this.readOnly = !1), + (this.configs = []), + (this.uniqueAlt = 0), + (this.conflictingAlts = null), + (this.hasSemanticContext = !1), + (this.dipsIntoOuterContext = !1), + (this.cachedHashCode = -1), + this + ); + } + function o() { + return r.call(this), (this.configLookup = new m()), this; + } + (r.prototype.add = function (i, c) { + if ((void 0 === c && (c = null), this.readOnly)) + throw "This set is readonly"; + i.semanticContext !== s.NONE && (this.hasSemanticContext = !0), + i.reachesIntoOuterContext > 0 && (this.dipsIntoOuterContext = !0); + var l = this.configLookup.add(i); + if (l === i) + return (this.cachedHashCode = -1), this.configs.push(i), !0; + var b = d(l.context, i.context, !this.fullCtx, c); + return ( + (l.reachesIntoOuterContext = Math.max( + l.reachesIntoOuterContext, + i.reachesIntoOuterContext + )), + i.precedenceFilterSuppressed && (l.precedenceFilterSuppressed = !0), + (l.context = b), + !0 + ); + }), + (r.prototype.getStates = function () { + for (var i = new m(), c = 0; c < this.configs.length; c++) + i.add(this.configs[c].state); + return i; + }), + (r.prototype.getPredicates = function () { + for (var i = [], c = 0; c < this.configs.length; c++) { + var l = this.configs[c].semanticContext; + l !== s.NONE && i.push(l.semanticContext); + } + return i; + }), + Object.defineProperty(r.prototype, "items", { + get: function () { + return this.configs; + }, + }), + (r.prototype.optimizeConfigs = function (i) { + if (this.readOnly) throw "This set is readonly"; + if (0 !== this.configLookup.length) + for (var c = 0; c < this.configs.length; c++) { + var l = this.configs[c]; + l.context = i.getCachedContext(l.context); + } + }), + (r.prototype.addAll = function (i) { + for (var c = 0; c < i.length; c++) this.add(i[c]); + return !1; + }), + (r.prototype.equals = function (i) { + return ( + this === i || + (i instanceof r && + f.equalArrays(this.configs, i.configs) && + this.fullCtx === i.fullCtx && + this.uniqueAlt === i.uniqueAlt && + this.conflictingAlts === i.conflictingAlts && + this.hasSemanticContext === i.hasSemanticContext && + this.dipsIntoOuterContext === i.dipsIntoOuterContext) + ); + }), + (r.prototype.hashCode = function () { + var i = new _(); + return this.updateHashCode(i), i.finish(); + }), + (r.prototype.updateHashCode = function (i) { + this.readOnly + ? (-1 === this.cachedHashCode && + ((i = new _()).update(this.configs), + (this.cachedHashCode = i.finish())), + i.update(this.cachedHashCode)) + : i.update(this.configs); + }), + Object.defineProperty(r.prototype, "length", { + get: function () { + return this.configs.length; + }, + }), + (r.prototype.isEmpty = function () { + return 0 === this.configs.length; + }), + (r.prototype.contains = function (i) { + if (null === this.configLookup) + throw "This method is not implemented for readonly sets."; + return this.configLookup.contains(i); + }), + (r.prototype.containsFast = function (i) { + if (null === this.configLookup) + throw "This method is not implemented for readonly sets."; + return this.configLookup.containsFast(i); + }), + (r.prototype.clear = function () { + if (this.readOnly) throw "This set is readonly"; + (this.configs = []), + (this.cachedHashCode = -1), + (this.configLookup = new m()); + }), + (r.prototype.setReadonly = function (i) { + (this.readOnly = i), i && (this.configLookup = null); + }), + (r.prototype.toString = function () { + return ( + f.arrayToString(this.configs) + + (this.hasSemanticContext + ? ",hasSemanticContext=" + this.hasSemanticContext + : "") + + (this.uniqueAlt !== n.INVALID_ALT_NUMBER + ? ",uniqueAlt=" + this.uniqueAlt + : "") + + (null !== this.conflictingAlts + ? ",conflictingAlts=" + this.conflictingAlts + : "") + + (this.dipsIntoOuterContext ? ",dipsIntoOuterContext" : "") + ); + }), + ((o.prototype = Object.create(r.prototype)).constructor = o), + (j.B = r), + (j.s = o); + }, + 6557: (ye, j) => { + function p(n) { + return ( + void 0 === n && (n = null), + (this.readOnly = !1), + (this.verifyATN = null === n || n.verifyATN), + (this.generateRuleBypassTransitions = + null !== n && n.generateRuleBypassTransitions), + this + ); + } + ((p.defaultOptions = new p()).readOnly = !0), (j.W = p); + }, + 9535: (ye, j, p) => { + var n = p(9696).Token, + f = p(4562).ATN, + _ = p(4177).n, + m = p(7069), + s = m.ATNState, + d = m.BasicState, + u = m.DecisionState, + h = m.BlockStartState, + r = m.BlockEndState, + o = m.LoopEndState, + i = m.RuleStartState, + c = m.RuleStopState, + l = m.TokensStartState, + g = m.PlusLoopbackState, + b = m.StarLoopbackState, + y = m.StarLoopEntryState, + x = m.PlusBlockStartState, + T = m.StarBlockStartState, + O = m.BasicBlockStartState, + M = p(8792), + A = M.Transition, + S = M.AtomTransition, + w = M.SetTransition, + I = M.NotSetTransition, + C = M.RuleTransition, + L = M.RangeTransition, + F = M.ActionTransition, + ie = M.EpsilonTransition, + Y = M.WildcardTransition, + Z = M.PredicateTransition, + ee = M.PrecedencePredicateTransition, + $ = p(3491).V, + ne = (p(3491), p(6557).W), + ae = p(3805), + le = ae.LexerActionType, + Oe = ae.LexerSkipAction, + Le = ae.LexerChannelAction, + Ye = ae.LexerCustomAction, + Je = ae.LexerMoreAction, + gt = ae.LexerTypeAction, + Ue = ae.LexerPushModeAction, + tt = ae.LexerPopModeAction, + at = ae.LexerModeAction, + vt = "59627784-3BE5-417A-B9EB-8131A7286089", + yt = ["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E", vt]; + function At(Ee, fe) { + var H = []; + return ( + (H[Ee - 1] = fe), + H.map(function (D) { + return fe; + }) + ); + } + function Tt(Ee) { + return ( + null == Ee && (Ee = ne.defaultOptions), + (this.deserializationOptions = Ee), + (this.stateFactories = null), + (this.actionFactories = null), + this + ); + } + (Tt.prototype.isFeatureSupported = function (Ee, fe) { + var H = yt.indexOf(Ee); + return !(H < 0) && yt.indexOf(fe) >= H; + }), + (Tt.prototype.deserialize = function (Ee) { + this.reset(Ee), this.checkVersion(), this.checkUUID(); + var fe = this.readATN(); + this.readStates(fe), this.readRules(fe), this.readModes(fe); + var H = []; + return ( + this.readSets(fe, H, this.readInt.bind(this)), + this.isFeatureSupported(vt, this.uuid) && + this.readSets(fe, H, this.readInt32.bind(this)), + this.readEdges(fe, H), + this.readDecisions(fe), + this.readLexerActions(fe), + this.markPrecedenceDecisions(fe), + this.verifyATN(fe), + this.deserializationOptions.generateRuleBypassTransitions && + fe.grammarType === _.PARSER && + (this.generateRuleBypassTransitions(fe), this.verifyATN(fe)), + fe + ); + }), + (Tt.prototype.reset = function (Ee) { + var H = Ee.split("").map(function (D) { + var U = D.charCodeAt(0); + return U > 1 ? U - 2 : U + 65533; + }); + (H[0] = Ee.charCodeAt(0)), (this.data = H), (this.pos = 0); + }), + (Tt.prototype.checkVersion = function () { + var Ee = this.readInt(); + if (3 !== Ee) + throw ( + "Could not deserialize ATN with version " + Ee + " (expected 3)." + ); + }), + (Tt.prototype.checkUUID = function () { + var Ee = this.readUUID(); + if (yt.indexOf(Ee) < 0) throw "59627784-3BE5-417A-B9EB-8131A7286089"; + this.uuid = Ee; + }), + (Tt.prototype.readATN = function () { + var Ee = this.readInt(), + fe = this.readInt(); + return new f(Ee, fe); + }), + (Tt.prototype.readStates = function (Ee) { + for ( + var fe, H, D, U = [], X = [], _e = this.readInt(), Be = 0; + Be < _e; + Be++ + ) { + var $e = this.readInt(); + if ($e !== s.INVALID_TYPE) { + var st = this.readInt(); + 65535 === st && (st = -1); + var ut = this.stateFactory($e, st); + if ($e === s.LOOP_END) { + var St = this.readInt(); + U.push([ut, St]); + } else if (ut instanceof h) { + var Xt = this.readInt(); + X.push([ut, Xt]); + } + Ee.addState(ut); + } else Ee.addState(null); + } + for (fe = 0; fe < U.length; fe++) + (H = U[fe])[0].loopBackState = Ee.states[H[1]]; + for (fe = 0; fe < X.length; fe++) + (H = X[fe])[0].endState = Ee.states[H[1]]; + var tn = this.readInt(); + for (fe = 0; fe < tn; fe++) + (D = this.readInt()), (Ee.states[D].nonGreedy = !0); + var Dt = this.readInt(); + for (fe = 0; fe < Dt; fe++) + (D = this.readInt()), (Ee.states[D].isPrecedenceRule = !0); + }), + (Tt.prototype.readRules = function (Ee) { + var fe, + H = this.readInt(); + for ( + Ee.grammarType === _.LEXER && (Ee.ruleToTokenType = At(H, 0)), + Ee.ruleToStartState = At(H, 0), + fe = 0; + fe < H; + fe++ + ) { + var D = this.readInt(); + if ( + ((Ee.ruleToStartState[fe] = Ee.states[D]), + Ee.grammarType === _.LEXER) + ) { + var X = this.readInt(); + 65535 === X && (X = n.EOF), (Ee.ruleToTokenType[fe] = X); + } + } + for ( + Ee.ruleToStopState = At(H, 0), fe = 0; + fe < Ee.states.length; + fe++ + ) { + var _e = Ee.states[fe]; + _e instanceof c && + ((Ee.ruleToStopState[_e.ruleIndex] = _e), + (Ee.ruleToStartState[_e.ruleIndex].stopState = _e)); + } + }), + (Tt.prototype.readModes = function (Ee) { + for (var fe = this.readInt(), H = 0; H < fe; H++) { + var D = this.readInt(); + Ee.modeToStartState.push(Ee.states[D]); + } + }), + (Tt.prototype.readSets = function (Ee, fe, H) { + for (var D = this.readInt(), U = 0; U < D; U++) { + var X = new $(); + fe.push(X); + var _e = this.readInt(); + 0 !== this.readInt() && X.addOne(-1); + for (var $e = 0; $e < _e; $e++) { + var st = H(), + ut = H(); + X.addRange(st, ut); + } + } + }), + (Tt.prototype.readEdges = function (Ee, fe) { + var H, + D, + U, + X, + _e, + Be = this.readInt(); + for (H = 0; H < Be; H++) { + var $e = this.readInt(), + st = this.readInt(), + ut = this.readInt(), + St = this.readInt(), + Xt = this.readInt(), + tn = this.readInt(); + (X = this.edgeFactory(Ee, ut, $e, st, St, Xt, tn, fe)), + Ee.states[$e].addTransition(X); + } + for (H = 0; H < Ee.states.length; H++) + for (U = Ee.states[H], D = 0; D < U.transitions.length; D++) { + var Kt = U.transitions[D]; + if (Kt instanceof C) { + var et = -1; + Ee.ruleToStartState[Kt.target.ruleIndex].isPrecedenceRule && + 0 === Kt.precedence && + (et = Kt.target.ruleIndex), + (X = new ie(Kt.followState, et)), + Ee.ruleToStopState[Kt.target.ruleIndex].addTransition(X); + } + } + for (H = 0; H < Ee.states.length; H++) { + if ((U = Ee.states[H]) instanceof h) { + if (null === U.endState || null !== U.endState.startState) + throw "IllegalState"; + U.endState.startState = U; + } + if (U instanceof g) + for (D = 0; D < U.transitions.length; D++) + (_e = U.transitions[D].target) instanceof x && + (_e.loopBackState = U); + else if (U instanceof b) + for (D = 0; D < U.transitions.length; D++) + (_e = U.transitions[D].target) instanceof y && + (_e.loopBackState = U); + } + }), + (Tt.prototype.readDecisions = function (Ee) { + for (var fe = this.readInt(), H = 0; H < fe; H++) { + var D = this.readInt(), + U = Ee.states[D]; + Ee.decisionToState.push(U), (U.decision = H); + } + }), + (Tt.prototype.readLexerActions = function (Ee) { + if (Ee.grammarType === _.LEXER) { + var fe = this.readInt(); + Ee.lexerActions = At(fe, null); + for (var H = 0; H < fe; H++) { + var D = this.readInt(), + U = this.readInt(); + 65535 === U && (U = -1); + var X = this.readInt(); + 65535 === X && (X = -1); + var _e = this.lexerActionFactory(D, U, X); + Ee.lexerActions[H] = _e; + } + } + }), + (Tt.prototype.generateRuleBypassTransitions = function (Ee) { + var fe, + H = Ee.ruleToStartState.length; + for (fe = 0; fe < H; fe++) + Ee.ruleToTokenType[fe] = Ee.maxTokenType + fe + 1; + for (fe = 0; fe < H; fe++) this.generateRuleBypassTransition(Ee, fe); + }), + (Tt.prototype.generateRuleBypassTransition = function (Ee, fe) { + var H, + D, + U = new O(); + (U.ruleIndex = fe), Ee.addState(U); + var X = new r(); + (X.ruleIndex = fe), + Ee.addState(X), + (U.endState = X), + Ee.defineDecisionState(U), + (X.startState = U); + var _e = null, + Be = null; + if (Ee.ruleToStartState[fe].isPrecedenceRule) { + for (Be = null, H = 0; H < Ee.states.length; H++) + if (this.stateIsEndStateFor((D = Ee.states[H]), fe)) { + (Be = D), (_e = D.loopBackState.transitions[0]); + break; + } + if (null === _e) + throw "Couldn't identify final state of the precedence rule prefix section."; + } else Be = Ee.ruleToStopState[fe]; + for (H = 0; H < Ee.states.length; H++) { + D = Ee.states[H]; + for (var $e = 0; $e < D.transitions.length; $e++) { + var st = D.transitions[$e]; + st !== _e && st.target === Be && (st.target = X); + } + } + for ( + var ut = Ee.ruleToStartState[fe], St = ut.transitions.length; + St > 0; + + ) + U.addTransition(ut.transitions[St - 1]), + (ut.transitions = ut.transitions.slice(-1)); + Ee.ruleToStartState[fe].addTransition(new ie(U)), + X.addTransition(new ie(Be)); + var Xt = new d(); + Ee.addState(Xt), + Xt.addTransition(new S(X, Ee.ruleToTokenType[fe])), + U.addTransition(new ie(Xt)); + }), + (Tt.prototype.stateIsEndStateFor = function (Ee, fe) { + if (Ee.ruleIndex !== fe || !(Ee instanceof y)) return null; + var H = Ee.transitions[Ee.transitions.length - 1].target; + return H instanceof o && + H.epsilonOnlyTransitions && + H.transitions[0].target instanceof c + ? Ee + : null; + }), + (Tt.prototype.markPrecedenceDecisions = function (Ee) { + for (var fe = 0; fe < Ee.states.length; fe++) { + var H = Ee.states[fe]; + if ( + H instanceof y && + Ee.ruleToStartState[H.ruleIndex].isPrecedenceRule + ) { + var D = H.transitions[H.transitions.length - 1].target; + D instanceof o && + D.epsilonOnlyTransitions && + D.transitions[0].target instanceof c && + (H.isPrecedenceDecision = !0); + } + } + }), + (Tt.prototype.verifyATN = function (Ee) { + if (this.deserializationOptions.verifyATN) + for (var fe = 0; fe < Ee.states.length; fe++) { + var H = Ee.states[fe]; + if (null !== H) + if ( + (this.checkCondition( + H.epsilonOnlyTransitions || H.transitions.length <= 1 + ), + H instanceof x) + ) + this.checkCondition(null !== H.loopBackState); + else if (H instanceof y) + if ( + (this.checkCondition(null !== H.loopBackState), + this.checkCondition(2 === H.transitions.length), + H.transitions[0].target instanceof T) + ) + this.checkCondition(H.transitions[1].target instanceof o), + this.checkCondition(!H.nonGreedy); + else { + if (!(H.transitions[0].target instanceof o)) + throw "IllegalState"; + this.checkCondition(H.transitions[1].target instanceof T), + this.checkCondition(H.nonGreedy); + } + else + H instanceof b + ? (this.checkCondition(1 === H.transitions.length), + this.checkCondition(H.transitions[0].target instanceof y)) + : this.checkCondition( + H instanceof o + ? null !== H.loopBackState + : H instanceof i + ? null !== H.stopState + : H instanceof h + ? null !== H.endState + : H instanceof r + ? null !== H.startState + : H instanceof u + ? H.transitions.length <= 1 || H.decision >= 0 + : H.transitions.length <= 1 || H instanceof c + ); + } + }), + (Tt.prototype.checkCondition = function (Ee, fe) { + if (!Ee) throw (null == fe && (fe = "IllegalState"), fe); + }), + (Tt.prototype.readInt = function () { + return this.data[this.pos++]; + }), + (Tt.prototype.readInt32 = function () { + return this.readInt() | (this.readInt() << 16); + }), + (Tt.prototype.readLong = function () { + return (4294967295 & this.readInt32()) | (this.readInt32() << 32); + }); + var Et = (function () { + for (var Ee = [], fe = 0; fe < 256; fe++) + Ee[fe] = (fe + 256).toString(16).substr(1).toUpperCase(); + return Ee; + })(); + (Tt.prototype.readUUID = function () { + for (var Ee = [], fe = 7; fe >= 0; fe--) { + var H = this.readInt(); + (Ee[2 * fe + 1] = 255 & H), (Ee[2 * fe] = (H >> 8) & 255); + } + return ( + Et[Ee[0]] + + Et[Ee[1]] + + Et[Ee[2]] + + Et[Ee[3]] + + "-" + + Et[Ee[4]] + + Et[Ee[5]] + + "-" + + Et[Ee[6]] + + Et[Ee[7]] + + "-" + + Et[Ee[8]] + + Et[Ee[9]] + + "-" + + Et[Ee[10]] + + Et[Ee[11]] + + Et[Ee[12]] + + Et[Ee[13]] + + Et[Ee[14]] + + Et[Ee[15]] + ); + }), + (Tt.prototype.edgeFactory = function (Ee, fe, H, D, U, X, _e, Be) { + var $e = Ee.states[D]; + switch (fe) { + case A.EPSILON: + return new ie($e); + case A.RANGE: + return new L($e, 0 !== _e ? n.EOF : U, X); + case A.RULE: + return new C(Ee.states[U], X, _e, $e); + case A.PREDICATE: + return new Z($e, U, X, 0 !== _e); + case A.PRECEDENCE: + return new ee($e, U); + case A.ATOM: + return new S($e, 0 !== _e ? n.EOF : U); + case A.ACTION: + return new F($e, U, X, 0 !== _e); + case A.SET: + return new w($e, Be[U]); + case A.NOT_SET: + return new I($e, Be[U]); + case A.WILDCARD: + return new Y($e); + default: + throw "The specified transition type: " + fe + " is not valid."; + } + }), + (Tt.prototype.stateFactory = function (Ee, fe) { + if (null === this.stateFactories) { + var H = []; + (H[s.INVALID_TYPE] = null), + (H[s.BASIC] = function () { + return new d(); + }), + (H[s.RULE_START] = function () { + return new i(); + }), + (H[s.BLOCK_START] = function () { + return new O(); + }), + (H[s.PLUS_BLOCK_START] = function () { + return new x(); + }), + (H[s.STAR_BLOCK_START] = function () { + return new T(); + }), + (H[s.TOKEN_START] = function () { + return new l(); + }), + (H[s.RULE_STOP] = function () { + return new c(); + }), + (H[s.BLOCK_END] = function () { + return new r(); + }), + (H[s.STAR_LOOP_BACK] = function () { + return new b(); + }), + (H[s.STAR_LOOP_ENTRY] = function () { + return new y(); + }), + (H[s.PLUS_LOOP_BACK] = function () { + return new g(); + }), + (H[s.LOOP_END] = function () { + return new o(); + }), + (this.stateFactories = H); + } + if ( + Ee > this.stateFactories.length || + null === this.stateFactories[Ee] + ) + throw "The specified state type " + Ee + " is not valid."; + var D = this.stateFactories[Ee](); + if (null !== D) return (D.ruleIndex = fe), D; + }), + (Tt.prototype.lexerActionFactory = function (Ee, fe, H) { + if (null === this.actionFactories) { + var D = []; + (D[le.CHANNEL] = function (U, X) { + return new Le(U); + }), + (D[le.CUSTOM] = function (U, X) { + return new Ye(U, X); + }), + (D[le.MODE] = function (U, X) { + return new at(U); + }), + (D[le.MORE] = function (U, X) { + return Je.INSTANCE; + }), + (D[le.POP_MODE] = function (U, X) { + return tt.INSTANCE; + }), + (D[le.PUSH_MODE] = function (U, X) { + return new Ue(U); + }), + (D[le.SKIP] = function (U, X) { + return Oe.INSTANCE; + }), + (D[le.TYPE] = function (U, X) { + return new gt(U); + }), + (this.actionFactories = D); + } + if ( + Ee > this.actionFactories.length || + null === this.actionFactories[Ee] + ) + throw "The specified lexer action type " + Ee + " is not valid."; + return this.actionFactories[Ee](fe, H); + }), + (j.ATNDeserializer = Tt); + }, + 6666: (ye, j, p) => { + var n = p(9665).B, + f = p(7578).B, + _ = p(8267).getCachedPredictionContext; + function m(s, d) { + return (this.atn = s), (this.sharedContextCache = d), this; + } + (m.ERROR = new n(2147483647, new f())), + (m.prototype.getCachedContext = function (s) { + return null === this.sharedContextCache + ? s + : _(s, this.sharedContextCache, {}); + }), + (j.f = m); + }, + 7069: (ye, j) => { + function n() { + return ( + (this.atn = null), + (this.stateNumber = n.INVALID_STATE_NUMBER), + (this.stateType = null), + (this.ruleIndex = 0), + (this.epsilonOnlyTransitions = !1), + (this.transitions = []), + (this.nextTokenWithinRule = null), + this + ); + } + function f() { + return n.call(this), (this.stateType = n.BASIC), this; + } + function _() { + return n.call(this), (this.decision = -1), (this.nonGreedy = !1), this; + } + function m() { + return _.call(this), (this.endState = null), this; + } + function s() { + return m.call(this), (this.stateType = n.BLOCK_START), this; + } + function d() { + return ( + n.call(this), + (this.stateType = n.BLOCK_END), + (this.startState = null), + this + ); + } + function u() { + return n.call(this), (this.stateType = n.RULE_STOP), this; + } + function h() { + return ( + n.call(this), + (this.stateType = n.RULE_START), + (this.stopState = null), + (this.isPrecedenceRule = !1), + this + ); + } + function r() { + return _.call(this), (this.stateType = n.PLUS_LOOP_BACK), this; + } + function o() { + return ( + m.call(this), + (this.stateType = n.PLUS_BLOCK_START), + (this.loopBackState = null), + this + ); + } + function i() { + return m.call(this), (this.stateType = n.STAR_BLOCK_START), this; + } + function c() { + return n.call(this), (this.stateType = n.STAR_LOOP_BACK), this; + } + function l() { + return ( + _.call(this), + (this.stateType = n.STAR_LOOP_ENTRY), + (this.loopBackState = null), + (this.isPrecedenceDecision = null), + this + ); + } + function g() { + return ( + n.call(this), + (this.stateType = n.LOOP_END), + (this.loopBackState = null), + this + ); + } + function b() { + return _.call(this), (this.stateType = n.TOKEN_START), this; + } + (n.INVALID_TYPE = 0), + (n.BASIC = 1), + (n.RULE_START = 2), + (n.BLOCK_START = 3), + (n.PLUS_BLOCK_START = 4), + (n.STAR_BLOCK_START = 5), + (n.TOKEN_START = 6), + (n.RULE_STOP = 7), + (n.BLOCK_END = 8), + (n.STAR_LOOP_BACK = 9), + (n.STAR_LOOP_ENTRY = 10), + (n.PLUS_LOOP_BACK = 11), + (n.LOOP_END = 12), + (n.serializationNames = [ + "INVALID", + "BASIC", + "RULE_START", + "BLOCK_START", + "PLUS_BLOCK_START", + "STAR_BLOCK_START", + "TOKEN_START", + "RULE_STOP", + "BLOCK_END", + "STAR_LOOP_BACK", + "STAR_LOOP_ENTRY", + "PLUS_LOOP_BACK", + "LOOP_END", + ]), + (n.INVALID_STATE_NUMBER = -1), + (n.prototype.toString = function () { + return this.stateNumber; + }), + (n.prototype.equals = function (y) { + return y instanceof n && this.stateNumber === y.stateNumber; + }), + (n.prototype.isNonGreedyExitState = function () { + return !1; + }), + (n.prototype.addTransition = function (y, x) { + void 0 === x && (x = -1), + 0 === this.transitions.length + ? (this.epsilonOnlyTransitions = y.isEpsilon) + : this.epsilonOnlyTransitions !== y.isEpsilon && + (this.epsilonOnlyTransitions = !1), + -1 === x + ? this.transitions.push(y) + : this.transitions.splice(x, 1, y); + }), + ((f.prototype = Object.create(n.prototype)).constructor = f), + ((_.prototype = Object.create(n.prototype)).constructor = _), + ((m.prototype = Object.create(_.prototype)).constructor = m), + ((s.prototype = Object.create(m.prototype)).constructor = s), + ((d.prototype = Object.create(n.prototype)).constructor = d), + ((u.prototype = Object.create(n.prototype)).constructor = u), + ((h.prototype = Object.create(n.prototype)).constructor = h), + ((r.prototype = Object.create(_.prototype)).constructor = r), + ((o.prototype = Object.create(m.prototype)).constructor = o), + ((i.prototype = Object.create(m.prototype)).constructor = i), + ((c.prototype = Object.create(n.prototype)).constructor = c), + ((l.prototype = Object.create(_.prototype)).constructor = l), + ((g.prototype = Object.create(n.prototype)).constructor = g), + ((b.prototype = Object.create(_.prototype)).constructor = b), + (j.ATNState = n), + (j.BasicState = f), + (j.DecisionState = _), + (j.BlockStartState = m), + (j.BlockEndState = d), + (j.LoopEndState = g), + (j.RuleStartState = h), + (j.RuleStopState = u), + (j.TokensStartState = b), + (j.PlusLoopbackState = r), + (j.StarLoopbackState = c), + (j.StarLoopEntryState = l), + (j.PlusBlockStartState = o), + (j.StarBlockStartState = i), + (j.BasicBlockStartState = s); + }, + 4177: (ye, j) => { + function p() {} + (p.LEXER = 0), (p.PARSER = 1), (j.n = p); + }, + 3305: (ye, j, p) => { + var n = p(9696).Token, + f = p(8123).Lexer, + _ = p(4562).ATN, + m = p(6666).f, + s = p(9665).B, + u = (p(7578), p(7578).s), + h = p(8267).PredictionContext, + r = p(8267).SingletonPredictionContext, + o = p(7069).RuleStopState, + i = p(6980).P, + c = p(8792).Transition, + l = p(4859).W, + g = p(9329).LexerNoViableAltException; + function b(T) { + (T.index = -1), (T.line = 0), (T.column = -1), (T.dfaState = null); + } + function y() { + return b(this), this; + } + function x(T, O, M, A) { + return ( + m.call(this, O, A), + (this.decisionToDFA = M), + (this.recog = T), + (this.startIndex = -1), + (this.line = 1), + (this.column = 0), + (this.mode = f.DEFAULT_MODE), + (this.prevAccept = new y()), + this + ); + } + (y.prototype.reset = function () { + b(this); + }), + ((x.prototype = Object.create(m.prototype)).constructor = x), + (x.debug = !1), + (x.dfa_debug = !1), + (x.MIN_DFA_EDGE = 0), + (x.MAX_DFA_EDGE = 127), + (x.match_calls = 0), + (x.prototype.copyState = function (T) { + (this.column = T.column), + (this.line = T.line), + (this.mode = T.mode), + (this.startIndex = T.startIndex); + }), + (x.prototype.match = function (T, O) { + (this.match_calls += 1), (this.mode = O); + var M = T.mark(); + try { + (this.startIndex = T.index), this.prevAccept.reset(); + var A = this.decisionToDFA[O]; + return null === A.s0 ? this.matchATN(T) : this.execATN(T, A.s0); + } finally { + T.release(M); + } + }), + (x.prototype.reset = function () { + this.prevAccept.reset(), + (this.startIndex = -1), + (this.line = 1), + (this.column = 0), + (this.mode = f.DEFAULT_MODE); + }), + (x.prototype.matchATN = function (T) { + var O = this.atn.modeToStartState[this.mode]; + x.debug && console.log("matchATN mode " + this.mode + " start: " + O); + var M = this.mode, + A = this.computeStartState(T, O), + S = A.hasSemanticContext; + A.hasSemanticContext = !1; + var w = this.addDFAState(A); + S || (this.decisionToDFA[this.mode].s0 = w); + var I = this.execATN(T, w); + return ( + x.debug && + console.log( + "DFA after matchATN: " + this.decisionToDFA[M].toLexerString() + ), + I + ); + }), + (x.prototype.execATN = function (T, O) { + x.debug && console.log("start state closure=" + O.configs), + O.isAcceptState && this.captureSimState(this.prevAccept, T, O); + for (var M = T.LA(1), A = O; ; ) { + x.debug && + console.log("execATN loop starting closure: " + A.configs); + var S = this.getExistingTargetState(A, M); + if ( + (null === S && (S = this.computeTargetState(T, A, M)), + S === m.ERROR || + (M !== n.EOF && this.consume(T), + S.isAcceptState && + (this.captureSimState(this.prevAccept, T, S), M === n.EOF))) + ) + break; + (M = T.LA(1)), (A = S); + } + return this.failOrAccept(this.prevAccept, T, A.configs, M); + }), + (x.prototype.getExistingTargetState = function (T, O) { + if (null === T.edges || O < x.MIN_DFA_EDGE || O > x.MAX_DFA_EDGE) + return null; + var M = T.edges[O - x.MIN_DFA_EDGE]; + return ( + void 0 === M && (M = null), + x.debug && + null !== M && + console.log( + "reuse state " + T.stateNumber + " edge to " + M.stateNumber + ), + M + ); + }), + (x.prototype.computeTargetState = function (T, O, M) { + var A = new u(); + return ( + this.getReachableConfigSet(T, O.configs, A, M), + 0 === A.items.length + ? (A.hasSemanticContext || this.addDFAEdge(O, M, m.ERROR), + m.ERROR) + : this.addDFAEdge(O, M, null, A) + ); + }), + (x.prototype.failOrAccept = function (T, O, M, A) { + if (null !== this.prevAccept.dfaState) + return ( + this.accept( + O, + T.dfaState.lexerActionExecutor, + this.startIndex, + T.index, + T.line, + T.column + ), + T.dfaState.prediction + ); + if (A === n.EOF && O.index === this.startIndex) return n.EOF; + throw new g(this.recog, O, this.startIndex, M); + }), + (x.prototype.getReachableConfigSet = function (T, O, M, A) { + for (var S = _.INVALID_ALT_NUMBER, w = 0; w < O.items.length; w++) { + var I = O.items[w], + C = I.alt === S; + if (!C || !I.passedThroughNonGreedyDecision) { + x.debug && + console.log( + "testing %s at %s\n", + this.getTokenName(A), + I.toString(this.recog, !0) + ); + for (var L = 0; L < I.state.transitions.length; L++) { + var ie = this.getReachableTarget(I.state.transitions[L], A); + if (null !== ie) { + var Y = I.lexerActionExecutor; + null !== Y && + (Y = Y.fixOffsetBeforeMatch(T.index - this.startIndex)); + var Z = A === n.EOF, + ee = new i({ state: ie, lexerActionExecutor: Y }, I); + this.closure(T, ee, M, C, !0, Z) && (S = I.alt); + } + } + } + } + }), + (x.prototype.accept = function (T, O, M, A, S, w) { + x.debug && console.log("ACTION %s\n", O), + T.seek(A), + (this.line = S), + (this.column = w), + null !== O && null !== this.recog && O.execute(this.recog, T, M); + }), + (x.prototype.getReachableTarget = function (T, O) { + return T.matches(O, 0, f.MAX_CHAR_VALUE) ? T.target : null; + }), + (x.prototype.computeStartState = function (T, O) { + for ( + var M = h.EMPTY, A = new u(), S = 0; + S < O.transitions.length; + S++ + ) { + var I = new i( + { state: O.transitions[S].target, alt: S + 1, context: M }, + null + ); + this.closure(T, I, A, !1, !1, !1); + } + return A; + }), + (x.prototype.closure = function (T, O, M, A, S, w) { + var I = null; + if ( + (x.debug && + console.log("closure(" + O.toString(this.recog, !0) + ")"), + O.state instanceof o) + ) { + if ( + (x.debug && + (null !== this.recog + ? console.log( + "closure at %s rule stop %s\n", + this.recog.ruleNames[O.state.ruleIndex], + O + ) + : console.log("closure at rule stop %s\n", O)), + null === O.context || O.context.hasEmptyPath()) + ) { + if (null === O.context || O.context.isEmpty()) + return M.add(O), !0; + M.add(new i({ state: O.state, context: h.EMPTY }, O)), (A = !0); + } + if (null !== O.context && !O.context.isEmpty()) + for (var C = 0; C < O.context.length; C++) + if (O.context.getReturnState(C) !== h.EMPTY_RETURN_STATE) { + var L = O.context.getParent(C), + F = this.atn.states[O.context.getReturnState(C)]; + (I = new i({ state: F, context: L }, O)), + (A = this.closure(T, I, M, A, S, w)); + } + return A; + } + O.state.epsilonOnlyTransitions || + ((!A || !O.passedThroughNonGreedyDecision) && M.add(O)); + for (var ie = 0; ie < O.state.transitions.length; ie++) + null !== + (I = this.getEpsilonTarget( + T, + O, + O.state.transitions[ie], + M, + S, + w + )) && (A = this.closure(T, I, M, A, S, w)); + return A; + }), + (x.prototype.getEpsilonTarget = function (T, O, M, A, S, w) { + var I = null; + if (M.serializationType === c.RULE) { + var C = r.create(O.context, M.followState.stateNumber); + I = new i({ state: M.target, context: C }, O); + } else { + if (M.serializationType === c.PRECEDENCE) + throw "Precedence predicates are not supported in lexers."; + if (M.serializationType === c.PREDICATE) + x.debug && + console.log("EVAL rule " + M.ruleIndex + ":" + M.predIndex), + (A.hasSemanticContext = !0), + this.evaluatePredicate(T, M.ruleIndex, M.predIndex, S) && + (I = new i({ state: M.target }, O)); + else if (M.serializationType === c.ACTION) + if (null === O.context || O.context.hasEmptyPath()) { + var L = l.append( + O.lexerActionExecutor, + this.atn.lexerActions[M.actionIndex] + ); + I = new i({ state: M.target, lexerActionExecutor: L }, O); + } else I = new i({ state: M.target }, O); + else + (M.serializationType === c.EPSILON || + ((M.serializationType === c.ATOM || + M.serializationType === c.RANGE || + M.serializationType === c.SET) && + w && + M.matches(n.EOF, 0, f.MAX_CHAR_VALUE))) && + (I = new i({ state: M.target }, O)); + } + return I; + }), + (x.prototype.evaluatePredicate = function (T, O, M, A) { + if (null === this.recog) return !0; + if (!A) return this.recog.sempred(null, O, M); + var S = this.column, + w = this.line, + I = T.index, + C = T.mark(); + try { + return this.consume(T), this.recog.sempred(null, O, M); + } finally { + (this.column = S), (this.line = w), T.seek(I), T.release(C); + } + }), + (x.prototype.captureSimState = function (T, O, M) { + (T.index = O.index), + (T.line = this.line), + (T.column = this.column), + (T.dfaState = M); + }), + (x.prototype.addDFAEdge = function (T, O, M, A) { + if ( + (void 0 === M && (M = null), + void 0 === A && (A = null), + null === M && null !== A) + ) { + var S = A.hasSemanticContext; + if (((A.hasSemanticContext = !1), (M = this.addDFAState(A)), S)) + return M; + } + return ( + O < x.MIN_DFA_EDGE || + O > x.MAX_DFA_EDGE || + (x.debug && console.log("EDGE " + T + " -> " + M + " upon " + O), + null === T.edges && (T.edges = []), + (T.edges[O - x.MIN_DFA_EDGE] = M)), + M + ); + }), + (x.prototype.addDFAState = function (T) { + for ( + var O = new s(null, T), M = null, A = 0; + A < T.items.length; + A++ + ) { + var S = T.items[A]; + if (S.state instanceof o) { + M = S; + break; + } + } + null !== M && + ((O.isAcceptState = !0), + (O.lexerActionExecutor = M.lexerActionExecutor), + (O.prediction = this.atn.ruleToTokenType[M.state.ruleIndex])); + var w = this.decisionToDFA[this.mode], + I = w.states.get(O); + if (null !== I) return I; + var C = O; + return ( + (C.stateNumber = w.states.length), + T.setReadonly(!0), + (C.configs = T), + w.states.add(C), + C + ); + }), + (x.prototype.getDFA = function (T) { + return this.decisionToDFA[T]; + }), + (x.prototype.getText = function (T) { + return T.getText(this.startIndex, T.index - 1); + }), + (x.prototype.consume = function (T) { + T.LA(1) === "\n".charCodeAt(0) + ? ((this.line += 1), (this.column = 0)) + : (this.column += 1), + T.consume(); + }), + (x.prototype.getTokenName = function (T) { + return -1 === T ? "EOF" : "'" + String.fromCharCode(T) + "'"; + }), + (j.LexerATNSimulator = x); + }, + 3805: (ye, j) => { + function p() {} + function n(i) { + return (this.actionType = i), (this.isPositionDependent = !1), this; + } + function f() { + return n.call(this, p.SKIP), this; + } + function _(i) { + return n.call(this, p.TYPE), (this.type = i), this; + } + function m(i) { + return n.call(this, p.PUSH_MODE), (this.mode = i), this; + } + function s() { + return n.call(this, p.POP_MODE), this; + } + function d() { + return n.call(this, p.MORE), this; + } + function u(i) { + return n.call(this, p.MODE), (this.mode = i), this; + } + function h(i, c) { + return ( + n.call(this, p.CUSTOM), + (this.ruleIndex = i), + (this.actionIndex = c), + (this.isPositionDependent = !0), + this + ); + } + function r(i) { + return n.call(this, p.CHANNEL), (this.channel = i), this; + } + function o(i, c) { + return ( + n.call(this, c.actionType), + (this.offset = i), + (this.action = c), + (this.isPositionDependent = !0), + this + ); + } + (p.CHANNEL = 0), + (p.CUSTOM = 1), + (p.MODE = 2), + (p.MORE = 3), + (p.POP_MODE = 4), + (p.PUSH_MODE = 5), + (p.SKIP = 6), + (p.TYPE = 7), + (n.prototype.hashCode = function () { + var i = new Hash(); + return this.updateHashCode(i), i.finish(); + }), + (n.prototype.updateHashCode = function (i) { + i.update(this.actionType); + }), + (n.prototype.equals = function (i) { + return this === i; + }), + ((f.prototype = Object.create(n.prototype)).constructor = f), + (f.INSTANCE = new f()), + (f.prototype.execute = function (i) { + i.skip(); + }), + (f.prototype.toString = function () { + return "skip"; + }), + ((_.prototype = Object.create(n.prototype)).constructor = _), + (_.prototype.execute = function (i) { + i.type = this.type; + }), + (_.prototype.updateHashCode = function (i) { + i.update(this.actionType, this.type); + }), + (_.prototype.equals = function (i) { + return this === i || (i instanceof _ && this.type === i.type); + }), + (_.prototype.toString = function () { + return "type(" + this.type + ")"; + }), + ((m.prototype = Object.create(n.prototype)).constructor = m), + (m.prototype.execute = function (i) { + i.pushMode(this.mode); + }), + (m.prototype.updateHashCode = function (i) { + i.update(this.actionType, this.mode); + }), + (m.prototype.equals = function (i) { + return this === i || (i instanceof m && this.mode === i.mode); + }), + (m.prototype.toString = function () { + return "pushMode(" + this.mode + ")"; + }), + ((s.prototype = Object.create(n.prototype)).constructor = s), + (s.INSTANCE = new s()), + (s.prototype.execute = function (i) { + i.popMode(); + }), + (s.prototype.toString = function () { + return "popMode"; + }), + ((d.prototype = Object.create(n.prototype)).constructor = d), + (d.INSTANCE = new d()), + (d.prototype.execute = function (i) { + i.more(); + }), + (d.prototype.toString = function () { + return "more"; + }), + ((u.prototype = Object.create(n.prototype)).constructor = u), + (u.prototype.execute = function (i) { + i.mode(this.mode); + }), + (u.prototype.updateHashCode = function (i) { + i.update(this.actionType, this.mode); + }), + (u.prototype.equals = function (i) { + return this === i || (i instanceof u && this.mode === i.mode); + }), + (u.prototype.toString = function () { + return "mode(" + this.mode + ")"; + }), + ((h.prototype = Object.create(n.prototype)).constructor = h), + (h.prototype.execute = function (i) { + i.action(null, this.ruleIndex, this.actionIndex); + }), + (h.prototype.updateHashCode = function (i) { + i.update(this.actionType, this.ruleIndex, this.actionIndex); + }), + (h.prototype.equals = function (i) { + return ( + this === i || + (i instanceof h && + this.ruleIndex === i.ruleIndex && + this.actionIndex === i.actionIndex) + ); + }), + ((r.prototype = Object.create(n.prototype)).constructor = r), + (r.prototype.execute = function (i) { + i._channel = this.channel; + }), + (r.prototype.updateHashCode = function (i) { + i.update(this.actionType, this.channel); + }), + (r.prototype.equals = function (i) { + return this === i || (i instanceof r && this.channel === i.channel); + }), + (r.prototype.toString = function () { + return "channel(" + this.channel + ")"; + }), + ((o.prototype = Object.create(n.prototype)).constructor = o), + (o.prototype.execute = function (i) { + this.action.execute(i); + }), + (o.prototype.updateHashCode = function (i) { + i.update(this.actionType, this.offset, this.action); + }), + (o.prototype.equals = function (i) { + return ( + this === i || + (i instanceof o && + this.offset === i.offset && + this.action === i.action) + ); + }), + (j.LexerActionType = p), + (j.LexerSkipAction = f), + (j.LexerChannelAction = r), + (j.LexerCustomAction = h), + (j.LexerIndexedCustomAction = o), + (j.LexerMoreAction = d), + (j.LexerTypeAction = _), + (j.LexerPushModeAction = m), + (j.LexerPopModeAction = s), + (j.LexerModeAction = u); + }, + 4859: (ye, j, p) => { + var n = p(3126).hashStuff, + f = p(3805).LexerIndexedCustomAction; + function _(m) { + return ( + (this.lexerActions = null === m ? [] : m), + (this.cachedHashCode = n(m)), + this + ); + } + (_.append = function (m, s) { + return new _(null === m ? [s] : m.lexerActions.concat([s])); + }), + (_.prototype.fixOffsetBeforeMatch = function (m) { + for (var s = null, d = 0; d < this.lexerActions.length; d++) + this.lexerActions[d].isPositionDependent && + !(this.lexerActions[d] instanceof f) && + (null === s && (s = this.lexerActions.concat([])), + (s[d] = new f(m, this.lexerActions[d]))); + return null === s ? this : new _(s); + }), + (_.prototype.execute = function (m, s, d) { + var u = !1, + h = s.index; + try { + for (var r = 0; r < this.lexerActions.length; r++) { + var o = this.lexerActions[r]; + if (o instanceof f) { + var i = o.offset; + s.seek(d + i), (o = o.action), (u = d + i !== h); + } else o.isPositionDependent && (s.seek(h), (u = !1)); + o.execute(m); + } + } finally { + u && s.seek(h); + } + }), + (_.prototype.hashCode = function () { + return this.cachedHashCode; + }), + (_.prototype.updateHashCode = function (m) { + m.update(this.cachedHashCode); + }), + (_.prototype.equals = function (m) { + if (this === m) return !0; + if (m instanceof _) { + if (this.cachedHashCode != m.cachedHashCode) return !1; + if (this.lexerActions.length != m.lexerActions.length) return !1; + for (var s = this.lexerActions.length, d = 0; d < s; ++d) + if (!this.lexerActions[d].equals(m.lexerActions[d])) return !1; + return !0; + } + return !1; + }), + (j.W = _); + }, + 1170: (ye, j, p) => { + var n = p(3126), + f = n.Set, + _ = n.BitSet, + m = n.DoubleDict, + s = p(4562).ATN, + d = p(7069).ATNState, + u = p(6980).m, + h = p(7578).B, + r = p(9696).Token, + o = p(9665).B, + i = p(9665).PredPrediction, + c = p(6666).f, + l = p(636).PredictionMode, + g = p(3955).r, + y = (p(7335), p(7884).dP), + T = (p(7069), p(7069).RuleStopState), + O = p(8267).PredictionContext, + M = p(3491).Interval, + A = p(8792), + S = A.Transition, + w = A.SetTransition, + I = A.NotSetTransition, + C = A.RuleTransition, + L = A.ActionTransition, + F = p(9329).NoViableAltException, + ie = p(8267).SingletonPredictionContext, + Y = p(8267).predictionContextFromRuleContext; + function Z(ee, $, J, ne) { + return ( + c.call(this, $, ne), + (this.parser = ee), + (this.decisionToDFA = J), + (this.predictionMode = l.LL), + (this._input = null), + (this._startIndex = 0), + (this._outerContext = null), + (this._dfa = null), + (this.mergeCache = null), + this + ); + } + ((Z.prototype = Object.create(c.prototype)).constructor = Z), + (Z.prototype.debug = !1), + (Z.prototype.debug_closure = !1), + (Z.prototype.debug_add = !1), + (Z.prototype.debug_list_atn_decisions = !1), + (Z.prototype.dfa_debug = !1), + (Z.prototype.retry_debug = !1), + (Z.prototype.reset = function () {}), + (Z.prototype.adaptivePredict = function (ee, $, J) { + (this.debug || this.debug_list_atn_decisions) && + console.log( + "adaptivePredict decision " + + $ + + " exec LA(1)==" + + this.getLookaheadName(ee) + + " line " + + ee.LT(1).line + + ":" + + ee.LT(1).column + ), + (this._input = ee), + (this._startIndex = ee.index), + (this._outerContext = J); + var ne = this.decisionToDFA[$]; + this._dfa = ne; + var ae = ee.mark(), + le = ee.index; + try { + var Oe; + if ( + null === + (Oe = ne.precedenceDfa + ? ne.getPrecedenceStartState(this.parser.getPrecedence()) + : ne.s0) + ) { + null === J && (J = g.EMPTY), + (this.debug || this.debug_list_atn_decisions) && + console.log( + "predictATN decision " + + ne.decision + + " exec LA(1)==" + + this.getLookaheadName(ee) + + ", outerContext=" + + J.toString(this.parser.ruleNames) + ); + var Ye = this.computeStartState(ne.atnStartState, g.EMPTY, !1); + ne.precedenceDfa + ? ((ne.s0.configs = Ye), + (Ye = this.applyPrecedenceFilter(Ye)), + (Oe = this.addDFAState(ne, new o(null, Ye))), + ne.setPrecedenceStartState(this.parser.getPrecedence(), Oe)) + : ((Oe = this.addDFAState(ne, new o(null, Ye))), (ne.s0 = Oe)); + } + var Je = this.execATN(ne, Oe, ee, le, J); + return ( + this.debug && + console.log( + "DFA after predictATN: " + + ne.toString(this.parser.literalNames) + ), + Je + ); + } finally { + (this._dfa = null), + (this.mergeCache = null), + ee.seek(le), + ee.release(ae); + } + }), + (Z.prototype.execATN = function (ee, $, J, ne, ae) { + (this.debug || this.debug_list_atn_decisions) && + console.log( + "execATN decision " + + ee.decision + + " exec LA(1)==" + + this.getLookaheadName(J) + + " line " + + J.LT(1).line + + ":" + + J.LT(1).column + ); + var le, + Oe = $; + this.debug && console.log("s0 = " + $); + for (var Le = J.LA(1); ; ) { + var Ye = this.getExistingTargetState(Oe, Le); + if ( + (null === Ye && (Ye = this.computeTargetState(ee, Oe, Le)), + Ye === c.ERROR) + ) { + var Je = this.noViableAlt(J, ae, Oe.configs, ne); + if ( + (J.seek(ne), + (le = this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule( + Oe.configs, + ae + )) !== s.INVALID_ALT_NUMBER) + ) + return le; + throw Je; + } + if (Ye.requiresFullContext && this.predictionMode !== l.SLL) { + var gt = null; + if (null !== Ye.predicates) { + this.debug && + console.log("DFA state has preds in DFA sim LL failover"); + var Ue = J.index; + if ( + (Ue !== ne && J.seek(ne), + 1 === + (gt = this.evalSemanticContext(Ye.predicates, ae, !0)) + .length) + ) + return ( + this.debug && console.log("Full LL avoided"), gt.minValue() + ); + Ue !== ne && J.seek(Ue); + } + this.dfa_debug && + console.log("ctx sensitive state " + ae + " in " + Ye); + var at = this.computeStartState(ee.atnStartState, ae, !0); + return ( + this.reportAttemptingFullContext( + ee, + gt, + Ye.configs, + ne, + J.index + ), + this.execATNWithFullContext(ee, Ye, at, J, ne, ae) + ); + } + if (Ye.isAcceptState) { + if (null === Ye.predicates) return Ye.prediction; + var ft = J.index; + J.seek(ne); + var vt = this.evalSemanticContext(Ye.predicates, ae, !0); + if (0 === vt.length) + throw this.noViableAlt(J, ae, Ye.configs, ne); + return ( + 1 === vt.length || + this.reportAmbiguity(ee, Ye, ne, ft, !1, vt, Ye.configs), + vt.minValue() + ); + } + (Oe = Ye), Le !== r.EOF && (J.consume(), (Le = J.LA(1))); + } + }), + (Z.prototype.getExistingTargetState = function (ee, $) { + var J = ee.edges; + return null === J ? null : J[$ + 1] || null; + }), + (Z.prototype.computeTargetState = function (ee, $, J) { + var ne = this.computeReachSet($.configs, J, !1); + if (null === ne) return this.addDFAEdge(ee, $, J, c.ERROR), c.ERROR; + var ae = new o(null, ne), + le = this.getUniqueAlt(ne); + if (this.debug) { + var Oe = l.getConflictingAltSubsets(ne); + console.log( + "SLL altSubSets=" + + n.arrayToString(Oe) + + ", previous=" + + $.configs + + ", configs=" + + ne + + ", predict=" + + le + + ", allSubsetsConflict=" + + l.allSubsetsConflict(Oe) + + ", conflictingAlts=" + + this.getConflictingAlts(ne) + ); + } + return ( + le !== s.INVALID_ALT_NUMBER + ? ((ae.isAcceptState = !0), + (ae.configs.uniqueAlt = le), + (ae.prediction = le)) + : l.hasSLLConflictTerminatingPrediction( + this.predictionMode, + ne + ) && + ((ae.configs.conflictingAlts = this.getConflictingAlts(ne)), + (ae.requiresFullContext = !0), + (ae.isAcceptState = !0), + (ae.prediction = ae.configs.conflictingAlts.minValue())), + ae.isAcceptState && + ae.configs.hasSemanticContext && + (this.predicateDFAState( + ae, + this.atn.getDecisionState(ee.decision) + ), + null !== ae.predicates && (ae.prediction = s.INVALID_ALT_NUMBER)), + this.addDFAEdge(ee, $, J, ae) + ); + }), + (Z.prototype.predicateDFAState = function (ee, $) { + var J = $.transitions.length, + ne = this.getConflictingAltsOrUniqueAlt(ee.configs), + ae = this.getPredsForAmbigAlts(ne, ee.configs, J); + null !== ae + ? ((ee.predicates = this.getPredicatePredictions(ne, ae)), + (ee.prediction = s.INVALID_ALT_NUMBER)) + : (ee.prediction = ne.minValue()); + }), + (Z.prototype.execATNWithFullContext = function (ee, $, J, ne, ae, le) { + (this.debug || this.debug_list_atn_decisions) && + console.log("execATNWithFullContext " + J); + var Le = !1, + Ye = null, + Je = J; + ne.seek(ae); + for (var gt = ne.LA(1), Ue = -1; ; ) { + if (null === (Ye = this.computeReachSet(Je, gt, !0))) { + var tt = this.noViableAlt(ne, le, Je, ae); + ne.seek(ae); + var at = this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule( + Je, + le + ); + if (at !== s.INVALID_ALT_NUMBER) return at; + throw tt; + } + var ft = l.getConflictingAltSubsets(Ye); + if ( + (this.debug && + console.log( + "LL altSubSets=" + + ft + + ", predict=" + + l.getUniqueAlt(ft) + + ", resolvesToJustOneViableAlt=" + + l.resolvesToJustOneViableAlt(ft) + ), + (Ye.uniqueAlt = this.getUniqueAlt(Ye)), + Ye.uniqueAlt !== s.INVALID_ALT_NUMBER) + ) { + Ue = Ye.uniqueAlt; + break; + } + if (this.predictionMode !== l.LL_EXACT_AMBIG_DETECTION) { + if ( + (Ue = l.resolvesToJustOneViableAlt(ft)) !== s.INVALID_ALT_NUMBER + ) + break; + } else if (l.allSubsetsConflict(ft) && l.allSubsetsEqual(ft)) { + (Le = !0), (Ue = l.getSingleViableAlt(ft)); + break; + } + (Je = Ye), gt !== r.EOF && (ne.consume(), (gt = ne.LA(1))); + } + return Ye.uniqueAlt !== s.INVALID_ALT_NUMBER + ? (this.reportContextSensitivity(ee, Ue, Ye, ae, ne.index), Ue) + : (this.reportAmbiguity(ee, $, ae, ne.index, Le, null, Ye), Ue); + }), + (Z.prototype.computeReachSet = function (ee, $, J) { + this.debug && + console.log("in computeReachSet, starting closure: " + ee), + null === this.mergeCache && (this.mergeCache = new m()); + for ( + var ne = new h(J), ae = null, le = 0; + le < ee.items.length; + le++ + ) { + var Oe = ee.items[le]; + if ( + (this.debug_add && + console.log("testing " + this.getTokenName($) + " at " + Oe), + Oe.state instanceof T) + ) + (J || $ === r.EOF) && + (null === ae && (ae = []), + ae.push(Oe), + this.debug_add && + console.log("added " + Oe + " to skippedStopStates")); + else + for (var Le = 0; Le < Oe.state.transitions.length; Le++) { + var Je = this.getReachableTarget(Oe.state.transitions[Le], $); + if (null !== Je) { + var gt = new u({ state: Je }, Oe); + ne.add(gt, this.mergeCache), + this.debug_add && + console.log("added " + gt + " to intermediate"); + } + } + } + var Ue = null; + if ( + (null === ae && + $ !== r.EOF && + (1 === ne.items.length || + this.getUniqueAlt(ne) !== s.INVALID_ALT_NUMBER) && + (Ue = ne), + null === Ue) + ) { + Ue = new h(J); + for ( + var tt = new f(), at = $ === r.EOF, ft = 0; + ft < ne.items.length; + ft++ + ) + this.closure(ne.items[ft], Ue, tt, !1, J, at); + } + if ( + ($ === r.EOF && + (Ue = this.removeAllConfigsNotInRuleStopState(Ue, Ue === ne)), + !(null === ae || (J && l.hasConfigInRuleStopState(Ue)))) + ) + for (var vt = 0; vt < ae.length; vt++) + Ue.add(ae[vt], this.mergeCache); + return 0 === Ue.items.length ? null : Ue; + }), + (Z.prototype.removeAllConfigsNotInRuleStopState = function (ee, $) { + if (l.allConfigsInRuleStopStates(ee)) return ee; + for (var J = new h(ee.fullCtx), ne = 0; ne < ee.items.length; ne++) { + var ae = ee.items[ne]; + ae.state instanceof T + ? J.add(ae, this.mergeCache) + : $ && + ae.state.epsilonOnlyTransitions && + this.atn.nextTokens(ae.state).contains(r.EPSILON) && + J.add( + new u( + { state: this.atn.ruleToStopState[ae.state.ruleIndex] }, + ae + ), + this.mergeCache + ); + } + return J; + }), + (Z.prototype.computeStartState = function (ee, $, J) { + for ( + var ne = Y(this.atn, $), ae = new h(J), le = 0; + le < ee.transitions.length; + le++ + ) { + var Le = new u( + { state: ee.transitions[le].target, alt: le + 1, context: ne }, + null + ), + Ye = new f(); + this.closure(Le, ae, Ye, !0, J, !1); + } + return ae; + }), + (Z.prototype.applyPrecedenceFilter = function (ee) { + for ( + var $, J = [], ne = new h(ee.fullCtx), ae = 0; + ae < ee.items.length; + ae++ + ) + if (1 === ($ = ee.items[ae]).alt) { + var le = $.semanticContext.evalPrecedence( + this.parser, + this._outerContext + ); + null !== le && + ((J[$.state.stateNumber] = $.context), + ne.add( + le !== $.semanticContext + ? new u({ semanticContext: le }, $) + : $, + this.mergeCache + )); + } + for (ae = 0; ae < ee.items.length; ae++) + if (1 !== ($ = ee.items[ae]).alt) { + if (!$.precedenceFilterSuppressed) { + var Oe = J[$.state.stateNumber] || null; + if (null !== Oe && Oe.equals($.context)) continue; + } + ne.add($, this.mergeCache); + } + return ne; + }), + (Z.prototype.getReachableTarget = function (ee, $) { + return ee.matches($, 0, this.atn.maxTokenType) ? ee.target : null; + }), + (Z.prototype.getPredsForAmbigAlts = function (ee, $, J) { + for (var ne = [], ae = 0; ae < $.items.length; ae++) { + var le = $.items[ae]; + ee.contains(le.alt) && + (ne[le.alt] = y.orContext( + ne[le.alt] || null, + le.semanticContext + )); + } + var Oe = 0; + for (ae = 1; ae < J + 1; ae++) { + var Le = ne[ae] || null; + null === Le ? (ne[ae] = y.NONE) : Le !== y.NONE && (Oe += 1); + } + return ( + 0 === Oe && (ne = null), + this.debug && + console.log("getPredsForAmbigAlts result " + n.arrayToString(ne)), + ne + ); + }), + (Z.prototype.getPredicatePredictions = function (ee, $) { + for (var J = [], ne = !1, ae = 1; ae < $.length; ae++) { + var le = $[ae]; + null !== ee && ee.contains(ae) && J.push(new i(le, ae)), + le !== y.NONE && (ne = !0); + } + return ne ? J : null; + }), + (Z.prototype.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule = function ( + ee, + $ + ) { + var J = this.splitAccordingToSemanticValidity(ee, $), + ae = J[1], + le = this.getAltThatFinishedDecisionEntryRule(J[0]); + return le !== s.INVALID_ALT_NUMBER || + (ae.items.length > 0 && + (le = this.getAltThatFinishedDecisionEntryRule(ae)) !== + s.INVALID_ALT_NUMBER) + ? le + : s.INVALID_ALT_NUMBER; + }), + (Z.prototype.getAltThatFinishedDecisionEntryRule = function (ee) { + for (var $ = [], J = 0; J < ee.items.length; J++) { + var ne = ee.items[J]; + (ne.reachesIntoOuterContext > 0 || + (ne.state instanceof T && ne.context.hasEmptyPath())) && + $.indexOf(ne.alt) < 0 && + $.push(ne.alt); + } + return 0 === $.length + ? s.INVALID_ALT_NUMBER + : Math.min.apply(null, $); + }), + (Z.prototype.splitAccordingToSemanticValidity = function (ee, $) { + for ( + var J = new h(ee.fullCtx), ne = new h(ee.fullCtx), ae = 0; + ae < ee.items.length; + ae++ + ) { + var le = ee.items[ae]; + le.semanticContext !== y.NONE + ? le.semanticContext.evaluate(this.parser, $) + ? J.add(le) + : ne.add(le) + : J.add(le); + } + return [J, ne]; + }), + (Z.prototype.evalSemanticContext = function (ee, $, J) { + for (var ne = new _(), ae = 0; ae < ee.length; ae++) { + var le = ee[ae]; + if (le.pred !== y.NONE) { + var Oe = le.pred.evaluate(this.parser, $); + if ( + ((this.debug || this.dfa_debug) && + console.log("eval pred " + le + "=" + Oe), + Oe && + ((this.debug || this.dfa_debug) && + console.log("PREDICT " + le.alt), + ne.add(le.alt), + !J)) + ) + break; + } else if ((ne.add(le.alt), !J)) break; + } + return ne; + }), + (Z.prototype.closure = function (ee, $, J, ne, ae, le) { + this.closureCheckingStopState(ee, $, J, ne, ae, 0, le); + }), + (Z.prototype.closureCheckingStopState = function ( + ee, + $, + J, + ne, + ae, + le, + Oe + ) { + if ( + (this.debug || this.debug_closure) && + (console.log("closure(" + ee.toString(this.parser, !0) + ")"), + ee.reachesIntoOuterContext > 50) + ) + throw "problem"; + if (ee.state instanceof T) { + if (!ee.context.isEmpty()) { + for (var Le = 0; Le < ee.context.length; Le++) + if (ee.context.getReturnState(Le) !== O.EMPTY_RETURN_STATE) { + var Ye = this.atn.states[ee.context.getReturnState(Le)], + Je = ee.context.getParent(Le), + Ue = new u( + { + state: Ye, + alt: ee.alt, + context: Je, + semanticContext: ee.semanticContext, + }, + null + ); + (Ue.reachesIntoOuterContext = ee.reachesIntoOuterContext), + this.closureCheckingStopState(Ue, $, J, ne, ae, le - 1, Oe); + } else { + if (ae) { + $.add( + new u({ state: ee.state, context: O.EMPTY }, ee), + this.mergeCache + ); + continue; + } + this.debug && + console.log( + "FALLING off rule " + this.getRuleName(ee.state.ruleIndex) + ), + this.closure_(ee, $, J, ne, ae, le, Oe); + } + return; + } + if (ae) return void $.add(ee, this.mergeCache); + this.debug && + console.log( + "FALLING off rule " + this.getRuleName(ee.state.ruleIndex) + ); + } + this.closure_(ee, $, J, ne, ae, le, Oe); + }), + (Z.prototype.closure_ = function (ee, $, J, ne, ae, le, Oe) { + var Le = ee.state; + Le.epsilonOnlyTransitions || $.add(ee, this.mergeCache); + for (var Ye = 0; Ye < Le.transitions.length; Ye++) + if (0 != Ye || !this.canDropLoopEntryEdgeInLeftRecursiveRule(ee)) { + var Je = Le.transitions[Ye], + gt = ne && !(Je instanceof L), + Ue = this.getEpsilonTarget(ee, Je, gt, 0 === le, ae, Oe); + if (null !== Ue) { + var tt = le; + if (ee.state instanceof T) { + if ( + (null !== this._dfa && + this._dfa.precedenceDfa && + Je.outermostPrecedenceReturn === + this._dfa.atnStartState.ruleIndex && + (Ue.precedenceFilterSuppressed = !0), + (Ue.reachesIntoOuterContext += 1), + J.add(Ue) !== Ue) + ) + continue; + ($.dipsIntoOuterContext = !0), + (tt -= 1), + this.debug && console.log("dips into outer ctx: " + Ue); + } else { + if (!Je.isEpsilon && J.add(Ue) !== Ue) continue; + Je instanceof C && tt >= 0 && (tt += 1); + } + this.closureCheckingStopState(Ue, $, J, gt, ae, tt, Oe); + } + } + }), + (Z.prototype.canDropLoopEntryEdgeInLeftRecursiveRule = function (ee) { + var $ = ee.state; + if ( + $.stateType != d.STAR_LOOP_ENTRY || + $.stateType != d.STAR_LOOP_ENTRY || + !$.isPrecedenceDecision || + ee.context.isEmpty() || + ee.context.hasEmptyPath() + ) + return !1; + for (var J = ee.context.length, ne = 0; ne < J; ne++) + if ( + (ae = this.atn.states[ee.context.getReturnState(ne)]).ruleIndex != + $.ruleIndex + ) + return !1; + var Le = this.atn.states[ + $.transitions[0].target.endState.stateNumber + ]; + for (ne = 0; ne < J; ne++) { + var ae, + Ye = ee.context.getReturnState(ne); + if ( + 1 != (ae = this.atn.states[Ye]).transitions.length || + !ae.transitions[0].isEpsilon + ) + return !1; + var Je = ae.transitions[0].target; + if ( + !( + (ae.stateType == d.BLOCK_END && Je == $) || + ae == Le || + Je == Le || + (Je.stateType == d.BLOCK_END && + 1 == Je.transitions.length && + Je.transitions[0].isEpsilon && + Je.transitions[0].target == $) + ) + ) + return !1; + } + return !0; + }), + (Z.prototype.getRuleName = function (ee) { + return null !== this.parser && ee >= 0 + ? this.parser.ruleNames[ee] + : ""; + }), + (Z.prototype.getEpsilonTarget = function (ee, $, J, ne, ae, le) { + switch ($.serializationType) { + case S.RULE: + return this.ruleTransition(ee, $); + case S.PRECEDENCE: + return this.precedenceTransition(ee, $, J, ne, ae); + case S.PREDICATE: + return this.predTransition(ee, $, J, ne, ae); + case S.ACTION: + return this.actionTransition(ee, $); + case S.EPSILON: + return new u({ state: $.target }, ee); + case S.ATOM: + case S.RANGE: + case S.SET: + return le && $.matches(r.EOF, 0, 1) + ? new u({ state: $.target }, ee) + : null; + default: + return null; + } + }), + (Z.prototype.actionTransition = function (ee, $) { + return ( + this.debug && + console.log( + "ACTION edge " + + $.ruleIndex + + ":" + + (-1 == $.actionIndex ? 65535 : $.actionIndex) + ), + new u({ state: $.target }, ee) + ); + }), + (Z.prototype.precedenceTransition = function (ee, $, J, ne, ae) { + this.debug && + (console.log( + "PRED (collectPredicates=" + + J + + ") " + + $.precedence + + ">=_p, ctx dependent=true" + ), + null !== this.parser && + console.log( + "context surrounding pred is " + + n.arrayToString(this.parser.getRuleInvocationStack()) + )); + var le = null; + if (J && ne) + if (ae) { + var Oe = this._input.index; + this._input.seek(this._startIndex); + var Le = $.getPredicate().evaluate( + this.parser, + this._outerContext + ); + this._input.seek(Oe), Le && (le = new u({ state: $.target }, ee)); + } else { + var Ye = y.andContext(ee.semanticContext, $.getPredicate()); + le = new u({ state: $.target, semanticContext: Ye }, ee); + } + else le = new u({ state: $.target }, ee); + return ( + this.debug && console.log("config from pred transition=" + le), le + ); + }), + (Z.prototype.predTransition = function (ee, $, J, ne, ae) { + this.debug && + (console.log( + "PRED (collectPredicates=" + + J + + ") " + + $.ruleIndex + + ":" + + $.predIndex + + ", ctx dependent=" + + $.isCtxDependent + ), + null !== this.parser && + console.log( + "context surrounding pred is " + + n.arrayToString(this.parser.getRuleInvocationStack()) + )); + var le = null; + if (J && (($.isCtxDependent && ne) || !$.isCtxDependent)) + if (ae) { + var Oe = this._input.index; + this._input.seek(this._startIndex); + var Le = $.getPredicate().evaluate( + this.parser, + this._outerContext + ); + this._input.seek(Oe), Le && (le = new u({ state: $.target }, ee)); + } else { + var Ye = y.andContext(ee.semanticContext, $.getPredicate()); + le = new u({ state: $.target, semanticContext: Ye }, ee); + } + else le = new u({ state: $.target }, ee); + return ( + this.debug && console.log("config from pred transition=" + le), le + ); + }), + (Z.prototype.ruleTransition = function (ee, $) { + this.debug && + console.log( + "CALL rule " + + this.getRuleName($.target.ruleIndex) + + ", ctx=" + + ee.context + ); + var ne = ie.create(ee.context, $.followState.stateNumber); + return new u({ state: $.target, context: ne }, ee); + }), + (Z.prototype.getConflictingAlts = function (ee) { + var $ = l.getConflictingAltSubsets(ee); + return l.getAlts($); + }), + (Z.prototype.getConflictingAltsOrUniqueAlt = function (ee) { + var $ = null; + return ( + ee.uniqueAlt !== s.INVALID_ALT_NUMBER + ? ($ = new _()).add(ee.uniqueAlt) + : ($ = ee.conflictingAlts), + $ + ); + }), + (Z.prototype.getTokenName = function (ee) { + if (ee === r.EOF) return "EOF"; + if (null !== this.parser && null !== this.parser.literalNames) { + if ( + !( + ee >= this.parser.literalNames.length && + ee >= this.parser.symbolicNames.length + ) + ) + return ( + (this.parser.literalNames[ee] || + this.parser.symbolicNames[ee]) + + "<" + + ee + + ">" + ); + console.log( + ee + " ttype out of range: " + this.parser.literalNames + ), + console.log("" + this.parser.getInputStream().getTokens()); + } + return "" + ee; + }), + (Z.prototype.getLookaheadName = function (ee) { + return this.getTokenName(ee.LA(1)); + }), + (Z.prototype.dumpDeadEndConfigs = function (ee) { + console.log("dead end configs: "); + for (var $ = ee.getDeadEndConfigs(), J = 0; J < $.length; J++) { + var ne = $[J], + ae = "no edges"; + if (ne.state.transitions.length > 0) { + var le = ne.state.transitions[0]; + le instanceof AtomTransition + ? (ae = "Atom " + this.getTokenName(le.label)) + : le instanceof w && + (ae = (le instanceof I ? "~" : "") + "Set " + le.set); + } + console.error(ne.toString(this.parser, !0) + ":" + ae); + } + }), + (Z.prototype.noViableAlt = function (ee, $, J, ne) { + return new F(this.parser, ee, ee.get(ne), ee.LT(1), J, $); + }), + (Z.prototype.getUniqueAlt = function (ee) { + for (var $ = s.INVALID_ALT_NUMBER, J = 0; J < ee.items.length; J++) { + var ne = ee.items[J]; + if ($ === s.INVALID_ALT_NUMBER) $ = ne.alt; + else if (ne.alt !== $) return s.INVALID_ALT_NUMBER; + } + return $; + }), + (Z.prototype.addDFAEdge = function (ee, $, J, ne) { + return ( + this.debug && + console.log( + "EDGE " + $ + " -> " + ne + " upon " + this.getTokenName(J) + ), + null === ne + ? null + : ((ne = this.addDFAState(ee, ne)), + null === $ || + J < -1 || + J > this.atn.maxTokenType || + (null === $.edges && ($.edges = []), + ($.edges[J + 1] = ne), + this.debug && + console.log( + "DFA=\n" + + ee.toString( + null === this.parser + ? null + : this.parser.literalNames, + null === this.parser + ? null + : this.parser.symbolicNames + ) + )), + ne) + ); + }), + (Z.prototype.addDFAState = function (ee, $) { + if ($ == c.ERROR) return $; + var J = ee.states.get($); + return null !== J + ? J + : (($.stateNumber = ee.states.length), + $.configs.readOnly || + ($.configs.optimizeConfigs(this), $.configs.setReadonly(!0)), + ee.states.add($), + this.debug && console.log("adding new DFA state: " + $), + $); + }), + (Z.prototype.reportAttemptingFullContext = function (ee, $, J, ne, ae) { + if (this.debug || this.retry_debug) { + var le = new M(ne, ae + 1); + console.log( + "reportAttemptingFullContext decision=" + + ee.decision + + ":" + + J + + ", input=" + + this.parser.getTokenStream().getText(le) + ); + } + null !== this.parser && + this.parser + .getErrorListenerDispatch() + .reportAttemptingFullContext(this.parser, ee, ne, ae, $, J); + }), + (Z.prototype.reportContextSensitivity = function (ee, $, J, ne, ae) { + if (this.debug || this.retry_debug) { + var le = new M(ne, ae + 1); + console.log( + "reportContextSensitivity decision=" + + ee.decision + + ":" + + J + + ", input=" + + this.parser.getTokenStream().getText(le) + ); + } + null !== this.parser && + this.parser + .getErrorListenerDispatch() + .reportContextSensitivity(this.parser, ee, ne, ae, $, J); + }), + (Z.prototype.reportAmbiguity = function (ee, $, J, ne, ae, le, Oe) { + if (this.debug || this.retry_debug) { + var Le = new M(J, ne + 1); + console.log( + "reportAmbiguity " + + le + + ":" + + Oe + + ", input=" + + this.parser.getTokenStream().getText(Le) + ); + } + null !== this.parser && + this.parser + .getErrorListenerDispatch() + .reportAmbiguity(this.parser, ee, J, ne, ae, le, Oe); + }), + (j.ParserATNSimulator = Z); + }, + 636: (ye, j, p) => { + p(3126); + var f = p(3126).Map, + _ = p(3126).BitSet, + m = p(3126).AltDict, + s = p(4562).ATN, + d = p(7069).RuleStopState, + u = p(7578).B, + h = p(6980).m, + r = p(7884).dP, + i = (p(3126), p(3126).hashStuff); + function l() { + return this; + } + p(3126), + (l.SLL = 0), + (l.LL = 1), + (l.LL_EXACT_AMBIG_DETECTION = 2), + (l.hasSLLConflictTerminatingPrediction = function (g, b) { + if (l.allConfigsInRuleStopStates(b)) return !0; + if (g === l.SLL && b.hasSemanticContext) { + for (var y = new u(), x = 0; x < b.items.length; x++) { + var T = b.items[x]; + (T = new h({ semanticContext: r.NONE }, T)), y.add(T); + } + b = y; + } + var O = l.getConflictingAltSubsets(b); + return ( + l.hasConflictingAltSet(O) && !l.hasStateAssociatedWithOneAlt(b) + ); + }), + (l.hasConfigInRuleStopState = function (g) { + for (var b = 0; b < g.items.length; b++) + if (g.items[b].state instanceof d) return !0; + return !1; + }), + (l.allConfigsInRuleStopStates = function (g) { + for (var b = 0; b < g.items.length; b++) + if (!(g.items[b].state instanceof d)) return !1; + return !0; + }), + (l.resolvesToJustOneViableAlt = function (g) { + return l.getSingleViableAlt(g); + }), + (l.allSubsetsConflict = function (g) { + return !l.hasNonConflictingAltSet(g); + }), + (l.hasNonConflictingAltSet = function (g) { + for (var b = 0; b < g.length; b++) if (1 === g[b].length) return !0; + return !1; + }), + (l.hasConflictingAltSet = function (g) { + for (var b = 0; b < g.length; b++) if (g[b].length > 1) return !0; + return !1; + }), + (l.allSubsetsEqual = function (g) { + for (var b = null, y = 0; y < g.length; y++) { + var x = g[y]; + if (null === b) b = x; + else if (x !== b) return !1; + } + return !0; + }), + (l.getUniqueAlt = function (g) { + var b = l.getAlts(g); + return 1 === b.length ? b.minValue() : s.INVALID_ALT_NUMBER; + }), + (l.getAlts = function (g) { + var b = new _(); + return ( + g.map(function (y) { + b.or(y); + }), + b + ); + }), + (l.getConflictingAltSubsets = function (g) { + var b = new f(); + return ( + (b.hashFunction = function (y) { + i(y.state.stateNumber, y.context); + }), + (b.equalsFunction = function (y, x) { + return ( + y.state.stateNumber == x.state.stateNumber && + y.context.equals(x.context) + ); + }), + g.items.map(function (y) { + var x = b.get(y); + null === x && ((x = new _()), b.put(y, x)), x.add(y.alt); + }), + b.getValues() + ); + }), + (l.getStateToAltMap = function (g) { + var b = new m(); + return ( + g.items.map(function (y) { + var x = b.get(y.state); + null === x && ((x = new _()), b.put(y.state, x)), x.add(y.alt); + }), + b + ); + }), + (l.hasStateAssociatedWithOneAlt = function (g) { + for (var b = l.getStateToAltMap(g).values(), y = 0; y < b.length; y++) + if (1 === b[y].length) return !0; + return !1; + }), + (l.getSingleViableAlt = function (g) { + for (var b = null, y = 0; y < g.length; y++) { + var T = g[y].minValue(); + if (null === b) b = T; + else if (b !== T) return s.INVALID_ALT_NUMBER; + } + return b; + }), + (j.PredictionMode = l); + }, + 7884: (ye, j, p) => { + var n = p(3126).Set, + f = p(3126).Hash; + function _() { + return this; + } + function m(h, r, o) { + return ( + _.call(this), + (this.ruleIndex = void 0 === h ? -1 : h), + (this.predIndex = void 0 === r ? -1 : r), + (this.isCtxDependent = void 0 !== o && o), + this + ); + } + function s(h) { + _.call(this), (this.precedence = void 0 === h ? 0 : h); + } + function d(h, r) { + _.call(this); + var o = new n(); + h instanceof d + ? h.opnds.map(function (l) { + o.add(l); + }) + : o.add(h), + r instanceof d + ? r.opnds.map(function (l) { + o.add(l); + }) + : o.add(r); + var i = s.filterPrecedencePredicates(o); + if (i.length > 0) { + var c = null; + i.map(function (l) { + (null === c || l.precedence < c.precedence) && (c = l); + }), + o.add(c); + } + return (this.opnds = o.values()), this; + } + function u(h, r) { + _.call(this); + var o = new n(); + h instanceof u + ? h.opnds.map(function (g) { + o.add(g); + }) + : o.add(h), + r instanceof u + ? r.opnds.map(function (g) { + o.add(g); + }) + : o.add(r); + var i = s.filterPrecedencePredicates(o); + if (i.length > 0) { + var c = i.sort(function (g, b) { + return g.compareTo(b); + }); + o.add(c[c.length - 1]); + } + return (this.opnds = o.values()), this; + } + (_.prototype.hashCode = function () { + var h = new f(); + return this.updateHashCode(h), h.finish(); + }), + (_.prototype.evaluate = function (h, r) {}), + (_.prototype.evalPrecedence = function (h, r) { + return this; + }), + (_.andContext = function (h, r) { + if (null === h || h === _.NONE) return r; + if (null === r || r === _.NONE) return h; + var o = new d(h, r); + return 1 === o.opnds.length ? o.opnds[0] : o; + }), + (_.orContext = function (h, r) { + if (null === h) return r; + if (null === r) return h; + if (h === _.NONE || r === _.NONE) return _.NONE; + var o = new u(h, r); + return 1 === o.opnds.length ? o.opnds[0] : o; + }), + ((m.prototype = Object.create(_.prototype)).constructor = m), + (_.NONE = new m()), + (m.prototype.evaluate = function (h, r) { + return h.sempred( + this.isCtxDependent ? r : null, + this.ruleIndex, + this.predIndex + ); + }), + (m.prototype.updateHashCode = function (h) { + h.update(this.ruleIndex, this.predIndex, this.isCtxDependent); + }), + (m.prototype.equals = function (h) { + return ( + this === h || + (h instanceof m && + this.ruleIndex === h.ruleIndex && + this.predIndex === h.predIndex && + this.isCtxDependent === h.isCtxDependent) + ); + }), + (m.prototype.toString = function () { + return "{" + this.ruleIndex + ":" + this.predIndex + "}?"; + }), + ((s.prototype = Object.create(_.prototype)).constructor = s), + (s.prototype.evaluate = function (h, r) { + return h.precpred(r, this.precedence); + }), + (s.prototype.evalPrecedence = function (h, r) { + return h.precpred(r, this.precedence) ? _.NONE : null; + }), + (s.prototype.compareTo = function (h) { + return this.precedence - h.precedence; + }), + (s.prototype.updateHashCode = function (h) { + h.update(31); + }), + (s.prototype.equals = function (h) { + return ( + this === h || (h instanceof s && this.precedence === h.precedence) + ); + }), + (s.prototype.toString = function () { + return "{" + this.precedence + ">=prec}?"; + }), + (s.filterPrecedencePredicates = function (h) { + var r = []; + return ( + h.values().map(function (o) { + o instanceof s && r.push(o); + }), + r + ); + }), + ((d.prototype = Object.create(_.prototype)).constructor = d), + (d.prototype.equals = function (h) { + return this === h || (h instanceof d && this.opnds === h.opnds); + }), + (d.prototype.updateHashCode = function (h) { + h.update(this.opnds, "AND"); + }), + (d.prototype.evaluate = function (h, r) { + for (var o = 0; o < this.opnds.length; o++) + if (!this.opnds[o].evaluate(h, r)) return !1; + return !0; + }), + (d.prototype.evalPrecedence = function (h, r) { + for (var o = !1, i = [], c = 0; c < this.opnds.length; c++) { + var l = this.opnds[c], + g = l.evalPrecedence(h, r); + if (((o |= g !== l), null === g)) return null; + g !== _.NONE && i.push(g); + } + if (!o) return this; + if (0 === i.length) return _.NONE; + var b = null; + return ( + i.map(function (y) { + b = null === b ? y : _.andContext(b, y); + }), + b + ); + }), + (d.prototype.toString = function () { + var h = ""; + return ( + this.opnds.map(function (r) { + h += "&& " + r.toString(); + }), + h.length > 3 ? h.slice(3) : h + ); + }), + ((u.prototype = Object.create(_.prototype)).constructor = u), + (u.prototype.constructor = function (h) { + return this === h || (h instanceof u && this.opnds === h.opnds); + }), + (u.prototype.updateHashCode = function (h) { + h.update(this.opnds, "OR"); + }), + (u.prototype.evaluate = function (h, r) { + for (var o = 0; o < this.opnds.length; o++) + if (this.opnds[o].evaluate(h, r)) return !0; + return !1; + }), + (u.prototype.evalPrecedence = function (h, r) { + for (var o = !1, i = [], c = 0; c < this.opnds.length; c++) { + var l = this.opnds[c], + g = l.evalPrecedence(h, r); + if (((o |= g !== l), g === _.NONE)) return _.NONE; + null !== g && i.push(g); + } + if (!o) return this; + if (0 === i.length) return null; + return ( + i.map(function (y) { + return y; + }), + null + ); + }), + (u.prototype.toString = function () { + var h = ""; + return ( + this.opnds.map(function (r) { + h += "|| " + r.toString(); + }), + h.length > 3 ? h.slice(3) : h + ); + }), + (j.dP = _), + (j.u5 = s), + (j.$G = m); + }, + 8792: (ye, j, p) => { + var n = p(9696).Token, + _ = (p(3491), p(3491).V), + m = p(7884).$G, + s = p(7884).u5; + function d(T) { + if (null == T) throw "target cannot be null."; + return ( + (this.target = T), (this.isEpsilon = !1), (this.label = null), this + ); + } + function u(T, O) { + return ( + d.call(this, T), + (this.label_ = O), + (this.label = this.makeLabel()), + (this.serializationType = d.ATOM), + this + ); + } + function h(T, O, M, A) { + return ( + d.call(this, T), + (this.ruleIndex = O), + (this.precedence = M), + (this.followState = A), + (this.serializationType = d.RULE), + (this.isEpsilon = !0), + this + ); + } + function r(T, O) { + return ( + d.call(this, T), + (this.serializationType = d.EPSILON), + (this.isEpsilon = !0), + (this.outermostPrecedenceReturn = O), + this + ); + } + function o(T, O, M) { + return ( + d.call(this, T), + (this.serializationType = d.RANGE), + (this.start = O), + (this.stop = M), + (this.label = this.makeLabel()), + this + ); + } + function i(T) { + return d.call(this, T), this; + } + function c(T, O, M, A) { + return ( + i.call(this, T), + (this.serializationType = d.PREDICATE), + (this.ruleIndex = O), + (this.predIndex = M), + (this.isCtxDependent = A), + (this.isEpsilon = !0), + this + ); + } + function l(T, O, M, A) { + return ( + d.call(this, T), + (this.serializationType = d.ACTION), + (this.ruleIndex = O), + (this.actionIndex = void 0 === M ? -1 : M), + (this.isCtxDependent = void 0 !== A && A), + (this.isEpsilon = !0), + this + ); + } + function g(T, O) { + return ( + d.call(this, T), + (this.serializationType = d.SET), + null != O + ? (this.label = O) + : ((this.label = new _()), this.label.addOne(n.INVALID_TYPE)), + this + ); + } + function b(T, O) { + return g.call(this, T, O), (this.serializationType = d.NOT_SET), this; + } + function y(T) { + return d.call(this, T), (this.serializationType = d.WILDCARD), this; + } + function x(T, O) { + return ( + i.call(this, T), + (this.serializationType = d.PRECEDENCE), + (this.precedence = O), + (this.isEpsilon = !0), + this + ); + } + (d.EPSILON = 1), + (d.RANGE = 2), + (d.RULE = 3), + (d.PREDICATE = 4), + (d.ATOM = 5), + (d.ACTION = 6), + (d.SET = 7), + (d.NOT_SET = 8), + (d.WILDCARD = 9), + (d.PRECEDENCE = 10), + (d.serializationNames = [ + "INVALID", + "EPSILON", + "RANGE", + "RULE", + "PREDICATE", + "ATOM", + "ACTION", + "SET", + "NOT_SET", + "WILDCARD", + "PRECEDENCE", + ]), + (d.serializationTypes = { + EpsilonTransition: d.EPSILON, + RangeTransition: d.RANGE, + RuleTransition: d.RULE, + PredicateTransition: d.PREDICATE, + AtomTransition: d.ATOM, + ActionTransition: d.ACTION, + SetTransition: d.SET, + NotSetTransition: d.NOT_SET, + WildcardTransition: d.WILDCARD, + PrecedencePredicateTransition: d.PRECEDENCE, + }), + ((u.prototype = Object.create(d.prototype)).constructor = u), + (u.prototype.makeLabel = function () { + var T = new _(); + return T.addOne(this.label_), T; + }), + (u.prototype.matches = function (T, O, M) { + return this.label_ === T; + }), + (u.prototype.toString = function () { + return this.label_; + }), + ((h.prototype = Object.create(d.prototype)).constructor = h), + (h.prototype.matches = function (T, O, M) { + return !1; + }), + ((r.prototype = Object.create(d.prototype)).constructor = r), + (r.prototype.matches = function (T, O, M) { + return !1; + }), + (r.prototype.toString = function () { + return "epsilon"; + }), + ((o.prototype = Object.create(d.prototype)).constructor = o), + (o.prototype.makeLabel = function () { + var T = new _(); + return T.addRange(this.start, this.stop), T; + }), + (o.prototype.matches = function (T, O, M) { + return T >= this.start && T <= this.stop; + }), + (o.prototype.toString = function () { + return ( + "'" + + String.fromCharCode(this.start) + + "'..'" + + String.fromCharCode(this.stop) + + "'" + ); + }), + ((i.prototype = Object.create(d.prototype)).constructor = i), + ((c.prototype = Object.create(i.prototype)).constructor = c), + (c.prototype.matches = function (T, O, M) { + return !1; + }), + (c.prototype.getPredicate = function () { + return new m(this.ruleIndex, this.predIndex, this.isCtxDependent); + }), + (c.prototype.toString = function () { + return "pred_" + this.ruleIndex + ":" + this.predIndex; + }), + ((l.prototype = Object.create(d.prototype)).constructor = l), + (l.prototype.matches = function (T, O, M) { + return !1; + }), + (l.prototype.toString = function () { + return "action_" + this.ruleIndex + ":" + this.actionIndex; + }), + ((g.prototype = Object.create(d.prototype)).constructor = g), + (g.prototype.matches = function (T, O, M) { + return this.label.contains(T); + }), + (g.prototype.toString = function () { + return this.label.toString(); + }), + ((b.prototype = Object.create(g.prototype)).constructor = b), + (b.prototype.matches = function (T, O, M) { + return T >= O && T <= M && !g.prototype.matches.call(this, T, O, M); + }), + (b.prototype.toString = function () { + return "~" + g.prototype.toString.call(this); + }), + ((y.prototype = Object.create(d.prototype)).constructor = y), + (y.prototype.matches = function (T, O, M) { + return T >= O && T <= M; + }), + (y.prototype.toString = function () { + return "."; + }), + ((x.prototype = Object.create(i.prototype)).constructor = x), + (x.prototype.matches = function (T, O, M) { + return !1; + }), + (x.prototype.getPredicate = function () { + return new s(this.precedence); + }), + (x.prototype.toString = function () { + return this.precedence + " >= _p"; + }), + (j.Transition = d), + (j.AtomTransition = u), + (j.SetTransition = g), + (j.NotSetTransition = b), + (j.RuleTransition = h), + (j.ActionTransition = l), + (j.EpsilonTransition = r), + (j.RangeTransition = o), + (j.WildcardTransition = y), + (j.PredicateTransition = c), + (j.PrecedencePredicateTransition = x), + (j.AbstractPredicateTransition = i); + }, + 5988: (ye, j, p) => { + (j.ATN = p(4562).ATN), + (j.ATNDeserializer = p(9535).ATNDeserializer), + (j.LexerATNSimulator = p(3305).LexerATNSimulator), + (j.ParserATNSimulator = p(1170).ParserATNSimulator), + (j.PredictionMode = p(636).PredictionMode); + }, + 2038: (ye, j, p) => { + var n = p(3126).Set, + f = p(9665).B, + _ = p(7069).StarLoopEntryState, + m = p(7578).B, + s = p(3211).DFASerializer, + d = p(3211).LexerDFASerializer; + function u(h, r) { + if ( + (void 0 === r && (r = 0), + (this.atnStartState = h), + (this.decision = r), + (this._states = new n()), + (this.s0 = null), + (this.precedenceDfa = !1), + h instanceof _ && h.isPrecedenceDecision) + ) { + this.precedenceDfa = !0; + var o = new f(null, new m()); + (o.edges = []), + (o.isAcceptState = !1), + (o.requiresFullContext = !1), + (this.s0 = o); + } + return this; + } + (u.prototype.getPrecedenceStartState = function (h) { + if (!this.precedenceDfa) + throw "Only precedence DFAs may contain a precedence start state."; + return h < 0 || h >= this.s0.edges.length + ? null + : this.s0.edges[h] || null; + }), + (u.prototype.setPrecedenceStartState = function (h, r) { + if (!this.precedenceDfa) + throw "Only precedence DFAs may contain a precedence start state."; + h < 0 || (this.s0.edges[h] = r); + }), + (u.prototype.setPrecedenceDfa = function (h) { + if (this.precedenceDfa !== h) { + if (((this._states = new DFAStatesSet()), h)) { + var r = new f(null, new m()); + (r.edges = []), + (r.isAcceptState = !1), + (r.requiresFullContext = !1), + (this.s0 = r); + } else this.s0 = null; + this.precedenceDfa = h; + } + }), + Object.defineProperty(u.prototype, "states", { + get: function () { + return this._states; + }, + }), + (u.prototype.sortedStates = function () { + return this._states.values().sort(function (r, o) { + return r.stateNumber - o.stateNumber; + }); + }), + (u.prototype.toString = function (h, r) { + return null === this.s0 + ? "" + : new s(this, (h = h || null), (r = r || null)).toString(); + }), + (u.prototype.toLexerString = function () { + return null === this.s0 ? "" : new d(this).toString(); + }), + (j.DFA = u); + }, + 3211: (ye, j) => { + function p(f, _, m) { + return ( + (this.dfa = f), + (this.literalNames = _ || []), + (this.symbolicNames = m || []), + this + ); + } + function n(f) { + return p.call(this, f, null), this; + } + (p.prototype.toString = function () { + if (null === this.dfa.s0) return null; + for ( + var f = "", _ = this.dfa.sortedStates(), m = 0; + m < _.length; + m++ + ) { + var s = _[m]; + if (null !== s.edges) + for (var d = s.edges.length, u = 0; u < d; u++) { + var h = s.edges[u] || null; + null !== h && + 2147483647 !== h.stateNumber && + (f = (f = (f = (f = (f = (f = f.concat( + this.getStateString(s) + )).concat("-")).concat(this.getEdgeLabel(u))).concat( + "->" + )).concat(this.getStateString(h))).concat("\n")); + } + } + return 0 === f.length ? null : f; + }), + (p.prototype.getEdgeLabel = function (f) { + return 0 === f + ? "EOF" + : null !== this.literalNames || null !== this.symbolicNames + ? this.literalNames[f - 1] || this.symbolicNames[f - 1] + : String.fromCharCode(f - 1); + }), + (p.prototype.getStateString = function (f) { + var _ = + (f.isAcceptState ? ":" : "") + + "s" + + f.stateNumber + + (f.requiresFullContext ? "^" : ""); + return f.isAcceptState + ? null !== f.predicates + ? _ + "=>" + f.predicates.toString() + : _ + "=>" + f.prediction.toString() + : _; + }), + ((n.prototype = Object.create(p.prototype)).constructor = n), + (n.prototype.getEdgeLabel = function (f) { + return "'" + String.fromCharCode(f) + "'"; + }), + (j.DFASerializer = p), + (j.LexerDFASerializer = n); + }, + 9665: (ye, j, p) => { + var n = p(7578).B, + f = p(3126), + _ = f.Hash, + m = f.Set; + function s(u, h) { + return (this.alt = h), (this.pred = u), this; + } + function d(u, h) { + return ( + null === u && (u = -1), + null === h && (h = new n()), + (this.stateNumber = u), + (this.configs = h), + (this.edges = null), + (this.isAcceptState = !1), + (this.prediction = 0), + (this.lexerActionExecutor = null), + (this.requiresFullContext = !1), + (this.predicates = null), + this + ); + } + (s.prototype.toString = function () { + return "(" + this.pred + ", " + this.alt + ")"; + }), + (d.prototype.getAltSet = function () { + var u = new m(); + if (null !== this.configs) + for (var h = 0; h < this.configs.length; h++) + u.add(this.configs[h].alt); + return 0 === u.length ? null : u; + }), + (d.prototype.equals = function (u) { + return ( + this === u || (u instanceof d && this.configs.equals(u.configs)) + ); + }), + (d.prototype.toString = function () { + var u = this.stateNumber + ":" + this.configs; + return ( + this.isAcceptState && + ((u += "=>"), + (u += + null !== this.predicates ? this.predicates : this.prediction)), + u + ); + }), + (d.prototype.hashCode = function () { + var u = new _(); + return ( + u.update(this.configs), + this.isAcceptState && + u.update( + null !== this.predicates ? this.predicates : this.prediction + ), + u.finish() + ); + }), + (j.B = d), + (j.PredPrediction = s); + }, + 6630: (ye, j, p) => { + (j.DFA = p(2038).DFA), + (j.DFASerializer = p(3211).DFASerializer), + (j.LexerDFASerializer = p(3211).LexerDFASerializer), + (j.PredPrediction = p(9665).PredPrediction); + }, + 379: (ye, j, p) => { + var n = p(3126).BitSet, + f = p(5490).ErrorListener, + _ = p(3491).Interval; + function m(s) { + return f.call(this), (this.exactOnly = s = s || !0), this; + } + ((m.prototype = Object.create(f.prototype)).constructor = m), + (m.prototype.reportAmbiguity = function (s, d, u, h, r, o, i) { + if (!this.exactOnly || r) { + var c = + "reportAmbiguity d=" + + this.getDecisionDescription(s, d) + + ": ambigAlts=" + + this.getConflictingAlts(o, i) + + ", input='" + + s.getTokenStream().getText(new _(u, h)) + + "'"; + s.notifyErrorListeners(c); + } + }), + (m.prototype.reportAttemptingFullContext = function (s, d, u, h, r, o) { + var i = + "reportAttemptingFullContext d=" + + this.getDecisionDescription(s, d) + + ", input='" + + s.getTokenStream().getText(new _(u, h)) + + "'"; + s.notifyErrorListeners(i); + }), + (m.prototype.reportContextSensitivity = function (s, d, u, h, r, o) { + var i = + "reportContextSensitivity d=" + + this.getDecisionDescription(s, d) + + ", input='" + + s.getTokenStream().getText(new _(u, h)) + + "'"; + s.notifyErrorListeners(i); + }), + (m.prototype.getDecisionDescription = function (s, d) { + var u = d.decision, + h = d.atnStartState.ruleIndex, + r = s.ruleNames; + if (h < 0 || h >= r.length) return "" + u; + var o = r[h] || null; + return null === o || 0 === o.length ? "" + u : u + " (" + o + ")"; + }), + (m.prototype.getConflictingAlts = function (s, d) { + if (null !== s) return s; + for (var u = new n(), h = 0; h < d.items.length; h++) + u.add(d.items[h].alt); + return "{" + u.values().join(", ") + "}"; + }), + (j.DiagnosticErrorListener = m); + }, + 5490: (ye, j) => { + function p() { + return this; + } + function n() { + return p.call(this), this; + } + function f(_) { + if ((p.call(this), null === _)) throw "delegates"; + return (this.delegates = _), this; + } + (p.prototype.syntaxError = function (_, m, s, d, u, h) {}), + (p.prototype.reportAmbiguity = function (_, m, s, d, u, h, r) {}), + (p.prototype.reportAttemptingFullContext = function ( + _, + m, + s, + d, + u, + h + ) {}), + (p.prototype.reportContextSensitivity = function (_, m, s, d, u, h) {}), + ((n.prototype = Object.create(p.prototype)).constructor = n), + (n.INSTANCE = new n()), + (n.prototype.syntaxError = function (_, m, s, d, u, h) { + console.error("line " + s + ":" + d + " " + u); + }), + ((f.prototype = Object.create(p.prototype)).constructor = f), + (f.prototype.syntaxError = function (_, m, s, d, u, h) { + this.delegates.map(function (r) { + r.syntaxError(_, m, s, d, u, h); + }); + }), + (f.prototype.reportAmbiguity = function (_, m, s, d, u, h, r) { + this.delegates.map(function (o) { + o.reportAmbiguity(_, m, s, d, u, h, r); + }); + }), + (f.prototype.reportAttemptingFullContext = function (_, m, s, d, u, h) { + this.delegates.map(function (r) { + r.reportAttemptingFullContext(_, m, s, d, u, h); + }); + }), + (f.prototype.reportContextSensitivity = function (_, m, s, d, u, h) { + this.delegates.map(function (r) { + r.reportContextSensitivity(_, m, s, d, u, h); + }); + }), + (j.ErrorListener = p), + (j.s = n), + (j.N = f); + }, + 6863: (ye, j, p) => { + var n = p(9696).Token, + f = p(9329), + _ = f.NoViableAltException, + m = f.InputMismatchException, + s = f.FailedPredicateException, + d = f.ParseCancellationException, + u = p(7069).ATNState, + h = p(3491).Interval, + r = p(3491).V; + function o() {} + function i() { + return ( + o.call(this), + (this.errorRecoveryMode = !1), + (this.lastErrorIndex = -1), + (this.lastErrorStates = null), + this + ); + } + function c() { + return i.call(this), this; + } + (o.prototype.reset = function (l) {}), + (o.prototype.recoverInline = function (l) {}), + (o.prototype.recover = function (l, g) {}), + (o.prototype.sync = function (l) {}), + (o.prototype.inErrorRecoveryMode = function (l) {}), + (o.prototype.reportError = function (l) {}), + ((i.prototype = Object.create(o.prototype)).constructor = i), + (i.prototype.reset = function (l) { + this.endErrorCondition(l); + }), + (i.prototype.beginErrorCondition = function (l) { + this.errorRecoveryMode = !0; + }), + (i.prototype.inErrorRecoveryMode = function (l) { + return this.errorRecoveryMode; + }), + (i.prototype.endErrorCondition = function (l) { + (this.errorRecoveryMode = !1), + (this.lastErrorStates = null), + (this.lastErrorIndex = -1); + }), + (i.prototype.reportMatch = function (l) { + this.endErrorCondition(l); + }), + (i.prototype.reportError = function (l, g) { + this.inErrorRecoveryMode(l) || + (this.beginErrorCondition(l), + g instanceof _ + ? this.reportNoViableAlternative(l, g) + : g instanceof m + ? this.reportInputMismatch(l, g) + : g instanceof s + ? this.reportFailedPredicate(l, g) + : (console.log( + "unknown recognition error type: " + g.constructor.name + ), + console.log(g.stack), + l.notifyErrorListeners( + g.getOffendingToken(), + g.getMessage(), + g + ))); + }), + (i.prototype.recover = function (l, g) { + this.lastErrorIndex === l.getInputStream().index && + null !== this.lastErrorStates && + this.lastErrorStates.indexOf(l.state) >= 0 && + l.consume(), + (this.lastErrorIndex = l._input.index), + null === this.lastErrorStates && (this.lastErrorStates = []), + this.lastErrorStates.push(l.state); + var b = this.getErrorRecoverySet(l); + this.consumeUntil(l, b); + }), + (i.prototype.sync = function (l) { + if (!this.inErrorRecoveryMode(l)) { + var g = l._interp.atn.states[l.state], + b = l.getTokenStream().LA(1), + y = l.atn.nextTokens(g); + if (!y.contains(n.EPSILON) && !y.contains(b)) + switch (g.stateType) { + case u.BLOCK_START: + case u.STAR_BLOCK_START: + case u.PLUS_BLOCK_START: + case u.STAR_LOOP_ENTRY: + if (null !== this.singleTokenDeletion(l)) return; + throw new m(l); + case u.PLUS_LOOP_BACK: + case u.STAR_LOOP_BACK: + this.reportUnwantedToken(l); + var x = new r(); + x.addSet(l.getExpectedTokens()); + var T = x.addSet(this.getErrorRecoverySet(l)); + this.consumeUntil(l, T); + } + } + }), + (i.prototype.reportNoViableAlternative = function (l, g) { + var y, + b = l.getTokenStream(); + y = + null !== b + ? g.startToken.type === n.EOF + ? "" + : b.getText( + new h(g.startToken.tokenIndex, g.offendingToken.tokenIndex) + ) + : ""; + var x = "no viable alternative at input " + this.escapeWSAndQuote(y); + l.notifyErrorListeners(x, g.offendingToken, g); + }), + (i.prototype.reportInputMismatch = function (l, g) { + var b = + "mismatched input " + + this.getTokenErrorDisplay(g.offendingToken) + + " expecting " + + g.getExpectedTokens().toString(l.literalNames, l.symbolicNames); + l.notifyErrorListeners(b, g.offendingToken, g); + }), + (i.prototype.reportFailedPredicate = function (l, g) { + l.notifyErrorListeners( + "rule " + l.ruleNames[l._ctx.ruleIndex] + " " + g.message, + g.offendingToken, + g + ); + }), + (i.prototype.reportUnwantedToken = function (l) { + if (!this.inErrorRecoveryMode(l)) { + this.beginErrorCondition(l); + var g = l.getCurrentToken(), + x = + "extraneous input " + + this.getTokenErrorDisplay(g) + + " expecting " + + this.getExpectedTokens(l).toString( + l.literalNames, + l.symbolicNames + ); + l.notifyErrorListeners(x, g, null); + } + }), + (i.prototype.reportMissingToken = function (l) { + if (!this.inErrorRecoveryMode(l)) { + this.beginErrorCondition(l); + var g = l.getCurrentToken(), + y = + "missing " + + this.getExpectedTokens(l).toString( + l.literalNames, + l.symbolicNames + ) + + " at " + + this.getTokenErrorDisplay(g); + l.notifyErrorListeners(y, g, null); + } + }), + (i.prototype.recoverInline = function (l) { + var g = this.singleTokenDeletion(l); + if (null !== g) return l.consume(), g; + if (this.singleTokenInsertion(l)) return this.getMissingSymbol(l); + throw new m(l); + }), + (i.prototype.singleTokenInsertion = function (l) { + var g = l.getTokenStream().LA(1), + b = l._interp.atn; + return ( + !!b + .nextTokens(b.states[l.state].transitions[0].target, l._ctx) + .contains(g) && (this.reportMissingToken(l), !0) + ); + }), + (i.prototype.singleTokenDeletion = function (l) { + var g = l.getTokenStream().LA(2); + if (this.getExpectedTokens(l).contains(g)) { + this.reportUnwantedToken(l), l.consume(); + var y = l.getCurrentToken(); + return this.reportMatch(l), y; + } + return null; + }), + (i.prototype.getMissingSymbol = function (l) { + var x, + g = l.getCurrentToken(), + y = this.getExpectedTokens(l).first(); + x = + y === n.EOF + ? "" + : ""; + var T = g, + O = l.getTokenStream().LT(-1); + return ( + T.type === n.EOF && null !== O && (T = O), + l + .getTokenFactory() + .create( + T.source, + y, + x, + n.DEFAULT_CHANNEL, + -1, + -1, + T.line, + T.column + ) + ); + }), + (i.prototype.getExpectedTokens = function (l) { + return l.getExpectedTokens(); + }), + (i.prototype.getTokenErrorDisplay = function (l) { + if (null === l) return ""; + var g = l.text; + return ( + null === g && (g = l.type === n.EOF ? "" : "<" + l.type + ">"), + this.escapeWSAndQuote(g) + ); + }), + (i.prototype.escapeWSAndQuote = function (l) { + return ( + "'" + + (l = (l = (l = l.replace(/\n/g, "\\n")).replace( + /\r/g, + "\\r" + )).replace(/\t/g, "\\t")) + + "'" + ); + }), + (i.prototype.getErrorRecoverySet = function (l) { + for ( + var g = l._interp.atn, b = l._ctx, y = new r(); + null !== b && b.invokingState >= 0; + + ) { + var O = g.nextTokens( + g.states[b.invokingState].transitions[0].followState + ); + y.addSet(O), (b = b.parentCtx); + } + return y.removeOne(n.EPSILON), y; + }), + (i.prototype.consumeUntil = function (l, g) { + for ( + var b = l.getTokenStream().LA(1); + b !== n.EOF && !g.contains(b); + + ) + l.consume(), (b = l.getTokenStream().LA(1)); + }), + ((c.prototype = Object.create(i.prototype)).constructor = c), + (c.prototype.recover = function (l, g) { + for (var b = l._ctx; null !== b; ) + (b.exception = g), (b = b.parentCtx); + throw new d(g); + }), + (c.prototype.recoverInline = function (l) { + this.recover(l, new m(l)); + }), + (c.prototype.sync = function (l) {}), + (j.BailErrorStrategy = c), + (j.t = i); + }, + 9329: (ye, j, p) => { + var n = p(8792).PredicateTransition; + function f(h) { + return ( + Error.call(this), + Error.captureStackTrace + ? Error.captureStackTrace(this, f) + : new Error(), + (this.message = h.message), + (this.recognizer = h.recognizer), + (this.input = h.input), + (this.ctx = h.ctx), + (this.offendingToken = null), + (this.offendingState = -1), + null !== this.recognizer && + (this.offendingState = this.recognizer.state), + this + ); + } + function _(h, r, o, i) { + return ( + f.call(this, { message: "", recognizer: h, input: r, ctx: null }), + (this.startIndex = o), + (this.deadEndConfigs = i), + this + ); + } + function m(h, r, o, i, c, l) { + (l = l || h._ctx), + (i = i || h.getCurrentToken()), + (o = o || h.getCurrentToken()), + (r = r || h.getInputStream()), + f.call(this, { message: "", recognizer: h, input: r, ctx: l }), + (this.deadEndConfigs = c), + (this.startToken = o), + (this.offendingToken = i); + } + function s(h) { + f.call(this, { + message: "", + recognizer: h, + input: h.getInputStream(), + ctx: h._ctx, + }), + (this.offendingToken = h.getCurrentToken()); + } + function d(h, r, o) { + f.call(this, { + message: this.formatMessage(r, o || null), + recognizer: h, + input: h.getInputStream(), + ctx: h._ctx, + }); + var c = h._interp.atn.states[h.state].transitions[0]; + return ( + c instanceof n + ? ((this.ruleIndex = c.ruleIndex), + (this.predicateIndex = c.predIndex)) + : ((this.ruleIndex = 0), (this.predicateIndex = 0)), + (this.predicate = r), + (this.offendingToken = h.getCurrentToken()), + this + ); + } + function u() { + return Error.call(this), Error.captureStackTrace(this, u), this; + } + ((f.prototype = Object.create(Error.prototype)).constructor = f), + (f.prototype.getExpectedTokens = function () { + return null !== this.recognizer + ? this.recognizer.atn.getExpectedTokens( + this.offendingState, + this.ctx + ) + : null; + }), + (f.prototype.toString = function () { + return this.message; + }), + ((_.prototype = Object.create(f.prototype)).constructor = _), + (_.prototype.toString = function () { + var h = ""; + return ( + this.startIndex >= 0 && + this.startIndex < this.input.size && + (h = this.input.getText(this.startIndex)), + "LexerNoViableAltException" + h + ); + }), + ((m.prototype = Object.create(f.prototype)).constructor = m), + ((s.prototype = Object.create(f.prototype)).constructor = s), + ((d.prototype = Object.create(f.prototype)).constructor = d), + (d.prototype.formatMessage = function (h, r) { + return null !== r ? r : "failed predicate: {" + h + "}?"; + }), + ((u.prototype = Object.create(Error.prototype)).constructor = u), + (j.RecognitionException = f), + (j.NoViableAltException = m), + (j.LexerNoViableAltException = _), + (j.InputMismatchException = s), + (j.FailedPredicateException = d), + (j.ParseCancellationException = u); + }, + 107: (ye, j, p) => { + (j.RecognitionException = p(9329).RecognitionException), + (j.NoViableAltException = p(9329).NoViableAltException), + (j.LexerNoViableAltException = p(9329).LexerNoViableAltException), + (j.InputMismatchException = p(9329).InputMismatchException), + (j.FailedPredicateException = p(9329).FailedPredicateException), + (j.DiagnosticErrorListener = p(379).DiagnosticErrorListener), + (j.BailErrorStrategy = p(6863).BailErrorStrategy), + (j.ErrorListener = p(5490).ErrorListener); + }, + 3747: () => { + String.prototype.codePointAt || + (function () { + "use strict"; + var ye = (function () { + try { + var p = {}, + n = Object.defineProperty, + f = n(p, p, p) && n; + } catch (_) {} + return f; + })(), + j = function (p) { + if (null == this) throw TypeError(); + var n = String(this), + f = n.length, + _ = p ? Number(p) : 0; + if ((_ != _ && (_ = 0), !(_ < 0 || _ >= f))) { + var s, + m = n.charCodeAt(_); + return m >= 55296 && + m <= 56319 && + f > _ + 1 && + (s = n.charCodeAt(_ + 1)) >= 56320 && + s <= 57343 + ? 1024 * (m - 55296) + s - 56320 + 65536 + : m; + } + }; + ye + ? ye(String.prototype, "codePointAt", { + value: j, + configurable: !0, + writable: !0, + }) + : (String.prototype.codePointAt = j); + })(); + }, + 617: () => { + var ye, j, p, n; + String.fromCodePoint || + ((ye = (function () { + try { + var f = {}, + _ = Object.defineProperty, + m = _(f, f, f) && _; + } catch (s) {} + return m; + })()), + (j = String.fromCharCode), + (p = Math.floor), + (n = function (f) { + var _ = 16384, + m = [], + u = -1, + h = arguments.length; + if (!h) return ""; + for (var r = ""; ++u < h; ) { + var o = Number(arguments[u]); + if (!isFinite(o) || o < 0 || o > 1114111 || p(o) != o) + throw RangeError("Invalid code point: " + o); + o <= 65535 + ? m.push(o) + : m.push(55296 + ((o -= 65536) >> 10), (o % 1024) + 56320), + (u + 1 == h || m.length > _) && + ((r += j.apply(null, m)), (m.length = 0)); + } + return r; + }), + ye + ? ye(String, "fromCodePoint", { + value: n, + configurable: !0, + writable: !0, + }) + : (String.fromCodePoint = n)); + }, + 7774: (ye, j, p) => { + var n = p(9696).Token, + f = p(3491).Interval, + _ = new f(-1, -2); + function s() { + return this; + } + function d() { + return s.call(this), this; + } + function u() { + return d.call(this), this; + } + function h() { + return u.call(this), this; + } + function r() { + return u.call(this), this; + } + function o() { + return r.call(this), this; + } + function i() { + return this; + } + function c() { + return this; + } + function l(y) { + return r.call(this), (this.parentCtx = null), (this.symbol = y), this; + } + function g(y) { + return l.call(this, y), this; + } + function b() { + return this; + } + p(3126), + ((d.prototype = Object.create(s.prototype)).constructor = d), + ((u.prototype = Object.create(d.prototype)).constructor = u), + ((h.prototype = Object.create(u.prototype)).constructor = h), + ((r.prototype = Object.create(u.prototype)).constructor = r), + ((o.prototype = Object.create(r.prototype)).constructor = o), + (i.prototype.visit = function (y) { + return Array.isArray(y) + ? y.map(function (x) { + return x.accept(this); + }, this) + : y.accept(this); + }), + (i.prototype.visitChildren = function (y) { + return y.children ? this.visit(y.children) : null; + }), + (i.prototype.visitTerminal = function (y) {}), + (i.prototype.visitErrorNode = function (y) {}), + (c.prototype.visitTerminal = function (y) {}), + (c.prototype.visitErrorNode = function (y) {}), + (c.prototype.enterEveryRule = function (y) {}), + (c.prototype.exitEveryRule = function (y) {}), + ((l.prototype = Object.create(r.prototype)).constructor = l), + (l.prototype.getChild = function (y) { + return null; + }), + (l.prototype.getSymbol = function () { + return this.symbol; + }), + (l.prototype.getParent = function () { + return this.parentCtx; + }), + (l.prototype.getPayload = function () { + return this.symbol; + }), + (l.prototype.getSourceInterval = function () { + if (null === this.symbol) return _; + var y = this.symbol.tokenIndex; + return new f(y, y); + }), + (l.prototype.getChildCount = function () { + return 0; + }), + (l.prototype.accept = function (y) { + return y.visitTerminal(this); + }), + (l.prototype.getText = function () { + return this.symbol.text; + }), + (l.prototype.toString = function () { + return this.symbol.type === n.EOF ? "" : this.symbol.text; + }), + ((g.prototype = Object.create(l.prototype)).constructor = g), + (g.prototype.isErrorNode = function () { + return !0; + }), + (g.prototype.accept = function (y) { + return y.visitErrorNode(this); + }), + (b.prototype.walk = function (y, x) { + if (x instanceof o || (void 0 !== x.isErrorNode && x.isErrorNode())) + y.visitErrorNode(x); + else if (x instanceof r) y.visitTerminal(x); + else { + this.enterRule(y, x); + for (var O = 0; O < x.getChildCount(); O++) { + var M = x.getChild(O); + this.walk(y, M); + } + this.exitRule(y, x); + } + }), + (b.prototype.enterRule = function (y, x) { + var T = x.getRuleContext(); + y.enterEveryRule(T), T.enterRule(y); + }), + (b.prototype.exitRule = function (y, x) { + var T = x.getRuleContext(); + T.exitRule(y), y.exitEveryRule(T); + }), + (b.DEFAULT = new b()), + (j.RuleNode = h), + (j.ErrorNode = o), + (j.TerminalNode = r), + (j.ErrorNodeImpl = g), + (j.TerminalNodeImpl = l), + (j.ParseTreeListener = c), + (j.ParseTreeVisitor = i), + (j.ParseTreeWalker = b), + (j.INVALID_INTERVAL = _); + }, + 8245: (ye, j, p) => { + var n = p(3126), + f = p(9696).Token, + m = (p(7774), p(7774).ErrorNode), + s = p(7774).TerminalNode, + d = p(7335).ParserRuleContext, + u = p(3955).r, + h = p(4562).INVALID_ALT_NUMBER; + function r() {} + (r.toStringTree = function (o, i, c) { + (i = i || null), null !== (c = c || null) && (i = c.ruleNames); + var l = r.getNodeText(o, i); + l = n.escapeWhitespace(l, !1); + var g = o.getChildCount(); + if (0 === g) return l; + var b = "(" + l + " "; + g > 0 && ((l = r.toStringTree(o.getChild(0), i)), (b = b.concat(l))); + for (var y = 1; y < g; y++) + (l = r.toStringTree(o.getChild(y), i)), (b = b.concat(" " + l)); + return b.concat(")"); + }), + (r.getNodeText = function (o, i, c) { + if ( + ((i = i || null), + null !== (c = c || null) && (i = c.ruleNames), + null !== i) + ) { + if (o instanceof u) { + var l = o.getAltNumber(); + return l != h ? i[o.ruleIndex] + ":" + l : i[o.ruleIndex]; + } + if (o instanceof m) return o.toString(); + if (o instanceof s && null !== o.symbol) return o.symbol.text; + } + var g = o.getPayload(); + return g instanceof f ? g.text : o.getPayload().toString(); + }), + (r.getChildren = function (o) { + for (var i = [], c = 0; c < o.getChildCount(); c++) + i.push(o.getChild(c)); + return i; + }), + (r.getAncestors = function (o) { + var i = []; + for (o = o.getParent(); null !== o; ) + (i = [o].concat(i)), (o = o.getParent()); + return i; + }), + (r.findAllTokenNodes = function (o, i) { + return r.findAllNodes(o, i, !0); + }), + (r.findAllRuleNodes = function (o, i) { + return r.findAllNodes(o, i, !1); + }), + (r.findAllNodes = function (o, i, c) { + var l = []; + return r._findAllNodes(o, i, c, l), l; + }), + (r._findAllNodes = function (o, i, c, l) { + c && o instanceof s + ? o.symbol.type === i && l.push(o) + : !c && o instanceof d && o.ruleIndex === i && l.push(o); + for (var g = 0; g < o.getChildCount(); g++) + r._findAllNodes(o.getChild(g), i, c, l); + }), + (r.descendants = function (o) { + for (var i = [o], c = 0; c < o.getChildCount(); c++) + i = i.concat(r.descendants(o.getChild(c))); + return i; + }), + (j.Trees = r); + }, + 4521: (ye, j, p) => { + var n = p(7774); + (j.Trees = p(8245).Trees), + (j.RuleNode = n.RuleNode), + (j.ParseTreeListener = n.ParseTreeListener), + (j.ParseTreeVisitor = n.ParseTreeVisitor), + (j.ParseTreeWalker = n.ParseTreeWalker); + }, + 5618: function () { + var ye; + (ye = "undefined" != typeof self ? self : this), + (function (p) { + var n_searchParams = "URLSearchParams" in ye, + n_iterable = "Symbol" in ye && "iterator" in Symbol, + n_blob = + "FileReader" in ye && + "Blob" in ye && + (function () { + try { + return new Blob(), !0; + } catch (I) { + return !1; + } + })(), + n_formData = "FormData" in ye, + n_arrayBuffer = "ArrayBuffer" in ye; + if (n_arrayBuffer) + var _ = [ + "[object Int8Array]", + "[object Uint8Array]", + "[object Uint8ClampedArray]", + "[object Int16Array]", + "[object Uint16Array]", + "[object Int32Array]", + "[object Uint32Array]", + "[object Float32Array]", + "[object Float64Array]", + ], + m = + ArrayBuffer.isView || + function (I) { + return I && _.indexOf(Object.prototype.toString.call(I)) > -1; + }; + function s(I) { + if ( + ("string" != typeof I && (I = String(I)), + /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(I)) + ) + throw new TypeError("Invalid character in header field name"); + return I.toLowerCase(); + } + function d(I) { + return "string" != typeof I && (I = String(I)), I; + } + function u(I) { + var C = { + next: function () { + var L = I.shift(); + return { done: void 0 === L, value: L }; + }, + }; + return ( + n_iterable && + (C[Symbol.iterator] = function () { + return C; + }), + C + ); + } + function h(I) { + (this.map = {}), + I instanceof h + ? I.forEach(function (C, L) { + this.append(L, C); + }, this) + : Array.isArray(I) + ? I.forEach(function (C) { + this.append(C[0], C[1]); + }, this) + : I && + Object.getOwnPropertyNames(I).forEach(function (C) { + this.append(C, I[C]); + }, this); + } + function r(I) { + if (I.bodyUsed) + return Promise.reject(new TypeError("Already read")); + I.bodyUsed = !0; + } + function o(I) { + return new Promise(function (C, L) { + (I.onload = function () { + C(I.result); + }), + (I.onerror = function () { + L(I.error); + }); + }); + } + function i(I) { + var C = new FileReader(), + L = o(C); + return C.readAsArrayBuffer(I), L; + } + function g(I) { + if (I.slice) return I.slice(0); + var C = new Uint8Array(I.byteLength); + return C.set(new Uint8Array(I)), C.buffer; + } + function b() { + return ( + (this.bodyUsed = !1), + (this._initBody = function (I) { + (this._bodyInit = I), + I + ? "string" == typeof I + ? (this._bodyText = I) + : n_blob && Blob.prototype.isPrototypeOf(I) + ? (this._bodyBlob = I) + : n_formData && FormData.prototype.isPrototypeOf(I) + ? (this._bodyFormData = I) + : n_searchParams && + URLSearchParams.prototype.isPrototypeOf(I) + ? (this._bodyText = I.toString()) + : n_arrayBuffer && + n_blob && + (function (I) { + return I && DataView.prototype.isPrototypeOf(I); + })(I) + ? ((this._bodyArrayBuffer = g(I.buffer)), + (this._bodyInit = new Blob([this._bodyArrayBuffer]))) + : n_arrayBuffer && + (ArrayBuffer.prototype.isPrototypeOf(I) || m(I)) + ? (this._bodyArrayBuffer = g(I)) + : (this._bodyText = I = Object.prototype.toString.call(I)) + : (this._bodyText = ""), + this.headers.get("content-type") || + ("string" == typeof I + ? this.headers.set( + "content-type", + "text/plain;charset=UTF-8" + ) + : this._bodyBlob && this._bodyBlob.type + ? this.headers.set("content-type", this._bodyBlob.type) + : n_searchParams && + URLSearchParams.prototype.isPrototypeOf(I) && + this.headers.set( + "content-type", + "application/x-www-form-urlencoded;charset=UTF-8" + )); + }), + n_blob && + ((this.blob = function () { + var I = r(this); + if (I) return I; + if (this._bodyBlob) return Promise.resolve(this._bodyBlob); + if (this._bodyArrayBuffer) + return Promise.resolve(new Blob([this._bodyArrayBuffer])); + if (this._bodyFormData) + throw new Error("could not read FormData body as blob"); + return Promise.resolve(new Blob([this._bodyText])); + }), + (this.arrayBuffer = function () { + return this._bodyArrayBuffer + ? r(this) || Promise.resolve(this._bodyArrayBuffer) + : this.blob().then(i); + })), + (this.text = function () { + var I = r(this); + if (I) return I; + if (this._bodyBlob) + return (function (I) { + var C = new FileReader(), + L = o(C); + return C.readAsText(I), L; + })(this._bodyBlob); + if (this._bodyArrayBuffer) + return Promise.resolve( + (function (I) { + for ( + var C = new Uint8Array(I), + L = new Array(C.length), + F = 0; + F < C.length; + F++ + ) + L[F] = String.fromCharCode(C[F]); + return L.join(""); + })(this._bodyArrayBuffer) + ); + if (this._bodyFormData) + throw new Error("could not read FormData body as text"); + return Promise.resolve(this._bodyText); + }), + n_formData && + (this.formData = function () { + return this.text().then(O); + }), + (this.json = function () { + return this.text().then(JSON.parse); + }), + this + ); + } + (h.prototype.append = function (I, C) { + (I = s(I)), (C = d(C)); + var L = this.map[I]; + this.map[I] = L ? L + ", " + C : C; + }), + (h.prototype.delete = function (I) { + delete this.map[s(I)]; + }), + (h.prototype.get = function (I) { + return (I = s(I)), this.has(I) ? this.map[I] : null; + }), + (h.prototype.has = function (I) { + return this.map.hasOwnProperty(s(I)); + }), + (h.prototype.set = function (I, C) { + this.map[s(I)] = d(C); + }), + (h.prototype.forEach = function (I, C) { + for (var L in this.map) + this.map.hasOwnProperty(L) && I.call(C, this.map[L], L, this); + }), + (h.prototype.keys = function () { + var I = []; + return ( + this.forEach(function (C, L) { + I.push(L); + }), + u(I) + ); + }), + (h.prototype.values = function () { + var I = []; + return ( + this.forEach(function (C) { + I.push(C); + }), + u(I) + ); + }), + (h.prototype.entries = function () { + var I = []; + return ( + this.forEach(function (C, L) { + I.push([L, C]); + }), + u(I) + ); + }), + n_iterable && (h.prototype[Symbol.iterator] = h.prototype.entries); + var y = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; + function T(I, C) { + var L = (C = C || {}).body; + if (I instanceof T) { + if (I.bodyUsed) throw new TypeError("Already read"); + (this.url = I.url), + (this.credentials = I.credentials), + C.headers || (this.headers = new h(I.headers)), + (this.method = I.method), + (this.mode = I.mode), + (this.signal = I.signal), + !L && + null != I._bodyInit && + ((L = I._bodyInit), (I.bodyUsed = !0)); + } else this.url = String(I); + if ( + ((this.credentials = + C.credentials || this.credentials || "same-origin"), + (C.headers || !this.headers) && (this.headers = new h(C.headers)), + (this.method = (function (I) { + var C = I.toUpperCase(); + return y.indexOf(C) > -1 ? C : I; + })(C.method || this.method || "GET")), + (this.mode = C.mode || this.mode || null), + (this.signal = C.signal || this.signal), + (this.referrer = null), + ("GET" === this.method || "HEAD" === this.method) && L) + ) + throw new TypeError("Body not allowed for GET or HEAD requests"); + this._initBody(L); + } + function O(I) { + var C = new FormData(); + return ( + I.trim() + .split("&") + .forEach(function (L) { + if (L) { + var F = L.split("="), + ie = F.shift().replace(/\+/g, " "), + Y = F.join("=").replace(/\+/g, " "); + C.append(decodeURIComponent(ie), decodeURIComponent(Y)); + } + }), + C + ); + } + function M(I) { + var C = new h(); + return ( + I.replace(/\r?\n[\t ]+/g, " ") + .split(/\r?\n/) + .forEach(function (F) { + var ie = F.split(":"), + Y = ie.shift().trim(); + if (Y) { + var Z = ie.join(":").trim(); + C.append(Y, Z); + } + }), + C + ); + } + function A(I, C) { + C || (C = {}), + (this.type = "default"), + (this.status = void 0 === C.status ? 200 : C.status), + (this.ok = this.status >= 200 && this.status < 300), + (this.statusText = "statusText" in C ? C.statusText : "OK"), + (this.headers = new h(C.headers)), + (this.url = C.url || ""), + this._initBody(I); + } + (T.prototype.clone = function () { + return new T(this, { body: this._bodyInit }); + }), + b.call(T.prototype), + b.call(A.prototype), + (A.prototype.clone = function () { + return new A(this._bodyInit, { + status: this.status, + statusText: this.statusText, + headers: new h(this.headers), + url: this.url, + }); + }), + (A.error = function () { + var I = new A(null, { status: 0, statusText: "" }); + return (I.type = "error"), I; + }); + var S = [301, 302, 303, 307, 308]; + (A.redirect = function (I, C) { + if (-1 === S.indexOf(C)) + throw new RangeError("Invalid status code"); + return new A(null, { status: C, headers: { location: I } }); + }), + (p.DOMException = ye.DOMException); + try { + new p.DOMException(); + } catch (I) { + (p.DOMException = function (C, L) { + (this.message = C), (this.name = L); + var F = Error(C); + this.stack = F.stack; + }), + (p.DOMException.prototype = Object.create(Error.prototype)), + (p.DOMException.prototype.constructor = p.DOMException); + } + function w(I, C) { + return new Promise(function (L, F) { + var ie = new T(I, C); + if (ie.signal && ie.signal.aborted) + return F(new p.DOMException("Aborted", "AbortError")); + var Y = new XMLHttpRequest(); + function Z() { + Y.abort(); + } + (Y.onload = function () { + var ee = { + status: Y.status, + statusText: Y.statusText, + headers: M(Y.getAllResponseHeaders() || ""), + }; + (ee.url = + "responseURL" in Y + ? Y.responseURL + : ee.headers.get("X-Request-URL")), + L(new A("response" in Y ? Y.response : Y.responseText, ee)); + }), + (Y.onerror = function () { + F(new TypeError("Network request failed")); + }), + (Y.ontimeout = function () { + F(new TypeError("Network request failed")); + }), + (Y.onabort = function () { + F(new p.DOMException("Aborted", "AbortError")); + }), + Y.open(ie.method, ie.url, !0), + "include" === ie.credentials + ? (Y.withCredentials = !0) + : "omit" === ie.credentials && (Y.withCredentials = !1), + "responseType" in Y && n_blob && (Y.responseType = "blob"), + ie.headers.forEach(function (ee, $) { + Y.setRequestHeader($, ee); + }), + ie.signal && + (ie.signal.addEventListener("abort", Z), + (Y.onreadystatechange = function () { + 4 === Y.readyState && + ie.signal.removeEventListener("abort", Z); + })), + Y.send(void 0 === ie._bodyInit ? null : ie._bodyInit); + }); + } + (w.polyfill = !0), + ye.fetch || + ((ye.fetch = w), + (ye.Headers = h), + (ye.Request = T), + (ye.Response = A)), + (p.Headers = h), + (p.Request = T), + (p.Response = A), + (p.fetch = w), + Object.defineProperty(p, "__esModule", { value: !0 }); + })({}); + }, + 7664: (ye) => { + ye.exports = function (n) { + var f = new Date(n.getTime()), + _ = f.getTimezoneOffset(); + return f.setSeconds(0, 0), 6e4 * _ + (f.getTime() % 6e4); + }; + }, + 6937: (ye, j, p) => { + var n = p(6910); + ye.exports = function (_, m) { + var s = n(_), + d = Number(m); + return s.setDate(s.getDate() + d), s; + }; + }, + 2500: (ye, j, p) => { + var n = p(7862); + ye.exports = function (m, s) { + var d = Number(s); + return n(m, 36e5 * d); + }; + }, + 7862: (ye, j, p) => { + var n = p(6910); + ye.exports = function (_, m) { + var s = n(_).getTime(), + d = Number(m); + return new Date(s + d); + }; + }, + 8091: (ye, j, p) => { + var n = p(7862); + ye.exports = function (m, s) { + var d = Number(s); + return n(m, 6e4 * d); + }; + }, + 4992: (ye, j, p) => { + var n = p(6910), + f = p(4349); + ye.exports = function (m, s) { + var d = n(m), + u = Number(s), + h = d.getMonth() + u, + r = new Date(0); + r.setFullYear(d.getFullYear(), h, 1), r.setHours(0, 0, 0, 0); + var o = f(r); + return d.setMonth(h, Math.min(o, d.getDate())), d; + }; + }, + 734: (ye, j, p) => { + var n = p(7862); + ye.exports = function (_, m) { + var s = Number(m); + return n(_, 1e3 * s); + }; + }, + 5213: (ye, j, p) => { + var n = p(6937); + ye.exports = function (_, m) { + var s = Number(m); + return n(_, 7 * s); + }; + }, + 2486: (ye, j, p) => { + var n = p(4992); + ye.exports = function (_, m) { + var s = Number(m); + return n(_, 12 * s); + }; + }, + 4349: (ye, j, p) => { + var n = p(6910); + ye.exports = function (_) { + var m = n(_), + s = m.getFullYear(), + d = m.getMonth(), + u = new Date(0); + return u.setFullYear(s, d + 1, 0), u.setHours(0, 0, 0, 0), u.getDate(); + }; + }, + 9882: (ye) => { + ye.exports = function (p) { + return p instanceof Date; + }; + }, + 6910: (ye, j, p) => { + var n = p(7664), + f = p(9882), + _ = 36e5, + m = 6e4, + d = /[T ]/, + u = /:/, + h = /^(\d{2})$/, + r = [/^([+-]\d{2})$/, /^([+-]\d{3})$/, /^([+-]\d{4})$/], + o = /^(\d{4})/, + i = [/^([+-]\d{4})/, /^([+-]\d{5})/, /^([+-]\d{6})/], + c = /^-(\d{2})$/, + l = /^-?(\d{3})$/, + g = /^-?(\d{2})-?(\d{2})$/, + b = /^-?W(\d{2})$/, + y = /^-?W(\d{2})-?(\d{1})$/, + x = /^(\d{2}([.,]\d*)?)$/, + T = /^(\d{2}):?(\d{2}([.,]\d*)?)$/, + O = /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/, + M = /([Z+-].*)$/, + A = /^(Z)$/, + S = /^([+-])(\d{2})$/, + w = /^([+-])(\d{2}):?(\d{2})$/; + function Z(ee, $, J) { + ($ = $ || 0), (J = J || 0); + var ne = new Date(0); + ne.setUTCFullYear(ee, 0, 4); + var le = 7 * $ + J + 1 - (ne.getUTCDay() || 7); + return ne.setUTCDate(ne.getUTCDate() + le), ne; + } + ye.exports = function (ee, $) { + if (f(ee)) return new Date(ee.getTime()); + if ("string" != typeof ee) return new Date(ee); + var ne = ($ || {}).additionalDigits; + ne = null == ne ? 2 : Number(ne); + var ae = (function (ee) { + var ne, + $ = {}, + J = ee.split(d); + if ( + (u.test(J[0]) + ? (($.date = null), (ne = J[0])) + : (($.date = J[0]), (ne = J[1])), + ne) + ) { + var ae = M.exec(ne); + ae + ? (($.time = ne.replace(ae[1], "")), ($.timezone = ae[1])) + : ($.time = ne); + } + return $; + })(ee), + le = (function (ee, $) { + var ae, + J = r[$], + ne = i[$]; + if ((ae = o.exec(ee) || ne.exec(ee))) { + var le = ae[1]; + return { + year: parseInt(le, 10), + restDateString: ee.slice(le.length), + }; + } + if ((ae = h.exec(ee) || J.exec(ee))) { + var Oe = ae[1]; + return { + year: 100 * parseInt(Oe, 10), + restDateString: ee.slice(Oe.length), + }; + } + return { year: null }; + })(ae.date, ne), + Ye = (function (ee, $) { + if (null === $) return null; + var J, ne, ae; + if (0 === ee.length) + return (ne = new Date(0)).setUTCFullYear($), ne; + if ((J = c.exec(ee))) + return ( + (ne = new Date(0)), + (ae = parseInt(J[1], 10) - 1), + ne.setUTCFullYear($, ae), + ne + ); + if ((J = l.exec(ee))) { + ne = new Date(0); + var Oe = parseInt(J[1], 10); + return ne.setUTCFullYear($, 0, Oe), ne; + } + if ((J = g.exec(ee))) { + (ne = new Date(0)), (ae = parseInt(J[1], 10) - 1); + var Le = parseInt(J[2], 10); + return ne.setUTCFullYear($, ae, Le), ne; + } + return (J = b.exec(ee)) + ? Z($, parseInt(J[1], 10) - 1) + : (J = y.exec(ee)) + ? Z($, parseInt(J[1], 10) - 1, parseInt(J[2], 10) - 1) + : null; + })(le.restDateString, le.year); + if (Ye) { + var Ue, + Je = Ye.getTime(), + gt = 0; + if ( + (ae.time && + (gt = (function (ee) { + var $, J, ne; + if (($ = x.exec(ee))) + return ((J = parseFloat($[1].replace(",", "."))) % 24) * _; + if (($ = T.exec(ee))) + return ( + (J = parseInt($[1], 10)), + (ne = parseFloat($[2].replace(",", "."))), + (J % 24) * _ + ne * m + ); + if (($ = O.exec(ee))) { + (J = parseInt($[1], 10)), (ne = parseInt($[2], 10)); + var ae = parseFloat($[3].replace(",", ".")); + return (J % 24) * _ + ne * m + 1e3 * ae; + } + return null; + })(ae.time)), + ae.timezone) + ) + Ue = + (function (ee) { + var $, J; + return ($ = A.exec(ee)) + ? 0 + : ($ = S.exec(ee)) + ? ((J = 60 * parseInt($[2], 10)), "+" === $[1] ? -J : J) + : ($ = w.exec(ee)) + ? ((J = 60 * parseInt($[2], 10) + parseInt($[3], 10)), + "+" === $[1] ? -J : J) + : 0; + })(ae.timezone) * m; + else { + var tt = Je + gt, + at = new Date(tt); + Ue = n(at); + var ft = new Date(tt); + ft.setDate(at.getDate() + 1); + var vt = n(ft) - n(at); + vt > 0 && (Ue += vt); + } + return new Date(Je + gt + Ue); + } + return new Date(ee); + }; + }, + 1455: (ye, j, p) => { + (j.formatArgs = function (u) { + if ( + ((u[0] = + (this.useColors ? "%c" : "") + + this.namespace + + (this.useColors ? " %c" : " ") + + u[0] + + (this.useColors ? "%c " : " ") + + "+" + + ye.exports.humanize(this.diff)), + !this.useColors) + ) + return; + const h = "color: " + this.color; + u.splice(1, 0, h, "color: inherit"); + let r = 0, + o = 0; + u[0].replace(/%[a-zA-Z%]/g, (i) => { + "%%" !== i && (r++, "%c" === i && (o = r)); + }), + u.splice(o, 0, h); + }), + (j.save = function (u) { + try { + u ? j.storage.setItem("debug", u) : j.storage.removeItem("debug"); + } catch (h) {} + }), + (j.load = function () { + let u; + try { + u = j.storage.getItem("debug"); + } catch (h) {} + return ( + !u && + "undefined" != typeof process && + "env" in process && + (u = process.env.DEBUG), + u + ); + }), + (j.useColors = function () { + return ( + !( + "undefined" == typeof window || + !window.process || + ("renderer" !== window.process.type && !window.process.__nwjs) + ) || + (("undefined" == typeof navigator || + !navigator.userAgent || + !navigator.userAgent + .toLowerCase() + .match(/(edge|trident)\/(\d+)/)) && + (("undefined" != typeof document && + document.documentElement && + document.documentElement.style && + document.documentElement.style.WebkitAppearance) || + ("undefined" != typeof window && + window.console && + (window.console.firebug || + (window.console.exception && window.console.table))) || + ("undefined" != typeof navigator && + navigator.userAgent && + navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && + parseInt(RegExp.$1, 10) >= 31) || + ("undefined" != typeof navigator && + navigator.userAgent && + navigator.userAgent + .toLowerCase() + .match(/applewebkit\/(\d+)/)))) + ); + }), + (j.storage = (function () { + try { + return localStorage; + } catch (u) {} + })()), + (j.destroy = (() => { + let u = !1; + return () => { + u || + ((u = !0), + console.warn( + "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`." + )); + }; + })()), + (j.colors = [ + "#0000CC", + "#0000FF", + "#0033CC", + "#0033FF", + "#0066CC", + "#0066FF", + "#0099CC", + "#0099FF", + "#00CC00", + "#00CC33", + "#00CC66", + "#00CC99", + "#00CCCC", + "#00CCFF", + "#3300CC", + "#3300FF", + "#3333CC", + "#3333FF", + "#3366CC", + "#3366FF", + "#3399CC", + "#3399FF", + "#33CC00", + "#33CC33", + "#33CC66", + "#33CC99", + "#33CCCC", + "#33CCFF", + "#6600CC", + "#6600FF", + "#6633CC", + "#6633FF", + "#66CC00", + "#66CC33", + "#9900CC", + "#9900FF", + "#9933CC", + "#9933FF", + "#99CC00", + "#99CC33", + "#CC0000", + "#CC0033", + "#CC0066", + "#CC0099", + "#CC00CC", + "#CC00FF", + "#CC3300", + "#CC3333", + "#CC3366", + "#CC3399", + "#CC33CC", + "#CC33FF", + "#CC6600", + "#CC6633", + "#CC9900", + "#CC9933", + "#CCCC00", + "#CCCC33", + "#FF0000", + "#FF0033", + "#FF0066", + "#FF0099", + "#FF00CC", + "#FF00FF", + "#FF3300", + "#FF3333", + "#FF3366", + "#FF3399", + "#FF33CC", + "#FF33FF", + "#FF6600", + "#FF6633", + "#FF9900", + "#FF9933", + "#FFCC00", + "#FFCC33", + ]), + (j.log = console.debug || console.log || (() => {})), + (ye.exports = p(3283)(j)); + const { formatters: d } = ye.exports; + d.j = function (u) { + try { + return JSON.stringify(u); + } catch (h) { + return "[UnexpectedJSONParseError]: " + h.message; + } + }; + }, + 3283: (ye, j, p) => { + ye.exports = function (f) { + function m(c) { + let l, + b, + y, + g = null; + function x(...T) { + if (!x.enabled) return; + const O = x, + M = Number(new Date()); + (O.diff = M - (l || M)), + (O.prev = l), + (O.curr = M), + (l = M), + (T[0] = m.coerce(T[0])), + "string" != typeof T[0] && T.unshift("%O"); + let S = 0; + (T[0] = T[0].replace(/%([a-zA-Z%])/g, (I, C) => { + if ("%%" === I) return "%"; + S++; + const L = m.formatters[C]; + return ( + "function" == typeof L && + ((I = L.call(O, T[S])), T.splice(S, 1), S--), + I + ); + })), + m.formatArgs.call(O, T), + (O.log || m.log).apply(O, T); + } + return ( + (x.namespace = c), + (x.useColors = m.useColors()), + (x.color = m.selectColor(c)), + (x.extend = s), + (x.destroy = m.destroy), + Object.defineProperty(x, "enabled", { + enumerable: !0, + configurable: !1, + get: () => + null !== g + ? g + : (b !== m.namespaces && + ((b = m.namespaces), (y = m.enabled(c))), + y), + set: (T) => { + g = T; + }, + }), + "function" == typeof m.init && m.init(x), + x + ); + } + function s(c, l) { + const g = m(this.namespace + (void 0 === l ? ":" : l) + c); + return (g.log = this.log), g; + } + function r(c) { + return c + .toString() + .substring(2, c.toString().length - 2) + .replace(/\.\*\?$/, "*"); + } + return ( + (m.debug = m), + (m.default = m), + (m.coerce = function (c) { + return c instanceof Error ? c.stack || c.message : c; + }), + (m.disable = function () { + const c = [ + ...m.names.map(r), + ...m.skips.map(r).map((l) => "-" + l), + ].join(","); + return m.enable(""), c; + }), + (m.enable = function (c) { + let l; + m.save(c), (m.namespaces = c), (m.names = []), (m.skips = []); + const g = ("string" == typeof c ? c : "").split(/[\s,]+/), + b = g.length; + for (l = 0; l < b; l++) + !g[l] || + ("-" === (c = g[l].replace(/\*/g, ".*?"))[0] + ? m.skips.push(new RegExp("^" + c.slice(1) + "$")) + : m.names.push(new RegExp("^" + c + "$"))); + }), + (m.enabled = function (c) { + if ("*" === c[c.length - 1]) return !0; + let l, g; + for (l = 0, g = m.skips.length; l < g; l++) + if (m.skips[l].test(c)) return !1; + for (l = 0, g = m.names.length; l < g; l++) + if (m.names[l].test(c)) return !0; + return !1; + }), + (m.humanize = p(4366)), + (m.destroy = function () { + console.warn( + "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`." + ); + }), + Object.keys(f).forEach((c) => { + m[c] = f[c]; + }), + (m.names = []), + (m.skips = []), + (m.formatters = {}), + (m.selectColor = function (c) { + let l = 0; + for (let g = 0; g < c.length; g++) + (l = (l << 5) - l + c.charCodeAt(g)), (l |= 0); + return m.colors[Math.abs(l) % m.colors.length]; + }), + m.enable(m.load()), + m + ); + }; + }, + 2761: (ye) => { + "use strict"; + var j = "%[a-f0-9]{2}", + p = new RegExp("(" + j + ")|([^%]+?)", "gi"), + n = new RegExp("(" + j + ")+", "gi"); + function f(s, d) { + try { + return [decodeURIComponent(s.join(""))]; + } catch (r) {} + if (1 === s.length) return s; + var u = s.slice(0, (d = d || 1)), + h = s.slice(d); + return Array.prototype.concat.call([], f(u), f(h)); + } + function _(s) { + try { + return decodeURIComponent(s); + } catch (h) { + for (var d = s.match(p) || [], u = 1; u < d.length; u++) + d = (s = f(d, u).join("")).match(p) || []; + return s; + } + } + ye.exports = function (s) { + if ("string" != typeof s) + throw new TypeError( + "Expected `encodedURI` to be of type `string`, got `" + + typeof s + + "`" + ); + try { + return (s = s.replace(/\+/g, " ")), decodeURIComponent(s); + } catch (d) { + return (function (s) { + for ( + var d = { "%FE%FF": "\ufffd\ufffd", "%FF%FE": "\ufffd\ufffd" }, + u = n.exec(s); + u; + + ) { + try { + d[u[0]] = decodeURIComponent(u[0]); + } catch (c) { + var h = _(u[0]); + h !== u[0] && (d[u[0]] = h); + } + u = n.exec(s); + } + d["%C2"] = "\ufffd"; + for (var r = Object.keys(d), o = 0; o < r.length; o++) { + var i = r[o]; + s = s.replace(new RegExp(i, "g"), d[i]); + } + return s; + })(s); + } + }; + }, + 6604: function (ye) { + ye.exports = (function () { + "use strict"; + function p(H) { + return "function" == typeof H; + } + var f = Array.isArray + ? Array.isArray + : function (H) { + return "[object Array]" === Object.prototype.toString.call(H); + }, + _ = 0, + m = void 0, + s = void 0, + d = function (D, U) { + (O[_] = D), (O[_ + 1] = U), 2 === (_ += 2) && (s ? s(M) : S()); + }; + var r = "undefined" != typeof window ? window : void 0, + o = r || {}, + i = o.MutationObserver || o.WebKitMutationObserver, + c = + "undefined" == typeof self && + "undefined" != typeof process && + "[object process]" === {}.toString.call(process), + l = + "undefined" != typeof Uint8ClampedArray && + "undefined" != typeof importScripts && + "undefined" != typeof MessageChannel; + function T() { + var H = setTimeout; + return function () { + return H(M, 1); + }; + } + var O = new Array(1e3); + function M() { + for (var H = 0; H < _; H += 2) + (0, O[H])(O[H + 1]), (O[H] = void 0), (O[H + 1] = void 0); + _ = 0; + } + var H, + D, + U, + S = void 0; + function w(H, D) { + var U = this, + X = new this.constructor(L); + void 0 === X[C] && vt(X); + var _e = U._state; + if (_e) { + var Be = arguments[_e - 1]; + d(function () { + return Ue(_e, X, Be, U._result); + }); + } else Je(U, X, H, D); + return X; + } + function I(H) { + if (H && "object" == typeof H && H.constructor === this) return H; + var U = new this(L); + return le(U, H), U; + } + S = c + ? function () { + return process.nextTick(M); + } + : i + ? ((H = 0), + (D = new i(M)), + (U = document.createTextNode("")), + D.observe(U, { characterData: !0 }), + function () { + U.data = H = ++H % 2; + }) + : l + ? (function () { + var H = new MessageChannel(); + return ( + (H.port1.onmessage = M), + function () { + return H.port2.postMessage(0); + } + ); + })() + : void 0 === r + ? (function () { + try { + var H = Function("return this")().require("vertx"); + return void 0 !== (m = H.runOnLoop || H.runOnContext) + ? function () { + m(M); + } + : T(); + } catch (D) { + return T(); + } + })() + : T(); + var C = Math.random().toString(36).substring(2); + function L() {} + var F = void 0; + function ae(H, D, U) { + D.constructor === H.constructor && + U === w && + D.constructor.resolve === I + ? (function (H, D) { + 1 === D._state + ? Le(H, D._result) + : 2 === D._state + ? Ye(H, D._result) + : Je( + D, + void 0, + function (U) { + return le(H, U); + }, + function (U) { + return Ye(H, U); + } + ); + })(H, D) + : void 0 === U + ? Le(H, D) + : p(U) + ? (function (H, D, U) { + d(function (X) { + var _e = !1, + Be = (function (H, D, U, X) { + try { + H.call(D, U, X); + } catch (_e) { + return _e; + } + })( + U, + D, + function ($e) { + _e || ((_e = !0), D !== $e ? le(X, $e) : Le(X, $e)); + }, + function ($e) { + _e || ((_e = !0), Ye(X, $e)); + } + ); + !_e && Be && ((_e = !0), Ye(X, Be)); + }, H); + })(H, D, U) + : Le(H, D); + } + function le(H, D) { + if (H === D) + Ye(H, new TypeError("You cannot resolve a promise with itself")); + else if ( + (function (H) { + var D = typeof H; + return null !== H && ("object" === D || "function" === D); + })(D) + ) { + var U = void 0; + try { + U = D.then; + } catch (X) { + return void Ye(H, X); + } + ae(H, D, U); + } else Le(H, D); + } + function Oe(H) { + H._onerror && H._onerror(H._result), gt(H); + } + function Le(H, D) { + H._state === F && + ((H._result = D), + (H._state = 1), + 0 !== H._subscribers.length && d(gt, H)); + } + function Ye(H, D) { + H._state === F && ((H._state = 2), (H._result = D), d(Oe, H)); + } + function Je(H, D, U, X) { + var _e = H._subscribers, + Be = _e.length; + (H._onerror = null), + (_e[Be] = D), + (_e[Be + 1] = U), + (_e[Be + 2] = X), + 0 === Be && H._state && d(gt, H); + } + function gt(H) { + var D = H._subscribers, + U = H._state; + if (0 !== D.length) { + for ( + var X = void 0, _e = void 0, Be = H._result, $e = 0; + $e < D.length; + $e += 3 + ) + (_e = D[$e + U]), (X = D[$e]) ? Ue(U, X, _e, Be) : _e(Be); + H._subscribers.length = 0; + } + } + function Ue(H, D, U, X) { + var _e = p(U), + Be = void 0, + $e = void 0, + st = !0; + if (_e) { + try { + Be = U(X); + } catch (ut) { + (st = !1), ($e = ut); + } + if (D === Be) + return void Ye( + D, + new TypeError( + "A promises callback cannot return that same promise." + ) + ); + } else Be = X; + D._state !== F || + (_e && st + ? le(D, Be) + : !1 === st + ? Ye(D, $e) + : 1 === H + ? Le(D, Be) + : 2 === H && Ye(D, Be)); + } + var at = 0; + function vt(H) { + (H[C] = at++), + (H._state = void 0), + (H._result = void 0), + (H._subscribers = []); + } + var ot = (function () { + function H(D, U) { + (this._instanceConstructor = D), + (this.promise = new D(L)), + this.promise[C] || vt(this.promise), + f(U) + ? ((this.length = U.length), + (this._remaining = U.length), + (this._result = new Array(this.length)), + 0 === this.length + ? Le(this.promise, this._result) + : ((this.length = this.length || 0), + this._enumerate(U), + 0 === this._remaining && Le(this.promise, this._result))) + : Ye( + this.promise, + new Error("Array Methods must be provided an Array") + ); + } + return ( + (H.prototype._enumerate = function (U) { + for (var X = 0; this._state === F && X < U.length; X++) + this._eachEntry(U[X], X); + }), + (H.prototype._eachEntry = function (U, X) { + var _e = this._instanceConstructor, + Be = _e.resolve; + if (Be === I) { + var $e = void 0, + st = void 0, + ut = !1; + try { + $e = U.then; + } catch (Xt) { + (ut = !0), (st = Xt); + } + if ($e === w && U._state !== F) + this._settledAt(U._state, X, U._result); + else if ("function" != typeof $e) + this._remaining--, (this._result[X] = U); + else if (_e === Ee) { + var St = new _e(L); + ut ? Ye(St, st) : ae(St, U, $e), this._willSettleAt(St, X); + } else + this._willSettleAt( + new _e(function (Xt) { + return Xt(U); + }), + X + ); + } else this._willSettleAt(Be(U), X); + }), + (H.prototype._settledAt = function (U, X, _e) { + var Be = this.promise; + Be._state === F && + (this._remaining--, + 2 === U ? Ye(Be, _e) : (this._result[X] = _e)), + 0 === this._remaining && Le(Be, this._result); + }), + (H.prototype._willSettleAt = function (U, X) { + var _e = this; + Je( + U, + void 0, + function (Be) { + return _e._settledAt(1, X, Be); + }, + function (Be) { + return _e._settledAt(2, X, Be); + } + ); + }), + H + ); + })(); + var Ee = (function () { + function H(D) { + (this[C] = at++), + (this._result = this._state = void 0), + (this._subscribers = []), + L !== D && + ("function" != typeof D && + (function () { + throw new TypeError( + "You must pass a resolver function as the first argument to the promise constructor" + ); + })(), + this instanceof H + ? (function (H, D) { + try { + D( + function (X) { + le(H, X); + }, + function (X) { + Ye(H, X); + } + ); + } catch (U) { + Ye(H, U); + } + })(this, D) + : (function () { + throw new TypeError( + "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function." + ); + })()); + } + return ( + (H.prototype.catch = function (U) { + return this.then(null, U); + }), + (H.prototype.finally = function (U) { + var X = this, + _e = X.constructor; + return p(U) + ? X.then( + function (Be) { + return _e.resolve(U()).then(function () { + return Be; + }); + }, + function (Be) { + return _e.resolve(U()).then(function () { + throw Be; + }); + } + ) + : X.then(U, U); + }), + H + ); + })(); + return ( + (Ee.prototype.then = w), + (Ee.all = function (H) { + return new ot(this, H).promise; + }), + (Ee.race = function (H) { + var D = this; + return f(H) + ? new D(function (U, X) { + for (var _e = H.length, Be = 0; Be < _e; Be++) + D.resolve(H[Be]).then(U, X); + }) + : new D(function (U, X) { + return X(new TypeError("You must pass an array to race.")); + }); + }), + (Ee.resolve = I), + (Ee.reject = function (H) { + var U = new this(L); + return Ye(U, H), U; + }), + (Ee._setScheduler = function (H) { + s = H; + }), + (Ee._setAsap = function (H) { + d = H; + }), + (Ee._asap = d), + (Ee.polyfill = function () { + var H = void 0; + if ("undefined" != typeof global) H = global; + else if ("undefined" != typeof self) H = self; + else + try { + H = Function("return this")(); + } catch (X) { + throw new Error( + "polyfill failed because global object is unavailable in this environment" + ); + } + var D = H.Promise; + if (D) { + var U = null; + try { + U = Object.prototype.toString.call(D.resolve()); + } catch (X) {} + if ("[object Promise]" === U && !D.cast) return; + } + H.Promise = Ee; + }), + (Ee.Promise = Ee), + Ee + ); + })(); + }, + 1302: function (ye, j, p) { + var n; + !(function (f, _) { + var m = {}; + !(function (f) { + "use strict"; + (f.__esModule = !0), (f.digestLength = 32), (f.blockSize = 64); + var _ = new Uint32Array([ + 1116352408, + 1899447441, + 3049323471, + 3921009573, + 961987163, + 1508970993, + 2453635748, + 2870763221, + 3624381080, + 310598401, + 607225278, + 1426881987, + 1925078388, + 2162078206, + 2614888103, + 3248222580, + 3835390401, + 4022224774, + 264347078, + 604807628, + 770255983, + 1249150122, + 1555081692, + 1996064986, + 2554220882, + 2821834349, + 2952996808, + 3210313671, + 3336571891, + 3584528711, + 113926993, + 338241895, + 666307205, + 773529912, + 1294757372, + 1396182291, + 1695183700, + 1986661051, + 2177026350, + 2456956037, + 2730485921, + 2820302411, + 3259730800, + 3345764771, + 3516065817, + 3600352804, + 4094571909, + 275423344, + 430227734, + 506948616, + 659060556, + 883997877, + 958139571, + 1322822218, + 1537002063, + 1747873779, + 1955562222, + 2024104815, + 2227730452, + 2361852424, + 2428436474, + 2756734187, + 3204031479, + 3329325298, + ]); + function m(l, g, b, y, x) { + for (var T, O, M, A, S, w, I, C, L, F, ie, Y, Z; x >= 64; ) { + for ( + T = g[0], + O = g[1], + M = g[2], + A = g[3], + S = g[4], + w = g[5], + I = g[6], + C = g[7], + F = 0; + F < 16; + F++ + ) + l[F] = + ((255 & b[(ie = y + 4 * F)]) << 24) | + ((255 & b[ie + 1]) << 16) | + ((255 & b[ie + 2]) << 8) | + (255 & b[ie + 3]); + for (F = 16; F < 64; F++) + l[F] = + (((Y = + (((L = l[F - 2]) >>> 17) | (L << 15)) ^ + ((L >>> 19) | (L << 13)) ^ + (L >>> 10)) + + l[F - 7]) | + 0) + + (((Z = + (((L = l[F - 15]) >>> 7) | (L << 25)) ^ + ((L >>> 18) | (L << 14)) ^ + (L >>> 3)) + + l[F - 16]) | + 0); + for (F = 0; F < 64; F++) + (Y = + ((((((S >>> 6) | (S << 26)) ^ + ((S >>> 11) | (S << 21)) ^ + ((S >>> 25) | (S << 7))) + + ((S & w) ^ (~S & I))) | + 0) + + ((C + ((_[F] + l[F]) | 0)) | 0)) | + 0), + (Z = + ((((T >>> 2) | (T << 30)) ^ + ((T >>> 13) | (T << 19)) ^ + ((T >>> 22) | (T << 10))) + + ((T & O) ^ (T & M) ^ (O & M))) | + 0), + (C = I), + (I = w), + (w = S), + (S = (A + Y) | 0), + (A = M), + (M = O), + (O = T), + (T = (Y + Z) | 0); + (g[0] += T), + (g[1] += O), + (g[2] += M), + (g[3] += A), + (g[4] += S), + (g[5] += w), + (g[6] += I), + (g[7] += C), + (y += 64), + (x -= 64); + } + return y; + } + var s = (function () { + function l() { + (this.digestLength = f.digestLength), + (this.blockSize = f.blockSize), + (this.state = new Int32Array(8)), + (this.temp = new Int32Array(64)), + (this.buffer = new Uint8Array(128)), + (this.bufferLength = 0), + (this.bytesHashed = 0), + (this.finished = !1), + this.reset(); + } + return ( + (l.prototype.reset = function () { + return ( + (this.state[0] = 1779033703), + (this.state[1] = 3144134277), + (this.state[2] = 1013904242), + (this.state[3] = 2773480762), + (this.state[4] = 1359893119), + (this.state[5] = 2600822924), + (this.state[6] = 528734635), + (this.state[7] = 1541459225), + (this.bufferLength = 0), + (this.bytesHashed = 0), + (this.finished = !1), + this + ); + }), + (l.prototype.clean = function () { + for (var g = 0; g < this.buffer.length; g++) this.buffer[g] = 0; + for (g = 0; g < this.temp.length; g++) this.temp[g] = 0; + this.reset(); + }), + (l.prototype.update = function (g, b) { + if ((void 0 === b && (b = g.length), this.finished)) + throw new Error( + "SHA256: can't update because hash was finished." + ); + var y = 0; + if (((this.bytesHashed += b), this.bufferLength > 0)) { + for (; this.bufferLength < 64 && b > 0; ) + (this.buffer[this.bufferLength++] = g[y++]), b--; + 64 === this.bufferLength && + (m(this.temp, this.state, this.buffer, 0, 64), + (this.bufferLength = 0)); + } + for ( + b >= 64 && + ((y = m(this.temp, this.state, g, y, b)), (b %= 64)); + b > 0; + + ) + (this.buffer[this.bufferLength++] = g[y++]), b--; + return this; + }), + (l.prototype.finish = function (g) { + if (!this.finished) { + var b = this.bytesHashed, + y = this.bufferLength, + x = (b / 536870912) | 0, + T = b << 3, + O = b % 64 < 56 ? 64 : 128; + this.buffer[y] = 128; + for (var M = y + 1; M < O - 8; M++) this.buffer[M] = 0; + (this.buffer[O - 8] = (x >>> 24) & 255), + (this.buffer[O - 7] = (x >>> 16) & 255), + (this.buffer[O - 6] = (x >>> 8) & 255), + (this.buffer[O - 5] = (x >>> 0) & 255), + (this.buffer[O - 4] = (T >>> 24) & 255), + (this.buffer[O - 3] = (T >>> 16) & 255), + (this.buffer[O - 2] = (T >>> 8) & 255), + (this.buffer[O - 1] = (T >>> 0) & 255), + m(this.temp, this.state, this.buffer, 0, O), + (this.finished = !0); + } + for (M = 0; M < 8; M++) + (g[4 * M + 0] = (this.state[M] >>> 24) & 255), + (g[4 * M + 1] = (this.state[M] >>> 16) & 255), + (g[4 * M + 2] = (this.state[M] >>> 8) & 255), + (g[4 * M + 3] = (this.state[M] >>> 0) & 255); + return this; + }), + (l.prototype.digest = function () { + var g = new Uint8Array(this.digestLength); + return this.finish(g), g; + }), + (l.prototype._saveState = function (g) { + for (var b = 0; b < this.state.length; b++) + g[b] = this.state[b]; + }), + (l.prototype._restoreState = function (g, b) { + for (var y = 0; y < this.state.length; y++) + this.state[y] = g[y]; + (this.bytesHashed = b), + (this.finished = !1), + (this.bufferLength = 0); + }), + l + ); + })(); + f.Hash = s; + var d = (function () { + function l(g) { + (this.inner = new s()), + (this.outer = new s()), + (this.blockSize = this.inner.blockSize), + (this.digestLength = this.inner.digestLength); + var b = new Uint8Array(this.blockSize); + if (g.length > this.blockSize) + new s().update(g).finish(b).clean(); + else for (var y = 0; y < g.length; y++) b[y] = g[y]; + for (y = 0; y < b.length; y++) b[y] ^= 54; + for (this.inner.update(b), y = 0; y < b.length; y++) b[y] ^= 106; + for ( + this.outer.update(b), + this.istate = new Uint32Array(8), + this.ostate = new Uint32Array(8), + this.inner._saveState(this.istate), + this.outer._saveState(this.ostate), + y = 0; + y < b.length; + y++ + ) + b[y] = 0; + } + return ( + (l.prototype.reset = function () { + return ( + this.inner._restoreState(this.istate, this.inner.blockSize), + this.outer._restoreState(this.ostate, this.outer.blockSize), + this + ); + }), + (l.prototype.clean = function () { + for (var g = 0; g < this.istate.length; g++) + this.ostate[g] = this.istate[g] = 0; + this.inner.clean(), this.outer.clean(); + }), + (l.prototype.update = function (g) { + return this.inner.update(g), this; + }), + (l.prototype.finish = function (g) { + return ( + this.outer.finished + ? this.outer.finish(g) + : (this.inner.finish(g), + this.outer.update(g, this.digestLength).finish(g)), + this + ); + }), + (l.prototype.digest = function () { + var g = new Uint8Array(this.digestLength); + return this.finish(g), g; + }), + l + ); + })(); + function u(l) { + var g = new s().update(l), + b = g.digest(); + return g.clean(), b; + } + function h(l, g) { + var b = new d(l).update(g), + y = b.digest(); + return b.clean(), y; + } + function r(l, g, b, y) { + var x = y[0]; + if (0 === x) throw new Error("hkdf: cannot expand more"); + g.reset(), + x > 1 && g.update(l), + b && g.update(b), + g.update(y), + g.finish(l), + y[0]++; + } + (f.HMAC = d), (f.hash = u), (f.default = u), (f.hmac = h); + var o = new Uint8Array(f.digestLength); + (f.hkdf = function (l, g, b, y) { + void 0 === g && (g = o), void 0 === y && (y = 32); + for ( + var x = new Uint8Array([1]), + T = h(g, l), + O = new d(T), + M = new Uint8Array(O.digestLength), + A = M.length, + S = new Uint8Array(y), + w = 0; + w < y; + w++ + ) + A === M.length && (r(M, O, b, x), (A = 0)), (S[w] = M[A++]); + return O.clean(), M.fill(0), x.fill(0), S; + }), + (f.pbkdf2 = function (l, g, b, y) { + for ( + var x = new d(l), + T = x.digestLength, + O = new Uint8Array(4), + M = new Uint8Array(T), + A = new Uint8Array(T), + S = new Uint8Array(y), + w = 0; + w * T < y; + w++ + ) { + var I = w + 1; + (O[0] = (I >>> 24) & 255), + (O[1] = (I >>> 16) & 255), + (O[2] = (I >>> 8) & 255), + (O[3] = (I >>> 0) & 255), + x.reset(), + x.update(g), + x.update(O), + x.finish(A); + for (var C = 0; C < T; C++) M[C] = A[C]; + for (C = 2; C <= b; C++) { + x.reset(), x.update(A).finish(A); + for (var L = 0; L < T; L++) M[L] ^= A[L]; + } + for (C = 0; C < T && w * T + C < y; C++) S[w * T + C] = M[C]; + } + for (w = 0; w < T; w++) M[w] = A[w] = 0; + for (w = 0; w < 4; w++) O[w] = 0; + return x.clean(), S; + }); + })(m); + var s = m.default; + for (var d in m) s[d] = m[d]; + "object" == typeof ye.exports + ? (ye.exports = s) + : void 0 !== + (n = function () { + return s; + }.call(m, p, m, ye)) && (ye.exports = n); + })(); + }, + 5457: (ye) => { + ye.exports = class { + constructor(n) { + this.capabilityStatement = n; + } + serverCan(n) { + return this.supportFor({ + capabilityType: "interaction", + where: { code: n }, + }); + } + resourceCan(n, f) { + return this.supportFor({ + resourceType: n, + capabilityType: "interaction", + where: { code: f }, + }); + } + serverSearch(n) { + return this.supportFor({ + capabilityType: "searchParam", + where: { name: n }, + }); + } + resourceSearch(n, f) { + return this.supportFor({ + resourceType: n, + capabilityType: "searchParam", + where: { name: f }, + }); + } + supportFor({ resourceType: n, capabilityType: f, where: _ } = {}) { + let m; + if ( + ((m = n + ? this.resourceCapabilities({ resourceType: n }) + : this.serverCapabilities()), + !m) + ) + return !1; + const s = m[f]; + if (_ && s) { + const d = Object.keys(_)[0]; + return void 0 !== s.find((h) => h[d] === _[d]); + } + return void 0 !== s; + } + interactionsFor({ resourceType: n } = {}) { + const f = this.resourceCapabilities({ resourceType: n }); + return void 0 === f ? [] : f.interaction.map((_) => _.code); + } + searchParamsFor({ resourceType: n } = {}) { + const f = this.resourceCapabilities({ resourceType: n }); + return void 0 === f || void 0 === f.searchParam + ? [] + : f.searchParam.map((_) => _.name); + } + resourceCapabilities({ resourceType: n } = {}) { + return this.serverCapabilities().resource.find((m) => m.type === n); + } + capabilityContents({ resourceType: n, capabilityType: f } = {}) { + const _ = this.resourceCapabilities({ resourceType: n }); + if (void 0 !== _) return _[f]; + } + serverCapabilities() { + return this.capabilityStatement.rest.find((n) => "server" === n.mode); + } + }; + }, + 6336: (ye, j, p) => { + var n = p(8926).default; + const f = p(3230), + { authFromCapability: _, authFromWellKnown: m } = p(231), + s = p(3302), + d = p(6357), + u = p(8279), + { createQueryString: h, validResourceType: r } = p(7800), + { FetchQueue: o } = p(7011), + { deprecatePaginationArgs: i, deprecateHeaders: c } = p(4712), + l = p(5457); + (ye.exports = class { + constructor({ + baseUrl: y, + customHeaders: x, + requestOptions: T, + requestSigner: O, + bearerToken: M, + } = {}) { + (this.httpClient = new s({ + baseUrl: y, + customHeaders: x, + requestOptions: T, + requestSigner: O, + })), + M && (this.httpClient.bearerToken = M), + (this.resolver = new d(this)), + (this.pagination = new u(this.httpClient)); + } + static httpFor(y) { + return { request: s.requestFor(y), response: s.responseFor(y) }; + } + get baseUrl() { + return this.httpClient && this.httpClient.baseUrl; + } + set baseUrl(y) { + this.httpClient && (this.httpClient.baseUrl = y); + } + get customHeaders() { + return this.httpClient.customHeaders; + } + set customHeaders(y) { + this.httpClient.customHeaders = y; + } + set bearerToken(y) { + this.httpClient.bearerToken = y; + } + resolve({ + reference: y, + context: x, + headers: T, + options: O = {}, + } = {}) { + return this.resolver.resolve({ + reference: y, + context: x, + options: c(O, T), + }); + } + smartAuthMetadata({ headers: y, options: x = {} } = {}) { + var T = this; + return n(function* () { + const O = { options: c(x, y) }; + O.options.headers || (O.options.headers = {}), + (O.options.headers.accept = + "application/fhir+json,application/json"); + const M = T.baseUrl.replace(/\/*$/, "/"), + A = new o(), + S = A.buildJob(), + w = A.buildJob(), + I = A.buildJob(), + C = []; + return new Promise((L, F) => { + function ie(Y) { + C.push(Y) === A.numJobs && + F(new Error(C.map((Z) => Z.message).join("; "))); + } + T.httpClient + .request( + "GET", + `${M}.well-known/smart-configuration`, + w.addSignalOption(O) + ) + .then((Y) => (A.safeAbortOthers(w), L(m(Y)))) + .catch((Y) => ie(Y)), + T.capabilityStatement(S.addSignalOption(O)) + .then((Y) => (A.safeAbortOthers(S), L(_(Y)))) + .catch((Y) => ie(Y)), + T.httpClient + .request( + "GET", + `${M}.well-known/openid-configuration`, + I.addSignalOption(O) + ) + .then((Y) => (A.safeAbortOthers(I), L(m(Y)))) + .catch((Y) => ie(Y)); + }); + })(); + } + capabilityStatement({ headers: y, options: x = {} } = {}) { + return ( + this.metadata || + (this.metadata = this.httpClient.get("metadata", c(x, y))), + this.metadata + ); + } + request(y, { method: x = "GET", options: T = {}, body: O } = {}) { + return ( + T.method && + T.method !== x && + console.warn( + `WARNING: 'options.method' has been specified: ${T.method} but will be ignored. Use 'method' instead.` + ), + this.httpClient.request(x, y, T, O) + ); + } + read({ resourceType: y, id: x, headers: T, options: O = {} } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + return this.httpClient.get(`${y}/${x}`, c(O, T)); + } + vread({ + resourceType: y, + id: x, + version: T, + headers: O, + options: M = {}, + } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + return this.httpClient.get(`${y}/${x}/_history/${T}`, c(M, O)); + } + create({ resourceType: y, body: x, headers: T, options: O = {} } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + return this.httpClient.post(y, x, c(O, T)); + } + delete({ resourceType: y, id: x, headers: T, options: O = {} } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + return this.httpClient.delete(`${y}/${x}`, c(O, T)); + } + update({ + resourceType: y, + id: x, + searchParams: T, + body: O, + headers: M, + options: A = {}, + } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + if (x && T) + throw new Error( + "Conditional update with search params cannot be with id", + y + ); + if (T) { + const S = h(T); + return this.httpClient.put(`${y}?${S}`, O, c(A, M)); + } + return this.httpClient.put(`${y}/${x}`, O, c(A, M)); + } + patch({ + resourceType: y, + id: x, + JSONPatch: T, + headers: O, + options: M = {}, + } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + const S = { + ...(c(M, O).headers || {}), + "Content-Type": "application/json-patch+json", + }; + return this.httpClient.patch(`${y}/${x}`, T, { ...M, headers: S }); + } + batch({ body: y, headers: x, options: T = {} } = {}) { + return this.httpClient.post("/", y, c(T, x)); + } + transaction({ body: y, headers: x, options: T = {} } = {}) { + return this.httpClient.post("/", y, c(T, x)); + } + operation({ + name: y, + resourceType: x, + id: T, + method: O = "POST", + input: M, + options: A = {}, + } = {}) { + const S = ["/"]; + if (x) { + if (!r(x)) throw new Error("Invalid resourceType", x); + S.push(`${x}/`); + } + return ( + T && S.push(`${T}/`), + S.push(`${y.startsWith("$") ? y : `$${y}`}`), + "POST" === O.toUpperCase() + ? this.httpClient.post(S.join(""), M, A) + : "GET" === O.toUpperCase() + ? (M && S.push(`?${f.stringify(M)}`), + this.httpClient.get(S.join(""), A)) + : void 0 + ); + } + nextPage(y, x) { + const { bundle: T, options: O = {} } = i(y, x); + return this.pagination.nextPage(T, O); + } + prevPage(y, x) { + const { bundle: T, options: O = {} } = i(y, x); + return this.pagination.prevPage(T, O); + } + search({ + resourceType: y, + compartment: x, + searchParams: T, + headers: O, + options: M = {}, + } = {}) { + if (y && !r(y)) throw new Error("Invalid resourceType", y); + if (x && y) + return this.compartmentSearch({ + resourceType: y, + compartment: x, + searchParams: T, + options: c(M, O), + }); + if (y) + return this.resourceSearch({ + resourceType: y, + searchParams: T, + options: c(M, O), + }); + if (T instanceof Object && Object.keys(T).length > 0) + return this.systemSearch({ searchParams: T, options: c(M, O) }); + throw new Error( + "search requires either searchParams or a resourceType" + ); + } + resourceSearch({ + resourceType: y, + searchParams: x, + headers: T, + options: O = {}, + } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + let M = y; + return ( + O.postSearch && (M += "/_search"), + this.baseSearch({ + searchPath: M, + searchParams: x, + headers: T, + options: O, + }) + ); + } + systemSearch({ searchParams: y, headers: x, options: T = {} } = {}) { + return this.baseSearch({ + searchPath: "/_search", + searchParams: y, + headers: x, + options: T, + }); + } + compartmentSearch({ + resourceType: y, + compartment: x, + searchParams: T, + headers: O, + options: M = {}, + } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + const { resourceType: A, id: S } = x; + if (!r(A)) throw new Error("Invalid compartmentType", A); + let w = `/${A}/${S}/${y}`; + return ( + M.postSearch && (w += "/_search"), + this.baseSearch({ + searchPath: w, + searchParams: T, + headers: O, + options: M, + }) + ); + } + baseSearch({ searchPath: y, searchParams: x, headers: T, options: O }) { + const M = h(x), + A = c(O, T); + return this[O.postSearch ? "postSearch" : "getSearch"](y, M, A); + } + postSearch(y, x, T) { + const M = { + "Content-Type": "application/x-www-form-urlencoded", + ...T.headers, + }, + A = { ...T, headers: M }; + return this.httpClient.post(y, x, A); + } + getSearch(y, x, T) { + let O = y; + return x && (O += `?${x}`), this.httpClient.get(O, T); + } + history({ resourceType: y, id: x, headers: T, options: O = {} } = {}) { + if (y && !r(y)) throw new Error("Invalid resourceType", y); + return x && y + ? this.resourceHistory({ resourceType: y, id: x, options: c(O, T) }) + : y + ? this.typeHistory({ resourceType: y, options: c(O, T) }) + : this.systemHistory({ options: c(O, T) }); + } + resourceHistory({ + resourceType: y, + id: x, + headers: T, + options: O = {}, + } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + return this.httpClient.get(`${y}/${x}/_history`, c(O, T)); + } + typeHistory({ resourceType: y, headers: x, options: T = {} } = {}) { + if (!r(y)) throw new Error("Invalid resourceType", y); + return this.httpClient.get(`${y}/_history`, c(T, x)); + } + systemHistory({ headers: y, options: x = {} } = {}) { + return this.httpClient.get("_history", c(x, y)); + } + }), + (ye.exports.CapabilityTool = l); + }, + 4712: (ye) => { + ye.exports = { + deprecateHeaders: (n, f) => + f + ? (console.warn( + "WARNING: headers is deprecated and will be removed in the next major version. Use options.headers instead." + ), + console.warn(JSON.stringify(f, null, " ")), + { headers: f, ...n }) + : n, + deprecatePaginationArgs: (n, f) => { + if (Object.prototype.hasOwnProperty.call(n, "resourceType")) { + console.warn( + "WARNING: positional parameters for pagination methods are deprecated and will be removed in the next major version. Call with ({ bundle, options }) rather than (bundle, headers)" + ); + const _ = { bundle: n }; + return f && (_.options = { headers: f }), _; + } + return n; + }, + }; + }, + 7011: (ye, j, p) => { + const { AbortController: n } = p(2398); + class f { + constructor() { + (this.controller = new n()), (this.resolving = !1); + } + addSignalOption(s) { + return { signal: this.controller.signal, ...s }; + } + safeAbort() { + this.resolving || this.controller.abort(); + } + } + ye.exports = { + FetchQueue: class { + constructor() { + (this.jobs = []), (this.numJobs = 0); + } + buildJob() { + const s = new f(); + return (this.numJobs = this.jobs.push(s)), s; + } + safeAbortOthers(s) { + s.resolving = !0; + for (let d = 0, u = this.numJobs; d < u; d += 1) + s !== this.jobs[d] && this.jobs[d].safeAbort(); + } + }, + FetchJob: f, + }; + }, + 3113: (ye) => { + ye.exports = { + fhirReferenceRegEx: /^((http|https):\/\/([A-Za-z0-9\\.:%$]*\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodySite|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Conformance|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DataElement|DecisionSupportRule|DecisionSupportServiceModule|DetectedIssue|Device|DeviceComponent|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseRequest|DeviceUseStatement|DiagnosticOrder|DiagnosticReport|DiagnosticRequest|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|EligibilityRequest|EligibilityResponse|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EntryDefinition|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExpansionProfile|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceRequest|GuidanceResponse|HealthcareService|ImagingExcerpt|ImagingManifest|ImagingObjectSelection|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|ImplementationGuideInput|ImplementationGuideOutput|InsurancePlan|Invoice|ItemInstance|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationOrder|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductClinicals|MedicinalProductContraindication|MedicinalProductDeviceSpec|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|ModuleDefinition|ModuleMetadata|MolecularSequence|NamingSystem|NutritionOrder|NutritionRequest|Observation|ObservationDefinition|OccupationalData|OperationDefinition|OperationOutcome|Order|OrderResponse|OrderSet|Organization|OrganizationAffiliation|OrganizationRole|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|ProcedureRequest|ProcessRequest|ProcessResponse|ProductPlan|Protocol|Provenance|Questionnaire|QuestionnaireResponse|ReferralRequest|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|Sequence|ServiceDefinition|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|UserSession|ValueSet|VerificationResult|VisionPrescription)\/[A-Za-z0-9\-.]{1,256}(\/_history\/[A-Za-z0-9\-.]{1,256})?$/, + }; + }, + 3302: (ye, j, p) => { + var n = p(8926).default; + p(6604).polyfill(), p(5618); + const { logRequestError: f, logRequestInfo: _, logResponseInfo: m } = p( + 6988 + ), + s = { accept: "application/fhir+json" }, + d = "__response", + u = "__request"; + let r, + o, + h = !1; + try { + (r = p(9426)), (o = p(9426).HttpsAgent), (h = !0); + } catch (b) { + _("HTTP Agent is not available"); + } + const i = new WeakMap(); + function l({ status: b, data: y, method: x, headers: T, url: O }) { + const M = { + response: { status: b, data: y }, + config: { method: x, url: O, headers: T }, + }; + return f(M), M; + } + ye.exports = class Fl { + static lcKeys(y) { + return ( + y && + Object.keys(y).reduce( + (x, T) => ((x[T.toLowerCase()] = y[T]), x), + {} + ) + ); + } + constructor({ + baseUrl: y, + customHeaders: x = {}, + requestOptions: T = {}, + requestSigner: O, + }) { + (this.baseUrl = y), + (this.customHeaders = x), + (this.baseRequestOptions = T), + (this.requestSigner = O); + } + set baseUrl(y) { + if (!y) throw new Error("baseUrl cannot be blank"); + if ("string" != typeof y) throw new Error("baseUrl must be a string"); + this.baseUrlValue = y; + } + get baseUrl() { + return this.baseUrlValue; + } + static responseFor(y) { + return y[d]; + } + static requestFor(y) { + return y[u]; + } + set bearerToken(y) { + this.authHeader = { authorization: `Bearer ${y}` }; + } + requestBuilder(y, x, T, O) { + const M = { + ...this.baseRequestOptions, + ...T, + method: y, + body: ((b = O), "string" == typeof b ? b : JSON.stringify(b)), + }; + var b; + let A = {}; + return ( + h || + (A = { + keepalive: + !Object.prototype.hasOwnProperty.call(M, "keepalive") || + M.keepalive, + }), + Object.assign( + M, + A, + { headers: new Headers(this.mergeHeaders(T.headers)) }, + (function (b, y = {}) { + const x = { baseUrl: b, agentOptions: y }; + return h + ? (i.get(x) || + (b.startsWith("https") + ? i.set(x, { agent: new o(y) }) + : i.set(x, { agent: new r(y) })), + i.get(x)) + : {}; + })(this.baseUrl, M) + ), + this.requestSigner && this.requestSigner(x, M), + new Request(x, M) + ); + } + request(y, x, T = {}, O) { + var M = this; + return n(function* () { + const A = M.expandUrl(x), + S = M.requestBuilder(y, A, T, O); + _(y, A, S.headers); + const w = yield fetch(S), + { status: I, headers: C } = w; + m({ status: I, response: w }); + const L = yield w.text(); + let F = {}; + if (L) + try { + F = JSON.parse(L); + } catch (ie) { + throw ( + ((F = L), + l({ status: I, data: F, method: y, headers: C, url: A })) + ); + } + if (!w.ok) + throw l({ status: I, data: F, method: y, headers: C, url: A }); + return ( + Object.defineProperty(F, d, { + writable: !1, + enumerable: !1, + value: w, + }), + Object.defineProperty(F, u, { + writable: !1, + enumerable: !1, + value: S, + }), + F + ); + })(); + } + get(y, x) { + var T = this; + return n(function* () { + return T.request("GET", y, x); + })(); + } + delete(y, x) { + var T = this; + return n(function* () { + return T.request("DELETE", y, x); + })(); + } + put(y, x, T = {}) { + var O = this; + return n(function* () { + const M = { + "content-type": "application/fhir+json", + ...Fl.lcKeys(T.headers), + }, + A = { ...T, headers: M }; + return O.request("PUT", y, A, x); + })(); + } + post(y, x, T = {}) { + var O = this; + return n(function* () { + const M = { + "content-type": "application/fhir+json", + ...Fl.lcKeys(T.headers), + }, + A = { ...T, headers: M }; + return O.request("POST", y, A, x); + })(); + } + patch(y, x, T) { + var O = this; + return n(function* () { + return O.request("PATCH", y, T, x); + })(); + } + expandUrl(y = "") { + return y.toLowerCase().startsWith("http") + ? y + : this.baseUrl.endsWith("/") && y.startsWith("/") + ? this.baseUrl + y.slice(1) + : this.baseUrl.endsWith("/") || y.startsWith("/") + ? this.baseUrl + y + : `${this.baseUrl}/${y}`; + } + mergeHeaders(y) { + const { lcKeys: x } = Fl; + return { + ...x(s), + ...x(this.authHeader), + ...x(this.customHeaders), + ...x(y), + }; + } + }; + }, + 6988: (ye, j, p) => { + const n = p(642), + f = p(1455)("fhir-kit-client:error"), + _ = p(1455)("fhir-kit-client:info"); + function m(o) { + return n(o); + } + function s(o) { + return m(o.raw && "function" == typeof o.raw ? o.raw() : o); + } + ye.exports = { + logRequestError: function (o) { + !f.enabled || + (f("!!! Error"), + o.response && f(` Status: ${o.response.status}`), + o.config && + (f(` ${o.config.method.toUpperCase()}: ${o.config.url}`), + f(` Headers: ${s(o.config.headers)}`)), + o.response && o.response.data && f(m(o.response.data)), + f("!!! Request Error")); + }, + logRequestInfo: function (o, i, c) { + !_.enabled || + (i && _(`Request: ${o.toUpperCase()} ${i.toString()}`), + _(`Request Headers: ${s(c)}`)); + }, + logResponseInfo: function (o) { + !_.enabled || (_(`Response: ${o.status}`), o.data && _(m(o.data))); + }, + logError: function (o) { + !f.enabled || f(o); + }, + }; + }, + 8279: (ye) => { + ye.exports = class { + constructor(n) { + this.httpClient = n; + } + nextPage(n, { headers: f } = {}) { + const _ = n.link.find((m) => "next" === m.relation); + return _ ? this.httpClient.get(_.url, { headers: f }) : void 0; + } + prevPage(n, { headers: f } = {}) { + const _ = n.link.find((m) => m.relation.match(/^prev(ious)?$/)); + return _ ? this.httpClient.get(_.url, { headers: f }) : void 0; + } + }; + }, + 6357: (ye, j, p) => { + var n = p(8926).default; + const { splitReference: f } = p(7800), + { deprecateHeaders: _ } = p(4712); + ye.exports = class { + constructor(m) { + this.client = m; + } + resolve({ + reference: m, + context: s, + headers: d, + options: u = {}, + } = {}) { + var h = this; + return n(function* () { + return void 0 === s + ? m.startsWith("http") + ? h.resolveAbsoluteReference(m, _(u, d)) + : h.client.httpClient.get(m, _(u, d)) + : m.startsWith("#") + ? h.resolveContainedReference(m, s) + : h.resolveBundleReference(m, s, _(u, d)); + })(); + } + resolveAbsoluteReference(m, s) { + var d = this; + return n(function* () { + if (m.startsWith(d.client.baseUrl)) + return d.client.httpClient.get(m, s); + const { baseUrl: u, resourceType: h, id: r } = f(m); + return new (p(6336))({ baseUrl: u }).read({ + resourceType: h, + id: r, + options: s, + }); + })(); + } + resolveContainedReference(m, s) { + if (s.contained) { + const d = m.slice(1), + u = s.contained.find((h) => h.id === d); + if (u) return u; + } + throw new Error(`Unable to resolve contained reference: ${m}`); + } + resolveBundleReference(m, s, d) { + var u = this; + return n(function* () { + const h = new RegExp(`(^|/)${m}$`), + r = s.entry.find((o) => h.test(o.fullUrl)); + return r ? r.resource : u.resolve({ reference: m, options: d }); + })(); + } + }; + }, + 231: (ye, j, p) => { + const { logError: f } = p(6988); + ye.exports = { + authFromCapability: function (s) { + const d = {}; + try { + return ( + s.rest.forEach((u) => { + u.security.extension + .find( + (r) => + "http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris" === + r.url + ) + .extension.forEach((r) => { + switch (r.url) { + case "authorize": + d.authorizeUrl = new URL(r.valueUri); + break; + case "token": + d.tokenUrl = new URL(r.valueUri); + break; + case "register": + d.registerUrl = new URL(r.valueUri); + break; + case "manage": + d.manageUrl = new URL(r.valueUri); + } + }); + }), + d + ); + } catch (u) { + return f(u), d; + } + }, + authFromWellKnown: function (s) { + const { + authorization_endpoint: d, + token_endpoint: u, + registration_endpoint: h, + } = s; + return { + authorizeUrl: d && new URL(d), + tokenUrl: u && new URL(u), + registerUrl: h && new URL(h), + }; + }, + }; + }, + 7800: (ye, j, p) => { + const n = p(3230), + { fhirReferenceRegEx: f } = p(3113); + ye.exports = { + createQueryString: function (d) { + if (d instanceof Object && Object.keys(d).length > 0) + return n.stringify(d); + }, + splitReference: function (d) { + if (!d.match(f)) + throw new Error(`${d} is not a recognized FHIR reference`); + let u, + h = d; + d.startsWith("http") && + (([, u] = f.exec(d)), + (h = d.slice(u.length)), + u.endsWith("/") && (u = u.slice(0, -1))); + const [r, o] = h.split("/"); + return { baseUrl: u, resourceType: r, id: o }; + }, + validResourceType: function (d) { + return !d.startsWith("/") && !d.includes(":") && /\S/.test(d); + }, + }; + }, + 3853: (ye) => { + ye.exports = { + aggregateMacro: function (p, n, f) { + return p.reduce( + (_, m, s) => ((this.$index = s), (this.$total = n(m))), + (this.$total = f) + ); + }, + }; + }, + 3142: (ye, j, p) => { + var n = p(9640), + f = {}; + function _(m, s) { + if (0 == s.length) return !0; + for (var d = 0; d < m.length; d++) if (n(m[d], s[0])) return !0; + return !1; + } + (f.contains = function (m, s) { + if (0 == s.length) return []; + if (0 == m.length) return !1; + if (s.length > 1) + throw new Error( + "Expected singleton on right side of contains, got " + + JSON.stringify(s) + ); + return _(m, s); + }), + (f.in = function (m, s) { + if (0 == m.length) return []; + if (0 == s.length) return !1; + if (m.length > 1) + throw new Error( + "Expected singleton on right side of in, got " + JSON.stringify(s) + ); + return _(s, m); + }), + (ye.exports = f); + }, + 6856: (ye, j, p) => { + var n = {}, + f = p(6127); + (n.union = function (_, m) { + return f.distinctFn(_.concat(m)); + }), + (n.combineFn = function (_, m) { + return _.concat(m); + }), + (ye.exports = n); + }, + 9397: (ye) => { + ye.exports = { + reset: function () { + (this.nowDate = new Date()), + (this.today = null), + (this.now = null), + (this.localTimezoneOffset = null); + }, + today: null, + now: null, + }; + }, + 3425: (ye, j, p) => { + var n = {}; + const f = p(2563), + _ = p(9397), + m = f.FP_DateTime; + (n.now = function () { + if (!_.now) { + var d = m.isoDateTime(_.nowDate); + _.now = new m(d); + } + return _.now; + }), + (n.today = function () { + if (!_.today) { + var d = m.isoDate(_.nowDate); + _.today = new m(d); + } + return _.today; + }), + (ye.exports = n); + }, + 9640: (ye, j, p) => { + var f = p(2563).FP_Type, + _ = p(4569), + m = p(7601), + s = Array.prototype.slice, + d = Object.keys, + u = function (g) { + return "[object Arguments]" == Object.prototype.toString.call(g); + }; + function h(g) { + return "string" == typeof g || g instanceof String; + } + function r(g) { + return !isNaN(parseFloat(g)) && isFinite(g); + } + function o(g) { + return g.toUpperCase().replace(/\s+/, " "); + } + var i = function (g, b, y) { + if ((y || (y = {}), (g = _.valData(g)) === (b = _.valData(b)))) + return !0; + if (y.fuzzy) { + if (h(g) && h(b)) return o(g) == o(b); + if (r(g) && r(b)) return m.isEquivalent(g, b); + } else if ("number" == typeof g && "number" == typeof b) + return m.isEqual(g, b); + if (g instanceof Date && b instanceof Date) + return g.getTime() === b.getTime(); + if (!g || !b || ("object" != typeof g && "object" != typeof b)) + return y.strict ? g === b : g == b; + var x = g instanceof f, + T = b instanceof f; + if (x && T) return y.fuzzy ? g.equivalentTo(b) : g.equals(b); + if (x || T) { + let O, M; + x ? ((O = g), (M = b)) : ((O = b), (M = g)); + let A = "string" == typeof M; + if (A) { + let S = O.constructor.checkString(M); + A = !!S && (y.fuzzy ? g.equivalentTo(S) : O.equals(S)); + } + return A; + } + return (function (g, b, y) { + var x, T; + if (c(g) || c(b) || g.prototype !== b.prototype) return !1; + if (u(g) || u(b)) + return ( + (g = u(g) ? s.call(g) : g), (b = u(b) ? s.call(b) : b), i(g, b, y) + ); + try { + var O = d(g), + M = d(b); + } catch (A) { + return !1; + } + if (O.length != M.length) return !1; + for (O.sort(), M.sort(), x = O.length - 1; x >= 0; x--) + if (O[x] != M[x]) return !1; + if (1 === O.length) return i(g[(T = O[0])], b[T], y); + for (x = O.length - 1; x >= 0; x--) + if (!i(g[(T = O[x])], b[T], y)) return !1; + return typeof g == typeof b; + })(g, b, y); + }; + function c(g) { + return null == g; + } + ye.exports = i; + }, + 2066: (ye, j, p) => { + var n = p(4569), + f = p(9640), + _ = p(2563); + const m = _.FP_Type, + s = _.FP_DateTime, + d = _.FP_Time; + var u = {}; + function h(i, c) { + return n.isEmpty(i) || n.isEmpty(c) ? [] : f(i, c); + } + function r(i, c) { + return n.isEmpty(i) && n.isEmpty(c) + ? [!0] + : n.isEmpty(i) || n.isEmpty(c) + ? [] + : f(i, c, { fuzzy: !0 }); + } + function o(i, c) { + let l = null; + n.assertAtMostOne(i, "Singleton was expected"), + n.assertAtMostOne(c, "Singleton was expected"), + (i = n.valData(i[0])), + (c = n.valData(c[0])); + let g = i.constructor, + b = c.constructor; + var y; + return ( + g != b && + (g !== String || (b !== s && b !== d) + ? b === String && + (g === s || g === d) && + (y = g.checkString(c)) && + (l = [i, y]) + : (y = b.checkString(i)) && (l = [y, c]), + l || + n.raiseError( + 'Type of "' + + i + + '" (' + + g.name + + ') did not match type of "' + + c + + '" (' + + b.name + + ")", + "InequalityExpression" + )), + l || [i, c] + ); + } + (u.equal = function (i, c) { + return h(i, c); + }), + (u.unequal = function (i, c) { + var l = h(i, c); + return void 0 === l ? void 0 : !l; + }), + (u.equival = function (i, c) { + return r(i, c); + }), + (u.unequival = function (i, c) { + return !r(i, c); + }), + (u.lt = function (i, c) { + if (!i.length || !c.length) return []; + const [l, g] = o(i, c); + if (l instanceof m) { + const b = l.compare(g); + return null === b ? [] : b < 0; + } + return l < g; + }), + (u.gt = function (i, c) { + if (!i.length || !c.length) return []; + const [l, g] = o(i, c); + if (l instanceof m) { + const b = l.compare(g); + return null === b ? [] : b > 0; + } + return l > g; + }), + (u.lte = function (i, c) { + if (!i.length || !c.length) return []; + const [l, g] = o(i, c); + if (l instanceof m) { + const b = l.compare(g); + return null === b ? [] : b <= 0; + } + return l <= g; + }), + (u.gte = function (i, c) { + if (!i.length || !c.length) return []; + const [l, g] = o(i, c); + if (l instanceof m) { + const b = l.compare(g); + return null === b ? [] : b >= 0; + } + return l >= g; + }), + (ye.exports = u); + }, + 6127: (ye, j, p) => { + const n = p(4569), + f = p(8774), + _ = p(9502), + m = {}; + function s(h) { + return JSON.stringify(d(h)); + } + function d(h) { + return "object" == typeof h + ? Array.isArray(h) + ? h.map(d) + : Object.keys(h) + .sort() + .reduce((r, o) => ((r[o] = d(h[o])), r), {}) + : h; + } + function u(h, r) { + let o = h.length <= r.length; + if (o) { + var i = {}; + for (let c = 0, l = h.length; c < l && o; ++c) { + let b = s(n.valData(h[c])), + y = !1; + if (0 === c) + for (let x = 0, T = r.length; x < T; ++x) { + let O = n.valData(r[x]), + M = s(O); + (i[M] = O), (y = y || b === M); + } + else y = !!i[b]; + o = y; + } + } + return o; + } + (m.emptyFn = n.isEmpty), + (m.notFn = function (h) { + let r = _.singleton(h, "Boolean"); + return "boolean" == typeof r ? !r : []; + }), + (m.existsMacro = function (h, r) { + var o = h; + return r ? m.existsMacro(f.whereMacro(h, r)) : !n.isEmpty(o); + }), + (m.allMacro = function (h, r) { + for (let o = 0, i = h.length; o < i; ++o) + if (((this.$index = o), !n.isTrue(r(h[o])))) return [!1]; + return [!0]; + }), + (m.allTrueFn = function (h) { + let r = !0; + for (let o = 0, i = h.length; o < i && r; ++o) + r = !0 === n.assertType(h[o], ["boolean"], "allTrue"); + return [r]; + }), + (m.anyTrueFn = function (h) { + let r = !1; + for (let o = 0, i = h.length; o < i && !r; ++o) + r = !0 === n.assertType(h[o], ["boolean"], "anyTrue"); + return [r]; + }), + (m.allFalseFn = function (h) { + let r = !0; + for (let o = 0, i = h.length; o < i && r; ++o) + r = !1 === n.assertType(h[o], ["boolean"], "allFalse"); + return [r]; + }), + (m.anyFalseFn = function (h) { + let r = !1; + for (let o = 0, i = h.length; o < i && !r; ++o) + r = !1 === n.assertType(h[o], ["boolean"], "anyFalse"); + return [r]; + }), + (m.subsetOfFn = function (h, r) { + return [u(h, r)]; + }), + (m.supersetOfFn = function (h, r) { + return [u(r, h)]; + }), + (m.isDistinctFn = function (h) { + return [h.length === m.distinctFn(h).length]; + }), + (m.distinctFn = function (h) { + let r = []; + if (h.length > 0) { + let o = {}; + for (let i = 0, c = h.length; i < c; ++i) { + let l = h[i], + g = JSON.stringify(l); + void 0 === o[g] && (r.push(l), (o[g] = l)); + } + } + return r; + }), + (m.countFn = function (h) { + return h && h.length ? h.length : 0; + }), + (ye.exports = m); + }, + 2729: (ye, j, p) => { + const n = p(9410), + f = p(4569); + p(7070); + const _ = p(9397); + let m = {}, + s = p(6127), + d = p(8774), + u = p(3853), + h = p(6856), + r = p(9502), + o = p(2066), + i = p(3142), + c = p(2492), + l = p(9835), + g = p(5948), + b = p(3425), + y = p(2306); + const x = p(2563), + { + FP_DateTime: T, + FP_Time: O, + FP_Quantity: M, + FP_Type: A, + ResourceNode: S, + TypeInfo: w, + } = x; + let I = S.makeResNode; + function C(J, ne, ae, le) { + if ("Expr" === ae) + return function (Le) { + return (J.$this = Le), m.doEval(J, f.arraify(Le), le); + }; + if ("AnyAtRoot" === ae) + return (J.$this = J.dataRoot), m.doEval(J, J.dataRoot, le); + if ("Identifier" === ae) { + if ("TermExpression" == le.type) return le.text; + throw new Error( + "Expected identifier node, got " + JSON.stringify(le) + ); + } + if ("TypeSpecifier" === ae) return m.TypeSpecifier(J, ne, le); + J.$this = ne; + var Oe = m.doEval(J, ne, le); + if ("Any" === ae) return Oe; + if (Array.isArray(ae)) { + if (0 == Oe.length) return []; + ae = ae[0]; + } + return r.singleton(Oe, ae); + } + function F(J) { + return null == J || f.isEmpty(J); + } + function ie(J, ne, ae, le) { + var Oe = m.invocationTable[ne]; + if (Oe && Oe.fn) { + var Le = le ? le.length : 0; + if (2 != Le) throw new Error("Infix invoke should have arity 2"); + var Ye = Oe.arity[Le]; + if (Ye) { + for (var Je = [], gt = 0; gt < Le; gt++) + Je.push(C(J, ae, Ye[gt], le[gt])); + if (Oe.nullable && Je.some(F)) return []; + var at = Oe.fn.apply(J, Je); + return f.arraify(at); + } + return console.log(ne + " wrong arity: got " + Le), []; + } + throw new Error("Not impl " + ne); + } + (m.invocationTable = { + empty: { fn: s.emptyFn }, + not: { fn: s.notFn }, + exists: { fn: s.existsMacro, arity: { 0: [], 1: ["Expr"] } }, + all: { fn: s.allMacro, arity: { 1: ["Expr"] } }, + allTrue: { fn: s.allTrueFn }, + anyTrue: { fn: s.anyTrueFn }, + allFalse: { fn: s.allFalseFn }, + anyFalse: { fn: s.anyFalseFn }, + subsetOf: { fn: s.subsetOfFn, arity: { 1: ["AnyAtRoot"] } }, + supersetOf: { fn: s.supersetOfFn, arity: { 1: ["AnyAtRoot"] } }, + isDistinct: { fn: s.isDistinctFn }, + distinct: { fn: s.distinctFn }, + count: { fn: s.countFn }, + where: { fn: d.whereMacro, arity: { 1: ["Expr"] } }, + extension: { fn: d.extension, arity: { 1: ["String"] } }, + select: { fn: d.selectMacro, arity: { 1: ["Expr"] } }, + aggregate: { + fn: u.aggregateMacro, + arity: { 1: ["Expr"], 2: ["Expr", "Integer"] }, + }, + single: { fn: d.singleFn }, + first: { fn: d.firstFn }, + last: { fn: d.lastFn }, + type: { fn: x.typeFn, arity: { 0: [] } }, + ofType: { fn: d.ofTypeFn, arity: { 1: ["TypeSpecifier"] } }, + is: { fn: x.isFn, arity: { 1: ["TypeSpecifier"] } }, + tail: { fn: d.tailFn }, + take: { fn: d.takeFn, arity: { 1: ["Integer"] } }, + skip: { fn: d.skipFn, arity: { 1: ["Integer"] } }, + combine: { fn: h.combineFn, arity: { 1: ["AnyAtRoot"] } }, + union: { fn: h.union, arity: { 1: ["AnyAtRoot"] } }, + iif: { + fn: r.iifMacro, + arity: { 2: ["Expr", "Expr"], 3: ["Expr", "Expr", "Expr"] }, + }, + trace: { fn: r.traceFn, arity: { 0: [], 1: ["String"] } }, + toInteger: { fn: r.toInteger }, + toDecimal: { fn: r.toDecimal }, + toString: { fn: r.toString }, + toDateTime: { fn: r.toDateTime }, + toTime: { fn: r.toTime }, + toBoolean: { fn: r.toBoolean }, + toQuantity: { fn: r.toQuantity, arity: { 0: [], 1: ["String"] } }, + convertsToBoolean: { fn: r.createConvertsToFn(r.toBoolean, "boolean") }, + convertsToInteger: { fn: r.createConvertsToFn(r.toInteger, "number") }, + convertsToDecimal: { fn: r.createConvertsToFn(r.toDecimal, "number") }, + convertsToString: { fn: r.createConvertsToFn(r.toString, "string") }, + convertsToDateTime: { fn: r.createConvertsToFn(r.toDateTime, T) }, + convertsToTime: { fn: r.createConvertsToFn(r.toTime, O) }, + convertsToQuantity: { fn: r.createConvertsToFn(r.toQuantity, M) }, + indexOf: { fn: l.indexOf, arity: { 1: ["String"] } }, + substring: { + fn: l.substring, + arity: { 1: ["Integer"], 2: ["Integer", "Integer"] }, + }, + startsWith: { fn: l.startsWith, arity: { 1: ["String"] } }, + endsWith: { fn: l.endsWith, arity: { 1: ["String"] } }, + contains: { fn: l.containsFn, arity: { 1: ["String"] } }, + upper: { fn: l.upper }, + lower: { fn: l.lower }, + replace: { fn: l.replace, arity: { 2: ["String", "String"] } }, + matches: { fn: l.matches, arity: { 1: ["String"] } }, + replaceMatches: { + fn: l.replaceMatches, + arity: { 2: ["String", "String"] }, + }, + length: { fn: l.length }, + toChars: { fn: l.toChars }, + abs: { fn: c.abs }, + ceiling: { fn: c.ceiling }, + exp: { fn: c.exp }, + floor: { fn: c.floor }, + ln: { fn: c.ln }, + log: { fn: c.log, arity: { 1: ["Number"] }, nullable: !0 }, + power: { fn: c.power, arity: { 1: ["Number"] }, nullable: !0 }, + round: { fn: c.round, arity: { 1: ["Number"] } }, + sqrt: { fn: c.sqrt }, + truncate: { fn: c.truncate }, + now: { fn: b.now }, + today: { fn: b.today }, + repeat: { fn: d.repeatMacro, arity: { 1: ["Expr"] } }, + children: { fn: g.children }, + descendants: { fn: g.descendants }, + "|": { fn: h.union, arity: { 2: ["Any", "Any"] } }, + "=": { fn: o.equal, arity: { 2: ["Any", "Any"] }, nullable: !0 }, + "!=": { fn: o.unequal, arity: { 2: ["Any", "Any"] }, nullable: !0 }, + "~": { fn: o.equival, arity: { 2: ["Any", "Any"] } }, + "!~": { fn: o.unequival, arity: { 2: ["Any", "Any"] } }, + "<": { fn: o.lt, arity: { 2: ["Any", "Any"] }, nullable: !0 }, + ">": { fn: o.gt, arity: { 2: ["Any", "Any"] }, nullable: !0 }, + "<=": { fn: o.lte, arity: { 2: ["Any", "Any"] }, nullable: !0 }, + ">=": { fn: o.gte, arity: { 2: ["Any", "Any"] }, nullable: !0 }, + containsOp: { fn: i.contains, arity: { 2: ["Any", "Any"] } }, + inOp: { fn: i.in, arity: { 2: ["Any", "Any"] } }, + isOp: { fn: x.isFn, arity: { 2: ["Any", "TypeSpecifier"] } }, + "&": { fn: c.amp, arity: { 2: ["String", "String"] } }, + "+": { fn: c.plus, arity: { 2: ["Any", "Any"] }, nullable: !0 }, + "-": { fn: c.minus, arity: { 2: ["Any", "Any"] }, nullable: !0 }, + "*": { fn: c.mul, arity: { 2: ["Number", "Number"] }, nullable: !0 }, + "/": { fn: c.div, arity: { 2: ["Number", "Number"] }, nullable: !0 }, + mod: { fn: c.mod, arity: { 2: ["Number", "Number"] }, nullable: !0 }, + div: { fn: c.intdiv, arity: { 2: ["Number", "Number"] }, nullable: !0 }, + or: { fn: y.orOp, arity: { 2: [["Boolean"], ["Boolean"]] } }, + and: { fn: y.andOp, arity: { 2: [["Boolean"], ["Boolean"]] } }, + xor: { fn: y.xorOp, arity: { 2: [["Boolean"], ["Boolean"]] } }, + implies: { fn: y.impliesOp, arity: { 2: [["Boolean"], ["Boolean"]] } }, + }), + (m.InvocationExpression = function (J, ne, ae) { + return ae.children.reduce(function (le, Oe) { + return m.doEval(J, le, Oe); + }, ne); + }), + (m.TermExpression = function (J, ne, ae) { + return ( + ne && + (ne = ne.map((le) => + le instanceof Object && le.resourceType + ? I(le, le.resourceType) + : le + )), + m.doEval(J, ne, ae.children[0]) + ); + }), + (m.PolarityExpression = function (J, ne, ae) { + var le = ae.terminalNodeText[0], + Oe = m.doEval(J, ne, ae.children[0]); + if (1 != Oe.length) + throw new Error( + "Unary " + le + " can only be applied to an individual number." + ); + if ("number" != typeof Oe[0] || isNaN(Oe[0])) + throw new Error( + "Unary " + le + " can only be applied to a number." + ); + return "-" === le && (Oe[0] = -Oe[0]), Oe; + }), + (m.TypeSpecifier = function (J, ne, ae) { + let le, Oe; + const Le = ae.text.split(".").map((Ye) => Ye.replace(/(^`|`$)/g, "")); + switch (Le.length) { + case 2: + [le, Oe] = Le; + break; + case 1: + [Oe] = Le; + break; + default: + throw new Error( + "Expected TypeSpecifier node, got " + JSON.stringify(ae) + ); + } + return new w({ namespace: le, name: Oe }); + }), + (m.ExternalConstantTerm = function (J, ne, ae) { + var Le = m.Identifier(J, ne, ae.children[0].children[0])[0], + Ye = J.vars[Le]; + if (!(Le in J.vars)) + throw new Error( + "Attempting to access an undefined environment variable: " + Le + ); + return null == Ye ? [] : Ye instanceof Array ? Ye : [Ye]; + }), + (m.LiteralTerm = function (J, ne, ae) { + var le = ae.children[0]; + return le ? m.doEval(J, ne, le) : [ae.text]; + }), + (m.StringLiteral = function (J, ne, ae) { + var le = ae.text.replace(/(^'|'$)/g, ""); + return [ + (le = le.replace(/\\(u\d{4}|.)/g, function (Oe, Le) { + switch (Oe) { + case "\\r": + return "\r"; + case "\\n": + return "\n"; + case "\\t": + return "\t"; + case "\\f": + return "\f"; + default: + return Le.length > 1 + ? String.fromCharCode("0x" + Le.slice(1)) + : Le; + } + })), + ]; + }), + (m.BooleanLiteral = function (J, ne, ae) { + return "true" === ae.text ? [!0] : [!1]; + }), + (m.QuantityLiteral = function (J, ne, ae) { + var le = ae.children[0], + Oe = Number(le.terminalNodeText[0]), + Le = le.children[0], + Ye = Le.terminalNodeText[0]; + return ( + !Ye && Le.children && (Ye = Le.children[0].terminalNodeText[0]), + [new M(Oe, Ye)] + ); + }), + (m.DateTimeLiteral = function (J, ne, ae) { + var le = ae.text.slice(1); + return [new T(le)]; + }), + (m.TimeLiteral = function (J, ne, ae) { + var le = ae.text.slice(1); + return [new O(le)]; + }), + (m.NumberLiteral = function (J, ne, ae) { + return [Number(ae.text)]; + }), + (m.Identifier = function (J, ne, ae) { + return [ae.text.replace(/(^`|`$)/g, "")]; + }), + (m.InvocationTerm = function (J, ne, ae) { + return m.doEval(J, ne, ae.children[0]); + }), + (m.MemberInvocation = function (J, ne, ae) { + const le = m.doEval(J, ne, ae.children[0])[0], + Oe = J.model; + return ne + ? f.isCapitalized(le) + ? ne.filter((Le) => Le instanceof S && Le.path === le) + : ne.reduce(function (Le, Ye) { + var Je = (Ye = I(Ye)).path + "." + le; + if (Oe) { + let at = Oe.pathsDefinedElsewhere[Je]; + at && (Je = at); + } + let gt, + Ue, + tt = Oe && Oe.choiceTypePaths[Je]; + if (tt) + for (let at of tt) { + if (((gt = Ye.data[le + at]), void 0 !== gt)) { + (Je = at), (Ue = Ye.data["_" + le]); + break; + } + gt = Ye._data[le]; + } + else + (gt = Ye.data[le]), + void 0 !== gt + ? (Ue = Ye.data["_" + le]) + : (gt = Ye._data[le]), + "extension" === le && (Je = "Extension"); + return ( + f.isSome(gt) && + (Array.isArray(gt) + ? (Le = Le.concat( + gt.map((at, ft) => I(at, Je, Ue && Ue[ft])) + )) + : Le.push(I(gt, Je, Ue))), + Le + ); + }, []) + : []; + }), + (m.IndexerExpression = function (J, ne, ae) { + const Oe = ae.children[1]; + var Le = m.doEval(J, ne, ae.children[0]), + Ye = m.doEval(J, ne, Oe); + if (f.isEmpty(Ye)) return []; + var Je = parseInt(Ye[0]); + return Le && f.isSome(Je) && Le.length > Je && Je >= 0 + ? [Le[Je]] + : []; + }), + (m.Functn = function (J, ne, ae) { + return ae.children.map(function (le) { + return m.doEval(J, ne, le); + }); + }), + (m.realizeParams = function (J, ne, ae) { + return ae && ae[0] && ae[0].children + ? ae[0].children.map(function (le) { + return m.doEval(J, ne, le); + }) + : []; + }), + (m.FunctionInvocation = function (J, ne, ae) { + var le = m.doEval(J, ne, ae.children[0]); + const Oe = le[0]; + return ( + le.shift(), + (function (J, ne, ae, le) { + var Le, + Oe = m.invocationTable[ne]; + if (Oe) { + if (Oe.arity) { + var Ye = le ? le.length : 0, + Je = Oe.arity[Ye]; + if (Je) { + for (var gt = [], Ue = 0; Ue < Ye; Ue++) + gt.push(C(J, ae, Je[Ue], le[Ue])); + return ( + gt.unshift(ae), + Oe.nullable && gt.some(F) + ? [] + : ((Le = Oe.fn.apply(J, gt)), f.arraify(Le)) + ); + } + return console.log(ne + " wrong arity: got " + Ye), []; + } + if (le) throw new Error(ne + " expects no params"); + return (Le = Oe.fn.call(J, f.arraify(ae))), f.arraify(Le); + } + throw new Error("Not implemented: " + ne); + })(J, Oe, ne, le && le[0] && le[0].children) + ); + }), + (m.ParamList = function (J, ne, ae) { + return ae; + }), + (m.UnionExpression = function (J, ne, ae) { + return ie(J, "|", ne, ae.children); + }), + (m.ThisInvocation = function (J) { + return f.arraify(J.$this); + }), + (m.TotalInvocation = function (J) { + return f.arraify(J.$total); + }), + (m.IndexInvocation = function (J) { + return f.arraify(J.$index); + }), + (m.OpExpression = function (J, ne, ae) { + return ie(J, ae.terminalNodeText[0], ne, ae.children); + }), + (m.AliasOpExpression = function (J) { + return function (ne, ae, le) { + var Oe = le.terminalNodeText[0], + Le = J[Oe]; + if (!Le) + throw new Error( + "Do not know how to alias " + Oe + " by " + JSON.stringify(J) + ); + return ie(ne, Le, ae, le.children); + }; + }), + (m.NullLiteral = function () { + return []; + }), + (m.ParenthesizedTerm = function (J, ne, ae) { + return m.doEval(J, ne, ae.children[0]); + }), + (m.evalTable = { + BooleanLiteral: m.BooleanLiteral, + EqualityExpression: m.OpExpression, + FunctionInvocation: m.FunctionInvocation, + Functn: m.Functn, + Identifier: m.Identifier, + IndexerExpression: m.IndexerExpression, + InequalityExpression: m.OpExpression, + InvocationExpression: m.InvocationExpression, + AdditiveExpression: m.OpExpression, + MultiplicativeExpression: m.OpExpression, + TypeExpression: m.AliasOpExpression({ is: "isOp" }), + MembershipExpression: m.AliasOpExpression({ + contains: "containsOp", + in: "inOp", + }), + NullLiteral: m.NullLiteral, + EntireExpression: m.InvocationTerm, + InvocationTerm: m.InvocationTerm, + LiteralTerm: m.LiteralTerm, + MemberInvocation: m.MemberInvocation, + NumberLiteral: m.NumberLiteral, + ParamList: m.ParamList, + ParenthesizedTerm: m.ParenthesizedTerm, + StringLiteral: m.StringLiteral, + TermExpression: m.TermExpression, + ThisInvocation: m.ThisInvocation, + TotalInvocation: m.TotalInvocation, + IndexInvocation: m.IndexInvocation, + UnionExpression: m.UnionExpression, + OrExpression: m.OpExpression, + ImpliesExpression: m.OpExpression, + AndExpression: m.OpExpression, + XorExpression: m.OpExpression, + }), + (m.doEval = function (J, ne, ae) { + const le = m.evalTable[ae.type] || m[ae.type]; + if (le) return le.call(m, J, ne, ae); + throw new Error("No " + ae.type + " evaluator "); + }); + var Y = function (J) { + return n.parse(J); + }; + function Z(J, ne, ae, le) { + _.reset(); + let Oe = f.arraify(J), + Ye = { + dataRoot: Oe, + vars: Object.assign( + { context: J, ucum: "http://unitsofmeasure.org" }, + ae + ), + model: le, + }, + Je = m.doEval(Ye, Oe, ne.children[0]); + return ( + (Je = (function gt(Ue) { + if (((Ue = f.valData(Ue)), Array.isArray(Ue))) + for (let tt = 0, at = Ue.length; tt < at; ++tt) + Ue[tt] = gt(Ue[tt]); + else if ("object" == typeof Ue && !(Ue instanceof A)) + for (let tt of Object.keys(Ue)) Ue[tt] = gt(Ue[tt]); + return Ue; + })(Je)), + Je + ); + } + ye.exports = { + parse: Y, + compile: function (J, ne) { + const ae = Y(J); + return function (le, Oe) { + return Z(le, ae, Oe, ne); + }; + }, + evaluate: function (J, ne, ae, le) { + const Oe = "object" == typeof ne; + return Z( + Oe ? I(J, ne.base) : J, + n.parse(Oe ? ne.expression : ne), + ae, + le + ); + }, + ucumUtils: p(1334).ng.getInstance(), + }; + }, + 8774: (ye, j, p) => { + const n = p(4569), + { TypeInfo: f, ResourceNode: _ } = p(2563); + ye.exports = { + whereMacro: function (s, d) { + return !1 === s || s + ? n.flatten(s.filter((u, h) => ((this.$index = h), d(u)[0]))) + : []; + }, + extension: function (s, d) { + return (!1 !== s && !s) || !d + ? [] + : n.flatten( + s.map((u, h) => { + this.$index = h; + const r = + u && + ((u.data && u.data.extension) || + (u._data && u._data.extension)); + return r + ? r + .filter((o) => o.url === d) + .map((o) => _.makeResNode(o, "Extension")) + : []; + }) + ); + }, + selectMacro: function (s, d) { + return !1 === s || s + ? n.flatten(s.map((u, h) => ((this.$index = h), d(u)))) + : []; + }, + repeatMacro: function (s, d) { + if (!1 !== s && !s) return []; + for (var u = [], h = s, o = null; 0 != h.length; ) + (o = d(h.shift())) && ((u = u.concat(o)), (h = h.concat(o))); + return u; + }, + singleFn: function (s) { + return 1 == s.length + ? s + : 0 == s.length + ? [] + : { $status: "error", $error: "Expected single" }; + }, + firstFn: function (s) { + return s[0]; + }, + lastFn: function (s) { + return s[s.length - 1]; + }, + tailFn: function (s) { + return s.slice(1, s.length); + }, + takeFn: function (s, d) { + return s.slice(0, d); + }, + skipFn: function (s, d) { + return s.slice(d, s.length); + }, + ofTypeFn: function (s, d) { + return s.filter((u) => f.fromValue(u).is(d)); + }, + }; + }, + 2306: (ye) => { + ye.exports = { + orOp: function (p, n) { + if (Array.isArray(n)) { + if (!0 === p) return !0; + if (!1 === p) return []; + if (Array.isArray(p)) return []; + } + return Array.isArray(p) ? !0 === n || [] : p || n; + }, + andOp: function (p, n) { + if (Array.isArray(n)) { + if (!0 === p) return []; + if (!1 === p) return !1; + if (Array.isArray(p)) return []; + } + return Array.isArray(p) ? !0 === n && [] : p && n; + }, + xorOp: function (p, n) { + return Array.isArray(p) || Array.isArray(n) + ? [] + : (p && !n) || (!p && n); + }, + impliesOp: function (p, n) { + if (Array.isArray(n)) { + if (!0 === p) return []; + if (!1 === p) return !0; + if (Array.isArray(p)) return []; + } + return Array.isArray(p) ? !0 === n || [] : !1 === p || (p && n); + }, + }; + }, + 2492: (ye, j, p) => { + var n = p(2563); + let { FP_TimeBase: f, FP_Quantity: _ } = n; + const m = p(4569); + var s = {}; + function d(h) { + let r = m.valData(h); + if ("number" != typeof r) { + if (1 == r.length && "number" == typeof (r = m.valData(r[0]))) + return r; + throw new Error("Expected number, but got " + JSON.stringify(r || h)); + } + return r; + } + function u(h) { + return "number" != typeof h && 0 == h.length; + } + (s.amp = function (h, r) { + return (h || "") + (r || ""); + }), + (s.plus = function (h, r) { + if (1 == h.length && 1 == r.length) { + var o = m.valData(h[0]), + i = m.valData(r[0]); + if ( + ("string" == typeof o && "string" == typeof i) || + ("number" == typeof o && "number" == typeof i) + ) + return o + i; + if (o instanceof f && i instanceof _) return o.plus(i); + } + throw new Error( + "Cannot " + JSON.stringify(h) + " + " + JSON.stringify(r) + ); + }), + (s.minus = function (h, r) { + if (1 == h.length && 1 == r.length) { + var o = m.valData(h[0]), + i = m.valData(r[0]); + if ("number" == typeof o && "number" == typeof i) return o - i; + if (o instanceof f && i instanceof _) + return o.plus(new _(-i.value, i.unit)); + } + throw new Error( + "Cannot " + JSON.stringify(h) + " - " + JSON.stringify(r) + ); + }), + (s.mul = function (h, r) { + return h * r; + }), + (s.div = function (h, r) { + return h / r; + }), + (s.intdiv = function (h, r) { + return Math.floor(h / r); + }), + (s.mod = function (h, r) { + return h % r; + }), + (s.abs = function (h) { + if (u(h)) return []; + { + let r = d(h); + return Math.abs(r); + } + }), + (s.ceiling = function (h) { + if (u(h)) return []; + { + let r = d(h); + return Math.ceil(r); + } + }), + (s.exp = function (h) { + if (u(h)) return []; + { + let r = d(h); + return Math.exp(r); + } + }), + (s.floor = function (h) { + if (u(h)) return []; + { + let r = d(h); + return Math.floor(r); + } + }), + (s.ln = function (h) { + if (u(h)) return []; + { + let r = d(h); + return Math.log(r); + } + }), + (s.log = function (h, r) { + if (u(h) || u(r)) return []; + { + let o = d(h), + i = d(r); + return Math.log(o) / Math.log(i); + } + }), + (s.power = function (h, r) { + if (u(h) || u(r)) return []; + { + let o = d(h), + i = d(r); + return o < 0 && Math.floor(i) != i ? [] : Math.pow(o, i); + } + }), + (s.round = function (h, r) { + if (u(h)) return []; + { + let o = d(h); + if (u(r)) return Math.round(o); + { + let i = d(r), + c = Math.pow(10, i); + return Math.round(o * c) / c; + } + } + }), + (s.sqrt = function (h) { + if (u(h)) return []; + { + let r = d(h); + return r < 0 ? [] : Math.sqrt(r); + } + }), + (s.truncate = function (h) { + if (u(h)) return []; + { + let r = d(h); + return Math.trunc(r); + } + }), + (ye.exports = s); + }, + 9502: (ye, j, p) => { + var n = p(4569), + f = p(2563); + const { FP_Quantity: _ } = f; + var m = { + iifMacro: function (l, g, b, y) { + return n.isTrue(g(l)) ? b(l) : y ? y(l) : []; + }, + traceFn: function (l, g) { + return ( + console.log( + "TRACE:[" + (g || "") + "]", + JSON.stringify(l, null, " ") + ), + l + ); + }, + }, + s = /^[+-]?\d+$/; + m.toInteger = function (l) { + if (1 !== l.length) return []; + var g = n.valData(l[0]); + return !1 === g + ? 0 + : !0 === g + ? 1 + : "number" == typeof g + ? Number.isInteger(g) + ? g + : [] + : "string" == typeof g && s.test(g) + ? parseInt(g) + : []; + }; + const d = /^((\+|-)?\d+(\.\d+)?)\s*(('[^']+')|([a-zA-Z]+))?$/; + m.toQuantity = function (l, g) { + let b; + if ((g && !_.mapTimeUnitsToUCUMCode[g] && (g = `'${g}'`), l.length > 1)) + throw new Error( + "Could not convert to quantity: input collection contains multiple items" + ); + if (1 === l.length) { + const x = n.valData(l[0]); + let T; + if ("number" == typeof x) b = new _(x, "'1'"); + else if (x instanceof _) b = x; + else if ("boolean" == typeof x) b = new _(x ? 1 : 0, "'1'"); + else if ("string" == typeof x && (T = d.exec(x))) { + const O = T[1], + M = T[5], + A = T[6]; + (!A || _.mapTimeUnitsToUCUMCode[A]) && + (b = new _(Number(O), M || A || "'1'")); + } + b && g && b.unit !== g && (b = _.convUnitTo(b.unit, b.value, g)); + } + return b || []; + }; + var h = /^[+-]?\d+(\.\d+)?$/; + function r(l) { + let g = l.slice(3); + m["to" + g] = function (b) { + var y = []; + if (b.length > 1) + throw Error( + "to " + g + " called for a collection of length " + b.length + ); + if (1 === b.length) { + var x = f[l].checkString(n.valData(b[0])); + x && (y = x); + } + return y; + }; + } + (m.toDecimal = function (l) { + if (1 !== l.length) return []; + var g = n.valData(l[0]); + return !1 === g + ? 0 + : !0 === g + ? 1 + : "number" == typeof g + ? g + : "string" == typeof g && h.test(g) + ? parseFloat(g) + : []; + }), + (m.toString = function (l) { + return 1 !== l.length ? [] : n.valData(l[0]).toString(); + }), + r("FP_DateTime"), + r("FP_Time"); + const o = ["true", "t", "yes", "y", "1", "1.0"].reduce( + (l, g) => ((l[g] = !0), l), + {} + ), + i = ["false", "f", "no", "n", "0", "0.0"].reduce( + (l, g) => ((l[g] = !0), l), + {} + ); + (m.toBoolean = function (l) { + if (1 !== l.length) return []; + const g = n.valData(l[0]); + switch (typeof g) { + case "boolean": + return g; + case "number": + if (1 === g) return !0; + if (0 === g) return !1; + break; + case "string": + const b = g.toLowerCase(); + if (o[b]) return !0; + if (i[b]) return !1; + } + return []; + }), + (m.createConvertsToFn = function (l, g) { + return "string" == typeof g + ? function (b) { + return 1 !== b.length ? [] : typeof l(b) === g; + } + : function (b) { + return 1 !== b.length ? [] : l(b) instanceof g; + }; + }); + const c = { + Integer: function (l) { + const g = n.valData(l[0]); + if (Number.isInteger(g)) return g; + }, + Boolean: function (l) { + const g = n.valData(l[0]); + return !0 === g || !1 === g ? g : 1 === l.length || void 0; + }, + Number: function (l) { + const g = n.valData(l[0]); + if ("number" == typeof g) return g; + }, + String: function (l) { + const g = n.valData(l[0]); + if ("string" == typeof g) return g; + }, + }; + (m.singleton = function (l, g) { + if (l.length > 1) + throw new Error( + "Unexpected collection" + + JSON.stringify(l) + + "; expected singleton of type " + + g + ); + if (0 === l.length) return []; + const b = c[g]; + if (b) { + const y = b(l); + if (void 0 !== y) return y; + throw new Error( + `Expected ${g.toLowerCase()}, but got: ${JSON.stringify(l)}` + ); + } + throw new Error("Not supported type " + g); + }), + (ye.exports = m); + }, + 5948: (ye, j, p) => { + const n = p(4569), + { ResourceNode: f } = p(2563); + let _ = f.makeResNode; + var m = { + children: function (s) { + let d = this.model; + return s.reduce(function (u, h) { + let r = n.valData(h); + if (((h = _(h)), "object" == typeof r)) { + for (var o of Object.keys(r)) { + var i = r[o], + c = h.path + "." + o; + if (d) { + let l = d.pathsDefinedElsewhere[c]; + l && (c = l); + } + Array.isArray(i) + ? u.push.apply( + u, + i.map((l) => _(l, c)) + ) + : u.push(_(i, c)); + } + return u; + } + return u; + }, []); + }, + descendants: function (s) { + for (var d = m.children.call(this, s), u = []; d.length > 0; ) + u.push.apply(u, d), (d = m.children.call(this, d)); + return u; + }, + }; + ye.exports = m; + }, + 7601: (ye) => { + let j = {}; + function p(m) { + const d = /(\d+)(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/.exec("" + +m); + if (!d) return 0; + const u = d[2]; + return Math.max(0, ("0" === u ? 0 : (u || "").length) - (d[3] || 0)); + } + function n(m, s) { + const d = Math.pow(10, s); + return Math.round(m * d) / d; + } + function _(m) { + return 1e-8 * Math.round(m / 1e-8); + } + (j.isEquivalent = function (m, s) { + if (Number.isInteger(m) && Number.isInteger(s)) return m === s; + const d = Math.min(p(m), p(s)); + return 0 === d ? Math.round(m) === Math.round(s) : n(m, d) === n(s, d); + }), + (j.isEqual = function (m, s) { + return _(m) === _(s); + }), + (ye.exports = j); + }, + 4981: (ye, j, p) => { + (j.atn = p(5988)), + (j.codepointat = p(3747)), + (j.dfa = p(6630)), + (j.fromcodepoint = p(617)), + (j.tree = p(4521)), + (j.error = p(107)), + (j.Token = p(9696).Token), + (j.CommonToken = p(9696).CommonToken), + (j.InputStream = p(3673).InputStream), + (j.CommonTokenStream = p(3973).CommonTokenStream), + (j.Lexer = p(8123).Lexer), + (j.Parser = p(4541).Parser); + var n = p(8267); + (j.PredictionContextCache = n.PredictionContextCache), + (j.ParserRuleContext = p(7335).ParserRuleContext), + (j.Interval = p(3491).Interval), + (j.Utils = p(3126)); + }, + 4621: (ye, j, p) => { + var n = p(4981), + f = [ + "\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964", + "\x02A\u0203\b\x01\x04\x02\t\x02\x04\x03\t\x03\x04", + "\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t", + "\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04", + "\f\t\f\x04\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10", + "\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13", + "\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17", + "\t\x17\x04\x18\t\x18\x04\x19\t\x19\x04\x1a\t\x1a", + "\x04\x1b\t\x1b\x04\x1c\t\x1c\x04\x1d\t\x1d\x04\x1e", + '\t\x1e\x04\x1f\t\x1f\x04 \t \x04!\t!\x04"\t"\x04#', + "\t#\x04$\t$\x04%\t%\x04&\t&\x04'\t'\x04(\t(\x04)\t)\x04", + "*\t*\x04+\t+\x04,\t,\x04-\t-\x04.\t.\x04/\t/\x040\t0\x04", + "1\t1\x042\t2\x043\t3\x044\t4\x045\t5\x046\t6\x047\t7\x04", + "8\t8\x049\t9\x04:\t:\x04;\t;\x04<\t<\x04=\t=\x04>\t>\x04", + "?\t?\x04@\t@\x04A\tA\x04B\tB\x04C\tC\x04D\tD\x03\x02\x03", + "\x02\x03\x03\x03\x03\x03\x04\x03\x04\x03\x05\x03", + "\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\b\x03", + "\b\x03\t\x03\t\x03\t\x03\t\x03\n\x03\n\x03\n\x03\n\x03", + "\v\x03\v\x03\f\x03\f\x03\r\x03\r\x03\r\x03\x0e", + "\x03\x0e\x03\x0f\x03\x0f\x03\x10\x03\x10\x03\x10", + "\x03\x11\x03\x11\x03\x11\x03\x12\x03\x12\x03\x12", + "\x03\x13\x03\x13\x03\x14\x03\x14\x03\x15\x03\x15", + "\x03\x15\x03\x16\x03\x16\x03\x16\x03\x17\x03\x17", + "\x03\x17\x03\x18\x03\x18\x03\x18\x03\x18\x03\x18", + "\x03\x18\x03\x18\x03\x18\x03\x18\x03\x19\x03\x19", + "\x03\x19\x03\x19\x03\x1a\x03\x1a\x03\x1a\x03\x1b", + "\x03\x1b\x03\x1b\x03\x1b\x03\x1c\x03\x1c\x03\x1c", + "\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1d", + "\x03\x1d\x03\x1e\x03\x1e\x03\x1f\x03\x1f\x03 ", + '\x03 \x03!\x03!\x03!\x03!\x03!\x03"\x03"\x03"\x03', + '"\x03"\x03"\x03#\x03#\x03$\x03$\x03$\x03$\x03$', + "\x03$\x03%\x03%\x03%\x03%\x03%\x03%\x03%\x03&\x03", + "&\x03&\x03&\x03&\x03&\x03&\x03'\x03'\x03(\x03(\x03", + "(\x03(\x03(\x03)\x03)\x03)\x03)\x03)\x03)\x03*\x03", + "*\x03*\x03*\x03*\x03+\x03+\x03+\x03+\x03,\x03,\x03", + ",\x03,\x03,\x03-\x03-\x03-\x03-\x03-\x03-\x03-\x03", + ".\x03.\x03.\x03.\x03.\x03.\x03.\x03/\x03/\x03/\x03", + "/\x03/\x03/\x03/\x03/\x03/\x03/\x03/\x03/\x030\x03", + "0\x030\x030\x030\x030\x031\x031\x031\x031\x031\x03", + "1\x031\x032\x032\x032\x032\x032\x032\x033\x033\x03", + "3\x033\x033\x034\x034\x034\x034\x034\x034\x035\x03", + "5\x035\x035\x035\x035\x035\x035\x036\x036\x036\x03", + "6\x036\x036\x036\x036\x037\x037\x037\x037\x037\x03", + "7\x037\x037\x037\x037\x037\x037\x037\x038\x038\x03", + "8\x038\x038\x038\x038\x038\x038\x038\x038\x038\x03", + "8\x058\u0183\n8\x058\u0185\n8\x058\u0187\n8\x038\x058\u018a", + "\n8\x039\x039\x039\x039\x03:\x03:\x03:\x03:\x03:\x03", + ":\x03:\x03:\x03:\x03:\x06:\u019a\n:\r:\x0e:\u019b\x05", + ":\u019e\n:\x05:\u01a0\n:\x05:\u01a2\n:\x03:\x03:\x03:\x03", + ":\x03:\x03:\x03:\x05:\u01ab\n:\x03;\x05;\u01ae\n;\x03", + ";\x07;\u01b1\n;\f;\x0e;\u01b4\v;\x03<\x03<\x03<\x07", + "<\u01b9\n<\f<\x0e<\u01bc\v<\x03<\x03<\x03=\x03=\x03", + "=\x07=\u01c3\n=\f=\x0e=\u01c6\v=\x03=\x03=\x03>\x06", + ">\u01cb\n>\r>\x0e>\u01cc\x03>\x03>\x06>\u01d1\n>\r>\x0e>\u01d2", + "\x05>\u01d5\n>\x03?\x06?\u01d8\n?\r?\x0e?\u01d9\x03?\x03", + "?\x03@\x03@\x03@\x03@\x07@\u01e2\n@\f@\x0e@\u01e5\v", + "@\x03@\x03@\x03@\x03@\x03@\x03A\x03A\x03A\x03A\x07", + "A\u01f0\nA\fA\x0eA\u01f3\vA\x03A\x03A\x03B\x03B\x03", + "B\x05B\u01fa\nB\x03C\x03C\x03C\x03C\x03C\x03C\x03D\x03", + "D\x03\u01e3\x02E\x03\x03\x05\x04\x07\x05\t\x06\v", + "\x07\r\b\x0f\t\x11\n\x13\v\x15\f\x17\r\x19\x0e\x1b", + "\x0f\x1d\x10\x1f\x11!\x12#\x13%\x14'\x15)\x16+", + "\x17-\x18/\x191\x1a3\x1b5\x1c7\x1d9\x1e;\x1f= ?!A", + "\"C#E$G%I&K'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s\x02u;w}", + "?\x7f@\x81A\x83\x02\x85\x02\x87\x02\x03\x02\f\x03", + "\x022;\x04\x02--//\x05\x02C\\aac|\x06\x022;C\\aac|\x04", + '\x02^^bb\x03\x02))\x05\x02\v\f\x0f\x0f""\x04\x02', + "\f\f\x0f\x0f\n\x02))11^^bbhhppttvv\x05\x022;CHch\x02\u0214", + "\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02", + "\x02\x07\x03\x02\x02\x02\x02\t\x03\x02\x02\x02", + "\x02\v\x03\x02\x02\x02\x02\r\x03\x02\x02\x02", + "\x02\x0f\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02", + "\x02\x13\x03\x02\x02\x02\x02\x15\x03\x02\x02\x02", + "\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02\x02\x02", + "\x02\x1b\x03\x02\x02\x02\x02\x1d\x03\x02\x02\x02", + "\x02\x1f\x03\x02\x02\x02\x02!\x03\x02\x02\x02", + "\x02#\x03\x02\x02\x02\x02%\x03\x02\x02\x02\x02", + "'\x03\x02\x02\x02\x02)\x03\x02\x02\x02\x02+\x03", + "\x02\x02\x02\x02-\x03\x02\x02\x02\x02/\x03\x02", + "\x02\x02\x021\x03\x02\x02\x02\x023\x03\x02\x02", + "\x02\x025\x03\x02\x02\x02\x027\x03\x02\x02\x02", + "\x029\x03\x02\x02\x02\x02;\x03\x02\x02\x02\x02", + "=\x03\x02\x02\x02\x02?\x03\x02\x02\x02\x02A\x03", + "\x02\x02\x02\x02C\x03\x02\x02\x02\x02E\x03\x02", + "\x02\x02\x02G\x03\x02\x02\x02\x02I\x03\x02\x02", + "\x02\x02K\x03\x02\x02\x02\x02M\x03\x02\x02\x02", + "\x02O\x03\x02\x02\x02\x02Q\x03\x02\x02\x02\x02", + "S\x03\x02\x02\x02\x02U\x03\x02\x02\x02\x02W\x03", + "\x02\x02\x02\x02Y\x03\x02\x02\x02\x02[\x03\x02", + "\x02\x02\x02]\x03\x02\x02\x02\x02_\x03\x02\x02", + "\x02\x02a\x03\x02\x02\x02\x02c\x03\x02\x02\x02", + "\x02e\x03\x02\x02\x02\x02g\x03\x02\x02\x02\x02", + "i\x03\x02\x02\x02\x02k\x03\x02\x02\x02\x02m\x03", + "\x02\x02\x02\x02o\x03\x02\x02\x02\x02q\x03\x02", + "\x02\x02\x02u\x03\x02\x02\x02\x02w\x03\x02\x02", + "\x02\x02y\x03\x02\x02\x02\x02{\x03\x02\x02\x02", + "\x02}\x03\x02\x02\x02\x02\x7f\x03\x02\x02\x02", + "\x02\x81\x03\x02\x02\x02\x03\x89\x03\x02\x02\x02", + "\x05\x8b\x03\x02\x02\x02\x07\x8d\x03\x02\x02\x02", + "\t\x8f\x03\x02\x02\x02\v\x91\x03\x02\x02\x02", + "\r\x93\x03\x02\x02\x02\x0f\x95\x03\x02\x02\x02", + "\x11\x97\x03\x02\x02\x02\x13\x9b\x03\x02\x02\x02", + "\x15\x9f\x03\x02\x02\x02\x17\xa1\x03\x02\x02\x02", + "\x19\xa3\x03\x02\x02\x02\x1b\xa6\x03\x02\x02\x02", + "\x1d\xa8\x03\x02\x02\x02\x1f\xaa\x03\x02\x02\x02", + "!\xad\x03\x02\x02\x02#\xb0\x03\x02\x02\x02%\xb3", + "\x03\x02\x02\x02'\xb5\x03\x02\x02\x02)\xb7\x03", + "\x02\x02\x02+\xba\x03\x02\x02\x02-\xbd\x03\x02", + "\x02\x02/\xc0\x03\x02\x02\x021\xc9\x03\x02\x02", + "\x023\xcd\x03\x02\x02\x025\xd0\x03\x02\x02\x02", + "7\xd4\x03\x02\x02\x029\xdc\x03\x02\x02\x02;\xde", + "\x03\x02\x02\x02=\xe0\x03\x02\x02\x02?\xe2\x03", + "\x02\x02\x02A\xe4\x03\x02\x02\x02C\xe9\x03\x02", + "\x02\x02E\xef\x03\x02\x02\x02G\xf1\x03\x02\x02", + "\x02I\xf7\x03\x02\x02\x02K\xfe\x03\x02\x02\x02", + "M\u0105\x03\x02\x02\x02O\u0107\x03\x02\x02\x02Q\u010c", + "\x03\x02\x02\x02S\u0112\x03\x02\x02\x02U\u0117\x03", + "\x02\x02\x02W\u011b\x03\x02\x02\x02Y\u0120\x03\x02", + "\x02\x02[\u0127\x03\x02\x02\x02]\u012e\x03\x02\x02", + "\x02_\u013a\x03\x02\x02\x02a\u0140\x03\x02\x02\x02", + "c\u0147\x03\x02\x02\x02e\u014d\x03\x02\x02\x02g\u0152", + "\x03\x02\x02\x02i\u0158\x03\x02\x02\x02k\u0160\x03", + "\x02\x02\x02m\u0168\x03\x02\x02\x02o\u0175\x03\x02", + "\x02\x02q\u018b\x03\x02\x02\x02s\u018f\x03\x02\x02", + "\x02u\u01ad\x03\x02\x02\x02w\u01b5\x03\x02\x02\x02", + "y\u01bf\x03\x02\x02\x02{\u01ca\x03\x02\x02\x02}\u01d7", + "\x03\x02\x02\x02\x7f\u01dd\x03\x02\x02\x02\x81\u01eb", + "\x03\x02\x02\x02\x83\u01f6\x03\x02\x02\x02\x85\u01fb", + "\x03\x02\x02\x02\x87\u0201\x03\x02\x02\x02\x89\x8a", + "\x070\x02\x02\x8a\x04\x03\x02\x02\x02\x8b\x8c", + "\x07]\x02\x02\x8c\x06\x03\x02\x02\x02\x8d\x8e", + "\x07_\x02\x02\x8e\b\x03\x02\x02\x02\x8f\x90\x07", + "-\x02\x02\x90\n\x03\x02\x02\x02\x91\x92\x07/\x02", + "\x02\x92\f\x03\x02\x02\x02\x93\x94\x07,\x02\x02", + "\x94\x0e\x03\x02\x02\x02\x95\x96\x071\x02\x02", + "\x96\x10\x03\x02\x02\x02\x97\x98\x07f\x02\x02", + "\x98\x99\x07k\x02\x02\x99\x9a\x07x\x02\x02\x9a", + "\x12\x03\x02\x02\x02\x9b\x9c\x07o\x02\x02\x9c", + "\x9d\x07q\x02\x02\x9d\x9e\x07f\x02\x02\x9e\x14", + "\x03\x02\x02\x02\x9f\xa0\x07(\x02\x02\xa0\x16", + "\x03\x02\x02\x02\xa1\xa2\x07~\x02\x02\xa2\x18", + "\x03\x02\x02\x02\xa3\xa4\x07>\x02\x02\xa4\xa5", + "\x07?\x02\x02\xa5\x1a\x03\x02\x02\x02\xa6\xa7", + "\x07>\x02\x02\xa7\x1c\x03\x02\x02\x02\xa8\xa9", + "\x07@\x02\x02\xa9\x1e\x03\x02\x02\x02\xaa\xab", + "\x07@\x02\x02\xab\xac\x07?\x02\x02\xac \x03\x02", + "\x02\x02\xad\xae\x07k\x02\x02\xae\xaf\x07u\x02", + '\x02\xaf"\x03\x02\x02\x02\xb0\xb1\x07c\x02\x02', + "\xb1\xb2\x07u\x02\x02\xb2$\x03\x02\x02\x02\xb3", + "\xb4\x07?\x02\x02\xb4&\x03\x02\x02\x02\xb5\xb6", + "\x07\x80\x02\x02\xb6(\x03\x02\x02\x02\xb7\xb8", + "\x07#\x02\x02\xb8\xb9\x07?\x02\x02\xb9*\x03\x02", + "\x02\x02\xba\xbb\x07#\x02\x02\xbb\xbc\x07\x80", + "\x02\x02\xbc,\x03\x02\x02\x02\xbd\xbe\x07k\x02", + "\x02\xbe\xbf\x07p\x02\x02\xbf.\x03\x02\x02\x02", + "\xc0\xc1\x07e\x02\x02\xc1\xc2\x07q\x02\x02\xc2", + "\xc3\x07p\x02\x02\xc3\xc4\x07v\x02\x02\xc4\xc5", + "\x07c\x02\x02\xc5\xc6\x07k\x02\x02\xc6\xc7\x07", + "p\x02\x02\xc7\xc8\x07u\x02\x02\xc80\x03\x02\x02", + "\x02\xc9\xca\x07c\x02\x02\xca\xcb\x07p\x02\x02", + "\xcb\xcc\x07f\x02\x02\xcc2\x03\x02\x02\x02\xcd", + "\xce\x07q\x02\x02\xce\xcf\x07t\x02\x02\xcf4\x03", + "\x02\x02\x02\xd0\xd1\x07z\x02\x02\xd1\xd2\x07", + "q\x02\x02\xd2\xd3\x07t\x02\x02\xd36\x03\x02\x02", + "\x02\xd4\xd5\x07k\x02\x02\xd5\xd6\x07o\x02\x02", + "\xd6\xd7\x07r\x02\x02\xd7\xd8\x07n\x02\x02\xd8", + "\xd9\x07k\x02\x02\xd9\xda\x07g\x02\x02\xda\xdb", + "\x07u\x02\x02\xdb8\x03\x02\x02\x02\xdc\xdd\x07", + "*\x02\x02\xdd:\x03\x02\x02\x02\xde\xdf\x07+\x02", + "\x02\xdf<\x03\x02\x02\x02\xe0\xe1\x07}\x02\x02", + "\xe1>\x03\x02\x02\x02\xe2\xe3\x07\x7f\x02\x02", + "\xe3@\x03\x02\x02\x02\xe4\xe5\x07v\x02\x02\xe5", + "\xe6\x07t\x02\x02\xe6\xe7\x07w\x02\x02\xe7\xe8", + "\x07g\x02\x02\xe8B\x03\x02\x02\x02\xe9\xea\x07", + "h\x02\x02\xea\xeb\x07c\x02\x02\xeb\xec\x07n\x02", + "\x02\xec\xed\x07u\x02\x02\xed\xee\x07g\x02\x02", + "\xeeD\x03\x02\x02\x02\xef\xf0\x07'\x02\x02\xf0", + "F\x03\x02\x02\x02\xf1\xf2\x07&\x02\x02\xf2\xf3", + "\x07v\x02\x02\xf3\xf4\x07j\x02\x02\xf4\xf5\x07", + "k\x02\x02\xf5\xf6\x07u\x02\x02\xf6H\x03\x02\x02", + "\x02\xf7\xf8\x07&\x02\x02\xf8\xf9\x07k\x02\x02", + "\xf9\xfa\x07p\x02\x02\xfa\xfb\x07f\x02\x02\xfb", + "\xfc\x07g\x02\x02\xfc\xfd\x07z\x02\x02\xfdJ\x03", + "\x02\x02\x02\xfe\xff\x07&\x02\x02\xff\u0100\x07", + "v\x02\x02\u0100\u0101\x07q\x02\x02\u0101\u0102\x07v\x02", + "\x02\u0102\u0103\x07c\x02\x02\u0103\u0104\x07n\x02\x02", + "\u0104L\x03\x02\x02\x02\u0105\u0106\x07.\x02\x02\u0106", + "N\x03\x02\x02\x02\u0107\u0108\x07{\x02\x02\u0108\u0109", + "\x07g\x02\x02\u0109\u010a\x07c\x02\x02\u010a\u010b\x07", + "t\x02\x02\u010bP\x03\x02\x02\x02\u010c\u010d\x07o\x02", + "\x02\u010d\u010e\x07q\x02\x02\u010e\u010f\x07p\x02\x02", + "\u010f\u0110\x07v\x02\x02\u0110\u0111\x07j\x02\x02\u0111", + "R\x03\x02\x02\x02\u0112\u0113\x07y\x02\x02\u0113\u0114", + "\x07g\x02\x02\u0114\u0115\x07g\x02\x02\u0115\u0116\x07", + "m\x02\x02\u0116T\x03\x02\x02\x02\u0117\u0118\x07f\x02", + "\x02\u0118\u0119\x07c\x02\x02\u0119\u011a\x07{\x02\x02", + "\u011aV\x03\x02\x02\x02\u011b\u011c\x07j\x02\x02\u011c", + "\u011d\x07q\x02\x02\u011d\u011e\x07w\x02\x02\u011e\u011f", + "\x07t\x02\x02\u011fX\x03\x02\x02\x02\u0120\u0121\x07", + "o\x02\x02\u0121\u0122\x07k\x02\x02\u0122\u0123\x07p\x02", + "\x02\u0123\u0124\x07w\x02\x02\u0124\u0125\x07v\x02\x02", + "\u0125\u0126\x07g\x02\x02\u0126Z\x03\x02\x02\x02\u0127", + "\u0128\x07u\x02\x02\u0128\u0129\x07g\x02\x02\u0129\u012a", + "\x07e\x02\x02\u012a\u012b\x07q\x02\x02\u012b\u012c\x07", + "p\x02\x02\u012c\u012d\x07f\x02\x02\u012d\\\x03\x02\x02", + "\x02\u012e\u012f\x07o\x02\x02\u012f\u0130\x07k\x02\x02", + "\u0130\u0131\x07n\x02\x02\u0131\u0132\x07n\x02\x02\u0132", + "\u0133\x07k\x02\x02\u0133\u0134\x07u\x02\x02\u0134\u0135", + "\x07g\x02\x02\u0135\u0136\x07e\x02\x02\u0136\u0137\x07", + "q\x02\x02\u0137\u0138\x07p\x02\x02\u0138\u0139\x07f\x02", + "\x02\u0139^\x03\x02\x02\x02\u013a\u013b\x07{\x02\x02", + "\u013b\u013c\x07g\x02\x02\u013c\u013d\x07c\x02\x02\u013d", + "\u013e\x07t\x02\x02\u013e\u013f\x07u\x02\x02\u013f`\x03", + "\x02\x02\x02\u0140\u0141\x07o\x02\x02\u0141\u0142\x07", + "q\x02\x02\u0142\u0143\x07p\x02\x02\u0143\u0144\x07v\x02", + "\x02\u0144\u0145\x07j\x02\x02\u0145\u0146\x07u\x02\x02", + "\u0146b\x03\x02\x02\x02\u0147\u0148\x07y\x02\x02\u0148", + "\u0149\x07g\x02\x02\u0149\u014a\x07g\x02\x02\u014a\u014b", + "\x07m\x02\x02\u014b\u014c\x07u\x02\x02\u014cd\x03\x02", + "\x02\x02\u014d\u014e\x07f\x02\x02\u014e\u014f\x07c\x02", + "\x02\u014f\u0150\x07{\x02\x02\u0150\u0151\x07u\x02\x02", + "\u0151f\x03\x02\x02\x02\u0152\u0153\x07j\x02\x02\u0153", + "\u0154\x07q\x02\x02\u0154\u0155\x07w\x02\x02\u0155\u0156", + "\x07t\x02\x02\u0156\u0157\x07u\x02\x02\u0157h\x03\x02", + "\x02\x02\u0158\u0159\x07o\x02\x02\u0159\u015a\x07k\x02", + "\x02\u015a\u015b\x07p\x02\x02\u015b\u015c\x07w\x02\x02", + "\u015c\u015d\x07v\x02\x02\u015d\u015e\x07g\x02\x02\u015e", + "\u015f\x07u\x02\x02\u015fj\x03\x02\x02\x02\u0160\u0161", + "\x07u\x02\x02\u0161\u0162\x07g\x02\x02\u0162\u0163\x07", + "e\x02\x02\u0163\u0164\x07q\x02\x02\u0164\u0165\x07p\x02", + "\x02\u0165\u0166\x07f\x02\x02\u0166\u0167\x07u\x02\x02", + "\u0167l\x03\x02\x02\x02\u0168\u0169\x07o\x02\x02\u0169", + "\u016a\x07k\x02\x02\u016a\u016b\x07n\x02\x02\u016b\u016c", + "\x07n\x02\x02\u016c\u016d\x07k\x02\x02\u016d\u016e\x07", + "u\x02\x02\u016e\u016f\x07g\x02\x02\u016f\u0170\x07e\x02", + "\x02\u0170\u0171\x07q\x02\x02\u0171\u0172\x07p\x02\x02", + "\u0172\u0173\x07f\x02\x02\u0173\u0174\x07u\x02\x02\u0174", + "n\x03\x02\x02\x02\u0175\u0176\x07B\x02\x02\u0176\u0177", + "\t\x02\x02\x02\u0177\u0178\t\x02\x02\x02\u0178\u0179\t\x02", + "\x02\x02\u0179\u0186\t\x02\x02\x02\u017a\u017b\x07/\x02", + "\x02\u017b\u017c\t\x02\x02\x02\u017c\u0184\t\x02\x02\x02", + "\u017d\u017e\x07/\x02\x02\u017e\u017f\t\x02\x02\x02\u017f", + "\u0182\t\x02\x02\x02\u0180\u0181\x07V\x02\x02\u0181\u0183", + "\x05s:\x02\u0182\u0180\x03\x02\x02\x02\u0182\u0183\x03", + "\x02\x02\x02\u0183\u0185\x03\x02\x02\x02\u0184\u017d\x03", + "\x02\x02\x02\u0184\u0185\x03\x02\x02\x02\u0185\u0187\x03", + "\x02\x02\x02\u0186\u017a\x03\x02\x02\x02\u0186\u0187\x03", + "\x02\x02\x02\u0187\u0189\x03\x02\x02\x02\u0188\u018a\x07", + "\\\x02\x02\u0189\u0188\x03\x02\x02\x02\u0189\u018a\x03", + "\x02\x02\x02\u018ap\x03\x02\x02\x02\u018b\u018c\x07", + "B\x02\x02\u018c\u018d\x07V\x02\x02\u018d\u018e\x05s:\x02", + "\u018er\x03\x02\x02\x02\u018f\u0190\t\x02\x02\x02\u0190", + "\u01a1\t\x02\x02\x02\u0191\u0192\x07<\x02\x02\u0192\u0193", + "\t\x02\x02\x02\u0193\u019f\t\x02\x02\x02\u0194\u0195\x07", + "<\x02\x02\u0195\u0196\t\x02\x02\x02\u0196\u019d\t\x02\x02", + "\x02\u0197\u0199\x070\x02\x02\u0198\u019a\t\x02\x02\x02", + "\u0199\u0198\x03\x02\x02\x02\u019a\u019b\x03\x02\x02\x02", + "\u019b\u0199\x03\x02\x02\x02\u019b\u019c\x03\x02\x02\x02", + "\u019c\u019e\x03\x02\x02\x02\u019d\u0197\x03\x02\x02\x02", + "\u019d\u019e\x03\x02\x02\x02\u019e\u01a0\x03\x02\x02\x02", + "\u019f\u0194\x03\x02\x02\x02\u019f\u01a0\x03\x02\x02\x02", + "\u01a0\u01a2\x03\x02\x02\x02\u01a1\u0191\x03\x02\x02\x02", + "\u01a1\u01a2\x03\x02\x02\x02\u01a2\u01aa\x03\x02\x02\x02", + "\u01a3\u01ab\x07\\\x02\x02\u01a4\u01a5\t\x03\x02\x02\u01a5", + "\u01a6\t\x02\x02\x02\u01a6\u01a7\t\x02\x02\x02\u01a7\u01a8", + "\x07<\x02\x02\u01a8\u01a9\t\x02\x02\x02\u01a9\u01ab\t\x02", + "\x02\x02\u01aa\u01a3\x03\x02\x02\x02\u01aa\u01a4\x03\x02", + "\x02\x02\u01aa\u01ab\x03\x02\x02\x02\u01abt\x03\x02", + "\x02\x02\u01ac\u01ae\t\x04\x02\x02\u01ad\u01ac\x03\x02", + "\x02\x02\u01ae\u01b2\x03\x02\x02\x02\u01af\u01b1\t\x05", + "\x02\x02\u01b0\u01af\x03\x02\x02\x02\u01b1\u01b4\x03\x02", + "\x02\x02\u01b2\u01b0\x03\x02\x02\x02\u01b2\u01b3\x03\x02", + "\x02\x02\u01b3v\x03\x02\x02\x02\u01b4\u01b2\x03\x02", + "\x02\x02\u01b5\u01ba\x07b\x02\x02\u01b6\u01b9\x05\x83", + "B\x02\u01b7\u01b9\n\x06\x02\x02\u01b8\u01b6\x03\x02\x02", + "\x02\u01b8\u01b7\x03\x02\x02\x02\u01b9\u01bc\x03\x02\x02", + "\x02\u01ba\u01b8\x03\x02\x02\x02\u01ba\u01bb\x03\x02\x02", + "\x02\u01bb\u01bd\x03\x02\x02\x02\u01bc\u01ba\x03\x02\x02", + "\x02\u01bd\u01be\x07b\x02\x02\u01bex\x03\x02\x02\x02", + "\u01bf\u01c4\x07)\x02\x02\u01c0\u01c3\x05\x83B\x02\u01c1", + "\u01c3\n\x07\x02\x02\u01c2\u01c0\x03\x02\x02\x02\u01c2", + "\u01c1\x03\x02\x02\x02\u01c3\u01c6\x03\x02\x02\x02\u01c4", + "\u01c2\x03\x02\x02\x02\u01c4\u01c5\x03\x02\x02\x02\u01c5", + "\u01c7\x03\x02\x02\x02\u01c6\u01c4\x03\x02\x02\x02\u01c7", + "\u01c8\x07)\x02\x02\u01c8z\x03\x02\x02\x02\u01c9\u01cb", + "\t\x02\x02\x02\u01ca\u01c9\x03\x02\x02\x02\u01cb\u01cc", + "\x03\x02\x02\x02\u01cc\u01ca\x03\x02\x02\x02\u01cc\u01cd", + "\x03\x02\x02\x02\u01cd\u01d4\x03\x02\x02\x02\u01ce\u01d0", + "\x070\x02\x02\u01cf\u01d1\t\x02\x02\x02\u01d0\u01cf\x03", + "\x02\x02\x02\u01d1\u01d2\x03\x02\x02\x02\u01d2\u01d0\x03", + "\x02\x02\x02\u01d2\u01d3\x03\x02\x02\x02\u01d3\u01d5\x03", + "\x02\x02\x02\u01d4\u01ce\x03\x02\x02\x02\u01d4\u01d5\x03", + "\x02\x02\x02\u01d5|\x03\x02\x02\x02\u01d6\u01d8\t\b\x02", + "\x02\u01d7\u01d6\x03\x02\x02\x02\u01d8\u01d9\x03\x02\x02", + "\x02\u01d9\u01d7\x03\x02\x02\x02\u01d9\u01da\x03\x02\x02", + "\x02\u01da\u01db\x03\x02\x02\x02\u01db\u01dc\b?\x02\x02", + "\u01dc~\x03\x02\x02\x02\u01dd\u01de\x071\x02\x02\u01de", + "\u01df\x07,\x02\x02\u01df\u01e3\x03\x02\x02\x02\u01e0", + "\u01e2\v\x02\x02\x02\u01e1\u01e0\x03\x02\x02\x02\u01e2", + "\u01e5\x03\x02\x02\x02\u01e3\u01e4\x03\x02\x02\x02\u01e3", + "\u01e1\x03\x02\x02\x02\u01e4\u01e6\x03\x02\x02\x02\u01e5", + "\u01e3\x03\x02\x02\x02\u01e6\u01e7\x07,\x02\x02\u01e7", + "\u01e8\x071\x02\x02\u01e8\u01e9\x03\x02\x02\x02\u01e9", + "\u01ea\b@\x02\x02\u01ea\x80\x03\x02\x02\x02\u01eb\u01ec", + "\x071\x02\x02\u01ec\u01ed\x071\x02\x02\u01ed\u01f1\x03", + "\x02\x02\x02\u01ee\u01f0\n\t\x02\x02\u01ef\u01ee\x03\x02", + "\x02\x02\u01f0\u01f3\x03\x02\x02\x02\u01f1\u01ef\x03\x02", + "\x02\x02\u01f1\u01f2\x03\x02\x02\x02\u01f2\u01f4\x03\x02", + "\x02\x02\u01f3\u01f1\x03\x02\x02\x02\u01f4\u01f5\bA\x02", + "\x02\u01f5\x82\x03\x02\x02\x02\u01f6\u01f9\x07^\x02", + "\x02\u01f7\u01fa\t\n\x02\x02\u01f8\u01fa\x05\x85C\x02\u01f9", + "\u01f7\x03\x02\x02\x02\u01f9\u01f8\x03\x02\x02\x02\u01fa", + "\x84\x03\x02\x02\x02\u01fb\u01fc\x07w\x02\x02\u01fc", + "\u01fd\x05\x87D\x02\u01fd\u01fe\x05\x87D\x02\u01fe\u01ff", + "\x05\x87D\x02\u01ff\u0200\x05\x87D\x02\u0200\x86\x03", + "\x02\x02\x02\u0201\u0202\t\v\x02\x02\u0202\x88\x03", + "\x02\x02\x02\x1a\x02\u0182\u0184\u0186\u0189\u019b\u019d\u019f", + "\u01a1\u01aa\u01ad\u01b0\u01b2\u01b8\u01ba\u01c2\u01c4\u01cc\u01d2\u01d4", + "\u01d9\u01e3\u01f1\u01f9\x03\x02\x03\x02", + ].join(""), + _ = new n.atn.ATNDeserializer().deserialize(f), + m = _.decisionToState.map(function (d, u) { + return new n.dfa.DFA(d, u); + }); + function s(d) { + return ( + n.Lexer.call(this, d), + (this._interp = new n.atn.LexerATNSimulator( + this, + _, + m, + new n.PredictionContextCache() + )), + this + ); + } + ((s.prototype = Object.create(n.Lexer.prototype)).constructor = s), + Object.defineProperty(s.prototype, "atn", { + get: function () { + return _; + }, + }), + (s.EOF = n.Token.EOF), + (s.T__0 = 1), + (s.T__1 = 2), + (s.T__2 = 3), + (s.T__3 = 4), + (s.T__4 = 5), + (s.T__5 = 6), + (s.T__6 = 7), + (s.T__7 = 8), + (s.T__8 = 9), + (s.T__9 = 10), + (s.T__10 = 11), + (s.T__11 = 12), + (s.T__12 = 13), + (s.T__13 = 14), + (s.T__14 = 15), + (s.T__15 = 16), + (s.T__16 = 17), + (s.T__17 = 18), + (s.T__18 = 19), + (s.T__19 = 20), + (s.T__20 = 21), + (s.T__21 = 22), + (s.T__22 = 23), + (s.T__23 = 24), + (s.T__24 = 25), + (s.T__25 = 26), + (s.T__26 = 27), + (s.T__27 = 28), + (s.T__28 = 29), + (s.T__29 = 30), + (s.T__30 = 31), + (s.T__31 = 32), + (s.T__32 = 33), + (s.T__33 = 34), + (s.T__34 = 35), + (s.T__35 = 36), + (s.T__36 = 37), + (s.T__37 = 38), + (s.T__38 = 39), + (s.T__39 = 40), + (s.T__40 = 41), + (s.T__41 = 42), + (s.T__42 = 43), + (s.T__43 = 44), + (s.T__44 = 45), + (s.T__45 = 46), + (s.T__46 = 47), + (s.T__47 = 48), + (s.T__48 = 49), + (s.T__49 = 50), + (s.T__50 = 51), + (s.T__51 = 52), + (s.T__52 = 53), + (s.T__53 = 54), + (s.DATETIME = 55), + (s.TIME = 56), + (s.IDENTIFIER = 57), + (s.DELIMITEDIDENTIFIER = 58), + (s.STRING = 59), + (s.NUMBER = 60), + (s.WS = 61), + (s.COMMENT = 62), + (s.LINE_COMMENT = 63), + (s.prototype.channelNames = ["DEFAULT_TOKEN_CHANNEL", "HIDDEN"]), + (s.prototype.modeNames = ["DEFAULT_MODE"]), + (s.prototype.literalNames = [ + null, + "'.'", + "'['", + "']'", + "'+'", + "'-'", + "'*'", + "'/'", + "'div'", + "'mod'", + "'&'", + "'|'", + "'<='", + "'<'", + "'>'", + "'>='", + "'is'", + "'as'", + "'='", + "'~'", + "'!='", + "'!~'", + "'in'", + "'contains'", + "'and'", + "'or'", + "'xor'", + "'implies'", + "'('", + "')'", + "'{'", + "'}'", + "'true'", + "'false'", + "'%'", + "'$this'", + "'$index'", + "'$total'", + "','", + "'year'", + "'month'", + "'week'", + "'day'", + "'hour'", + "'minute'", + "'second'", + "'millisecond'", + "'years'", + "'months'", + "'weeks'", + "'days'", + "'hours'", + "'minutes'", + "'seconds'", + "'milliseconds'", + ]), + (s.prototype.symbolicNames = [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + "DATETIME", + "TIME", + "IDENTIFIER", + "DELIMITEDIDENTIFIER", + "STRING", + "NUMBER", + "WS", + "COMMENT", + "LINE_COMMENT", + ]), + (s.prototype.ruleNames = [ + "T__0", + "T__1", + "T__2", + "T__3", + "T__4", + "T__5", + "T__6", + "T__7", + "T__8", + "T__9", + "T__10", + "T__11", + "T__12", + "T__13", + "T__14", + "T__15", + "T__16", + "T__17", + "T__18", + "T__19", + "T__20", + "T__21", + "T__22", + "T__23", + "T__24", + "T__25", + "T__26", + "T__27", + "T__28", + "T__29", + "T__30", + "T__31", + "T__32", + "T__33", + "T__34", + "T__35", + "T__36", + "T__37", + "T__38", + "T__39", + "T__40", + "T__41", + "T__42", + "T__43", + "T__44", + "T__45", + "T__46", + "T__47", + "T__48", + "T__49", + "T__50", + "T__51", + "T__52", + "T__53", + "DATETIME", + "TIME", + "TIMEFORMAT", + "IDENTIFIER", + "DELIMITEDIDENTIFIER", + "STRING", + "NUMBER", + "WS", + "COMMENT", + "LINE_COMMENT", + "ESC", + "UNICODE", + "HEX", + ]), + (s.prototype.grammarFileName = "FHIRPath.g4"), + (j.a = s); + }, + 4303: (ye, j, p) => { + var n = p(4981); + function f() { + return n.tree.ParseTreeListener.call(this), this; + } + ((f.prototype = Object.create( + n.tree.ParseTreeListener.prototype + )).constructor = f), + (f.prototype.enterEntireExpression = function (_) {}), + (f.prototype.exitEntireExpression = function (_) {}), + (f.prototype.enterIndexerExpression = function (_) {}), + (f.prototype.exitIndexerExpression = function (_) {}), + (f.prototype.enterPolarityExpression = function (_) {}), + (f.prototype.exitPolarityExpression = function (_) {}), + (f.prototype.enterAdditiveExpression = function (_) {}), + (f.prototype.exitAdditiveExpression = function (_) {}), + (f.prototype.enterMultiplicativeExpression = function (_) {}), + (f.prototype.exitMultiplicativeExpression = function (_) {}), + (f.prototype.enterUnionExpression = function (_) {}), + (f.prototype.exitUnionExpression = function (_) {}), + (f.prototype.enterOrExpression = function (_) {}), + (f.prototype.exitOrExpression = function (_) {}), + (f.prototype.enterAndExpression = function (_) {}), + (f.prototype.exitAndExpression = function (_) {}), + (f.prototype.enterMembershipExpression = function (_) {}), + (f.prototype.exitMembershipExpression = function (_) {}), + (f.prototype.enterInequalityExpression = function (_) {}), + (f.prototype.exitInequalityExpression = function (_) {}), + (f.prototype.enterInvocationExpression = function (_) {}), + (f.prototype.exitInvocationExpression = function (_) {}), + (f.prototype.enterEqualityExpression = function (_) {}), + (f.prototype.exitEqualityExpression = function (_) {}), + (f.prototype.enterImpliesExpression = function (_) {}), + (f.prototype.exitImpliesExpression = function (_) {}), + (f.prototype.enterTermExpression = function (_) {}), + (f.prototype.exitTermExpression = function (_) {}), + (f.prototype.enterTypeExpression = function (_) {}), + (f.prototype.exitTypeExpression = function (_) {}), + (f.prototype.enterInvocationTerm = function (_) {}), + (f.prototype.exitInvocationTerm = function (_) {}), + (f.prototype.enterLiteralTerm = function (_) {}), + (f.prototype.exitLiteralTerm = function (_) {}), + (f.prototype.enterExternalConstantTerm = function (_) {}), + (f.prototype.exitExternalConstantTerm = function (_) {}), + (f.prototype.enterParenthesizedTerm = function (_) {}), + (f.prototype.exitParenthesizedTerm = function (_) {}), + (f.prototype.enterNullLiteral = function (_) {}), + (f.prototype.exitNullLiteral = function (_) {}), + (f.prototype.enterBooleanLiteral = function (_) {}), + (f.prototype.exitBooleanLiteral = function (_) {}), + (f.prototype.enterStringLiteral = function (_) {}), + (f.prototype.exitStringLiteral = function (_) {}), + (f.prototype.enterNumberLiteral = function (_) {}), + (f.prototype.exitNumberLiteral = function (_) {}), + (f.prototype.enterDateTimeLiteral = function (_) {}), + (f.prototype.exitDateTimeLiteral = function (_) {}), + (f.prototype.enterTimeLiteral = function (_) {}), + (f.prototype.exitTimeLiteral = function (_) {}), + (f.prototype.enterQuantityLiteral = function (_) {}), + (f.prototype.exitQuantityLiteral = function (_) {}), + (f.prototype.enterExternalConstant = function (_) {}), + (f.prototype.exitExternalConstant = function (_) {}), + (f.prototype.enterMemberInvocation = function (_) {}), + (f.prototype.exitMemberInvocation = function (_) {}), + (f.prototype.enterFunctionInvocation = function (_) {}), + (f.prototype.exitFunctionInvocation = function (_) {}), + (f.prototype.enterThisInvocation = function (_) {}), + (f.prototype.exitThisInvocation = function (_) {}), + (f.prototype.enterIndexInvocation = function (_) {}), + (f.prototype.exitIndexInvocation = function (_) {}), + (f.prototype.enterTotalInvocation = function (_) {}), + (f.prototype.exitTotalInvocation = function (_) {}), + (f.prototype.enterFunctn = function (_) {}), + (f.prototype.exitFunctn = function (_) {}), + (f.prototype.enterParamList = function (_) {}), + (f.prototype.exitParamList = function (_) {}), + (f.prototype.enterQuantity = function (_) {}), + (f.prototype.exitQuantity = function (_) {}), + (f.prototype.enterUnit = function (_) {}), + (f.prototype.exitUnit = function (_) {}), + (f.prototype.enterDateTimePrecision = function (_) {}), + (f.prototype.exitDateTimePrecision = function (_) {}), + (f.prototype.enterPluralDateTimePrecision = function (_) {}), + (f.prototype.exitPluralDateTimePrecision = function (_) {}), + (f.prototype.enterTypeSpecifier = function (_) {}), + (f.prototype.exitTypeSpecifier = function (_) {}), + (f.prototype.enterQualifiedIdentifier = function (_) {}), + (f.prototype.exitQualifiedIdentifier = function (_) {}), + (f.prototype.enterIdentifier = function (_) {}), + (f.prototype.exitIdentifier = function (_) {}), + (j.q = f); + }, + 8974: (ye, j, p) => { + var n = p(4981), + f = p(4303).q, + m = [ + "\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964", + "\x03A\x9c\x04\x02\t\x02\x04\x03\t\x03\x04\x04\t", + "\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t\x07\x04", + "\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x04", + "\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10\t\x10\x03", + "\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03", + "\x03\x05\x03(\n\x03\x03\x03\x03\x03\x03\x03\x03", + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03", + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03", + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03", + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03", + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03", + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x07\x03P", + "\n\x03\f\x03\x0e\x03S\v\x03\x03\x04\x03\x04\x03", + "\x04\x03\x04\x03\x04\x03\x04\x03\x04\x05\x04\\", + "\n\x04\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05", + "\x03\x05\x03\x05\x03\x05\x05\x05f\n\x05\x03\x06", + "\x03\x06\x03\x06\x05\x06k\n\x06\x03\x07\x03\x07", + "\x03\x07\x03\x07\x03\x07\x05\x07r\n\x07\x03\b\x03", + "\b\x03\b\x05\bw\n\b\x03\b\x03\b\x03\t\x03\t\x03\t\x07", + "\t~\n\t\f\t\x0e\t\x81\v\t\x03\n\x03\n\x05\n\x85\n\n", + "\x03\v\x03\v\x03\v\x05\v\x8a\n\v\x03", + "\f\x03\f\x03\r\x03\r\x03\x0e\x03\x0e\x03\x0f\x03", + "\x0f\x03\x0f\x07\x0f\x95\n\x0f\f\x0f\x0e\x0f\x98", + "\v\x0f\x03\x10\x03\x10\x03\x10\x02\x03\x04\x11", + "\x02\x04\x06\b\n\f\x0e\x10\x12\x14\x16\x18\x1a\x1c", + "\x1e\x02\x0e\x03\x02\x06\x07\x03\x02\b\v\x04", + "\x02\x06\x07\f\f\x03\x02\x0e\x11\x03\x02\x14\x17", + "\x03\x02\x18\x19\x03\x02\x1b\x1c\x03\x02\x12\x13", + '\x03\x02"#\x03\x02)0\x03\x0218\x05\x02\x12\x13', + "\x18\x19;<\x02\xad\x02 \x03\x02\x02\x02\x04'\x03", + "\x02\x02\x02\x06[\x03\x02\x02\x02\be\x03\x02\x02", + "\x02\ng\x03\x02\x02\x02\fq\x03\x02\x02\x02\x0es", + "\x03\x02\x02\x02\x10z\x03\x02\x02\x02\x12\x82", + "\x03\x02\x02\x02\x14\x89\x03\x02\x02\x02\x16\x8b", + "\x03\x02\x02\x02\x18\x8d\x03\x02\x02\x02\x1a\x8f", + "\x03\x02\x02\x02\x1c\x91\x03\x02\x02\x02\x1e\x99", + '\x03\x02\x02\x02 !\x05\x04\x03\x02!"\x07\x02\x02', + '\x03"\x03\x03\x02\x02\x02#$\b\x03\x01\x02$(\x05', + "\x06\x04\x02%&\t\x02\x02\x02&(\x05\x04\x03\r'#\x03", + "\x02\x02\x02'%\x03\x02\x02\x02(Q\x03\x02\x02\x02", + ")*\f\f\x02\x02*+\t\x03\x02\x02+P\x05\x04\x03\r,-\f\v", + "\x02\x02-.\t\x04\x02\x02.P\x05\x04\x03\f/0\f\n\x02", + "\x0201\x07\r\x02\x021P\x05\x04\x03\v23\f\t\x02\x02", + "34\t\x05\x02\x024P\x05\x04\x03\n56\f\x07\x02\x026", + "7\t\x06\x02\x027P\x05\x04\x03\b89\f\x06\x02\x029:", + "\t\x07\x02\x02:P\x05\x04\x03\x07;<\f\x05\x02\x02", + "<=\x07\x1a\x02\x02=P\x05\x04\x03\x06>?\f\x04\x02", + "\x02?@\t\b\x02\x02@P\x05\x04\x03\x05AB\f\x03\x02\x02", + "BC\x07\x1d\x02\x02CP\x05\x04\x03\x04DE\f\x0f\x02", + "\x02EF\x07\x03\x02\x02FP\x05\f\x07\x02GH\f\x0e\x02", + "\x02HI\x07\x04\x02\x02IJ\x05\x04\x03\x02JK\x07\x05", + "\x02\x02KP\x03\x02\x02\x02LM\f\b\x02\x02MN\t\t\x02", + "\x02NP\x05\x1a\x0e\x02O)\x03\x02\x02\x02O,\x03\x02", + "\x02\x02O/\x03\x02\x02\x02O2\x03\x02\x02\x02O5\x03", + "\x02\x02\x02O8\x03\x02\x02\x02O;\x03\x02\x02\x02", + "O>\x03\x02\x02\x02OA\x03\x02\x02\x02OD\x03\x02\x02", + "\x02OG\x03\x02\x02\x02OL\x03\x02\x02\x02PS\x03\x02", + "\x02\x02QO\x03\x02\x02\x02QR\x03\x02\x02\x02R\x05", + "\x03\x02\x02\x02SQ\x03\x02\x02\x02T\\\x05\f\x07", + "\x02U\\\x05\b\x05\x02V\\\x05\n\x06\x02WX\x07\x1e\x02", + "\x02XY\x05\x04\x03\x02YZ\x07\x1f\x02\x02Z\\\x03", + "\x02\x02\x02[T\x03\x02\x02\x02[U\x03\x02\x02\x02", + "[V\x03\x02\x02\x02[W\x03\x02\x02\x02\\\x07\x03\x02", + "\x02\x02]^\x07 \x02\x02^f\x07!\x02\x02_f\t\n\x02\x02", + "`f\x07=\x02\x02af\x07>\x02\x02bf\x079\x02\x02cf\x07", + ":\x02\x02df\x05\x12\n\x02e]\x03\x02\x02\x02e_\x03", + "\x02\x02\x02e`\x03\x02\x02\x02ea\x03\x02\x02\x02", + "eb\x03\x02\x02\x02ec\x03\x02\x02\x02ed\x03\x02\x02", + "\x02f\t\x03\x02\x02\x02gj\x07$\x02\x02hk\x05\x1e", + "\x10\x02ik\x07=\x02\x02jh\x03\x02\x02\x02ji\x03", + "\x02\x02\x02k\v\x03\x02\x02\x02lr\x05\x1e\x10", + "\x02mr\x05\x0e\b\x02nr\x07%\x02\x02or\x07&\x02\x02", + "pr\x07'\x02\x02ql\x03\x02\x02\x02qm\x03\x02\x02", + "\x02qn\x03\x02\x02\x02qo\x03\x02\x02\x02qp\x03\x02", + "\x02\x02r\r\x03\x02\x02\x02st\x05\x1e\x10\x02tv", + "\x07\x1e\x02\x02uw\x05\x10\t\x02vu\x03\x02\x02\x02", + "vw\x03\x02\x02\x02wx\x03\x02\x02\x02xy\x07\x1f\x02", + "\x02y\x0f\x03\x02\x02\x02z\x7f\x05\x04\x03\x02", + "{|\x07(\x02\x02|~\x05\x04\x03\x02}{\x03\x02\x02", + "\x02~\x81\x03\x02\x02\x02\x7f}\x03\x02\x02\x02", + "\x7f\x80\x03\x02\x02\x02\x80\x11\x03\x02\x02\x02", + "\x81\x7f\x03\x02\x02\x02\x82\x84\x07>\x02\x02", + "\x83\x85\x05\x14\v\x02\x84\x83\x03\x02\x02\x02", + "\x84\x85\x03\x02\x02\x02\x85\x13\x03\x02\x02\x02", + "\x86\x8a\x05\x16\f\x02\x87\x8a\x05\x18\r\x02\x88", + "\x8a\x07=\x02\x02\x89\x86\x03\x02\x02\x02\x89", + "\x87\x03\x02\x02\x02\x89\x88\x03\x02\x02\x02\x8a", + "\x15\x03\x02\x02\x02\x8b\x8c\t\v\x02\x02\x8c", + "\x17\x03\x02\x02\x02\x8d\x8e\t\f\x02\x02\x8e\x19", + "\x03\x02\x02\x02\x8f\x90\x05\x1c\x0f\x02\x90\x1b", + "\x03\x02\x02\x02\x91\x96\x05\x1e\x10\x02\x92\x93", + "\x07\x03\x02\x02\x93\x95\x05\x1e\x10\x02\x94\x92", + "\x03\x02\x02\x02\x95\x98\x03\x02\x02\x02\x96\x94", + "\x03\x02\x02\x02\x96\x97\x03\x02\x02\x02\x97\x1d", + "\x03\x02\x02\x02\x98\x96\x03\x02\x02\x02\x99\x9a", + "\t\r\x02\x02\x9a\x1f\x03\x02\x02\x02\x0e'OQ[ejqv", + "\x7f\x84\x89\x96", + ].join(""), + s = new n.atn.ATNDeserializer().deserialize(m), + d = s.decisionToState.map(function (D, U) { + return new n.dfa.DFA(D, U); + }), + u = new n.PredictionContextCache(), + h = [ + null, + "'.'", + "'['", + "']'", + "'+'", + "'-'", + "'*'", + "'/'", + "'div'", + "'mod'", + "'&'", + "'|'", + "'<='", + "'<'", + "'>'", + "'>='", + "'is'", + "'as'", + "'='", + "'~'", + "'!='", + "'!~'", + "'in'", + "'contains'", + "'and'", + "'or'", + "'xor'", + "'implies'", + "'('", + "')'", + "'{'", + "'}'", + "'true'", + "'false'", + "'%'", + "'$this'", + "'$index'", + "'$total'", + "','", + "'year'", + "'month'", + "'week'", + "'day'", + "'hour'", + "'minute'", + "'second'", + "'millisecond'", + "'years'", + "'months'", + "'weeks'", + "'days'", + "'hours'", + "'minutes'", + "'seconds'", + "'milliseconds'", + ], + r = [ + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + "DATETIME", + "TIME", + "IDENTIFIER", + "DELIMITEDIDENTIFIER", + "STRING", + "NUMBER", + "WS", + "COMMENT", + "LINE_COMMENT", + ], + o = [ + "entireExpression", + "expression", + "term", + "literal", + "externalConstant", + "invocation", + "functn", + "paramList", + "quantity", + "unit", + "dateTimePrecision", + "pluralDateTimePrecision", + "typeSpecifier", + "qualifiedIdentifier", + "identifier", + ]; + function i(D) { + return ( + n.Parser.call(this, D), + (this._interp = new n.atn.ParserATNSimulator(this, s, d, u)), + (this.ruleNames = o), + (this.literalNames = h), + (this.symbolicNames = r), + this + ); + } + function c(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_entireExpression), + this + ); + } + function l(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_expression), + this + ); + } + function g(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function b(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function y(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function x(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function T(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function O(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function M(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function A(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function S(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function w(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function I(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function C(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function L(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function F(D, U) { + return l.call(this, D), l.prototype.copyFrom.call(this, U), this; + } + function ie(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_term), + this + ); + } + function Y(D, U) { + return ie.call(this, D), ie.prototype.copyFrom.call(this, U), this; + } + function Z(D, U) { + return ie.call(this, D), ie.prototype.copyFrom.call(this, U), this; + } + function ee(D, U) { + return ie.call(this, D), ie.prototype.copyFrom.call(this, U), this; + } + function $(D, U) { + return ie.call(this, D), ie.prototype.copyFrom.call(this, U), this; + } + function J(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_literal), + this + ); + } + function ne(D, U) { + return J.call(this, D), J.prototype.copyFrom.call(this, U), this; + } + function ae(D, U) { + return J.call(this, D), J.prototype.copyFrom.call(this, U), this; + } + function le(D, U) { + return J.call(this, D), J.prototype.copyFrom.call(this, U), this; + } + function Oe(D, U) { + return J.call(this, D), J.prototype.copyFrom.call(this, U), this; + } + function Le(D, U) { + return J.call(this, D), J.prototype.copyFrom.call(this, U), this; + } + function Ye(D, U) { + return J.call(this, D), J.prototype.copyFrom.call(this, U), this; + } + function Je(D, U) { + return J.call(this, D), J.prototype.copyFrom.call(this, U), this; + } + function gt(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_externalConstant), + this + ); + } + function Ue(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_invocation), + this + ); + } + function tt(D, U) { + return Ue.call(this, D), Ue.prototype.copyFrom.call(this, U), this; + } + function at(D, U) { + return Ue.call(this, D), Ue.prototype.copyFrom.call(this, U), this; + } + function ft(D, U) { + return Ue.call(this, D), Ue.prototype.copyFrom.call(this, U), this; + } + function vt(D, U) { + return Ue.call(this, D), Ue.prototype.copyFrom.call(this, U), this; + } + function yt(D, U) { + return Ue.call(this, D), Ue.prototype.copyFrom.call(this, U), this; + } + function ot(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_functn), + this + ); + } + function _t(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_paramList), + this + ); + } + function At(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_quantity), + this + ); + } + function Tt(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_unit), + this + ); + } + function Bt(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_dateTimePrecision), + this + ); + } + function Et(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_pluralDateTimePrecision), + this + ); + } + function Ee(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_typeSpecifier), + this + ); + } + function fe(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_qualifiedIdentifier), + this + ); + } + function H(D, U, X) { + return ( + void 0 === U && (U = null), + null == X && (X = -1), + n.ParserRuleContext.call(this, U, X), + (this.parser = D), + (this.ruleIndex = i.RULE_identifier), + this + ); + } + ((i.prototype = Object.create(n.Parser.prototype)).constructor = i), + Object.defineProperty(i.prototype, "atn", { + get: function () { + return s; + }, + }), + (i.EOF = n.Token.EOF), + (i.T__0 = 1), + (i.T__1 = 2), + (i.T__2 = 3), + (i.T__3 = 4), + (i.T__4 = 5), + (i.T__5 = 6), + (i.T__6 = 7), + (i.T__7 = 8), + (i.T__8 = 9), + (i.T__9 = 10), + (i.T__10 = 11), + (i.T__11 = 12), + (i.T__12 = 13), + (i.T__13 = 14), + (i.T__14 = 15), + (i.T__15 = 16), + (i.T__16 = 17), + (i.T__17 = 18), + (i.T__18 = 19), + (i.T__19 = 20), + (i.T__20 = 21), + (i.T__21 = 22), + (i.T__22 = 23), + (i.T__23 = 24), + (i.T__24 = 25), + (i.T__25 = 26), + (i.T__26 = 27), + (i.T__27 = 28), + (i.T__28 = 29), + (i.T__29 = 30), + (i.T__30 = 31), + (i.T__31 = 32), + (i.T__32 = 33), + (i.T__33 = 34), + (i.T__34 = 35), + (i.T__35 = 36), + (i.T__36 = 37), + (i.T__37 = 38), + (i.T__38 = 39), + (i.T__39 = 40), + (i.T__40 = 41), + (i.T__41 = 42), + (i.T__42 = 43), + (i.T__43 = 44), + (i.T__44 = 45), + (i.T__45 = 46), + (i.T__46 = 47), + (i.T__47 = 48), + (i.T__48 = 49), + (i.T__49 = 50), + (i.T__50 = 51), + (i.T__51 = 52), + (i.T__52 = 53), + (i.T__53 = 54), + (i.DATETIME = 55), + (i.TIME = 56), + (i.IDENTIFIER = 57), + (i.DELIMITEDIDENTIFIER = 58), + (i.STRING = 59), + (i.NUMBER = 60), + (i.WS = 61), + (i.COMMENT = 62), + (i.LINE_COMMENT = 63), + (i.RULE_entireExpression = 0), + (i.RULE_expression = 1), + (i.RULE_term = 2), + (i.RULE_literal = 3), + (i.RULE_externalConstant = 4), + (i.RULE_invocation = 5), + (i.RULE_functn = 6), + (i.RULE_paramList = 7), + (i.RULE_quantity = 8), + (i.RULE_unit = 9), + (i.RULE_dateTimePrecision = 10), + (i.RULE_pluralDateTimePrecision = 11), + (i.RULE_typeSpecifier = 12), + (i.RULE_qualifiedIdentifier = 13), + (i.RULE_identifier = 14), + ((c.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = c), + (c.prototype.expression = function () { + return this.getTypedRuleContext(l, 0); + }), + (c.prototype.EOF = function () { + return this.getToken(i.EOF, 0); + }), + (c.prototype.enterRule = function (D) { + D instanceof f && D.enterEntireExpression(this); + }), + (c.prototype.exitRule = function (D) { + D instanceof f && D.exitEntireExpression(this); + }), + (i.EntireExpressionContext = c), + (i.prototype.entireExpression = function () { + var D = new c(this, this._ctx, this.state); + this.enterRule(D, 0, i.RULE_entireExpression); + try { + this.enterOuterAlt(D, 1), + (this.state = 30), + this.expression(0), + (this.state = 31), + this.match(i.EOF); + } catch (U) { + if (!(U instanceof n.error.RecognitionException)) throw U; + (D.exception = U), + this._errHandler.reportError(this, U), + this._errHandler.recover(this, U); + } finally { + this.exitRule(); + } + return D; + }), + ((l.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = l), + (l.prototype.copyFrom = function (D) { + n.ParserRuleContext.prototype.copyFrom.call(this, D); + }), + ((g.prototype = Object.create(l.prototype)).constructor = g), + (i.IndexerExpressionContext = g), + (g.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (g.prototype.enterRule = function (D) { + D instanceof f && D.enterIndexerExpression(this); + }), + (g.prototype.exitRule = function (D) { + D instanceof f && D.exitIndexerExpression(this); + }), + ((b.prototype = Object.create(l.prototype)).constructor = b), + (i.PolarityExpressionContext = b), + (b.prototype.expression = function () { + return this.getTypedRuleContext(l, 0); + }), + (b.prototype.enterRule = function (D) { + D instanceof f && D.enterPolarityExpression(this); + }), + (b.prototype.exitRule = function (D) { + D instanceof f && D.exitPolarityExpression(this); + }), + ((y.prototype = Object.create(l.prototype)).constructor = y), + (i.AdditiveExpressionContext = y), + (y.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (y.prototype.enterRule = function (D) { + D instanceof f && D.enterAdditiveExpression(this); + }), + (y.prototype.exitRule = function (D) { + D instanceof f && D.exitAdditiveExpression(this); + }), + ((x.prototype = Object.create(l.prototype)).constructor = x), + (i.MultiplicativeExpressionContext = x), + (x.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (x.prototype.enterRule = function (D) { + D instanceof f && D.enterMultiplicativeExpression(this); + }), + (x.prototype.exitRule = function (D) { + D instanceof f && D.exitMultiplicativeExpression(this); + }), + ((T.prototype = Object.create(l.prototype)).constructor = T), + (i.UnionExpressionContext = T), + (T.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (T.prototype.enterRule = function (D) { + D instanceof f && D.enterUnionExpression(this); + }), + (T.prototype.exitRule = function (D) { + D instanceof f && D.exitUnionExpression(this); + }), + ((O.prototype = Object.create(l.prototype)).constructor = O), + (i.OrExpressionContext = O), + (O.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (O.prototype.enterRule = function (D) { + D instanceof f && D.enterOrExpression(this); + }), + (O.prototype.exitRule = function (D) { + D instanceof f && D.exitOrExpression(this); + }), + ((M.prototype = Object.create(l.prototype)).constructor = M), + (i.AndExpressionContext = M), + (M.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (M.prototype.enterRule = function (D) { + D instanceof f && D.enterAndExpression(this); + }), + (M.prototype.exitRule = function (D) { + D instanceof f && D.exitAndExpression(this); + }), + ((A.prototype = Object.create(l.prototype)).constructor = A), + (i.MembershipExpressionContext = A), + (A.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (A.prototype.enterRule = function (D) { + D instanceof f && D.enterMembershipExpression(this); + }), + (A.prototype.exitRule = function (D) { + D instanceof f && D.exitMembershipExpression(this); + }), + ((S.prototype = Object.create(l.prototype)).constructor = S), + (i.InequalityExpressionContext = S), + (S.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (S.prototype.enterRule = function (D) { + D instanceof f && D.enterInequalityExpression(this); + }), + (S.prototype.exitRule = function (D) { + D instanceof f && D.exitInequalityExpression(this); + }), + ((w.prototype = Object.create(l.prototype)).constructor = w), + (i.InvocationExpressionContext = w), + (w.prototype.expression = function () { + return this.getTypedRuleContext(l, 0); + }), + (w.prototype.invocation = function () { + return this.getTypedRuleContext(Ue, 0); + }), + (w.prototype.enterRule = function (D) { + D instanceof f && D.enterInvocationExpression(this); + }), + (w.prototype.exitRule = function (D) { + D instanceof f && D.exitInvocationExpression(this); + }), + ((I.prototype = Object.create(l.prototype)).constructor = I), + (i.EqualityExpressionContext = I), + (I.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (I.prototype.enterRule = function (D) { + D instanceof f && D.enterEqualityExpression(this); + }), + (I.prototype.exitRule = function (D) { + D instanceof f && D.exitEqualityExpression(this); + }), + ((C.prototype = Object.create(l.prototype)).constructor = C), + (i.ImpliesExpressionContext = C), + (C.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (C.prototype.enterRule = function (D) { + D instanceof f && D.enterImpliesExpression(this); + }), + (C.prototype.exitRule = function (D) { + D instanceof f && D.exitImpliesExpression(this); + }), + ((L.prototype = Object.create(l.prototype)).constructor = L), + (i.TermExpressionContext = L), + (L.prototype.term = function () { + return this.getTypedRuleContext(ie, 0); + }), + (L.prototype.enterRule = function (D) { + D instanceof f && D.enterTermExpression(this); + }), + (L.prototype.exitRule = function (D) { + D instanceof f && D.exitTermExpression(this); + }), + ((F.prototype = Object.create(l.prototype)).constructor = F), + (i.TypeExpressionContext = F), + (F.prototype.expression = function () { + return this.getTypedRuleContext(l, 0); + }), + (F.prototype.typeSpecifier = function () { + return this.getTypedRuleContext(Ee, 0); + }), + (F.prototype.enterRule = function (D) { + D instanceof f && D.enterTypeExpression(this); + }), + (F.prototype.exitRule = function (D) { + D instanceof f && D.exitTypeExpression(this); + }), + (i.prototype.expression = function (D) { + void 0 === D && (D = 0); + var U = this._ctx, + X = this.state, + _e = new l(this, this._ctx, X); + this.enterRecursionRule(_e, 2, i.RULE_expression, D); + var st = 0; + try { + switch ( + (this.enterOuterAlt(_e, 1), + (this.state = 37), + this._errHandler.sync(this), + this._input.LA(1)) + ) { + case i.T__15: + case i.T__16: + case i.T__21: + case i.T__22: + case i.T__27: + case i.T__29: + case i.T__31: + case i.T__32: + case i.T__33: + case i.T__34: + case i.T__35: + case i.T__36: + case i.DATETIME: + case i.TIME: + case i.IDENTIFIER: + case i.DELIMITEDIDENTIFIER: + case i.STRING: + case i.NUMBER: + (_e = new L(this, _e)), + (this._ctx = _e), + (this.state = 34), + this.term(); + break; + case i.T__3: + case i.T__4: + (_e = new b(this, _e)), + (this._ctx = _e), + (this.state = 35), + (st = this._input.LA(1)) === i.T__3 || st === i.T__4 + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this), + (this.state = 36), + this.expression(11); + break; + default: + throw new n.error.NoViableAltException(this); + } + (this._ctx.stop = this._input.LT(-1)), + (this.state = 79), + this._errHandler.sync(this); + for ( + var ut = this._interp.adaptivePredict(this._input, 2, this._ctx); + 2 != ut && ut != n.atn.ATN.INVALID_ALT_NUMBER; + + ) { + if (1 === ut) + switch ( + (null !== this._parseListeners && this.triggerExitRuleEvent(), + (this.state = 77), + this._errHandler.sync(this), + this._interp.adaptivePredict(this._input, 1, this._ctx)) + ) { + case 1: + if ( + ((_e = new x(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 39), + !this.precpred(this._ctx, 10)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 10)" + ); + (this.state = 40), + 0 == (-32 & (st = this._input.LA(1))) && + 0 != + ((1 << st) & + ((1 << i.T__5) | + (1 << i.T__6) | + (1 << i.T__7) | + (1 << i.T__8))) + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this), + (this.state = 41), + this.expression(11); + break; + case 2: + if ( + ((_e = new y(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 42), + !this.precpred(this._ctx, 9)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 9)" + ); + (this.state = 43), + 0 == (-32 & (st = this._input.LA(1))) && + 0 != + ((1 << st) & + ((1 << i.T__3) | (1 << i.T__4) | (1 << i.T__9))) + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this), + (this.state = 44), + this.expression(10); + break; + case 3: + if ( + ((_e = new T(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 45), + !this.precpred(this._ctx, 8)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 8)" + ); + (this.state = 46), + this.match(i.T__10), + (this.state = 47), + this.expression(9); + break; + case 4: + if ( + ((_e = new S(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 48), + !this.precpred(this._ctx, 7)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 7)" + ); + (this.state = 49), + 0 == (-32 & (st = this._input.LA(1))) && + 0 != + ((1 << st) & + ((1 << i.T__11) | + (1 << i.T__12) | + (1 << i.T__13) | + (1 << i.T__14))) + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this), + (this.state = 50), + this.expression(8); + break; + case 5: + if ( + ((_e = new I(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 51), + !this.precpred(this._ctx, 5)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 5)" + ); + (this.state = 52), + 0 == (-32 & (st = this._input.LA(1))) && + 0 != + ((1 << st) & + ((1 << i.T__17) | + (1 << i.T__18) | + (1 << i.T__19) | + (1 << i.T__20))) + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this), + (this.state = 53), + this.expression(6); + break; + case 6: + if ( + ((_e = new A(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 54), + !this.precpred(this._ctx, 4)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 4)" + ); + (this.state = 55), + (st = this._input.LA(1)) === i.T__21 || st === i.T__22 + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this), + (this.state = 56), + this.expression(5); + break; + case 7: + if ( + ((_e = new M(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 57), + !this.precpred(this._ctx, 3)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 3)" + ); + (this.state = 58), + this.match(i.T__23), + (this.state = 59), + this.expression(4); + break; + case 8: + if ( + ((_e = new O(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 60), + !this.precpred(this._ctx, 2)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 2)" + ); + (this.state = 61), + (st = this._input.LA(1)) === i.T__24 || st === i.T__25 + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this), + (this.state = 62), + this.expression(3); + break; + case 9: + if ( + ((_e = new C(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 63), + !this.precpred(this._ctx, 1)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 1)" + ); + (this.state = 64), + this.match(i.T__26), + (this.state = 65), + this.expression(2); + break; + case 10: + if ( + ((_e = new w(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 66), + !this.precpred(this._ctx, 13)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 13)" + ); + (this.state = 67), + this.match(i.T__0), + (this.state = 68), + this.invocation(); + break; + case 11: + if ( + ((_e = new g(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 69), + !this.precpred(this._ctx, 12)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 12)" + ); + (this.state = 70), + this.match(i.T__1), + (this.state = 71), + this.expression(0), + (this.state = 72), + this.match(i.T__2); + break; + case 12: + if ( + ((_e = new F(this, new l(this, U, X))), + this.pushNewRecursionContext(_e, 2, i.RULE_expression), + (this.state = 74), + !this.precpred(this._ctx, 6)) + ) + throw new n.error.FailedPredicateException( + this, + "this.precpred(this._ctx, 6)" + ); + (this.state = 75), + (st = this._input.LA(1)) === i.T__15 || st === i.T__16 + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this), + (this.state = 76), + this.typeSpecifier(); + } + (this.state = 81), + this._errHandler.sync(this), + (ut = this._interp.adaptivePredict(this._input, 2, this._ctx)); + } + } catch (Xt) { + if (!(Xt instanceof n.error.RecognitionException)) throw Xt; + (_e.exception = Xt), + this._errHandler.reportError(this, Xt), + this._errHandler.recover(this, Xt); + } finally { + this.unrollRecursionContexts(U); + } + return _e; + }), + ((ie.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = ie), + (ie.prototype.copyFrom = function (D) { + n.ParserRuleContext.prototype.copyFrom.call(this, D); + }), + ((Y.prototype = Object.create(ie.prototype)).constructor = Y), + (i.ExternalConstantTermContext = Y), + (Y.prototype.externalConstant = function () { + return this.getTypedRuleContext(gt, 0); + }), + (Y.prototype.enterRule = function (D) { + D instanceof f && D.enterExternalConstantTerm(this); + }), + (Y.prototype.exitRule = function (D) { + D instanceof f && D.exitExternalConstantTerm(this); + }), + ((Z.prototype = Object.create(ie.prototype)).constructor = Z), + (i.LiteralTermContext = Z), + (Z.prototype.literal = function () { + return this.getTypedRuleContext(J, 0); + }), + (Z.prototype.enterRule = function (D) { + D instanceof f && D.enterLiteralTerm(this); + }), + (Z.prototype.exitRule = function (D) { + D instanceof f && D.exitLiteralTerm(this); + }), + ((ee.prototype = Object.create(ie.prototype)).constructor = ee), + (i.ParenthesizedTermContext = ee), + (ee.prototype.expression = function () { + return this.getTypedRuleContext(l, 0); + }), + (ee.prototype.enterRule = function (D) { + D instanceof f && D.enterParenthesizedTerm(this); + }), + (ee.prototype.exitRule = function (D) { + D instanceof f && D.exitParenthesizedTerm(this); + }), + (($.prototype = Object.create(ie.prototype)).constructor = $), + (i.InvocationTermContext = $), + ($.prototype.invocation = function () { + return this.getTypedRuleContext(Ue, 0); + }), + ($.prototype.enterRule = function (D) { + D instanceof f && D.enterInvocationTerm(this); + }), + ($.prototype.exitRule = function (D) { + D instanceof f && D.exitInvocationTerm(this); + }), + (i.TermContext = ie), + (i.prototype.term = function () { + var D = new ie(this, this._ctx, this.state); + this.enterRule(D, 4, i.RULE_term); + try { + switch ( + ((this.state = 89), + this._errHandler.sync(this), + this._input.LA(1)) + ) { + case i.T__15: + case i.T__16: + case i.T__21: + case i.T__22: + case i.T__34: + case i.T__35: + case i.T__36: + case i.IDENTIFIER: + case i.DELIMITEDIDENTIFIER: + (D = new $(this, D)), + this.enterOuterAlt(D, 1), + (this.state = 82), + this.invocation(); + break; + case i.T__29: + case i.T__31: + case i.T__32: + case i.DATETIME: + case i.TIME: + case i.STRING: + case i.NUMBER: + (D = new Z(this, D)), + this.enterOuterAlt(D, 2), + (this.state = 83), + this.literal(); + break; + case i.T__33: + (D = new Y(this, D)), + this.enterOuterAlt(D, 3), + (this.state = 84), + this.externalConstant(); + break; + case i.T__27: + (D = new ee(this, D)), + this.enterOuterAlt(D, 4), + (this.state = 85), + this.match(i.T__27), + (this.state = 86), + this.expression(0), + (this.state = 87), + this.match(i.T__28); + break; + default: + throw new n.error.NoViableAltException(this); + } + } catch (U) { + if (!(U instanceof n.error.RecognitionException)) throw U; + (D.exception = U), + this._errHandler.reportError(this, U), + this._errHandler.recover(this, U); + } finally { + this.exitRule(); + } + return D; + }), + ((J.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = J), + (J.prototype.copyFrom = function (D) { + n.ParserRuleContext.prototype.copyFrom.call(this, D); + }), + ((ne.prototype = Object.create(J.prototype)).constructor = ne), + (i.TimeLiteralContext = ne), + (ne.prototype.TIME = function () { + return this.getToken(i.TIME, 0); + }), + (ne.prototype.enterRule = function (D) { + D instanceof f && D.enterTimeLiteral(this); + }), + (ne.prototype.exitRule = function (D) { + D instanceof f && D.exitTimeLiteral(this); + }), + ((ae.prototype = Object.create(J.prototype)).constructor = ae), + (i.NullLiteralContext = ae), + (ae.prototype.enterRule = function (D) { + D instanceof f && D.enterNullLiteral(this); + }), + (ae.prototype.exitRule = function (D) { + D instanceof f && D.exitNullLiteral(this); + }), + ((le.prototype = Object.create(J.prototype)).constructor = le), + (i.DateTimeLiteralContext = le), + (le.prototype.DATETIME = function () { + return this.getToken(i.DATETIME, 0); + }), + (le.prototype.enterRule = function (D) { + D instanceof f && D.enterDateTimeLiteral(this); + }), + (le.prototype.exitRule = function (D) { + D instanceof f && D.exitDateTimeLiteral(this); + }), + ((Oe.prototype = Object.create(J.prototype)).constructor = Oe), + (i.StringLiteralContext = Oe), + (Oe.prototype.STRING = function () { + return this.getToken(i.STRING, 0); + }), + (Oe.prototype.enterRule = function (D) { + D instanceof f && D.enterStringLiteral(this); + }), + (Oe.prototype.exitRule = function (D) { + D instanceof f && D.exitStringLiteral(this); + }), + ((Le.prototype = Object.create(J.prototype)).constructor = Le), + (i.BooleanLiteralContext = Le), + (Le.prototype.enterRule = function (D) { + D instanceof f && D.enterBooleanLiteral(this); + }), + (Le.prototype.exitRule = function (D) { + D instanceof f && D.exitBooleanLiteral(this); + }), + ((Ye.prototype = Object.create(J.prototype)).constructor = Ye), + (i.NumberLiteralContext = Ye), + (Ye.prototype.NUMBER = function () { + return this.getToken(i.NUMBER, 0); + }), + (Ye.prototype.enterRule = function (D) { + D instanceof f && D.enterNumberLiteral(this); + }), + (Ye.prototype.exitRule = function (D) { + D instanceof f && D.exitNumberLiteral(this); + }), + ((Je.prototype = Object.create(J.prototype)).constructor = Je), + (i.QuantityLiteralContext = Je), + (Je.prototype.quantity = function () { + return this.getTypedRuleContext(At, 0); + }), + (Je.prototype.enterRule = function (D) { + D instanceof f && D.enterQuantityLiteral(this); + }), + (Je.prototype.exitRule = function (D) { + D instanceof f && D.exitQuantityLiteral(this); + }), + (i.LiteralContext = J), + (i.prototype.literal = function () { + var D = new J(this, this._ctx, this.state); + this.enterRule(D, 6, i.RULE_literal); + var U = 0; + try { + switch ( + ((this.state = 99), + this._errHandler.sync(this), + this._interp.adaptivePredict(this._input, 4, this._ctx)) + ) { + case 1: + (D = new ae(this, D)), + this.enterOuterAlt(D, 1), + (this.state = 91), + this.match(i.T__29), + (this.state = 92), + this.match(i.T__30); + break; + case 2: + (D = new Le(this, D)), + this.enterOuterAlt(D, 2), + (this.state = 93), + (U = this._input.LA(1)) === i.T__31 || U === i.T__32 + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this); + break; + case 3: + (D = new Oe(this, D)), + this.enterOuterAlt(D, 3), + (this.state = 94), + this.match(i.STRING); + break; + case 4: + (D = new Ye(this, D)), + this.enterOuterAlt(D, 4), + (this.state = 95), + this.match(i.NUMBER); + break; + case 5: + (D = new le(this, D)), + this.enterOuterAlt(D, 5), + (this.state = 96), + this.match(i.DATETIME); + break; + case 6: + (D = new ne(this, D)), + this.enterOuterAlt(D, 6), + (this.state = 97), + this.match(i.TIME); + break; + case 7: + (D = new Je(this, D)), + this.enterOuterAlt(D, 7), + (this.state = 98), + this.quantity(); + } + } catch (_e) { + if (!(_e instanceof n.error.RecognitionException)) throw _e; + (D.exception = _e), + this._errHandler.reportError(this, _e), + this._errHandler.recover(this, _e); + } finally { + this.exitRule(); + } + return D; + }), + ((gt.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = gt), + (gt.prototype.identifier = function () { + return this.getTypedRuleContext(H, 0); + }), + (gt.prototype.STRING = function () { + return this.getToken(i.STRING, 0); + }), + (gt.prototype.enterRule = function (D) { + D instanceof f && D.enterExternalConstant(this); + }), + (gt.prototype.exitRule = function (D) { + D instanceof f && D.exitExternalConstant(this); + }), + (i.ExternalConstantContext = gt), + (i.prototype.externalConstant = function () { + var D = new gt(this, this._ctx, this.state); + this.enterRule(D, 8, i.RULE_externalConstant); + try { + switch ( + (this.enterOuterAlt(D, 1), + (this.state = 101), + this.match(i.T__33), + (this.state = 104), + this._errHandler.sync(this), + this._input.LA(1)) + ) { + case i.T__15: + case i.T__16: + case i.T__21: + case i.T__22: + case i.IDENTIFIER: + case i.DELIMITEDIDENTIFIER: + (this.state = 102), this.identifier(); + break; + case i.STRING: + (this.state = 103), this.match(i.STRING); + break; + default: + throw new n.error.NoViableAltException(this); + } + } catch (U) { + if (!(U instanceof n.error.RecognitionException)) throw U; + (D.exception = U), + this._errHandler.reportError(this, U), + this._errHandler.recover(this, U); + } finally { + this.exitRule(); + } + return D; + }), + ((Ue.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = Ue), + (Ue.prototype.copyFrom = function (D) { + n.ParserRuleContext.prototype.copyFrom.call(this, D); + }), + ((tt.prototype = Object.create(Ue.prototype)).constructor = tt), + (i.TotalInvocationContext = tt), + (tt.prototype.enterRule = function (D) { + D instanceof f && D.enterTotalInvocation(this); + }), + (tt.prototype.exitRule = function (D) { + D instanceof f && D.exitTotalInvocation(this); + }), + ((at.prototype = Object.create(Ue.prototype)).constructor = at), + (i.ThisInvocationContext = at), + (at.prototype.enterRule = function (D) { + D instanceof f && D.enterThisInvocation(this); + }), + (at.prototype.exitRule = function (D) { + D instanceof f && D.exitThisInvocation(this); + }), + ((ft.prototype = Object.create(Ue.prototype)).constructor = ft), + (i.IndexInvocationContext = ft), + (ft.prototype.enterRule = function (D) { + D instanceof f && D.enterIndexInvocation(this); + }), + (ft.prototype.exitRule = function (D) { + D instanceof f && D.exitIndexInvocation(this); + }), + ((vt.prototype = Object.create(Ue.prototype)).constructor = vt), + (i.FunctionInvocationContext = vt), + (vt.prototype.functn = function () { + return this.getTypedRuleContext(ot, 0); + }), + (vt.prototype.enterRule = function (D) { + D instanceof f && D.enterFunctionInvocation(this); + }), + (vt.prototype.exitRule = function (D) { + D instanceof f && D.exitFunctionInvocation(this); + }), + ((yt.prototype = Object.create(Ue.prototype)).constructor = yt), + (i.MemberInvocationContext = yt), + (yt.prototype.identifier = function () { + return this.getTypedRuleContext(H, 0); + }), + (yt.prototype.enterRule = function (D) { + D instanceof f && D.enterMemberInvocation(this); + }), + (yt.prototype.exitRule = function (D) { + D instanceof f && D.exitMemberInvocation(this); + }), + (i.InvocationContext = Ue), + (i.prototype.invocation = function () { + var D = new Ue(this, this._ctx, this.state); + this.enterRule(D, 10, i.RULE_invocation); + try { + switch ( + ((this.state = 111), + this._errHandler.sync(this), + this._interp.adaptivePredict(this._input, 6, this._ctx)) + ) { + case 1: + (D = new yt(this, D)), + this.enterOuterAlt(D, 1), + (this.state = 106), + this.identifier(); + break; + case 2: + (D = new vt(this, D)), + this.enterOuterAlt(D, 2), + (this.state = 107), + this.functn(); + break; + case 3: + (D = new at(this, D)), + this.enterOuterAlt(D, 3), + (this.state = 108), + this.match(i.T__34); + break; + case 4: + (D = new ft(this, D)), + this.enterOuterAlt(D, 4), + (this.state = 109), + this.match(i.T__35); + break; + case 5: + (D = new tt(this, D)), + this.enterOuterAlt(D, 5), + (this.state = 110), + this.match(i.T__36); + } + } catch (X) { + if (!(X instanceof n.error.RecognitionException)) throw X; + (D.exception = X), + this._errHandler.reportError(this, X), + this._errHandler.recover(this, X); + } finally { + this.exitRule(); + } + return D; + }), + ((ot.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = ot), + (ot.prototype.identifier = function () { + return this.getTypedRuleContext(H, 0); + }), + (ot.prototype.paramList = function () { + return this.getTypedRuleContext(_t, 0); + }), + (ot.prototype.enterRule = function (D) { + D instanceof f && D.enterFunctn(this); + }), + (ot.prototype.exitRule = function (D) { + D instanceof f && D.exitFunctn(this); + }), + (i.FunctnContext = ot), + (i.prototype.functn = function () { + var D = new ot(this, this._ctx, this.state); + this.enterRule(D, 12, i.RULE_functn); + var U = 0; + try { + this.enterOuterAlt(D, 1), + (this.state = 113), + this.identifier(), + (this.state = 114), + this.match(i.T__27), + (this.state = 116), + this._errHandler.sync(this), + ((0 == (-32 & (U = this._input.LA(1))) && + 0 != + ((1 << U) & + ((1 << i.T__3) | + (1 << i.T__4) | + (1 << i.T__15) | + (1 << i.T__16) | + (1 << i.T__21) | + (1 << i.T__22) | + (1 << i.T__27) | + (1 << i.T__29)))) || + (0 == ((U - 32) & -32) && + 0 != + ((1 << (U - 32)) & + ((1 << (i.T__31 - 32)) | + (1 << (i.T__32 - 32)) | + (1 << (i.T__33 - 32)) | + (1 << (i.T__34 - 32)) | + (1 << (i.T__35 - 32)) | + (1 << (i.T__36 - 32)) | + (1 << (i.DATETIME - 32)) | + (1 << (i.TIME - 32)) | + (1 << (i.IDENTIFIER - 32)) | + (1 << (i.DELIMITEDIDENTIFIER - 32)) | + (1 << (i.STRING - 32)) | + (1 << (i.NUMBER - 32)))))) && + ((this.state = 115), this.paramList()), + (this.state = 118), + this.match(i.T__28); + } catch (X) { + if (!(X instanceof n.error.RecognitionException)) throw X; + (D.exception = X), + this._errHandler.reportError(this, X), + this._errHandler.recover(this, X); + } finally { + this.exitRule(); + } + return D; + }), + ((_t.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = _t), + (_t.prototype.expression = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(l) + : this.getTypedRuleContext(l, D) + ); + }), + (_t.prototype.enterRule = function (D) { + D instanceof f && D.enterParamList(this); + }), + (_t.prototype.exitRule = function (D) { + D instanceof f && D.exitParamList(this); + }), + (i.ParamListContext = _t), + (i.prototype.paramList = function () { + var D = new _t(this, this._ctx, this.state); + this.enterRule(D, 14, i.RULE_paramList); + var U = 0; + try { + for ( + this.enterOuterAlt(D, 1), + this.state = 120, + this.expression(0), + this.state = 125, + this._errHandler.sync(this), + U = this._input.LA(1); + U === i.T__37; + + ) + (this.state = 121), + this.match(i.T__37), + (this.state = 122), + this.expression(0), + (this.state = 127), + this._errHandler.sync(this), + (U = this._input.LA(1)); + } catch (X) { + if (!(X instanceof n.error.RecognitionException)) throw X; + (D.exception = X), + this._errHandler.reportError(this, X), + this._errHandler.recover(this, X); + } finally { + this.exitRule(); + } + return D; + }), + ((At.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = At), + (At.prototype.NUMBER = function () { + return this.getToken(i.NUMBER, 0); + }), + (At.prototype.unit = function () { + return this.getTypedRuleContext(Tt, 0); + }), + (At.prototype.enterRule = function (D) { + D instanceof f && D.enterQuantity(this); + }), + (At.prototype.exitRule = function (D) { + D instanceof f && D.exitQuantity(this); + }), + (i.QuantityContext = At), + (i.prototype.quantity = function () { + var D = new At(this, this._ctx, this.state); + this.enterRule(D, 16, i.RULE_quantity); + try { + this.enterOuterAlt(D, 1), + (this.state = 128), + this.match(i.NUMBER), + (this.state = 130), + this._errHandler.sync(this), + 1 === this._interp.adaptivePredict(this._input, 9, this._ctx) && + ((this.state = 129), this.unit()); + } catch (X) { + if (!(X instanceof n.error.RecognitionException)) throw X; + (D.exception = X), + this._errHandler.reportError(this, X), + this._errHandler.recover(this, X); + } finally { + this.exitRule(); + } + return D; + }), + ((Tt.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = Tt), + (Tt.prototype.dateTimePrecision = function () { + return this.getTypedRuleContext(Bt, 0); + }), + (Tt.prototype.pluralDateTimePrecision = function () { + return this.getTypedRuleContext(Et, 0); + }), + (Tt.prototype.STRING = function () { + return this.getToken(i.STRING, 0); + }), + (Tt.prototype.enterRule = function (D) { + D instanceof f && D.enterUnit(this); + }), + (Tt.prototype.exitRule = function (D) { + D instanceof f && D.exitUnit(this); + }), + (i.UnitContext = Tt), + (i.prototype.unit = function () { + var D = new Tt(this, this._ctx, this.state); + this.enterRule(D, 18, i.RULE_unit); + try { + switch ( + ((this.state = 135), + this._errHandler.sync(this), + this._input.LA(1)) + ) { + case i.T__38: + case i.T__39: + case i.T__40: + case i.T__41: + case i.T__42: + case i.T__43: + case i.T__44: + case i.T__45: + this.enterOuterAlt(D, 1), + (this.state = 132), + this.dateTimePrecision(); + break; + case i.T__46: + case i.T__47: + case i.T__48: + case i.T__49: + case i.T__50: + case i.T__51: + case i.T__52: + case i.T__53: + this.enterOuterAlt(D, 2), + (this.state = 133), + this.pluralDateTimePrecision(); + break; + case i.STRING: + this.enterOuterAlt(D, 3), + (this.state = 134), + this.match(i.STRING); + break; + default: + throw new n.error.NoViableAltException(this); + } + } catch (U) { + if (!(U instanceof n.error.RecognitionException)) throw U; + (D.exception = U), + this._errHandler.reportError(this, U), + this._errHandler.recover(this, U); + } finally { + this.exitRule(); + } + return D; + }), + ((Bt.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = Bt), + (Bt.prototype.enterRule = function (D) { + D instanceof f && D.enterDateTimePrecision(this); + }), + (Bt.prototype.exitRule = function (D) { + D instanceof f && D.exitDateTimePrecision(this); + }), + (i.DateTimePrecisionContext = Bt), + (i.prototype.dateTimePrecision = function () { + var D = new Bt(this, this._ctx, this.state); + this.enterRule(D, 20, i.RULE_dateTimePrecision); + var U = 0; + try { + this.enterOuterAlt(D, 1), + (this.state = 137), + 0 == (((U = this._input.LA(1)) - 39) & -32) && + 0 != + ((1 << (U - 39)) & + ((1 << (i.T__38 - 39)) | + (1 << (i.T__39 - 39)) | + (1 << (i.T__40 - 39)) | + (1 << (i.T__41 - 39)) | + (1 << (i.T__42 - 39)) | + (1 << (i.T__43 - 39)) | + (1 << (i.T__44 - 39)) | + (1 << (i.T__45 - 39)))) + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this); + } catch (X) { + if (!(X instanceof n.error.RecognitionException)) throw X; + (D.exception = X), + this._errHandler.reportError(this, X), + this._errHandler.recover(this, X); + } finally { + this.exitRule(); + } + return D; + }), + ((Et.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = Et), + (Et.prototype.enterRule = function (D) { + D instanceof f && D.enterPluralDateTimePrecision(this); + }), + (Et.prototype.exitRule = function (D) { + D instanceof f && D.exitPluralDateTimePrecision(this); + }), + (i.PluralDateTimePrecisionContext = Et), + (i.prototype.pluralDateTimePrecision = function () { + var D = new Et(this, this._ctx, this.state); + this.enterRule(D, 22, i.RULE_pluralDateTimePrecision); + var U = 0; + try { + this.enterOuterAlt(D, 1), + (this.state = 139), + 0 == (((U = this._input.LA(1)) - 47) & -32) && + 0 != + ((1 << (U - 47)) & + ((1 << (i.T__46 - 47)) | + (1 << (i.T__47 - 47)) | + (1 << (i.T__48 - 47)) | + (1 << (i.T__49 - 47)) | + (1 << (i.T__50 - 47)) | + (1 << (i.T__51 - 47)) | + (1 << (i.T__52 - 47)) | + (1 << (i.T__53 - 47)))) + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this); + } catch (X) { + if (!(X instanceof n.error.RecognitionException)) throw X; + (D.exception = X), + this._errHandler.reportError(this, X), + this._errHandler.recover(this, X); + } finally { + this.exitRule(); + } + return D; + }), + ((Ee.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = Ee), + (Ee.prototype.qualifiedIdentifier = function () { + return this.getTypedRuleContext(fe, 0); + }), + (Ee.prototype.enterRule = function (D) { + D instanceof f && D.enterTypeSpecifier(this); + }), + (Ee.prototype.exitRule = function (D) { + D instanceof f && D.exitTypeSpecifier(this); + }), + (i.TypeSpecifierContext = Ee), + (i.prototype.typeSpecifier = function () { + var D = new Ee(this, this._ctx, this.state); + this.enterRule(D, 24, i.RULE_typeSpecifier); + try { + this.enterOuterAlt(D, 1), + (this.state = 141), + this.qualifiedIdentifier(); + } catch (U) { + if (!(U instanceof n.error.RecognitionException)) throw U; + (D.exception = U), + this._errHandler.reportError(this, U), + this._errHandler.recover(this, U); + } finally { + this.exitRule(); + } + return D; + }), + ((fe.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = fe), + (fe.prototype.identifier = function (D) { + return ( + void 0 === D && (D = null), + null === D + ? this.getTypedRuleContexts(H) + : this.getTypedRuleContext(H, D) + ); + }), + (fe.prototype.enterRule = function (D) { + D instanceof f && D.enterQualifiedIdentifier(this); + }), + (fe.prototype.exitRule = function (D) { + D instanceof f && D.exitQualifiedIdentifier(this); + }), + (i.QualifiedIdentifierContext = fe), + (i.prototype.qualifiedIdentifier = function () { + var D = new fe(this, this._ctx, this.state); + this.enterRule(D, 26, i.RULE_qualifiedIdentifier); + try { + this.enterOuterAlt(D, 1), + (this.state = 143), + this.identifier(), + (this.state = 148), + this._errHandler.sync(this); + for ( + var U = this._interp.adaptivePredict(this._input, 11, this._ctx); + 2 != U && U != n.atn.ATN.INVALID_ALT_NUMBER; + + ) + 1 === U && + ((this.state = 144), + this.match(i.T__0), + (this.state = 145), + this.identifier()), + (this.state = 150), + this._errHandler.sync(this), + (U = this._interp.adaptivePredict(this._input, 11, this._ctx)); + } catch (X) { + if (!(X instanceof n.error.RecognitionException)) throw X; + (D.exception = X), + this._errHandler.reportError(this, X), + this._errHandler.recover(this, X); + } finally { + this.exitRule(); + } + return D; + }), + ((H.prototype = Object.create( + n.ParserRuleContext.prototype + )).constructor = H), + (H.prototype.IDENTIFIER = function () { + return this.getToken(i.IDENTIFIER, 0); + }), + (H.prototype.DELIMITEDIDENTIFIER = function () { + return this.getToken(i.DELIMITEDIDENTIFIER, 0); + }), + (H.prototype.enterRule = function (D) { + D instanceof f && D.enterIdentifier(this); + }), + (H.prototype.exitRule = function (D) { + D instanceof f && D.exitIdentifier(this); + }), + (i.IdentifierContext = H), + (i.prototype.identifier = function () { + var D = new H(this, this._ctx, this.state); + this.enterRule(D, 28, i.RULE_identifier); + var U = 0; + try { + this.enterOuterAlt(D, 1), + (this.state = 151), + (0 == (-32 & (U = this._input.LA(1))) && + 0 != + ((1 << U) & + ((1 << i.T__15) | + (1 << i.T__16) | + (1 << i.T__21) | + (1 << i.T__22)))) || + U === i.IDENTIFIER || + U === i.DELIMITEDIDENTIFIER + ? (this._errHandler.reportMatch(this), this.consume()) + : this._errHandler.recoverInline(this); + } catch (X) { + if (!(X instanceof n.error.RecognitionException)) throw X; + (D.exception = X), + this._errHandler.reportError(this, X), + this._errHandler.recover(this, X); + } finally { + this.exitRule(); + } + return D; + }), + (i.prototype.sempred = function (D, U, X) { + if (1 === U) return this.expression_sempred(D, X); + throw "No predicate with index:" + U; + }), + (i.prototype.expression_sempred = function (D, U) { + switch (U) { + case 0: + return this.precpred(this._ctx, 10); + case 1: + return this.precpred(this._ctx, 9); + case 2: + return this.precpred(this._ctx, 8); + case 3: + return this.precpred(this._ctx, 7); + case 4: + return this.precpred(this._ctx, 5); + case 5: + return this.precpred(this._ctx, 4); + case 6: + return this.precpred(this._ctx, 3); + case 7: + return this.precpred(this._ctx, 2); + case 8: + return this.precpred(this._ctx, 1); + case 9: + return this.precpred(this._ctx, 13); + case 10: + return this.precpred(this._ctx, 12); + case 11: + return this.precpred(this._ctx, 6); + default: + throw "No predicate with index:" + U; + } + }), + (j._ = i); + }, + 9410: (ye, j, p) => { + const n = p(4981), + f = p(4621).a, + _ = p(8974)._, + m = p(4303).q; + var s = function (u) { + return n.error.ErrorListener.call(this), (this.errors = u), this; + }; + ((s.prototype = Object.create( + n.error.ErrorListener.prototype + )).constructor = s), + (s.prototype.syntaxError = function (u, h, r, o, i, c) { + this.errors.push([u, h, r, o, i, c]); + }), + (ye.exports = { + parse: function (u) { + var h = new n.InputStream(u), + r = new f(h), + o = new n.CommonTokenStream(r), + i = new _(o); + i.buildParseTrees = !0; + var c = [], + l = new s(c); + r.removeErrorListeners(), + r.addErrorListener(l), + i.removeErrorListeners(), + i.addErrorListener(l); + var g = i.entireExpression(); + function b() { + return m.call(this), this; + } + (b.prototype = Object.create(m.prototype)).constructor = b; + var x, + y = {}, + T = [y]; + for (let A of Object.keys(m.prototype)) + A.startsWith("enter") + ? (b.prototype[A] = function (S) { + let w = T[T.length - 1]; + ((x = { type: A.slice(5) }).text = S.getText()), + w.children || (w.children = []), + w.children.push(x), + T.push(x), + (x.terminalNodeText = []); + for (let C of S.children) + C.symbol && x.terminalNodeText.push(C.getText()); + }) + : A.startsWith("exit") && + (b.prototype[A] = function () { + T.pop(); + }); + var O = new b(); + if ((n.tree.ParseTreeWalker.DEFAULT.walk(O, g), c.length > 0)) { + let A = []; + for (let S = 0, w = c.length; S < w; ++S) { + let I = c[S]; + A.push( + "line: " + I[2] + "; column: " + I[3] + "; message: " + I[4] + ); + } + var M = new Error(A.join("\n")); + throw ((M.errors = c), M); + } + return y; + }, + }); + }, + 7070: () => { + const ye = Function.prototype.call.bind(Array.prototype.slice); + (Number.isInteger = + Number.isInteger || + function (j) { + return "number" == typeof j && isFinite(j) && Math.floor(j) === j; + }), + String.prototype.startsWith || + Object.defineProperty(String.prototype, "startsWith", { + value: function (j, p) { + return this.indexOf(j, (p = p || 0)) === p; + }, + }), + String.prototype.endsWith || + Object.defineProperty(String.prototype, "endsWith", { + value: function (j, p) { + var n = this.toString(); + (void 0 === p || p > n.length) && (p = n.length); + var f = n.indexOf(j, (p -= j.length)); + return -1 !== f && f === p; + }, + }), + String.prototype.includes || + Object.defineProperty(String.prototype, "includes", { + value: function () { + return -1 !== this.indexOf.apply(this, arguments); + }, + }), + Object.assign || + Object.defineProperty(Object, "assign", { + value: function (j) { + if (null == j) + throw new TypeError( + "Cannot convert undefined or null to object" + ); + return ye(arguments, 1).reduce(function (p, n) { + return ( + Object.keys(Object(n)).forEach(function (f) { + p[f] = n[f]; + }), + p + ); + }, Object(j)); + }, + }); + }, + 9835: (ye, j, p) => { + const n = p(4569), + f = p(9502), + _ = {}, + m = {}; + (_.indexOf = function (u, h) { + const r = f.singleton(u, "String"); + return n.isEmpty(h) || n.isEmpty(r) ? [] : r.indexOf(h); + }), + (_.substring = function (u, h, r) { + const o = f.singleton(u, "String"); + return n.isEmpty(o) || n.isEmpty(h) || h < 0 || h >= o.length + ? [] + : void 0 === r || n.isEmpty(r) + ? o.substring(h) + : o.substring(h, h + r); + }), + (_.startsWith = function (u, h) { + const r = f.singleton(u, "String"); + return n.isEmpty(h) || n.isEmpty(r) ? [] : r.startsWith(h); + }), + (_.endsWith = function (u, h) { + const r = f.singleton(u, "String"); + return n.isEmpty(h) || n.isEmpty(r) ? [] : r.endsWith(h); + }), + (_.containsFn = function (u, h) { + const r = f.singleton(u, "String"); + return n.isEmpty(h) || n.isEmpty(r) ? [] : r.includes(h); + }), + (_.upper = function (u) { + const h = f.singleton(u, "String"); + return n.isEmpty(h) ? [] : h.toUpperCase(); + }), + (_.lower = function (u) { + const h = f.singleton(u, "String"); + return n.isEmpty(h) ? [] : h.toLowerCase(); + }), + (_.matches = + !1 === new RegExp("").dotAll + ? function (u, h) { + const r = f.singleton(u, "String"); + return n.isEmpty(h) || n.isEmpty(r) + ? [] + : new RegExp(h, "s").test(r); + } + : function (u, h) { + const r = f.singleton(u, "String"); + return n.isEmpty(h) || n.isEmpty(r) + ? [] + : new RegExp( + (function (u) { + return ( + m[u] || + (m[u] = u.replace(/\./g, (h, r, o) => { + const c = o + .substr(0, r) + .replace(/\\\\/g, "") + .replace(/\\[\][]/g, ""), + l = "\\" === c[c.length - 1], + g = c.lastIndexOf("["), + b = c.lastIndexOf("]"); + return l || g > b ? "." : "[^]"; + })), + m[u] + ); + })(h) + ).test(r); + }), + (_.replace = function (u, h, r) { + const o = f.singleton(u, "String"); + if (n.isEmpty(h) || n.isEmpty(r) || n.isEmpty(o)) return []; + const i = new RegExp(n.escapeStringForRegExp(h), "g"); + return o.replace(i, r); + }), + (_.replaceMatches = function (u, h, r) { + const o = f.singleton(u, "String"); + if (n.isEmpty(h) || n.isEmpty(r) || n.isEmpty(o)) return []; + const i = new RegExp(h, "g"); + return o.replace(i, r); + }), + (_.length = function (u) { + const h = f.singleton(u, "String"); + return n.isEmpty(h) ? [] : h.length; + }), + (_.toChars = function (u) { + const h = f.singleton(u, "String"); + return n.isEmpty(h) ? [] : h.split(""); + }), + (ye.exports = _); + }, + 2563: (ye, j, p) => { + const n = p(8091), + f = p(1334).ng.getInstance(), + _ = p(7601); + let s = + "[0-9][0-9](\\:[0-9][0-9](\\:[0-9][0-9](\\.[0-9]+)?)?)?(Z|(\\+|-)[0-9][0-9]\\:[0-9][0-9])?", + d = new RegExp("^T?" + s + "$"), + u = new RegExp( + "^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9](T" + s + ")?)?)?Z?$" + ); + class h { + equals() { + return !1; + } + equivalentTo() { + return !1; + } + toString() { + return this.asStr ? this.asStr : super.toString(); + } + toJSON() { + return this.toString(); + } + compare() { + throw "Not implemented"; + } + } + class r extends h { + constructor(A, S) { + super(), + (this.asStr = A + " " + S), + (this.value = A), + (this.unit = S); + } + equals(A) { + if (!(A instanceof this.constructor)) return !1; + if (this.unit === A.unit) return _.isEqual(this.value, A.value); + const S = this._compareYearsAndMonths(A); + if (S) return S.isEqual; + const w = r.toUcumQuantity(this.value, this.unit), + I = r.toUcumQuantity(A.value, A.unit), + C = f.convertUnitTo(I.unit, I.value, w.unit); + return "succeeded" === C.status && _.isEqual(w.value, C.toVal); + } + equivalentTo(A) { + if (!(A instanceof this.constructor)) return !1; + if (this.unit === A.unit) return _.isEquivalent(this.value, A.value); + const S = r.getEquivalentUcumUnitCode(this.unit), + w = r.getEquivalentUcumUnitCode(A.unit), + I = f.convertUnitTo(w, A.value, S); + return ( + "succeeded" === I.status && _.isEquivalent(this.value, I.toVal) + ); + } + _compareYearsAndMonths(A) { + const S = r._yearMonthConversionFactor[this.unit], + w = r._yearMonthConversionFactor[A.unit]; + return S && w + ? { isEqual: _.isEqual(this.value * S, A.value * w) } + : null; + } + } + const o = /^'|'$/g; + (r.getEquivalentUcumUnitCode = function (M) { + return r.mapTimeUnitsToUCUMCode[M] || M.replace(o, ""); + }), + (r.toUcumQuantity = function (M, A) { + const S = r._calendarDuration2Seconds[A]; + return S + ? { value: S * M, unit: "s" } + : { value: M, unit: A.replace(o, "") }; + }), + (r.convUnitTo = function (M, A, S) { + const w = r._yearMonthConversionFactor[M], + I = r._yearMonthConversionFactor[S]; + if (w && I) return new r((w * A) / I, S); + const C = r._calendarDuration2Seconds[M], + L = r._calendarDuration2Seconds[S]; + if (L) { + if (C) return new r((C * A) / L, S); + { + const F = f.convertUnitTo(M.replace(/^'|'$/g, ""), A, "s"); + if ("succeeded" === F.status) return new r(F.toVal / L, S); + } + } else { + const F = C + ? f.convertUnitTo("s", C * A, S.replace(/^'|'$/g, "")) + : f.convertUnitTo( + M.replace(/^'|'$/g, ""), + A, + S.replace(/^'|'$/g, "") + ); + if ("succeeded" === F.status) return new r(F.toVal, S); + } + return null; + }), + (r._calendarDuration2Seconds = { + years: 31536e3, + months: 2592e3, + weeks: 604800, + days: 86400, + hours: 3600, + minutes: 60, + seconds: 1, + milliseconds: 0.001, + year: 31536e3, + month: 2592e3, + week: 604800, + day: 86400, + hour: 3600, + minute: 60, + second: 1, + millisecond: 0.001, + }), + (r._yearMonthConversionFactor = { + years: 12, + months: 1, + year: 12, + month: 1, + }), + (r.arithmeticDurationUnits = { + years: "year", + months: "month", + weeks: "week", + days: "day", + hours: "hour", + minutes: "minute", + seconds: "second", + milliseconds: "millisecond", + year: "year", + month: "month", + week: "week", + day: "day", + hour: "hour", + minute: "minute", + second: "second", + millisecond: "millisecond", + "'wk'": "week", + "'d'": "day", + "'h'": "hour", + "'min'": "minute", + "'s'": "second", + "'ms'": "millisecond", + }), + (r.mapUCUMCodeToTimeUnits = { + a: "year", + mo: "month", + wk: "week", + d: "day", + h: "hour", + min: "minute", + s: "second", + ms: "millisecond", + }), + (r.mapTimeUnitsToUCUMCode = Object.keys( + r.mapUCUMCodeToTimeUnits + ).reduce(function (M, A) { + return ( + (M[r.mapUCUMCodeToTimeUnits[A]] = A), + (M[r.mapUCUMCodeToTimeUnits[A] + "s"] = A), + M + ); + }, {})); + class i extends h { + constructor(A) { + super(), (this.asStr = A); + } + plus(A) { + let w = r.arithmeticDurationUnits[A.unit]; + if (!w) + throw new Error( + "For date/time arithmetic, the unit of the quantity must be one of the following time-based units: " + + Object.keys(r.arithmeticDurationUnits) + ); + const I = this.constructor, + C = I._timeUnitToDatePrecision[w]; + if (void 0 === C) + throw new Error( + "Unsupported unit for +. The unit should be one of " + + Object.keys(I._timeUnitToDatePrecision).join(", ") + + "." + ); + let L = A.value; + const F = I === l; + if ( + ((F ? C < 2 : C < 5) && (L = Math.trunc(L)), + this._getPrecision() < C) + ) { + const ee = I._datePrecisionToTimeUnit[this._getPrecision()]; + if ("second" !== ee) { + const $ = r.convUnitTo(w, L, ee); + (w = $.unit), (L = Math.trunc($.value)); + } + } + const ie = i.timeUnitToAddFn[w](this._getDateObj(), L); + let Y = this._getPrecision(); + F && (Y += 3); + let Z = c.isoDateTime(ie, Y); + return F && (Z = Z.slice(Z.indexOf("T") + 1)), new I(Z); + } + equals(A) { + var S; + if (A instanceof this.constructor) { + var w = this._getPrecision(), + I = A._getPrecision(); + if (w == I) + S = this._getDateObj().getTime() == A._getDateObj().getTime(); + else { + var C = w <= I ? w : I, + L = this._getDateObj().toISOString(), + F = A._getDateObj().toISOString(); + this.constructor === l && ((C += 3), (w += 3), (I += 3)); + for ( + var ie = + w > 2 ? new c(L)._getTimeParts() : this._getTimeParts(), + Y = I > 2 ? new c(F)._getTimeParts() : A._getTimeParts(), + Z = 0; + Z <= C && !1 !== S; + ++Z + ) + S = ie[Z] == Y[Z]; + S && (S = void 0); + } + } else S = !1; + return S; + } + equivalentTo(A) { + var S = A instanceof this.constructor; + return ( + S && + (S = this._getPrecision() == A._getPrecision()) && + (S = this._getDateObj().getTime() == A._getDateObj().getTime()), + S + ); + } + compare(A) { + var S = this._getPrecision(), + w = A._getPrecision(), + I = + S <= w + ? this._getDateObj().getTime() + : this._dateAtPrecision(w).getTime(), + C = + w <= S + ? A._getDateObj().getTime() + : A._dateAtPrecision(S).getTime(); + return S !== w && I === C ? null : I - C; + } + _getPrecision() { + return ( + void 0 === this.precision && this._getMatchData(), this.precision + ); + } + _getMatchData(A, S) { + if ( + void 0 === this.timeMatchData && + ((this.timeMatchData = this.asStr.match(A)), this.timeMatchData) + ) + for (let w = S; w >= 0 && void 0 === this.precision; --w) + this.timeMatchData[w] && (this.precision = w); + return this.timeMatchData; + } + _getTimeParts(A) { + var S = []; + S = [A[0]]; + var w = A[4]; + if (w) { + let F = S[0]; + S[0] = F.slice(0, F.length - w.length); + } + var I = A[1]; + if (I) { + let F = S[0]; + (S[0] = F.slice(0, F.length - I.length)), (S[1] = I); + var C = A[2]; + if (C) { + (S[1] = I.slice(0, I.length - C.length)), (S[2] = C); + var L = A[3]; + L && ((S[2] = C.slice(0, C.length - L.length)), (S[3] = L)); + } + } + return S; + } + _getDateObj() { + if (!this.dateObj) { + var A = this._getPrecision(); + this.dateObj = this._dateAtPrecision(A); + } + return this.dateObj; + } + _createDate(A, S, w, I, C, L, F, ie) { + var Y = new Date(A, S, w, I, C, L, F); + if (ie) { + var Z = Y.getTimezoneOffset(), + ee = 0; + if ("Z" != ie) { + var $ = ie.split(":"), + J = parseInt($[0]); + (ee = parseInt($[1])), J < 0 && (ee = -ee), (ee += 60 * J); + } + Y = n(Y, -Z - ee); + } + return Y; + } + } + i.timeUnitToAddFn = { + year: p(2486), + month: p(4992), + week: p(5213), + day: p(6937), + hour: p(2500), + minute: p(8091), + second: p(734), + millisecond: p(7862), + }; + let c = (() => { + class M extends i { + constructor(S) { + super(S); + } + compare(S) { + if (!(S instanceof M)) + throw "Invalid comparison of a DateTime with something else"; + return super.compare(S); + } + _getMatchData() { + return super._getMatchData(u, 5); + } + _getTimeParts() { + if (!this.timeParts) { + let w = this._getMatchData(), + I = w[0]; + this.timeParts = [I]; + var S = w[1]; + if (S) { + (this.timeParts[0] = I.slice(0, I.length - S.length)), + (this.timeParts[1] = S); + let C = w[2]; + if (C) { + (this.timeParts[1] = S.slice(0, S.length - C.length)), + (this.timeParts[2] = C); + let L = w[3]; + L && + ((this.timeParts[2] = C.slice(0, C.length - L.length)), + "T" === L[0] && (w[3] = L.slice(1)), + (this.timeParts = this.timeParts.concat( + super._getTimeParts(w.slice(3)) + ))); + } + } + } + return this.timeParts; + } + _dateAtPrecision(S) { + var w = this._getTimeParts(), + I = this._getMatchData()[7], + C = this._getPrecision(), + L = parseInt(w[0]), + F = C > 0 ? parseInt(w[1].slice(1)) - 1 : 0, + ie = C > 1 ? parseInt(w[2].slice(1)) : 1, + Y = C > 2 ? parseInt(w[3]) : 0, + Z = C > 3 ? parseInt(w[4].slice(1)) : 0, + ee = C > 4 ? parseInt(w[5].slice(1)) : 0, + $ = w.length > 6 ? parseInt(w[6].slice(1)) : 0, + J = this._createDate(L, F, ie, Y, Z, ee, $, I); + return ( + S < C && + ((L = J.getFullYear()), + (F = S > 0 ? J.getMonth() : 0), + (ie = S > 1 ? J.getDate() : 1), + (Y = S > 2 ? J.getHours() : 0), + (Z = S > 3 ? J.getMinutes() : 0), + (J = new Date(L, F, ie, Y, Z))), + J + ); + } + } + return ( + (M.checkString = function (A) { + let S = new M(A); + return S._getMatchData() || (S = null), S; + }), + (M._timeUnitToDatePrecision = { + year: 0, + month: 1, + week: 2, + day: 2, + hour: 3, + minute: 4, + second: 5, + millisecond: 6, + }), + (M._datePrecisionToTimeUnit = [ + "year", + "month", + "day", + "hour", + "minute", + "second", + "millisecond", + ]), + M + ); + })(), + l = (() => { + class M extends i { + constructor(S) { + "T" == S[0] && (S = S.slice(1)), super(S); + } + compare(S) { + if (!(S instanceof M)) + throw "Invalid comparison of a time with something else"; + return super.compare(S); + } + _dateAtPrecision(S) { + var w = this._getTimeParts(), + I = this._getMatchData()[4], + C = this._getPrecision(), + L = 2010, + Y = parseInt(w[0]), + Z = C > 0 ? parseInt(w[1].slice(1)) : 0, + ee = C > 1 ? parseInt(w[2].slice(1)) : 0, + $ = w.length > 3 ? parseInt(w[3].slice(1)) : 0, + J = this._createDate(L, 0, 1, Y, Z, ee, $, I); + return ( + I && (J.setYear(L), J.setMonth(0), J.setDate(1)), + S < C && + ((Y = J.getHours()), + (Z = S > 0 ? J.getMinutes() : 0), + (J = new Date(L, 0, 1, Y, Z))), + J + ); + } + _getMatchData() { + return super._getMatchData(d, 2); + } + _getTimeParts() { + return ( + this.timeParts || + (this.timeParts = super._getTimeParts(this._getMatchData())), + this.timeParts + ); + } + } + return ( + (M.checkString = function (A) { + let S = new M(A); + return S._getMatchData() || (S = null), S; + }), + (M._timeUnitToDatePrecision = { + hour: 0, + minute: 1, + second: 2, + millisecond: 3, + }), + (M._datePrecisionToTimeUnit = [ + "hour", + "minute", + "second", + "millisecond", + ]), + M + ); + })(); + function g(M, A) { + var S = M; + return 3 === A && M < 100 && (S = "0" + M), M < 10 && (S = "0" + S), S; + } + (c.isoDateTime = function (M, A) { + void 0 === A && (A = 6); + var S = "" + M.getFullYear(); + if ( + (A > 0 && + ((S += "-" + g(M.getMonth() + 1)), + A > 1 && + ((S += "-" + g(M.getDate())), + A > 2 && + ((S += "T" + g(M.getHours())), + A > 3 && + ((S += ":" + g(M.getMinutes())), + A > 4 && + ((S += ":" + g(M.getSeconds())), + M.getMilliseconds() && + (S += "." + g(M.getMilliseconds(), 3))))))), + A > 2) + ) { + var w = M.getTimezoneOffset(), + I = w < 0 ? "+" : "-", + C = (w = Math.abs(w)) % 60; + S += I + g((w - C) / 60) + ":" + g(C); + } + return S; + }), + (c.isoDate = function (M, A) { + return (void 0 === A || A > 2) && (A = 2), c.isoDateTime(M, A); + }); + class b { + constructor(A, S, w) { + A.resourceType && (S = A.resourceType), + (this.path = S), + (this.data = (function (M, A) { + return ( + "Quantity" === A && + "http://unitsofmeasure.org" === M.system && + "number" == typeof M.value && + "string" == typeof M.code && + (M = new r( + M.value, + r.mapUCUMCodeToTimeUnits[M.code] || "'" + M.code + "'" + )), + M + ); + })(A, S)), + (this._data = w || {}); + } + getTypeInfo() { + const A = x.FHIR; + return -1 === this.path.indexOf(".") + ? new x({ namespace: A, name: this.path }) + : x.createByValueInNamespace({ namespace: A, value: this.data }); + } + toJSON() { + return JSON.stringify(this.data); + } + } + b.makeResNode = function (M, A, S) { + return M instanceof b ? M : new b(M, A, S); + }; + let x = (() => { + class M { + constructor({ name: S, namespace: w }) { + (this.name = S), (this.namespace = w); + } + is(S) { + return ( + S instanceof M && + this.name === S.name && + (!this.namespace || + !S.namespace || + this.namespace === S.namespace) + ); + } + } + return ( + (M.System = "System"), + (M.FHIR = "FHIR"), + (M.createByValueInNamespace = function ({ namespace: A, value: S }) { + let w = typeof S; + return ( + Number.isInteger(S) + ? (w = "integer") + : "number" === w + ? (w = "decimal") + : S instanceof c + ? (w = "dateTime") + : S instanceof l + ? (w = "time") + : S instanceof r && (w = "Quantity"), + A === M.System && (w = w.replace(/^\w/, (I) => I.toUpperCase())), + new M({ namespace: A, name: w }) + ); + }), + (M.fromValue = function (A) { + return A instanceof b + ? A.getTypeInfo() + : M.createByValueInNamespace({ namespace: M.System, value: A }); + }), + M + ); + })(); + ye.exports = { + FP_Type: h, + FP_TimeBase: i, + FP_DateTime: c, + FP_Time: l, + FP_Quantity: r, + timeRE: d, + dateTimeRE: u, + ResourceNode: b, + TypeInfo: x, + typeFn: function (M) { + return M.map((A) => x.fromValue(A)); + }, + isFn: function (M, A) { + if (0 === M.length) return []; + if (M.length > 1) + throw new Error( + "Expected singleton on left side of is, got " + JSON.stringify(M) + ); + return x.fromValue(M[0]).is(A); + }, + }; + }, + 4569: (ye, j, p) => { + var n = {}, + f = p(2563); + let { ResourceNode: _ } = f; + (n.raiseError = function (m, s) { + throw (s = s ? s + ": " : "") + m; + }), + (n.assertAtMostOne = function (m, s) { + m.length > 1 && + n.raiseError( + "Was expecting no more than one element but got " + + JSON.stringify(m), + s + ); + }), + (n.assertType = function (m, s, d) { + let u = this.valData(m); + if (s.indexOf(typeof u) < 0) { + let h = s.length > 1 ? "one of " + s.join(", ") : s[0]; + n.raiseError( + "Found type '" + typeof m + "' but was expecting " + h, + d + ); + } + return u; + }), + (n.isEmpty = function (m) { + return Array.isArray(m) && 0 == m.length; + }), + (n.isSome = function (m) { + return null != m && !n.isEmpty(m); + }), + (n.isTrue = function (m) { + return null != m && (!0 === m || (1 == m.length && !0 === m[0])); + }), + (n.isFalse = function (m) { + return null != m && (!1 === m || (1 == m.length && !1 === m[0])); + }), + (n.isCapitalized = function (m) { + return m && m[0] === m[0].toUpperCase(); + }), + (n.flatten = function (m) { + return m.reduce(function (s, d) { + return Array.isArray(d) ? (s = s.concat(d)) : s.push(d), s; + }, []); + }), + (n.arraify = function (m) { + return Array.isArray(m) ? m : n.isSome(m) ? [m] : []; + }), + (n.valData = function (m) { + return m instanceof _ ? m.data : m; + }), + (n.escapeStringForRegExp = function (m) { + return m.replace(/[-[\]{}()*+?.,\\/^$|#\s]/g, "\\$&"); + }), + (ye.exports = n); + }, + 8277: (ye) => { + "use strict"; + !(function (j) { + var p = /^(b|B)$/, + n = { + iec: { + bits: [ + "b", + "Kib", + "Mib", + "Gib", + "Tib", + "Pib", + "Eib", + "Zib", + "Yib", + ], + bytes: [ + "B", + "KiB", + "MiB", + "GiB", + "TiB", + "PiB", + "EiB", + "ZiB", + "YiB", + ], + }, + jedec: { + bits: ["b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb"], + bytes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], + }, + }, + f = { + iec: [ + "", + "kibi", + "mebi", + "gibi", + "tebi", + "pebi", + "exbi", + "zebi", + "yobi", + ], + jedec: [ + "", + "kilo", + "mega", + "giga", + "tera", + "peta", + "exa", + "zetta", + "yotta", + ], + }; + function _(m) { + var s = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + d = [], + u = 0, + h = void 0, + r = void 0, + o = void 0, + i = void 0, + c = void 0, + l = void 0, + g = void 0, + b = void 0, + y = void 0, + x = void 0, + T = void 0, + O = void 0, + M = void 0, + A = void 0, + S = void 0, + w = void 0; + if (isNaN(m)) throw new TypeError("Invalid number"); + return ( + (o = !0 === s.bits), + (O = !0 === s.unix), + (T = void 0 !== s.round ? s.round : O ? 1 : 2), + (g = void 0 !== s.locale ? s.locale : ""), + (M = void 0 !== s.separator ? s.separator : ""), + (A = void 0 !== s.spacer ? s.spacer : O ? "" : " "), + (w = s.symbols || {}), + (S = (2 === (r = s.base || 2) && s.standard) || "jedec"), + (x = s.output || "string"), + (c = !0 === s.fullform), + (l = s.fullforms instanceof Array ? s.fullforms : []), + (h = void 0 !== s.exponent ? s.exponent : -1), + (i = r > 2 ? 1e3 : 1024), + (b = (y = Number(m)) < 0) && (y = -y), + (-1 === h || isNaN(h)) && + (h = Math.floor(Math.log(y) / Math.log(i))) < 0 && + (h = 0), + h > 8 && (h = 8), + "exponent" === x + ? h + : (0 === y + ? ((d[0] = 0), + (d[1] = O ? "" : n[S][o ? "bits" : "bytes"][h])) + : ((u = + y / (2 === r ? Math.pow(2, 10 * h) : Math.pow(1e3, h))), + o && (u *= 8) >= i && h < 8 && ((u /= i), h++), + (d[0] = Number(u.toFixed(h > 0 ? T : 0))), + (d[1] = + 10 === r && 1 === h + ? o + ? "kb" + : "kB" + : n[S][o ? "bits" : "bytes"][h]), + O && + ((d[1] = + "jedec" === S + ? d[1].charAt(0) + : h > 0 + ? d[1].replace(/B$/, "") + : d[1]), + p.test(d[1]) && + ((d[0] = Math.floor(d[0])), (d[1] = "")))), + b && (d[0] = -d[0]), + (d[1] = w[d[1]] || d[1]), + !0 === g + ? (d[0] = d[0].toLocaleString()) + : g.length > 0 + ? (d[0] = d[0].toLocaleString(g)) + : M.length > 0 && (d[0] = d[0].toString().replace(".", M)), + "array" === x + ? d + : (c && + (d[1] = l[h] + ? l[h] + : f[S][h] + + (o ? "bit" : "byte") + + (1 === d[0] ? "" : "s")), + "object" === x ? { value: d[0], symbol: d[1] } : d.join(A))) + ); + } + (_.partial = function (m) { + return function (s) { + return _(s, m); + }; + }), + (ye.exports = _); + })("undefined" != typeof window ? window : global); + }, + 4770: (ye) => { + "use strict"; + ye.exports = function (j, p) { + for ( + var n = {}, f = Object.keys(j), _ = Array.isArray(p), m = 0; + m < f.length; + m++ + ) { + var s = f[m], + d = j[s]; + (_ ? -1 !== p.indexOf(s) : p(s, d, j)) && (n[s] = d); + } + return n; + }; + }, + 5241: (ye) => { + function j(Qe) { + return ( + Qe instanceof Map + ? (Qe.clear = Qe.delete = Qe.set = function () { + throw new Error("map is read-only"); + }) + : Qe instanceof Set && + (Qe.add = Qe.clear = Qe.delete = function () { + throw new Error("set is read-only"); + }), + Object.freeze(Qe), + Object.getOwnPropertyNames(Qe).forEach(function (mt) { + var Vt = Qe[mt]; + "object" == typeof Vt && !Object.isFrozen(Vt) && j(Vt); + }), + Qe + ); + } + var p = j; + p.default = j; + class f { + constructor(mt) { + void 0 === mt.data && (mt.data = {}), + (this.data = mt.data), + (this.isMatchIgnored = !1); + } + ignoreMatch() { + this.isMatchIgnored = !0; + } + } + function _(Qe) { + return Qe.replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """) + .replace(/'/g, "'"); + } + function m(Qe, ...mt) { + const Vt = Object.create(null); + for (const qt in Qe) Vt[qt] = Qe[qt]; + return ( + mt.forEach(function (qt) { + for (const Ne in qt) Vt[Ne] = qt[Ne]; + }), + Vt + ); + } + const d = (Qe) => !!Qe.kind; + class u { + constructor(mt, Vt) { + (this.buffer = ""), + (this.classPrefix = Vt.classPrefix), + mt.walk(this); + } + addText(mt) { + this.buffer += _(mt); + } + openNode(mt) { + if (!d(mt)) return; + let Vt = mt.kind; + mt.sublanguage || (Vt = `${this.classPrefix}${Vt}`), this.span(Vt); + } + closeNode(mt) { + !d(mt) || (this.buffer += ""); + } + value() { + return this.buffer; + } + span(mt) { + this.buffer += ``; + } + } + class h { + constructor() { + (this.rootNode = { children: [] }), (this.stack = [this.rootNode]); + } + get top() { + return this.stack[this.stack.length - 1]; + } + get root() { + return this.rootNode; + } + add(mt) { + this.top.children.push(mt); + } + openNode(mt) { + const Vt = { kind: mt, children: [] }; + this.add(Vt), this.stack.push(Vt); + } + closeNode() { + if (this.stack.length > 1) return this.stack.pop(); + } + closeAllNodes() { + for (; this.closeNode(); ); + } + toJSON() { + return JSON.stringify(this.rootNode, null, 4); + } + walk(mt) { + return this.constructor._walk(mt, this.rootNode); + } + static _walk(mt, Vt) { + return ( + "string" == typeof Vt + ? mt.addText(Vt) + : Vt.children && + (mt.openNode(Vt), + Vt.children.forEach((qt) => this._walk(mt, qt)), + mt.closeNode(Vt)), + mt + ); + } + static _collapse(mt) { + "string" != typeof mt && + (!mt.children || + (mt.children.every((Vt) => "string" == typeof Vt) + ? (mt.children = [mt.children.join("")]) + : mt.children.forEach((Vt) => { + h._collapse(Vt); + }))); + } + } + class r extends h { + constructor(mt) { + super(), (this.options = mt); + } + addKeyword(mt, Vt) { + "" !== mt && (this.openNode(Vt), this.addText(mt), this.closeNode()); + } + addText(mt) { + "" !== mt && this.add(mt); + } + addSublanguage(mt, Vt) { + const qt = mt.root; + (qt.kind = Vt), (qt.sublanguage = !0), this.add(qt); + } + toHTML() { + return new u(this, this.options).value(); + } + finalize() { + return !0; + } + } + function i(Qe) { + return Qe ? ("string" == typeof Qe ? Qe : Qe.source) : null; + } + const y = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./, + O = "[a-zA-Z]\\w*", + M = "[a-zA-Z_]\\w*", + A = "\\b\\d+(\\.\\d+)?", + S = + "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", + w = "\\b(0b[01]+)", + L = { begin: "\\\\[\\s\\S]", relevance: 0 }, + F = { + className: "string", + begin: "'", + end: "'", + illegal: "\\n", + contains: [L], + }, + ie = { + className: "string", + begin: '"', + end: '"', + illegal: "\\n", + contains: [L], + }, + Y = { + begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/, + }, + Z = function (Qe, mt, Vt = {}) { + const qt = m( + { className: "comment", begin: Qe, end: mt, contains: [] }, + Vt + ); + return ( + qt.contains.push(Y), + qt.contains.push({ + className: "doctag", + begin: "(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):", + relevance: 0, + }), + qt + ); + }, + ee = Z("//", "$"), + $ = Z("/\\*", "\\*/"), + J = Z("#", "$"); + var tt = Object.freeze({ + __proto__: null, + MATCH_NOTHING_RE: /\b\B/, + IDENT_RE: O, + UNDERSCORE_IDENT_RE: M, + NUMBER_RE: A, + C_NUMBER_RE: S, + BINARY_NUMBER_RE: w, + RE_STARTERS_RE: + "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", + SHEBANG: (Qe = {}) => { + const mt = /^#![ ]*\//; + return ( + Qe.binary && + (Qe.begin = (function (...Qe) { + return Qe.map((Vt) => i(Vt)).join(""); + })(mt, /.*\b/, Qe.binary, /\b.*/)), + m( + { + className: "meta", + begin: mt, + end: /$/, + relevance: 0, + "on:begin": (Vt, qt) => { + 0 !== Vt.index && qt.ignoreMatch(); + }, + }, + Qe + ) + ); + }, + BACKSLASH_ESCAPE: L, + APOS_STRING_MODE: F, + QUOTE_STRING_MODE: ie, + PHRASAL_WORDS_MODE: Y, + COMMENT: Z, + C_LINE_COMMENT_MODE: ee, + C_BLOCK_COMMENT_MODE: $, + HASH_COMMENT_MODE: J, + NUMBER_MODE: { className: "number", begin: A, relevance: 0 }, + C_NUMBER_MODE: { className: "number", begin: S, relevance: 0 }, + BINARY_NUMBER_MODE: { className: "number", begin: w, relevance: 0 }, + CSS_NUMBER_MODE: { + className: "number", + begin: + A + + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", + relevance: 0, + }, + REGEXP_MODE: { + begin: /(?=\/[^/\n]*\/)/, + contains: [ + { + className: "regexp", + begin: /\//, + end: /\/[gimuy]*/, + illegal: /\n/, + contains: [ + L, + { begin: /\[/, end: /\]/, relevance: 0, contains: [L] }, + ], + }, + ], + }, + TITLE_MODE: { className: "title", begin: O, relevance: 0 }, + UNDERSCORE_TITLE_MODE: { className: "title", begin: M, relevance: 0 }, + METHOD_GUARD: { begin: "\\.\\s*" + M, relevance: 0 }, + END_SAME_AS_BEGIN: function (Qe) { + return Object.assign(Qe, { + "on:begin": (mt, Vt) => { + Vt.data._beginMatch = mt[1]; + }, + "on:end": (mt, Vt) => { + Vt.data._beginMatch !== mt[1] && Vt.ignoreMatch(); + }, + }); + }, + }); + function at(Qe, mt) { + "." === Qe.input[Qe.index - 1] && mt.ignoreMatch(); + } + function ft(Qe, mt) { + !mt || + !Qe.beginKeywords || + ((Qe.begin = + "\\b(" + + Qe.beginKeywords.split(" ").join("|") + + ")(?!\\.)(?=\\b|\\s)"), + (Qe.__beforeBegin = at), + (Qe.keywords = Qe.keywords || Qe.beginKeywords), + delete Qe.beginKeywords, + void 0 === Qe.relevance && (Qe.relevance = 0)); + } + function vt(Qe, mt) { + !Array.isArray(Qe.illegal) || + (Qe.illegal = (function (...Qe) { + return "(" + Qe.map((Vt) => i(Vt)).join("|") + ")"; + })(...Qe.illegal)); + } + function yt(Qe, mt) { + if (Qe.match) { + if (Qe.begin || Qe.end) + throw new Error("begin & end are not supported with match"); + (Qe.begin = Qe.match), delete Qe.match; + } + } + function ot(Qe, mt) { + void 0 === Qe.relevance && (Qe.relevance = 1); + } + const _t = [ + "of", + "and", + "for", + "in", + "not", + "or", + "if", + "then", + "parent", + "list", + "value", + ]; + function Tt(Qe, mt, Vt = "keyword") { + const qt = {}; + return ( + "string" == typeof Qe + ? Ne(Vt, Qe.split(" ")) + : Array.isArray(Qe) + ? Ne(Vt, Qe) + : Object.keys(Qe).forEach(function (Se) { + Object.assign(qt, Tt(Qe[Se], mt, Se)); + }), + qt + ); + function Ne(Se, te) { + mt && (te = te.map((re) => re.toLowerCase())), + te.forEach(function (re) { + const Me = re.split("|"); + qt[Me[0]] = [Se, Bt(Me[0], Me[1])]; + }); + } + } + function Bt(Qe, mt) { + return mt + ? Number(mt) + : (function (Qe) { + return _t.includes(Qe.toLowerCase()); + })(Qe) + ? 0 + : 1; + } + function Ee(Qe, {}) { + function Vt(re, Me) { + return new RegExp( + i(re), + "m" + (Qe.case_insensitive ? "i" : "") + (Me ? "g" : "") + ); + } + class qt { + constructor() { + (this.matchIndexes = {}), + (this.regexes = []), + (this.matchAt = 1), + (this.position = 0); + } + addRule(Me, ze) { + (ze.position = this.position++), + (this.matchIndexes[this.matchAt] = ze), + this.regexes.push([ze, Me]), + (this.matchAt += + (function (Qe) { + return new RegExp(Qe.toString() + "|").exec("").length - 1; + })(Me) + 1); + } + compile() { + 0 === this.regexes.length && (this.exec = () => null); + const Me = this.regexes.map((ze) => ze[1]); + (this.matcherRe = Vt( + (function (Qe, mt = "|") { + let Vt = 0; + return Qe.map((qt) => { + Vt += 1; + const Ne = Vt; + let Se = i(qt), + te = ""; + for (; Se.length > 0; ) { + const re = y.exec(Se); + if (!re) { + te += Se; + break; + } + (te += Se.substring(0, re.index)), + (Se = Se.substring(re.index + re[0].length)), + "\\" === re[0][0] && re[1] + ? (te += "\\" + String(Number(re[1]) + Ne)) + : ((te += re[0]), "(" === re[0] && Vt++); + } + return te; + }) + .map((qt) => `(${qt})`) + .join(mt); + })(Me), + !0 + )), + (this.lastIndex = 0); + } + exec(Me) { + this.matcherRe.lastIndex = this.lastIndex; + const ze = this.matcherRe.exec(Me); + if (!ze) return null; + const It = ze.findIndex((cn, An) => An > 0 && void 0 !== cn), + Qt = this.matchIndexes[It]; + return ze.splice(0, It), Object.assign(ze, Qt); + } + } + class Ne { + constructor() { + (this.rules = []), + (this.multiRegexes = []), + (this.count = 0), + (this.lastIndex = 0), + (this.regexIndex = 0); + } + getMatcher(Me) { + if (this.multiRegexes[Me]) return this.multiRegexes[Me]; + const ze = new qt(); + return ( + this.rules.slice(Me).forEach(([It, Qt]) => ze.addRule(It, Qt)), + ze.compile(), + (this.multiRegexes[Me] = ze), + ze + ); + } + resumingScanAtSamePosition() { + return 0 !== this.regexIndex; + } + considerAll() { + this.regexIndex = 0; + } + addRule(Me, ze) { + this.rules.push([Me, ze]), "begin" === ze.type && this.count++; + } + exec(Me) { + const ze = this.getMatcher(this.regexIndex); + ze.lastIndex = this.lastIndex; + let It = ze.exec(Me); + if ( + this.resumingScanAtSamePosition() && + (!It || It.index !== this.lastIndex) + ) { + const Qt = this.getMatcher(0); + (Qt.lastIndex = this.lastIndex + 1), (It = Qt.exec(Me)); + } + return ( + It && + ((this.regexIndex += It.position + 1), + this.regexIndex === this.count && this.considerAll()), + It + ); + } + } + if ( + (Qe.compilerExtensions || (Qe.compilerExtensions = []), + Qe.contains && Qe.contains.includes("self")) + ) + throw new Error( + "ERR: contains `self` is not supported at the top-level of a language. See documentation." + ); + return ( + (Qe.classNameAliases = m(Qe.classNameAliases || {})), + (function te(re, Me) { + const ze = re; + if (re.isCompiled) return ze; + [yt].forEach((Qt) => Qt(re, Me)), + Qe.compilerExtensions.forEach((Qt) => Qt(re, Me)), + (re.__beforeBegin = null), + [ft, vt, ot].forEach((Qt) => Qt(re, Me)), + (re.isCompiled = !0); + let It = null; + if ( + ("object" == typeof re.keywords && + ((It = re.keywords.$pattern), delete re.keywords.$pattern), + re.keywords && + (re.keywords = Tt(re.keywords, Qe.case_insensitive)), + re.lexemes && It) + ) + throw new Error( + "ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) " + ); + return ( + (It = It || re.lexemes || /\w+/), + (ze.keywordPatternRe = Vt(It, !0)), + Me && + (re.begin || (re.begin = /\B|\b/), + (ze.beginRe = Vt(re.begin)), + re.endSameAsBegin && (re.end = re.begin), + !re.end && !re.endsWithParent && (re.end = /\B|\b/), + re.end && (ze.endRe = Vt(re.end)), + (ze.terminatorEnd = i(re.end) || ""), + re.endsWithParent && + Me.terminatorEnd && + (ze.terminatorEnd += (re.end ? "|" : "") + Me.terminatorEnd)), + re.illegal && (ze.illegalRe = Vt(re.illegal)), + re.contains || (re.contains = []), + (re.contains = [].concat( + ...re.contains.map(function (Qt) { + return (function (Qe) { + return ( + Qe.variants && + !Qe.cachedVariants && + (Qe.cachedVariants = Qe.variants.map(function (mt) { + return m(Qe, { variants: null }, mt); + })), + Qe.cachedVariants + ? Qe.cachedVariants + : fe(Qe) + ? m(Qe, { starts: Qe.starts ? m(Qe.starts) : null }) + : Object.isFrozen(Qe) + ? m(Qe) + : Qe + ); + })("self" === Qt ? re : Qt); + }) + )), + re.contains.forEach(function (Qt) { + te(Qt, ze); + }), + re.starts && te(re.starts, Me), + (ze.matcher = (function (re) { + const Me = new Ne(); + return ( + re.contains.forEach((ze) => + Me.addRule(ze.begin, { rule: ze, type: "begin" }) + ), + re.terminatorEnd && + Me.addRule(re.terminatorEnd, { type: "end" }), + re.illegal && Me.addRule(re.illegal, { type: "illegal" }), + Me + ); + })(ze)), + ze + ); + })(Qe) + ); + } + function fe(Qe) { + return !!Qe && (Qe.endsWithParent || fe(Qe.starts)); + } + function X(Qe) { + const mt = { + props: ["language", "code", "autodetect"], + data: function () { + return { detectedLanguage: "", unknownLanguage: !1 }; + }, + computed: { + className() { + return this.unknownLanguage + ? "" + : "hljs " + this.detectedLanguage; + }, + highlighted() { + if (!this.autoDetect && !Qe.getLanguage(this.language)) + return ( + console.warn( + `The language "${this.language}" you specified could not be found.` + ), + (this.unknownLanguage = !0), + _(this.code) + ); + let qt = {}; + return ( + this.autoDetect + ? ((qt = Qe.highlightAuto(this.code)), + (this.detectedLanguage = qt.language)) + : ((qt = Qe.highlight( + this.language, + this.code, + this.ignoreIllegals + )), + (this.detectedLanguage = this.language)), + qt.value + ); + }, + autoDetect() { + return ( + !this.language || + (function (Qe) { + return Boolean(Qe || "" === Qe); + })(this.autodetect) + ); + }, + ignoreIllegals: () => !0, + }, + render(qt) { + return qt("pre", {}, [ + qt("code", { + class: this.className, + domProps: { innerHTML: this.highlighted }, + }), + ]); + }, + }; + return { + Component: mt, + VuePlugin: { + install(qt) { + qt.component("highlightjs", mt); + }, + }, + }; + } + const _e = { + "after:highlightElement": ({ el: Qe, result: mt, text: Vt }) => { + const qt = $e(Qe); + if (!qt.length) return; + const Ne = document.createElement("div"); + (Ne.innerHTML = mt.value), + (mt.value = (function (Qe, mt, Vt) { + let qt = 0, + Ne = ""; + const Se = []; + function te() { + return Qe.length && mt.length + ? Qe[0].offset !== mt[0].offset + ? Qe[0].offset < mt[0].offset + ? Qe + : mt + : "start" === mt[0].event + ? Qe + : mt + : Qe.length + ? Qe + : mt; + } + function re(It) { + Ne += + "<" + + Be(It) + + [].map + .call(It.attributes, function (cn) { + return " " + cn.nodeName + '="' + _(cn.value) + '"'; + }) + .join("") + + ">"; + } + function Me(It) { + Ne += ""; + } + function ze(It) { + ("start" === It.event ? re : Me)(It.node); + } + for (; Qe.length || mt.length; ) { + let It = te(); + if ( + ((Ne += _(Vt.substring(qt, It[0].offset))), + (qt = It[0].offset), + It === Qe) + ) { + Se.reverse().forEach(Me); + do { + ze(It.splice(0, 1)[0]), (It = te()); + } while (It === Qe && It.length && It[0].offset === qt); + Se.reverse().forEach(re); + } else + "start" === It[0].event ? Se.push(It[0].node) : Se.pop(), + ze(It.splice(0, 1)[0]); + } + return Ne + _(Vt.substr(qt)); + })(qt, $e(Ne), Vt)); + }, + }; + function Be(Qe) { + return Qe.nodeName.toLowerCase(); + } + function $e(Qe) { + const mt = []; + return ( + (function Vt(qt, Ne) { + for (let Se = qt.firstChild; Se; Se = Se.nextSibling) + 3 === Se.nodeType + ? (Ne += Se.nodeValue.length) + : 1 === Se.nodeType && + (mt.push({ event: "start", offset: Ne, node: Se }), + (Ne = Vt(Se, Ne)), + Be(Se).match(/br|hr|img|input/) || + mt.push({ event: "stop", offset: Ne, node: Se })); + return Ne; + })(Qe, 0), + mt + ); + } + const ut = {}, + St = (Qe) => { + console.error(Qe); + }, + Xt = (Qe, ...mt) => { + console.log(`WARN: ${Qe}`, ...mt); + }, + tn = (Qe, mt) => { + ut[`${Qe}/${mt}`] || + (console.log(`Deprecated as of ${Qe}. ${mt}`), + (ut[`${Qe}/${mt}`] = !0)); + }, + Dt = _, + Kt = m, + et = Symbol("nomatch"); + var Lt = (function (Qe) { + const mt = Object.create(null), + Vt = Object.create(null), + qt = []; + let Ne = !0; + const Se = /(^(<[^>]+>|\t|)+|\n)/gm, + te = + "Could not find the language '{}', did you forget to load/include a language module?", + re = { disableAutodetect: !0, name: "Plain text", contains: [] }; + let Me = { + noHighlightRe: /^(no-?highlight)$/i, + languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i, + classPrefix: "hljs-", + tabReplace: null, + useBR: !1, + languages: null, + __emitter: r, + }; + function ze(Ft) { + return Me.noHighlightRe.test(Ft); + } + function Qt(Ft, Ht, Zt, an) { + let Tn = "", + zn = ""; + "object" == typeof Ht + ? ((Tn = Ft), + (Zt = Ht.ignoreIllegals), + (zn = Ht.language), + (an = void 0)) + : (tn( + "10.7.0", + "highlight(lang, code, ...args) has been deprecated." + ), + tn( + "10.7.0", + "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277" + ), + (zn = Ft), + (Tn = Ht)); + const $n = { code: Tn, language: zn }; + Pe("before:highlight", $n); + const ti = $n.result ? $n.result : cn($n.language, $n.code, Zt, an); + return (ti.code = $n.code), Pe("after:highlight", ti), ti; + } + function cn(Ft, Ht, Zt, an) { + function Tn(gn, yn) { + const Sn = Ui.case_insensitive ? yn[0].toLowerCase() : yn[0]; + return ( + Object.prototype.hasOwnProperty.call(gn.keywords, Sn) && + gn.keywords[Sn] + ); + } + function ti() { + null != Rn.subLanguage + ? (function () { + if ("" === Fn) return; + let gn = null; + if ("string" == typeof Rn.subLanguage) { + if (!mt[Rn.subLanguage]) return void oi.addText(Fn); + (gn = cn(Rn.subLanguage, Fn, !0, qi[Rn.subLanguage])), + (qi[Rn.subLanguage] = gn.top); + } else + gn = lt(Fn, Rn.subLanguage.length ? Rn.subLanguage : null); + Rn.relevance > 0 && ($i += gn.relevance), + oi.addSublanguage(gn.emitter, gn.language); + })() + : (function () { + if (!Rn.keywords) return void oi.addText(Fn); + let gn = 0; + Rn.keywordPatternRe.lastIndex = 0; + let yn = Rn.keywordPatternRe.exec(Fn), + Sn = ""; + for (; yn; ) { + Sn += Fn.substring(gn, yn.index); + const Wn = Tn(Rn, yn); + if (Wn) { + const [Ri, Li] = Wn; + oi.addText(Sn), + (Sn = ""), + ($i += Li), + Ri.startsWith("_") + ? (Sn += yn[0]) + : oi.addKeyword(yn[0], Ui.classNameAliases[Ri] || Ri); + } else Sn += yn[0]; + (gn = Rn.keywordPatternRe.lastIndex), + (yn = Rn.keywordPatternRe.exec(Fn)); + } + (Sn += Fn.substr(gn)), oi.addText(Sn); + })(), + (Fn = ""); + } + function jn(gn) { + return ( + gn.className && + oi.openNode(Ui.classNameAliases[gn.className] || gn.className), + (Rn = Object.create(gn, { parent: { value: Rn } })), + Rn + ); + } + function Qn(gn, yn, Sn) { + let Wn = (function (Qe, mt) { + const Vt = Qe && Qe.exec(mt); + return Vt && 0 === Vt.index; + })(gn.endRe, Sn); + if (Wn) { + if (gn["on:end"]) { + const Ri = new f(gn); + gn["on:end"](yn, Ri), Ri.isMatchIgnored && (Wn = !1); + } + if (Wn) { + for (; gn.endsParent && gn.parent; ) gn = gn.parent; + return gn; + } + } + if (gn.endsWithParent) return Qn(gn.parent, yn, Sn); + } + function kn(gn) { + return 0 === Rn.matcher.regexIndex + ? ((Fn += gn[0]), 1) + : ((ur = !0), 0); + } + function Zi(gn) { + const yn = gn[0], + Sn = Ht.substr(gn.index), + Wn = Qn(Rn, gn, Sn); + if (!Wn) return et; + const Ri = Rn; + Ri.skip + ? (Fn += yn) + : (Ri.returnEnd || Ri.excludeEnd || (Fn += yn), + ti(), + Ri.excludeEnd && (Fn = yn)); + do { + Rn.className && oi.closeNode(), + !Rn.skip && !Rn.subLanguage && ($i += Rn.relevance), + (Rn = Rn.parent); + } while (Rn !== Wn.parent); + return ( + Wn.starts && + (Wn.endSameAsBegin && (Wn.starts.endRe = Wn.endRe), + jn(Wn.starts)), + Ri.returnEnd ? 0 : yn.length + ); + } + let pi = {}; + function Gi(gn, yn) { + const Sn = yn && yn[0]; + if (((Fn += gn), null == Sn)) return ti(), 0; + if ( + "begin" === pi.type && + "end" === yn.type && + pi.index === yn.index && + "" === Sn + ) { + if (((Fn += Ht.slice(yn.index, yn.index + 1)), !Ne)) { + const Wn = new Error("0 width match regex"); + throw ((Wn.languageName = Ft), (Wn.badRule = pi.rule), Wn); + } + return 1; + } + if (((pi = yn), "begin" === yn.type)) + return (function (gn) { + const yn = gn[0], + Sn = gn.rule, + Wn = new f(Sn), + Ri = [Sn.__beforeBegin, Sn["on:begin"]]; + for (const Li of Ri) + if (Li && (Li(gn, Wn), Wn.isMatchIgnored)) return kn(yn); + return ( + Sn && + Sn.endSameAsBegin && + (Sn.endRe = (function (Qe) { + return new RegExp( + Qe.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), + "m" + ); + })(yn)), + Sn.skip + ? (Fn += yn) + : (Sn.excludeBegin && (Fn += yn), + ti(), + !Sn.returnBegin && !Sn.excludeBegin && (Fn = yn)), + jn(Sn), + Sn.returnBegin ? 0 : yn.length + ); + })(yn); + if ("illegal" === yn.type && !Zt) { + const Wn = new Error( + 'Illegal lexeme "' + + Sn + + '" for mode "' + + (Rn.className || "") + + '"' + ); + throw ((Wn.mode = Rn), Wn); + } + if ("end" === yn.type) { + const Wn = Zi(yn); + if (Wn !== et) return Wn; + } + if ("illegal" === yn.type && "" === Sn) return 1; + if (Gn > 1e5 && Gn > 3 * yn.index) + throw new Error( + "potential infinite loop, way more iterations than matches" + ); + return (Fn += Sn), Sn.length; + } + const Ui = Ze(Ft); + if (!Ui) + throw ( + (St(te.replace("{}", Ft)), + new Error('Unknown language: "' + Ft + '"')) + ); + const tr = Ee(Ui, { plugins: qt }); + let bi = "", + Rn = an || tr; + const qi = {}, + oi = new Me.__emitter(Me); + !(function () { + const gn = []; + for (let yn = Rn; yn !== Ui; yn = yn.parent) + yn.className && gn.unshift(yn.className); + gn.forEach((yn) => oi.openNode(yn)); + })(); + let Fn = "", + $i = 0, + mi = 0, + Gn = 0, + ur = !1; + try { + for (Rn.matcher.considerAll(); ; ) { + Gn++, + ur ? (ur = !1) : Rn.matcher.considerAll(), + (Rn.matcher.lastIndex = mi); + const gn = Rn.matcher.exec(Ht); + if (!gn) break; + const Sn = Gi(Ht.substring(mi, gn.index), gn); + mi = gn.index + Sn; + } + return ( + Gi(Ht.substr(mi)), + oi.closeAllNodes(), + oi.finalize(), + (bi = oi.toHTML()), + { + relevance: Math.floor($i), + value: bi, + language: Ft, + illegal: !1, + emitter: oi, + top: Rn, + } + ); + } catch (gn) { + if (gn.message && gn.message.includes("Illegal")) + return { + illegal: !0, + illegalBy: { + msg: gn.message, + context: Ht.slice(mi - 100, mi + 100), + mode: gn.mode, + }, + sofar: bi, + relevance: 0, + value: Dt(Ht), + emitter: oi, + }; + if (Ne) + return { + illegal: !1, + relevance: 0, + value: Dt(Ht), + emitter: oi, + language: Ft, + top: Rn, + errorRaised: gn, + }; + throw gn; + } + } + function lt(Ft, Ht) { + Ht = Ht || Me.languages || Object.keys(mt); + const Zt = (function (Ft) { + const Ht = { + relevance: 0, + emitter: new Me.__emitter(Me), + value: Dt(Ft), + illegal: !1, + top: re, + }; + return Ht.emitter.addText(Ft), Ht; + })(Ft), + an = Ht.filter(Ze) + .filter(Re) + .map((jn) => cn(jn, Ft, !1)); + an.unshift(Zt); + const Tn = an.sort((jn, Qn) => { + if (jn.relevance !== Qn.relevance) + return Qn.relevance - jn.relevance; + if (jn.language && Qn.language) { + if (Ze(jn.language).supersetOf === Qn.language) return 1; + if (Ze(Qn.language).supersetOf === jn.language) return -1; + } + return 0; + }), + [zn, $n] = Tn, + ti = zn; + return (ti.second_best = $n), ti; + } + const pt = { + "before:highlightElement": ({ el: Ft }) => { + Me.useBR && + (Ft.innerHTML = Ft.innerHTML + .replace(/\n/g, "") + .replace(//g, "\n")); + }, + "after:highlightElement": ({ result: Ft }) => { + Me.useBR && (Ft.value = Ft.value.replace(/\n/g, "
")); + }, + }, + Ot = /^(<[^>]+>|\t)+/gm, + un = { + "after:highlightElement": ({ result: Ft }) => { + Me.tabReplace && + (Ft.value = Ft.value.replace(Ot, (Ht) => + Ht.replace(/\t/g, Me.tabReplace) + )); + }, + }; + function on(Ft) { + let Ht = null; + const Zt = (function (Ft) { + let Ht = Ft.className + " "; + Ht += Ft.parentNode ? Ft.parentNode.className : ""; + const Zt = Me.languageDetectRe.exec(Ht); + if (Zt) { + const an = Ze(Zt[1]); + return ( + an || + (Xt(te.replace("{}", Zt[1])), + Xt("Falling back to no-highlight mode for this block.", Ft)), + an ? Zt[1] : "no-highlight" + ); + } + return Ht.split(/\s+/).find((an) => ze(an) || Ze(an)); + })(Ft); + if (ze(Zt)) return; + Pe("before:highlightElement", { el: Ft, language: Zt }), (Ht = Ft); + const an = Ht.textContent, + Tn = Zt ? Qt(an, { language: Zt, ignoreIllegals: !0 }) : lt(an); + Pe("after:highlightElement", { el: Ft, result: Tn, text: an }), + (Ft.innerHTML = Tn.value), + (function (Ft, Ht, Zt) { + const an = Ht ? Vt[Ht] : Zt; + Ft.classList.add("hljs"), an && Ft.classList.add(an); + })(Ft, Zt, Tn.language), + (Ft.result = { + language: Tn.language, + re: Tn.relevance, + relavance: Tn.relevance, + }), + Tn.second_best && + (Ft.second_best = { + language: Tn.second_best.language, + re: Tn.second_best.relevance, + relavance: Tn.second_best.relevance, + }); + } + const Yn = () => { + Yn.called || + ((Yn.called = !0), + tn( + "10.6.0", + "initHighlighting() is deprecated. Use highlightAll() instead." + ), + document.querySelectorAll("pre code").forEach(on)); + }; + let Oi = !1; + function Ni() { + "loading" !== document.readyState + ? document.querySelectorAll("pre code").forEach(on) + : (Oi = !0); + } + function Ze(Ft) { + return (Ft = (Ft || "").toLowerCase()), mt[Ft] || mt[Vt[Ft]]; + } + function ue(Ft, { languageName: Ht }) { + "string" == typeof Ft && (Ft = [Ft]), + Ft.forEach((Zt) => { + Vt[Zt.toLowerCase()] = Ht; + }); + } + function Re(Ft) { + const Ht = Ze(Ft); + return Ht && !Ht.disableAutodetect; + } + function Pe(Ft, Ht) { + const Zt = Ft; + qt.forEach(function (an) { + an[Zt] && an[Zt](Ht); + }); + } + "undefined" != typeof window && + window.addEventListener && + window.addEventListener( + "DOMContentLoaded", + function () { + Oi && Ni(); + }, + !1 + ), + Object.assign(Qe, { + highlight: Qt, + highlightAuto: lt, + highlightAll: Ni, + fixMarkup: function (Ft) { + return ( + tn("10.2.0", "fixMarkup will be removed entirely in v11.0"), + tn( + "10.2.0", + "Please see https://github.com/highlightjs/highlight.js/issues/2534" + ), + (function (Ft) { + return Me.tabReplace || Me.useBR + ? Ft.replace(Se, (Ht) => + "\n" === Ht + ? Me.useBR + ? "
" + : Ht + : Me.tabReplace + ? Ht.replace(/\t/g, Me.tabReplace) + : Ht + ) + : Ft; + })(Ft) + ); + }, + highlightElement: on, + highlightBlock: function (Ft) { + return ( + tn( + "10.7.0", + "highlightBlock will be removed entirely in v12.0" + ), + tn("10.7.0", "Please use highlightElement now."), + on(Ft) + ); + }, + configure: function (Ft) { + Ft.useBR && + (tn("10.3.0", "'useBR' will be removed entirely in v11.0"), + tn( + "10.3.0", + "Please see https://github.com/highlightjs/highlight.js/issues/2559" + )), + (Me = Kt(Me, Ft)); + }, + initHighlighting: Yn, + initHighlightingOnLoad: function () { + tn( + "10.6.0", + "initHighlightingOnLoad() is deprecated. Use highlightAll() instead." + ), + (Oi = !0); + }, + registerLanguage: function (Ft, Ht) { + let Zt = null; + try { + Zt = Ht(Qe); + } catch (an) { + if ( + (St( + "Language definition for '{}' could not be registered.".replace( + "{}", + Ft + ) + ), + !Ne) + ) + throw an; + St(an), (Zt = re); + } + Zt.name || (Zt.name = Ft), + (mt[Ft] = Zt), + (Zt.rawDefinition = Ht.bind(null, Qe)), + Zt.aliases && ue(Zt.aliases, { languageName: Ft }); + }, + unregisterLanguage: function (Ft) { + delete mt[Ft]; + for (const Ht of Object.keys(Vt)) Vt[Ht] === Ft && delete Vt[Ht]; + }, + listLanguages: function () { + return Object.keys(mt); + }, + getLanguage: Ze, + registerAliases: ue, + requireLanguage: function (Ft) { + tn("10.4.0", "requireLanguage will be removed entirely in v11."), + tn( + "10.4.0", + "Please see https://github.com/highlightjs/highlight.js/pull/2844" + ); + const Ht = Ze(Ft); + if (Ht) return Ht; + throw new Error( + "The '{}' language is required, but not loaded.".replace( + "{}", + Ft + ) + ); + }, + autoDetection: Re, + inherit: Kt, + addPlugin: function (Ft) { + (function (Ft) { + Ft["before:highlightBlock"] && + !Ft["before:highlightElement"] && + (Ft["before:highlightElement"] = (Ht) => { + Ft["before:highlightBlock"]( + Object.assign({ block: Ht.el }, Ht) + ); + }), + Ft["after:highlightBlock"] && + !Ft["after:highlightElement"] && + (Ft["after:highlightElement"] = (Ht) => { + Ft["after:highlightBlock"]( + Object.assign({ block: Ht.el }, Ht) + ); + }); + })(Ft), + qt.push(Ft); + }, + vuePlugin: X(Qe).VuePlugin, + }), + (Qe.debugMode = function () { + Ne = !1; + }), + (Qe.safeMode = function () { + Ne = !0; + }), + (Qe.versionString = "10.7.2"); + for (const Ft in tt) "object" == typeof tt[Ft] && p(tt[Ft]); + return ( + Object.assign(Qe, tt), + Qe.addPlugin(pt), + Qe.addPlugin(_e), + Qe.addPlugin(un), + Qe + ); + })({}); + ye.exports = Lt; + }, + 7652: (ye) => { + ye.exports = function (p) { + const n = { literal: "true false null" }, + f = [p.C_LINE_COMMENT_MODE, p.C_BLOCK_COMMENT_MODE], + _ = [p.QUOTE_STRING_MODE, p.C_NUMBER_MODE], + m = { + end: ",", + endsWithParent: !0, + excludeEnd: !0, + contains: _, + keywords: n, + }, + s = { + begin: /\{/, + end: /\}/, + contains: [ + { + className: "attr", + begin: /"/, + end: /"/, + contains: [p.BACKSLASH_ESCAPE], + illegal: "\\n", + }, + p.inherit(m, { begin: /:/ }), + ].concat(f), + illegal: "\\S", + }, + d = { + begin: "\\[", + end: "\\]", + contains: [p.inherit(m)], + illegal: "\\S", + }; + return ( + _.push(s, d), + f.forEach(function (u) { + _.push(u); + }), + { name: "JSON", contains: _, keywords: n, illegal: "\\S" } + ); + }; + }, + 1891: (ye) => { + function j(s) { + return s ? ("string" == typeof s ? s : s.source) : null; + } + function p(s) { + return f("(?=", s, ")"); + } + function f(...s) { + return s.map((u) => j(u)).join(""); + } + function _(...s) { + return "(" + s.map((u) => j(u)).join("|") + ")"; + } + ye.exports = function (s) { + const d = f(/[A-Z_]/, f("(", /[A-Z0-9_.-]*:/, ")?"), /[A-Z0-9_.-]*/), + h = { + className: "symbol", + begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/, + }, + r = { + begin: /\s/, + contains: [ + { + className: "meta-keyword", + begin: /#?[a-z_][a-z1-9_-]+/, + illegal: /\n/, + }, + ], + }, + o = s.inherit(r, { begin: /\(/, end: /\)/ }), + i = s.inherit(s.APOS_STRING_MODE, { className: "meta-string" }), + c = s.inherit(s.QUOTE_STRING_MODE, { className: "meta-string" }), + l = { + endsWithParent: !0, + illegal: /`]+/ }, + ], + }, + ], + }, + ], + }; + return { + name: "HTML, XML", + aliases: [ + "html", + "xhtml", + "rss", + "atom", + "xjb", + "xsd", + "xsl", + "plist", + "wsf", + "svg", + ], + case_insensitive: !0, + contains: [ + { + className: "meta", + begin: //, + relevance: 10, + contains: [ + r, + c, + i, + o, + { + begin: /\[/, + end: /\]/, + contains: [ + { + className: "meta", + begin: //, + contains: [r, o, c, i], + }, + ], + }, + ], + }, + s.COMMENT(//, { relevance: 10 }), + { begin: //, relevance: 10 }, + h, + { className: "meta", begin: /<\?xml/, end: /\?>/, relevance: 10 }, + { + className: "tag", + begin: /)/, + end: />/, + keywords: { name: "style" }, + contains: [l], + starts: { + end: /<\/style>/, + returnEnd: !0, + subLanguage: ["css", "xml"], + }, + }, + { + className: "tag", + begin: /)/, + end: />/, + keywords: { name: "script" }, + contains: [l], + starts: { + end: /<\/script>/, + returnEnd: !0, + subLanguage: ["javascript", "handlebars", "xml"], + }, + }, + { className: "tag", begin: /<>|<\/>/ }, + { + className: "tag", + begin: f(//, />/, /\s/)))), + end: /\/?>/, + contains: [ + { className: "name", begin: d, relevance: 0, starts: l }, + ], + }, + { + className: "tag", + begin: f(/<\//, p(f(d, />/))), + contains: [ + { className: "name", begin: d, relevance: 0 }, + { begin: />/, relevance: 0, endsParent: !0 }, + ], + }, + ], + }; + }; + }, + 859: () => { + !(function (ye, j) { + "use strict"; + var Y, + p = "hljs-ln", + f = "hljs-ln-code", + m = "hljs-ln-n", + s = "data-line-number", + d = /\r\n|\r|\n/g; + function c(Y) { + try { + var Z = j.querySelectorAll("code.hljs,code.nohighlight"); + for (var ee in Z) Z.hasOwnProperty(ee) && (l(Z[ee]) || g(Z[ee], Y)); + } catch ($) { + ye.console.error("LineNumbers error: ", $); + } + } + function l(Y) { + return Y.classList.contains("nohljsln"); + } + function g(Y, Z) { + "object" == typeof Y && + (function (Y) { + ye.setTimeout(Y, 0); + })(function () { + Y.innerHTML = y(Y, Z); + }); + } + function y(Y, Z) { + var ee = (function (Y, Z) { + return { singleLine: O((Z = Z || {})), startFrom: M(Y, Z) }; + })(Y, Z); + return ( + A(Y), + (function (Y, Z) { + var ee = w(Y); + if ( + ("" === ee[ee.length - 1].trim() && ee.pop(), + ee.length > 1 || Z.singleLine) + ) { + for (var $ = "", J = 0, ne = ee.length; J < ne; J++) + $ += L( + '
{6}', + [ + "hljs-ln-line", + "hljs-ln-numbers", + m, + s, + f, + J + Z.startFrom, + ee[J].length > 0 ? ee[J] : " ", + ] + ); + return L('{1}
', [p, $]); + } + return Y; + })(Y.innerHTML, ee) + ); + } + function O(Y) { + return !!Y.singleLine && Y.singleLine; + } + function M(Y, Z) { + var $ = 1; + isFinite(Z.startFrom) && ($ = Z.startFrom); + var J = (function (Y, Z) { + return Y.hasAttribute(Z) ? Y.getAttribute(Z) : null; + })(Y, "data-ln-start-from"); + return ( + null !== J && + ($ = (function (Y, Z) { + if (!Y) return 1; + var ee = Number(Y); + return isFinite(ee) ? ee : 1; + })(J)), + $ + ); + } + function A(Y) { + var Z = Y.childNodes; + for (var ee in Z) + if (Z.hasOwnProperty(ee)) { + var $ = Z[ee]; + I($.textContent) > 0 && + ($.childNodes.length > 0 ? A($) : S($.parentNode)); + } + } + function S(Y) { + var Z = Y.className; + if (/hljs-/.test(Z)) { + for (var ee = w(Y.innerHTML), $ = 0, J = ""; $ < ee.length; $++) + J += L('{1}\n', [ + Z, + ee[$].length > 0 ? ee[$] : " ", + ]); + Y.innerHTML = J.trim(); + } + } + function w(Y) { + return 0 === Y.length ? [] : Y.split(d); + } + function I(Y) { + return (Y.trim().match(d) || []).length; + } + function L(Y, Z) { + return Y.replace(/\{(\d+)\}/g, function (ee, $) { + return void 0 !== Z[$] ? Z[$] : ee; + }); + } + ye.hljs + ? ((ye.hljs.initLineNumbersOnLoad = function (Y) { + "interactive" === j.readyState || "complete" === j.readyState + ? c(Y) + : ye.addEventListener("DOMContentLoaded", function () { + c(Y); + }); + }), + (ye.hljs.lineNumbersBlock = g), + (ye.hljs.lineNumbersValue = function (Y, Z) { + if ("string" == typeof Y) { + var ee = document.createElement("code"); + return (ee.innerHTML = Y), y(ee, Z); + } + }), + ((Y = j.createElement("style")).type = "text/css"), + (Y.innerHTML = L( + ".{0}{border-collapse:collapse}.{0} td{padding:0}.{1}:before{content:attr({2})}", + [p, m, s] + )), + j.getElementsByTagName("head")[0].appendChild(Y)) + : ye.console.error("highlight.js not detected!"), + document.addEventListener("copy", function (Y) { + var ee, + Z = window.getSelection(); + (function (Y) { + for (var Z = Y; Z; ) { + if (Z.className && -1 !== Z.className.indexOf("hljs-ln-code")) + return !0; + Z = Z.parentNode; + } + return !1; + })(Z.anchorNode) && + ((ee = + -1 !== window.navigator.userAgent.indexOf("Edge") + ? (function (Y) { + for ( + var Z = Y.toString(), ee = Y.anchorNode; + "TD" !== ee.nodeName; + + ) + ee = ee.parentNode; + for (var $ = Y.focusNode; "TD" !== $.nodeName; ) + $ = $.parentNode; + var J = parseInt(ee.dataset.lineNumber), + ne = parseInt($.dataset.lineNumber); + if (J != ne) { + var ae = ee.textContent, + le = $.textContent; + if (J > ne) { + var Oe = J; + (J = ne), (ne = Oe), (Oe = ae), (ae = le), (le = Oe); + } + for (; 0 !== Z.indexOf(ae); ) ae = ae.slice(1); + for (; -1 === Z.lastIndexOf(le); ) le = le.slice(0, -1); + for ( + var Le = ae, + Ye = (function (Y) { + for (var Z = Y; "TABLE" !== Z.nodeName; ) + Z = Z.parentNode; + return Z; + })(ee), + Je = J + 1; + Je < ne; + ++Je + ) { + var gt = L('.{0}[{1}="{2}"]', [f, s, Je]); + Le += "\n" + Ye.querySelector(gt).textContent; + } + return Le + "\n" + le; + } + return Z; + })(Z) + : Z.toString()), + Y.clipboardData.setData("text/plain", ee), + Y.preventDefault()); + }); + })(window, document); + }, + 2327: (ye) => { + "use strict"; + ye.exports = + Number.isFinite || + function (j) { + return !( + "number" != typeof j || + j != j || + j === 1 / 0 || + j === -1 / 0 + ); + }; + }, + 5984: (ye, j, p) => { + var n = p(2327); + ye.exports = + Number.isInteger || + function (f) { + return "number" == typeof f && n(f) && Math.floor(f) === f; + }; + }, + 1654: function (ye, j) { + var f; + void 0 !== + (f = function () { + "use strict"; + function _(o) { + function i(y) { + for (var x = 0, T = c.length; x < T; ++x) c[x](y); + l.push(y); + } + if ("function" != typeof Promise) + throw new Error( + "Promise implementation not available in this environment." + ); + var c = [], + l = [], + g = new Promise(function (y, x) { + o(y, x, i); + }); + g.progress = function (y) { + if ("function" != typeof y) + throw new Error("cb is not a function."); + for (var x = 0, T = l.length; x < T; ++x) y(l[x]); + return c.push(y), g; + }; + var b = g.then; + return ( + (g.then = function (y, x, T) { + return b.call(g, y, x), void 0 !== T && g.progress(T), g; + }), + g + ); + } + var d, + u = window || this, + h = u.URL || u.webkitURL, + r = { + blob: { + get: function () { + return this._blob || (this._blob = new Blob([this.buffer])); + }, + }, + getBlobUrl: { + value: function () { + return ( + this._blobUrl || + (this._blobUrl = h.createObjectURL(this.blob)) + ); + }, + }, + readAsString: { + value: function () { + for ( + var o = this.buffer, + i = o.byteLength, + l = new DataView(o), + g = [], + b = 0; + b < i; + ++b + ) { + var y = l.getUint8(1 * b, !0); + g.push(y); + } + return (this._string = String.fromCharCode.apply(null, g)); + }, + }, + readAsJSON: { + value: function () { + return JSON.parse(this.readAsString()); + }, + }, + }; + return ( + (d = (window || this).URL.createObjectURL( + new Blob([ + '"use strict";function UntarWorker(){}function decodeUTF8(e){for(var r="",t=0;t127){if(a>191&&a<224){if(t>=e.length)throw"UTF-8 decode: incomplete 2-byte sequence";a=(31&a)<<6|63&e[t]}else if(a>223&&a<240){if(t+1>=e.length)throw"UTF-8 decode: incomplete 3-byte sequence";a=(15&a)<<12|(63&e[t])<<6|63&e[++t]}else{if(!(a>239&&a<248))throw"UTF-8 decode: unknown multibyte start 0x"+a.toString(16)+" at index "+(t-1);if(t+2>=e.length)throw"UTF-8 decode: incomplete 4-byte sequence";a=(7&a)<<18|(63&e[t])<<12|(63&e[++t])<<6|63&e[++t]}++t}if(a<=65535)r+=String.fromCharCode(a);else{if(!(a<=1114111))throw"UTF-8 decode: code point 0x"+a.toString(16)+" exceeds UTF-16 reach";a-=65536,r+=String.fromCharCode(a>>10|55296),r+=String.fromCharCode(1023&a|56320)}}return r}function PaxHeader(e){this._fields=e}function TarFile(){}function UntarStream(e){this._bufferView=new DataView(e),this._position=0}function UntarFileStream(e){this._stream=new UntarStream(e),this._globalPaxHeader=null}if(UntarWorker.prototype={onmessage:function(e){try{if("extract"!==e.data.type)throw new Error("Unknown message type: "+e.data.type);this.untarBuffer(e.data.buffer)}catch(r){this.postError(r)}},postError:function(e){this.postMessage({type:"error",data:{message:e.message}})},postLog:function(e,r){this.postMessage({type:"log",data:{level:e,msg:r}})},untarBuffer:function(e){try{for(var r=new UntarFileStream(e);r.hasNext();){var t=r.next();this.postMessage({type:"extract",data:t},[t.buffer])}this.postMessage({type:"complete"})}catch(a){this.postError(a)}},postMessage:function(e,r){self.postMessage(e,r)}},"undefined"!=typeof self){var worker=new UntarWorker;self.onmessage=function(e){worker.onmessage(e)}}PaxHeader.parse=function(e){for(var r=new Uint8Array(e),t=[];r.length>0;){var a=parseInt(decodeUTF8(r.subarray(0,r.indexOf(32)))),n=decodeUTF8(r.subarray(0,a)),i=n.match(/^\\d+ ([^=]+)=(.*)\\n$/);if(null===i)throw new Error("Invalid PAX header data format.");var s=i[1],o=i[2];0===o.length?o=null:null!==o.match(/^\\d+$/)&&(o=parseInt(o));var f={name:s,value:o};t.push(f),r=r.subarray(a)}return new PaxHeader(t)},PaxHeader.prototype={applyHeader:function(e){this._fields.forEach(function(r){var t=r.name,a=r.value;"path"===t?(t="name",void 0!==e.prefix&&delete e.prefix):"linkpath"===t&&(t="linkname"),null===a?delete e[t]:e[t]=a})}},UntarStream.prototype={readString:function(e){for(var r=1,t=e*r,a=[],n=0;n-1&&(r.version=e.readString(2),r.uname=e.readString(32),r.gname=e.readString(32),r.devmajor=parseInt(e.readString(8)),r.devminor=parseInt(e.readString(8)),r.namePrefix=e.readString(155),r.namePrefix.length>0&&(r.name=r.namePrefix+"/"+r.name)),e.position(i),r.type){case"0":case"":r.buffer=e.readBuffer(r.size);break;case"1":break;case"2":break;case"3":break;case"4":break;case"5":break;case"6":break;case"7":break;case"g":t=!0,this._globalPaxHeader=PaxHeader.parse(e.readBuffer(r.size));break;case"x":t=!0,a=PaxHeader.parse(e.readBuffer(r.size))}void 0===r.buffer&&(r.buffer=new ArrayBuffer(0));var s=i+r.size;return r.size%512!==0&&(s+=512-r.size%512),e.position(s),t&&(r=this._readNextFile()),null!==this._globalPaxHeader&&this._globalPaxHeader.applyHeader(r),null!==a&&a.applyHeader(r),r}};', + ]) + )), + function (o) { + if (!(o instanceof ArrayBuffer)) + throw new TypeError( + "arrayBuffer is not an instance of ArrayBuffer." + ); + if (!u.Worker) + throw new Error( + "Worker implementation is not available in this environment." + ); + return new _(function (i, c, l) { + var g = new Worker(d), + b = []; + (g.onerror = function (y) { + c(y); + }), + (g.onmessage = function (y) { + switch ((y = y.data).type) { + case "log": + console[y.data.level]("Worker: " + y.data.msg); + break; + case "extract": + var x = (function (o) { + return Object.defineProperties(o, r), o; + })(y.data); + b.push(x), l(x); + break; + case "complete": + g.terminate(), i(b); + break; + case "error": + g.terminate(), c(new Error(y.data.message)); + break; + default: + g.terminate(), + c( + new Error("Unknown message from worker: " + y.type) + ); + } + }), + g.postMessage({ type: "extract", buffer: o }, [o]); + }); + } + ); + }.apply(j, [])) && (ye.exports = f); + }, + 642: (ye, j) => { + function n(f, _) { + var m = [], + s = []; + return ( + null == _ && + (_ = function (d, u) { + return m[0] === u + ? "[Circular ~]" + : "[Circular ~." + s.slice(0, m.indexOf(u)).join(".") + "]"; + }), + function (d, u) { + if (m.length > 0) { + var h = m.indexOf(this); + ~h ? m.splice(h + 1) : m.push(this), + ~h ? s.splice(h, 1 / 0, d) : s.push(d), + ~m.indexOf(u) && (u = _.call(this, d, u)); + } else m.push(u); + return null == f ? u : f.call(this, d, u); + } + ); + } + (ye.exports = function (f, _, m, s) { + return JSON.stringify(f, n(_, s), m); + }).getSerialize = n; + }, + 4366: (ye) => { + var j = 1e3, + p = 60 * j, + n = 60 * p, + f = 24 * n; + function u(h, r, o) { + if (!(h < r)) + return h < 1.5 * r + ? Math.floor(h / r) + " " + o + : Math.ceil(h / r) + " " + o + "s"; + } + ye.exports = function (h, r) { + r = r || {}; + var o = typeof h; + if ("string" === o && h.length > 0) + return (function (h) { + if (!((h = String(h)).length > 100)) { + var r = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec( + h + ); + if (r) { + var o = parseFloat(r[1]); + switch ((r[2] || "ms").toLowerCase()) { + case "years": + case "year": + case "yrs": + case "yr": + case "y": + return 315576e5 * o; + case "days": + case "day": + case "d": + return o * f; + case "hours": + case "hour": + case "hrs": + case "hr": + case "h": + return o * n; + case "minutes": + case "minute": + case "mins": + case "min": + case "m": + return o * p; + case "seconds": + case "second": + case "secs": + case "sec": + case "s": + return o * j; + case "milliseconds": + case "millisecond": + case "msecs": + case "msec": + case "ms": + return o; + default: + return; + } + } + } + })(h); + if ("number" === o && !1 === isNaN(h)) + return r.long + ? (function (h) { + return ( + u(h, f, "day") || + u(h, n, "hour") || + u(h, p, "minute") || + u(h, j, "second") || + h + " ms" + ); + })(h) + : (function (h) { + return h >= f + ? Math.round(h / f) + "d" + : h >= n + ? Math.round(h / n) + "h" + : h >= p + ? Math.round(h / p) + "m" + : h >= j + ? Math.round(h / j) + "s" + : h + "ms"; + })(h); + throw new Error( + "val is not a non-empty string or a valid number. val=" + + JSON.stringify(h) + ); + }; + }, + 8922: (ye, j, p) => { + "use strict"; + p.r(j), p.d(j, { FileSizeModule: () => m, FileSizePipe: () => _ }); + var n = p(8277), + f = p(5e3), + _ = (function () { + function s() {} + return ( + (s.prototype.transform = function (d, u) { + return Array.isArray(d) + ? d.map(function (h) { + return s.transformOne(h, u); + }) + : s.transformOne(d, u); + }), + (s.transformOne = function (d, u) { + return n(d, u); + }), + (s.ɵfac = function (u) { + return new (u || s)(); + }), + (s.ɵpipe = f.ɵɵdefinePipe({ name: "filesize", type: s, pure: !0 })), + s + ); + })(), + m = (function () { + function s() {} + return ( + (s.ɵfac = function (u) { + return new (u || s)(); + }), + (s.ɵmod = f.ɵɵdefineNgModule({ type: s })), + (s.ɵinj = f.ɵɵdefineInjector({})), + s + ); + })(); + }, + 2756: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + HIGHLIGHT_OPTIONS: () => y, + Highlight: () => A, + HighlightJS: () => M, + HighlightLoader: () => x, + HighlightModule: () => S, + ɵ0: () => O, + }); + var n = p(5e3), + f = p(591), + _ = p(8896), + m = p(1737), + s = p(1746), + d = p(5254), + u = p(352), + h = p(2198), + r = p(4850), + o = p(2986), + i = p(7545), + c = p(2868), + l = p(7221), + g = p(9808), + b = p(2313); + const y = new n.InjectionToken("HIGHLIGHT_OPTIONS"); + let x = (() => { + class w { + constructor(C, L, F) { + (this._options = F), + (this._ready = new f.X(null)), + (this.ready = this._ready.asObservable().pipe( + (0, h.h)((ie) => !!ie), + (0, r.U)((ie) => ie), + (0, o.q)(1) + )), + (0, g.isPlatformBrowser)(L) && C.defaultView.hljs + ? this._ready.next(C.defaultView.hljs) + : this._loadLibrary() + .pipe( + (0, i.w)((ie) => + this._options && this._options.lineNumbersLoader + ? ((C.defaultView.hljs = ie), + this.loadLineNumbers().pipe( + (0, c.b)(() => this._ready.next(ie)) + )) + : (this._ready.next(ie), _.E) + ), + (0, l.K)((ie) => (console.error("[HLJS] ", ie), _.E)) + ) + .subscribe(); + } + _loadLibrary() { + if (this._options) { + if ( + this._options.fullLibraryLoader && + this._options.coreLibraryLoader + ) + return (0, m._)( + "The full library and the core library were imported, only one of them should be imported!" + ); + if (this._options.fullLibraryLoader && this._options.languages) + return (0, m._)( + "The highlighting languages were imported they are not needed!" + ); + if (this._options.coreLibraryLoader && !this._options.languages) + return (0, m._)( + "The highlighting languages were not imported!" + ); + if (!this._options.coreLibraryLoader && this._options.languages) + return (0, m._)("The core library was not imported!"); + if (this._options.fullLibraryLoader) + return this.loadFullLibrary(); + if ( + this._options.coreLibraryLoader && + this._options.languages && + Object.keys(this._options.languages).length + ) + return this.loadCoreLibrary().pipe( + (0, i.w)((C) => this._loadLanguages(C)) + ); + } + return (0, m._)("Highlight.js library was not imported!"); + } + _loadLanguages(C) { + const L = Object.entries(this._options.languages).map(([F, ie]) => + T(ie()).pipe((0, c.b)((Y) => C.registerLanguage(F, Y))) + ); + return (0, s.$R)(...L).pipe((0, r.U)(() => C)); + } + loadCoreLibrary() { + return T(this._options.coreLibraryLoader()); + } + loadFullLibrary() { + return T(this._options.fullLibraryLoader()); + } + loadLineNumbers() { + return T(this._options.lineNumbersLoader()); + } + } + return ( + (w.ɵfac = function (C) { + return new (C || w)( + n.ɵɵinject(g.DOCUMENT), + n.ɵɵinject(n.PLATFORM_ID), + n.ɵɵinject(y, 8) + ); + }), + (w.ɵprov = (0, n.ɵɵdefineInjectable)({ + factory: function () { + return new w( + (0, n.ɵɵinject)(g.DOCUMENT), + (0, n.ɵɵinject)(n.PLATFORM_ID), + (0, n.ɵɵinject)(y, 8) + ); + }, + token: w, + providedIn: "root", + })), + w + ); + })(); + const T = (w) => + (0, d.D)(w).pipe( + (0, h.h)((I) => !!I && !!I.default), + (0, r.U)((I) => I.default) + ), + O = T; + let M = (() => { + class w { + constructor(C, L) { + (this._loader = C), + (this._hljs = null), + C.ready.pipe().subscribe((F) => { + (this._hljs = F), + L && + L.config && + (F.configure(L.config), + F.listLanguages().length < 1 && + console.error( + "[HighlightJS]: No languages were registered!" + )); + }); + } + get hljs() { + return this._hljs; + } + highlight(C, L, F, ie) { + return this._loader.ready.pipe( + (0, r.U)((Y) => Y.highlight(C, L, F, ie)) + ); + } + highlightAuto(C, L) { + return this._loader.ready.pipe( + (0, r.U)((F) => F.highlightAuto(C, L)) + ); + } + fixMarkup(C) { + return this._loader.ready.pipe((0, r.U)((L) => L.fixMarkup(C))); + } + highlightBlock(C) { + return this._loader.ready.pipe( + (0, r.U)((L) => L.highlightBlock(C)) + ); + } + configure(C) { + return this._loader.ready.pipe((0, r.U)((L) => L.configure(C))); + } + initHighlighting() { + return this._loader.ready.pipe( + (0, r.U)((C) => C.initHighlighting()) + ); + } + registerLanguage(C, L) { + return this._loader.ready.pipe( + (0, c.b)((F) => F.registerLanguage(C, L)) + ); + } + listLanguages() { + return this._loader.ready.pipe( + (0, r.U)((C) => C.listLanguages()) + ); + } + getLanguage(C) { + return this._loader.ready.pipe((0, r.U)((L) => L.getLanguage(C))); + } + lineNumbersBlock(C) { + return this._loader.ready.pipe( + (0, h.h)((L) => !!L.lineNumbersBlock), + (0, c.b)((L) => L.lineNumbersBlock(C)) + ); + } + } + return ( + (w.ɵfac = function (C) { + return new (C || w)(n.ɵɵinject(x), n.ɵɵinject(y, 8)); + }), + (w.ɵprov = (0, n.ɵɵdefineInjectable)({ + factory: function () { + return new w((0, n.ɵɵinject)(x), (0, n.ɵɵinject)(y, 8)); + }, + token: w, + providedIn: "root", + })), + w + ); + })(), + A = (() => { + class w { + constructor(C, L, F, ie) { + (this._hljs = L), + (this._sanitizer = F), + (this._options = ie), + (this.highlighted = new n.EventEmitter()), + (this._nativeElement = C.nativeElement); + } + ngOnChanges(C) { + this.code && + C.code && + void 0 !== C.code.currentValue && + C.code.currentValue !== C.code.previousValue && + this.highlightElement(this.code, this.languages); + } + highlightElement(C, L) { + this.setTextContent(C), + this._hljs.highlightAuto(C, L).subscribe((F) => { + this.setInnerHTML(F.value), + this.lineNumbers && + this._options && + this._options.lineNumbersLoader && + this.addLineNumbers(), + this.highlighted.emit(F); + }); + } + addLineNumbers() { + this.destroyLineNumbersObserver(), + u.Z.schedule(() => { + this._hljs.lineNumbersBlock(this._nativeElement).subscribe(), + (this._lineNumbersObs = new MutationObserver(() => { + this._nativeElement.firstElementChild && + "TABLE" === + this._nativeElement.firstElementChild.tagName.toUpperCase() && + this._nativeElement.classList.add("hljs-line-numbers"), + this.destroyLineNumbersObserver(); + })), + this._lineNumbersObs.observe(this._nativeElement, { + childList: !0, + }); + }); + } + destroyLineNumbersObserver() { + this._lineNumbersObs && + (this._lineNumbersObs.disconnect(), + (this._lineNumbersObs = null)); + } + setTextContent(C) { + u.Z.schedule(() => (this._nativeElement.textContent = C)); + } + setInnerHTML(C) { + u.Z.schedule( + () => + (this._nativeElement.innerHTML = + this._sanitizer.sanitize(n.SecurityContext.HTML, C) || "") + ); + } + } + return ( + (w.ɵfac = function (C) { + return new (C || w)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(M), + n.ɵɵdirectiveInject(b.DomSanitizer), + n.ɵɵdirectiveInject(y, 8) + ); + }), + (w.ɵdir = n.ɵɵdefineDirective({ + type: w, + selectors: [["", "highlight", ""]], + hostVars: 2, + hostBindings: function (C, L) { + 2 & C && n.ɵɵclassProp("hljs", !0); + }, + inputs: { + code: ["highlight", "code"], + languages: "languages", + lineNumbers: "lineNumbers", + }, + outputs: { highlighted: "highlighted" }, + features: [n.ɵɵNgOnChangesFeature], + })), + w + ); + })(), + S = (() => { + class w {} + return ( + (w.ɵfac = function (C) { + return new (C || w)(); + }), + (w.ɵmod = n.ɵɵdefineNgModule({ type: w })), + (w.ɵinj = n.ɵɵdefineInjector({})), + w + ); + })(); + }, + 2398: (ye) => { + "use strict"; + const j = + "undefined" != typeof self + ? self + : "undefined" != typeof window + ? window + : void 0; + if (!j) + throw new Error( + "Unable to find global scope. Are you sure this is running in the browser?" + ); + if (!j.AbortController) + throw new Error( + 'Could not find "AbortController" in the global scope. You need to polyfill it first' + ); + ye.exports.AbortController = j.AbortController; + }, + 3230: (ye, j, p) => { + "use strict"; + const n = p(8372), + f = p(2761), + _ = p(8951), + m = p(4770), + d = Symbol("encodeFragmentIdentifier"); + function r(T) { + if ("string" != typeof T || 1 !== T.length) + throw new TypeError( + "arrayFormatSeparator must be single character string" + ); + } + function o(T, O) { + return O.encode ? (O.strict ? n(T) : encodeURIComponent(T)) : T; + } + function i(T, O) { + return O.decode ? f(T) : T; + } + function c(T) { + return Array.isArray(T) + ? T.sort() + : "object" == typeof T + ? c(Object.keys(T)) + .sort((O, M) => Number(O) - Number(M)) + .map((O) => T[O]) + : T; + } + function l(T) { + const O = T.indexOf("#"); + return -1 !== O && (T = T.slice(0, O)), T; + } + function b(T) { + const O = (T = l(T)).indexOf("?"); + return -1 === O ? "" : T.slice(O + 1); + } + function y(T, O) { + return ( + O.parseNumbers && + !Number.isNaN(Number(T)) && + "string" == typeof T && + "" !== T.trim() + ? (T = Number(T)) + : O.parseBooleans && + null !== T && + ("true" === T.toLowerCase() || "false" === T.toLowerCase()) && + (T = "true" === T.toLowerCase()), + T + ); + } + function x(T, O) { + r( + (O = Object.assign( + { + decode: !0, + sort: !0, + arrayFormat: "none", + arrayFormatSeparator: ",", + parseNumbers: !1, + parseBooleans: !1, + }, + O + )).arrayFormatSeparator + ); + const M = (function (T) { + let O; + switch (T.arrayFormat) { + case "index": + return (M, A, S) => { + (O = /\[(\d*)\]$/.exec(M)), + (M = M.replace(/\[\d*\]$/, "")), + O + ? (void 0 === S[M] && (S[M] = {}), (S[M][O[1]] = A)) + : (S[M] = A); + }; + case "bracket": + return (M, A, S) => { + (O = /(\[\])$/.exec(M)), + (S[(M = M.replace(/\[\]$/, ""))] = O + ? void 0 !== S[M] + ? [].concat(S[M], A) + : [A] + : A); + }; + case "colon-list-separator": + return (M, A, S) => { + (O = /(:list)$/.exec(M)), + (S[(M = M.replace(/:list$/, ""))] = O + ? void 0 !== S[M] + ? [].concat(S[M], A) + : [A] + : A); + }; + case "comma": + case "separator": + return (M, A, S) => { + const w = + "string" == typeof A && + A.includes(T.arrayFormatSeparator), + I = + "string" == typeof A && + !w && + i(A, T).includes(T.arrayFormatSeparator); + A = I ? i(A, T) : A; + const C = + w || I + ? A.split(T.arrayFormatSeparator).map((L) => i(L, T)) + : null === A + ? A + : i(A, T); + S[M] = C; + }; + case "bracket-separator": + return (M, A, S) => { + const w = /(\[\])$/.test(M); + if (((M = M.replace(/\[\]$/, "")), !w)) + return void (S[M] = A && i(A, T)); + const I = + null === A + ? [] + : A.split(T.arrayFormatSeparator).map((C) => i(C, T)); + S[M] = void 0 !== S[M] ? [].concat(S[M], I) : I; + }; + default: + return (M, A, S) => { + S[M] = void 0 !== S[M] ? [].concat(S[M], A) : A; + }; + } + })(O), + A = Object.create(null); + if ("string" != typeof T || !(T = T.trim().replace(/^[?#&]/, ""))) + return A; + for (const S of T.split("&")) { + if ("" === S) continue; + let [w, I] = _(O.decode ? S.replace(/\+/g, " ") : S, "="); + (I = + void 0 === I + ? null + : ["comma", "separator", "bracket-separator"].includes( + O.arrayFormat + ) + ? I + : i(I, O)), + M(i(w, O), I, A); + } + for (const S of Object.keys(A)) { + const w = A[S]; + if ("object" == typeof w && null !== w) + for (const I of Object.keys(w)) w[I] = y(w[I], O); + else A[S] = y(w, O); + } + return !1 === O.sort + ? A + : (!0 === O.sort + ? Object.keys(A).sort() + : Object.keys(A).sort(O.sort) + ).reduce((S, w) => { + const I = A[w]; + return ( + (S[w] = + Boolean(I) && "object" == typeof I && !Array.isArray(I) + ? c(I) + : I), + S + ); + }, Object.create(null)); + } + (j.extract = b), + (j.parse = x), + (j.stringify = (T, O) => { + if (!T) return ""; + r( + (O = Object.assign( + { + encode: !0, + strict: !0, + arrayFormat: "none", + arrayFormatSeparator: ",", + }, + O + )).arrayFormatSeparator + ); + const M = (I) => + (O.skipNull && ((T) => null == T)(T[I])) || + (O.skipEmptyString && "" === T[I]), + A = (function (T) { + switch (T.arrayFormat) { + case "index": + return (O) => (M, A) => { + const S = M.length; + return void 0 === A || + (T.skipNull && null === A) || + (T.skipEmptyString && "" === A) + ? M + : null === A + ? [...M, [o(O, T), "[", S, "]"].join("")] + : [...M, [o(O, T), "[", o(S, T), "]=", o(A, T)].join("")]; + }; + case "bracket": + return (O) => (M, A) => + void 0 === A || + (T.skipNull && null === A) || + (T.skipEmptyString && "" === A) + ? M + : null === A + ? [...M, [o(O, T), "[]"].join("")] + : [...M, [o(O, T), "[]=", o(A, T)].join("")]; + case "colon-list-separator": + return (O) => (M, A) => + void 0 === A || + (T.skipNull && null === A) || + (T.skipEmptyString && "" === A) + ? M + : null === A + ? [...M, [o(O, T), ":list="].join("")] + : [...M, [o(O, T), ":list=", o(A, T)].join("")]; + case "comma": + case "separator": + case "bracket-separator": { + const O = "bracket-separator" === T.arrayFormat ? "[]=" : "="; + return (M) => (A, S) => + void 0 === S || + (T.skipNull && null === S) || + (T.skipEmptyString && "" === S) + ? A + : ((S = null === S ? "" : S), + 0 === A.length + ? [[o(M, T), O, o(S, T)].join("")] + : [[A, o(S, T)].join(T.arrayFormatSeparator)]); + } + default: + return (O) => (M, A) => + void 0 === A || + (T.skipNull && null === A) || + (T.skipEmptyString && "" === A) + ? M + : null === A + ? [...M, o(O, T)] + : [...M, [o(O, T), "=", o(A, T)].join("")]; + } + })(O), + S = {}; + for (const I of Object.keys(T)) M(I) || (S[I] = T[I]); + const w = Object.keys(S); + return ( + !1 !== O.sort && w.sort(O.sort), + w + .map((I) => { + const C = T[I]; + return void 0 === C + ? "" + : null === C + ? o(I, O) + : Array.isArray(C) + ? 0 === C.length && "bracket-separator" === O.arrayFormat + ? o(I, O) + "[]" + : C.reduce(A(I), []).join("&") + : o(I, O) + "=" + o(C, O); + }) + .filter((I) => I.length > 0) + .join("&") + ); + }), + (j.parseUrl = (T, O) => { + O = Object.assign({ decode: !0 }, O); + const [M, A] = _(T, "#"); + return Object.assign( + { url: M.split("?")[0] || "", query: x(b(T), O) }, + O && O.parseFragmentIdentifier && A + ? { fragmentIdentifier: i(A, O) } + : {} + ); + }), + (j.stringifyUrl = (T, O) => { + O = Object.assign({ encode: !0, strict: !0, [d]: !0 }, O); + const M = l(T.url).split("?")[0] || "", + A = j.extract(T.url), + S = j.parse(A, { sort: !1 }), + w = Object.assign(S, T.query); + let I = j.stringify(w, O); + I && (I = `?${I}`); + let C = (function (T) { + let O = ""; + const M = T.indexOf("#"); + return -1 !== M && (O = T.slice(M)), O; + })(T.url); + return ( + T.fragmentIdentifier && + (C = `#${ + O[d] ? o(T.fragmentIdentifier, O) : T.fragmentIdentifier + }`), + `${M}${I}${C}` + ); + }), + (j.pick = (T, O, M) => { + M = Object.assign({ parseFragmentIdentifier: !0, [d]: !1 }, M); + const { url: A, query: S, fragmentIdentifier: w } = j.parseUrl(T, M); + return j.stringifyUrl( + { url: A, query: m(S, O), fragmentIdentifier: w }, + M + ); + }), + (j.exclude = (T, O, M) => { + const A = Array.isArray(O) + ? (S) => !O.includes(S) + : (S, w) => !O(S, w); + return j.pick(T, A, M); + }); + }, + 591: (ye, j, p) => { + "use strict"; + p.d(j, { X: () => _ }); + var n = p(8929), + f = p(5279); + class _ extends n.xQ { + constructor(s) { + super(), (this._value = s); + } + get value() { + return this.getValue(); + } + _subscribe(s) { + const d = super._subscribe(s); + return d && !d.closed && s.next(this._value), d; + } + getValue() { + if (this.hasError) throw this.thrownError; + if (this.closed) throw new f.N(); + return this._value; + } + next(s) { + super.next((this._value = s)); + } + } + }, + 9312: (ye, j, p) => { + "use strict"; + p.d(j, { P: () => s }); + var n = p(8896), + f = p(1086), + _ = p(1737); + class s { + constructor(u, h, r) { + (this.kind = u), + (this.value = h), + (this.error = r), + (this.hasValue = "N" === u); + } + observe(u) { + switch (this.kind) { + case "N": + return u.next && u.next(this.value); + case "E": + return u.error && u.error(this.error); + case "C": + return u.complete && u.complete(); + } + } + do(u, h, r) { + switch (this.kind) { + case "N": + return u && u(this.value); + case "E": + return h && h(this.error); + case "C": + return r && r(); + } + } + accept(u, h, r) { + return u && "function" == typeof u.next + ? this.observe(u) + : this.do(u, h, r); + } + toObservable() { + switch (this.kind) { + case "N": + return (0, f.of)(this.value); + case "E": + return (0, _._)(this.error); + case "C": + return (0, n.c)(); + } + throw new Error("unexpected notification kind value"); + } + static createNext(u) { + return void 0 !== u ? new s("N", u) : s.undefinedValueNotification; + } + static createError(u) { + return new s("E", void 0, u); + } + static createComplete() { + return s.completeNotification; + } + } + (s.completeNotification = new s("C")), + (s.undefinedValueNotification = new s("N", void 0)); + }, + 6498: (ye, j, p) => { + "use strict"; + p.d(j, { y: () => r }); + var n = p(3489), + _ = p(7668), + m = p(3292), + d = p(3821), + u = p(4843), + h = p(2830); + let r = (() => { + class i { + constructor(l) { + (this._isScalar = !1), l && (this._subscribe = l); + } + lift(l) { + const g = new i(); + return (g.source = this), (g.operator = l), g; + } + subscribe(l, g, b) { + const { operator: y } = this, + x = (function (i, c, l) { + if (i) { + if (i instanceof n.L) return i; + if (i[_.b]) return i[_.b](); + } + return i || c || l ? new n.L(i, c, l) : new n.L(m.c); + })(l, g, b); + if ( + (x.add( + y + ? y.call(x, this.source) + : this.source || + (h.v.useDeprecatedSynchronousErrorHandling && + !x.syncErrorThrowable) + ? this._subscribe(x) + : this._trySubscribe(x) + ), + h.v.useDeprecatedSynchronousErrorHandling && + x.syncErrorThrowable && + ((x.syncErrorThrowable = !1), x.syncErrorThrown)) + ) + throw x.syncErrorValue; + return x; + } + _trySubscribe(l) { + try { + return this._subscribe(l); + } catch (g) { + h.v.useDeprecatedSynchronousErrorHandling && + ((l.syncErrorThrown = !0), (l.syncErrorValue = g)), + (function (i) { + for (; i; ) { + const { closed: c, destination: l, isStopped: g } = i; + if (c || g) return !1; + i = l && l instanceof n.L ? l : null; + } + return !0; + })(l) + ? l.error(g) + : console.warn(g); + } + } + forEach(l, g) { + return new (g = o(g))((b, y) => { + let x; + x = this.subscribe( + (T) => { + try { + l(T); + } catch (O) { + y(O), x && x.unsubscribe(); + } + }, + y, + b + ); + }); + } + _subscribe(l) { + const { source: g } = this; + return g && g.subscribe(l); + } + [d.L]() { + return this; + } + pipe(...l) { + return 0 === l.length ? this : (0, u.U)(l)(this); + } + toPromise(l) { + return new (l = o(l))((g, b) => { + let y; + this.subscribe( + (x) => (y = x), + (x) => b(x), + () => g(y) + ); + }); + } + } + return (i.create = (c) => new i(c)), i; + })(); + function o(i) { + if ((i || (i = h.v.Promise || Promise), !i)) + throw new Error("no Promise impl found"); + return i; + } + }, + 3292: (ye, j, p) => { + "use strict"; + p.d(j, { c: () => _ }); + var n = p(2830), + f = p(2782); + const _ = { + closed: !0, + next(m) {}, + error(m) { + if (n.v.useDeprecatedSynchronousErrorHandling) throw m; + (0, f.z)(m); + }, + complete() {}, + }; + }, + 826: (ye, j, p) => { + "use strict"; + p.d(j, { L: () => f }); + var n = p(3489); + class f extends n.L { + notifyNext(m, s, d, u, h) { + this.destination.next(s); + } + notifyError(m, s) { + this.destination.error(m); + } + notifyComplete(m) { + this.destination.complete(); + } + } + }, + 8929: (ye, j, p) => { + "use strict"; + p.d(j, { Yc: () => u, xQ: () => h }); + var n = p(6498), + f = p(3489), + _ = p(2654), + m = p(5279), + s = p(5283), + d = p(7668); + class u extends f.L { + constructor(i) { + super(i), (this.destination = i); + } + } + let h = (() => { + class o extends n.y { + constructor() { + super(), + (this.observers = []), + (this.closed = !1), + (this.isStopped = !1), + (this.hasError = !1), + (this.thrownError = null); + } + [d.b]() { + return new u(this); + } + lift(c) { + const l = new r(this, this); + return (l.operator = c), l; + } + next(c) { + if (this.closed) throw new m.N(); + if (!this.isStopped) { + const { observers: l } = this, + g = l.length, + b = l.slice(); + for (let y = 0; y < g; y++) b[y].next(c); + } + } + error(c) { + if (this.closed) throw new m.N(); + (this.hasError = !0), (this.thrownError = c), (this.isStopped = !0); + const { observers: l } = this, + g = l.length, + b = l.slice(); + for (let y = 0; y < g; y++) b[y].error(c); + this.observers.length = 0; + } + complete() { + if (this.closed) throw new m.N(); + this.isStopped = !0; + const { observers: c } = this, + l = c.length, + g = c.slice(); + for (let b = 0; b < l; b++) g[b].complete(); + this.observers.length = 0; + } + unsubscribe() { + (this.isStopped = !0), (this.closed = !0), (this.observers = null); + } + _trySubscribe(c) { + if (this.closed) throw new m.N(); + return super._trySubscribe(c); + } + _subscribe(c) { + if (this.closed) throw new m.N(); + return this.hasError + ? (c.error(this.thrownError), _.w.EMPTY) + : this.isStopped + ? (c.complete(), _.w.EMPTY) + : (this.observers.push(c), new s.W(this, c)); + } + asObservable() { + const c = new n.y(); + return (c.source = this), c; + } + } + return (o.create = (i, c) => new r(i, c)), o; + })(); + class r extends h { + constructor(i, c) { + super(), (this.destination = i), (this.source = c); + } + next(i) { + const { destination: c } = this; + c && c.next && c.next(i); + } + error(i) { + const { destination: c } = this; + c && c.error && this.destination.error(i); + } + complete() { + const { destination: i } = this; + i && i.complete && this.destination.complete(); + } + _subscribe(i) { + const { source: c } = this; + return c ? this.source.subscribe(i) : _.w.EMPTY; + } + } + }, + 5283: (ye, j, p) => { + "use strict"; + p.d(j, { W: () => f }); + var n = p(2654); + class f extends n.w { + constructor(m, s) { + super(), + (this.subject = m), + (this.subscriber = s), + (this.closed = !1); + } + unsubscribe() { + if (this.closed) return; + this.closed = !0; + const m = this.subject, + s = m.observers; + if ( + ((this.subject = null), + !s || 0 === s.length || m.isStopped || m.closed) + ) + return; + const d = s.indexOf(this.subscriber); + -1 !== d && s.splice(d, 1); + } + } + }, + 3489: (ye, j, p) => { + "use strict"; + p.d(j, { L: () => u }); + var n = p(7043), + f = p(3292), + _ = p(2654), + m = p(7668), + s = p(2830), + d = p(2782); + class u extends _.w { + constructor(o, i, c) { + switch ( + (super(), + (this.syncErrorValue = null), + (this.syncErrorThrown = !1), + (this.syncErrorThrowable = !1), + (this.isStopped = !1), + arguments.length) + ) { + case 0: + this.destination = f.c; + break; + case 1: + if (!o) { + this.destination = f.c; + break; + } + if ("object" == typeof o) { + o instanceof u + ? ((this.syncErrorThrowable = o.syncErrorThrowable), + (this.destination = o), + o.add(this)) + : ((this.syncErrorThrowable = !0), + (this.destination = new h(this, o))); + break; + } + default: + (this.syncErrorThrowable = !0), + (this.destination = new h(this, o, i, c)); + } + } + [m.b]() { + return this; + } + static create(o, i, c) { + const l = new u(o, i, c); + return (l.syncErrorThrowable = !1), l; + } + next(o) { + this.isStopped || this._next(o); + } + error(o) { + this.isStopped || ((this.isStopped = !0), this._error(o)); + } + complete() { + this.isStopped || ((this.isStopped = !0), this._complete()); + } + unsubscribe() { + this.closed || ((this.isStopped = !0), super.unsubscribe()); + } + _next(o) { + this.destination.next(o); + } + _error(o) { + this.destination.error(o), this.unsubscribe(); + } + _complete() { + this.destination.complete(), this.unsubscribe(); + } + _unsubscribeAndRecycle() { + const { _parentOrParents: o } = this; + return ( + (this._parentOrParents = null), + this.unsubscribe(), + (this.closed = !1), + (this.isStopped = !1), + (this._parentOrParents = o), + this + ); + } + } + class h extends u { + constructor(o, i, c, l) { + super(), (this._parentSubscriber = o); + let g, + b = this; + (0, n.m)(i) + ? (g = i) + : i && + ((g = i.next), + (c = i.error), + (l = i.complete), + i !== f.c && + ((b = Object.create(i)), + (0, n.m)(b.unsubscribe) && this.add(b.unsubscribe.bind(b)), + (b.unsubscribe = this.unsubscribe.bind(this)))), + (this._context = b), + (this._next = g), + (this._error = c), + (this._complete = l); + } + next(o) { + if (!this.isStopped && this._next) { + const { _parentSubscriber: i } = this; + s.v.useDeprecatedSynchronousErrorHandling && i.syncErrorThrowable + ? this.__tryOrSetError(i, this._next, o) && this.unsubscribe() + : this.__tryOrUnsub(this._next, o); + } + } + error(o) { + if (!this.isStopped) { + const { _parentSubscriber: i } = this, + { useDeprecatedSynchronousErrorHandling: c } = s.v; + if (this._error) + c && i.syncErrorThrowable + ? (this.__tryOrSetError(i, this._error, o), this.unsubscribe()) + : (this.__tryOrUnsub(this._error, o), this.unsubscribe()); + else if (i.syncErrorThrowable) + c + ? ((i.syncErrorValue = o), (i.syncErrorThrown = !0)) + : (0, d.z)(o), + this.unsubscribe(); + else { + if ((this.unsubscribe(), c)) throw o; + (0, d.z)(o); + } + } + } + complete() { + if (!this.isStopped) { + const { _parentSubscriber: o } = this; + if (this._complete) { + const i = () => this._complete.call(this._context); + s.v.useDeprecatedSynchronousErrorHandling && o.syncErrorThrowable + ? (this.__tryOrSetError(o, i), this.unsubscribe()) + : (this.__tryOrUnsub(i), this.unsubscribe()); + } else this.unsubscribe(); + } + } + __tryOrUnsub(o, i) { + try { + o.call(this._context, i); + } catch (c) { + if ((this.unsubscribe(), s.v.useDeprecatedSynchronousErrorHandling)) + throw c; + (0, d.z)(c); + } + } + __tryOrSetError(o, i, c) { + if (!s.v.useDeprecatedSynchronousErrorHandling) + throw new Error("bad call"); + try { + i.call(this._context, c); + } catch (l) { + return s.v.useDeprecatedSynchronousErrorHandling + ? ((o.syncErrorValue = l), (o.syncErrorThrown = !0), !0) + : ((0, d.z)(l), !0); + } + return !1; + } + _unsubscribe() { + const { _parentSubscriber: o } = this; + (this._context = null), + (this._parentSubscriber = null), + o.unsubscribe(); + } + } + }, + 2654: (ye, j, p) => { + "use strict"; + p.d(j, { w: () => d }); + var n = p(6688), + f = p(7830), + _ = p(7043); + const s = (() => { + function h(r) { + return ( + Error.call(this), + (this.message = r + ? `${r.length} errors occurred during unsubscription:\n${r + .map((o, i) => `${i + 1}) ${o.toString()}`) + .join("\n ")}` + : ""), + (this.name = "UnsubscriptionError"), + (this.errors = r), + this + ); + } + return (h.prototype = Object.create(Error.prototype)), h; + })(); + class d { + constructor(r) { + (this.closed = !1), + (this._parentOrParents = null), + (this._subscriptions = null), + r && ((this._ctorUnsubscribe = !0), (this._unsubscribe = r)); + } + unsubscribe() { + let r; + if (this.closed) return; + let { + _parentOrParents: o, + _ctorUnsubscribe: i, + _unsubscribe: c, + _subscriptions: l, + } = this; + if ( + ((this.closed = !0), + (this._parentOrParents = null), + (this._subscriptions = null), + o instanceof d) + ) + o.remove(this); + else if (null !== o) + for (let g = 0; g < o.length; ++g) o[g].remove(this); + if ((0, _.m)(c)) { + i && (this._unsubscribe = void 0); + try { + c.call(this); + } catch (g) { + r = g instanceof s ? u(g.errors) : [g]; + } + } + if ((0, n.k)(l)) { + let g = -1, + b = l.length; + for (; ++g < b; ) { + const y = l[g]; + if ((0, f.K)(y)) + try { + y.unsubscribe(); + } catch (x) { + (r = r || []), + x instanceof s ? (r = r.concat(u(x.errors))) : r.push(x); + } + } + } + if (r) throw new s(r); + } + add(r) { + let o = r; + if (!r) return d.EMPTY; + switch (typeof r) { + case "function": + o = new d(r); + case "object": + if (o === this || o.closed || "function" != typeof o.unsubscribe) + return o; + if (this.closed) return o.unsubscribe(), o; + if (!(o instanceof d)) { + const l = o; + (o = new d()), (o._subscriptions = [l]); + } + break; + default: + throw new Error( + "unrecognized teardown " + r + " added to Subscription." + ); + } + let { _parentOrParents: i } = o; + if (null === i) o._parentOrParents = this; + else if (i instanceof d) { + if (i === this) return o; + o._parentOrParents = [i, this]; + } else { + if (-1 !== i.indexOf(this)) return o; + i.push(this); + } + const c = this._subscriptions; + return null === c ? (this._subscriptions = [o]) : c.push(o), o; + } + remove(r) { + const o = this._subscriptions; + if (o) { + const i = o.indexOf(r); + -1 !== i && o.splice(i, 1); + } + } + } + var h; + function u(h) { + return h.reduce((r, o) => r.concat(o instanceof s ? o.errors : o), []); + } + d.EMPTY = (((h = new d()).closed = !0), h); + }, + 2830: (ye, j, p) => { + "use strict"; + p.d(j, { v: () => f }); + let n = !1; + const f = { + Promise: void 0, + set useDeprecatedSynchronousErrorHandling(_) { + if (_) { + const m = new Error(); + console.warn( + "DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n" + + m.stack + ); + } else + n && + console.log( + "RxJS: Back to a better error behavior. Thank you. <3" + ); + n = _; + }, + get useDeprecatedSynchronousErrorHandling() { + return n; + }, + }; + }, + 1177: (ye, j, p) => { + "use strict"; + p.d(j, { IY: () => m, Ds: () => d, ft: () => h }); + var n = p(3489), + f = p(6498), + _ = p(9249); + class m extends n.L { + constructor(o) { + super(), (this.parent = o); + } + _next(o) { + this.parent.notifyNext(o); + } + _error(o) { + this.parent.notifyError(o), this.unsubscribe(); + } + _complete() { + this.parent.notifyComplete(), this.unsubscribe(); + } + } + class d extends n.L { + notifyNext(o) { + this.destination.next(o); + } + notifyError(o) { + this.destination.error(o); + } + notifyComplete() { + this.destination.complete(); + } + } + function h(r, o) { + if (o.closed) return; + if (r instanceof f.y) return r.subscribe(o); + let i; + try { + i = (0, _.s)(r)(o); + } catch (c) { + o.error(c); + } + return i; + } + }, + 1762: (ye, j, p) => { + "use strict"; + p.d(j, { c: () => s, N: () => d }); + var n = p(8929), + f = p(6498), + _ = p(2654), + m = p(4327); + class s extends f.y { + constructor(i, c) { + super(), + (this.source = i), + (this.subjectFactory = c), + (this._refCount = 0), + (this._isComplete = !1); + } + _subscribe(i) { + return this.getSubject().subscribe(i); + } + getSubject() { + const i = this._subject; + return ( + (!i || i.isStopped) && (this._subject = this.subjectFactory()), + this._subject + ); + } + connect() { + let i = this._connection; + return ( + i || + ((this._isComplete = !1), + (i = this._connection = new _.w()), + i.add(this.source.subscribe(new u(this.getSubject(), this))), + i.closed && ((this._connection = null), (i = _.w.EMPTY))), + i + ); + } + refCount() { + return (0, m.x)()(this); + } + } + const d = (() => { + const o = s.prototype; + return { + operator: { value: null }, + _refCount: { value: 0, writable: !0 }, + _subject: { value: null, writable: !0 }, + _connection: { value: null, writable: !0 }, + _subscribe: { value: o._subscribe }, + _isComplete: { value: o._isComplete, writable: !0 }, + getSubject: { value: o.getSubject }, + connect: { value: o.connect }, + refCount: { value: o.refCount }, + }; + })(); + class u extends n.Yc { + constructor(i, c) { + super(i), (this.connectable = c); + } + _error(i) { + this._unsubscribe(), super._error(i); + } + _complete() { + (this.connectable._isComplete = !0), + this._unsubscribe(), + super._complete(); + } + _unsubscribe() { + const i = this.connectable; + if (i) { + this.connectable = null; + const c = i._connection; + (i._refCount = 0), + (i._subject = null), + (i._connection = null), + c && c.unsubscribe(); + } + } + } + }, + 6053: (ye, j, p) => { + "use strict"; + p.d(j, { aj: () => u, Ms: () => h }); + var n = p(2866), + f = p(6688), + _ = p(826), + m = p(448), + s = p(3009); + const d = {}; + function u(...o) { + let i, c; + return ( + (0, n.K)(o[o.length - 1]) && (c = o.pop()), + "function" == typeof o[o.length - 1] && (i = o.pop()), + 1 === o.length && (0, f.k)(o[0]) && (o = o[0]), + (0, s.n)(o, c).lift(new h(i)) + ); + } + class h { + constructor(i) { + this.resultSelector = i; + } + call(i, c) { + return c.subscribe(new r(i, this.resultSelector)); + } + } + class r extends _.L { + constructor(i, c) { + super(i), + (this.resultSelector = c), + (this.active = 0), + (this.values = []), + (this.observables = []); + } + _next(i) { + this.values.push(d), this.observables.push(i); + } + _complete() { + const i = this.observables, + c = i.length; + if (0 === c) this.destination.complete(); + else { + (this.active = c), (this.toRespond = c); + for (let l = 0; l < c; l++) + this.add((0, m.D)(this, i[l], void 0, l)); + } + } + notifyComplete(i) { + 0 == (this.active -= 1) && this.destination.complete(); + } + notifyNext(i, c, l) { + const g = this.values, + y = this.toRespond + ? g[l] === d + ? --this.toRespond + : this.toRespond + : 0; + (g[l] = c), + 0 === y && + (this.resultSelector + ? this._tryResultSelector(g) + : this.destination.next(g.slice())); + } + _tryResultSelector(i) { + let c; + try { + c = this.resultSelector.apply(this, i); + } catch (l) { + return void this.destination.error(l); + } + this.destination.next(c); + } + } + }, + 1961: (ye, j, p) => { + "use strict"; + p.d(j, { z: () => _ }); + var n = p(1086), + f = p(534); + function _(...m) { + return (0, f.u)()((0, n.of)(...m)); + } + }, + 8514: (ye, j, p) => { + "use strict"; + p.d(j, { P: () => m }); + var n = p(6498), + f = p(5254), + _ = p(8896); + function m(s) { + return new n.y((d) => { + let u; + try { + u = s(); + } catch (r) { + return void d.error(r); + } + return (u ? (0, f.D)(u) : (0, _.c)()).subscribe(d); + }); + } + }, + 8896: (ye, j, p) => { + "use strict"; + p.d(j, { E: () => f, c: () => _ }); + var n = p(6498); + const f = new n.y((s) => s.complete()); + function _(s) { + return s + ? (function (s) { + return new n.y((d) => s.schedule(() => d.complete())); + })(s) + : f; + } + }, + 567: (ye, j, p) => { + "use strict"; + p.d(j, { D: () => d }); + var n = p(6498), + f = p(6688), + _ = p(4850), + m = p(7830), + s = p(5254); + function d(...h) { + if (1 === h.length) { + const r = h[0]; + if ((0, f.k)(r)) return u(r, null); + if ((0, m.K)(r) && Object.getPrototypeOf(r) === Object.prototype) { + const o = Object.keys(r); + return u( + o.map((i) => r[i]), + o + ); + } + } + if ("function" == typeof h[h.length - 1]) { + const r = h.pop(); + return u( + (h = 1 === h.length && (0, f.k)(h[0]) ? h[0] : h), + null + ).pipe((0, _.U)((o) => r(...o))); + } + return u(h, null); + } + function u(h, r) { + return new n.y((o) => { + const i = h.length; + if (0 === i) return void o.complete(); + const c = new Array(i); + let l = 0, + g = 0; + for (let b = 0; b < i; b++) { + const y = (0, s.D)(h[b]); + let x = !1; + o.add( + y.subscribe({ + next: (T) => { + x || ((x = !0), g++), (c[b] = T); + }, + error: (T) => o.error(T), + complete: () => { + l++, + (l === i || !x) && + (g === i && + o.next( + r ? r.reduce((T, O, M) => ((T[O] = c[M]), T), {}) : c + ), + o.complete()); + }, + }) + ); + } + }); + } + }, + 5254: (ye, j, p) => { + "use strict"; + p.d(j, { D: () => b }); + var n = p(6498), + f = p(9249), + _ = p(2654), + m = p(3821), + u = p(6454), + h = p(5430), + i = p(8955), + c = p(8515); + function b(y, x) { + return x + ? (function (y, x) { + if (null != y) { + if ( + (function (y) { + return y && "function" == typeof y[m.L]; + })(y) + ) + return (function (y, x) { + return new n.y((T) => { + const O = new _.w(); + return ( + O.add( + x.schedule(() => { + const M = y[m.L](); + O.add( + M.subscribe({ + next(A) { + O.add(x.schedule(() => T.next(A))); + }, + error(A) { + O.add(x.schedule(() => T.error(A))); + }, + complete() { + O.add(x.schedule(() => T.complete())); + }, + }) + ); + }) + ), + O + ); + }); + })(y, x); + if ((0, i.t)(y)) + return (function (y, x) { + return new n.y((T) => { + const O = new _.w(); + return ( + O.add( + x.schedule(() => + y.then( + (M) => { + O.add( + x.schedule(() => { + T.next(M), + O.add(x.schedule(() => T.complete())); + }) + ); + }, + (M) => { + O.add(x.schedule(() => T.error(M))); + } + ) + ) + ), + O + ); + }); + })(y, x); + if ((0, c.z)(y)) return (0, u.r)(y, x); + if ( + (function (y) { + return y && "function" == typeof y[h.hZ]; + })(y) || + "string" == typeof y + ) + return (function (y, x) { + if (!y) throw new Error("Iterable cannot be null"); + return new n.y((T) => { + const O = new _.w(); + let M; + return ( + O.add(() => { + M && "function" == typeof M.return && M.return(); + }), + O.add( + x.schedule(() => { + (M = y[h.hZ]()), + O.add( + x.schedule(function () { + if (T.closed) return; + let A, S; + try { + const w = M.next(); + (A = w.value), (S = w.done); + } catch (w) { + return void T.error(w); + } + S + ? T.complete() + : (T.next(A), this.schedule()); + }) + ); + }) + ), + O + ); + }); + })(y, x); + } + throw new TypeError( + ((null !== y && typeof y) || y) + " is not observable" + ); + })(y, x) + : y instanceof n.y + ? y + : new n.y((0, f.s)(y)); + } + }, + 3009: (ye, j, p) => { + "use strict"; + p.d(j, { n: () => m }); + var n = p(6498), + f = p(3650), + _ = p(6454); + function m(s, d) { + return d ? (0, _.r)(s, d) : new n.y((0, f.V)(s)); + } + }, + 3753: (ye, j, p) => { + "use strict"; + p.d(j, { R: () => d }); + var n = p(6498), + f = p(6688), + _ = p(7043), + m = p(4850); + function d(i, c, l, g) { + return ( + (0, _.m)(l) && ((g = l), (l = void 0)), + g + ? d(i, c, l).pipe((0, m.U)((b) => ((0, f.k)(b) ? g(...b) : g(b)))) + : new n.y((b) => { + u( + i, + c, + function (x) { + b.next( + arguments.length > 1 + ? Array.prototype.slice.call(arguments) + : x + ); + }, + b, + l + ); + }) + ); + } + function u(i, c, l, g, b) { + let y; + if ( + (function (i) { + return ( + i && + "function" == typeof i.addEventListener && + "function" == typeof i.removeEventListener + ); + })(i) + ) { + const x = i; + i.addEventListener(c, l, b), + (y = () => x.removeEventListener(c, l, b)); + } else if ( + (function (i) { + return i && "function" == typeof i.on && "function" == typeof i.off; + })(i) + ) { + const x = i; + i.on(c, l), (y = () => x.off(c, l)); + } else if ( + (function (i) { + return ( + i && + "function" == typeof i.addListener && + "function" == typeof i.removeListener + ); + })(i) + ) { + const x = i; + i.addListener(c, l), (y = () => x.removeListener(c, l)); + } else { + if (!i || !i.length) throw new TypeError("Invalid event target"); + for (let x = 0, T = i.length; x < T; x++) u(i[x], c, l, g, b); + } + g.add(y); + } + }, + 6787: (ye, j, p) => { + "use strict"; + p.d(j, { T: () => s }); + var n = p(6498), + f = p(2866), + _ = p(9146), + m = p(3009); + function s(...d) { + let u = Number.POSITIVE_INFINITY, + h = null, + r = d[d.length - 1]; + return ( + (0, f.K)(r) + ? ((h = d.pop()), + d.length > 1 && + "number" == typeof d[d.length - 1] && + (u = d.pop())) + : "number" == typeof r && (u = d.pop()), + null === h && 1 === d.length && d[0] instanceof n.y + ? d[0] + : (0, _.J)(u)((0, m.n)(d, h)) + ); + } + }, + 1086: (ye, j, p) => { + "use strict"; + p.d(j, { of: () => m }); + var n = p(2866), + f = p(3009), + _ = p(6454); + function m(...s) { + let d = s[s.length - 1]; + return (0, n.K)(d) ? (s.pop(), (0, _.r)(s, d)) : (0, f.n)(s); + } + }, + 1946: (ye, j, p) => { + "use strict"; + p.d(j, { S3: () => s }); + var n = p(6688), + f = p(3009), + _ = p(826), + m = p(448); + function s(...h) { + if (1 === h.length) { + if (!(0, n.k)(h[0])) return h[0]; + h = h[0]; + } + return (0, f.n)(h, void 0).lift(new d()); + } + class d { + call(r, o) { + return o.subscribe(new u(r)); + } + } + class u extends _.L { + constructor(r) { + super(r), + (this.hasFirst = !1), + (this.observables = []), + (this.subscriptions = []); + } + _next(r) { + this.observables.push(r); + } + _complete() { + const r = this.observables, + o = r.length; + if (0 === o) this.destination.complete(); + else { + for (let i = 0; i < o && !this.hasFirst; i++) { + const l = (0, m.D)(this, r[i], void 0, i); + this.subscriptions && this.subscriptions.push(l), this.add(l); + } + this.observables = null; + } + } + notifyNext(r, o, i) { + if (!this.hasFirst) { + this.hasFirst = !0; + for (let c = 0; c < this.subscriptions.length; c++) + if (c !== i) { + let l = this.subscriptions[c]; + l.unsubscribe(), this.remove(l); + } + this.subscriptions = null; + } + this.destination.next(o); + } + } + }, + 1737: (ye, j, p) => { + "use strict"; + p.d(j, { _: () => f }); + var n = p(6498); + function f(m, s) { + return new n.y( + s + ? (d) => s.schedule(_, 0, { error: m, subscriber: d }) + : (d) => d.error(m) + ); + } + function _({ error: m, subscriber: s }) { + s.error(m); + } + }, + 8723: (ye, j, p) => { + "use strict"; + p.d(j, { H: () => s }); + var n = p(6498), + f = p(353), + _ = p(4241), + m = p(2866); + function s(u = 0, h, r) { + let o = -1; + return ( + (0, _.k)(h) + ? (o = Number(h) < 1 ? 1 : Number(h)) + : (0, m.K)(h) && (r = h), + (0, m.K)(r) || (r = f.P), + new n.y((i) => { + const c = (0, _.k)(u) ? u : +u - r.now(); + return r.schedule(d, c, { index: 0, period: o, subscriber: i }); + }) + ); + } + function d(u) { + const { index: h, period: r, subscriber: o } = u; + if ((o.next(h), !o.closed)) { + if (-1 === r) return o.complete(); + (u.index = h + 1), this.schedule(u, r); + } + } + }, + 1746: (ye, j, p) => { + "use strict"; + p.d(j, { $R: () => d, mx: () => u }); + var n = p(3009), + f = p(6688), + _ = p(3489), + m = p(5430), + s = p(1177); + function d(...c) { + const l = c[c.length - 1]; + return ( + "function" == typeof l && c.pop(), (0, n.n)(c, void 0).lift(new u(l)) + ); + } + class u { + constructor(l) { + this.resultSelector = l; + } + call(l, g) { + return g.subscribe(new h(l, this.resultSelector)); + } + } + class h extends _.L { + constructor(l, g, b = Object.create(null)) { + super(l), + (this.resultSelector = g), + (this.iterators = []), + (this.active = 0), + (this.resultSelector = "function" == typeof g ? g : void 0); + } + _next(l) { + const g = this.iterators; + (0, f.k)(l) + ? g.push(new o(l)) + : g.push( + "function" == typeof l[m.hZ] + ? new r(l[m.hZ]()) + : new i(this.destination, this, l) + ); + } + _complete() { + const l = this.iterators, + g = l.length; + if ((this.unsubscribe(), 0 !== g)) { + this.active = g; + for (let b = 0; b < g; b++) { + let y = l[b]; + y.stillUnsubscribed + ? this.destination.add(y.subscribe()) + : this.active--; + } + } else this.destination.complete(); + } + notifyInactive() { + this.active--, 0 === this.active && this.destination.complete(); + } + checkIterators() { + const l = this.iterators, + g = l.length, + b = this.destination; + for (let T = 0; T < g; T++) { + let O = l[T]; + if ("function" == typeof O.hasValue && !O.hasValue()) return; + } + let y = !1; + const x = []; + for (let T = 0; T < g; T++) { + let O = l[T], + M = O.next(); + if ((O.hasCompleted() && (y = !0), M.done)) + return void b.complete(); + x.push(M.value); + } + this.resultSelector ? this._tryresultSelector(x) : b.next(x), + y && b.complete(); + } + _tryresultSelector(l) { + let g; + try { + g = this.resultSelector.apply(this, l); + } catch (b) { + return void this.destination.error(b); + } + this.destination.next(g); + } + } + class r { + constructor(l) { + (this.iterator = l), (this.nextResult = l.next()); + } + hasValue() { + return !0; + } + next() { + const l = this.nextResult; + return (this.nextResult = this.iterator.next()), l; + } + hasCompleted() { + const l = this.nextResult; + return Boolean(l && l.done); + } + } + class o { + constructor(l) { + (this.array = l), + (this.index = 0), + (this.length = 0), + (this.length = l.length); + } + [m.hZ]() { + return this; + } + next(l) { + const g = this.index++; + return g < this.length + ? { value: this.array[g], done: !1 } + : { value: null, done: !0 }; + } + hasValue() { + return this.array.length > this.index; + } + hasCompleted() { + return this.array.length === this.index; + } + } + class i extends s.Ds { + constructor(l, g, b) { + super(l), + (this.parent = g), + (this.observable = b), + (this.stillUnsubscribed = !0), + (this.buffer = []), + (this.isComplete = !1); + } + [m.hZ]() { + return this; + } + next() { + const l = this.buffer; + return 0 === l.length && this.isComplete + ? { value: null, done: !0 } + : { value: l.shift(), done: !1 }; + } + hasValue() { + return this.buffer.length > 0; + } + hasCompleted() { + return 0 === this.buffer.length && this.isComplete; + } + notifyComplete() { + this.buffer.length > 0 + ? ((this.isComplete = !0), this.parent.notifyInactive()) + : this.destination.complete(); + } + notifyNext(l) { + this.buffer.push(l), this.parent.checkIterators(); + } + subscribe() { + return (0, s.ft)(this.observable, new s.IY(this)); + } + } + }, + 384: (ye, j, p) => { + "use strict"; + p.d(j, { U: () => f }); + var n = p(1177); + function f(s) { + return function (u) { + return u.lift(new _(s)); + }; + } + class _ { + constructor(d) { + this.durationSelector = d; + } + call(d, u) { + return u.subscribe(new m(d, this.durationSelector)); + } + } + class m extends n.Ds { + constructor(d, u) { + super(d), (this.durationSelector = u), (this.hasValue = !1); + } + _next(d) { + if (((this.value = d), (this.hasValue = !0), !this.throttled)) { + let u; + try { + const { durationSelector: r } = this; + u = r(d); + } catch (r) { + return this.destination.error(r); + } + const h = (0, n.ft)(u, new n.IY(this)); + !h || h.closed + ? this.clearThrottle() + : this.add((this.throttled = h)); + } + } + clearThrottle() { + const { value: d, hasValue: u, throttled: h } = this; + h && (this.remove(h), (this.throttled = void 0), h.unsubscribe()), + u && + ((this.value = void 0), + (this.hasValue = !1), + this.destination.next(d)); + } + notifyNext() { + this.clearThrottle(); + } + notifyComplete() { + this.clearThrottle(); + } + } + }, + 7568: (ye, j, p) => { + "use strict"; + p.d(j, { e: () => m }); + var n = p(353), + f = p(384), + _ = p(8723); + function m(s, d = n.P) { + return (0, f.U)(() => (0, _.H)(s, d)); + } + }, + 7221: (ye, j, p) => { + "use strict"; + p.d(j, { K: () => f }); + var n = p(1177); + function f(s) { + return function (u) { + const h = new _(s), + r = u.lift(h); + return (h.caught = r); + }; + } + class _ { + constructor(d) { + this.selector = d; + } + call(d, u) { + return u.subscribe(new m(d, this.selector, this.caught)); + } + } + class m extends n.Ds { + constructor(d, u, h) { + super(d), (this.selector = u), (this.caught = h); + } + error(d) { + if (!this.isStopped) { + let u; + try { + u = this.selector(d, this.caught); + } catch (o) { + return void super.error(o); + } + this._unsubscribeAndRecycle(); + const h = new n.IY(this); + this.add(h); + const r = (0, n.ft)(u, h); + r !== h && this.add(r); + } + } + } + }, + 534: (ye, j, p) => { + "use strict"; + p.d(j, { u: () => f }); + var n = p(9146); + function f() { + return (0, n.J)(1); + } + }, + 1406: (ye, j, p) => { + "use strict"; + p.d(j, { b: () => f }); + var n = p(1709); + function f(_, m) { + return (0, n.zg)(_, m, 1); + } + }, + 13: (ye, j, p) => { + "use strict"; + p.d(j, { b: () => _ }); + var n = p(3489), + f = p(353); + function _(u, h = f.P) { + return (r) => r.lift(new m(u, h)); + } + class m { + constructor(h, r) { + (this.dueTime = h), (this.scheduler = r); + } + call(h, r) { + return r.subscribe(new s(h, this.dueTime, this.scheduler)); + } + } + class s extends n.L { + constructor(h, r, o) { + super(h), + (this.dueTime = r), + (this.scheduler = o), + (this.debouncedSubscription = null), + (this.lastValue = null), + (this.hasValue = !1); + } + _next(h) { + this.clearDebounce(), + (this.lastValue = h), + (this.hasValue = !0), + this.add( + (this.debouncedSubscription = this.scheduler.schedule( + d, + this.dueTime, + this + )) + ); + } + _complete() { + this.debouncedNext(), this.destination.complete(); + } + debouncedNext() { + if ((this.clearDebounce(), this.hasValue)) { + const { lastValue: h } = this; + (this.lastValue = null), + (this.hasValue = !1), + this.destination.next(h); + } + } + clearDebounce() { + const h = this.debouncedSubscription; + null !== h && + (this.remove(h), + h.unsubscribe(), + (this.debouncedSubscription = null)); + } + } + function d(u) { + u.debouncedNext(); + } + }, + 7314: (ye, j, p) => { + "use strict"; + p.d(j, { d: () => f }); + var n = p(3489); + function f(s = null) { + return (d) => d.lift(new _(s)); + } + class _ { + constructor(d) { + this.defaultValue = d; + } + call(d, u) { + return u.subscribe(new m(d, this.defaultValue)); + } + } + class m extends n.L { + constructor(d, u) { + super(d), (this.defaultValue = u), (this.isEmpty = !0); + } + _next(d) { + (this.isEmpty = !1), this.destination.next(d); + } + _complete() { + this.isEmpty && this.destination.next(this.defaultValue), + this.destination.complete(); + } + } + }, + 943: (ye, j, p) => { + "use strict"; + p.d(j, { g: () => s }); + var n = p(353), + f = p(2697), + _ = p(3489), + m = p(9312); + function s(r, o = n.P) { + const c = (0, f.J)(r) ? +r - o.now() : Math.abs(r); + return (l) => l.lift(new d(c, o)); + } + class d { + constructor(o, i) { + (this.delay = o), (this.scheduler = i); + } + call(o, i) { + return i.subscribe(new u(o, this.delay, this.scheduler)); + } + } + class u extends _.L { + constructor(o, i, c) { + super(o), + (this.delay = i), + (this.scheduler = c), + (this.queue = []), + (this.active = !1), + (this.errored = !1); + } + static dispatch(o) { + const i = o.source, + c = i.queue, + l = o.scheduler, + g = o.destination; + for (; c.length > 0 && c[0].time - l.now() <= 0; ) + c.shift().notification.observe(g); + if (c.length > 0) { + const b = Math.max(0, c[0].time - l.now()); + this.schedule(o, b); + } else this.unsubscribe(), (i.active = !1); + } + _schedule(o) { + (this.active = !0), + this.destination.add( + o.schedule(u.dispatch, this.delay, { + source: this, + destination: this.destination, + scheduler: o, + }) + ); + } + scheduleNotification(o) { + if (!0 === this.errored) return; + const i = this.scheduler, + c = new h(i.now() + this.delay, o); + this.queue.push(c), !1 === this.active && this._schedule(i); + } + _next(o) { + this.scheduleNotification(m.P.createNext(o)); + } + _error(o) { + (this.errored = !0), + (this.queue = []), + this.destination.error(o), + this.unsubscribe(); + } + _complete() { + this.scheduleNotification(m.P.createComplete()), this.unsubscribe(); + } + } + class h { + constructor(o, i) { + (this.time = o), (this.notification = i); + } + } + }, + 5778: (ye, j, p) => { + "use strict"; + p.d(j, { x: () => f }); + var n = p(3489); + function f(s, d) { + return (u) => u.lift(new _(s, d)); + } + class _ { + constructor(d, u) { + (this.compare = d), (this.keySelector = u); + } + call(d, u) { + return u.subscribe(new m(d, this.compare, this.keySelector)); + } + } + class m extends n.L { + constructor(d, u, h) { + super(d), + (this.keySelector = h), + (this.hasKey = !1), + "function" == typeof u && (this.compare = u); + } + compare(d, u) { + return d === u; + } + _next(d) { + let u; + try { + const { keySelector: r } = this; + u = r ? r(d) : d; + } catch (r) { + return this.destination.error(r); + } + let h = !1; + if (this.hasKey) + try { + const { compare: r } = this; + h = r(this.key, u); + } catch (r) { + return this.destination.error(r); + } + else this.hasKey = !0; + h || ((this.key = u), this.destination.next(d)); + } + } + }, + 2198: (ye, j, p) => { + "use strict"; + p.d(j, { h: () => f }); + var n = p(3489); + function f(s, d) { + return function (h) { + return h.lift(new _(s, d)); + }; + } + class _ { + constructor(d, u) { + (this.predicate = d), (this.thisArg = u); + } + call(d, u) { + return u.subscribe(new m(d, this.predicate, this.thisArg)); + } + } + class m extends n.L { + constructor(d, u, h) { + super(d), (this.predicate = u), (this.thisArg = h), (this.count = 0); + } + _next(d) { + let u; + try { + u = this.predicate.call(this.thisArg, d, this.count++); + } catch (h) { + return void this.destination.error(h); + } + u && this.destination.next(d); + } + } + }, + 537: (ye, j, p) => { + "use strict"; + p.d(j, { x: () => _ }); + var n = p(3489), + f = p(2654); + function _(d) { + return (u) => u.lift(new m(d)); + } + class m { + constructor(u) { + this.callback = u; + } + call(u, h) { + return h.subscribe(new s(u, this.callback)); + } + } + class s extends n.L { + constructor(u, h) { + super(u), this.add(new f.w(h)); + } + } + }, + 7224: (ye, j, p) => { + "use strict"; + p.d(j, { P: () => u }); + var n = p(4450), + f = p(2198), + _ = p(2986), + m = p(7314), + s = p(4907), + d = p(5379); + function u(h, r) { + const o = arguments.length >= 2; + return (i) => + i.pipe( + h ? (0, f.h)((c, l) => h(c, l, i)) : d.y, + (0, _.q)(1), + o ? (0, m.d)(r) : (0, s.T)(() => new n.K()) + ); + } + }, + 8127: (ye, j, p) => { + "use strict"; + p.d(j, { Z: () => u }); + var n = p(4450), + f = p(2198), + _ = p(2821), + m = p(4907), + s = p(7314), + d = p(5379); + function u(h, r) { + const o = arguments.length >= 2; + return (i) => + i.pipe( + h ? (0, f.h)((c, l) => h(c, l, i)) : d.y, + (0, _.h)(1), + o ? (0, s.d)(r) : (0, m.T)(() => new n.K()) + ); + } + }, + 4850: (ye, j, p) => { + "use strict"; + p.d(j, { U: () => f }); + var n = p(3489); + function f(s, d) { + return function (h) { + if ("function" != typeof s) + throw new TypeError( + "argument is not a function. Are you looking for `mapTo()`?" + ); + return h.lift(new _(s, d)); + }; + } + class _ { + constructor(d, u) { + (this.project = d), (this.thisArg = u); + } + call(d, u) { + return u.subscribe(new m(d, this.project, this.thisArg)); + } + } + class m extends n.L { + constructor(d, u, h) { + super(d), + (this.project = u), + (this.count = 0), + (this.thisArg = h || this); + } + _next(d) { + let u; + try { + u = this.project.call(this.thisArg, d, this.count++); + } catch (h) { + return void this.destination.error(h); + } + this.destination.next(u); + } + } + }, + 9146: (ye, j, p) => { + "use strict"; + p.d(j, { J: () => _ }); + var n = p(1709), + f = p(5379); + function _(m = Number.POSITIVE_INFINITY) { + return (0, n.zg)(f.y, m); + } + }, + 1709: (ye, j, p) => { + "use strict"; + p.d(j, { zg: () => m, VS: () => u }); + var n = p(4850), + f = p(5254), + _ = p(1177); + function m(h, r, o = Number.POSITIVE_INFINITY) { + return "function" == typeof r + ? (i) => + i.pipe( + m( + (c, l) => + (0, f.D)(h(c, l)).pipe((0, n.U)((g, b) => r(c, g, l, b))), + o + ) + ) + : ("number" == typeof r && (o = r), (i) => i.lift(new s(h, o))); + } + class s { + constructor(r, o = Number.POSITIVE_INFINITY) { + (this.project = r), (this.concurrent = o); + } + call(r, o) { + return o.subscribe(new d(r, this.project, this.concurrent)); + } + } + class d extends _.Ds { + constructor(r, o, i = Number.POSITIVE_INFINITY) { + super(r), + (this.project = o), + (this.concurrent = i), + (this.hasCompleted = !1), + (this.buffer = []), + (this.active = 0), + (this.index = 0); + } + _next(r) { + this.active < this.concurrent + ? this._tryNext(r) + : this.buffer.push(r); + } + _tryNext(r) { + let o; + const i = this.index++; + try { + o = this.project(r, i); + } catch (c) { + return void this.destination.error(c); + } + this.active++, this._innerSub(o); + } + _innerSub(r) { + const o = new _.IY(this), + i = this.destination; + i.add(o); + const c = (0, _.ft)(r, o); + c !== o && i.add(c); + } + _complete() { + (this.hasCompleted = !0), + 0 === this.active && + 0 === this.buffer.length && + this.destination.complete(), + this.unsubscribe(); + } + notifyNext(r) { + this.destination.next(r); + } + notifyComplete() { + const r = this.buffer; + this.active--, + r.length > 0 + ? this._next(r.shift()) + : 0 === this.active && + this.hasCompleted && + this.destination.complete(); + } + } + const u = m; + }, + 2536: (ye, j, p) => { + "use strict"; + p.d(j, { O: () => f }); + var n = p(1762); + function f(m, s) { + return function (u) { + let h; + if ( + ((h = + "function" == typeof m + ? m + : function () { + return m; + }), + "function" == typeof s) + ) + return u.lift(new _(h, s)); + const r = Object.create(u, n.N); + return (r.source = u), (r.subjectFactory = h), r; + }; + } + class _ { + constructor(s, d) { + (this.subjectFactory = s), (this.selector = d); + } + call(s, d) { + const { selector: u } = this, + h = this.subjectFactory(), + r = u(h).subscribe(s); + return r.add(d.subscribe(h)), r; + } + } + }, + 8077: (ye, j, p) => { + "use strict"; + p.d(j, { u: () => s }); + var n = p(2014), + f = p(2821), + _ = p(7314), + m = p(4843); + function s(d, u) { + return arguments.length >= 2 + ? function (r) { + return (0, m.z)((0, n.R)(d, u), (0, f.h)(1), (0, _.d)(u))(r); + } + : function (r) { + return (0, m.z)( + (0, n.R)((o, i, c) => d(o, i, c + 1)), + (0, f.h)(1) + )(r); + }; + } + }, + 4327: (ye, j, p) => { + "use strict"; + p.d(j, { x: () => f }); + var n = p(3489); + function f() { + return function (d) { + return d.lift(new _(d)); + }; + } + class _ { + constructor(d) { + this.connectable = d; + } + call(d, u) { + const { connectable: h } = this; + h._refCount++; + const r = new m(d, h), + o = u.subscribe(r); + return r.closed || (r.connection = h.connect()), o; + } + } + class m extends n.L { + constructor(d, u) { + super(d), (this.connectable = u); + } + _unsubscribe() { + const { connectable: d } = this; + if (!d) return void (this.connection = null); + this.connectable = null; + const u = d._refCount; + if (u <= 0) return void (this.connection = null); + if (((d._refCount = u - 1), u > 1)) + return void (this.connection = null); + const { connection: h } = this, + r = d._connection; + (this.connection = null), r && (!h || r === h) && r.unsubscribe(); + } + } + }, + 2014: (ye, j, p) => { + "use strict"; + p.d(j, { R: () => f }); + var n = p(3489); + function f(s, d) { + let u = !1; + return ( + arguments.length >= 2 && (u = !0), + function (r) { + return r.lift(new _(s, d, u)); + } + ); + } + class _ { + constructor(d, u, h = !1) { + (this.accumulator = d), (this.seed = u), (this.hasSeed = h); + } + call(d, u) { + return u.subscribe( + new m(d, this.accumulator, this.seed, this.hasSeed) + ); + } + } + class m extends n.L { + constructor(d, u, h, r) { + super(d), + (this.accumulator = u), + (this._seed = h), + (this.hasSeed = r), + (this.index = 0); + } + get seed() { + return this._seed; + } + set seed(d) { + (this.hasSeed = !0), (this._seed = d); + } + _next(d) { + if (this.hasSeed) return this._tryNext(d); + (this.seed = d), this.destination.next(d); + } + _tryNext(d) { + const u = this.index++; + let h; + try { + h = this.accumulator(this.seed, d, u); + } catch (r) { + this.destination.error(r); + } + (this.seed = h), this.destination.next(h); + } + } + }, + 8117: (ye, j, p) => { + "use strict"; + p.d(j, { B: () => s }); + var n = p(2536), + f = p(4327), + _ = p(8929); + function m() { + return new _.xQ(); + } + function s() { + return (d) => (0, f.x)()((0, n.O)(m)(d)); + } + }, + 1307: (ye, j, p) => { + "use strict"; + p.d(j, { T: () => f }); + var n = p(3489); + function f(s) { + return (d) => d.lift(new _(s)); + } + class _ { + constructor(d) { + this.total = d; + } + call(d, u) { + return u.subscribe(new m(d, this.total)); + } + } + class m extends n.L { + constructor(d, u) { + super(d), (this.total = u), (this.count = 0); + } + _next(d) { + ++this.count > this.total && this.destination.next(d); + } + } + }, + 1059: (ye, j, p) => { + "use strict"; + p.d(j, { O: () => _ }); + var n = p(1961), + f = p(2866); + function _(...m) { + const s = m[m.length - 1]; + return (0, f.K)(s) + ? (m.pop(), (d) => (0, n.z)(m, d, s)) + : (d) => (0, n.z)(m, d); + } + }, + 7545: (ye, j, p) => { + "use strict"; + p.d(j, { w: () => m }); + var n = p(4850), + f = p(5254), + _ = p(1177); + function m(u, h) { + return "function" == typeof h + ? (r) => + r.pipe( + m((o, i) => + (0, f.D)(u(o, i)).pipe((0, n.U)((c, l) => h(o, c, i, l))) + ) + ) + : (r) => r.lift(new s(u)); + } + class s { + constructor(h) { + this.project = h; + } + call(h, r) { + return r.subscribe(new d(h, this.project)); + } + } + class d extends _.Ds { + constructor(h, r) { + super(h), (this.project = r), (this.index = 0); + } + _next(h) { + let r; + const o = this.index++; + try { + r = this.project(h, o); + } catch (i) { + return void this.destination.error(i); + } + this._innerSub(r); + } + _innerSub(h) { + const r = this.innerSubscription; + r && r.unsubscribe(); + const o = new _.IY(this), + i = this.destination; + i.add(o), + (this.innerSubscription = (0, _.ft)(h, o)), + this.innerSubscription !== o && i.add(this.innerSubscription); + } + _complete() { + const { innerSubscription: h } = this; + (!h || h.closed) && super._complete(), this.unsubscribe(); + } + _unsubscribe() { + this.innerSubscription = void 0; + } + notifyComplete() { + (this.innerSubscription = void 0), + this.isStopped && super._complete(); + } + notifyNext(h) { + this.destination.next(h); + } + } + }, + 2986: (ye, j, p) => { + "use strict"; + p.d(j, { q: () => m }); + var n = p(3489), + f = p(4231), + _ = p(8896); + function m(u) { + return (h) => (0 === u ? (0, _.c)() : h.lift(new s(u))); + } + class s { + constructor(h) { + if (((this.total = h), this.total < 0)) throw new f.W(); + } + call(h, r) { + return r.subscribe(new d(h, this.total)); + } + } + class d extends n.L { + constructor(h, r) { + super(h), (this.total = r), (this.count = 0); + } + _next(h) { + const r = this.total, + o = ++this.count; + o <= r && + (this.destination.next(h), + o === r && (this.destination.complete(), this.unsubscribe())); + } + } + }, + 2821: (ye, j, p) => { + "use strict"; + p.d(j, { h: () => m }); + var n = p(3489), + f = p(4231), + _ = p(8896); + function m(u) { + return function (r) { + return 0 === u ? (0, _.c)() : r.lift(new s(u)); + }; + } + class s { + constructor(h) { + if (((this.total = h), this.total < 0)) throw new f.W(); + } + call(h, r) { + return r.subscribe(new d(h, this.total)); + } + } + class d extends n.L { + constructor(h, r) { + super(h), + (this.total = r), + (this.ring = new Array()), + (this.count = 0); + } + _next(h) { + const r = this.ring, + o = this.total, + i = this.count++; + r.length < o ? r.push(h) : (r[i % o] = h); + } + _complete() { + const h = this.destination; + let r = this.count; + if (r > 0) { + const o = this.count >= this.total ? this.total : this.count, + i = this.ring; + for (let c = 0; c < o; c++) { + const l = r++ % o; + h.next(i[l]); + } + } + h.complete(); + } + } + }, + 7625: (ye, j, p) => { + "use strict"; + p.d(j, { R: () => f }); + var n = p(1177); + function f(s) { + return (d) => d.lift(new _(s)); + } + class _ { + constructor(d) { + this.notifier = d; + } + call(d, u) { + const h = new m(d), + r = (0, n.ft)(this.notifier, new n.IY(h)); + return r && !h.seenValue ? (h.add(r), u.subscribe(h)) : h; + } + } + class m extends n.Ds { + constructor(d) { + super(d), (this.seenValue = !1); + } + notifyNext() { + (this.seenValue = !0), this.complete(); + } + notifyComplete() {} + } + }, + 4290: (ye, j, p) => { + "use strict"; + p.d(j, { o: () => f }); + var n = p(3489); + function f(s, d = !1) { + return (u) => u.lift(new _(s, d)); + } + class _ { + constructor(d, u) { + (this.predicate = d), (this.inclusive = u); + } + call(d, u) { + return u.subscribe(new m(d, this.predicate, this.inclusive)); + } + } + class m extends n.L { + constructor(d, u, h) { + super(d), + (this.predicate = u), + (this.inclusive = h), + (this.index = 0); + } + _next(d) { + const u = this.destination; + let h; + try { + h = this.predicate(d, this.index++); + } catch (r) { + return void u.error(r); + } + this.nextOrComplete(d, h); + } + nextOrComplete(d, u) { + const h = this.destination; + Boolean(u) ? h.next(d) : (this.inclusive && h.next(d), h.complete()); + } + } + }, + 2868: (ye, j, p) => { + "use strict"; + p.d(j, { b: () => m }); + var n = p(3489); + function f() {} + var _ = p(7043); + function m(u, h, r) { + return function (i) { + return i.lift(new s(u, h, r)); + }; + } + class s { + constructor(h, r, o) { + (this.nextOrObserver = h), (this.error = r), (this.complete = o); + } + call(h, r) { + return r.subscribe( + new d(h, this.nextOrObserver, this.error, this.complete) + ); + } + } + class d extends n.L { + constructor(h, r, o, i) { + super(h), + (this._tapNext = f), + (this._tapError = f), + (this._tapComplete = f), + (this._tapError = o || f), + (this._tapComplete = i || f), + (0, _.m)(r) + ? ((this._context = this), (this._tapNext = r)) + : r && + ((this._context = r), + (this._tapNext = r.next || f), + (this._tapError = r.error || f), + (this._tapComplete = r.complete || f)); + } + _next(h) { + try { + this._tapNext.call(this._context, h); + } catch (r) { + return void this.destination.error(r); + } + this.destination.next(h); + } + _error(h) { + try { + this._tapError.call(this._context, h); + } catch (r) { + return void this.destination.error(r); + } + this.destination.error(h); + } + _complete() { + try { + this._tapComplete.call(this._context); + } catch (h) { + return void this.destination.error(h); + } + return this.destination.complete(); + } + } + }, + 4907: (ye, j, p) => { + "use strict"; + p.d(j, { T: () => _ }); + var n = p(4450), + f = p(3489); + function _(u = d) { + return (h) => h.lift(new m(u)); + } + class m { + constructor(h) { + this.errorFactory = h; + } + call(h, r) { + return r.subscribe(new s(h, this.errorFactory)); + } + } + class s extends f.L { + constructor(h, r) { + super(h), (this.errorFactory = r), (this.hasValue = !1); + } + _next(h) { + (this.hasValue = !0), this.destination.next(h); + } + _complete() { + if (this.hasValue) return this.destination.complete(); + { + let h; + try { + h = this.errorFactory(); + } catch (r) { + h = r; + } + this.destination.error(h); + } + } + } + function d() { + return new n.K(); + } + }, + 7e3: (ye, j, p) => { + "use strict"; + p.d(j, { V: () => d }); + var n = p(353); + const _ = (() => { + function u() { + return ( + Error.call(this), + (this.message = "Timeout has occurred"), + (this.name = "TimeoutError"), + this + ); + } + return (u.prototype = Object.create(Error.prototype)), u; + })(); + var m = p(2431), + s = p(1737); + function d(u, h = n.P) { + return (0, m.L)(u, (0, s._)(new _()), h); + } + }, + 2431: (ye, j, p) => { + "use strict"; + p.d(j, { L: () => m }); + var n = p(353), + f = p(2697), + _ = p(1177); + function m(u, h, r = n.P) { + return (o) => { + let i = (0, f.J)(u), + c = i ? +u - r.now() : Math.abs(u); + return o.lift(new s(c, i, h, r)); + }; + } + class s { + constructor(h, r, o, i) { + (this.waitFor = h), + (this.absoluteTimeout = r), + (this.withObservable = o), + (this.scheduler = i); + } + call(h, r) { + return r.subscribe( + new d( + h, + this.absoluteTimeout, + this.waitFor, + this.withObservable, + this.scheduler + ) + ); + } + } + class d extends _.Ds { + constructor(h, r, o, i, c) { + super(h), + (this.absoluteTimeout = r), + (this.waitFor = o), + (this.withObservable = i), + (this.scheduler = c), + this.scheduleTimeout(); + } + static dispatchTimeout(h) { + const { withObservable: r } = h; + h._unsubscribeAndRecycle(), h.add((0, _.ft)(r, new _.IY(h))); + } + scheduleTimeout() { + const { action: h } = this; + h + ? (this.action = h.schedule(this, this.waitFor)) + : this.add( + (this.action = this.scheduler.schedule( + d.dispatchTimeout, + this.waitFor, + this + )) + ); + } + _next(h) { + this.absoluteTimeout || this.scheduleTimeout(), super._next(h); + } + _unsubscribe() { + (this.action = void 0), + (this.scheduler = null), + (this.withObservable = null); + } + } + }, + 864: (ye, j, p) => { + "use strict"; + p.d(j, { q: () => _ }); + var n = p(8077); + function f(m, s, d) { + return 0 === d ? [s] : (m.push(s), m); + } + function _() { + return (0, n.u)(f, []); + } + }, + 6454: (ye, j, p) => { + "use strict"; + p.d(j, { r: () => _ }); + var n = p(6498), + f = p(2654); + function _(m, s) { + return new n.y((d) => { + const u = new f.w(); + let h = 0; + return ( + u.add( + s.schedule(function () { + h !== m.length + ? (d.next(m[h++]), d.closed || u.add(this.schedule())) + : d.complete(); + }) + ), + u + ); + }); + } + }, + 6686: (ye, j, p) => { + "use strict"; + p.d(j, { o: () => _ }); + var n = p(2654); + class f extends n.w { + constructor(s, d) { + super(); + } + schedule(s, d = 0) { + return this; + } + } + class _ extends f { + constructor(s, d) { + super(s, d), + (this.scheduler = s), + (this.work = d), + (this.pending = !1); + } + schedule(s, d = 0) { + if (this.closed) return this; + this.state = s; + const u = this.id, + h = this.scheduler; + return ( + null != u && (this.id = this.recycleAsyncId(h, u, d)), + (this.pending = !0), + (this.delay = d), + (this.id = this.id || this.requestAsyncId(h, this.id, d)), + this + ); + } + requestAsyncId(s, d, u = 0) { + return setInterval(s.flush.bind(s, this), u); + } + recycleAsyncId(s, d, u = 0) { + if (null !== u && this.delay === u && !1 === this.pending) return d; + clearInterval(d); + } + execute(s, d) { + if (this.closed) return new Error("executing a cancelled action"); + this.pending = !1; + const u = this._execute(s, d); + if (u) return u; + !1 === this.pending && + null != this.id && + (this.id = this.recycleAsyncId(this.scheduler, this.id, null)); + } + _execute(s, d) { + let h, + u = !1; + try { + this.work(s); + } catch (r) { + (u = !0), (h = (!!r && r) || new Error(r)); + } + if (u) return this.unsubscribe(), h; + } + _unsubscribe() { + const s = this.id, + d = this.scheduler, + u = d.actions, + h = u.indexOf(this); + (this.work = null), + (this.state = null), + (this.pending = !1), + (this.scheduler = null), + -1 !== h && u.splice(h, 1), + null != s && (this.id = this.recycleAsyncId(d, s, null)), + (this.delay = null); + } + } + }, + 2268: (ye, j, p) => { + "use strict"; + p.d(j, { v: () => f }); + let n = (() => { + class _ { + constructor(s, d = _.now) { + (this.SchedulerAction = s), (this.now = d); + } + schedule(s, d = 0, u) { + return new this.SchedulerAction(this, s).schedule(u, d); + } + } + return (_.now = () => Date.now()), _; + })(); + class f extends n { + constructor(m, s = n.now) { + super(m, () => + f.delegate && f.delegate !== this ? f.delegate.now() : s() + ), + (this.actions = []), + (this.active = !1), + (this.scheduled = void 0); + } + schedule(m, s = 0, d) { + return f.delegate && f.delegate !== this + ? f.delegate.schedule(m, s, d) + : super.schedule(m, s, d); + } + flush(m) { + const { actions: s } = this; + if (this.active) return void s.push(m); + let d; + this.active = !0; + do { + if ((d = m.execute(m.state, m.delay))) break; + } while ((m = s.shift())); + if (((this.active = !1), d)) { + for (; (m = s.shift()); ) m.unsubscribe(); + throw d; + } + } + } + }, + 352: (ye, j, p) => { + "use strict"; + p.d(j, { Z: () => s }); + var n = p(6686), + _ = p(2268); + const s = new (class extends _.v { + flush(h) { + (this.active = !0), (this.scheduled = void 0); + const { actions: r } = this; + let o, + i = -1, + c = r.length; + h = h || r.shift(); + do { + if ((o = h.execute(h.state, h.delay))) break; + } while (++i < c && (h = r.shift())); + if (((this.active = !1), o)) { + for (; ++i < c && (h = r.shift()); ) h.unsubscribe(); + throw o; + } + } + })( + class extends n.o { + constructor(h, r) { + super(h, r), (this.scheduler = h), (this.work = r); + } + requestAsyncId(h, r, o = 0) { + return null !== o && o > 0 + ? super.requestAsyncId(h, r, o) + : (h.actions.push(this), + h.scheduled || + (h.scheduled = requestAnimationFrame(() => h.flush(null)))); + } + recycleAsyncId(h, r, o = 0) { + if ((null !== o && o > 0) || (null === o && this.delay > 0)) + return super.recycleAsyncId(h, r, o); + 0 === h.actions.length && + (cancelAnimationFrame(r), (h.scheduled = void 0)); + } + } + ); + }, + 8139: (ye, j, p) => { + "use strict"; + p.d(j, { e: () => c, E: () => i }); + let n = 1; + const f = Promise.resolve(), + _ = {}; + function m(l) { + return l in _ && (delete _[l], !0); + } + const s = { + setImmediate(l) { + const g = n++; + return (_[g] = !0), f.then(() => m(g) && l()), g; + }, + clearImmediate(l) { + m(l); + }, + }; + var u = p(6686), + r = p(2268); + const i = new (class extends r.v { + flush(g) { + (this.active = !0), (this.scheduled = void 0); + const { actions: b } = this; + let y, + x = -1, + T = b.length; + g = g || b.shift(); + do { + if ((y = g.execute(g.state, g.delay))) break; + } while (++x < T && (g = b.shift())); + if (((this.active = !1), y)) { + for (; ++x < T && (g = b.shift()); ) g.unsubscribe(); + throw y; + } + } + })( + class extends u.o { + constructor(g, b) { + super(g, b), (this.scheduler = g), (this.work = b); + } + requestAsyncId(g, b, y = 0) { + return null !== y && y > 0 + ? super.requestAsyncId(g, b, y) + : (g.actions.push(this), + g.scheduled || + (g.scheduled = s.setImmediate(g.flush.bind(g, null)))); + } + recycleAsyncId(g, b, y = 0) { + if ((null !== y && y > 0) || (null === y && this.delay > 0)) + return super.recycleAsyncId(g, b, y); + 0 === g.actions.length && + (s.clearImmediate(b), (g.scheduled = void 0)); + } + } + ), + c = i; + }, + 353: (ye, j, p) => { + "use strict"; + p.d(j, { P: () => m }); + var n = p(6686); + const m = new (p(2268).v)(n.o); + }, + 5430: (ye, j, p) => { + "use strict"; + p.d(j, { hZ: () => f }); + const f = + "function" == typeof Symbol && Symbol.iterator + ? Symbol.iterator + : "@@iterator"; + }, + 3821: (ye, j, p) => { + "use strict"; + p.d(j, { L: () => n }); + const n = + ("function" == typeof Symbol && Symbol.observable) || "@@observable"; + }, + 7668: (ye, j, p) => { + "use strict"; + p.d(j, { b: () => n }); + const n = + "function" == typeof Symbol + ? Symbol("rxSubscriber") + : "@@rxSubscriber_" + Math.random(); + }, + 4231: (ye, j, p) => { + "use strict"; + p.d(j, { W: () => f }); + const f = (() => { + function _() { + return ( + Error.call(this), + (this.message = "argument out of range"), + (this.name = "ArgumentOutOfRangeError"), + this + ); + } + return (_.prototype = Object.create(Error.prototype)), _; + })(); + }, + 4450: (ye, j, p) => { + "use strict"; + p.d(j, { K: () => f }); + const f = (() => { + function _() { + return ( + Error.call(this), + (this.message = "no elements in sequence"), + (this.name = "EmptyError"), + this + ); + } + return (_.prototype = Object.create(Error.prototype)), _; + })(); + }, + 5279: (ye, j, p) => { + "use strict"; + p.d(j, { N: () => f }); + const f = (() => { + function _() { + return ( + Error.call(this), + (this.message = "object unsubscribed"), + (this.name = "ObjectUnsubscribedError"), + this + ); + } + return (_.prototype = Object.create(Error.prototype)), _; + })(); + }, + 2782: (ye, j, p) => { + "use strict"; + function n(f) { + setTimeout(() => { + throw f; + }, 0); + } + p.d(j, { z: () => n }); + }, + 5379: (ye, j, p) => { + "use strict"; + function n(f) { + return f; + } + p.d(j, { y: () => n }); + }, + 6688: (ye, j, p) => { + "use strict"; + p.d(j, { k: () => n }); + const n = Array.isArray || ((f) => f && "number" == typeof f.length); + }, + 8515: (ye, j, p) => { + "use strict"; + p.d(j, { z: () => n }); + const n = (f) => + f && "number" == typeof f.length && "function" != typeof f; + }, + 2697: (ye, j, p) => { + "use strict"; + function n(f) { + return f instanceof Date && !isNaN(+f); + } + p.d(j, { J: () => n }); + }, + 7043: (ye, j, p) => { + "use strict"; + function n(f) { + return "function" == typeof f; + } + p.d(j, { m: () => n }); + }, + 4241: (ye, j, p) => { + "use strict"; + p.d(j, { k: () => f }); + var n = p(6688); + function f(_) { + return !(0, n.k)(_) && _ - parseFloat(_) + 1 >= 0; + } + }, + 7830: (ye, j, p) => { + "use strict"; + function n(f) { + return null !== f && "object" == typeof f; + } + p.d(j, { K: () => n }); + }, + 8955: (ye, j, p) => { + "use strict"; + function n(f) { + return ( + !!f && "function" != typeof f.subscribe && "function" == typeof f.then + ); + } + p.d(j, { t: () => n }); + }, + 2866: (ye, j, p) => { + "use strict"; + function n(f) { + return f && "function" == typeof f.schedule; + } + p.d(j, { K: () => n }); + }, + 4843: (ye, j, p) => { + "use strict"; + p.d(j, { z: () => f, U: () => _ }); + var n = p(5379); + function f(...m) { + return _(m); + } + function _(m) { + return 0 === m.length + ? n.y + : 1 === m.length + ? m[0] + : function (d) { + return m.reduce((u, h) => h(u), d); + }; + } + }, + 9249: (ye, j, p) => { + "use strict"; + p.d(j, { s: () => i }); + var n = p(3650), + f = p(2782), + m = p(5430), + d = p(3821), + h = p(8515), + r = p(8955), + o = p(7830); + const i = (c) => { + if (c && "function" == typeof c[d.L]) + return ((c) => (l) => { + const g = c[d.L](); + if ("function" != typeof g.subscribe) + throw new TypeError( + "Provided object does not correctly implement Symbol.observable" + ); + return g.subscribe(l); + })(c); + if ((0, h.z)(c)) return (0, n.V)(c); + if ((0, r.t)(c)) + return ((c) => (l) => ( + c + .then( + (g) => { + l.closed || (l.next(g), l.complete()); + }, + (g) => l.error(g) + ) + .then(null, f.z), + l + ))(c); + if (c && "function" == typeof c[m.hZ]) + return ((c) => (l) => { + const g = c[m.hZ](); + for (;;) { + let b; + try { + b = g.next(); + } catch (y) { + return l.error(y), l; + } + if (b.done) { + l.complete(); + break; + } + if ((l.next(b.value), l.closed)) break; + } + return ( + "function" == typeof g.return && + l.add(() => { + g.return && g.return(); + }), + l + ); + })(c); + { + const g = `You provided ${ + (0, o.K)(c) ? "an invalid object" : `'${c}'` + } where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`; + throw new TypeError(g); + } + }; + }, + 3650: (ye, j, p) => { + "use strict"; + p.d(j, { V: () => n }); + const n = (f) => (_) => { + for (let m = 0, s = f.length; m < s && !_.closed; m++) _.next(f[m]); + _.complete(); + }; + }, + 448: (ye, j, p) => { + "use strict"; + p.d(j, { D: () => s }); + var n = p(3489); + class f extends n.L { + constructor(u, h, r) { + super(), + (this.parent = u), + (this.outerValue = h), + (this.outerIndex = r), + (this.index = 0); + } + _next(u) { + this.parent.notifyNext( + this.outerValue, + u, + this.outerIndex, + this.index++, + this + ); + } + _error(u) { + this.parent.notifyError(u, this), this.unsubscribe(); + } + _complete() { + this.parent.notifyComplete(this), this.unsubscribe(); + } + } + var _ = p(9249), + m = p(6498); + function s(d, u, h, r, o = new f(d, h, r)) { + if (!o.closed) + return u instanceof m.y ? u.subscribe(o) : (0, _.s)(u)(o); + } + }, + 3460: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + audit: () => n.U, + auditTime: () => f.e, + buffer: () => m, + bufferCount: () => h, + bufferTime: () => g, + bufferToggle: () => I, + bufferWhen: () => F, + catchError: () => Z.K, + combineAll: () => $, + combineLatest: () => le, + concat: () => Le, + concatAll: () => Ye.u, + concatMap: () => Je.b, + concatMapTo: () => gt, + count: () => Ue, + debounce: () => ft, + debounceTime: () => ot.b, + defaultIfEmpty: () => _t.d, + delay: () => At.g, + delayWhen: () => Bt, + dematerialize: () => D, + distinct: () => _e, + distinctUntilChanged: () => st.x, + distinctUntilKeyChanged: () => ut, + elementAt: () => Kt, + endWith: () => xt, + every: () => Lt, + exhaust: () => Vt, + exhaustMap: () => te, + expand: () => ze, + filter: () => Xt.h, + finalize: () => cn.x, + find: () => An, + findIndex: () => He, + first: () => pt.P, + flatMap: () => zn.VS, + groupBy: () => un, + ignoreElements: () => Ni, + isEmpty: () => Vi, + last: () => Ze.Z, + map: () => Se.U, + mapTo: () => ue, + materialize: () => Pe, + max: () => Ht, + merge: () => an, + mergeAll: () => Tn.J, + mergeMap: () => zn.zg, + mergeMapTo: () => $n, + mergeScan: () => ti, + min: () => kn, + multicast: () => Mi.O, + observeOn: () => Zi, + onErrorResumeNext: () => Ui, + pairwise: () => qi, + partition: () => mi, + pluck: () => Gn, + publish: () => gn, + publishBehavior: () => Sn, + publishLast: () => Ri, + publishReplay: () => ir, + race: () => Sr, + reduce: () => Ft.u, + refCount: () => Tr.x, + repeat: () => Hr, + repeatWhen: () => Wr, + retry: () => Lr, + retryWhen: () => ls, + sample: () => us, + sampleTime: () => Er, + scan: () => V.R, + sequenceEqual: () => ve, + share: () => In.B, + shareReplay: () => ni, + single: () => hi, + skip: () => xn.T, + skipLast: () => Kr, + skipUntil: () => cs, + skipWhile: () => Bs, + startWith: () => G.O, + subscribeOn: () => rt, + switchAll: () => rn, + switchMap: () => Rt.w, + switchMapTo: () => pn, + take: () => Dt.q, + takeLast: () => Pn.h, + takeUntil: () => Ln.R, + takeWhile: () => _n.o, + tap: () => Bn.b, + throttle: () => _i, + throttleTime: () => Qi, + throwIfEmpty: () => tn.T, + timeInterval: () => zi, + timeout: () => ys.V, + timeoutWith: () => Yi.L, + timestamp: () => Ur, + toArray: () => Cs.q, + window: () => mn, + windowCount: () => li, + windowTime: () => Zn, + windowToggle: () => Ir, + windowWhen: () => Br, + withLatestFrom: () => ns, + zip: () => Ms, + zipAll: () => Ss, + }); + var n = p(384), + f = p(7568), + _ = p(1177); + function m(Ke) { + return function (ce) { + return ce.lift(new s(Ke)); + }; + } + class s { + constructor(z) { + this.closingNotifier = z; + } + call(z, ce) { + return ce.subscribe(new d(z, this.closingNotifier)); + } + } + class d extends _.Ds { + constructor(z, ce) { + super(z), (this.buffer = []), this.add((0, _.ft)(ce, new _.IY(this))); + } + _next(z) { + this.buffer.push(z); + } + notifyNext() { + const z = this.buffer; + (this.buffer = []), this.destination.next(z); + } + } + var u = p(3489); + function h(Ke, z = null) { + return function (je) { + return je.lift(new r(Ke, z)); + }; + } + class r { + constructor(z, ce) { + (this.bufferSize = z), + (this.startBufferEvery = ce), + (this.subscriberClass = ce && z !== ce ? i : o); + } + call(z, ce) { + return ce.subscribe( + new this.subscriberClass(z, this.bufferSize, this.startBufferEvery) + ); + } + } + class o extends u.L { + constructor(z, ce) { + super(z), (this.bufferSize = ce), (this.buffer = []); + } + _next(z) { + const ce = this.buffer; + ce.push(z), + ce.length == this.bufferSize && + (this.destination.next(ce), (this.buffer = [])); + } + _complete() { + const z = this.buffer; + z.length > 0 && this.destination.next(z), super._complete(); + } + } + class i extends u.L { + constructor(z, ce, je) { + super(z), + (this.bufferSize = ce), + (this.startBufferEvery = je), + (this.buffers = []), + (this.count = 0); + } + _next(z) { + const { + bufferSize: ce, + startBufferEvery: je, + buffers: Mt, + count: jt, + } = this; + this.count++, jt % je == 0 && Mt.push([]); + for (let ln = Mt.length; ln--; ) { + const Hn = Mt[ln]; + Hn.push(z), + Hn.length === ce && (Mt.splice(ln, 1), this.destination.next(Hn)); + } + } + _complete() { + const { buffers: z, destination: ce } = this; + for (; z.length > 0; ) { + let je = z.shift(); + je.length > 0 && ce.next(je); + } + super._complete(); + } + } + var c = p(353), + l = p(2866); + function g(Ke) { + let z = arguments.length, + ce = c.P; + (0, l.K)(arguments[arguments.length - 1]) && + ((ce = arguments[arguments.length - 1]), z--); + let je = null; + z >= 2 && (je = arguments[1]); + let Mt = Number.POSITIVE_INFINITY; + return ( + z >= 3 && (Mt = arguments[2]), + function (ln) { + return ln.lift(new b(Ke, je, Mt, ce)); + } + ); + } + class b { + constructor(z, ce, je, Mt) { + (this.bufferTimeSpan = z), + (this.bufferCreationInterval = ce), + (this.maxBufferSize = je), + (this.scheduler = Mt); + } + call(z, ce) { + return ce.subscribe( + new x( + z, + this.bufferTimeSpan, + this.bufferCreationInterval, + this.maxBufferSize, + this.scheduler + ) + ); + } + } + class y { + constructor() { + this.buffer = []; + } + } + class x extends u.L { + constructor(z, ce, je, Mt, jt) { + super(z), + (this.bufferTimeSpan = ce), + (this.bufferCreationInterval = je), + (this.maxBufferSize = Mt), + (this.scheduler = jt), + (this.contexts = []); + const ln = this.openContext(); + if (((this.timespanOnly = null == je || je < 0), this.timespanOnly)) + this.add( + (ln.closeAction = jt.schedule(T, ce, { + subscriber: this, + context: ln, + bufferTimeSpan: ce, + })) + ); + else { + const Ki = { + bufferTimeSpan: ce, + bufferCreationInterval: je, + subscriber: this, + scheduler: jt, + }; + this.add( + (ln.closeAction = jt.schedule(M, ce, { + subscriber: this, + context: ln, + })) + ), + this.add(jt.schedule(O, je, Ki)); + } + } + _next(z) { + const ce = this.contexts, + je = ce.length; + let Mt; + for (let jt = 0; jt < je; jt++) { + const ln = ce[jt], + Hn = ln.buffer; + Hn.push(z), Hn.length == this.maxBufferSize && (Mt = ln); + } + Mt && this.onBufferFull(Mt); + } + _error(z) { + (this.contexts.length = 0), super._error(z); + } + _complete() { + const { contexts: z, destination: ce } = this; + for (; z.length > 0; ) { + const je = z.shift(); + ce.next(je.buffer); + } + super._complete(); + } + _unsubscribe() { + this.contexts = null; + } + onBufferFull(z) { + this.closeContext(z); + const ce = z.closeAction; + if ( + (ce.unsubscribe(), + this.remove(ce), + !this.closed && this.timespanOnly) + ) { + z = this.openContext(); + const je = this.bufferTimeSpan; + this.add( + (z.closeAction = this.scheduler.schedule(T, je, { + subscriber: this, + context: z, + bufferTimeSpan: je, + })) + ); + } + } + openContext() { + const z = new y(); + return this.contexts.push(z), z; + } + closeContext(z) { + this.destination.next(z.buffer); + const ce = this.contexts; + (ce ? ce.indexOf(z) : -1) >= 0 && ce.splice(ce.indexOf(z), 1); + } + } + function T(Ke) { + const z = Ke.subscriber, + ce = Ke.context; + ce && z.closeContext(ce), + z.closed || + ((Ke.context = z.openContext()), + (Ke.context.closeAction = this.schedule(Ke, Ke.bufferTimeSpan))); + } + function O(Ke) { + const { + bufferCreationInterval: z, + bufferTimeSpan: ce, + subscriber: je, + scheduler: Mt, + } = Ke, + jt = je.openContext(); + je.closed || + (je.add( + (jt.closeAction = Mt.schedule(M, ce, { + subscriber: je, + context: jt, + })) + ), + this.schedule(Ke, z)); + } + function M(Ke) { + const { subscriber: z, context: ce } = Ke; + z.closeContext(ce); + } + var A = p(2654), + S = p(448), + w = p(826); + function I(Ke, z) { + return function (je) { + return je.lift(new C(Ke, z)); + }; + } + class C { + constructor(z, ce) { + (this.openings = z), (this.closingSelector = ce); + } + call(z, ce) { + return ce.subscribe(new L(z, this.openings, this.closingSelector)); + } + } + class L extends w.L { + constructor(z, ce, je) { + super(z), + (this.closingSelector = je), + (this.contexts = []), + this.add((0, S.D)(this, ce)); + } + _next(z) { + const ce = this.contexts, + je = ce.length; + for (let Mt = 0; Mt < je; Mt++) ce[Mt].buffer.push(z); + } + _error(z) { + const ce = this.contexts; + for (; ce.length > 0; ) { + const je = ce.shift(); + je.subscription.unsubscribe(), + (je.buffer = null), + (je.subscription = null); + } + (this.contexts = null), super._error(z); + } + _complete() { + const z = this.contexts; + for (; z.length > 0; ) { + const ce = z.shift(); + this.destination.next(ce.buffer), + ce.subscription.unsubscribe(), + (ce.buffer = null), + (ce.subscription = null); + } + (this.contexts = null), super._complete(); + } + notifyNext(z, ce) { + z ? this.closeBuffer(z) : this.openBuffer(ce); + } + notifyComplete(z) { + this.closeBuffer(z.context); + } + openBuffer(z) { + try { + const je = this.closingSelector.call(this, z); + je && this.trySubscribe(je); + } catch (ce) { + this._error(ce); + } + } + closeBuffer(z) { + const ce = this.contexts; + if (ce && z) { + const { buffer: je, subscription: Mt } = z; + this.destination.next(je), + ce.splice(ce.indexOf(z), 1), + this.remove(Mt), + Mt.unsubscribe(); + } + } + trySubscribe(z) { + const ce = this.contexts, + Mt = new A.w(), + jt = { buffer: [], subscription: Mt }; + ce.push(jt); + const ln = (0, S.D)(this, z, jt); + !ln || ln.closed + ? this.closeBuffer(jt) + : ((ln.context = jt), this.add(ln), Mt.add(ln)); + } + } + function F(Ke) { + return function (z) { + return z.lift(new ie(Ke)); + }; + } + class ie { + constructor(z) { + this.closingSelector = z; + } + call(z, ce) { + return ce.subscribe(new Y(z, this.closingSelector)); + } + } + class Y extends _.Ds { + constructor(z, ce) { + super(z), + (this.closingSelector = ce), + (this.subscribing = !1), + this.openBuffer(); + } + _next(z) { + this.buffer.push(z); + } + _complete() { + const z = this.buffer; + z && this.destination.next(z), super._complete(); + } + _unsubscribe() { + (this.buffer = void 0), (this.subscribing = !1); + } + notifyNext() { + this.openBuffer(); + } + notifyComplete() { + this.subscribing ? this.complete() : this.openBuffer(); + } + openBuffer() { + let je, + { closingSubscription: z } = this; + z && (this.remove(z), z.unsubscribe()), + this.buffer && this.destination.next(this.buffer), + (this.buffer = []); + try { + const { closingSelector: Mt } = this; + je = Mt(); + } catch (Mt) { + return this.error(Mt); + } + (z = new A.w()), + (this.closingSubscription = z), + this.add(z), + (this.subscribing = !0), + z.add((0, _.ft)(je, new _.IY(this))), + (this.subscribing = !1); + } + } + var Z = p(7221), + ee = p(6053); + function $(Ke) { + return (z) => z.lift(new ee.Ms(Ke)); + } + var J = p(6688), + ne = p(5254); + function le(...Ke) { + let z = null; + return ( + "function" == typeof Ke[Ke.length - 1] && (z = Ke.pop()), + 1 === Ke.length && (0, J.k)(Ke[0]) && (Ke = Ke[0].slice()), + (ce) => ce.lift.call((0, ne.D)([ce, ...Ke]), new ee.Ms(z)) + ); + } + var Oe = p(1961); + function Le(...Ke) { + return (z) => z.lift.call((0, Oe.z)(z, ...Ke)); + } + var Ye = p(534), + Je = p(1406); + function gt(Ke, z) { + return (0, Je.b)(() => Ke, z); + } + function Ue(Ke) { + return (z) => z.lift(new tt(Ke, z)); + } + class tt { + constructor(z, ce) { + (this.predicate = z), (this.source = ce); + } + call(z, ce) { + return ce.subscribe(new at(z, this.predicate, this.source)); + } + } + class at extends u.L { + constructor(z, ce, je) { + super(z), + (this.predicate = ce), + (this.source = je), + (this.count = 0), + (this.index = 0); + } + _next(z) { + this.predicate ? this._tryPredicate(z) : this.count++; + } + _tryPredicate(z) { + let ce; + try { + ce = this.predicate(z, this.index++, this.source); + } catch (je) { + return void this.destination.error(je); + } + ce && this.count++; + } + _complete() { + this.destination.next(this.count), this.destination.complete(); + } + } + function ft(Ke) { + return (z) => z.lift(new vt(Ke)); + } + class vt { + constructor(z) { + this.durationSelector = z; + } + call(z, ce) { + return ce.subscribe(new yt(z, this.durationSelector)); + } + } + class yt extends _.Ds { + constructor(z, ce) { + super(z), (this.durationSelector = ce), (this.hasValue = !1); + } + _next(z) { + try { + const ce = this.durationSelector.call(this, z); + ce && this._tryNext(z, ce); + } catch (ce) { + this.destination.error(ce); + } + } + _complete() { + this.emitValue(), this.destination.complete(); + } + _tryNext(z, ce) { + let je = this.durationSubscription; + (this.value = z), + (this.hasValue = !0), + je && (je.unsubscribe(), this.remove(je)), + (je = (0, _.ft)(ce, new _.IY(this))), + je && !je.closed && this.add((this.durationSubscription = je)); + } + notifyNext() { + this.emitValue(); + } + notifyComplete() { + this.emitValue(); + } + emitValue() { + if (this.hasValue) { + const z = this.value, + ce = this.durationSubscription; + ce && + ((this.durationSubscription = void 0), + ce.unsubscribe(), + this.remove(ce)), + (this.value = void 0), + (this.hasValue = !1), + super._next(z); + } + } + } + var ot = p(13), + _t = p(7314), + At = p(943), + Tt = p(6498); + function Bt(Ke, z) { + return z + ? (ce) => new fe(ce, z).lift(new Et(Ke)) + : (ce) => ce.lift(new Et(Ke)); + } + class Et { + constructor(z) { + this.delayDurationSelector = z; + } + call(z, ce) { + return ce.subscribe(new Ee(z, this.delayDurationSelector)); + } + } + class Ee extends w.L { + constructor(z, ce) { + super(z), + (this.delayDurationSelector = ce), + (this.completed = !1), + (this.delayNotifierSubscriptions = []), + (this.index = 0); + } + notifyNext(z, ce, je, Mt, jt) { + this.destination.next(z), + this.removeSubscription(jt), + this.tryComplete(); + } + notifyError(z, ce) { + this._error(z); + } + notifyComplete(z) { + const ce = this.removeSubscription(z); + ce && this.destination.next(ce), this.tryComplete(); + } + _next(z) { + const ce = this.index++; + try { + const je = this.delayDurationSelector(z, ce); + je && this.tryDelay(je, z); + } catch (je) { + this.destination.error(je); + } + } + _complete() { + (this.completed = !0), this.tryComplete(), this.unsubscribe(); + } + removeSubscription(z) { + z.unsubscribe(); + const ce = this.delayNotifierSubscriptions.indexOf(z); + return ( + -1 !== ce && this.delayNotifierSubscriptions.splice(ce, 1), + z.outerValue + ); + } + tryDelay(z, ce) { + const je = (0, S.D)(this, z, ce); + je && + !je.closed && + (this.destination.add(je), + this.delayNotifierSubscriptions.push(je)); + } + tryComplete() { + this.completed && + 0 === this.delayNotifierSubscriptions.length && + this.destination.complete(); + } + } + class fe extends Tt.y { + constructor(z, ce) { + super(), (this.source = z), (this.subscriptionDelay = ce); + } + _subscribe(z) { + this.subscriptionDelay.subscribe(new H(z, this.source)); + } + } + class H extends u.L { + constructor(z, ce) { + super(), + (this.parent = z), + (this.source = ce), + (this.sourceSubscribed = !1); + } + _next(z) { + this.subscribeToSource(); + } + _error(z) { + this.unsubscribe(), this.parent.error(z); + } + _complete() { + this.unsubscribe(), this.subscribeToSource(); + } + subscribeToSource() { + this.sourceSubscribed || + ((this.sourceSubscribed = !0), + this.unsubscribe(), + this.source.subscribe(this.parent)); + } + } + function D() { + return function (z) { + return z.lift(new U()); + }; + } + class U { + call(z, ce) { + return ce.subscribe(new X(z)); + } + } + class X extends u.L { + constructor(z) { + super(z); + } + _next(z) { + z.observe(this.destination); + } + } + function _e(Ke, z) { + return (ce) => ce.lift(new Be(Ke, z)); + } + class Be { + constructor(z, ce) { + (this.keySelector = z), (this.flushes = ce); + } + call(z, ce) { + return ce.subscribe(new $e(z, this.keySelector, this.flushes)); + } + } + class $e extends _.Ds { + constructor(z, ce, je) { + super(z), + (this.keySelector = ce), + (this.values = new Set()), + je && this.add((0, _.ft)(je, new _.IY(this))); + } + notifyNext() { + this.values.clear(); + } + notifyError(z) { + this._error(z); + } + _next(z) { + this.keySelector ? this._useKeySelector(z) : this._finalizeNext(z, z); + } + _useKeySelector(z) { + let ce; + const { destination: je } = this; + try { + ce = this.keySelector(z); + } catch (Mt) { + return void je.error(Mt); + } + this._finalizeNext(ce, z); + } + _finalizeNext(z, ce) { + const { values: je } = this; + je.has(z) || (je.add(z), this.destination.next(ce)); + } + } + var st = p(5778); + function ut(Ke, z) { + return (0, st.x)((ce, je) => + z ? z(ce[Ke], je[Ke]) : ce[Ke] === je[Ke] + ); + } + var St = p(4231), + Xt = p(2198), + tn = p(4907), + Dt = p(2986); + function Kt(Ke, z) { + if (Ke < 0) throw new St.W(); + const ce = arguments.length >= 2; + return (je) => + je.pipe( + (0, Xt.h)((Mt, jt) => jt === Ke), + (0, Dt.q)(1), + ce ? (0, _t.d)(z) : (0, tn.T)(() => new St.W()) + ); + } + var et = p(1086); + function xt(...Ke) { + return (z) => (0, Oe.z)(z, (0, et.of)(...Ke)); + } + function Lt(Ke, z) { + return (ce) => ce.lift(new Qe(Ke, z, ce)); + } + class Qe { + constructor(z, ce, je) { + (this.predicate = z), (this.thisArg = ce), (this.source = je); + } + call(z, ce) { + return ce.subscribe( + new mt(z, this.predicate, this.thisArg, this.source) + ); + } + } + class mt extends u.L { + constructor(z, ce, je, Mt) { + super(z), + (this.predicate = ce), + (this.thisArg = je), + (this.source = Mt), + (this.index = 0), + (this.thisArg = je || this); + } + notifyComplete(z) { + this.destination.next(z), this.destination.complete(); + } + _next(z) { + let ce = !1; + try { + ce = this.predicate.call( + this.thisArg, + z, + this.index++, + this.source + ); + } catch (je) { + return void this.destination.error(je); + } + ce || this.notifyComplete(!1); + } + _complete() { + this.notifyComplete(!0); + } + } + function Vt() { + return (Ke) => Ke.lift(new qt()); + } + class qt { + call(z, ce) { + return ce.subscribe(new Ne(z)); + } + } + class Ne extends _.Ds { + constructor(z) { + super(z), (this.hasCompleted = !1), (this.hasSubscription = !1); + } + _next(z) { + this.hasSubscription || + ((this.hasSubscription = !0), + this.add((0, _.ft)(z, new _.IY(this)))); + } + _complete() { + (this.hasCompleted = !0), + this.hasSubscription || this.destination.complete(); + } + notifyComplete() { + (this.hasSubscription = !1), + this.hasCompleted && this.destination.complete(); + } + } + var Se = p(4850); + function te(Ke, z) { + return z + ? (ce) => + ce.pipe( + te((je, Mt) => + (0, ne.D)(Ke(je, Mt)).pipe( + (0, Se.U)((jt, ln) => z(je, jt, Mt, ln)) + ) + ) + ) + : (ce) => ce.lift(new re(Ke)); + } + class re { + constructor(z) { + this.project = z; + } + call(z, ce) { + return ce.subscribe(new Me(z, this.project)); + } + } + class Me extends _.Ds { + constructor(z, ce) { + super(z), + (this.project = ce), + (this.hasSubscription = !1), + (this.hasCompleted = !1), + (this.index = 0); + } + _next(z) { + this.hasSubscription || this.tryNext(z); + } + tryNext(z) { + let ce; + const je = this.index++; + try { + ce = this.project(z, je); + } catch (Mt) { + return void this.destination.error(Mt); + } + (this.hasSubscription = !0), this._innerSub(ce); + } + _innerSub(z) { + const ce = new _.IY(this), + je = this.destination; + je.add(ce); + const Mt = (0, _.ft)(z, ce); + Mt !== ce && je.add(Mt); + } + _complete() { + (this.hasCompleted = !0), + this.hasSubscription || this.destination.complete(), + this.unsubscribe(); + } + notifyNext(z) { + this.destination.next(z); + } + notifyError(z) { + this.destination.error(z); + } + notifyComplete() { + (this.hasSubscription = !1), + this.hasCompleted && this.destination.complete(); + } + } + function ze(Ke, z = Number.POSITIVE_INFINITY, ce) { + return ( + (z = (z || 0) < 1 ? Number.POSITIVE_INFINITY : z), + (je) => je.lift(new It(Ke, z, ce)) + ); + } + class It { + constructor(z, ce, je) { + (this.project = z), (this.concurrent = ce), (this.scheduler = je); + } + call(z, ce) { + return ce.subscribe( + new Qt(z, this.project, this.concurrent, this.scheduler) + ); + } + } + class Qt extends _.Ds { + constructor(z, ce, je, Mt) { + super(z), + (this.project = ce), + (this.concurrent = je), + (this.scheduler = Mt), + (this.index = 0), + (this.active = 0), + (this.hasCompleted = !1), + je < Number.POSITIVE_INFINITY && (this.buffer = []); + } + static dispatch(z) { + const { subscriber: ce, result: je, value: Mt, index: jt } = z; + ce.subscribeToProjection(je, Mt, jt); + } + _next(z) { + const ce = this.destination; + if (ce.closed) return void this._complete(); + const je = this.index++; + if (this.active < this.concurrent) { + ce.next(z); + try { + const { project: Mt } = this, + jt = Mt(z, je); + this.scheduler + ? this.destination.add( + this.scheduler.schedule(Qt.dispatch, 0, { + subscriber: this, + result: jt, + value: z, + index: je, + }) + ) + : this.subscribeToProjection(jt, z, je); + } catch (Mt) { + ce.error(Mt); + } + } else this.buffer.push(z); + } + subscribeToProjection(z, ce, je) { + this.active++, this.destination.add((0, _.ft)(z, new _.IY(this))); + } + _complete() { + (this.hasCompleted = !0), + this.hasCompleted && + 0 === this.active && + this.destination.complete(), + this.unsubscribe(); + } + notifyNext(z) { + this._next(z); + } + notifyComplete() { + const z = this.buffer; + this.active--, + z && z.length > 0 && this._next(z.shift()), + this.hasCompleted && + 0 === this.active && + this.destination.complete(); + } + } + var cn = p(537); + function An(Ke, z) { + if ("function" != typeof Ke) + throw new TypeError("predicate is not a function"); + return (ce) => ce.lift(new lt(Ke, ce, !1, z)); + } + class lt { + constructor(z, ce, je, Mt) { + (this.predicate = z), + (this.source = ce), + (this.yieldIndex = je), + (this.thisArg = Mt); + } + call(z, ce) { + return ce.subscribe( + new ct( + z, + this.predicate, + this.source, + this.yieldIndex, + this.thisArg + ) + ); + } + } + class ct extends u.L { + constructor(z, ce, je, Mt, jt) { + super(z), + (this.predicate = ce), + (this.source = je), + (this.yieldIndex = Mt), + (this.thisArg = jt), + (this.index = 0); + } + notifyComplete(z) { + const ce = this.destination; + ce.next(z), ce.complete(), this.unsubscribe(); + } + _next(z) { + const { predicate: ce, thisArg: je } = this, + Mt = this.index++; + try { + ce.call(je || this, z, Mt, this.source) && + this.notifyComplete(this.yieldIndex ? Mt : z); + } catch (jt) { + this.destination.error(jt); + } + } + _complete() { + this.notifyComplete(this.yieldIndex ? -1 : void 0); + } + } + function He(Ke, z) { + return (ce) => ce.lift(new lt(Ke, ce, !0, z)); + } + var pt = p(7224), + Ot = p(8929); + function un(Ke, z, ce, je) { + return (Mt) => Mt.lift(new on(Ke, z, ce, je)); + } + class on { + constructor(z, ce, je, Mt) { + (this.keySelector = z), + (this.elementSelector = ce), + (this.durationSelector = je), + (this.subjectSelector = Mt); + } + call(z, ce) { + return ce.subscribe( + new On( + z, + this.keySelector, + this.elementSelector, + this.durationSelector, + this.subjectSelector + ) + ); + } + } + class On extends u.L { + constructor(z, ce, je, Mt, jt) { + super(z), + (this.keySelector = ce), + (this.elementSelector = je), + (this.durationSelector = Mt), + (this.subjectSelector = jt), + (this.groups = null), + (this.attemptedToUnsubscribe = !1), + (this.count = 0); + } + _next(z) { + let ce; + try { + ce = this.keySelector(z); + } catch (je) { + return void this.error(je); + } + this._group(z, ce); + } + _group(z, ce) { + let je = this.groups; + je || (je = this.groups = new Map()); + let jt, + Mt = je.get(ce); + if (this.elementSelector) + try { + jt = this.elementSelector(z); + } catch (ln) { + this.error(ln); + } + else jt = z; + if (!Mt) { + (Mt = this.subjectSelector ? this.subjectSelector() : new Ot.xQ()), + je.set(ce, Mt); + const ln = new ji(ce, Mt, this); + if ((this.destination.next(ln), this.durationSelector)) { + let Hn; + try { + Hn = this.durationSelector(new ji(ce, Mt)); + } catch (Ki) { + return void this.error(Ki); + } + this.add(Hn.subscribe(new Yn(ce, Mt, this))); + } + } + Mt.closed || Mt.next(jt); + } + _error(z) { + const ce = this.groups; + ce && + (ce.forEach((je, Mt) => { + je.error(z); + }), + ce.clear()), + this.destination.error(z); + } + _complete() { + const z = this.groups; + z && + (z.forEach((ce, je) => { + ce.complete(); + }), + z.clear()), + this.destination.complete(); + } + removeGroup(z) { + this.groups.delete(z); + } + unsubscribe() { + this.closed || + ((this.attemptedToUnsubscribe = !0), + 0 === this.count && super.unsubscribe()); + } + } + class Yn extends u.L { + constructor(z, ce, je) { + super(ce), (this.key = z), (this.group = ce), (this.parent = je); + } + _next(z) { + this.complete(); + } + _unsubscribe() { + const { parent: z, key: ce } = this; + (this.key = this.parent = null), z && z.removeGroup(ce); + } + } + class ji extends Tt.y { + constructor(z, ce, je) { + super(), + (this.key = z), + (this.groupSubject = ce), + (this.refCountSubscription = je); + } + _subscribe(z) { + const ce = new A.w(), + { refCountSubscription: je, groupSubject: Mt } = this; + return ( + je && !je.closed && ce.add(new Oi(je)), ce.add(Mt.subscribe(z)), ce + ); + } + } + class Oi extends A.w { + constructor(z) { + super(), (this.parent = z), z.count++; + } + unsubscribe() { + const z = this.parent; + !z.closed && + !this.closed && + (super.unsubscribe(), + (z.count -= 1), + 0 === z.count && z.attemptedToUnsubscribe && z.unsubscribe()); + } + } + function Ni() { + return function (z) { + return z.lift(new Ti()); + }; + } + class Ti { + call(z, ce) { + return ce.subscribe(new qn(z)); + } + } + class qn extends u.L { + _next(z) {} + } + function Vi() { + return (Ke) => Ke.lift(new ci()); + } + class ci { + call(z, ce) { + return ce.subscribe(new xe(z)); + } + } + class xe extends u.L { + constructor(z) { + super(z); + } + notifyComplete(z) { + const ce = this.destination; + ce.next(z), ce.complete(); + } + _next(z) { + this.notifyComplete(!1); + } + _complete() { + this.notifyComplete(!0); + } + } + var Ze = p(8127); + function ue(Ke) { + return (z) => z.lift(new Re(Ke)); + } + class Re { + constructor(z) { + this.value = z; + } + call(z, ce) { + return ce.subscribe(new B(z, this.value)); + } + } + class B extends u.L { + constructor(z, ce) { + super(z), (this.value = ce); + } + _next(z) { + this.destination.next(this.value); + } + } + var de = p(9312); + function Pe() { + return function (z) { + return z.lift(new Xe()); + }; + } + class Xe { + call(z, ce) { + return ce.subscribe(new Wt(z)); + } + } + class Wt extends u.L { + constructor(z) { + super(z); + } + _next(z) { + this.destination.next(de.P.createNext(z)); + } + _error(z) { + const ce = this.destination; + ce.next(de.P.createError(z)), ce.complete(); + } + _complete() { + const z = this.destination; + z.next(de.P.createComplete()), z.complete(); + } + } + var Ft = p(8077); + function Ht(Ke) { + return (0, Ft.u)( + "function" == typeof Ke + ? (ce, je) => (Ke(ce, je) > 0 ? ce : je) + : (ce, je) => (ce > je ? ce : je) + ); + } + var Zt = p(6787); + function an(...Ke) { + return (z) => z.lift.call((0, Zt.T)(z, ...Ke)); + } + var Tn = p(9146), + zn = p(1709); + function $n(Ke, z, ce = Number.POSITIVE_INFINITY) { + return "function" == typeof z + ? (0, zn.zg)(() => Ke, z, ce) + : ("number" == typeof z && (ce = z), (0, zn.zg)(() => Ke, ce)); + } + function ti(Ke, z, ce = Number.POSITIVE_INFINITY) { + return (je) => je.lift(new jn(Ke, z, ce)); + } + class jn { + constructor(z, ce, je) { + (this.accumulator = z), (this.seed = ce), (this.concurrent = je); + } + call(z, ce) { + return ce.subscribe( + new Qn(z, this.accumulator, this.seed, this.concurrent) + ); + } + } + class Qn extends _.Ds { + constructor(z, ce, je, Mt) { + super(z), + (this.accumulator = ce), + (this.acc = je), + (this.concurrent = Mt), + (this.hasValue = !1), + (this.hasCompleted = !1), + (this.buffer = []), + (this.active = 0), + (this.index = 0); + } + _next(z) { + if (this.active < this.concurrent) { + const ce = this.index++, + je = this.destination; + let Mt; + try { + const { accumulator: jt } = this; + Mt = jt(this.acc, z, ce); + } catch (jt) { + return je.error(jt); + } + this.active++, this._innerSub(Mt); + } else this.buffer.push(z); + } + _innerSub(z) { + const ce = new _.IY(this), + je = this.destination; + je.add(ce); + const Mt = (0, _.ft)(z, ce); + Mt !== ce && je.add(Mt); + } + _complete() { + (this.hasCompleted = !0), + 0 === this.active && + 0 === this.buffer.length && + (!1 === this.hasValue && this.destination.next(this.acc), + this.destination.complete()), + this.unsubscribe(); + } + notifyNext(z) { + const { destination: ce } = this; + (this.acc = z), (this.hasValue = !0), ce.next(z); + } + notifyComplete() { + const z = this.buffer; + this.active--, + z.length > 0 + ? this._next(z.shift()) + : 0 === this.active && + this.hasCompleted && + (!1 === this.hasValue && this.destination.next(this.acc), + this.destination.complete()); + } + } + function kn(Ke) { + return (0, Ft.u)( + "function" == typeof Ke + ? (ce, je) => (Ke(ce, je) < 0 ? ce : je) + : (ce, je) => (ce < je ? ce : je) + ); + } + var Mi = p(2536); + function Zi(Ke, z = 0) { + return function (je) { + return je.lift(new Xn(Ke, z)); + }; + } + class Xn { + constructor(z, ce = 0) { + (this.scheduler = z), (this.delay = ce); + } + call(z, ce) { + return ce.subscribe(new pi(z, this.scheduler, this.delay)); + } + } + class pi extends u.L { + constructor(z, ce, je = 0) { + super(z), (this.scheduler = ce), (this.delay = je); + } + static dispatch(z) { + const { notification: ce, destination: je } = z; + ce.observe(je), this.unsubscribe(); + } + scheduleMessage(z) { + this.destination.add( + this.scheduler.schedule( + pi.dispatch, + this.delay, + new Gi(z, this.destination) + ) + ); + } + _next(z) { + this.scheduleMessage(de.P.createNext(z)); + } + _error(z) { + this.scheduleMessage(de.P.createError(z)), this.unsubscribe(); + } + _complete() { + this.scheduleMessage(de.P.createComplete()), this.unsubscribe(); + } + } + class Gi { + constructor(z, ce) { + (this.notification = z), (this.destination = ce); + } + } + function Ui(...Ke) { + return ( + 1 === Ke.length && (0, J.k)(Ke[0]) && (Ke = Ke[0]), + (z) => z.lift(new bi(Ke)) + ); + } + class bi { + constructor(z) { + this.nextSources = z; + } + call(z, ce) { + return ce.subscribe(new Rn(z, this.nextSources)); + } + } + class Rn extends _.Ds { + constructor(z, ce) { + super(z), (this.destination = z), (this.nextSources = ce); + } + notifyError() { + this.subscribeToNextSource(); + } + notifyComplete() { + this.subscribeToNextSource(); + } + _error(z) { + this.subscribeToNextSource(), this.unsubscribe(); + } + _complete() { + this.subscribeToNextSource(), this.unsubscribe(); + } + subscribeToNextSource() { + const z = this.nextSources.shift(); + if (z) { + const ce = new _.IY(this), + je = this.destination; + je.add(ce); + const Mt = (0, _.ft)(z, ce); + Mt !== ce && je.add(Mt); + } else this.destination.complete(); + } + } + function qi() { + return (Ke) => Ke.lift(new oi()); + } + class oi { + call(z, ce) { + return ce.subscribe(new Fn(z)); + } + } + class Fn extends u.L { + constructor(z) { + super(z), (this.hasPrev = !1); + } + _next(z) { + let ce; + this.hasPrev ? (ce = [this.prev, z]) : (this.hasPrev = !0), + (this.prev = z), + ce && this.destination.next(ce); + } + } + function $i(Ke, z) { + function ce() { + return !ce.pred.apply(ce.thisArg, arguments); + } + return (ce.pred = Ke), (ce.thisArg = z), ce; + } + function mi(Ke, z) { + return (ce) => [(0, Xt.h)(Ke, z)(ce), (0, Xt.h)($i(Ke, z))(ce)]; + } + function Gn(...Ke) { + const z = Ke.length; + if (0 === z) throw new Error("list of properties cannot be empty."); + return (ce) => + (0, Se.U)( + (function (Ke, z) { + return (je) => { + let Mt = je; + for (let jt = 0; jt < z; jt++) { + const ln = null != Mt ? Mt[Ke[jt]] : void 0; + if (void 0 === ln) return; + Mt = ln; + } + return Mt; + }; + })(Ke, z) + )(ce); + } + function gn(Ke) { + return Ke ? (0, Mi.O)(() => new Ot.xQ(), Ke) : (0, Mi.O)(new Ot.xQ()); + } + var yn = p(591); + function Sn(Ke) { + return (z) => (0, Mi.O)(new yn.X(Ke))(z); + } + class Wn extends Ot.xQ { + constructor() { + super(...arguments), + (this.value = null), + (this.hasNext = !1), + (this.hasCompleted = !1); + } + _subscribe(z) { + return this.hasError + ? (z.error(this.thrownError), A.w.EMPTY) + : this.hasCompleted && this.hasNext + ? (z.next(this.value), z.complete(), A.w.EMPTY) + : super._subscribe(z); + } + next(z) { + this.hasCompleted || ((this.value = z), (this.hasNext = !0)); + } + error(z) { + this.hasCompleted || super.error(z); + } + complete() { + (this.hasCompleted = !0), + this.hasNext && super.next(this.value), + super.complete(); + } + } + function Ri() { + return (Ke) => (0, Mi.O)(new Wn())(Ke); + } + var Li = p(6686), + Vr = p(2268); + const Mr = new (class extends Vr.v {})( + class extends Li.o { + constructor(z, ce) { + super(z, ce), (this.scheduler = z), (this.work = ce); + } + schedule(z, ce = 0) { + return ce > 0 + ? super.schedule(z, ce) + : ((this.delay = ce), + (this.state = z), + this.scheduler.flush(this), + this); + } + execute(z, ce) { + return ce > 0 || this.closed + ? super.execute(z, ce) + : this._execute(z, ce); + } + requestAsyncId(z, ce, je = 0) { + return (null !== je && je > 0) || (null === je && this.delay > 0) + ? super.requestAsyncId(z, ce, je) + : z.flush(this); + } + } + ); + var cr = p(5279), + $r = p(5283); + class hr extends Ot.xQ { + constructor( + z = Number.POSITIVE_INFINITY, + ce = Number.POSITIVE_INFINITY, + je + ) { + super(), + (this.scheduler = je), + (this._events = []), + (this._infiniteTimeWindow = !1), + (this._bufferSize = z < 1 ? 1 : z), + (this._windowTime = ce < 1 ? 1 : ce), + ce === Number.POSITIVE_INFINITY + ? ((this._infiniteTimeWindow = !0), + (this.next = this.nextInfiniteTimeWindow)) + : (this.next = this.nextTimeWindow); + } + nextInfiniteTimeWindow(z) { + if (!this.isStopped) { + const ce = this._events; + ce.push(z), ce.length > this._bufferSize && ce.shift(); + } + super.next(z); + } + nextTimeWindow(z) { + this.isStopped || + (this._events.push(new qr(this._getNow(), z)), + this._trimBufferThenGetEvents()), + super.next(z); + } + _subscribe(z) { + const ce = this._infiniteTimeWindow, + je = ce ? this._events : this._trimBufferThenGetEvents(), + Mt = this.scheduler, + jt = je.length; + let ln; + if (this.closed) throw new cr.N(); + if ( + (this.isStopped || this.hasError + ? (ln = A.w.EMPTY) + : (this.observers.push(z), (ln = new $r.W(this, z))), + Mt && z.add((z = new pi(z, Mt))), + ce) + ) + for (let Hn = 0; Hn < jt && !z.closed; Hn++) z.next(je[Hn]); + else + for (let Hn = 0; Hn < jt && !z.closed; Hn++) z.next(je[Hn].value); + return ( + this.hasError + ? z.error(this.thrownError) + : this.isStopped && z.complete(), + ln + ); + } + _getNow() { + return (this.scheduler || Mr).now(); + } + _trimBufferThenGetEvents() { + const z = this._getNow(), + ce = this._bufferSize, + je = this._windowTime, + Mt = this._events, + jt = Mt.length; + let ln = 0; + for (; ln < jt && !(z - Mt[ln].time < je); ) ln++; + return ( + jt > ce && (ln = Math.max(ln, jt - ce)), + ln > 0 && Mt.splice(0, ln), + Mt + ); + } + } + class qr { + constructor(z, ce) { + (this.time = z), (this.value = ce); + } + } + function ir(Ke, z, ce, je) { + ce && "function" != typeof ce && (je = ce); + const Mt = "function" == typeof ce ? ce : void 0, + jt = new hr(Ke, z, je); + return (ln) => (0, Mi.O)(() => jt, Mt)(ln); + } + var Cr = p(1946); + function Sr(...Ke) { + return function (ce) { + return ( + 1 === Ke.length && (0, J.k)(Ke[0]) && (Ke = Ke[0]), + ce.lift.call((0, Cr.S3)(ce, ...Ke)) + ); + }; + } + var mr = p(8896); + function Hr(Ke = -1) { + return (z) => + 0 === Ke ? (0, mr.c)() : z.lift(new jr(Ke < 0 ? -1 : Ke - 1, z)); + } + class jr { + constructor(z, ce) { + (this.count = z), (this.source = ce); + } + call(z, ce) { + return ce.subscribe(new Wi(z, this.count, this.source)); + } + } + class Wi extends u.L { + constructor(z, ce, je) { + super(z), (this.count = ce), (this.source = je); + } + complete() { + if (!this.isStopped) { + const { source: z, count: ce } = this; + if (0 === ce) return super.complete(); + ce > -1 && (this.count = ce - 1), + z.subscribe(this._unsubscribeAndRecycle()); + } + } + } + function Wr(Ke) { + return (z) => z.lift(new Rr(Ke)); + } + class Rr { + constructor(z) { + this.notifier = z; + } + call(z, ce) { + return ce.subscribe(new Dr(z, this.notifier, ce)); + } + } + class Dr extends _.Ds { + constructor(z, ce, je) { + super(z), + (this.notifier = ce), + (this.source = je), + (this.sourceIsBeingSubscribedTo = !0); + } + notifyNext() { + (this.sourceIsBeingSubscribedTo = !0), this.source.subscribe(this); + } + notifyComplete() { + if (!1 === this.sourceIsBeingSubscribedTo) return super.complete(); + } + complete() { + if (((this.sourceIsBeingSubscribedTo = !1), !this.isStopped)) { + if ( + (this.retries || this.subscribeToRetries(), + !this.retriesSubscription || this.retriesSubscription.closed) + ) + return super.complete(); + this._unsubscribeAndRecycle(), this.notifications.next(void 0); + } + } + _unsubscribe() { + const { notifications: z, retriesSubscription: ce } = this; + z && (z.unsubscribe(), (this.notifications = void 0)), + ce && (ce.unsubscribe(), (this.retriesSubscription = void 0)), + (this.retries = void 0); + } + _unsubscribeAndRecycle() { + const { _unsubscribe: z } = this; + return ( + (this._unsubscribe = null), + super._unsubscribeAndRecycle(), + (this._unsubscribe = z), + this + ); + } + subscribeToRetries() { + let z; + this.notifications = new Ot.xQ(); + try { + const { notifier: ce } = this; + z = ce(this.notifications); + } catch (ce) { + return super.complete(); + } + (this.retries = z), + (this.retriesSubscription = (0, _.ft)(z, new _.IY(this))); + } + } + function Lr(Ke = -1) { + return (z) => z.lift(new Ji(Ke, z)); + } + class Ji { + constructor(z, ce) { + (this.count = z), (this.source = ce); + } + call(z, ce) { + return ce.subscribe(new Fr(z, this.count, this.source)); + } + } + class Fr extends u.L { + constructor(z, ce, je) { + super(z), (this.count = ce), (this.source = je); + } + error(z) { + if (!this.isStopped) { + const { source: ce, count: je } = this; + if (0 === je) return super.error(z); + je > -1 && (this.count = je - 1), + ce.subscribe(this._unsubscribeAndRecycle()); + } + } + } + function ls(Ke) { + return (z) => z.lift(new kr(Ke, z)); + } + class kr { + constructor(z, ce) { + (this.notifier = z), (this.source = ce); + } + call(z, ce) { + return ce.subscribe(new Jr(z, this.notifier, this.source)); + } + } + class Jr extends _.Ds { + constructor(z, ce, je) { + super(z), (this.notifier = ce), (this.source = je); + } + error(z) { + if (!this.isStopped) { + let ce = this.errors, + je = this.retries, + Mt = this.retriesSubscription; + if (je) (this.errors = void 0), (this.retriesSubscription = void 0); + else { + ce = new Ot.xQ(); + try { + const { notifier: jt } = this; + je = jt(ce); + } catch (jt) { + return super.error(jt); + } + Mt = (0, _.ft)(je, new _.IY(this)); + } + this._unsubscribeAndRecycle(), + (this.errors = ce), + (this.retries = je), + (this.retriesSubscription = Mt), + ce.next(z); + } + } + _unsubscribe() { + const { errors: z, retriesSubscription: ce } = this; + z && (z.unsubscribe(), (this.errors = void 0)), + ce && (ce.unsubscribe(), (this.retriesSubscription = void 0)), + (this.retries = void 0); + } + notifyNext() { + const { _unsubscribe: z } = this; + (this._unsubscribe = null), + this._unsubscribeAndRecycle(), + (this._unsubscribe = z), + this.source.subscribe(this); + } + } + var Tr = p(4327); + function us(Ke) { + return (z) => z.lift(new si(Ke)); + } + class si { + constructor(z) { + this.notifier = z; + } + call(z, ce) { + const je = new zr(z), + Mt = ce.subscribe(je); + return Mt.add((0, _.ft)(this.notifier, new _.IY(je))), Mt; + } + } + class zr extends _.Ds { + constructor() { + super(...arguments), (this.hasValue = !1); + } + _next(z) { + (this.value = z), (this.hasValue = !0); + } + notifyNext() { + this.emitValue(); + } + notifyComplete() { + this.emitValue(); + } + emitValue() { + this.hasValue && + ((this.hasValue = !1), this.destination.next(this.value)); + } + } + function Er(Ke, z = c.P) { + return (ce) => ce.lift(new be(Ke, z)); + } + class be { + constructor(z, ce) { + (this.period = z), (this.scheduler = ce); + } + call(z, ce) { + return ce.subscribe(new Q(z, this.period, this.scheduler)); + } + } + class Q extends u.L { + constructor(z, ce, je) { + super(z), + (this.period = ce), + (this.scheduler = je), + (this.hasValue = !1), + this.add(je.schedule(k, ce, { subscriber: this, period: ce })); + } + _next(z) { + (this.lastValue = z), (this.hasValue = !0); + } + notifyNext() { + this.hasValue && + ((this.hasValue = !1), this.destination.next(this.lastValue)); + } + } + function k(Ke) { + let { subscriber: z, period: ce } = Ke; + z.notifyNext(), this.schedule(Ke, ce); + } + var V = p(2014); + function ve(Ke, z) { + return (ce) => ce.lift(new nt(Ke, z)); + } + class nt { + constructor(z, ce) { + (this.compareTo = z), (this.comparator = ce); + } + call(z, ce) { + return ce.subscribe(new Nt(z, this.compareTo, this.comparator)); + } + } + class Nt extends u.L { + constructor(z, ce, je) { + super(z), + (this.compareTo = ce), + (this.comparator = je), + (this._a = []), + (this._b = []), + (this._oneComplete = !1), + this.destination.add(ce.subscribe(new nn(z, this))); + } + _next(z) { + this._oneComplete && 0 === this._b.length + ? this.emit(!1) + : (this._a.push(z), this.checkValues()); + } + _complete() { + this._oneComplete + ? this.emit(0 === this._a.length && 0 === this._b.length) + : (this._oneComplete = !0), + this.unsubscribe(); + } + checkValues() { + const { _a: z, _b: ce, comparator: je } = this; + for (; z.length > 0 && ce.length > 0; ) { + let Mt = z.shift(), + jt = ce.shift(), + ln = !1; + try { + ln = je ? je(Mt, jt) : Mt === jt; + } catch (Hn) { + this.destination.error(Hn); + } + ln || this.emit(!1); + } + } + emit(z) { + const { destination: ce } = this; + ce.next(z), ce.complete(); + } + nextB(z) { + this._oneComplete && 0 === this._a.length + ? this.emit(!1) + : (this._b.push(z), this.checkValues()); + } + completeB() { + this._oneComplete + ? this.emit(0 === this._a.length && 0 === this._b.length) + : (this._oneComplete = !0); + } + } + class nn extends u.L { + constructor(z, ce) { + super(z), (this.parent = ce); + } + _next(z) { + this.parent.nextB(z); + } + _error(z) { + this.parent.error(z), this.unsubscribe(); + } + _complete() { + this.parent.completeB(), this.unsubscribe(); + } + } + var In = p(8117); + function ni(Ke, z, ce) { + let je; + return ( + (je = + Ke && "object" == typeof Ke + ? Ke + : { bufferSize: Ke, windowTime: z, refCount: !1, scheduler: ce }), + (Mt) => + Mt.lift( + (function ({ + bufferSize: Ke = Number.POSITIVE_INFINITY, + windowTime: z = Number.POSITIVE_INFINITY, + refCount: ce, + scheduler: je, + }) { + let Mt, + ln, + jt = 0, + Hn = !1, + Ki = !1; + return function (oe) { + let q; + jt++, + !Mt || Hn + ? ((Hn = !1), + (Mt = new hr(Ke, z, je)), + (q = Mt.subscribe(this)), + (ln = oe.subscribe({ + next(Ce) { + Mt.next(Ce); + }, + error(Ce) { + (Hn = !0), Mt.error(Ce); + }, + complete() { + (Ki = !0), (ln = void 0), Mt.complete(); + }, + })), + Ki && (ln = void 0)) + : (q = Mt.subscribe(this)), + this.add(() => { + jt--, + q.unsubscribe(), + (q = void 0), + ln && + !Ki && + ce && + 0 === jt && + (ln.unsubscribe(), (ln = void 0), (Mt = void 0)); + }); + }; + })(je) + ) + ); + } + var ai = p(4450); + function hi(Ke) { + return (z) => z.lift(new Ei(Ke, z)); + } + class Ei { + constructor(z, ce) { + (this.predicate = z), (this.source = ce); + } + call(z, ce) { + return ce.subscribe(new ki(z, this.predicate, this.source)); + } + } + class ki extends u.L { + constructor(z, ce, je) { + super(z), + (this.predicate = ce), + (this.source = je), + (this.seenValue = !1), + (this.index = 0); + } + applySingleValue(z) { + this.seenValue + ? this.destination.error("Sequence contains more than one element") + : ((this.seenValue = !0), (this.singleValue = z)); + } + _next(z) { + const ce = this.index++; + this.predicate ? this.tryNext(z, ce) : this.applySingleValue(z); + } + tryNext(z, ce) { + try { + this.predicate(z, ce, this.source) && this.applySingleValue(z); + } catch (je) { + this.destination.error(je); + } + } + _complete() { + const z = this.destination; + this.index > 0 + ? (z.next(this.seenValue ? this.singleValue : void 0), z.complete()) + : z.error(new ai.K()); + } + } + var xn = p(1307); + function Kr(Ke) { + return (z) => z.lift(new rr(Ke)); + } + class rr { + constructor(z) { + if (((this._skipCount = z), this._skipCount < 0)) throw new St.W(); + } + call(z, ce) { + return ce.subscribe( + 0 === this._skipCount ? new u.L(z) : new xr(z, this._skipCount) + ); + } + } + class xr extends u.L { + constructor(z, ce) { + super(z), + (this._skipCount = ce), + (this._count = 0), + (this._ring = new Array(ce)); + } + _next(z) { + const ce = this._skipCount, + je = this._count++; + if (je < ce) this._ring[je] = z; + else { + const Mt = je % ce, + jt = this._ring, + ln = jt[Mt]; + (jt[Mt] = z), this.destination.next(ln); + } + } + } + function cs(Ke) { + return (z) => z.lift(new es(Ke)); + } + class es { + constructor(z) { + this.notifier = z; + } + call(z, ce) { + return ce.subscribe(new ds(z, this.notifier)); + } + } + class ds extends _.Ds { + constructor(z, ce) { + super(z), (this.hasValue = !1); + const je = new _.IY(this); + this.add(je), (this.innerSubscription = je); + const Mt = (0, _.ft)(ce, je); + Mt !== je && (this.add(Mt), (this.innerSubscription = Mt)); + } + _next(z) { + this.hasValue && super._next(z); + } + notifyNext() { + (this.hasValue = !0), + this.innerSubscription && this.innerSubscription.unsubscribe(); + } + notifyComplete() {} + } + function Bs(Ke) { + return (z) => z.lift(new we(Ke)); + } + class we { + constructor(z) { + this.predicate = z; + } + call(z, ce) { + return ce.subscribe(new N(z, this.predicate)); + } + } + class N extends u.L { + constructor(z, ce) { + super(z), + (this.predicate = ce), + (this.skipping = !0), + (this.index = 0); + } + _next(z) { + const ce = this.destination; + this.skipping && this.tryCallPredicate(z), + this.skipping || ce.next(z); + } + tryCallPredicate(z) { + try { + const ce = this.predicate(z, this.index++); + this.skipping = Boolean(ce); + } catch (ce) { + this.destination.error(ce); + } + } + } + var G = p(1059), + pe = p(8139), + Ae = p(4241); + class We extends Tt.y { + constructor(z, ce = 0, je = pe.e) { + super(), + (this.source = z), + (this.delayTime = ce), + (this.scheduler = je), + (!(0, Ae.k)(ce) || ce < 0) && (this.delayTime = 0), + (!je || "function" != typeof je.schedule) && + (this.scheduler = pe.e); + } + static create(z, ce = 0, je = pe.e) { + return new We(z, ce, je); + } + static dispatch(z) { + const { source: ce, subscriber: je } = z; + return this.add(ce.subscribe(je)); + } + _subscribe(z) { + return this.scheduler.schedule(We.dispatch, this.delayTime, { + source: this.source, + subscriber: z, + }); + } + } + function rt(Ke, z = 0) { + return function (je) { + return je.lift(new dt(Ke, z)); + }; + } + class dt { + constructor(z, ce) { + (this.scheduler = z), (this.delay = ce); + } + call(z, ce) { + return new We(ce, this.delay, this.scheduler).subscribe(z); + } + } + var Rt = p(7545), + Gt = p(5379); + function rn() { + return (0, Rt.w)(Gt.y); + } + function pn(Ke, z) { + return z ? (0, Rt.w)(() => Ke, z) : (0, Rt.w)(() => Ke); + } + var Pn = p(2821), + Ln = p(7625), + _n = p(4290), + Bn = p(2868); + const Kn = { leading: !0, trailing: !1 }; + function _i(Ke, z = Kn) { + return (ce) => ce.lift(new xi(Ke, !!z.leading, !!z.trailing)); + } + class xi { + constructor(z, ce, je) { + (this.durationSelector = z), + (this.leading = ce), + (this.trailing = je); + } + call(z, ce) { + return ce.subscribe( + new sr(z, this.durationSelector, this.leading, this.trailing) + ); + } + } + class sr extends _.Ds { + constructor(z, ce, je, Mt) { + super(z), + (this.destination = z), + (this.durationSelector = ce), + (this._leading = je), + (this._trailing = Mt), + (this._hasValue = !1); + } + _next(z) { + (this._hasValue = !0), + (this._sendValue = z), + this._throttled || (this._leading ? this.send() : this.throttle(z)); + } + send() { + const { _hasValue: z, _sendValue: ce } = this; + z && (this.destination.next(ce), this.throttle(ce)), + (this._hasValue = !1), + (this._sendValue = void 0); + } + throttle(z) { + const ce = this.tryDurationSelector(z); + ce && this.add((this._throttled = (0, _.ft)(ce, new _.IY(this)))); + } + tryDurationSelector(z) { + try { + return this.durationSelector(z); + } catch (ce) { + return this.destination.error(ce), null; + } + } + throttlingDone() { + const { _throttled: z, _trailing: ce } = this; + z && z.unsubscribe(), (this._throttled = void 0), ce && this.send(); + } + notifyNext() { + this.throttlingDone(); + } + notifyComplete() { + this.throttlingDone(); + } + } + function Qi(Ke, z = c.P, ce = Kn) { + return (je) => je.lift(new Nr(Ke, z, ce.leading, ce.trailing)); + } + class Nr { + constructor(z, ce, je, Mt) { + (this.duration = z), + (this.scheduler = ce), + (this.leading = je), + (this.trailing = Mt); + } + call(z, ce) { + return ce.subscribe( + new fr( + z, + this.duration, + this.scheduler, + this.leading, + this.trailing + ) + ); + } + } + class fr extends u.L { + constructor(z, ce, je, Mt, jt) { + super(z), + (this.duration = ce), + (this.scheduler = je), + (this.leading = Mt), + (this.trailing = jt), + (this._hasTrailingValue = !1), + (this._trailingValue = null); + } + _next(z) { + this.throttled + ? this.trailing && + ((this._trailingValue = z), (this._hasTrailingValue = !0)) + : (this.add( + (this.throttled = this.scheduler.schedule(Xi, this.duration, { + subscriber: this, + })) + ), + this.leading + ? this.destination.next(z) + : this.trailing && + ((this._trailingValue = z), (this._hasTrailingValue = !0))); + } + _complete() { + this._hasTrailingValue + ? (this.destination.next(this._trailingValue), + this.destination.complete()) + : this.destination.complete(); + } + clearThrottle() { + const z = this.throttled; + z && + (this.trailing && + this._hasTrailingValue && + (this.destination.next(this._trailingValue), + (this._trailingValue = null), + (this._hasTrailingValue = !1)), + z.unsubscribe(), + this.remove(z), + (this.throttled = null)); + } + } + function Xi(Ke) { + const { subscriber: z } = Ke; + z.clearThrottle(); + } + var gr = p(8514); + function zi(Ke = c.P) { + return (z) => + (0, gr.P)(() => + z.pipe( + (0, V.R)( + ({ current: ce }, je) => ({ + value: je, + current: Ke.now(), + last: ce, + }), + { current: Ke.now(), value: void 0, last: void 0 } + ), + (0, Se.U)( + ({ current: ce, last: je, value: Mt }) => new Pr(Mt, ce - je) + ) + ) + ); + } + class Pr { + constructor(z, ce) { + (this.value = z), (this.interval = ce); + } + } + var ys = p(7e3), + Yi = p(2431); + function Ur(Ke = c.P) { + return (0, Se.U)((z) => new bs(z, Ke.now())); + } + class bs { + constructor(z, ce) { + (this.value = z), (this.timestamp = ce); + } + } + var Cs = p(864); + function mn(Ke) { + return function (ce) { + return ce.lift(new Mn(Ke)); + }; + } + class Mn { + constructor(z) { + this.windowBoundaries = z; + } + call(z, ce) { + const je = new En(z), + Mt = ce.subscribe(je); + return ( + Mt.closed || je.add((0, _.ft)(this.windowBoundaries, new _.IY(je))), + Mt + ); + } + } + class En extends _.Ds { + constructor(z) { + super(z), (this.window = new Ot.xQ()), z.next(this.window); + } + notifyNext() { + this.openWindow(); + } + notifyError(z) { + this._error(z); + } + notifyComplete() { + this._complete(); + } + _next(z) { + this.window.next(z); + } + _error(z) { + this.window.error(z), this.destination.error(z); + } + _complete() { + this.window.complete(), this.destination.complete(); + } + _unsubscribe() { + this.window = null; + } + openWindow() { + const z = this.window; + z && z.complete(); + const ce = this.destination, + je = (this.window = new Ot.xQ()); + ce.next(je); + } + } + function li(Ke, z = 0) { + return function (je) { + return je.lift(new ii(Ke, z)); + }; + } + class ii { + constructor(z, ce) { + (this.windowSize = z), (this.startWindowEvery = ce); + } + call(z, ce) { + return ce.subscribe( + new Hi(z, this.windowSize, this.startWindowEvery) + ); + } + } + class Hi extends u.L { + constructor(z, ce, je) { + super(z), + (this.destination = z), + (this.windowSize = ce), + (this.startWindowEvery = je), + (this.windows = [new Ot.xQ()]), + (this.count = 0), + z.next(this.windows[0]); + } + _next(z) { + const ce = + this.startWindowEvery > 0 + ? this.startWindowEvery + : this.windowSize, + je = this.destination, + Mt = this.windowSize, + jt = this.windows, + ln = jt.length; + for (let Ki = 0; Ki < ln && !this.closed; Ki++) jt[Ki].next(z); + const Hn = this.count - Mt + 1; + if ( + (Hn >= 0 && Hn % ce == 0 && !this.closed && jt.shift().complete(), + ++this.count % ce == 0 && !this.closed) + ) { + const Ki = new Ot.xQ(); + jt.push(Ki), je.next(Ki); + } + } + _error(z) { + const ce = this.windows; + if (ce) for (; ce.length > 0 && !this.closed; ) ce.shift().error(z); + this.destination.error(z); + } + _complete() { + const z = this.windows; + if (z) for (; z.length > 0 && !this.closed; ) z.shift().complete(); + this.destination.complete(); + } + _unsubscribe() { + (this.count = 0), (this.windows = null); + } + } + function Zn(Ke) { + let z = c.P, + ce = null, + je = Number.POSITIVE_INFINITY; + return ( + (0, l.K)(arguments[3]) && (z = arguments[3]), + (0, l.K)(arguments[2]) + ? (z = arguments[2]) + : (0, Ae.k)(arguments[2]) && (je = Number(arguments[2])), + (0, l.K)(arguments[1]) + ? (z = arguments[1]) + : (0, Ae.k)(arguments[1]) && (ce = Number(arguments[1])), + function (jt) { + return jt.lift(new dr(Ke, ce, je, z)); + } + ); + } + class dr { + constructor(z, ce, je, Mt) { + (this.windowTimeSpan = z), + (this.windowCreationInterval = ce), + (this.maxWindowSize = je), + (this.scheduler = Mt); + } + call(z, ce) { + return ce.subscribe( + new Es( + z, + this.windowTimeSpan, + this.windowCreationInterval, + this.maxWindowSize, + this.scheduler + ) + ); + } + } + class Si extends Ot.xQ { + constructor() { + super(...arguments), (this._numberOfNextedValues = 0); + } + next(z) { + this._numberOfNextedValues++, super.next(z); + } + get numberOfNextedValues() { + return this._numberOfNextedValues; + } + } + class Es extends u.L { + constructor(z, ce, je, Mt, jt) { + super(z), + (this.destination = z), + (this.windowTimeSpan = ce), + (this.windowCreationInterval = je), + (this.maxWindowSize = Mt), + (this.scheduler = jt), + (this.windows = []); + const ln = this.openWindow(); + if (null !== je && je >= 0) { + const Ki = { + windowTimeSpan: ce, + windowCreationInterval: je, + subscriber: this, + scheduler: jt, + }; + this.add( + jt.schedule(ar, ce, { + subscriber: this, + window: ln, + context: null, + }) + ), + this.add(jt.schedule(or, je, Ki)); + } else + this.add( + jt.schedule(ws, ce, { + subscriber: this, + window: ln, + windowTimeSpan: ce, + }) + ); + } + _next(z) { + const ce = this.windows, + je = ce.length; + for (let Mt = 0; Mt < je; Mt++) { + const jt = ce[Mt]; + jt.closed || + (jt.next(z), + jt.numberOfNextedValues >= this.maxWindowSize && + this.closeWindow(jt)); + } + } + _error(z) { + const ce = this.windows; + for (; ce.length > 0; ) ce.shift().error(z); + this.destination.error(z); + } + _complete() { + const z = this.windows; + for (; z.length > 0; ) { + const ce = z.shift(); + ce.closed || ce.complete(); + } + this.destination.complete(); + } + openWindow() { + const z = new Si(); + return this.windows.push(z), this.destination.next(z), z; + } + closeWindow(z) { + z.complete(); + const ce = this.windows; + ce.splice(ce.indexOf(z), 1); + } + } + function ws(Ke) { + const { subscriber: z, windowTimeSpan: ce, window: je } = Ke; + je && z.closeWindow(je), + (Ke.window = z.openWindow()), + this.schedule(Ke, ce); + } + function or(Ke) { + const { + windowTimeSpan: z, + subscriber: ce, + scheduler: je, + windowCreationInterval: Mt, + } = Ke, + jt = ce.openWindow(); + let Hn = { action: this, subscription: null }; + (Hn.subscription = je.schedule(ar, z, { + subscriber: ce, + window: jt, + context: Hn, + })), + this.add(Hn.subscription), + this.schedule(Ke, Mt); + } + function ar(Ke) { + const { subscriber: z, window: ce, context: je } = Ke; + je && je.action && je.subscription && je.action.remove(je.subscription), + z.closeWindow(ce); + } + function Ir(Ke, z) { + return (ce) => ce.lift(new _r(Ke, z)); + } + class _r { + constructor(z, ce) { + (this.openings = z), (this.closingSelector = ce); + } + call(z, ce) { + return ce.subscribe(new ts(z, this.openings, this.closingSelector)); + } + } + class ts extends w.L { + constructor(z, ce, je) { + super(z), + (this.openings = ce), + (this.closingSelector = je), + (this.contexts = []), + this.add((this.openSubscription = (0, S.D)(this, ce, ce))); + } + _next(z) { + const { contexts: ce } = this; + if (ce) { + const je = ce.length; + for (let Mt = 0; Mt < je; Mt++) ce[Mt].window.next(z); + } + } + _error(z) { + const { contexts: ce } = this; + if (((this.contexts = null), ce)) { + const je = ce.length; + let Mt = -1; + for (; ++Mt < je; ) { + const jt = ce[Mt]; + jt.window.error(z), jt.subscription.unsubscribe(); + } + } + super._error(z); + } + _complete() { + const { contexts: z } = this; + if (((this.contexts = null), z)) { + const ce = z.length; + let je = -1; + for (; ++je < ce; ) { + const Mt = z[je]; + Mt.window.complete(), Mt.subscription.unsubscribe(); + } + } + super._complete(); + } + _unsubscribe() { + const { contexts: z } = this; + if (((this.contexts = null), z)) { + const ce = z.length; + let je = -1; + for (; ++je < ce; ) { + const Mt = z[je]; + Mt.window.unsubscribe(), Mt.subscription.unsubscribe(); + } + } + } + notifyNext(z, ce, je, Mt, jt) { + if (z === this.openings) { + let ln; + try { + const { closingSelector: q } = this; + ln = q(ce); + } catch (q) { + return this.error(q); + } + const Hn = new Ot.xQ(), + Ki = new A.w(), + me = { window: Hn, subscription: Ki }; + this.contexts.push(me); + const oe = (0, S.D)(this, ln, me); + oe.closed + ? this.closeWindow(this.contexts.length - 1) + : ((oe.context = me), Ki.add(oe)), + this.destination.next(Hn); + } else this.closeWindow(this.contexts.indexOf(z)); + } + notifyError(z) { + this.error(z); + } + notifyComplete(z) { + z !== this.openSubscription && + this.closeWindow(this.contexts.indexOf(z.context)); + } + closeWindow(z) { + if (-1 === z) return; + const { contexts: ce } = this, + je = ce[z], + { window: Mt, subscription: jt } = je; + ce.splice(z, 1), Mt.complete(), jt.unsubscribe(); + } + } + function Br(Ke) { + return function (ce) { + return ce.lift(new Vs(Ke)); + }; + } + class Vs { + constructor(z) { + this.closingSelector = z; + } + call(z, ce) { + return ce.subscribe(new qs(z, this.closingSelector)); + } + } + class qs extends w.L { + constructor(z, ce) { + super(z), + (this.destination = z), + (this.closingSelector = ce), + this.openWindow(); + } + notifyNext(z, ce, je, Mt, jt) { + this.openWindow(jt); + } + notifyError(z) { + this._error(z); + } + notifyComplete(z) { + this.openWindow(z); + } + _next(z) { + this.window.next(z); + } + _error(z) { + this.window.error(z), + this.destination.error(z), + this.unsubscribeClosingNotification(); + } + _complete() { + this.window.complete(), + this.destination.complete(), + this.unsubscribeClosingNotification(); + } + unsubscribeClosingNotification() { + this.closingNotification && this.closingNotification.unsubscribe(); + } + openWindow(z = null) { + z && (this.remove(z), z.unsubscribe()); + const ce = this.window; + ce && ce.complete(); + const je = (this.window = new Ot.xQ()); + let Mt; + this.destination.next(je); + try { + const { closingSelector: jt } = this; + Mt = jt(); + } catch (jt) { + return this.destination.error(jt), void this.window.error(jt); + } + this.add((this.closingNotification = (0, S.D)(this, Mt))); + } + } + function ns(...Ke) { + return (z) => { + let ce; + return ( + "function" == typeof Ke[Ke.length - 1] && (ce = Ke.pop()), + z.lift(new rs(Ke, ce)) + ); + }; + } + class rs { + constructor(z, ce) { + (this.observables = z), (this.project = ce); + } + call(z, ce) { + return ce.subscribe(new $s(z, this.observables, this.project)); + } + } + class $s extends w.L { + constructor(z, ce, je) { + super(z), + (this.observables = ce), + (this.project = je), + (this.toRespond = []); + const Mt = ce.length; + this.values = new Array(Mt); + for (let jt = 0; jt < Mt; jt++) this.toRespond.push(jt); + for (let jt = 0; jt < Mt; jt++) + this.add((0, S.D)(this, ce[jt], void 0, jt)); + } + notifyNext(z, ce, je) { + this.values[je] = ce; + const Mt = this.toRespond; + if (Mt.length > 0) { + const jt = Mt.indexOf(je); + -1 !== jt && Mt.splice(jt, 1); + } + } + notifyComplete() {} + _next(z) { + if (0 === this.toRespond.length) { + const ce = [z, ...this.values]; + this.project ? this._tryProject(ce) : this.destination.next(ce); + } + } + _tryProject(z) { + let ce; + try { + ce = this.project.apply(this, z); + } catch (je) { + return void this.destination.error(je); + } + this.destination.next(ce); + } + } + var Js = p(1746); + function Ms(...Ke) { + return function (ce) { + return ce.lift.call((0, Js.$R)(ce, ...Ke)); + }; + } + function Ss(Ke) { + return (z) => z.lift(new Js.mx(Ke)); + } + }, + 8951: (ye) => { + "use strict"; + ye.exports = (j, p) => { + if ("string" != typeof j || "string" != typeof p) + throw new TypeError("Expected the arguments to be of type `string`"); + if ("" === p) return [j]; + const n = j.indexOf(p); + return -1 === n ? [j] : [j.slice(0, n), j.slice(n + p.length)]; + }; + }, + 8372: (ye) => { + "use strict"; + ye.exports = (j) => + encodeURIComponent(j).replace( + /[!'()*]/g, + (p) => `%${p.charCodeAt(0).toString(16).toUpperCase()}` + ); + }, + 8926: (ye) => { + function j(n, f, _, m, s, d, u) { + try { + var h = n[d](u), + r = h.value; + } catch (o) { + return void _(o); + } + h.done ? f(r) : Promise.resolve(r).then(m, s); + } + (ye.exports = function (n) { + return function () { + var f = this, + _ = arguments; + return new Promise(function (m, s) { + var d = n.apply(f, _); + function u(r) { + j(d, m, s, u, h, "next", r); + } + function h(r) { + j(d, m, s, u, h, "throw", r); + } + u(void 0); + }); + }; + }), + (ye.exports.default = ye.exports), + (ye.exports.__esModule = !0); + }, + 655: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + __extends: () => f, + __assign: () => _, + __rest: () => m, + __decorate: () => s, + __param: () => d, + __metadata: () => u, + __awaiter: () => h, + __generator: () => r, + __createBinding: () => o, + __exportStar: () => i, + __values: () => c, + __read: () => l, + __spread: () => g, + __spreadArrays: () => b, + __spreadArray: () => y, + __await: () => x, + __asyncGenerator: () => T, + __asyncDelegator: () => O, + __asyncValues: () => M, + __makeTemplateObject: () => A, + __importStar: () => w, + __importDefault: () => I, + __classPrivateFieldGet: () => C, + __classPrivateFieldSet: () => L, + }); + var n = function (F, ie) { + return (n = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (Y, Z) { + Y.__proto__ = Z; + }) || + function (Y, Z) { + for (var ee in Z) + Object.prototype.hasOwnProperty.call(Z, ee) && (Y[ee] = Z[ee]); + })(F, ie); + }; + function f(F, ie) { + if ("function" != typeof ie && null !== ie) + throw new TypeError( + "Class extends value " + + String(ie) + + " is not a constructor or null" + ); + function Y() { + this.constructor = F; + } + n(F, ie), + (F.prototype = + null === ie + ? Object.create(ie) + : ((Y.prototype = ie.prototype), new Y())); + } + var _ = function () { + return ( + (_ = + Object.assign || + function (ie) { + for (var Y, Z = 1, ee = arguments.length; Z < ee; Z++) + for (var $ in (Y = arguments[Z])) + Object.prototype.hasOwnProperty.call(Y, $) && (ie[$] = Y[$]); + return ie; + }), + _.apply(this, arguments) + ); + }; + function m(F, ie) { + var Y = {}; + for (var Z in F) + Object.prototype.hasOwnProperty.call(F, Z) && + ie.indexOf(Z) < 0 && + (Y[Z] = F[Z]); + if (null != F && "function" == typeof Object.getOwnPropertySymbols) { + var ee = 0; + for (Z = Object.getOwnPropertySymbols(F); ee < Z.length; ee++) + ie.indexOf(Z[ee]) < 0 && + Object.prototype.propertyIsEnumerable.call(F, Z[ee]) && + (Y[Z[ee]] = F[Z[ee]]); + } + return Y; + } + function s(F, ie, Y, Z) { + var J, + ee = arguments.length, + $ = + ee < 3 + ? ie + : null === Z + ? (Z = Object.getOwnPropertyDescriptor(ie, Y)) + : Z; + if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) + $ = Reflect.decorate(F, ie, Y, Z); + else + for (var ne = F.length - 1; ne >= 0; ne--) + (J = F[ne]) && + ($ = (ee < 3 ? J($) : ee > 3 ? J(ie, Y, $) : J(ie, Y)) || $); + return ee > 3 && $ && Object.defineProperty(ie, Y, $), $; + } + function d(F, ie) { + return function (Y, Z) { + ie(Y, Z, F); + }; + } + function u(F, ie) { + if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) + return Reflect.metadata(F, ie); + } + function h(F, ie, Y, Z) { + return new (Y || (Y = Promise))(function ($, J) { + function ne(Oe) { + try { + le(Z.next(Oe)); + } catch (Le) { + J(Le); + } + } + function ae(Oe) { + try { + le(Z.throw(Oe)); + } catch (Le) { + J(Le); + } + } + function le(Oe) { + Oe.done + ? $(Oe.value) + : (function ($) { + return $ instanceof Y + ? $ + : new Y(function (J) { + J($); + }); + })(Oe.value).then(ne, ae); + } + le((Z = Z.apply(F, ie || [])).next()); + }); + } + function r(F, ie) { + var Z, + ee, + $, + J, + Y = { + label: 0, + sent: function () { + if (1 & $[0]) throw $[1]; + return $[1]; + }, + trys: [], + ops: [], + }; + return ( + (J = { next: ne(0), throw: ne(1), return: ne(2) }), + "function" == typeof Symbol && + (J[Symbol.iterator] = function () { + return this; + }), + J + ); + function ne(le) { + return function (Oe) { + return (function (le) { + if (Z) throw new TypeError("Generator is already executing."); + for (; Y; ) + try { + if ( + ((Z = 1), + ee && + ($ = + 2 & le[0] + ? ee.return + : le[0] + ? ee.throw || (($ = ee.return) && $.call(ee), 0) + : ee.next) && + !($ = $.call(ee, le[1])).done) + ) + return $; + switch (((ee = 0), $ && (le = [2 & le[0], $.value]), le[0])) { + case 0: + case 1: + $ = le; + break; + case 4: + return Y.label++, { value: le[1], done: !1 }; + case 5: + Y.label++, (ee = le[1]), (le = [0]); + continue; + case 7: + (le = Y.ops.pop()), Y.trys.pop(); + continue; + default: + if ( + !($ = ($ = Y.trys).length > 0 && $[$.length - 1]) && + (6 === le[0] || 2 === le[0]) + ) { + Y = 0; + continue; + } + if ( + 3 === le[0] && + (!$ || (le[1] > $[0] && le[1] < $[3])) + ) { + Y.label = le[1]; + break; + } + if (6 === le[0] && Y.label < $[1]) { + (Y.label = $[1]), ($ = le); + break; + } + if ($ && Y.label < $[2]) { + (Y.label = $[2]), Y.ops.push(le); + break; + } + $[2] && Y.ops.pop(), Y.trys.pop(); + continue; + } + le = ie.call(F, Y); + } catch (Oe) { + (le = [6, Oe]), (ee = 0); + } finally { + Z = $ = 0; + } + if (5 & le[0]) throw le[1]; + return { value: le[0] ? le[1] : void 0, done: !0 }; + })([le, Oe]); + }; + } + } + var o = Object.create + ? function (F, ie, Y, Z) { + void 0 === Z && (Z = Y), + Object.defineProperty(F, Z, { + enumerable: !0, + get: function () { + return ie[Y]; + }, + }); + } + : function (F, ie, Y, Z) { + void 0 === Z && (Z = Y), (F[Z] = ie[Y]); + }; + function i(F, ie) { + for (var Y in F) + "default" !== Y && + !Object.prototype.hasOwnProperty.call(ie, Y) && + o(ie, F, Y); + } + function c(F) { + var ie = "function" == typeof Symbol && Symbol.iterator, + Y = ie && F[ie], + Z = 0; + if (Y) return Y.call(F); + if (F && "number" == typeof F.length) + return { + next: function () { + return ( + F && Z >= F.length && (F = void 0), + { value: F && F[Z++], done: !F } + ); + }, + }; + throw new TypeError( + ie ? "Object is not iterable." : "Symbol.iterator is not defined." + ); + } + function l(F, ie) { + var Y = "function" == typeof Symbol && F[Symbol.iterator]; + if (!Y) return F; + var ee, + J, + Z = Y.call(F), + $ = []; + try { + for (; (void 0 === ie || ie-- > 0) && !(ee = Z.next()).done; ) + $.push(ee.value); + } catch (ne) { + J = { error: ne }; + } finally { + try { + ee && !ee.done && (Y = Z.return) && Y.call(Z); + } finally { + if (J) throw J.error; + } + } + return $; + } + function g() { + for (var F = [], ie = 0; ie < arguments.length; ie++) + F = F.concat(l(arguments[ie])); + return F; + } + function b() { + for (var F = 0, ie = 0, Y = arguments.length; ie < Y; ie++) + F += arguments[ie].length; + var Z = Array(F), + ee = 0; + for (ie = 0; ie < Y; ie++) + for (var $ = arguments[ie], J = 0, ne = $.length; J < ne; J++, ee++) + Z[ee] = $[J]; + return Z; + } + function y(F, ie) { + for (var Y = 0, Z = ie.length, ee = F.length; Y < Z; Y++, ee++) + F[ee] = ie[Y]; + return F; + } + function x(F) { + return this instanceof x ? ((this.v = F), this) : new x(F); + } + function T(F, ie, Y) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var ee, + Z = Y.apply(F, ie || []), + $ = []; + return ( + (ee = {}), + J("next"), + J("throw"), + J("return"), + (ee[Symbol.asyncIterator] = function () { + return this; + }), + ee + ); + function J(Ye) { + Z[Ye] && + (ee[Ye] = function (Je) { + return new Promise(function (gt, Ue) { + $.push([Ye, Je, gt, Ue]) > 1 || ne(Ye, Je); + }); + }); + } + function ne(Ye, Je) { + try { + !(function (Ye) { + Ye.value instanceof x + ? Promise.resolve(Ye.value.v).then(le, Oe) + : Le($[0][2], Ye); + })(Z[Ye](Je)); + } catch (gt) { + Le($[0][3], gt); + } + } + function le(Ye) { + ne("next", Ye); + } + function Oe(Ye) { + ne("throw", Ye); + } + function Le(Ye, Je) { + Ye(Je), $.shift(), $.length && ne($[0][0], $[0][1]); + } + } + function O(F) { + var ie, Y; + return ( + (ie = {}), + Z("next"), + Z("throw", function (ee) { + throw ee; + }), + Z("return"), + (ie[Symbol.iterator] = function () { + return this; + }), + ie + ); + function Z(ee, $) { + ie[ee] = F[ee] + ? function (J) { + return (Y = !Y) + ? { value: x(F[ee](J)), done: "return" === ee } + : $ + ? $(J) + : J; + } + : $; + } + } + function M(F) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var Y, + ie = F[Symbol.asyncIterator]; + return ie + ? ie.call(F) + : ((F = c(F)), + (Y = {}), + Z("next"), + Z("throw"), + Z("return"), + (Y[Symbol.asyncIterator] = function () { + return this; + }), + Y); + function Z($) { + Y[$] = + F[$] && + function (J) { + return new Promise(function (ne, ae) { + !(function ($, J, ne, ae) { + Promise.resolve(ae).then(function (le) { + $({ value: le, done: ne }); + }, J); + })(ne, ae, (J = F[$](J)).done, J.value); + }); + }; + } + } + function A(F, ie) { + return ( + Object.defineProperty + ? Object.defineProperty(F, "raw", { value: ie }) + : (F.raw = ie), + F + ); + } + var S = Object.create + ? function (F, ie) { + Object.defineProperty(F, "default", { enumerable: !0, value: ie }); + } + : function (F, ie) { + F.default = ie; + }; + function w(F) { + if (F && F.__esModule) return F; + var ie = {}; + if (null != F) + for (var Y in F) + "default" !== Y && + Object.prototype.hasOwnProperty.call(F, Y) && + o(ie, F, Y); + return S(ie, F), ie; + } + function I(F) { + return F && F.__esModule ? F : { default: F }; + } + function C(F, ie) { + if (!ie.has(F)) + throw new TypeError("attempted to get private field on non-instance"); + return ie.get(F); + } + function L(F, ie, Y) { + if (!ie.has(F)) + throw new TypeError("attempted to set private field on non-instance"); + return ie.set(F, Y), Y; + } + }, + 1777: (ye, j, p) => { + "use strict"; + p.d(j, { + l3: () => _, + _j: () => n, + LC: () => f, + ZN: () => T, + jt: () => s, + pV: () => l, + F4: () => o, + IO: () => b, + vP: () => u, + SB: () => r, + oB: () => h, + eR: () => i, + X$: () => m, + ZE: () => O, + k1: () => M, + }); + class n {} + class f {} + const _ = "*"; + function m(A, S) { + return { type: 7, name: A, definitions: S, options: {} }; + } + function s(A, S = null) { + return { type: 4, styles: S, timings: A }; + } + function u(A, S = null) { + return { type: 2, steps: A, options: S }; + } + function h(A) { + return { type: 6, styles: A, offset: null }; + } + function r(A, S, w) { + return { type: 0, name: A, styles: S, options: w }; + } + function o(A) { + return { type: 5, steps: A }; + } + function i(A, S, w = null) { + return { type: 1, expr: A, animation: S, options: w }; + } + function l(A = null) { + return { type: 9, options: A }; + } + function b(A, S, w = null) { + return { type: 11, selector: A, animation: S, options: w }; + } + function x(A) { + Promise.resolve(null).then(A); + } + class T { + constructor(S = 0, w = 0) { + (this._onDoneFns = []), + (this._onStartFns = []), + (this._onDestroyFns = []), + (this._started = !1), + (this._destroyed = !1), + (this._finished = !1), + (this._position = 0), + (this.parentPlayer = null), + (this.totalTime = S + w); + } + _onFinish() { + this._finished || + ((this._finished = !0), + this._onDoneFns.forEach((S) => S()), + (this._onDoneFns = [])); + } + onStart(S) { + this._onStartFns.push(S); + } + onDone(S) { + this._onDoneFns.push(S); + } + onDestroy(S) { + this._onDestroyFns.push(S); + } + hasStarted() { + return this._started; + } + init() {} + play() { + this.hasStarted() || (this._onStart(), this.triggerMicrotask()), + (this._started = !0); + } + triggerMicrotask() { + x(() => this._onFinish()); + } + _onStart() { + this._onStartFns.forEach((S) => S()), (this._onStartFns = []); + } + pause() {} + restart() {} + finish() { + this._onFinish(); + } + destroy() { + this._destroyed || + ((this._destroyed = !0), + this.hasStarted() || this._onStart(), + this.finish(), + this._onDestroyFns.forEach((S) => S()), + (this._onDestroyFns = [])); + } + reset() { + this._started = !1; + } + setPosition(S) { + this._position = this.totalTime ? S * this.totalTime : 1; + } + getPosition() { + return this.totalTime ? this._position / this.totalTime : 1; + } + triggerCallback(S) { + const w = "start" == S ? this._onStartFns : this._onDoneFns; + w.forEach((I) => I()), (w.length = 0); + } + } + class O { + constructor(S) { + (this._onDoneFns = []), + (this._onStartFns = []), + (this._finished = !1), + (this._started = !1), + (this._destroyed = !1), + (this._onDestroyFns = []), + (this.parentPlayer = null), + (this.totalTime = 0), + (this.players = S); + let w = 0, + I = 0, + C = 0; + const L = this.players.length; + 0 == L + ? x(() => this._onFinish()) + : this.players.forEach((F) => { + F.onDone(() => { + ++w == L && this._onFinish(); + }), + F.onDestroy(() => { + ++I == L && this._onDestroy(); + }), + F.onStart(() => { + ++C == L && this._onStart(); + }); + }), + (this.totalTime = this.players.reduce( + (F, ie) => Math.max(F, ie.totalTime), + 0 + )); + } + _onFinish() { + this._finished || + ((this._finished = !0), + this._onDoneFns.forEach((S) => S()), + (this._onDoneFns = [])); + } + init() { + this.players.forEach((S) => S.init()); + } + onStart(S) { + this._onStartFns.push(S); + } + _onStart() { + this.hasStarted() || + ((this._started = !0), + this._onStartFns.forEach((S) => S()), + (this._onStartFns = [])); + } + onDone(S) { + this._onDoneFns.push(S); + } + onDestroy(S) { + this._onDestroyFns.push(S); + } + hasStarted() { + return this._started; + } + play() { + this.parentPlayer || this.init(), + this._onStart(), + this.players.forEach((S) => S.play()); + } + pause() { + this.players.forEach((S) => S.pause()); + } + restart() { + this.players.forEach((S) => S.restart()); + } + finish() { + this._onFinish(), this.players.forEach((S) => S.finish()); + } + destroy() { + this._onDestroy(); + } + _onDestroy() { + this._destroyed || + ((this._destroyed = !0), + this._onFinish(), + this.players.forEach((S) => S.destroy()), + this._onDestroyFns.forEach((S) => S()), + (this._onDestroyFns = [])); + } + reset() { + this.players.forEach((S) => S.reset()), + (this._destroyed = !1), + (this._finished = !1), + (this._started = !1); + } + setPosition(S) { + const w = S * this.totalTime; + this.players.forEach((I) => { + const C = I.totalTime ? Math.min(1, w / I.totalTime) : 1; + I.setPosition(C); + }); + } + getPosition() { + const S = this.players.reduce( + (w, I) => (null === w || I.totalTime > w.totalTime ? I : w), + null + ); + return null != S ? S.getPosition() : 0; + } + beforeDestroy() { + this.players.forEach((S) => { + S.beforeDestroy && S.beforeDestroy(); + }); + } + triggerCallback(S) { + const w = "start" == S ? this._onStartFns : this._onDoneFns; + w.forEach((I) => I()), (w.length = 0); + } + } + const M = "!"; + }, + 5664: (ye, j, p) => { + "use strict"; + p.d(j, { + rt: () => Ne, + s1: () => J, + $s: () => Y, + Qr: () => Dt, + kH: () => Lt, + mK: () => Tt, + Em: () => ne, + tE: () => xt, + qm: () => qt, + Kd: () => tn, + X6: () => D, + yG: () => U, + }); + var n = p(9808), + f = p(5e3), + _ = p(8929), + m = p(2654), + s = p(591), + d = p(1086), + u = p(1159), + h = p(2868), + r = p(13), + o = p(2198), + i = p(4850), + c = p(2986), + l = p(1307), + g = p(5778), + b = p(7625), + y = p(3191), + x = p(925), + T = p(7144); + function S(Se, te) { + return (Se.getAttribute(te) || "").match(/\S+/g) || []; + } + const w = "cdk-describedby-message-container", + I = "cdk-describedby-message", + C = "cdk-describedby-host"; + let L = 0; + const F = new Map(); + let ie = null, + Y = (() => { + class Se { + constructor(re) { + this._document = re; + } + describe(re, Me, ze) { + if (!this._canBeDescribed(re, Me)) return; + const It = Z(Me, ze); + "string" != typeof Me + ? (ee(Me), F.set(It, { messageElement: Me, referenceCount: 0 })) + : F.has(It) || this._createMessageElement(Me, ze), + this._isElementDescribedByMessage(re, It) || + this._addMessageReference(re, It); + } + removeDescription(re, Me, ze) { + if (!Me || !this._isElementNode(re)) return; + const It = Z(Me, ze); + if ( + (this._isElementDescribedByMessage(re, It) && + this._removeMessageReference(re, It), + "string" == typeof Me) + ) { + const Qt = F.get(It); + Qt && 0 === Qt.referenceCount && this._deleteMessageElement(It); + } + ie && + 0 === ie.childNodes.length && + this._deleteMessagesContainer(); + } + ngOnDestroy() { + const re = this._document.querySelectorAll(`[${C}]`); + for (let Me = 0; Me < re.length; Me++) + this._removeCdkDescribedByReferenceIds(re[Me]), + re[Me].removeAttribute(C); + ie && this._deleteMessagesContainer(), F.clear(); + } + _createMessageElement(re, Me) { + const ze = this._document.createElement("div"); + ee(ze), + (ze.textContent = re), + Me && ze.setAttribute("role", Me), + this._createMessagesContainer(), + ie.appendChild(ze), + F.set(Z(re, Me), { messageElement: ze, referenceCount: 0 }); + } + _deleteMessageElement(re) { + var Me; + const ze = F.get(re); + null === (Me = null == ze ? void 0 : ze.messageElement) || + void 0 === Me || + Me.remove(), + F.delete(re); + } + _createMessagesContainer() { + if (!ie) { + const re = this._document.getElementById(w); + null == re || re.remove(), + (ie = this._document.createElement("div")), + (ie.id = w), + (ie.style.visibility = "hidden"), + ie.classList.add("cdk-visually-hidden"), + this._document.body.appendChild(ie); + } + } + _deleteMessagesContainer() { + ie && (ie.remove(), (ie = null)); + } + _removeCdkDescribedByReferenceIds(re) { + const Me = S(re, "aria-describedby").filter( + (ze) => 0 != ze.indexOf(I) + ); + re.setAttribute("aria-describedby", Me.join(" ")); + } + _addMessageReference(re, Me) { + const ze = F.get(Me); + (function (Se, te, re) { + const Me = S(Se, te); + Me.some((ze) => ze.trim() == re.trim()) || + (Me.push(re.trim()), Se.setAttribute(te, Me.join(" "))); + })(re, "aria-describedby", ze.messageElement.id), + re.setAttribute(C, ""), + ze.referenceCount++; + } + _removeMessageReference(re, Me) { + const ze = F.get(Me); + ze.referenceCount--, + (function (Se, te, re) { + const ze = S(Se, te).filter((It) => It != re.trim()); + ze.length + ? Se.setAttribute(te, ze.join(" ")) + : Se.removeAttribute(te); + })(re, "aria-describedby", ze.messageElement.id), + re.removeAttribute(C); + } + _isElementDescribedByMessage(re, Me) { + const ze = S(re, "aria-describedby"), + It = F.get(Me), + Qt = It && It.messageElement.id; + return !!Qt && -1 != ze.indexOf(Qt); + } + _canBeDescribed(re, Me) { + if (!this._isElementNode(re)) return !1; + if (Me && "object" == typeof Me) return !0; + const ze = null == Me ? "" : `${Me}`.trim(), + It = re.getAttribute("aria-label"); + return !(!ze || (It && It.trim() === ze)); + } + _isElementNode(re) { + return re.nodeType === this._document.ELEMENT_NODE; + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)(f.ɵɵinject(n.DOCUMENT)); + }), + (Se.ɵprov = f.ɵɵdefineInjectable({ + token: Se, + factory: Se.ɵfac, + providedIn: "root", + })), + Se + ); + })(); + function Z(Se, te) { + return "string" == typeof Se ? `${te || ""}/${Se}` : Se; + } + function ee(Se) { + Se.id || (Se.id = `${I}-${L++}`); + } + class $ { + constructor(te) { + (this._items = te), + (this._activeItemIndex = -1), + (this._activeItem = null), + (this._wrap = !1), + (this._letterKeyStream = new _.xQ()), + (this._typeaheadSubscription = m.w.EMPTY), + (this._vertical = !0), + (this._allowedModifierKeys = []), + (this._homeAndEnd = !1), + (this._skipPredicateFn = (re) => re.disabled), + (this._pressedLetters = []), + (this.tabOut = new _.xQ()), + (this.change = new _.xQ()), + te instanceof f.QueryList && + te.changes.subscribe((re) => { + if (this._activeItem) { + const ze = re.toArray().indexOf(this._activeItem); + ze > -1 && + ze !== this._activeItemIndex && + (this._activeItemIndex = ze); + } + }); + } + skipPredicate(te) { + return (this._skipPredicateFn = te), this; + } + withWrap(te = !0) { + return (this._wrap = te), this; + } + withVerticalOrientation(te = !0) { + return (this._vertical = te), this; + } + withHorizontalOrientation(te) { + return (this._horizontal = te), this; + } + withAllowedModifierKeys(te) { + return (this._allowedModifierKeys = te), this; + } + withTypeAhead(te = 200) { + return ( + this._typeaheadSubscription.unsubscribe(), + (this._typeaheadSubscription = this._letterKeyStream + .pipe( + (0, h.b)((re) => this._pressedLetters.push(re)), + (0, r.b)(te), + (0, o.h)(() => this._pressedLetters.length > 0), + (0, i.U)(() => this._pressedLetters.join("")) + ) + .subscribe((re) => { + const Me = this._getItemsArray(); + for (let ze = 1; ze < Me.length + 1; ze++) { + const It = (this._activeItemIndex + ze) % Me.length, + Qt = Me[It]; + if ( + !this._skipPredicateFn(Qt) && + 0 === Qt.getLabel().toUpperCase().trim().indexOf(re) + ) { + this.setActiveItem(It); + break; + } + } + this._pressedLetters = []; + })), + this + ); + } + withHomeAndEnd(te = !0) { + return (this._homeAndEnd = te), this; + } + setActiveItem(te) { + const re = this._activeItem; + this.updateActiveItem(te), + this._activeItem !== re && this.change.next(this._activeItemIndex); + } + onKeydown(te) { + const re = te.keyCode, + ze = ["altKey", "ctrlKey", "metaKey", "shiftKey"].every( + (It) => !te[It] || this._allowedModifierKeys.indexOf(It) > -1 + ); + switch (re) { + case u.Mf: + return void this.tabOut.next(); + case u.JH: + if (this._vertical && ze) { + this.setNextItemActive(); + break; + } + return; + case u.LH: + if (this._vertical && ze) { + this.setPreviousItemActive(); + break; + } + return; + case u.SV: + if (this._horizontal && ze) { + "rtl" === this._horizontal + ? this.setPreviousItemActive() + : this.setNextItemActive(); + break; + } + return; + case u.oh: + if (this._horizontal && ze) { + "rtl" === this._horizontal + ? this.setNextItemActive() + : this.setPreviousItemActive(); + break; + } + return; + case u.Sd: + if (this._homeAndEnd && ze) { + this.setFirstItemActive(); + break; + } + return; + case u.uR: + if (this._homeAndEnd && ze) { + this.setLastItemActive(); + break; + } + return; + default: + return void ( + (ze || (0, u.Vb)(te, "shiftKey")) && + (te.key && 1 === te.key.length + ? this._letterKeyStream.next(te.key.toLocaleUpperCase()) + : ((re >= u.A && re <= u.Z) || (re >= u.xE && re <= u.aO)) && + this._letterKeyStream.next(String.fromCharCode(re))) + ); + } + (this._pressedLetters = []), te.preventDefault(); + } + get activeItemIndex() { + return this._activeItemIndex; + } + get activeItem() { + return this._activeItem; + } + isTyping() { + return this._pressedLetters.length > 0; + } + setFirstItemActive() { + this._setActiveItemByIndex(0, 1); + } + setLastItemActive() { + this._setActiveItemByIndex(this._items.length - 1, -1); + } + setNextItemActive() { + this._activeItemIndex < 0 + ? this.setFirstItemActive() + : this._setActiveItemByDelta(1); + } + setPreviousItemActive() { + this._activeItemIndex < 0 && this._wrap + ? this.setLastItemActive() + : this._setActiveItemByDelta(-1); + } + updateActiveItem(te) { + const re = this._getItemsArray(), + Me = "number" == typeof te ? te : re.indexOf(te), + ze = re[Me]; + (this._activeItem = null == ze ? null : ze), + (this._activeItemIndex = Me); + } + _setActiveItemByDelta(te) { + this._wrap + ? this._setActiveInWrapMode(te) + : this._setActiveInDefaultMode(te); + } + _setActiveInWrapMode(te) { + const re = this._getItemsArray(); + for (let Me = 1; Me <= re.length; Me++) { + const ze = + (this._activeItemIndex + te * Me + re.length) % re.length; + if (!this._skipPredicateFn(re[ze])) + return void this.setActiveItem(ze); + } + } + _setActiveInDefaultMode(te) { + this._setActiveItemByIndex(this._activeItemIndex + te, te); + } + _setActiveItemByIndex(te, re) { + const Me = this._getItemsArray(); + if (Me[te]) { + for (; this._skipPredicateFn(Me[te]); ) if (!Me[(te += re)]) return; + this.setActiveItem(te); + } + } + _getItemsArray() { + return this._items instanceof f.QueryList + ? this._items.toArray() + : this._items; + } + } + class J extends $ { + setActiveItem(te) { + this.activeItem && this.activeItem.setInactiveStyles(), + super.setActiveItem(te), + this.activeItem && this.activeItem.setActiveStyles(); + } + } + class ne extends $ { + constructor() { + super(...arguments), (this._origin = "program"); + } + setFocusOrigin(te) { + return (this._origin = te), this; + } + setActiveItem(te) { + super.setActiveItem(te), + this.activeItem && this.activeItem.focus(this._origin); + } + } + let le = (() => { + class Se { + constructor(re) { + this._platform = re; + } + isDisabled(re) { + return re.hasAttribute("disabled"); + } + isVisible(re) { + return ( + (function (Se) { + return !!( + Se.offsetWidth || + Se.offsetHeight || + ("function" == typeof Se.getClientRects && + Se.getClientRects().length) + ); + })(re) && "visible" === getComputedStyle(re).visibility + ); + } + isTabbable(re) { + if (!this._platform.isBrowser) return !1; + const Me = (function (Se) { + try { + return Se.frameElement; + } catch (te) { + return null; + } + })( + (function (Se) { + return ( + (Se.ownerDocument && Se.ownerDocument.defaultView) || window + ); + })(re) + ); + if (Me && (-1 === ft(Me) || !this.isVisible(Me))) return !1; + let ze = re.nodeName.toLowerCase(), + It = ft(re); + return re.hasAttribute("contenteditable") + ? -1 !== It + : !( + "iframe" === ze || + "object" === ze || + (this._platform.WEBKIT && + this._platform.IOS && + !(function (Se) { + let te = Se.nodeName.toLowerCase(), + re = "input" === te && Se.type; + return ( + "text" === re || + "password" === re || + "select" === te || + "textarea" === te + ); + })(re)) + ) && + ("audio" === ze + ? !!re.hasAttribute("controls") && -1 !== It + : "video" === ze + ? -1 !== It && + (null !== It || + this._platform.FIREFOX || + re.hasAttribute("controls")) + : re.tabIndex >= 0); + } + isFocusable(re, Me) { + return ( + (function (Se) { + return ( + !(function (Se) { + return ( + (function (Se) { + return "input" == Se.nodeName.toLowerCase(); + })(Se) && "hidden" == Se.type + ); + })(Se) && + ((function (Se) { + let te = Se.nodeName.toLowerCase(); + return ( + "input" === te || + "select" === te || + "button" === te || + "textarea" === te + ); + })(Se) || + (function (Se) { + return ( + (function (Se) { + return "a" == Se.nodeName.toLowerCase(); + })(Se) && Se.hasAttribute("href") + ); + })(Se) || + Se.hasAttribute("contenteditable") || + at(Se)) + ); + })(re) && + !this.isDisabled(re) && + ((null == Me ? void 0 : Me.ignoreVisibility) || + this.isVisible(re)) + ); + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)(f.ɵɵinject(x.t4)); + }), + (Se.ɵprov = f.ɵɵdefineInjectable({ + token: Se, + factory: Se.ɵfac, + providedIn: "root", + })), + Se + ); + })(); + function at(Se) { + if (!Se.hasAttribute("tabindex") || void 0 === Se.tabIndex) return !1; + let te = Se.getAttribute("tabindex"); + return !(!te || isNaN(parseInt(te, 10))); + } + function ft(Se) { + if (!at(Se)) return null; + const te = parseInt(Se.getAttribute("tabindex") || "", 10); + return isNaN(te) ? -1 : te; + } + class _t { + constructor(te, re, Me, ze, It = !1) { + (this._element = te), + (this._checker = re), + (this._ngZone = Me), + (this._document = ze), + (this._hasAttached = !1), + (this.startAnchorListener = () => this.focusLastTabbableElement()), + (this.endAnchorListener = () => this.focusFirstTabbableElement()), + (this._enabled = !0), + It || this.attachAnchors(); + } + get enabled() { + return this._enabled; + } + set enabled(te) { + (this._enabled = te), + this._startAnchor && + this._endAnchor && + (this._toggleAnchorTabIndex(te, this._startAnchor), + this._toggleAnchorTabIndex(te, this._endAnchor)); + } + destroy() { + const te = this._startAnchor, + re = this._endAnchor; + te && + (te.removeEventListener("focus", this.startAnchorListener), + te.remove()), + re && + (re.removeEventListener("focus", this.endAnchorListener), + re.remove()), + (this._startAnchor = this._endAnchor = null), + (this._hasAttached = !1); + } + attachAnchors() { + return ( + !!this._hasAttached || + (this._ngZone.runOutsideAngular(() => { + this._startAnchor || + ((this._startAnchor = this._createAnchor()), + this._startAnchor.addEventListener( + "focus", + this.startAnchorListener + )), + this._endAnchor || + ((this._endAnchor = this._createAnchor()), + this._endAnchor.addEventListener( + "focus", + this.endAnchorListener + )); + }), + this._element.parentNode && + (this._element.parentNode.insertBefore( + this._startAnchor, + this._element + ), + this._element.parentNode.insertBefore( + this._endAnchor, + this._element.nextSibling + ), + (this._hasAttached = !0)), + this._hasAttached) + ); + } + focusInitialElementWhenReady(te) { + return new Promise((re) => { + this._executeOnStable(() => re(this.focusInitialElement(te))); + }); + } + focusFirstTabbableElementWhenReady(te) { + return new Promise((re) => { + this._executeOnStable(() => re(this.focusFirstTabbableElement(te))); + }); + } + focusLastTabbableElementWhenReady(te) { + return new Promise((re) => { + this._executeOnStable(() => re(this.focusLastTabbableElement(te))); + }); + } + _getRegionBoundary(te) { + const re = this._element.querySelectorAll( + `[cdk-focus-region-${te}], [cdkFocusRegion${te}], [cdk-focus-${te}]` + ); + return "start" == te + ? re.length + ? re[0] + : this._getFirstTabbableElement(this._element) + : re.length + ? re[re.length - 1] + : this._getLastTabbableElement(this._element); + } + focusInitialElement(te) { + const re = this._element.querySelector( + "[cdk-focus-initial], [cdkFocusInitial]" + ); + if (re) { + if (!this._checker.isFocusable(re)) { + const Me = this._getFirstTabbableElement(re); + return null == Me || Me.focus(te), !!Me; + } + return re.focus(te), !0; + } + return this.focusFirstTabbableElement(te); + } + focusFirstTabbableElement(te) { + const re = this._getRegionBoundary("start"); + return re && re.focus(te), !!re; + } + focusLastTabbableElement(te) { + const re = this._getRegionBoundary("end"); + return re && re.focus(te), !!re; + } + hasAttached() { + return this._hasAttached; + } + _getFirstTabbableElement(te) { + if (this._checker.isFocusable(te) && this._checker.isTabbable(te)) + return te; + const re = te.children; + for (let Me = 0; Me < re.length; Me++) { + const ze = + re[Me].nodeType === this._document.ELEMENT_NODE + ? this._getFirstTabbableElement(re[Me]) + : null; + if (ze) return ze; + } + return null; + } + _getLastTabbableElement(te) { + if (this._checker.isFocusable(te) && this._checker.isTabbable(te)) + return te; + const re = te.children; + for (let Me = re.length - 1; Me >= 0; Me--) { + const ze = + re[Me].nodeType === this._document.ELEMENT_NODE + ? this._getLastTabbableElement(re[Me]) + : null; + if (ze) return ze; + } + return null; + } + _createAnchor() { + const te = this._document.createElement("div"); + return ( + this._toggleAnchorTabIndex(this._enabled, te), + te.classList.add("cdk-visually-hidden"), + te.classList.add("cdk-focus-trap-anchor"), + te.setAttribute("aria-hidden", "true"), + te + ); + } + _toggleAnchorTabIndex(te, re) { + te + ? re.setAttribute("tabindex", "0") + : re.removeAttribute("tabindex"); + } + toggleAnchors(te) { + this._startAnchor && + this._endAnchor && + (this._toggleAnchorTabIndex(te, this._startAnchor), + this._toggleAnchorTabIndex(te, this._endAnchor)); + } + _executeOnStable(te) { + this._ngZone.isStable + ? te() + : this._ngZone.onStable.pipe((0, c.q)(1)).subscribe(te); + } + } + let At = (() => { + class Se { + constructor(re, Me, ze) { + (this._checker = re), (this._ngZone = Me), (this._document = ze); + } + create(re, Me = !1) { + return new _t( + re, + this._checker, + this._ngZone, + this._document, + Me + ); + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)( + f.ɵɵinject(le), + f.ɵɵinject(f.NgZone), + f.ɵɵinject(n.DOCUMENT) + ); + }), + (Se.ɵprov = f.ɵɵdefineInjectable({ + token: Se, + factory: Se.ɵfac, + providedIn: "root", + })), + Se + ); + })(), + Tt = (() => { + class Se { + constructor(re, Me, ze) { + (this._elementRef = re), + (this._focusTrapFactory = Me), + (this._previouslyFocusedElement = null), + (this.focusTrap = this._focusTrapFactory.create( + this._elementRef.nativeElement, + !0 + )); + } + get enabled() { + return this.focusTrap.enabled; + } + set enabled(re) { + this.focusTrap.enabled = (0, y.Ig)(re); + } + get autoCapture() { + return this._autoCapture; + } + set autoCapture(re) { + this._autoCapture = (0, y.Ig)(re); + } + ngOnDestroy() { + this.focusTrap.destroy(), + this._previouslyFocusedElement && + (this._previouslyFocusedElement.focus(), + (this._previouslyFocusedElement = null)); + } + ngAfterContentInit() { + this.focusTrap.attachAnchors(), + this.autoCapture && this._captureFocus(); + } + ngDoCheck() { + this.focusTrap.hasAttached() || this.focusTrap.attachAnchors(); + } + ngOnChanges(re) { + const Me = re.autoCapture; + Me && + !Me.firstChange && + this.autoCapture && + this.focusTrap.hasAttached() && + this._captureFocus(); + } + _captureFocus() { + (this._previouslyFocusedElement = (0, x.ht)()), + this.focusTrap.focusInitialElementWhenReady(); + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)( + f.ɵɵdirectiveInject(f.ElementRef), + f.ɵɵdirectiveInject(At), + f.ɵɵdirectiveInject(n.DOCUMENT) + ); + }), + (Se.ɵdir = f.ɵɵdefineDirective({ + type: Se, + selectors: [["", "cdkTrapFocus", ""]], + inputs: { + enabled: ["cdkTrapFocus", "enabled"], + autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture"], + }, + exportAs: ["cdkTrapFocus"], + features: [f.ɵɵNgOnChangesFeature], + })), + Se + ); + })(); + function D(Se) { + return 0 === Se.offsetX && 0 === Se.offsetY; + } + function U(Se) { + const te = + (Se.touches && Se.touches[0]) || + (Se.changedTouches && Se.changedTouches[0]); + return !( + !te || + -1 !== te.identifier || + (null != te.radiusX && 1 !== te.radiusX) || + (null != te.radiusY && 1 !== te.radiusY) + ); + } + const X = new f.InjectionToken("cdk-input-modality-detector-options"), + _e = { ignoreKeys: [u.zL, u.jx, u.b2, u.MW, u.JU] }, + $e = (0, x.i$)({ passive: !0, capture: !0 }); + let st = (() => { + class Se { + constructor(re, Me, ze, It) { + (this._platform = re), + (this._mostRecentTarget = null), + (this._modality = new s.X(null)), + (this._lastTouchMs = 0), + (this._onKeydown = (Qt) => { + var cn, An; + (null === + (An = + null === (cn = this._options) || void 0 === cn + ? void 0 + : cn.ignoreKeys) || void 0 === An + ? void 0 + : An.some((lt) => lt === Qt.keyCode)) || + (this._modality.next("keyboard"), + (this._mostRecentTarget = (0, x.sA)(Qt))); + }), + (this._onMousedown = (Qt) => { + Date.now() - this._lastTouchMs < 650 || + (this._modality.next(D(Qt) ? "keyboard" : "mouse"), + (this._mostRecentTarget = (0, x.sA)(Qt))); + }), + (this._onTouchstart = (Qt) => { + U(Qt) + ? this._modality.next("keyboard") + : ((this._lastTouchMs = Date.now()), + this._modality.next("touch"), + (this._mostRecentTarget = (0, x.sA)(Qt))); + }), + (this._options = Object.assign(Object.assign({}, _e), It)), + (this.modalityDetected = this._modality.pipe((0, l.T)(1))), + (this.modalityChanged = this.modalityDetected.pipe((0, g.x)())), + re.isBrowser && + Me.runOutsideAngular(() => { + ze.addEventListener("keydown", this._onKeydown, $e), + ze.addEventListener("mousedown", this._onMousedown, $e), + ze.addEventListener("touchstart", this._onTouchstart, $e); + }); + } + get mostRecentModality() { + return this._modality.value; + } + ngOnDestroy() { + this._modality.complete(), + this._platform.isBrowser && + (document.removeEventListener("keydown", this._onKeydown, $e), + document.removeEventListener( + "mousedown", + this._onMousedown, + $e + ), + document.removeEventListener( + "touchstart", + this._onTouchstart, + $e + )); + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)( + f.ɵɵinject(x.t4), + f.ɵɵinject(f.NgZone), + f.ɵɵinject(n.DOCUMENT), + f.ɵɵinject(X, 8) + ); + }), + (Se.ɵprov = f.ɵɵdefineInjectable({ + token: Se, + factory: Se.ɵfac, + providedIn: "root", + })), + Se + ); + })(); + const ut = new f.InjectionToken("liveAnnouncerElement", { + providedIn: "root", + factory: function () { + return null; + }, + }), + Xt = new f.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS"); + let tn = (() => { + class Se { + constructor(re, Me, ze, It) { + (this._ngZone = Me), + (this._defaultOptions = It), + (this._document = ze), + (this._liveElement = re || this._createLiveElement()); + } + announce(re, ...Me) { + const ze = this._defaultOptions; + let It, Qt; + return ( + 1 === Me.length && "number" == typeof Me[0] + ? (Qt = Me[0]) + : ([It, Qt] = Me), + this.clear(), + clearTimeout(this._previousTimeout), + It || (It = ze && ze.politeness ? ze.politeness : "polite"), + null == Qt && ze && (Qt = ze.duration), + this._liveElement.setAttribute("aria-live", It), + this._ngZone.runOutsideAngular( + () => + new Promise((cn) => { + clearTimeout(this._previousTimeout), + (this._previousTimeout = setTimeout(() => { + (this._liveElement.textContent = re), + cn(), + "number" == typeof Qt && + (this._previousTimeout = setTimeout( + () => this.clear(), + Qt + )); + }, 100)); + }) + ) + ); + } + clear() { + this._liveElement && (this._liveElement.textContent = ""); + } + ngOnDestroy() { + var re; + clearTimeout(this._previousTimeout), + null === (re = this._liveElement) || + void 0 === re || + re.remove(), + (this._liveElement = null); + } + _createLiveElement() { + const re = "cdk-live-announcer-element", + Me = this._document.getElementsByClassName(re), + ze = this._document.createElement("div"); + for (let It = 0; It < Me.length; It++) Me[It].remove(); + return ( + ze.classList.add(re), + ze.classList.add("cdk-visually-hidden"), + ze.setAttribute("aria-atomic", "true"), + ze.setAttribute("aria-live", "polite"), + this._document.body.appendChild(ze), + ze + ); + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)( + f.ɵɵinject(ut, 8), + f.ɵɵinject(f.NgZone), + f.ɵɵinject(n.DOCUMENT), + f.ɵɵinject(Xt, 8) + ); + }), + (Se.ɵprov = f.ɵɵdefineInjectable({ + token: Se, + factory: Se.ɵfac, + providedIn: "root", + })), + Se + ); + })(), + Dt = (() => { + class Se { + constructor(re, Me, ze, It) { + (this._elementRef = re), + (this._liveAnnouncer = Me), + (this._contentObserver = ze), + (this._ngZone = It), + (this._politeness = "polite"); + } + get politeness() { + return this._politeness; + } + set politeness(re) { + (this._politeness = + "off" === re || "assertive" === re ? re : "polite"), + "off" === this._politeness + ? this._subscription && + (this._subscription.unsubscribe(), + (this._subscription = null)) + : this._subscription || + (this._subscription = this._ngZone.runOutsideAngular(() => + this._contentObserver + .observe(this._elementRef) + .subscribe(() => { + const Me = this._elementRef.nativeElement.textContent; + Me !== this._previousAnnouncedText && + (this._liveAnnouncer.announce(Me, this._politeness), + (this._previousAnnouncedText = Me)); + }) + )); + } + ngOnDestroy() { + this._subscription && this._subscription.unsubscribe(); + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)( + f.ɵɵdirectiveInject(f.ElementRef), + f.ɵɵdirectiveInject(tn), + f.ɵɵdirectiveInject(T.yq), + f.ɵɵdirectiveInject(f.NgZone) + ); + }), + (Se.ɵdir = f.ɵɵdefineDirective({ + type: Se, + selectors: [["", "cdkAriaLive", ""]], + inputs: { politeness: ["cdkAriaLive", "politeness"] }, + exportAs: ["cdkAriaLive"], + })), + Se + ); + })(); + const Kt = new f.InjectionToken("cdk-focus-monitor-default-options"), + et = (0, x.i$)({ passive: !0, capture: !0 }); + let xt = (() => { + class Se { + constructor(re, Me, ze, It, Qt) { + (this._ngZone = re), + (this._platform = Me), + (this._inputModalityDetector = ze), + (this._origin = null), + (this._windowFocused = !1), + (this._originFromTouchInteraction = !1), + (this._elementInfo = new Map()), + (this._monitoredElementCount = 0), + (this._rootNodeFocusListenerCount = new Map()), + (this._windowFocusListener = () => { + (this._windowFocused = !0), + (this._windowFocusTimeoutId = setTimeout( + () => (this._windowFocused = !1) + )); + }), + (this._stopInputModalityDetector = new _.xQ()), + (this._rootNodeFocusAndBlurListener = (cn) => { + const An = (0, x.sA)(cn), + lt = "focus" === cn.type ? this._onFocus : this._onBlur; + for (let ct = An; ct; ct = ct.parentElement) + lt.call(this, cn, ct); + }), + (this._document = It), + (this._detectionMode = + (null == Qt ? void 0 : Qt.detectionMode) || 0); + } + monitor(re, Me = !1) { + const ze = (0, y.fI)(re); + if (!this._platform.isBrowser || 1 !== ze.nodeType) + return (0, d.of)(null); + const It = (0, x.kV)(ze) || this._getDocument(), + Qt = this._elementInfo.get(ze); + if (Qt) return Me && (Qt.checkChildren = !0), Qt.subject; + const cn = { + checkChildren: Me, + subject: new _.xQ(), + rootNode: It, + }; + return ( + this._elementInfo.set(ze, cn), + this._registerGlobalListeners(cn), + cn.subject + ); + } + stopMonitoring(re) { + const Me = (0, y.fI)(re), + ze = this._elementInfo.get(Me); + ze && + (ze.subject.complete(), + this._setClasses(Me), + this._elementInfo.delete(Me), + this._removeGlobalListeners(ze)); + } + focusVia(re, Me, ze) { + const It = (0, y.fI)(re); + It === this._getDocument().activeElement + ? this._getClosestElementsInfo(It).forEach(([cn, An]) => + this._originChanged(cn, Me, An) + ) + : (this._setOrigin(Me), + "function" == typeof It.focus && It.focus(ze)); + } + ngOnDestroy() { + this._elementInfo.forEach((re, Me) => this.stopMonitoring(Me)); + } + _getDocument() { + return this._document || document; + } + _getWindow() { + return this._getDocument().defaultView || window; + } + _getFocusOrigin(re) { + return this._origin + ? this._originFromTouchInteraction + ? this._shouldBeAttributedToTouch(re) + ? "touch" + : "program" + : this._origin + : this._windowFocused && this._lastFocusOrigin + ? this._lastFocusOrigin + : "program"; + } + _shouldBeAttributedToTouch(re) { + return ( + 1 === this._detectionMode || + !!(null == re + ? void 0 + : re.contains(this._inputModalityDetector._mostRecentTarget)) + ); + } + _setClasses(re, Me) { + re.classList.toggle("cdk-focused", !!Me), + re.classList.toggle("cdk-touch-focused", "touch" === Me), + re.classList.toggle("cdk-keyboard-focused", "keyboard" === Me), + re.classList.toggle("cdk-mouse-focused", "mouse" === Me), + re.classList.toggle("cdk-program-focused", "program" === Me); + } + _setOrigin(re, Me = !1) { + this._ngZone.runOutsideAngular(() => { + (this._origin = re), + (this._originFromTouchInteraction = "touch" === re && Me), + 0 === this._detectionMode && + (clearTimeout(this._originTimeoutId), + (this._originTimeoutId = setTimeout( + () => (this._origin = null), + this._originFromTouchInteraction ? 650 : 1 + ))); + }); + } + _onFocus(re, Me) { + const ze = this._elementInfo.get(Me), + It = (0, x.sA)(re); + !ze || + (!ze.checkChildren && Me !== It) || + this._originChanged(Me, this._getFocusOrigin(It), ze); + } + _onBlur(re, Me) { + const ze = this._elementInfo.get(Me); + !ze || + (ze.checkChildren && + re.relatedTarget instanceof Node && + Me.contains(re.relatedTarget)) || + (this._setClasses(Me), this._emitOrigin(ze.subject, null)); + } + _emitOrigin(re, Me) { + this._ngZone.run(() => re.next(Me)); + } + _registerGlobalListeners(re) { + if (!this._platform.isBrowser) return; + const Me = re.rootNode, + ze = this._rootNodeFocusListenerCount.get(Me) || 0; + ze || + this._ngZone.runOutsideAngular(() => { + Me.addEventListener( + "focus", + this._rootNodeFocusAndBlurListener, + et + ), + Me.addEventListener( + "blur", + this._rootNodeFocusAndBlurListener, + et + ); + }), + this._rootNodeFocusListenerCount.set(Me, ze + 1), + 1 == ++this._monitoredElementCount && + (this._ngZone.runOutsideAngular(() => { + this._getWindow().addEventListener( + "focus", + this._windowFocusListener + ); + }), + this._inputModalityDetector.modalityDetected + .pipe((0, b.R)(this._stopInputModalityDetector)) + .subscribe((It) => { + this._setOrigin(It, !0); + })); + } + _removeGlobalListeners(re) { + const Me = re.rootNode; + if (this._rootNodeFocusListenerCount.has(Me)) { + const ze = this._rootNodeFocusListenerCount.get(Me); + ze > 1 + ? this._rootNodeFocusListenerCount.set(Me, ze - 1) + : (Me.removeEventListener( + "focus", + this._rootNodeFocusAndBlurListener, + et + ), + Me.removeEventListener( + "blur", + this._rootNodeFocusAndBlurListener, + et + ), + this._rootNodeFocusListenerCount.delete(Me)); + } + --this._monitoredElementCount || + (this._getWindow().removeEventListener( + "focus", + this._windowFocusListener + ), + this._stopInputModalityDetector.next(), + clearTimeout(this._windowFocusTimeoutId), + clearTimeout(this._originTimeoutId)); + } + _originChanged(re, Me, ze) { + this._setClasses(re, Me), + this._emitOrigin(ze.subject, Me), + (this._lastFocusOrigin = Me); + } + _getClosestElementsInfo(re) { + const Me = []; + return ( + this._elementInfo.forEach((ze, It) => { + (It === re || (ze.checkChildren && It.contains(re))) && + Me.push([It, ze]); + }), + Me + ); + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)( + f.ɵɵinject(f.NgZone), + f.ɵɵinject(x.t4), + f.ɵɵinject(st), + f.ɵɵinject(n.DOCUMENT, 8), + f.ɵɵinject(Kt, 8) + ); + }), + (Se.ɵprov = f.ɵɵdefineInjectable({ + token: Se, + factory: Se.ɵfac, + providedIn: "root", + })), + Se + ); + })(), + Lt = (() => { + class Se { + constructor(re, Me) { + (this._elementRef = re), + (this._focusMonitor = Me), + (this.cdkFocusChange = new f.EventEmitter()); + } + ngAfterViewInit() { + const re = this._elementRef.nativeElement; + this._monitorSubscription = this._focusMonitor + .monitor( + re, + 1 === re.nodeType && re.hasAttribute("cdkMonitorSubtreeFocus") + ) + .subscribe((Me) => this.cdkFocusChange.emit(Me)); + } + ngOnDestroy() { + this._focusMonitor.stopMonitoring(this._elementRef), + this._monitorSubscription && + this._monitorSubscription.unsubscribe(); + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)( + f.ɵɵdirectiveInject(f.ElementRef), + f.ɵɵdirectiveInject(xt) + ); + }), + (Se.ɵdir = f.ɵɵdefineDirective({ + type: Se, + selectors: [ + ["", "cdkMonitorElementFocus", ""], + ["", "cdkMonitorSubtreeFocus", ""], + ], + outputs: { cdkFocusChange: "cdkFocusChange" }, + })), + Se + ); + })(); + const Qe = "cdk-high-contrast-black-on-white", + mt = "cdk-high-contrast-white-on-black", + Vt = "cdk-high-contrast-active"; + let qt = (() => { + class Se { + constructor(re, Me) { + (this._platform = re), (this._document = Me); + } + getHighContrastMode() { + if (!this._platform.isBrowser) return 0; + const re = this._document.createElement("div"); + (re.style.backgroundColor = "rgb(1,2,3)"), + (re.style.position = "absolute"), + this._document.body.appendChild(re); + const Me = this._document.defaultView || window, + ze = Me && Me.getComputedStyle ? Me.getComputedStyle(re) : null, + It = ((ze && ze.backgroundColor) || "").replace(/ /g, ""); + switch ((re.remove(), It)) { + case "rgb(0,0,0)": + return 2; + case "rgb(255,255,255)": + return 1; + } + return 0; + } + _applyBodyHighContrastModeCssClasses() { + if ( + !this._hasCheckedHighContrastMode && + this._platform.isBrowser && + this._document.body + ) { + const re = this._document.body.classList; + re.remove(Vt), + re.remove(Qe), + re.remove(mt), + (this._hasCheckedHighContrastMode = !0); + const Me = this.getHighContrastMode(); + 1 === Me + ? (re.add(Vt), re.add(Qe)) + : 2 === Me && (re.add(Vt), re.add(mt)); + } + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)(f.ɵɵinject(x.t4), f.ɵɵinject(n.DOCUMENT)); + }), + (Se.ɵprov = f.ɵɵdefineInjectable({ + token: Se, + factory: Se.ɵfac, + providedIn: "root", + })), + Se + ); + })(), + Ne = (() => { + class Se { + constructor(re) { + re._applyBodyHighContrastModeCssClasses(); + } + } + return ( + (Se.ɵfac = function (re) { + return new (re || Se)(f.ɵɵinject(qt)); + }), + (Se.ɵmod = f.ɵɵdefineNgModule({ type: Se })), + (Se.ɵinj = f.ɵɵdefineInjector({ imports: [[x.ud, T.Q8]] })), + Se + ); + })(); + }, + 226: (ye, j, p) => { + "use strict"; + p.d(j, { vT: () => r, Is: () => u }); + var n = p(5e3), + f = p(9808); + const _ = new n.InjectionToken("cdk-dir-doc", { + providedIn: "root", + factory: function () { + return (0, n.inject)(f.DOCUMENT); + }, + }), + s = /^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i; + let u = (() => { + class o { + constructor(c) { + if ( + ((this.value = "ltr"), (this.change = new n.EventEmitter()), c) + ) { + const g = c.documentElement ? c.documentElement.dir : null; + this.value = (function (o) { + const i = (null == o ? void 0 : o.toLowerCase()) || ""; + return "auto" === i && + "undefined" != typeof navigator && + (null == navigator ? void 0 : navigator.language) + ? s.test(navigator.language) + ? "rtl" + : "ltr" + : "rtl" === i + ? "rtl" + : "ltr"; + })((c.body ? c.body.dir : null) || g || "ltr"); + } + } + ngOnDestroy() { + this.change.complete(); + } + } + return ( + (o.ɵfac = function (c) { + return new (c || o)(n.ɵɵinject(_, 8)); + }), + (o.ɵprov = n.ɵɵdefineInjectable({ + token: o, + factory: o.ɵfac, + providedIn: "root", + })), + o + ); + })(), + r = (() => { + class o {} + return ( + (o.ɵfac = function (c) { + return new (c || o)(); + }), + (o.ɵmod = n.ɵɵdefineNgModule({ type: o })), + (o.ɵinj = n.ɵɵdefineInjector({})), + o + ); + })(); + }, + 3191: (ye, j, p) => { + "use strict"; + p.d(j, { + t6: () => m, + Eq: () => s, + Ig: () => f, + HM: () => d, + fI: () => u, + su: () => _, + du: () => h, + }); + var n = p(5e3); + function f(r) { + return null != r && "false" != `${r}`; + } + function _(r, o = 0) { + return m(r) ? Number(r) : o; + } + function m(r) { + return !isNaN(parseFloat(r)) && !isNaN(Number(r)); + } + function s(r) { + return Array.isArray(r) ? r : [r]; + } + function d(r) { + return null == r ? "" : "string" == typeof r ? r : `${r}px`; + } + function u(r) { + return r instanceof n.ElementRef ? r.nativeElement : r; + } + function h(r, o = /\s+/) { + const i = []; + if (null != r) { + const c = Array.isArray(r) ? r : `${r}`.split(o); + for (const l of c) { + const g = `${l}`.trim(); + g && i.push(g); + } + } + return i; + } + }, + 449: (ye, j, p) => { + "use strict"; + p.d(j, { + o2: () => _, + Ov: () => h, + A8: () => o, + yy: () => d, + eX: () => u, + k: () => i, + Z9: () => m, + }); + var n = p(8929), + f = p(5e3); + class _ {} + function m(c) { + return c && "function" == typeof c.connect; + } + class d { + applyChanges(l, g, b, y, x) { + l.forEachOperation((T, O, M) => { + let A, S; + if (null == T.previousIndex) { + const w = b(T, O, M); + (A = g.createEmbeddedView(w.templateRef, w.context, w.index)), + (S = 1); + } else + null == M + ? (g.remove(O), (S = 3)) + : ((A = g.get(O)), g.move(A, M), (S = 2)); + x && + x({ + context: null == A ? void 0 : A.context, + operation: S, + record: T, + }); + }); + } + detach() {} + } + class u { + constructor() { + (this.viewCacheSize = 20), (this._viewCache = []); + } + applyChanges(l, g, b, y, x) { + l.forEachOperation((T, O, M) => { + let A, S; + null == T.previousIndex + ? ((A = this._insertView(() => b(T, O, M), M, g, y(T))), + (S = A ? 1 : 0)) + : null == M + ? (this._detachAndCacheView(O, g), (S = 3)) + : ((A = this._moveView(O, M, g, y(T))), (S = 2)), + x && + x({ + context: null == A ? void 0 : A.context, + operation: S, + record: T, + }); + }); + } + detach() { + for (const l of this._viewCache) l.destroy(); + this._viewCache = []; + } + _insertView(l, g, b, y) { + const x = this._insertViewFromCache(g, b); + if (x) return void (x.context.$implicit = y); + const T = l(); + return b.createEmbeddedView(T.templateRef, T.context, T.index); + } + _detachAndCacheView(l, g) { + const b = g.detach(l); + this._maybeCacheView(b, g); + } + _moveView(l, g, b, y) { + const x = b.get(l); + return b.move(x, g), (x.context.$implicit = y), x; + } + _maybeCacheView(l, g) { + if (this._viewCache.length < this.viewCacheSize) + this._viewCache.push(l); + else { + const b = g.indexOf(l); + -1 === b ? l.destroy() : g.remove(b); + } + } + _insertViewFromCache(l, g) { + const b = this._viewCache.pop(); + return b && g.insert(b, l), b || null; + } + } + class h { + constructor(l = !1, g, b = !0) { + (this._multiple = l), + (this._emitChanges = b), + (this._selection = new Set()), + (this._deselectedToEmit = []), + (this._selectedToEmit = []), + (this.changed = new n.xQ()), + g && + g.length && + (l + ? g.forEach((y) => this._markSelected(y)) + : this._markSelected(g[0]), + (this._selectedToEmit.length = 0)); + } + get selected() { + return ( + this._selected || + (this._selected = Array.from(this._selection.values())), + this._selected + ); + } + select(...l) { + this._verifyValueAssignment(l), + l.forEach((g) => this._markSelected(g)), + this._emitChangeEvent(); + } + deselect(...l) { + this._verifyValueAssignment(l), + l.forEach((g) => this._unmarkSelected(g)), + this._emitChangeEvent(); + } + toggle(l) { + this.isSelected(l) ? this.deselect(l) : this.select(l); + } + clear() { + this._unmarkAll(), this._emitChangeEvent(); + } + isSelected(l) { + return this._selection.has(l); + } + isEmpty() { + return 0 === this._selection.size; + } + hasValue() { + return !this.isEmpty(); + } + sort(l) { + this._multiple && this.selected && this._selected.sort(l); + } + isMultipleSelection() { + return this._multiple; + } + _emitChangeEvent() { + (this._selected = null), + (this._selectedToEmit.length || this._deselectedToEmit.length) && + (this.changed.next({ + source: this, + added: this._selectedToEmit, + removed: this._deselectedToEmit, + }), + (this._deselectedToEmit = []), + (this._selectedToEmit = [])); + } + _markSelected(l) { + this.isSelected(l) || + (this._multiple || this._unmarkAll(), + this._selection.add(l), + this._emitChanges && this._selectedToEmit.push(l)); + } + _unmarkSelected(l) { + this.isSelected(l) && + (this._selection.delete(l), + this._emitChanges && this._deselectedToEmit.push(l)); + } + _unmarkAll() { + this.isEmpty() || + this._selection.forEach((l) => this._unmarkSelected(l)); + } + _verifyValueAssignment(l) {} + } + let o = (() => { + class c { + constructor() { + this._listeners = []; + } + notify(g, b) { + for (let y of this._listeners) y(g, b); + } + listen(g) { + return ( + this._listeners.push(g), + () => { + this._listeners = this._listeners.filter((b) => g !== b); + } + ); + } + ngOnDestroy() { + this._listeners = []; + } + } + return ( + (c.ɵfac = function (g) { + return new (g || c)(); + }), + (c.ɵprov = f.ɵɵdefineInjectable({ + token: c, + factory: c.ɵfac, + providedIn: "root", + })), + c + ); + })(); + const i = new f.InjectionToken("_ViewRepeater"); + }, + 1159: (ye, j, p) => { + "use strict"; + p.d(j, { + A: () => Ye, + zL: () => h, + ZH: () => f, + jx: () => u, + JH: () => M, + uR: () => b, + K5: () => s, + hY: () => i, + Sd: () => y, + oh: () => x, + b2: () => ti, + MW: () => St, + aO: () => ne, + VM: () => g, + Ku: () => l, + SV: () => O, + JU: () => d, + L_: () => c, + Mf: () => _, + LH: () => T, + Z: () => ut, + xE: () => C, + Vb: () => jn, + }); + const f = 8, + _ = 9, + s = 13, + d = 16, + u = 17, + h = 18, + i = 27, + c = 32, + l = 33, + g = 34, + b = 35, + y = 36, + x = 37, + T = 38, + O = 39, + M = 40, + C = 48, + ne = 57, + Ye = 65, + ut = 90, + St = 91, + ti = 224; + function jn(Qn, ...kn) { + return kn.length + ? kn.some((Mi) => Qn[Mi]) + : Qn.altKey || Qn.shiftKey || Qn.ctrlKey || Qn.metaKey; + } + }, + 7144: (ye, j, p) => { + "use strict"; + p.d(j, { wD: () => h, yq: () => u, Q8: () => r }); + var n = p(3191), + f = p(5e3), + _ = p(6498), + m = p(8929), + s = p(13); + let d = (() => { + class o { + create(c) { + return "undefined" == typeof MutationObserver + ? null + : new MutationObserver(c); + } + } + return ( + (o.ɵfac = function (c) { + return new (c || o)(); + }), + (o.ɵprov = f.ɵɵdefineInjectable({ + token: o, + factory: o.ɵfac, + providedIn: "root", + })), + o + ); + })(), + u = (() => { + class o { + constructor(c) { + (this._mutationObserverFactory = c), + (this._observedElements = new Map()); + } + ngOnDestroy() { + this._observedElements.forEach((c, l) => + this._cleanupObserver(l) + ); + } + observe(c) { + const l = (0, n.fI)(c); + return new _.y((g) => { + const y = this._observeElement(l).subscribe(g); + return () => { + y.unsubscribe(), this._unobserveElement(l); + }; + }); + } + _observeElement(c) { + if (this._observedElements.has(c)) + this._observedElements.get(c).count++; + else { + const l = new m.xQ(), + g = this._mutationObserverFactory.create((b) => l.next(b)); + g && + g.observe(c, { + characterData: !0, + childList: !0, + subtree: !0, + }), + this._observedElements.set(c, { + observer: g, + stream: l, + count: 1, + }); + } + return this._observedElements.get(c).stream; + } + _unobserveElement(c) { + this._observedElements.has(c) && + (this._observedElements.get(c).count--, + this._observedElements.get(c).count || + this._cleanupObserver(c)); + } + _cleanupObserver(c) { + if (this._observedElements.has(c)) { + const { observer: l, stream: g } = this._observedElements.get( + c + ); + l && l.disconnect(), + g.complete(), + this._observedElements.delete(c); + } + } + } + return ( + (o.ɵfac = function (c) { + return new (c || o)(f.ɵɵinject(d)); + }), + (o.ɵprov = f.ɵɵdefineInjectable({ + token: o, + factory: o.ɵfac, + providedIn: "root", + })), + o + ); + })(), + h = (() => { + class o { + constructor(c, l, g) { + (this._contentObserver = c), + (this._elementRef = l), + (this._ngZone = g), + (this.event = new f.EventEmitter()), + (this._disabled = !1), + (this._currentSubscription = null); + } + get disabled() { + return this._disabled; + } + set disabled(c) { + (this._disabled = (0, n.Ig)(c)), + this._disabled ? this._unsubscribe() : this._subscribe(); + } + get debounce() { + return this._debounce; + } + set debounce(c) { + (this._debounce = (0, n.su)(c)), this._subscribe(); + } + ngAfterContentInit() { + !this._currentSubscription && !this.disabled && this._subscribe(); + } + ngOnDestroy() { + this._unsubscribe(); + } + _subscribe() { + this._unsubscribe(); + const c = this._contentObserver.observe(this._elementRef); + this._ngZone.runOutsideAngular(() => { + this._currentSubscription = (this.debounce + ? c.pipe((0, s.b)(this.debounce)) + : c + ).subscribe(this.event); + }); + } + _unsubscribe() { + var c; + null === (c = this._currentSubscription) || + void 0 === c || + c.unsubscribe(); + } + } + return ( + (o.ɵfac = function (c) { + return new (c || o)( + f.ɵɵdirectiveInject(u), + f.ɵɵdirectiveInject(f.ElementRef), + f.ɵɵdirectiveInject(f.NgZone) + ); + }), + (o.ɵdir = f.ɵɵdefineDirective({ + type: o, + selectors: [["", "cdkObserveContent", ""]], + inputs: { + disabled: ["cdkObserveContentDisabled", "disabled"], + debounce: "debounce", + }, + outputs: { event: "cdkObserveContent" }, + exportAs: ["cdkObserveContent"], + })), + o + ); + })(), + r = (() => { + class o {} + return ( + (o.ɵfac = function (c) { + return new (c || o)(); + }), + (o.ɵmod = f.ɵɵdefineNgModule({ type: o })), + (o.ɵinj = f.ɵɵdefineInjector({ providers: [d] })), + o + ); + })(); + }, + 1314: (ye, j, p) => { + "use strict"; + p.d(j, { + pI: () => _t, + xu: () => ot, + _G: () => ne, + aV: () => ft, + X_: () => I, + U8: () => Bt, + }); + var n = p(9071), + f = p(9808), + _ = p(5e3), + m = p(3191), + s = p(925), + d = p(226), + u = p(7429), + h = p(8929), + r = p(2654), + o = p(6787), + i = p(2986), + c = p(7625), + l = p(4290), + g = p(1159); + const b = (0, s.Mq)(); + class y { + constructor(fe, H) { + (this._viewportRuler = fe), + (this._previousHTMLStyles = { top: "", left: "" }), + (this._isEnabled = !1), + (this._document = H); + } + attach() {} + enable() { + if (this._canBeEnabled()) { + const fe = this._document.documentElement; + (this._previousScrollPosition = this._viewportRuler.getViewportScrollPosition()), + (this._previousHTMLStyles.left = fe.style.left || ""), + (this._previousHTMLStyles.top = fe.style.top || ""), + (fe.style.left = (0, m.HM)(-this._previousScrollPosition.left)), + (fe.style.top = (0, m.HM)(-this._previousScrollPosition.top)), + fe.classList.add("cdk-global-scrollblock"), + (this._isEnabled = !0); + } + } + disable() { + if (this._isEnabled) { + const fe = this._document.documentElement, + D = fe.style, + U = this._document.body.style, + X = D.scrollBehavior || "", + _e = U.scrollBehavior || ""; + (this._isEnabled = !1), + (D.left = this._previousHTMLStyles.left), + (D.top = this._previousHTMLStyles.top), + fe.classList.remove("cdk-global-scrollblock"), + b && (D.scrollBehavior = U.scrollBehavior = "auto"), + window.scroll( + this._previousScrollPosition.left, + this._previousScrollPosition.top + ), + b && ((D.scrollBehavior = X), (U.scrollBehavior = _e)); + } + } + _canBeEnabled() { + if ( + this._document.documentElement.classList.contains( + "cdk-global-scrollblock" + ) || + this._isEnabled + ) + return !1; + const H = this._document.body, + D = this._viewportRuler.getViewportSize(); + return H.scrollHeight > D.height || H.scrollWidth > D.width; + } + } + class T { + constructor(fe, H, D, U) { + (this._scrollDispatcher = fe), + (this._ngZone = H), + (this._viewportRuler = D), + (this._config = U), + (this._scrollSubscription = null), + (this._detach = () => { + this.disable(), + this._overlayRef.hasAttached() && + this._ngZone.run(() => this._overlayRef.detach()); + }); + } + attach(fe) { + this._overlayRef = fe; + } + enable() { + if (this._scrollSubscription) return; + const fe = this._scrollDispatcher.scrolled(0); + this._config && this._config.threshold && this._config.threshold > 1 + ? ((this._initialScrollPosition = this._viewportRuler.getViewportScrollPosition().top), + (this._scrollSubscription = fe.subscribe(() => { + const H = this._viewportRuler.getViewportScrollPosition().top; + Math.abs(H - this._initialScrollPosition) > + this._config.threshold + ? this._detach() + : this._overlayRef.updatePosition(); + }))) + : (this._scrollSubscription = fe.subscribe(this._detach)); + } + disable() { + this._scrollSubscription && + (this._scrollSubscription.unsubscribe(), + (this._scrollSubscription = null)); + } + detach() { + this.disable(), (this._overlayRef = null); + } + } + class O { + enable() {} + disable() {} + attach() {} + } + function M(Ee, fe) { + return fe.some( + (H) => + Ee.bottom < H.top || + Ee.top > H.bottom || + Ee.right < H.left || + Ee.left > H.right + ); + } + function A(Ee, fe) { + return fe.some( + (H) => + Ee.top < H.top || + Ee.bottom > H.bottom || + Ee.left < H.left || + Ee.right > H.right + ); + } + class S { + constructor(fe, H, D, U) { + (this._scrollDispatcher = fe), + (this._viewportRuler = H), + (this._ngZone = D), + (this._config = U), + (this._scrollSubscription = null); + } + attach(fe) { + this._overlayRef = fe; + } + enable() { + this._scrollSubscription || + (this._scrollSubscription = this._scrollDispatcher + .scrolled(this._config ? this._config.scrollThrottle : 0) + .subscribe(() => { + if ( + (this._overlayRef.updatePosition(), + this._config && this._config.autoClose) + ) { + const H = this._overlayRef.overlayElement.getBoundingClientRect(), + { + width: D, + height: U, + } = this._viewportRuler.getViewportSize(); + M(H, [ + { + width: D, + height: U, + bottom: U, + right: D, + top: 0, + left: 0, + }, + ]) && + (this.disable(), + this._ngZone.run(() => this._overlayRef.detach())); + } + })); + } + disable() { + this._scrollSubscription && + (this._scrollSubscription.unsubscribe(), + (this._scrollSubscription = null)); + } + detach() { + this.disable(), (this._overlayRef = null); + } + } + let w = (() => { + class Ee { + constructor(H, D, U, X) { + (this._scrollDispatcher = H), + (this._viewportRuler = D), + (this._ngZone = U), + (this.noop = () => new O()), + (this.close = (_e) => + new T( + this._scrollDispatcher, + this._ngZone, + this._viewportRuler, + _e + )), + (this.block = () => new y(this._viewportRuler, this._document)), + (this.reposition = (_e) => + new S( + this._scrollDispatcher, + this._viewportRuler, + this._ngZone, + _e + )), + (this._document = X); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)( + _.ɵɵinject(n.mF), + _.ɵɵinject(n.rL), + _.ɵɵinject(_.NgZone), + _.ɵɵinject(f.DOCUMENT) + ); + }), + (Ee.ɵprov = _.ɵɵdefineInjectable({ + token: Ee, + factory: Ee.ɵfac, + providedIn: "root", + })), + Ee + ); + })(); + class I { + constructor(fe) { + if ( + ((this.scrollStrategy = new O()), + (this.panelClass = ""), + (this.hasBackdrop = !1), + (this.backdropClass = "cdk-overlay-dark-backdrop"), + (this.disposeOnNavigation = !1), + fe) + ) { + const H = Object.keys(fe); + for (const D of H) void 0 !== fe[D] && (this[D] = fe[D]); + } + } + } + class F { + constructor(fe, H) { + (this.connectionPair = fe), (this.scrollableViewProperties = H); + } + } + class Z { + constructor(fe, H, D, U, X, _e, Be, $e, st) { + (this._portalOutlet = fe), + (this._host = H), + (this._pane = D), + (this._config = U), + (this._ngZone = X), + (this._keyboardDispatcher = _e), + (this._document = Be), + (this._location = $e), + (this._outsideClickDispatcher = st), + (this._backdropElement = null), + (this._backdropClick = new h.xQ()), + (this._attachments = new h.xQ()), + (this._detachments = new h.xQ()), + (this._locationChanges = r.w.EMPTY), + (this._backdropClickHandler = (ut) => this._backdropClick.next(ut)), + (this._keydownEvents = new h.xQ()), + (this._outsidePointerEvents = new h.xQ()), + U.scrollStrategy && + ((this._scrollStrategy = U.scrollStrategy), + this._scrollStrategy.attach(this)), + (this._positionStrategy = U.positionStrategy); + } + get overlayElement() { + return this._pane; + } + get backdropElement() { + return this._backdropElement; + } + get hostElement() { + return this._host; + } + attach(fe) { + let H = this._portalOutlet.attach(fe); + return ( + !this._host.parentElement && + this._previousHostParent && + this._previousHostParent.appendChild(this._host), + this._positionStrategy && this._positionStrategy.attach(this), + this._updateStackingOrder(), + this._updateElementSize(), + this._updateElementDirection(), + this._scrollStrategy && this._scrollStrategy.enable(), + this._ngZone.onStable.pipe((0, i.q)(1)).subscribe(() => { + this.hasAttached() && this.updatePosition(); + }), + this._togglePointerEvents(!0), + this._config.hasBackdrop && this._attachBackdrop(), + this._config.panelClass && + this._toggleClasses(this._pane, this._config.panelClass, !0), + this._attachments.next(), + this._keyboardDispatcher.add(this), + this._config.disposeOnNavigation && + (this._locationChanges = this._location.subscribe(() => + this.dispose() + )), + this._outsideClickDispatcher.add(this), + H + ); + } + detach() { + if (!this.hasAttached()) return; + this.detachBackdrop(), + this._togglePointerEvents(!1), + this._positionStrategy && + this._positionStrategy.detach && + this._positionStrategy.detach(), + this._scrollStrategy && this._scrollStrategy.disable(); + const fe = this._portalOutlet.detach(); + return ( + this._detachments.next(), + this._keyboardDispatcher.remove(this), + this._detachContentWhenStable(), + this._locationChanges.unsubscribe(), + this._outsideClickDispatcher.remove(this), + fe + ); + } + dispose() { + var fe; + const H = this.hasAttached(); + this._positionStrategy && this._positionStrategy.dispose(), + this._disposeScrollStrategy(), + this._disposeBackdrop(this._backdropElement), + this._locationChanges.unsubscribe(), + this._keyboardDispatcher.remove(this), + this._portalOutlet.dispose(), + this._attachments.complete(), + this._backdropClick.complete(), + this._keydownEvents.complete(), + this._outsidePointerEvents.complete(), + this._outsideClickDispatcher.remove(this), + null === (fe = this._host) || void 0 === fe || fe.remove(), + (this._previousHostParent = this._pane = this._host = null), + H && this._detachments.next(), + this._detachments.complete(); + } + hasAttached() { + return this._portalOutlet.hasAttached(); + } + backdropClick() { + return this._backdropClick; + } + attachments() { + return this._attachments; + } + detachments() { + return this._detachments; + } + keydownEvents() { + return this._keydownEvents; + } + outsidePointerEvents() { + return this._outsidePointerEvents; + } + getConfig() { + return this._config; + } + updatePosition() { + this._positionStrategy && this._positionStrategy.apply(); + } + updatePositionStrategy(fe) { + fe !== this._positionStrategy && + (this._positionStrategy && this._positionStrategy.dispose(), + (this._positionStrategy = fe), + this.hasAttached() && (fe.attach(this), this.updatePosition())); + } + updateSize(fe) { + (this._config = Object.assign(Object.assign({}, this._config), fe)), + this._updateElementSize(); + } + setDirection(fe) { + (this._config = Object.assign(Object.assign({}, this._config), { + direction: fe, + })), + this._updateElementDirection(); + } + addPanelClass(fe) { + this._pane && this._toggleClasses(this._pane, fe, !0); + } + removePanelClass(fe) { + this._pane && this._toggleClasses(this._pane, fe, !1); + } + getDirection() { + const fe = this._config.direction; + return fe ? ("string" == typeof fe ? fe : fe.value) : "ltr"; + } + updateScrollStrategy(fe) { + fe !== this._scrollStrategy && + (this._disposeScrollStrategy(), + (this._scrollStrategy = fe), + this.hasAttached() && (fe.attach(this), fe.enable())); + } + _updateElementDirection() { + this._host.setAttribute("dir", this.getDirection()); + } + _updateElementSize() { + if (!this._pane) return; + const fe = this._pane.style; + (fe.width = (0, m.HM)(this._config.width)), + (fe.height = (0, m.HM)(this._config.height)), + (fe.minWidth = (0, m.HM)(this._config.minWidth)), + (fe.minHeight = (0, m.HM)(this._config.minHeight)), + (fe.maxWidth = (0, m.HM)(this._config.maxWidth)), + (fe.maxHeight = (0, m.HM)(this._config.maxHeight)); + } + _togglePointerEvents(fe) { + this._pane.style.pointerEvents = fe ? "" : "none"; + } + _attachBackdrop() { + const fe = "cdk-overlay-backdrop-showing"; + (this._backdropElement = this._document.createElement("div")), + this._backdropElement.classList.add("cdk-overlay-backdrop"), + this._config.backdropClass && + this._toggleClasses( + this._backdropElement, + this._config.backdropClass, + !0 + ), + this._host.parentElement.insertBefore( + this._backdropElement, + this._host + ), + this._backdropElement.addEventListener( + "click", + this._backdropClickHandler + ), + "undefined" != typeof requestAnimationFrame + ? this._ngZone.runOutsideAngular(() => { + requestAnimationFrame(() => { + this._backdropElement && + this._backdropElement.classList.add(fe); + }); + }) + : this._backdropElement.classList.add(fe); + } + _updateStackingOrder() { + this._host.nextSibling && + this._host.parentNode.appendChild(this._host); + } + detachBackdrop() { + const fe = this._backdropElement; + if (!fe) return; + let H; + const D = () => { + fe && + (fe.removeEventListener("click", this._backdropClickHandler), + fe.removeEventListener("transitionend", D), + this._disposeBackdrop(fe)), + this._config.backdropClass && + this._toggleClasses(fe, this._config.backdropClass, !1), + clearTimeout(H); + }; + fe.classList.remove("cdk-overlay-backdrop-showing"), + this._ngZone.runOutsideAngular(() => { + fe.addEventListener("transitionend", D); + }), + (fe.style.pointerEvents = "none"), + (H = this._ngZone.runOutsideAngular(() => setTimeout(D, 500))); + } + _toggleClasses(fe, H, D) { + const U = (0, m.Eq)(H || []).filter((X) => !!X); + U.length && (D ? fe.classList.add(...U) : fe.classList.remove(...U)); + } + _detachContentWhenStable() { + this._ngZone.runOutsideAngular(() => { + const fe = this._ngZone.onStable + .pipe((0, c.R)((0, o.T)(this._attachments, this._detachments))) + .subscribe(() => { + (!this._pane || + !this._host || + 0 === this._pane.children.length) && + (this._pane && + this._config.panelClass && + this._toggleClasses( + this._pane, + this._config.panelClass, + !1 + ), + this._host && + this._host.parentElement && + ((this._previousHostParent = this._host.parentElement), + this._host.remove()), + fe.unsubscribe()); + }); + }); + } + _disposeScrollStrategy() { + const fe = this._scrollStrategy; + fe && (fe.disable(), fe.detach && fe.detach()); + } + _disposeBackdrop(fe) { + fe && + (fe.remove(), + this._backdropElement === fe && (this._backdropElement = null)); + } + } + let ee = (() => { + class Ee { + constructor(H, D) { + (this._platform = D), (this._document = H); + } + ngOnDestroy() { + var H; + null === (H = this._containerElement) || void 0 === H || H.remove(); + } + getContainerElement() { + return ( + this._containerElement || this._createContainer(), + this._containerElement + ); + } + _createContainer() { + const H = "cdk-overlay-container"; + if (this._platform.isBrowser || (0, s.Oy)()) { + const U = this._document.querySelectorAll( + `.${H}[platform="server"], .${H}[platform="test"]` + ); + for (let X = 0; X < U.length; X++) U[X].remove(); + } + const D = this._document.createElement("div"); + D.classList.add(H), + (0, s.Oy)() + ? D.setAttribute("platform", "test") + : this._platform.isBrowser || + D.setAttribute("platform", "server"), + this._document.body.appendChild(D), + (this._containerElement = D); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)(_.ɵɵinject(f.DOCUMENT), _.ɵɵinject(s.t4)); + }), + (Ee.ɵprov = _.ɵɵdefineInjectable({ + token: Ee, + factory: Ee.ɵfac, + providedIn: "root", + })), + Ee + ); + })(); + const $ = "cdk-overlay-connected-position-bounding-box", + J = /([A-Za-z%]+)$/; + class ne { + constructor(fe, H, D, U, X) { + (this._viewportRuler = H), + (this._document = D), + (this._platform = U), + (this._overlayContainer = X), + (this._lastBoundingBoxSize = { width: 0, height: 0 }), + (this._isPushed = !1), + (this._canPush = !0), + (this._growAfterOpen = !1), + (this._hasFlexibleDimensions = !0), + (this._positionLocked = !1), + (this._viewportMargin = 0), + (this._scrollables = []), + (this._preferredPositions = []), + (this._positionChanges = new h.xQ()), + (this._resizeSubscription = r.w.EMPTY), + (this._offsetX = 0), + (this._offsetY = 0), + (this._appliedPanelClasses = []), + (this.positionChanges = this._positionChanges), + this.setOrigin(fe); + } + get positions() { + return this._preferredPositions; + } + attach(fe) { + this._validatePositions(), + fe.hostElement.classList.add($), + (this._overlayRef = fe), + (this._boundingBox = fe.hostElement), + (this._pane = fe.overlayElement), + (this._isDisposed = !1), + (this._isInitialRender = !0), + (this._lastPosition = null), + this._resizeSubscription.unsubscribe(), + (this._resizeSubscription = this._viewportRuler + .change() + .subscribe(() => { + (this._isInitialRender = !0), this.apply(); + })); + } + apply() { + if (this._isDisposed || !this._platform.isBrowser) return; + if ( + !this._isInitialRender && + this._positionLocked && + this._lastPosition + ) + return void this.reapplyLastPosition(); + this._clearPanelClasses(), + this._resetOverlayElementStyles(), + this._resetBoundingBoxStyles(), + (this._viewportRect = this._getNarrowedViewportRect()), + (this._originRect = this._getOriginRect()), + (this._overlayRect = this._pane.getBoundingClientRect()); + const fe = this._originRect, + H = this._overlayRect, + D = this._viewportRect, + U = []; + let X; + for (let _e of this._preferredPositions) { + let Be = this._getOriginPoint(fe, _e), + $e = this._getOverlayPoint(Be, H, _e), + st = this._getOverlayFit($e, H, D, _e); + if (st.isCompletelyWithinViewport) + return (this._isPushed = !1), void this._applyPosition(_e, Be); + this._canFitWithFlexibleDimensions(st, $e, D) + ? U.push({ + position: _e, + origin: Be, + overlayRect: H, + boundingBoxRect: this._calculateBoundingBoxRect(Be, _e), + }) + : (!X || X.overlayFit.visibleArea < st.visibleArea) && + (X = { + overlayFit: st, + overlayPoint: $e, + originPoint: Be, + position: _e, + overlayRect: H, + }); + } + if (U.length) { + let _e = null, + Be = -1; + for (const $e of U) { + const st = + $e.boundingBoxRect.width * + $e.boundingBoxRect.height * + ($e.position.weight || 1); + st > Be && ((Be = st), (_e = $e)); + } + return ( + (this._isPushed = !1), + void this._applyPosition(_e.position, _e.origin) + ); + } + if (this._canPush) + return ( + (this._isPushed = !0), + void this._applyPosition(X.position, X.originPoint) + ); + this._applyPosition(X.position, X.originPoint); + } + detach() { + this._clearPanelClasses(), + (this._lastPosition = null), + (this._previousPushAmount = null), + this._resizeSubscription.unsubscribe(); + } + dispose() { + this._isDisposed || + (this._boundingBox && + ae(this._boundingBox.style, { + top: "", + left: "", + right: "", + bottom: "", + height: "", + width: "", + alignItems: "", + justifyContent: "", + }), + this._pane && this._resetOverlayElementStyles(), + this._overlayRef && + this._overlayRef.hostElement.classList.remove($), + this.detach(), + this._positionChanges.complete(), + (this._overlayRef = this._boundingBox = null), + (this._isDisposed = !0)); + } + reapplyLastPosition() { + if ( + !this._isDisposed && + (!this._platform || this._platform.isBrowser) + ) { + (this._originRect = this._getOriginRect()), + (this._overlayRect = this._pane.getBoundingClientRect()), + (this._viewportRect = this._getNarrowedViewportRect()); + const fe = this._lastPosition || this._preferredPositions[0], + H = this._getOriginPoint(this._originRect, fe); + this._applyPosition(fe, H); + } + } + withScrollableContainers(fe) { + return (this._scrollables = fe), this; + } + withPositions(fe) { + return ( + (this._preferredPositions = fe), + -1 === fe.indexOf(this._lastPosition) && + (this._lastPosition = null), + this._validatePositions(), + this + ); + } + withViewportMargin(fe) { + return (this._viewportMargin = fe), this; + } + withFlexibleDimensions(fe = !0) { + return (this._hasFlexibleDimensions = fe), this; + } + withGrowAfterOpen(fe = !0) { + return (this._growAfterOpen = fe), this; + } + withPush(fe = !0) { + return (this._canPush = fe), this; + } + withLockedPosition(fe = !0) { + return (this._positionLocked = fe), this; + } + setOrigin(fe) { + return (this._origin = fe), this; + } + withDefaultOffsetX(fe) { + return (this._offsetX = fe), this; + } + withDefaultOffsetY(fe) { + return (this._offsetY = fe), this; + } + withTransformOriginOn(fe) { + return (this._transformOriginSelector = fe), this; + } + _getOriginPoint(fe, H) { + let D, U; + if ("center" == H.originX) D = fe.left + fe.width / 2; + else { + const X = this._isRtl() ? fe.right : fe.left, + _e = this._isRtl() ? fe.left : fe.right; + D = "start" == H.originX ? X : _e; + } + return ( + (U = + "center" == H.originY + ? fe.top + fe.height / 2 + : "top" == H.originY + ? fe.top + : fe.bottom), + { x: D, y: U } + ); + } + _getOverlayPoint(fe, H, D) { + let U, X; + return ( + (U = + "center" == D.overlayX + ? -H.width / 2 + : "start" === D.overlayX + ? this._isRtl() + ? -H.width + : 0 + : this._isRtl() + ? 0 + : -H.width), + (X = + "center" == D.overlayY + ? -H.height / 2 + : "top" == D.overlayY + ? 0 + : -H.height), + { x: fe.x + U, y: fe.y + X } + ); + } + _getOverlayFit(fe, H, D, U) { + const X = Oe(H); + let { x: _e, y: Be } = fe, + $e = this._getOffset(U, "x"), + st = this._getOffset(U, "y"); + $e && (_e += $e), st && (Be += st); + let Xt = 0 - Be, + tn = Be + X.height - D.height, + Dt = this._subtractOverflows( + X.width, + 0 - _e, + _e + X.width - D.width + ), + Kt = this._subtractOverflows(X.height, Xt, tn), + et = Dt * Kt; + return { + visibleArea: et, + isCompletelyWithinViewport: X.width * X.height === et, + fitsInViewportVertically: Kt === X.height, + fitsInViewportHorizontally: Dt == X.width, + }; + } + _canFitWithFlexibleDimensions(fe, H, D) { + if (this._hasFlexibleDimensions) { + const U = D.bottom - H.y, + X = D.right - H.x, + _e = le(this._overlayRef.getConfig().minHeight), + Be = le(this._overlayRef.getConfig().minWidth), + st = fe.fitsInViewportHorizontally || (null != Be && Be <= X); + return ( + (fe.fitsInViewportVertically || (null != _e && _e <= U)) && st + ); + } + return !1; + } + _pushOverlayOnScreen(fe, H, D) { + if (this._previousPushAmount && this._positionLocked) + return { + x: fe.x + this._previousPushAmount.x, + y: fe.y + this._previousPushAmount.y, + }; + const U = Oe(H), + X = this._viewportRect, + _e = Math.max(fe.x + U.width - X.width, 0), + Be = Math.max(fe.y + U.height - X.height, 0), + $e = Math.max(X.top - D.top - fe.y, 0), + st = Math.max(X.left - D.left - fe.x, 0); + let ut = 0, + St = 0; + return ( + (ut = + U.width <= X.width + ? st || -_e + : fe.x < this._viewportMargin + ? X.left - D.left - fe.x + : 0), + (St = + U.height <= X.height + ? $e || -Be + : fe.y < this._viewportMargin + ? X.top - D.top - fe.y + : 0), + (this._previousPushAmount = { x: ut, y: St }), + { x: fe.x + ut, y: fe.y + St } + ); + } + _applyPosition(fe, H) { + if ( + (this._setTransformOrigin(fe), + this._setOverlayElementStyles(H, fe), + this._setBoundingBoxStyles(H, fe), + fe.panelClass && this._addPanelClasses(fe.panelClass), + (this._lastPosition = fe), + this._positionChanges.observers.length) + ) { + const D = this._getScrollVisibility(), + U = new F(fe, D); + this._positionChanges.next(U); + } + this._isInitialRender = !1; + } + _setTransformOrigin(fe) { + if (!this._transformOriginSelector) return; + const H = this._boundingBox.querySelectorAll( + this._transformOriginSelector + ); + let D, + U = fe.overlayY; + D = + "center" === fe.overlayX + ? "center" + : this._isRtl() + ? "start" === fe.overlayX + ? "right" + : "left" + : "start" === fe.overlayX + ? "left" + : "right"; + for (let X = 0; X < H.length; X++) + H[X].style.transformOrigin = `${D} ${U}`; + } + _calculateBoundingBoxRect(fe, H) { + const D = this._viewportRect, + U = this._isRtl(); + let X, _e, Be, ut, St, Xt; + if ("top" === H.overlayY) + (_e = fe.y), (X = D.height - _e + this._viewportMargin); + else if ("bottom" === H.overlayY) + (Be = D.height - fe.y + 2 * this._viewportMargin), + (X = D.height - Be + this._viewportMargin); + else { + const tn = Math.min(D.bottom - fe.y + D.top, fe.y), + Dt = this._lastBoundingBoxSize.height; + (X = 2 * tn), + (_e = fe.y - tn), + X > Dt && + !this._isInitialRender && + !this._growAfterOpen && + (_e = fe.y - Dt / 2); + } + if (("end" === H.overlayX && !U) || ("start" === H.overlayX && U)) + (Xt = D.width - fe.x + this._viewportMargin), + (ut = fe.x - this._viewportMargin); + else if ( + ("start" === H.overlayX && !U) || + ("end" === H.overlayX && U) + ) + (St = fe.x), (ut = D.right - fe.x); + else { + const tn = Math.min(D.right - fe.x + D.left, fe.x), + Dt = this._lastBoundingBoxSize.width; + (ut = 2 * tn), + (St = fe.x - tn), + ut > Dt && + !this._isInitialRender && + !this._growAfterOpen && + (St = fe.x - Dt / 2); + } + return { + top: _e, + left: St, + bottom: Be, + right: Xt, + width: ut, + height: X, + }; + } + _setBoundingBoxStyles(fe, H) { + const D = this._calculateBoundingBoxRect(fe, H); + !this._isInitialRender && + !this._growAfterOpen && + ((D.height = Math.min(D.height, this._lastBoundingBoxSize.height)), + (D.width = Math.min(D.width, this._lastBoundingBoxSize.width))); + const U = {}; + if (this._hasExactPosition()) + (U.top = U.left = "0"), + (U.bottom = U.right = U.maxHeight = U.maxWidth = ""), + (U.width = U.height = "100%"); + else { + const X = this._overlayRef.getConfig().maxHeight, + _e = this._overlayRef.getConfig().maxWidth; + (U.height = (0, m.HM)(D.height)), + (U.top = (0, m.HM)(D.top)), + (U.bottom = (0, m.HM)(D.bottom)), + (U.width = (0, m.HM)(D.width)), + (U.left = (0, m.HM)(D.left)), + (U.right = (0, m.HM)(D.right)), + (U.alignItems = + "center" === H.overlayX + ? "center" + : "end" === H.overlayX + ? "flex-end" + : "flex-start"), + (U.justifyContent = + "center" === H.overlayY + ? "center" + : "bottom" === H.overlayY + ? "flex-end" + : "flex-start"), + X && (U.maxHeight = (0, m.HM)(X)), + _e && (U.maxWidth = (0, m.HM)(_e)); + } + (this._lastBoundingBoxSize = D), ae(this._boundingBox.style, U); + } + _resetBoundingBoxStyles() { + ae(this._boundingBox.style, { + top: "0", + left: "0", + right: "0", + bottom: "0", + height: "", + width: "", + alignItems: "", + justifyContent: "", + }); + } + _resetOverlayElementStyles() { + ae(this._pane.style, { + top: "", + left: "", + bottom: "", + right: "", + position: "", + transform: "", + }); + } + _setOverlayElementStyles(fe, H) { + const D = {}, + U = this._hasExactPosition(), + X = this._hasFlexibleDimensions, + _e = this._overlayRef.getConfig(); + if (U) { + const ut = this._viewportRuler.getViewportScrollPosition(); + ae(D, this._getExactOverlayY(H, fe, ut)), + ae(D, this._getExactOverlayX(H, fe, ut)); + } else D.position = "static"; + let Be = "", + $e = this._getOffset(H, "x"), + st = this._getOffset(H, "y"); + $e && (Be += `translateX(${$e}px) `), + st && (Be += `translateY(${st}px)`), + (D.transform = Be.trim()), + _e.maxHeight && + (U + ? (D.maxHeight = (0, m.HM)(_e.maxHeight)) + : X && (D.maxHeight = "")), + _e.maxWidth && + (U + ? (D.maxWidth = (0, m.HM)(_e.maxWidth)) + : X && (D.maxWidth = "")), + ae(this._pane.style, D); + } + _getExactOverlayY(fe, H, D) { + let U = { top: "", bottom: "" }, + X = this._getOverlayPoint(H, this._overlayRect, fe); + this._isPushed && + (X = this._pushOverlayOnScreen(X, this._overlayRect, D)); + let _e = this._overlayContainer + .getContainerElement() + .getBoundingClientRect().top; + return ( + (X.y -= _e), + "bottom" === fe.overlayY + ? (U.bottom = + this._document.documentElement.clientHeight - + (X.y + this._overlayRect.height) + + "px") + : (U.top = (0, m.HM)(X.y)), + U + ); + } + _getExactOverlayX(fe, H, D) { + let _e, + U = { left: "", right: "" }, + X = this._getOverlayPoint(H, this._overlayRect, fe); + return ( + this._isPushed && + (X = this._pushOverlayOnScreen(X, this._overlayRect, D)), + (_e = this._isRtl() + ? "end" === fe.overlayX + ? "left" + : "right" + : "end" === fe.overlayX + ? "right" + : "left"), + "right" === _e + ? (U.right = + this._document.documentElement.clientWidth - + (X.x + this._overlayRect.width) + + "px") + : (U.left = (0, m.HM)(X.x)), + U + ); + } + _getScrollVisibility() { + const fe = this._getOriginRect(), + H = this._pane.getBoundingClientRect(), + D = this._scrollables.map((U) => + U.getElementRef().nativeElement.getBoundingClientRect() + ); + return { + isOriginClipped: A(fe, D), + isOriginOutsideView: M(fe, D), + isOverlayClipped: A(H, D), + isOverlayOutsideView: M(H, D), + }; + } + _subtractOverflows(fe, ...H) { + return H.reduce((D, U) => D - Math.max(U, 0), fe); + } + _getNarrowedViewportRect() { + const fe = this._document.documentElement.clientWidth, + H = this._document.documentElement.clientHeight, + D = this._viewportRuler.getViewportScrollPosition(); + return { + top: D.top + this._viewportMargin, + left: D.left + this._viewportMargin, + right: D.left + fe - this._viewportMargin, + bottom: D.top + H - this._viewportMargin, + width: fe - 2 * this._viewportMargin, + height: H - 2 * this._viewportMargin, + }; + } + _isRtl() { + return "rtl" === this._overlayRef.getDirection(); + } + _hasExactPosition() { + return !this._hasFlexibleDimensions || this._isPushed; + } + _getOffset(fe, H) { + return "x" === H + ? null == fe.offsetX + ? this._offsetX + : fe.offsetX + : null == fe.offsetY + ? this._offsetY + : fe.offsetY; + } + _validatePositions() {} + _addPanelClasses(fe) { + this._pane && + (0, m.Eq)(fe).forEach((H) => { + "" !== H && + -1 === this._appliedPanelClasses.indexOf(H) && + (this._appliedPanelClasses.push(H), + this._pane.classList.add(H)); + }); + } + _clearPanelClasses() { + this._pane && + (this._appliedPanelClasses.forEach((fe) => { + this._pane.classList.remove(fe); + }), + (this._appliedPanelClasses = [])); + } + _getOriginRect() { + const fe = this._origin; + if (fe instanceof _.ElementRef) + return fe.nativeElement.getBoundingClientRect(); + if (fe instanceof Element) return fe.getBoundingClientRect(); + const H = fe.width || 0, + D = fe.height || 0; + return { + top: fe.y, + bottom: fe.y + D, + left: fe.x, + right: fe.x + H, + height: D, + width: H, + }; + } + } + function ae(Ee, fe) { + for (let H in fe) fe.hasOwnProperty(H) && (Ee[H] = fe[H]); + return Ee; + } + function le(Ee) { + if ("number" != typeof Ee && null != Ee) { + const [fe, H] = Ee.split(J); + return H && "px" !== H ? null : parseFloat(fe); + } + return Ee || null; + } + function Oe(Ee) { + return { + top: Math.floor(Ee.top), + right: Math.floor(Ee.right), + bottom: Math.floor(Ee.bottom), + left: Math.floor(Ee.left), + width: Math.floor(Ee.width), + height: Math.floor(Ee.height), + }; + } + const Le = "cdk-global-overlay-wrapper"; + class Ye { + constructor() { + (this._cssPosition = "static"), + (this._topOffset = ""), + (this._bottomOffset = ""), + (this._leftOffset = ""), + (this._rightOffset = ""), + (this._alignItems = ""), + (this._justifyContent = ""), + (this._width = ""), + (this._height = ""); + } + attach(fe) { + const H = fe.getConfig(); + (this._overlayRef = fe), + this._width && !H.width && fe.updateSize({ width: this._width }), + this._height && + !H.height && + fe.updateSize({ height: this._height }), + fe.hostElement.classList.add(Le), + (this._isDisposed = !1); + } + top(fe = "") { + return ( + (this._bottomOffset = ""), + (this._topOffset = fe), + (this._alignItems = "flex-start"), + this + ); + } + left(fe = "") { + return ( + (this._rightOffset = ""), + (this._leftOffset = fe), + (this._justifyContent = "flex-start"), + this + ); + } + bottom(fe = "") { + return ( + (this._topOffset = ""), + (this._bottomOffset = fe), + (this._alignItems = "flex-end"), + this + ); + } + right(fe = "") { + return ( + (this._leftOffset = ""), + (this._rightOffset = fe), + (this._justifyContent = "flex-end"), + this + ); + } + width(fe = "") { + return ( + this._overlayRef + ? this._overlayRef.updateSize({ width: fe }) + : (this._width = fe), + this + ); + } + height(fe = "") { + return ( + this._overlayRef + ? this._overlayRef.updateSize({ height: fe }) + : (this._height = fe), + this + ); + } + centerHorizontally(fe = "") { + return this.left(fe), (this._justifyContent = "center"), this; + } + centerVertically(fe = "") { + return this.top(fe), (this._alignItems = "center"), this; + } + apply() { + if (!this._overlayRef || !this._overlayRef.hasAttached()) return; + const fe = this._overlayRef.overlayElement.style, + H = this._overlayRef.hostElement.style, + D = this._overlayRef.getConfig(), + { width: U, height: X, maxWidth: _e, maxHeight: Be } = D, + $e = !( + ("100%" !== U && "100vw" !== U) || + (_e && "100%" !== _e && "100vw" !== _e) + ), + st = !( + ("100%" !== X && "100vh" !== X) || + (Be && "100%" !== Be && "100vh" !== Be) + ); + (fe.position = this._cssPosition), + (fe.marginLeft = $e ? "0" : this._leftOffset), + (fe.marginTop = st ? "0" : this._topOffset), + (fe.marginBottom = this._bottomOffset), + (fe.marginRight = this._rightOffset), + $e + ? (H.justifyContent = "flex-start") + : "center" === this._justifyContent + ? (H.justifyContent = "center") + : "rtl" === this._overlayRef.getConfig().direction + ? "flex-start" === this._justifyContent + ? (H.justifyContent = "flex-end") + : "flex-end" === this._justifyContent && + (H.justifyContent = "flex-start") + : (H.justifyContent = this._justifyContent), + (H.alignItems = st ? "flex-start" : this._alignItems); + } + dispose() { + if (this._isDisposed || !this._overlayRef) return; + const fe = this._overlayRef.overlayElement.style, + H = this._overlayRef.hostElement, + D = H.style; + H.classList.remove(Le), + (D.justifyContent = D.alignItems = fe.marginTop = fe.marginBottom = fe.marginLeft = fe.marginRight = fe.position = + ""), + (this._overlayRef = null), + (this._isDisposed = !0); + } + } + let Je = (() => { + class Ee { + constructor(H, D, U, X) { + (this._viewportRuler = H), + (this._document = D), + (this._platform = U), + (this._overlayContainer = X); + } + global() { + return new Ye(); + } + flexibleConnectedTo(H) { + return new ne( + H, + this._viewportRuler, + this._document, + this._platform, + this._overlayContainer + ); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)( + _.ɵɵinject(n.rL), + _.ɵɵinject(f.DOCUMENT), + _.ɵɵinject(s.t4), + _.ɵɵinject(ee) + ); + }), + (Ee.ɵprov = _.ɵɵdefineInjectable({ + token: Ee, + factory: Ee.ɵfac, + providedIn: "root", + })), + Ee + ); + })(), + gt = (() => { + class Ee { + constructor(H) { + (this._attachedOverlays = []), (this._document = H); + } + ngOnDestroy() { + this.detach(); + } + add(H) { + this.remove(H), this._attachedOverlays.push(H); + } + remove(H) { + const D = this._attachedOverlays.indexOf(H); + D > -1 && this._attachedOverlays.splice(D, 1), + 0 === this._attachedOverlays.length && this.detach(); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)(_.ɵɵinject(f.DOCUMENT)); + }), + (Ee.ɵprov = _.ɵɵdefineInjectable({ + token: Ee, + factory: Ee.ɵfac, + providedIn: "root", + })), + Ee + ); + })(), + Ue = (() => { + class Ee extends gt { + constructor(H) { + super(H), + (this._keydownListener = (D) => { + const U = this._attachedOverlays; + for (let X = U.length - 1; X > -1; X--) + if (U[X]._keydownEvents.observers.length > 0) { + U[X]._keydownEvents.next(D); + break; + } + }); + } + add(H) { + super.add(H), + this._isAttached || + (this._document.body.addEventListener( + "keydown", + this._keydownListener + ), + (this._isAttached = !0)); + } + detach() { + this._isAttached && + (this._document.body.removeEventListener( + "keydown", + this._keydownListener + ), + (this._isAttached = !1)); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)(_.ɵɵinject(f.DOCUMENT)); + }), + (Ee.ɵprov = _.ɵɵdefineInjectable({ + token: Ee, + factory: Ee.ɵfac, + providedIn: "root", + })), + Ee + ); + })(), + tt = (() => { + class Ee extends gt { + constructor(H, D) { + super(H), + (this._platform = D), + (this._cursorStyleIsSet = !1), + (this._pointerDownListener = (U) => { + this._pointerDownEventTarget = (0, s.sA)(U); + }), + (this._clickListener = (U) => { + const X = (0, s.sA)(U), + _e = + "click" === U.type && this._pointerDownEventTarget + ? this._pointerDownEventTarget + : X; + this._pointerDownEventTarget = null; + const Be = this._attachedOverlays.slice(); + for (let $e = Be.length - 1; $e > -1; $e--) { + const st = Be[$e]; + if ( + !(st._outsidePointerEvents.observers.length < 1) && + st.hasAttached() + ) { + if ( + st.overlayElement.contains(X) || + st.overlayElement.contains(_e) + ) + break; + st._outsidePointerEvents.next(U); + } + } + }); + } + add(H) { + if ((super.add(H), !this._isAttached)) { + const D = this._document.body; + D.addEventListener( + "pointerdown", + this._pointerDownListener, + !0 + ), + D.addEventListener("click", this._clickListener, !0), + D.addEventListener("auxclick", this._clickListener, !0), + D.addEventListener("contextmenu", this._clickListener, !0), + this._platform.IOS && + !this._cursorStyleIsSet && + ((this._cursorOriginalValue = D.style.cursor), + (D.style.cursor = "pointer"), + (this._cursorStyleIsSet = !0)), + (this._isAttached = !0); + } + } + detach() { + if (this._isAttached) { + const H = this._document.body; + H.removeEventListener( + "pointerdown", + this._pointerDownListener, + !0 + ), + H.removeEventListener("click", this._clickListener, !0), + H.removeEventListener("auxclick", this._clickListener, !0), + H.removeEventListener("contextmenu", this._clickListener, !0), + this._platform.IOS && + this._cursorStyleIsSet && + ((H.style.cursor = this._cursorOriginalValue), + (this._cursorStyleIsSet = !1)), + (this._isAttached = !1); + } + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)(_.ɵɵinject(f.DOCUMENT), _.ɵɵinject(s.t4)); + }), + (Ee.ɵprov = _.ɵɵdefineInjectable({ + token: Ee, + factory: Ee.ɵfac, + providedIn: "root", + })), + Ee + ); + })(), + at = 0, + ft = (() => { + class Ee { + constructor(H, D, U, X, _e, Be, $e, st, ut, St, Xt) { + (this.scrollStrategies = H), + (this._overlayContainer = D), + (this._componentFactoryResolver = U), + (this._positionBuilder = X), + (this._keyboardDispatcher = _e), + (this._injector = Be), + (this._ngZone = $e), + (this._document = st), + (this._directionality = ut), + (this._location = St), + (this._outsideClickDispatcher = Xt); + } + create(H) { + const D = this._createHostElement(), + U = this._createPaneElement(D), + X = this._createPortalOutlet(U), + _e = new I(H); + return ( + (_e.direction = _e.direction || this._directionality.value), + new Z( + X, + D, + U, + _e, + this._ngZone, + this._keyboardDispatcher, + this._document, + this._location, + this._outsideClickDispatcher + ) + ); + } + position() { + return this._positionBuilder; + } + _createPaneElement(H) { + const D = this._document.createElement("div"); + return ( + (D.id = "cdk-overlay-" + at++), + D.classList.add("cdk-overlay-pane"), + H.appendChild(D), + D + ); + } + _createHostElement() { + const H = this._document.createElement("div"); + return ( + this._overlayContainer.getContainerElement().appendChild(H), H + ); + } + _createPortalOutlet(H) { + return ( + this._appRef || + (this._appRef = this._injector.get(_.ApplicationRef)), + new u.u0( + H, + this._componentFactoryResolver, + this._appRef, + this._injector, + this._document + ) + ); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)( + _.ɵɵinject(w), + _.ɵɵinject(ee), + _.ɵɵinject(_.ComponentFactoryResolver), + _.ɵɵinject(Je), + _.ɵɵinject(Ue), + _.ɵɵinject(_.Injector), + _.ɵɵinject(_.NgZone), + _.ɵɵinject(f.DOCUMENT), + _.ɵɵinject(d.Is), + _.ɵɵinject(f.Location), + _.ɵɵinject(tt) + ); + }), + (Ee.ɵprov = _.ɵɵdefineInjectable({ token: Ee, factory: Ee.ɵfac })), + Ee + ); + })(); + const vt = [ + { + originX: "start", + originY: "bottom", + overlayX: "start", + overlayY: "top", + }, + { + originX: "start", + originY: "top", + overlayX: "start", + overlayY: "bottom", + }, + { + originX: "end", + originY: "top", + overlayX: "end", + overlayY: "bottom", + }, + { + originX: "end", + originY: "bottom", + overlayX: "end", + overlayY: "top", + }, + ], + yt = new _.InjectionToken("cdk-connected-overlay-scroll-strategy"); + let ot = (() => { + class Ee { + constructor(H) { + this.elementRef = H; + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)(_.ɵɵdirectiveInject(_.ElementRef)); + }), + (Ee.ɵdir = _.ɵɵdefineDirective({ + type: Ee, + selectors: [ + ["", "cdk-overlay-origin", ""], + ["", "overlay-origin", ""], + ["", "cdkOverlayOrigin", ""], + ], + exportAs: ["cdkOverlayOrigin"], + })), + Ee + ); + })(), + _t = (() => { + class Ee { + constructor(H, D, U, X, _e) { + (this._overlay = H), + (this._dir = _e), + (this._hasBackdrop = !1), + (this._lockPosition = !1), + (this._growAfterOpen = !1), + (this._flexibleDimensions = !1), + (this._push = !1), + (this._backdropSubscription = r.w.EMPTY), + (this._attachSubscription = r.w.EMPTY), + (this._detachSubscription = r.w.EMPTY), + (this._positionSubscription = r.w.EMPTY), + (this.viewportMargin = 0), + (this.open = !1), + (this.disableClose = !1), + (this.backdropClick = new _.EventEmitter()), + (this.positionChange = new _.EventEmitter()), + (this.attach = new _.EventEmitter()), + (this.detach = new _.EventEmitter()), + (this.overlayKeydown = new _.EventEmitter()), + (this.overlayOutsideClick = new _.EventEmitter()), + (this._templatePortal = new u.UE(D, U)), + (this._scrollStrategyFactory = X), + (this.scrollStrategy = this._scrollStrategyFactory()); + } + get offsetX() { + return this._offsetX; + } + set offsetX(H) { + (this._offsetX = H), + this._position && this._updatePositionStrategy(this._position); + } + get offsetY() { + return this._offsetY; + } + set offsetY(H) { + (this._offsetY = H), + this._position && this._updatePositionStrategy(this._position); + } + get hasBackdrop() { + return this._hasBackdrop; + } + set hasBackdrop(H) { + this._hasBackdrop = (0, m.Ig)(H); + } + get lockPosition() { + return this._lockPosition; + } + set lockPosition(H) { + this._lockPosition = (0, m.Ig)(H); + } + get flexibleDimensions() { + return this._flexibleDimensions; + } + set flexibleDimensions(H) { + this._flexibleDimensions = (0, m.Ig)(H); + } + get growAfterOpen() { + return this._growAfterOpen; + } + set growAfterOpen(H) { + this._growAfterOpen = (0, m.Ig)(H); + } + get push() { + return this._push; + } + set push(H) { + this._push = (0, m.Ig)(H); + } + get overlayRef() { + return this._overlayRef; + } + get dir() { + return this._dir ? this._dir.value : "ltr"; + } + ngOnDestroy() { + this._attachSubscription.unsubscribe(), + this._detachSubscription.unsubscribe(), + this._backdropSubscription.unsubscribe(), + this._positionSubscription.unsubscribe(), + this._overlayRef && this._overlayRef.dispose(); + } + ngOnChanges(H) { + this._position && + (this._updatePositionStrategy(this._position), + this._overlayRef.updateSize({ + width: this.width, + minWidth: this.minWidth, + height: this.height, + minHeight: this.minHeight, + }), + H.origin && this.open && this._position.apply()), + H.open && + (this.open ? this._attachOverlay() : this._detachOverlay()); + } + _createOverlay() { + (!this.positions || !this.positions.length) && + (this.positions = vt); + const H = (this._overlayRef = this._overlay.create( + this._buildConfig() + )); + (this._attachSubscription = H.attachments().subscribe(() => + this.attach.emit() + )), + (this._detachSubscription = H.detachments().subscribe(() => + this.detach.emit() + )), + H.keydownEvents().subscribe((D) => { + this.overlayKeydown.next(D), + D.keyCode === g.hY && + !this.disableClose && + !(0, g.Vb)(D) && + (D.preventDefault(), this._detachOverlay()); + }), + this._overlayRef.outsidePointerEvents().subscribe((D) => { + this.overlayOutsideClick.next(D); + }); + } + _buildConfig() { + const H = (this._position = + this.positionStrategy || this._createPositionStrategy()), + D = new I({ + direction: this._dir, + positionStrategy: H, + scrollStrategy: this.scrollStrategy, + hasBackdrop: this.hasBackdrop, + }); + return ( + (this.width || 0 === this.width) && (D.width = this.width), + (this.height || 0 === this.height) && (D.height = this.height), + (this.minWidth || 0 === this.minWidth) && + (D.minWidth = this.minWidth), + (this.minHeight || 0 === this.minHeight) && + (D.minHeight = this.minHeight), + this.backdropClass && (D.backdropClass = this.backdropClass), + this.panelClass && (D.panelClass = this.panelClass), + D + ); + } + _updatePositionStrategy(H) { + const D = this.positions.map((U) => ({ + originX: U.originX, + originY: U.originY, + overlayX: U.overlayX, + overlayY: U.overlayY, + offsetX: U.offsetX || this.offsetX, + offsetY: U.offsetY || this.offsetY, + panelClass: U.panelClass || void 0, + })); + return H.setOrigin( + this._getFlexibleConnectedPositionStrategyOrigin() + ) + .withPositions(D) + .withFlexibleDimensions(this.flexibleDimensions) + .withPush(this.push) + .withGrowAfterOpen(this.growAfterOpen) + .withViewportMargin(this.viewportMargin) + .withLockedPosition(this.lockPosition) + .withTransformOriginOn(this.transformOriginSelector); + } + _createPositionStrategy() { + const H = this._overlay + .position() + .flexibleConnectedTo( + this._getFlexibleConnectedPositionStrategyOrigin() + ); + return this._updatePositionStrategy(H), H; + } + _getFlexibleConnectedPositionStrategyOrigin() { + return this.origin instanceof ot + ? this.origin.elementRef + : this.origin; + } + _attachOverlay() { + this._overlayRef + ? (this._overlayRef.getConfig().hasBackdrop = this.hasBackdrop) + : this._createOverlay(), + this._overlayRef.hasAttached() || + this._overlayRef.attach(this._templatePortal), + this.hasBackdrop + ? (this._backdropSubscription = this._overlayRef + .backdropClick() + .subscribe((H) => { + this.backdropClick.emit(H); + })) + : this._backdropSubscription.unsubscribe(), + this._positionSubscription.unsubscribe(), + this.positionChange.observers.length > 0 && + (this._positionSubscription = this._position.positionChanges + .pipe( + (0, l.o)(() => this.positionChange.observers.length > 0) + ) + .subscribe((H) => { + this.positionChange.emit(H), + 0 === this.positionChange.observers.length && + this._positionSubscription.unsubscribe(); + })); + } + _detachOverlay() { + this._overlayRef && this._overlayRef.detach(), + this._backdropSubscription.unsubscribe(), + this._positionSubscription.unsubscribe(); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)( + _.ɵɵdirectiveInject(ft), + _.ɵɵdirectiveInject(_.TemplateRef), + _.ɵɵdirectiveInject(_.ViewContainerRef), + _.ɵɵdirectiveInject(yt), + _.ɵɵdirectiveInject(d.Is, 8) + ); + }), + (Ee.ɵdir = _.ɵɵdefineDirective({ + type: Ee, + selectors: [ + ["", "cdk-connected-overlay", ""], + ["", "connected-overlay", ""], + ["", "cdkConnectedOverlay", ""], + ], + inputs: { + origin: ["cdkConnectedOverlayOrigin", "origin"], + positions: ["cdkConnectedOverlayPositions", "positions"], + positionStrategy: [ + "cdkConnectedOverlayPositionStrategy", + "positionStrategy", + ], + offsetX: ["cdkConnectedOverlayOffsetX", "offsetX"], + offsetY: ["cdkConnectedOverlayOffsetY", "offsetY"], + width: ["cdkConnectedOverlayWidth", "width"], + height: ["cdkConnectedOverlayHeight", "height"], + minWidth: ["cdkConnectedOverlayMinWidth", "minWidth"], + minHeight: ["cdkConnectedOverlayMinHeight", "minHeight"], + backdropClass: [ + "cdkConnectedOverlayBackdropClass", + "backdropClass", + ], + panelClass: ["cdkConnectedOverlayPanelClass", "panelClass"], + viewportMargin: [ + "cdkConnectedOverlayViewportMargin", + "viewportMargin", + ], + scrollStrategy: [ + "cdkConnectedOverlayScrollStrategy", + "scrollStrategy", + ], + open: ["cdkConnectedOverlayOpen", "open"], + disableClose: [ + "cdkConnectedOverlayDisableClose", + "disableClose", + ], + transformOriginSelector: [ + "cdkConnectedOverlayTransformOriginOn", + "transformOriginSelector", + ], + hasBackdrop: ["cdkConnectedOverlayHasBackdrop", "hasBackdrop"], + lockPosition: [ + "cdkConnectedOverlayLockPosition", + "lockPosition", + ], + flexibleDimensions: [ + "cdkConnectedOverlayFlexibleDimensions", + "flexibleDimensions", + ], + growAfterOpen: [ + "cdkConnectedOverlayGrowAfterOpen", + "growAfterOpen", + ], + push: ["cdkConnectedOverlayPush", "push"], + }, + outputs: { + backdropClick: "backdropClick", + positionChange: "positionChange", + attach: "attach", + detach: "detach", + overlayKeydown: "overlayKeydown", + overlayOutsideClick: "overlayOutsideClick", + }, + exportAs: ["cdkConnectedOverlay"], + features: [_.ɵɵNgOnChangesFeature], + })), + Ee + ); + })(); + const Tt = { + provide: yt, + deps: [ft], + useFactory: function (Ee) { + return () => Ee.scrollStrategies.reposition(); + }, + }; + let Bt = (() => { + class Ee {} + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)(); + }), + (Ee.ɵmod = _.ɵɵdefineNgModule({ type: Ee })), + (Ee.ɵinj = _.ɵɵdefineInjector({ + providers: [ft, Tt], + imports: [[d.vT, u.eL, n.Cl], n.Cl], + })), + Ee + ); + })(); + }, + 925: (ye, j, p) => { + "use strict"; + p.d(j, { + t4: () => m, + ud: () => s, + sA: () => M, + ht: () => O, + kV: () => T, + Oy: () => A, + qK: () => h, + i$: () => i, + Mq: () => g, + }); + var n = p(5e3), + f = p(9808); + let _; + try { + _ = "undefined" != typeof Intl && Intl.v8BreakIterator; + } catch (S) { + _ = !1; + } + let d, + m = (() => { + class S { + constructor(I) { + (this._platformId = I), + (this.isBrowser = this._platformId + ? (0, f.isPlatformBrowser)(this._platformId) + : "object" == typeof document && !!document), + (this.EDGE = + this.isBrowser && /(edge)/i.test(navigator.userAgent)), + (this.TRIDENT = + this.isBrowser && + /(msie|trident)/i.test(navigator.userAgent)), + (this.BLINK = + this.isBrowser && + !(!window.chrome && !_) && + "undefined" != typeof CSS && + !this.EDGE && + !this.TRIDENT), + (this.WEBKIT = + this.isBrowser && + /AppleWebKit/i.test(navigator.userAgent) && + !this.BLINK && + !this.EDGE && + !this.TRIDENT), + (this.IOS = + this.isBrowser && + /iPad|iPhone|iPod/.test(navigator.userAgent) && + !("MSStream" in window)), + (this.FIREFOX = + this.isBrowser && + /(firefox|minefield)/i.test(navigator.userAgent)), + (this.ANDROID = + this.isBrowser && + /android/i.test(navigator.userAgent) && + !this.TRIDENT), + (this.SAFARI = + this.isBrowser && + /safari/i.test(navigator.userAgent) && + this.WEBKIT); + } + } + return ( + (S.ɵfac = function (I) { + return new (I || S)(n.ɵɵinject(n.PLATFORM_ID)); + }), + (S.ɵprov = n.ɵɵdefineInjectable({ + token: S, + factory: S.ɵfac, + providedIn: "root", + })), + S + ); + })(), + s = (() => { + class S {} + return ( + (S.ɵfac = function (I) { + return new (I || S)(); + }), + (S.ɵmod = n.ɵɵdefineNgModule({ type: S })), + (S.ɵinj = n.ɵɵdefineInjector({})), + S + ); + })(); + const u = [ + "color", + "button", + "checkbox", + "date", + "datetime-local", + "email", + "file", + "hidden", + "image", + "month", + "number", + "password", + "radio", + "range", + "reset", + "search", + "submit", + "tel", + "text", + "time", + "url", + "week", + ]; + function h() { + if (d) return d; + if ("object" != typeof document || !document) + return (d = new Set(u)), d; + let S = document.createElement("input"); + return ( + (d = new Set( + u.filter((w) => (S.setAttribute("type", w), S.type === w)) + )), + d + ); + } + let r, l, y; + function i(S) { + return (function () { + if (null == r && "undefined" != typeof window) + try { + window.addEventListener( + "test", + null, + Object.defineProperty({}, "passive", { get: () => (r = !0) }) + ); + } finally { + r = r || !1; + } + return r; + })() + ? S + : !!S.capture; + } + function g() { + if (null == l) { + if ( + "object" != typeof document || + !document || + "function" != typeof Element || + !Element + ) + return (l = !1), l; + if ("scrollBehavior" in document.documentElement.style) l = !0; + else { + const S = Element.prototype.scrollTo; + l = !!S && !/\{\s*\[native code\]\s*\}/.test(S.toString()); + } + } + return l; + } + function T(S) { + if ( + (function () { + if (null == y) { + const S = "undefined" != typeof document ? document.head : null; + y = !(!S || (!S.createShadowRoot && !S.attachShadow)); + } + return y; + })() + ) { + const w = S.getRootNode ? S.getRootNode() : null; + if ( + "undefined" != typeof ShadowRoot && + ShadowRoot && + w instanceof ShadowRoot + ) + return w; + } + return null; + } + function O() { + let S = + "undefined" != typeof document && document + ? document.activeElement + : null; + for (; S && S.shadowRoot; ) { + const w = S.shadowRoot.activeElement; + if (w === S) break; + S = w; + } + return S; + } + function M(S) { + return S.composedPath ? S.composedPath()[0] : S.target; + } + function A() { + return ( + ("undefined" != typeof __karma__ && !!__karma__) || + ("undefined" != typeof jasmine && !!jasmine) || + ("undefined" != typeof jest && !!jest) || + ("undefined" != typeof Mocha && !!Mocha) + ); + } + }, + 7429: (ye, j, p) => { + "use strict"; + p.d(j, { + ig: () => x, + Pl: () => O, + C5: () => o, + u0: () => b, + eL: () => A, + UE: () => i, + }); + var n = p(5e3), + f = p(9808); + class r { + attach(I) { + return (this._attachedHost = I), I.attach(this); + } + detach() { + let I = this._attachedHost; + null != I && ((this._attachedHost = null), I.detach()); + } + get isAttached() { + return null != this._attachedHost; + } + setAttachedHost(I) { + this._attachedHost = I; + } + } + class o extends r { + constructor(I, C, L, F) { + super(), + (this.component = I), + (this.viewContainerRef = C), + (this.injector = L), + (this.componentFactoryResolver = F); + } + } + class i extends r { + constructor(I, C, L) { + super(), + (this.templateRef = I), + (this.viewContainerRef = C), + (this.context = L); + } + get origin() { + return this.templateRef.elementRef; + } + attach(I, C = this.context) { + return (this.context = C), super.attach(I); + } + detach() { + return (this.context = void 0), super.detach(); + } + } + class c extends r { + constructor(I) { + super(), + (this.element = I instanceof n.ElementRef ? I.nativeElement : I); + } + } + class l { + constructor() { + (this._isDisposed = !1), (this.attachDomPortal = null); + } + hasAttached() { + return !!this._attachedPortal; + } + attach(I) { + return I instanceof o + ? ((this._attachedPortal = I), this.attachComponentPortal(I)) + : I instanceof i + ? ((this._attachedPortal = I), this.attachTemplatePortal(I)) + : this.attachDomPortal && I instanceof c + ? ((this._attachedPortal = I), this.attachDomPortal(I)) + : void 0; + } + detach() { + this._attachedPortal && + (this._attachedPortal.setAttachedHost(null), + (this._attachedPortal = null)), + this._invokeDisposeFn(); + } + dispose() { + this.hasAttached() && this.detach(), + this._invokeDisposeFn(), + (this._isDisposed = !0); + } + setDisposeFn(I) { + this._disposeFn = I; + } + _invokeDisposeFn() { + this._disposeFn && (this._disposeFn(), (this._disposeFn = null)); + } + } + class b extends l { + constructor(I, C, L, F, ie) { + super(), + (this.outletElement = I), + (this._componentFactoryResolver = C), + (this._appRef = L), + (this._defaultInjector = F), + (this.attachDomPortal = (Y) => { + const Z = Y.element, + ee = this._document.createComment("dom-portal"); + Z.parentNode.insertBefore(ee, Z), + this.outletElement.appendChild(Z), + (this._attachedPortal = Y), + super.setDisposeFn(() => { + ee.parentNode && ee.parentNode.replaceChild(Z, ee); + }); + }), + (this._document = ie); + } + attachComponentPortal(I) { + const L = ( + I.componentFactoryResolver || this._componentFactoryResolver + ).resolveComponentFactory(I.component); + let F; + return ( + I.viewContainerRef + ? ((F = I.viewContainerRef.createComponent( + L, + I.viewContainerRef.length, + I.injector || I.viewContainerRef.injector + )), + this.setDisposeFn(() => F.destroy())) + : ((F = L.create(I.injector || this._defaultInjector)), + this._appRef.attachView(F.hostView), + this.setDisposeFn(() => { + this._appRef.detachView(F.hostView), F.destroy(); + })), + this.outletElement.appendChild(this._getComponentRootNode(F)), + (this._attachedPortal = I), + F + ); + } + attachTemplatePortal(I) { + let C = I.viewContainerRef, + L = C.createEmbeddedView(I.templateRef, I.context); + return ( + L.rootNodes.forEach((F) => this.outletElement.appendChild(F)), + L.detectChanges(), + this.setDisposeFn(() => { + let F = C.indexOf(L); + -1 !== F && C.remove(F); + }), + (this._attachedPortal = I), + L + ); + } + dispose() { + super.dispose(), this.outletElement.remove(); + } + _getComponentRootNode(I) { + return I.hostView.rootNodes[0]; + } + } + let x = (() => { + class w extends i { + constructor(C, L) { + super(C, L); + } + } + return ( + (w.ɵfac = function (C) { + return new (C || w)( + n.ɵɵdirectiveInject(n.TemplateRef), + n.ɵɵdirectiveInject(n.ViewContainerRef) + ); + }), + (w.ɵdir = n.ɵɵdefineDirective({ + type: w, + selectors: [["", "cdkPortal", ""]], + exportAs: ["cdkPortal"], + features: [n.ɵɵInheritDefinitionFeature], + })), + w + ); + })(), + O = (() => { + class w extends l { + constructor(C, L, F) { + super(), + (this._componentFactoryResolver = C), + (this._viewContainerRef = L), + (this._isInitialized = !1), + (this.attached = new n.EventEmitter()), + (this.attachDomPortal = (ie) => { + const Y = ie.element, + Z = this._document.createComment("dom-portal"); + ie.setAttachedHost(this), + Y.parentNode.insertBefore(Z, Y), + this._getRootNode().appendChild(Y), + (this._attachedPortal = ie), + super.setDisposeFn(() => { + Z.parentNode && Z.parentNode.replaceChild(Y, Z); + }); + }), + (this._document = F); + } + get portal() { + return this._attachedPortal; + } + set portal(C) { + (this.hasAttached() && !C && !this._isInitialized) || + (this.hasAttached() && super.detach(), + C && super.attach(C), + (this._attachedPortal = C || null)); + } + get attachedRef() { + return this._attachedRef; + } + ngOnInit() { + this._isInitialized = !0; + } + ngOnDestroy() { + super.dispose(), + (this._attachedPortal = null), + (this._attachedRef = null); + } + attachComponentPortal(C) { + C.setAttachedHost(this); + const L = + null != C.viewContainerRef + ? C.viewContainerRef + : this._viewContainerRef, + ie = ( + C.componentFactoryResolver || this._componentFactoryResolver + ).resolveComponentFactory(C.component), + Y = L.createComponent(ie, L.length, C.injector || L.injector); + return ( + L !== this._viewContainerRef && + this._getRootNode().appendChild(Y.hostView.rootNodes[0]), + super.setDisposeFn(() => Y.destroy()), + (this._attachedPortal = C), + (this._attachedRef = Y), + this.attached.emit(Y), + Y + ); + } + attachTemplatePortal(C) { + C.setAttachedHost(this); + const L = this._viewContainerRef.createEmbeddedView( + C.templateRef, + C.context + ); + return ( + super.setDisposeFn(() => this._viewContainerRef.clear()), + (this._attachedPortal = C), + (this._attachedRef = L), + this.attached.emit(L), + L + ); + } + _getRootNode() { + const C = this._viewContainerRef.element.nativeElement; + return C.nodeType === C.ELEMENT_NODE ? C : C.parentNode; + } + } + return ( + (w.ɵfac = function (C) { + return new (C || w)( + n.ɵɵdirectiveInject(n.ComponentFactoryResolver), + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(f.DOCUMENT) + ); + }), + (w.ɵdir = n.ɵɵdefineDirective({ + type: w, + selectors: [["", "cdkPortalOutlet", ""]], + inputs: { portal: ["cdkPortalOutlet", "portal"] }, + outputs: { attached: "attached" }, + exportAs: ["cdkPortalOutlet"], + features: [n.ɵɵInheritDefinitionFeature], + })), + w + ); + })(), + A = (() => { + class w {} + return ( + (w.ɵfac = function (C) { + return new (C || w)(); + }), + (w.ɵmod = n.ɵɵdefineNgModule({ type: w })), + (w.ɵinj = n.ɵɵdefineInjector({})), + w + ); + })(); + }, + 9071: (ye, j, p) => { + "use strict"; + p.d(j, { ZD: () => Z, mF: () => A, Cl: () => ee, rL: () => I }); + var n = p(3191), + f = p(5e3), + _ = p(8929), + m = p(1086), + s = p(6498), + d = p(3753), + r = (p(352), p(8139), p(7568)), + o = p(2198), + i = p(9808), + c = p(925), + l = p(226); + let A = (() => { + class $ { + constructor(ne, ae, le) { + (this._ngZone = ne), + (this._platform = ae), + (this._scrolled = new _.xQ()), + (this._globalSubscription = null), + (this._scrolledCount = 0), + (this.scrollContainers = new Map()), + (this._document = le); + } + register(ne) { + this.scrollContainers.has(ne) || + this.scrollContainers.set( + ne, + ne.elementScrolled().subscribe(() => this._scrolled.next(ne)) + ); + } + deregister(ne) { + const ae = this.scrollContainers.get(ne); + ae && (ae.unsubscribe(), this.scrollContainers.delete(ne)); + } + scrolled(ne = 20) { + return this._platform.isBrowser + ? new s.y((ae) => { + this._globalSubscription || this._addGlobalListener(); + const le = + ne > 0 + ? this._scrolled.pipe((0, r.e)(ne)).subscribe(ae) + : this._scrolled.subscribe(ae); + return ( + this._scrolledCount++, + () => { + le.unsubscribe(), + this._scrolledCount--, + this._scrolledCount || this._removeGlobalListener(); + } + ); + }) + : (0, m.of)(); + } + ngOnDestroy() { + this._removeGlobalListener(), + this.scrollContainers.forEach((ne, ae) => this.deregister(ae)), + this._scrolled.complete(); + } + ancestorScrolled(ne, ae) { + const le = this.getAncestorScrollContainers(ne); + return this.scrolled(ae).pipe( + (0, o.h)((Oe) => !Oe || le.indexOf(Oe) > -1) + ); + } + getAncestorScrollContainers(ne) { + const ae = []; + return ( + this.scrollContainers.forEach((le, Oe) => { + this._scrollableContainsElement(Oe, ne) && ae.push(Oe); + }), + ae + ); + } + _getWindow() { + return this._document.defaultView || window; + } + _scrollableContainsElement(ne, ae) { + let le = (0, n.fI)(ae), + Oe = ne.getElementRef().nativeElement; + do { + if (le == Oe) return !0; + } while ((le = le.parentElement)); + return !1; + } + _addGlobalListener() { + this._globalSubscription = this._ngZone.runOutsideAngular(() => { + const ne = this._getWindow(); + return (0, d.R)(ne.document, "scroll").subscribe(() => + this._scrolled.next() + ); + }); + } + _removeGlobalListener() { + this._globalSubscription && + (this._globalSubscription.unsubscribe(), + (this._globalSubscription = null)); + } + } + return ( + ($.ɵfac = function (ne) { + return new (ne || $)( + f.ɵɵinject(f.NgZone), + f.ɵɵinject(c.t4), + f.ɵɵinject(i.DOCUMENT, 8) + ); + }), + ($.ɵprov = f.ɵɵdefineInjectable({ + token: $, + factory: $.ɵfac, + providedIn: "root", + })), + $ + ); + })(), + I = (() => { + class $ { + constructor(ne, ae, le) { + (this._platform = ne), + (this._change = new _.xQ()), + (this._changeListener = (Oe) => { + this._change.next(Oe); + }), + (this._document = le), + ae.runOutsideAngular(() => { + if (ne.isBrowser) { + const Oe = this._getWindow(); + Oe.addEventListener("resize", this._changeListener), + Oe.addEventListener( + "orientationchange", + this._changeListener + ); + } + this.change().subscribe(() => (this._viewportSize = null)); + }); + } + ngOnDestroy() { + if (this._platform.isBrowser) { + const ne = this._getWindow(); + ne.removeEventListener("resize", this._changeListener), + ne.removeEventListener( + "orientationchange", + this._changeListener + ); + } + this._change.complete(); + } + getViewportSize() { + this._viewportSize || this._updateViewportSize(); + const ne = { + width: this._viewportSize.width, + height: this._viewportSize.height, + }; + return ( + this._platform.isBrowser || (this._viewportSize = null), ne + ); + } + getViewportRect() { + const ne = this.getViewportScrollPosition(), + { width: ae, height: le } = this.getViewportSize(); + return { + top: ne.top, + left: ne.left, + bottom: ne.top + le, + right: ne.left + ae, + height: le, + width: ae, + }; + } + getViewportScrollPosition() { + if (!this._platform.isBrowser) return { top: 0, left: 0 }; + const ne = this._document, + ae = this._getWindow(), + le = ne.documentElement, + Oe = le.getBoundingClientRect(); + return { + top: + -Oe.top || + ne.body.scrollTop || + ae.scrollY || + le.scrollTop || + 0, + left: + -Oe.left || + ne.body.scrollLeft || + ae.scrollX || + le.scrollLeft || + 0, + }; + } + change(ne = 20) { + return ne > 0 ? this._change.pipe((0, r.e)(ne)) : this._change; + } + _getWindow() { + return this._document.defaultView || window; + } + _updateViewportSize() { + const ne = this._getWindow(); + this._viewportSize = this._platform.isBrowser + ? { width: ne.innerWidth, height: ne.innerHeight } + : { width: 0, height: 0 }; + } + } + return ( + ($.ɵfac = function (ne) { + return new (ne || $)( + f.ɵɵinject(c.t4), + f.ɵɵinject(f.NgZone), + f.ɵɵinject(i.DOCUMENT, 8) + ); + }), + ($.ɵprov = f.ɵɵdefineInjectable({ + token: $, + factory: $.ɵfac, + providedIn: "root", + })), + $ + ); + })(), + Z = (() => { + class $ {} + return ( + ($.ɵfac = function (ne) { + return new (ne || $)(); + }), + ($.ɵmod = f.ɵɵdefineNgModule({ type: $ })), + ($.ɵinj = f.ɵɵdefineInjector({})), + $ + ); + })(), + ee = (() => { + class $ {} + return ( + ($.ɵfac = function (ne) { + return new (ne || $)(); + }), + ($.ɵmod = f.ɵɵdefineNgModule({ type: $ })), + ($.ɵinj = f.ɵɵdefineInjector({ + imports: [[l.vT, c.ud, Z], l.vT, Z], + })), + $ + ); + })(); + }, + 9808: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + APP_BASE_HREF: () => O, + AsyncPipe: () => ur, + CommonModule: () => jr, + CurrencyPipe: () => ir, + DATE_PIPE_DEFAULT_TIMEZONE: () => Ri, + DOCUMENT: () => u, + DatePipe: () => Li, + DecimalPipe: () => hr, + FormStyle: () => Y, + FormatWidth: () => ee, + HashLocationStrategy: () => A, + I18nPluralPipe: () => Vr, + I18nSelectPipe: () => nr, + JsonPipe: () => Or, + KeyValuePipe: () => cr, + LOCATION_INITIALIZED: () => o, + Location: () => S, + LocationStrategy: () => x, + LowerCasePipe: () => gn, + NgClass: () => Zt, + NgComponentOutlet: () => an, + NgForOf: () => zn, + NgForOfContext: () => Tn, + NgIf: () => jn, + NgIfContext: () => Qn, + NgLocaleLocalization: () => Wt, + NgLocalization: () => Pe, + NgPlural: () => Ui, + NgPluralCase: () => tr, + NgStyle: () => bi, + NgSwitch: () => Zi, + NgSwitchCase: () => Xn, + NgSwitchDefault: () => pi, + NgTemplateOutlet: () => Rn, + NumberFormatStyle: () => F, + NumberSymbol: () => $, + PathLocationStrategy: () => M, + PercentPipe: () => qr, + PlatformLocation: () => h, + Plural: () => ie, + SlicePipe: () => mr, + TitleCasePipe: () => Sn, + TranslationWidth: () => Z, + UpperCasePipe: () => Wn, + VERSION: () => kr, + ViewportScroller: () => Jr, + WeekDay: () => J, + XhrFactory: () => Er, + formatCurrency: () => Vi, + formatDate: () => Xt, + formatNumber: () => xe, + formatPercent: () => ci, + getCurrencySymbol: () => D, + getLocaleCurrencyCode: () => ot, + getLocaleCurrencyName: () => yt, + getLocaleCurrencySymbol: () => vt, + getLocaleDateFormat: () => gt, + getLocaleDateTimeFormat: () => tt, + getLocaleDayNames: () => le, + getLocaleDayPeriods: () => ae, + getLocaleDirection: () => Ee, + getLocaleEraNames: () => Le, + getLocaleExtraDayPeriodRules: () => Bt, + getLocaleExtraDayPeriods: () => Et, + getLocaleFirstDayOfWeek: () => Ye, + getLocaleId: () => ne, + getLocaleMonthNames: () => Oe, + getLocaleNumberFormat: () => ft, + getLocaleNumberSymbol: () => at, + getLocalePluralCase: () => At, + getLocaleTimeFormat: () => Ue, + getLocaleWeekEndRange: () => Je, + getNumberOfCurrencyDigits: () => X, + isPlatformBrowser: () => Lr, + isPlatformServer: () => Ji, + isPlatformWorkerApp: () => Fr, + isPlatformWorkerUi: () => ls, + registerLocaleData: () => Ft, + ɵBrowserPlatformLocation: () => i, + ɵDomAdapter: () => d, + ɵNullViewportScroller: () => zr, + ɵPLATFORM_BROWSER_ID: () => Wi, + ɵPLATFORM_SERVER_ID: () => Wr, + ɵPLATFORM_WORKER_APP_ID: () => Rr, + ɵPLATFORM_WORKER_UI_ID: () => Dr, + ɵgetDOM: () => _, + ɵparseCookieValue: () => Ht, + ɵsetRootDomAdapter: () => s, + }); + var n = p(5e3); + let f = null; + function _() { + return f; + } + function s(be) { + f || (f = be); + } + class d {} + const u = new n.InjectionToken("DocumentToken"); + let h = (() => { + class be { + historyGo(k) { + throw new Error("Not implemented"); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵprov = n.ɵɵdefineInjectable({ + token: be, + factory: function () { + return (0, n.ɵɵinject)(i); + }, + providedIn: "platform", + })), + be + ); + })(); + const o = new n.InjectionToken("Location Initialized"); + let i = (() => { + class be extends h { + constructor(k) { + super(), (this._doc = k), this._init(); + } + _init() { + (this.location = window.location), (this._history = window.history); + } + getBaseHrefFromDOM() { + return _().getBaseHref(this._doc); + } + onPopState(k) { + const V = _().getGlobalEventTarget(this._doc, "window"); + return ( + V.addEventListener("popstate", k, !1), + () => V.removeEventListener("popstate", k) + ); + } + onHashChange(k) { + const V = _().getGlobalEventTarget(this._doc, "window"); + return ( + V.addEventListener("hashchange", k, !1), + () => V.removeEventListener("hashchange", k) + ); + } + 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(k) { + this.location.pathname = k; + } + pushState(k, V, ve) { + c() ? this._history.pushState(k, V, ve) : (this.location.hash = ve); + } + replaceState(k, V, ve) { + c() + ? this._history.replaceState(k, V, ve) + : (this.location.hash = ve); + } + forward() { + this._history.forward(); + } + back() { + this._history.back(); + } + historyGo(k = 0) { + this._history.go(k); + } + getState() { + return this._history.state; + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵinject(u)); + }), + (be.ɵprov = n.ɵɵdefineInjectable({ + token: be, + factory: function () { + return new i((0, n.ɵɵinject)(u)); + }, + providedIn: "platform", + })), + be + ); + })(); + function c() { + return !!window.history.pushState; + } + function g(be, Q) { + if (0 == be.length) return Q; + if (0 == Q.length) return be; + let k = 0; + return ( + be.endsWith("/") && k++, + Q.startsWith("/") && k++, + 2 == k ? be + Q.substring(1) : 1 == k ? be + Q : be + "/" + Q + ); + } + function b(be) { + const Q = be.match(/#|\?|$/), + k = (Q && Q.index) || be.length; + return be.slice(0, k - ("/" === be[k - 1] ? 1 : 0)) + be.slice(k); + } + function y(be) { + return be && "?" !== be[0] ? "?" + be : be; + } + let x = (() => { + class be { + historyGo(k) { + throw new Error("Not implemented"); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵprov = n.ɵɵdefineInjectable({ + token: be, + factory: function () { + return (function (be) { + const Q = (0, n.ɵɵinject)(u).location; + return new M((0, n.ɵɵinject)(h), (Q && Q.origin) || ""); + })(); + }, + providedIn: "root", + })), + be + ); + })(); + const O = new n.InjectionToken("appBaseHref"); + let M = (() => { + class be extends x { + constructor(k, V) { + if ( + (super(), + (this._platformLocation = k), + (this._removeListenerFns = []), + null == V && (V = this._platformLocation.getBaseHrefFromDOM()), + null == V) + ) + throw new Error( + "No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document." + ); + this._baseHref = V; + } + ngOnDestroy() { + for (; this._removeListenerFns.length; ) + this._removeListenerFns.pop()(); + } + onPopState(k) { + this._removeListenerFns.push( + this._platformLocation.onPopState(k), + this._platformLocation.onHashChange(k) + ); + } + getBaseHref() { + return this._baseHref; + } + prepareExternalUrl(k) { + return g(this._baseHref, k); + } + path(k = !1) { + const V = + this._platformLocation.pathname + + y(this._platformLocation.search), + ve = this._platformLocation.hash; + return ve && k ? `${V}${ve}` : V; + } + pushState(k, V, ve, nt) { + const Nt = this.prepareExternalUrl(ve + y(nt)); + this._platformLocation.pushState(k, V, Nt); + } + replaceState(k, V, ve, nt) { + const Nt = this.prepareExternalUrl(ve + y(nt)); + this._platformLocation.replaceState(k, V, Nt); + } + forward() { + this._platformLocation.forward(); + } + back() { + this._platformLocation.back(); + } + historyGo(k = 0) { + var V, ve; + null === (ve = (V = this._platformLocation).historyGo) || + void 0 === ve || + ve.call(V, k); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵinject(h), n.ɵɵinject(O, 8)); + }), + (be.ɵprov = n.ɵɵdefineInjectable({ token: be, factory: be.ɵfac })), + be + ); + })(), + A = (() => { + class be extends x { + constructor(k, V) { + super(), + (this._platformLocation = k), + (this._baseHref = ""), + (this._removeListenerFns = []), + null != V && (this._baseHref = V); + } + ngOnDestroy() { + for (; this._removeListenerFns.length; ) + this._removeListenerFns.pop()(); + } + onPopState(k) { + this._removeListenerFns.push( + this._platformLocation.onPopState(k), + this._platformLocation.onHashChange(k) + ); + } + getBaseHref() { + return this._baseHref; + } + path(k = !1) { + let V = this._platformLocation.hash; + return null == V && (V = "#"), V.length > 0 ? V.substring(1) : V; + } + prepareExternalUrl(k) { + const V = g(this._baseHref, k); + return V.length > 0 ? "#" + V : V; + } + pushState(k, V, ve, nt) { + let Nt = this.prepareExternalUrl(ve + y(nt)); + 0 == Nt.length && (Nt = this._platformLocation.pathname), + this._platformLocation.pushState(k, V, Nt); + } + replaceState(k, V, ve, nt) { + let Nt = this.prepareExternalUrl(ve + y(nt)); + 0 == Nt.length && (Nt = this._platformLocation.pathname), + this._platformLocation.replaceState(k, V, Nt); + } + forward() { + this._platformLocation.forward(); + } + back() { + this._platformLocation.back(); + } + historyGo(k = 0) { + var V, ve; + null === (ve = (V = this._platformLocation).historyGo) || + void 0 === ve || + ve.call(V, k); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵinject(h), n.ɵɵinject(O, 8)); + }), + (be.ɵprov = n.ɵɵdefineInjectable({ token: be, factory: be.ɵfac })), + be + ); + })(), + S = (() => { + class be { + constructor(k, V) { + (this._subject = new n.EventEmitter()), + (this._urlChangeListeners = []), + (this._platformStrategy = k); + const ve = this._platformStrategy.getBaseHref(); + (this._platformLocation = V), + (this._baseHref = b(C(ve))), + this._platformStrategy.onPopState((nt) => { + this._subject.emit({ + url: this.path(!0), + pop: !0, + state: nt.state, + type: nt.type, + }); + }); + } + path(k = !1) { + return this.normalize(this._platformStrategy.path(k)); + } + getState() { + return this._platformLocation.getState(); + } + isCurrentPathEqualTo(k, V = "") { + return this.path() == this.normalize(k + y(V)); + } + normalize(k) { + return be.stripTrailingSlash( + (function (be, Q) { + return be && Q.startsWith(be) ? Q.substring(be.length) : Q; + })(this._baseHref, C(k)) + ); + } + prepareExternalUrl(k) { + return ( + k && "/" !== k[0] && (k = "/" + k), + this._platformStrategy.prepareExternalUrl(k) + ); + } + go(k, V = "", ve = null) { + this._platformStrategy.pushState(ve, "", k, V), + this._notifyUrlChangeListeners( + this.prepareExternalUrl(k + y(V)), + ve + ); + } + replaceState(k, V = "", ve = null) { + this._platformStrategy.replaceState(ve, "", k, V), + this._notifyUrlChangeListeners( + this.prepareExternalUrl(k + y(V)), + ve + ); + } + forward() { + this._platformStrategy.forward(); + } + back() { + this._platformStrategy.back(); + } + historyGo(k = 0) { + var V, ve; + null === (ve = (V = this._platformStrategy).historyGo) || + void 0 === ve || + ve.call(V, k); + } + onUrlChange(k) { + this._urlChangeListeners.push(k), + this._urlChangeSubscription || + (this._urlChangeSubscription = this.subscribe((V) => { + this._notifyUrlChangeListeners(V.url, V.state); + })); + } + _notifyUrlChangeListeners(k = "", V) { + this._urlChangeListeners.forEach((ve) => ve(k, V)); + } + subscribe(k, V, ve) { + return this._subject.subscribe({ + next: k, + error: V, + complete: ve, + }); + } + } + return ( + (be.normalizeQueryParams = y), + (be.joinWithSlash = g), + (be.stripTrailingSlash = b), + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵinject(x), n.ɵɵinject(h)); + }), + (be.ɵprov = n.ɵɵdefineInjectable({ + token: be, + factory: function () { + return new S((0, n.ɵɵinject)(x), (0, n.ɵɵinject)(h)); + }, + providedIn: "root", + })), + be + ); + })(); + function C(be) { + return be.replace(/\/index.html$/, ""); + } + const L = { + ADP: [void 0, void 0, 0], + AFN: [void 0, "\u060b", 0], + ALL: [void 0, void 0, 0], + AMD: [void 0, "\u058f", 2], + AOA: [void 0, "Kz"], + ARS: [void 0, "$"], + AUD: ["A$", "$"], + AZN: [void 0, "\u20bc"], + BAM: [void 0, "KM"], + BBD: [void 0, "$"], + BDT: [void 0, "\u09f3"], + BHD: [void 0, void 0, 3], + BIF: [void 0, void 0, 0], + BMD: [void 0, "$"], + BND: [void 0, "$"], + BOB: [void 0, "Bs"], + BRL: ["R$"], + BSD: [void 0, "$"], + BWP: [void 0, "P"], + BYN: [void 0, "\u0440.", 2], + BYR: [void 0, void 0, 0], + BZD: [void 0, "$"], + CAD: ["CA$", "$", 2], + CHF: [void 0, void 0, 2], + CLF: [void 0, void 0, 4], + CLP: [void 0, "$", 0], + CNY: ["CN\xa5", "\xa5"], + COP: [void 0, "$", 2], + CRC: [void 0, "\u20a1", 2], + CUC: [void 0, "$"], + CUP: [void 0, "$"], + CZK: [void 0, "K\u010d", 2], + DJF: [void 0, void 0, 0], + DKK: [void 0, "kr", 2], + DOP: [void 0, "$"], + EGP: [void 0, "E\xa3"], + ESP: [void 0, "\u20a7", 0], + EUR: ["\u20ac"], + FJD: [void 0, "$"], + FKP: [void 0, "\xa3"], + GBP: ["\xa3"], + GEL: [void 0, "\u20be"], + GHS: [void 0, "GH\u20b5"], + GIP: [void 0, "\xa3"], + GNF: [void 0, "FG", 0], + GTQ: [void 0, "Q"], + GYD: [void 0, "$", 2], + HKD: ["HK$", "$"], + HNL: [void 0, "L"], + HRK: [void 0, "kn"], + HUF: [void 0, "Ft", 2], + IDR: [void 0, "Rp", 2], + ILS: ["\u20aa"], + INR: ["\u20b9"], + IQD: [void 0, void 0, 0], + IRR: [void 0, void 0, 0], + ISK: [void 0, "kr", 0], + ITL: [void 0, void 0, 0], + JMD: [void 0, "$"], + JOD: [void 0, void 0, 3], + JPY: ["\xa5", void 0, 0], + KHR: [void 0, "\u17db"], + KMF: [void 0, "CF", 0], + KPW: [void 0, "\u20a9", 0], + KRW: ["\u20a9", void 0, 0], + KWD: [void 0, void 0, 3], + KYD: [void 0, "$"], + KZT: [void 0, "\u20b8"], + LAK: [void 0, "\u20ad", 0], + LBP: [void 0, "L\xa3", 0], + LKR: [void 0, "Rs"], + LRD: [void 0, "$"], + LTL: [void 0, "Lt"], + LUF: [void 0, void 0, 0], + LVL: [void 0, "Ls"], + LYD: [void 0, void 0, 3], + MGA: [void 0, "Ar", 0], + MGF: [void 0, void 0, 0], + MMK: [void 0, "K", 0], + MNT: [void 0, "\u20ae", 2], + MRO: [void 0, void 0, 0], + MUR: [void 0, "Rs", 2], + MXN: ["MX$", "$"], + MYR: [void 0, "RM"], + NAD: [void 0, "$"], + NGN: [void 0, "\u20a6"], + NIO: [void 0, "C$"], + NOK: [void 0, "kr", 2], + NPR: [void 0, "Rs"], + NZD: ["NZ$", "$"], + OMR: [void 0, void 0, 3], + PHP: ["\u20b1"], + PKR: [void 0, "Rs", 2], + PLN: [void 0, "z\u0142"], + PYG: [void 0, "\u20b2", 0], + RON: [void 0, "lei"], + RSD: [void 0, void 0, 0], + RUB: [void 0, "\u20bd"], + RUR: [void 0, "\u0440."], + RWF: [void 0, "RF", 0], + SBD: [void 0, "$"], + SEK: [void 0, "kr", 2], + SGD: [void 0, "$"], + SHP: [void 0, "\xa3"], + SLL: [void 0, void 0, 0], + SOS: [void 0, void 0, 0], + SRD: [void 0, "$"], + SSP: [void 0, "\xa3"], + STD: [void 0, void 0, 0], + STN: [void 0, "Db"], + SYP: [void 0, "\xa3", 0], + THB: [void 0, "\u0e3f"], + TMM: [void 0, void 0, 0], + TND: [void 0, void 0, 3], + TOP: [void 0, "T$"], + TRL: [void 0, void 0, 0], + TRY: [void 0, "\u20ba"], + TTD: [void 0, "$"], + TWD: ["NT$", "$", 2], + TZS: [void 0, void 0, 2], + UAH: [void 0, "\u20b4"], + UGX: [void 0, void 0, 0], + USD: ["$"], + UYI: [void 0, void 0, 0], + UYU: [void 0, "$"], + UYW: [void 0, void 0, 4], + UZS: [void 0, void 0, 2], + VEF: [void 0, "Bs", 2], + VND: ["\u20ab", void 0, 0], + VUV: [void 0, void 0, 0], + XAF: ["FCFA", void 0, 0], + XCD: ["EC$", "$"], + XOF: ["F\u202fCFA", void 0, 0], + XPF: ["CFPF", void 0, 0], + XXX: ["\xa4"], + YER: [void 0, void 0, 0], + ZAR: [void 0, "R"], + ZMK: [void 0, void 0, 0], + ZMW: [void 0, "ZK"], + ZWD: [void 0, void 0, 0], + }; + var F = (() => ( + ((F = F || {})[(F.Decimal = 0)] = "Decimal"), + (F[(F.Percent = 1)] = "Percent"), + (F[(F.Currency = 2)] = "Currency"), + (F[(F.Scientific = 3)] = "Scientific"), + F + ))(), + ie = (() => ( + ((ie = ie || {})[(ie.Zero = 0)] = "Zero"), + (ie[(ie.One = 1)] = "One"), + (ie[(ie.Two = 2)] = "Two"), + (ie[(ie.Few = 3)] = "Few"), + (ie[(ie.Many = 4)] = "Many"), + (ie[(ie.Other = 5)] = "Other"), + ie + ))(), + Y = (() => ( + ((Y = Y || {})[(Y.Format = 0)] = "Format"), + (Y[(Y.Standalone = 1)] = "Standalone"), + Y + ))(), + Z = (() => ( + ((Z = Z || {})[(Z.Narrow = 0)] = "Narrow"), + (Z[(Z.Abbreviated = 1)] = "Abbreviated"), + (Z[(Z.Wide = 2)] = "Wide"), + (Z[(Z.Short = 3)] = "Short"), + Z + ))(), + ee = (() => ( + ((ee = ee || {})[(ee.Short = 0)] = "Short"), + (ee[(ee.Medium = 1)] = "Medium"), + (ee[(ee.Long = 2)] = "Long"), + (ee[(ee.Full = 3)] = "Full"), + ee + ))(), + $ = (() => ( + (($ = $ || {})[($.Decimal = 0)] = "Decimal"), + ($[($.Group = 1)] = "Group"), + ($[($.List = 2)] = "List"), + ($[($.PercentSign = 3)] = "PercentSign"), + ($[($.PlusSign = 4)] = "PlusSign"), + ($[($.MinusSign = 5)] = "MinusSign"), + ($[($.Exponential = 6)] = "Exponential"), + ($[($.SuperscriptingExponent = 7)] = "SuperscriptingExponent"), + ($[($.PerMille = 8)] = "PerMille"), + ($[($.Infinity = 9)] = "Infinity"), + ($[($.NaN = 10)] = "NaN"), + ($[($.TimeSeparator = 11)] = "TimeSeparator"), + ($[($.CurrencyDecimal = 12)] = "CurrencyDecimal"), + ($[($.CurrencyGroup = 13)] = "CurrencyGroup"), + $ + ))(), + J = (() => ( + ((J = J || {})[(J.Sunday = 0)] = "Sunday"), + (J[(J.Monday = 1)] = "Monday"), + (J[(J.Tuesday = 2)] = "Tuesday"), + (J[(J.Wednesday = 3)] = "Wednesday"), + (J[(J.Thursday = 4)] = "Thursday"), + (J[(J.Friday = 5)] = "Friday"), + (J[(J.Saturday = 6)] = "Saturday"), + J + ))(); + function ne(be) { + return (0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.LocaleId]; + } + function ae(be, Q, k) { + const V = (0, n.ɵfindLocaleData)(be), + nt = fe( + [ + V[n.ɵLocaleDataIndex.DayPeriodsFormat], + V[n.ɵLocaleDataIndex.DayPeriodsStandalone], + ], + Q + ); + return fe(nt, k); + } + function le(be, Q, k) { + const V = (0, n.ɵfindLocaleData)(be), + nt = fe( + [ + V[n.ɵLocaleDataIndex.DaysFormat], + V[n.ɵLocaleDataIndex.DaysStandalone], + ], + Q + ); + return fe(nt, k); + } + function Oe(be, Q, k) { + const V = (0, n.ɵfindLocaleData)(be), + nt = fe( + [ + V[n.ɵLocaleDataIndex.MonthsFormat], + V[n.ɵLocaleDataIndex.MonthsStandalone], + ], + Q + ); + return fe(nt, k); + } + function Le(be, Q) { + return fe((0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.Eras], Q); + } + function Ye(be) { + return (0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.FirstDayOfWeek]; + } + function Je(be) { + return (0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.WeekendRange]; + } + function gt(be, Q) { + return fe((0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.DateFormat], Q); + } + function Ue(be, Q) { + return fe((0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.TimeFormat], Q); + } + function tt(be, Q) { + return fe( + (0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.DateTimeFormat], + Q + ); + } + function at(be, Q) { + const k = (0, n.ɵfindLocaleData)(be), + V = k[n.ɵLocaleDataIndex.NumberSymbols][Q]; + if (void 0 === V) { + if (Q === $.CurrencyDecimal) + return k[n.ɵLocaleDataIndex.NumberSymbols][$.Decimal]; + if (Q === $.CurrencyGroup) + return k[n.ɵLocaleDataIndex.NumberSymbols][$.Group]; + } + return V; + } + function ft(be, Q) { + return (0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.NumberFormats][Q]; + } + function vt(be) { + return ( + (0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.CurrencySymbol] || null + ); + } + function yt(be) { + return ( + (0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.CurrencyName] || null + ); + } + function ot(be) { + return (0, n.ɵgetLocaleCurrencyCode)(be); + } + const At = n.ɵgetLocalePluralCase; + function Tt(be) { + if (!be[n.ɵLocaleDataIndex.ExtraData]) + throw new Error( + `Missing extra locale data for the locale "${ + be[n.ɵLocaleDataIndex.LocaleId] + }". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.` + ); + } + function Bt(be) { + const Q = (0, n.ɵfindLocaleData)(be); + return ( + Tt(Q), + (Q[n.ɵLocaleDataIndex.ExtraData][2] || []).map((V) => + "string" == typeof V ? H(V) : [H(V[0]), H(V[1])] + ) + ); + } + function Et(be, Q, k) { + const V = (0, n.ɵfindLocaleData)(be); + Tt(V); + const nt = + fe( + [ + V[n.ɵLocaleDataIndex.ExtraData][0], + V[n.ɵLocaleDataIndex.ExtraData][1], + ], + Q + ) || []; + return fe(nt, k) || []; + } + function Ee(be) { + return (0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.Directionality]; + } + function fe(be, Q) { + for (let k = Q; k > -1; k--) if (void 0 !== be[k]) return be[k]; + throw new Error("Locale data API: locale data undefined"); + } + function H(be) { + const [Q, k] = be.split(":"); + return { hours: +Q, minutes: +k }; + } + function D(be, Q, k = "en") { + const V = + (function (be) { + return (0, n.ɵfindLocaleData)(be)[n.ɵLocaleDataIndex.Currencies]; + })(k)[be] || + L[be] || + [], + ve = V[1]; + return "narrow" === Q && "string" == typeof ve ? ve : V[0] || be; + } + function X(be) { + let Q; + const k = L[be]; + return k && (Q = k[2]), "number" == typeof Q ? Q : 2; + } + const _e = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/, + Be = {}, + $e = /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/; + var st = (() => ( + ((st = st || {})[(st.Short = 0)] = "Short"), + (st[(st.ShortGMT = 1)] = "ShortGMT"), + (st[(st.Long = 2)] = "Long"), + (st[(st.Extended = 3)] = "Extended"), + st + ))(), + ut = (() => ( + ((ut = ut || {})[(ut.FullYear = 0)] = "FullYear"), + (ut[(ut.Month = 1)] = "Month"), + (ut[(ut.Date = 2)] = "Date"), + (ut[(ut.Hours = 3)] = "Hours"), + (ut[(ut.Minutes = 4)] = "Minutes"), + (ut[(ut.Seconds = 5)] = "Seconds"), + (ut[(ut.FractionalSeconds = 6)] = "FractionalSeconds"), + (ut[(ut.Day = 7)] = "Day"), + ut + ))(), + St = (() => ( + ((St = St || {})[(St.DayPeriods = 0)] = "DayPeriods"), + (St[(St.Days = 1)] = "Days"), + (St[(St.Months = 2)] = "Months"), + (St[(St.Eras = 3)] = "Eras"), + St + ))(); + function Xt(be, Q, k, V) { + let ve = (function (be) { + if (pt(be)) return be; + if ("number" == typeof be && !isNaN(be)) return new Date(be); + if ("string" == typeof be) { + if ( + ((be = be.trim()), /^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(be)) + ) { + const [ve, nt = 1, Nt = 1] = be.split("-").map((nn) => +nn); + return tn(ve, nt - 1, Nt); + } + const k = parseFloat(be); + if (!isNaN(be - k)) return new Date(k); + let V; + if ((V = be.match(_e))) + return (function (be) { + const Q = new Date(0); + let k = 0, + V = 0; + const ve = be[8] ? Q.setUTCFullYear : Q.setFullYear, + nt = be[8] ? Q.setUTCHours : Q.setHours; + be[9] && + ((k = Number(be[9] + be[10])), (V = Number(be[9] + be[11]))), + ve.call(Q, Number(be[1]), Number(be[2]) - 1, Number(be[3])); + const Nt = Number(be[4] || 0) - k, + nn = Number(be[5] || 0) - V, + In = Number(be[6] || 0), + ni = Math.floor(1e3 * parseFloat("0." + (be[7] || 0))); + return nt.call(Q, Nt, nn, In, ni), Q; + })(V); + } + const Q = new Date(be); + if (!pt(Q)) throw new Error(`Unable to convert "${be}" into a date`); + return Q; + })(be); + Q = Dt(k, Q) || Q; + let nn, + Nt = []; + for (; Q; ) { + if (((nn = $e.exec(Q)), !nn)) { + Nt.push(Q); + break; + } + { + Nt = Nt.concat(nn.slice(1)); + const di = Nt.pop(); + if (!di) break; + Q = di; + } + } + let In = ve.getTimezoneOffset(); + V && + ((In = cn(V, In)), + (ve = (function (be, Q, k) { + const ve = be.getTimezoneOffset(); + return (function (be, Q) { + return ( + (be = new Date(be.getTime())).setMinutes(be.getMinutes() + Q), + be + ); + })(be, -1 * (cn(Q, ve) - ve)); + })(ve, V))); + let ni = ""; + return ( + Nt.forEach((di) => { + const ai = (function (be) { + if (It[be]) return It[be]; + let Q; + switch (be) { + case "G": + case "GG": + case "GGG": + Q = mt(St.Eras, Z.Abbreviated); + break; + case "GGGG": + Q = mt(St.Eras, Z.Wide); + break; + case "GGGGG": + Q = mt(St.Eras, Z.Narrow); + break; + case "y": + Q = Lt(ut.FullYear, 1, 0, !1, !0); + break; + case "yy": + Q = Lt(ut.FullYear, 2, 0, !0, !0); + break; + case "yyy": + Q = Lt(ut.FullYear, 3, 0, !1, !0); + break; + case "yyyy": + Q = Lt(ut.FullYear, 4, 0, !1, !0); + break; + case "Y": + Q = ze(1); + break; + case "YY": + Q = ze(2, !0); + break; + case "YYY": + Q = ze(3); + break; + case "YYYY": + Q = ze(4); + break; + case "M": + case "L": + Q = Lt(ut.Month, 1, 1); + break; + case "MM": + case "LL": + Q = Lt(ut.Month, 2, 1); + break; + case "MMM": + Q = mt(St.Months, Z.Abbreviated); + break; + case "MMMM": + Q = mt(St.Months, Z.Wide); + break; + case "MMMMM": + Q = mt(St.Months, Z.Narrow); + break; + case "LLL": + Q = mt(St.Months, Z.Abbreviated, Y.Standalone); + break; + case "LLLL": + Q = mt(St.Months, Z.Wide, Y.Standalone); + break; + case "LLLLL": + Q = mt(St.Months, Z.Narrow, Y.Standalone); + break; + case "w": + Q = Me(1); + break; + case "ww": + Q = Me(2); + break; + case "W": + Q = Me(1, !0); + break; + case "d": + Q = Lt(ut.Date, 1); + break; + case "dd": + Q = Lt(ut.Date, 2); + break; + case "c": + case "cc": + Q = Lt(ut.Day, 1); + break; + case "ccc": + Q = mt(St.Days, Z.Abbreviated, Y.Standalone); + break; + case "cccc": + Q = mt(St.Days, Z.Wide, Y.Standalone); + break; + case "ccccc": + Q = mt(St.Days, Z.Narrow, Y.Standalone); + break; + case "cccccc": + Q = mt(St.Days, Z.Short, Y.Standalone); + break; + case "E": + case "EE": + case "EEE": + Q = mt(St.Days, Z.Abbreviated); + break; + case "EEEE": + Q = mt(St.Days, Z.Wide); + break; + case "EEEEE": + Q = mt(St.Days, Z.Narrow); + break; + case "EEEEEE": + Q = mt(St.Days, Z.Short); + break; + case "a": + case "aa": + case "aaa": + Q = mt(St.DayPeriods, Z.Abbreviated); + break; + case "aaaa": + Q = mt(St.DayPeriods, Z.Wide); + break; + case "aaaaa": + Q = mt(St.DayPeriods, Z.Narrow); + break; + case "b": + case "bb": + case "bbb": + Q = mt(St.DayPeriods, Z.Abbreviated, Y.Standalone, !0); + break; + case "bbbb": + Q = mt(St.DayPeriods, Z.Wide, Y.Standalone, !0); + break; + case "bbbbb": + Q = mt(St.DayPeriods, Z.Narrow, Y.Standalone, !0); + break; + case "B": + case "BB": + case "BBB": + Q = mt(St.DayPeriods, Z.Abbreviated, Y.Format, !0); + break; + case "BBBB": + Q = mt(St.DayPeriods, Z.Wide, Y.Format, !0); + break; + case "BBBBB": + Q = mt(St.DayPeriods, Z.Narrow, Y.Format, !0); + break; + case "h": + Q = Lt(ut.Hours, 1, -12); + break; + case "hh": + Q = Lt(ut.Hours, 2, -12); + break; + case "H": + Q = Lt(ut.Hours, 1); + break; + case "HH": + Q = Lt(ut.Hours, 2); + break; + case "m": + Q = Lt(ut.Minutes, 1); + break; + case "mm": + Q = Lt(ut.Minutes, 2); + break; + case "s": + Q = Lt(ut.Seconds, 1); + break; + case "ss": + Q = Lt(ut.Seconds, 2); + break; + case "S": + Q = Lt(ut.FractionalSeconds, 1); + break; + case "SS": + Q = Lt(ut.FractionalSeconds, 2); + break; + case "SSS": + Q = Lt(ut.FractionalSeconds, 3); + break; + case "Z": + case "ZZ": + case "ZZZ": + Q = qt(st.Short); + break; + case "ZZZZZ": + Q = qt(st.Extended); + break; + case "O": + case "OO": + case "OOO": + case "z": + case "zz": + case "zzz": + Q = qt(st.ShortGMT); + break; + case "OOOO": + case "ZZZZ": + case "zzzz": + Q = qt(st.Long); + break; + default: + return null; + } + return (It[be] = Q), Q; + })(di); + ni += ai + ? ai(ve, k, In) + : "''" === di + ? "'" + : di.replace(/(^'|'$)/g, "").replace(/''/g, "'"); + }), + ni + ); + } + function tn(be, Q, k) { + const V = new Date(0); + return V.setFullYear(be, Q, k), V.setHours(0, 0, 0), V; + } + function Dt(be, Q) { + const k = ne(be); + if (((Be[k] = Be[k] || {}), Be[k][Q])) return Be[k][Q]; + let V = ""; + switch (Q) { + case "shortDate": + V = gt(be, ee.Short); + break; + case "mediumDate": + V = gt(be, ee.Medium); + break; + case "longDate": + V = gt(be, ee.Long); + break; + case "fullDate": + V = gt(be, ee.Full); + break; + case "shortTime": + V = Ue(be, ee.Short); + break; + case "mediumTime": + V = Ue(be, ee.Medium); + break; + case "longTime": + V = Ue(be, ee.Long); + break; + case "fullTime": + V = Ue(be, ee.Full); + break; + case "short": + const ve = Dt(be, "shortTime"), + nt = Dt(be, "shortDate"); + V = Kt(tt(be, ee.Short), [ve, nt]); + break; + case "medium": + const Nt = Dt(be, "mediumTime"), + nn = Dt(be, "mediumDate"); + V = Kt(tt(be, ee.Medium), [Nt, nn]); + break; + case "long": + const In = Dt(be, "longTime"), + ni = Dt(be, "longDate"); + V = Kt(tt(be, ee.Long), [In, ni]); + break; + case "full": + const di = Dt(be, "fullTime"), + ai = Dt(be, "fullDate"); + V = Kt(tt(be, ee.Full), [di, ai]); + } + return V && (Be[k][Q] = V), V; + } + function Kt(be, Q) { + return ( + Q && + (be = be.replace(/\{([^}]+)}/g, function (k, V) { + return null != Q && V in Q ? Q[V] : k; + })), + be + ); + } + function et(be, Q, k = "-", V, ve) { + let nt = ""; + (be < 0 || (ve && be <= 0)) && + (ve ? (be = 1 - be) : ((be = -be), (nt = k))); + let Nt = String(be); + for (; Nt.length < Q; ) Nt = "0" + Nt; + return V && (Nt = Nt.substr(Nt.length - Q)), nt + Nt; + } + function Lt(be, Q, k = 0, V = !1, ve = !1) { + return function (nt, Nt) { + let nn = (function (be, Q) { + switch (be) { + case ut.FullYear: + return Q.getFullYear(); + case ut.Month: + return Q.getMonth(); + case ut.Date: + return Q.getDate(); + case ut.Hours: + return Q.getHours(); + case ut.Minutes: + return Q.getMinutes(); + case ut.Seconds: + return Q.getSeconds(); + case ut.FractionalSeconds: + return Q.getMilliseconds(); + case ut.Day: + return Q.getDay(); + default: + throw new Error(`Unknown DateType value "${be}".`); + } + })(be, nt); + if (((k > 0 || nn > -k) && (nn += k), be === ut.Hours)) + 0 === nn && -12 === k && (nn = 12); + else if (be === ut.FractionalSeconds) + return (function (be, Q) { + return et(be, 3).substr(0, Q); + })(nn, Q); + const In = at(Nt, $.MinusSign); + return et(nn, Q, In, V, ve); + }; + } + function mt(be, Q, k = Y.Format, V = !1) { + return function (ve, nt) { + return (function (be, Q, k, V, ve, nt) { + switch (k) { + case St.Months: + return Oe(Q, ve, V)[be.getMonth()]; + case St.Days: + return le(Q, ve, V)[be.getDay()]; + case St.DayPeriods: + const Nt = be.getHours(), + nn = be.getMinutes(); + if (nt) { + const ni = Bt(Q), + di = Et(Q, ve, V), + ai = ni.findIndex((hi) => { + if (Array.isArray(hi)) { + const [Ei, ki] = hi, + xn = Nt >= Ei.hours && nn >= Ei.minutes, + Kr = + Nt < ki.hours || + (Nt === ki.hours && nn < ki.minutes); + if (Ei.hours < ki.hours) { + if (xn && Kr) return !0; + } else if (xn || Kr) return !0; + } else if (hi.hours === Nt && hi.minutes === nn) + return !0; + return !1; + }); + if (-1 !== ai) return di[ai]; + } + return ae(Q, ve, V)[Nt < 12 ? 0 : 1]; + case St.Eras: + return Le(Q, V)[be.getFullYear() <= 0 ? 0 : 1]; + default: + throw new Error(`unexpected translation type ${k}`); + } + })(ve, nt, be, Q, k, V); + }; + } + function qt(be) { + return function (Q, k, V) { + const ve = -1 * V, + nt = at(k, $.MinusSign), + Nt = ve > 0 ? Math.floor(ve / 60) : Math.ceil(ve / 60); + switch (be) { + case st.Short: + return ( + (ve >= 0 ? "+" : "") + + et(Nt, 2, nt) + + et(Math.abs(ve % 60), 2, nt) + ); + case st.ShortGMT: + return "GMT" + (ve >= 0 ? "+" : "") + et(Nt, 1, nt); + case st.Long: + return ( + "GMT" + + (ve >= 0 ? "+" : "") + + et(Nt, 2, nt) + + ":" + + et(Math.abs(ve % 60), 2, nt) + ); + case st.Extended: + return 0 === V + ? "Z" + : (ve >= 0 ? "+" : "") + + et(Nt, 2, nt) + + ":" + + et(Math.abs(ve % 60), 2, nt); + default: + throw new Error(`Unknown zone width "${be}"`); + } + }; + } + function re(be) { + return tn( + be.getFullYear(), + be.getMonth(), + be.getDate() + (4 - be.getDay()) + ); + } + function Me(be, Q = !1) { + return function (k, V) { + let ve; + if (Q) { + const nt = new Date(k.getFullYear(), k.getMonth(), 1).getDay() - 1, + Nt = k.getDate(); + ve = 1 + Math.floor((Nt + nt) / 7); + } else { + const nt = re(k), + Nt = (function (be) { + const Q = tn(be, 0, 1).getDay(); + return tn(be, 0, 1 + (Q <= 4 ? 4 : 11) - Q); + })(nt.getFullYear()), + nn = nt.getTime() - Nt.getTime(); + ve = 1 + Math.round(nn / 6048e5); + } + return et(ve, be, at(V, $.MinusSign)); + }; + } + function ze(be, Q = !1) { + return function (k, V) { + return et(re(k).getFullYear(), be, at(V, $.MinusSign), Q); + }; + } + const It = {}; + function cn(be, Q) { + be = be.replace(/:/g, ""); + const k = Date.parse("Jan 01, 1970 00:00:00 " + be) / 6e4; + return isNaN(k) ? Q : k; + } + function pt(be) { + return be instanceof Date && !isNaN(be.valueOf()); + } + const Ot = /^(\d+)?\.((\d+)(-(\d+))?)?$/; + function qn(be, Q, k, V, ve, nt, Nt = !1) { + let nn = "", + In = !1; + if (isFinite(be)) { + let ni = (function (be) { + let V, + ve, + nt, + Nt, + nn, + Q = Math.abs(be) + "", + k = 0; + for ( + (ve = Q.indexOf(".")) > -1 && (Q = Q.replace(".", "")), + (nt = Q.search(/e/i)) > 0 + ? (ve < 0 && (ve = nt), + (ve += +Q.slice(nt + 1)), + (Q = Q.substring(0, nt))) + : ve < 0 && (ve = Q.length), + nt = 0; + "0" === Q.charAt(nt); + nt++ + ); + if (nt === (nn = Q.length)) (V = [0]), (ve = 1); + else { + for (nn--; "0" === Q.charAt(nn); ) nn--; + for (ve -= nt, V = [], Nt = 0; nt <= nn; nt++, Nt++) + V[Nt] = Number(Q.charAt(nt)); + } + return ( + ve > 22 && ((V = V.splice(0, 21)), (k = ve - 1), (ve = 1)), + { digits: V, exponent: k, integerLen: ve } + ); + })(be); + Nt && + (ni = (function (be) { + if (0 === be.digits[0]) return be; + const Q = be.digits.length - be.integerLen; + return ( + be.exponent + ? (be.exponent += 2) + : (0 === Q + ? be.digits.push(0, 0) + : 1 === Q && be.digits.push(0), + (be.integerLen += 2)), + be + ); + })(ni)); + let di = Q.minInt, + ai = Q.minFrac, + hi = Q.maxFrac; + if (nt) { + const xr = nt.match(Ot); + if (null === xr) throw new Error(`${nt} is not a valid digit info`); + const cs = xr[1], + es = xr[3], + ds = xr[5]; + null != cs && (di = de(cs)), + null != es && (ai = de(es)), + null != ds ? (hi = de(ds)) : null != es && ai > hi && (hi = ai); + } + !(function (be, Q, k) { + if (Q > k) + throw new Error( + `The minimum number of digits after fraction (${Q}) is higher than the maximum (${k}).` + ); + let V = be.digits, + ve = V.length - be.integerLen; + const nt = Math.min(Math.max(Q, ve), k); + let Nt = nt + be.integerLen, + nn = V[Nt]; + if (Nt > 0) { + V.splice(Math.max(be.integerLen, Nt)); + for (let ai = Nt; ai < V.length; ai++) V[ai] = 0; + } else { + (ve = Math.max(0, ve)), + (be.integerLen = 1), + (V.length = Math.max(1, (Nt = nt + 1))), + (V[0] = 0); + for (let ai = 1; ai < Nt; ai++) V[ai] = 0; + } + if (nn >= 5) + if (Nt - 1 < 0) { + for (let ai = 0; ai > Nt; ai--) V.unshift(0), be.integerLen++; + V.unshift(1), be.integerLen++; + } else V[Nt - 1]++; + for (; ve < Math.max(0, nt); ve++) V.push(0); + let In = 0 !== nt; + const ni = Q + be.integerLen, + di = V.reduceRight(function (ai, hi, Ei, ki) { + return ( + (ki[Ei] = (hi += ai) < 10 ? hi : hi - 10), + In && (0 === ki[Ei] && Ei >= ni ? ki.pop() : (In = !1)), + hi >= 10 ? 1 : 0 + ); + }, 0); + di && (V.unshift(di), be.integerLen++); + })(ni, ai, hi); + let Ei = ni.digits, + ki = ni.integerLen; + const xn = ni.exponent; + let Kr = []; + for (In = Ei.every((xr) => !xr); ki < di; ki++) Ei.unshift(0); + for (; ki < 0; ki++) Ei.unshift(0); + ki > 0 ? (Kr = Ei.splice(ki, Ei.length)) : ((Kr = Ei), (Ei = [0])); + const rr = []; + for ( + Ei.length >= Q.lgSize && + rr.unshift(Ei.splice(-Q.lgSize, Ei.length).join("")); + Ei.length > Q.gSize; + + ) + rr.unshift(Ei.splice(-Q.gSize, Ei.length).join("")); + Ei.length && rr.unshift(Ei.join("")), + (nn = rr.join(at(k, V))), + Kr.length && (nn += at(k, ve) + Kr.join("")), + xn && (nn += at(k, $.Exponential) + "+" + xn); + } else nn = at(k, $.Infinity); + return ( + (nn = + be < 0 && !In + ? Q.negPre + nn + Q.negSuf + : Q.posPre + nn + Q.posSuf), + nn + ); + } + function Vi(be, Q, k, V, ve) { + const Nt = Ze(ft(Q, F.Currency), at(Q, $.MinusSign)); + return ( + (Nt.minFrac = X(V)), + (Nt.maxFrac = Nt.minFrac), + qn(be, Nt, Q, $.CurrencyGroup, $.CurrencyDecimal, ve) + .replace("\xa4", k) + .replace("\xa4", "") + .trim() + ); + } + function ci(be, Q, k) { + return qn( + be, + Ze(ft(Q, F.Percent), at(Q, $.MinusSign)), + Q, + $.Group, + $.Decimal, + k, + !0 + ).replace(new RegExp("%", "g"), at(Q, $.PercentSign)); + } + function xe(be, Q, k) { + return qn( + be, + Ze(ft(Q, F.Decimal), at(Q, $.MinusSign)), + Q, + $.Group, + $.Decimal, + k + ); + } + function Ze(be, Q = "-") { + const k = { + minInt: 1, + minFrac: 0, + maxFrac: 0, + posPre: "", + posSuf: "", + negPre: "", + negSuf: "", + gSize: 0, + lgSize: 0, + }, + V = be.split(";"), + ve = V[0], + nt = V[1], + Nt = + -1 !== ve.indexOf(".") + ? ve.split(".") + : [ + ve.substring(0, ve.lastIndexOf("0") + 1), + ve.substring(ve.lastIndexOf("0") + 1), + ], + nn = Nt[0], + In = Nt[1] || ""; + k.posPre = nn.substr(0, nn.indexOf("#")); + for (let di = 0; di < In.length; di++) { + const ai = In.charAt(di); + "0" === ai + ? (k.minFrac = k.maxFrac = di + 1) + : "#" === ai + ? (k.maxFrac = di + 1) + : (k.posSuf += ai); + } + const ni = nn.split(","); + if ( + ((k.gSize = ni[1] ? ni[1].length : 0), + (k.lgSize = ni[2] || ni[1] ? (ni[2] || ni[1]).length : 0), + nt) + ) { + const di = ve.length - k.posPre.length - k.posSuf.length, + ai = nt.indexOf("#"); + (k.negPre = nt.substr(0, ai).replace(/'/g, "")), + (k.negSuf = nt.substr(ai + di).replace(/'/g, "")); + } else (k.negPre = Q + k.posPre), (k.negSuf = k.posSuf); + return k; + } + function de(be) { + const Q = parseInt(be); + if (isNaN(Q)) + throw new Error("Invalid integer literal when parsing " + be); + return Q; + } + class Pe {} + function Xe(be, Q, k, V) { + let ve = `=${be}`; + if ( + Q.indexOf(ve) > -1 || + ((ve = k.getPluralCategory(be, V)), Q.indexOf(ve) > -1) + ) + return ve; + if (Q.indexOf("other") > -1) return "other"; + throw new Error(`No plural message found for value "${be}"`); + } + let Wt = (() => { + class be extends Pe { + constructor(k) { + super(), (this.locale = k); + } + getPluralCategory(k, V) { + switch (At(V || this.locale)(k)) { + case ie.Zero: + return "zero"; + case ie.One: + return "one"; + case ie.Two: + return "two"; + case ie.Few: + return "few"; + case ie.Many: + return "many"; + default: + return "other"; + } + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵinject(n.LOCALE_ID)); + }), + (be.ɵprov = n.ɵɵdefineInjectable({ token: be, factory: be.ɵfac })), + be + ); + })(); + function Ft(be, Q, k) { + return (0, n.ɵregisterLocaleData)(be, Q, k); + } + function Ht(be, Q) { + Q = encodeURIComponent(Q); + for (const k of be.split(";")) { + const V = k.indexOf("="), + [ve, nt] = -1 == V ? [k, ""] : [k.slice(0, V), k.slice(V + 1)]; + if (ve.trim() === Q) return decodeURIComponent(nt); + } + return null; + } + let Zt = (() => { + class be { + constructor(k, V, ve, nt) { + (this._iterableDiffers = k), + (this._keyValueDiffers = V), + (this._ngEl = ve), + (this._renderer = nt), + (this._iterableDiffer = null), + (this._keyValueDiffer = null), + (this._initialClasses = []), + (this._rawClass = null); + } + set klass(k) { + this._removeClasses(this._initialClasses), + (this._initialClasses = + "string" == typeof k ? k.split(/\s+/) : []), + this._applyClasses(this._initialClasses), + this._applyClasses(this._rawClass); + } + set ngClass(k) { + this._removeClasses(this._rawClass), + this._applyClasses(this._initialClasses), + (this._iterableDiffer = null), + (this._keyValueDiffer = null), + (this._rawClass = "string" == typeof k ? k.split(/\s+/) : k), + this._rawClass && + ((0, n.ɵisListLikeIterable)(this._rawClass) + ? (this._iterableDiffer = this._iterableDiffers + .find(this._rawClass) + .create()) + : (this._keyValueDiffer = this._keyValueDiffers + .find(this._rawClass) + .create())); + } + ngDoCheck() { + if (this._iterableDiffer) { + const k = this._iterableDiffer.diff(this._rawClass); + k && this._applyIterableChanges(k); + } else if (this._keyValueDiffer) { + const k = this._keyValueDiffer.diff(this._rawClass); + k && this._applyKeyValueChanges(k); + } + } + _applyKeyValueChanges(k) { + k.forEachAddedItem((V) => + this._toggleClass(V.key, V.currentValue) + ), + k.forEachChangedItem((V) => + this._toggleClass(V.key, V.currentValue) + ), + k.forEachRemovedItem((V) => { + V.previousValue && this._toggleClass(V.key, !1); + }); + } + _applyIterableChanges(k) { + k.forEachAddedItem((V) => { + if ("string" != typeof V.item) + throw new Error( + `NgClass can only toggle CSS classes expressed as strings, got ${(0, + n.ɵstringify)(V.item)}` + ); + this._toggleClass(V.item, !0); + }), + k.forEachRemovedItem((V) => this._toggleClass(V.item, !1)); + } + _applyClasses(k) { + k && + (Array.isArray(k) || k instanceof Set + ? k.forEach((V) => this._toggleClass(V, !0)) + : Object.keys(k).forEach((V) => + this._toggleClass(V, !!k[V]) + )); + } + _removeClasses(k) { + k && + (Array.isArray(k) || k instanceof Set + ? k.forEach((V) => this._toggleClass(V, !1)) + : Object.keys(k).forEach((V) => this._toggleClass(V, !1))); + } + _toggleClass(k, V) { + (k = k.trim()) && + k.split(/\s+/g).forEach((ve) => { + V + ? this._renderer.addClass(this._ngEl.nativeElement, ve) + : this._renderer.removeClass(this._ngEl.nativeElement, ve); + }); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵdirectiveInject(n.IterableDiffers), + n.ɵɵdirectiveInject(n.KeyValueDiffers), + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(n.Renderer2) + ); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngClass", ""]], + inputs: { klass: ["class", "klass"], ngClass: "ngClass" }, + })), + be + ); + })(), + an = (() => { + class be { + constructor(k) { + (this._viewContainerRef = k), + (this._componentRef = null), + (this._moduleRef = null); + } + ngOnChanges(k) { + if ( + (this._viewContainerRef.clear(), + (this._componentRef = null), + this.ngComponentOutlet) + ) { + const V = + this.ngComponentOutletInjector || + this._viewContainerRef.parentInjector; + if (k.ngComponentOutletNgModuleFactory) + if ( + (this._moduleRef && this._moduleRef.destroy(), + this.ngComponentOutletNgModuleFactory) + ) { + const Nt = V.get(n.NgModuleRef); + this._moduleRef = this.ngComponentOutletNgModuleFactory.create( + Nt.injector + ); + } else this._moduleRef = null; + const nt = (this._moduleRef + ? this._moduleRef.componentFactoryResolver + : V.get(n.ComponentFactoryResolver) + ).resolveComponentFactory(this.ngComponentOutlet); + this._componentRef = this._viewContainerRef.createComponent( + nt, + this._viewContainerRef.length, + V, + this.ngComponentOutletContent + ); + } + } + ngOnDestroy() { + this._moduleRef && this._moduleRef.destroy(); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵdirectiveInject(n.ViewContainerRef)); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngComponentOutlet", ""]], + inputs: { + ngComponentOutlet: "ngComponentOutlet", + ngComponentOutletInjector: "ngComponentOutletInjector", + ngComponentOutletContent: "ngComponentOutletContent", + ngComponentOutletNgModuleFactory: + "ngComponentOutletNgModuleFactory", + }, + features: [n.ɵɵNgOnChangesFeature], + })), + be + ); + })(); + class Tn { + constructor(Q, k, V, ve) { + (this.$implicit = Q), + (this.ngForOf = k), + (this.index = V), + (this.count = ve); + } + 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; + } + } + let zn = (() => { + class be { + constructor(k, V, ve) { + (this._viewContainer = k), + (this._template = V), + (this._differs = ve), + (this._ngForOf = null), + (this._ngForOfDirty = !0), + (this._differ = null); + } + set ngForOf(k) { + (this._ngForOf = k), (this._ngForOfDirty = !0); + } + set ngForTrackBy(k) { + this._trackByFn = k; + } + get ngForTrackBy() { + return this._trackByFn; + } + set ngForTemplate(k) { + k && (this._template = k); + } + ngDoCheck() { + if (this._ngForOfDirty) { + this._ngForOfDirty = !1; + const k = this._ngForOf; + !this._differ && + k && + (this._differ = this._differs + .find(k) + .create(this.ngForTrackBy)); + } + if (this._differ) { + const k = this._differ.diff(this._ngForOf); + k && this._applyChanges(k); + } + } + _applyChanges(k) { + const V = this._viewContainer; + k.forEachOperation((ve, nt, Nt) => { + if (null == ve.previousIndex) + V.createEmbeddedView( + this._template, + new Tn(ve.item, this._ngForOf, -1, -1), + null === Nt ? void 0 : Nt + ); + else if (null == Nt) V.remove(null === nt ? void 0 : nt); + else if (null !== nt) { + const nn = V.get(nt); + V.move(nn, Nt), $n(nn, ve); + } + }); + for (let ve = 0, nt = V.length; ve < nt; ve++) { + const nn = V.get(ve).context; + (nn.index = ve), (nn.count = nt), (nn.ngForOf = this._ngForOf); + } + k.forEachIdentityChange((ve) => { + $n(V.get(ve.currentIndex), ve); + }); + } + static ngTemplateContextGuard(k, V) { + return !0; + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(n.TemplateRef), + n.ɵɵdirectiveInject(n.IterableDiffers) + ); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngFor", "", "ngForOf", ""]], + inputs: { + ngForOf: "ngForOf", + ngForTrackBy: "ngForTrackBy", + ngForTemplate: "ngForTemplate", + }, + })), + be + ); + })(); + function $n(be, Q) { + be.context.$implicit = Q.item; + } + let jn = (() => { + class be { + constructor(k, V) { + (this._viewContainer = k), + (this._context = new Qn()), + (this._thenTemplateRef = null), + (this._elseTemplateRef = null), + (this._thenViewRef = null), + (this._elseViewRef = null), + (this._thenTemplateRef = V); + } + set ngIf(k) { + (this._context.$implicit = this._context.ngIf = k), + this._updateView(); + } + set ngIfThen(k) { + kn("ngIfThen", k), + (this._thenTemplateRef = k), + (this._thenViewRef = null), + this._updateView(); + } + set ngIfElse(k) { + kn("ngIfElse", k), + (this._elseTemplateRef = k), + (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 ngTemplateContextGuard(k, V) { + return !0; + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(n.TemplateRef) + ); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngIf", ""]], + inputs: { + ngIf: "ngIf", + ngIfThen: "ngIfThen", + ngIfElse: "ngIfElse", + }, + })), + be + ); + })(); + class Qn { + constructor() { + (this.$implicit = null), (this.ngIf = null); + } + } + function kn(be, Q) { + if (Q && !Q.createEmbeddedView) + throw new Error( + `${be} must be a TemplateRef, but received '${(0, n.ɵstringify)( + Q + )}'.` + ); + } + class Mi { + constructor(Q, k) { + (this._viewContainerRef = Q), + (this._templateRef = k), + (this._created = !1); + } + create() { + (this._created = !0), + this._viewContainerRef.createEmbeddedView(this._templateRef); + } + destroy() { + (this._created = !1), this._viewContainerRef.clear(); + } + enforceState(Q) { + Q && !this._created + ? this.create() + : !Q && this._created && this.destroy(); + } + } + let Zi = (() => { + class be { + constructor() { + (this._defaultUsed = !1), + (this._caseCount = 0), + (this._lastCaseCheckIndex = 0), + (this._lastCasesMatched = !1); + } + set ngSwitch(k) { + (this._ngSwitch = k), + 0 === this._caseCount && this._updateDefaultCases(!0); + } + _addCase() { + return this._caseCount++; + } + _addDefault(k) { + this._defaultViews || (this._defaultViews = []), + this._defaultViews.push(k); + } + _matchCase(k) { + const V = k == this._ngSwitch; + return ( + (this._lastCasesMatched = this._lastCasesMatched || V), + this._lastCaseCheckIndex++, + this._lastCaseCheckIndex === this._caseCount && + (this._updateDefaultCases(!this._lastCasesMatched), + (this._lastCaseCheckIndex = 0), + (this._lastCasesMatched = !1)), + V + ); + } + _updateDefaultCases(k) { + if (this._defaultViews && k !== this._defaultUsed) { + this._defaultUsed = k; + for (let V = 0; V < this._defaultViews.length; V++) + this._defaultViews[V].enforceState(k); + } + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngSwitch", ""]], + inputs: { ngSwitch: "ngSwitch" }, + })), + be + ); + })(), + Xn = (() => { + class be { + constructor(k, V, ve) { + (this.ngSwitch = ve), ve._addCase(), (this._view = new Mi(k, V)); + } + ngDoCheck() { + this._view.enforceState( + this.ngSwitch._matchCase(this.ngSwitchCase) + ); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(n.TemplateRef), + n.ɵɵdirectiveInject(Zi, 9) + ); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngSwitchCase", ""]], + inputs: { ngSwitchCase: "ngSwitchCase" }, + })), + be + ); + })(), + pi = (() => { + class be { + constructor(k, V, ve) { + ve._addDefault(new Mi(k, V)); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(n.TemplateRef), + n.ɵɵdirectiveInject(Zi, 9) + ); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngSwitchDefault", ""]], + })), + be + ); + })(), + Ui = (() => { + class be { + constructor(k) { + (this._localization = k), (this._caseViews = {}); + } + set ngPlural(k) { + (this._switchValue = k), this._updateView(); + } + addCase(k, V) { + this._caseViews[k] = V; + } + _updateView() { + this._clearViews(); + const k = Object.keys(this._caseViews), + V = Xe(this._switchValue, k, this._localization); + this._activateView(this._caseViews[V]); + } + _clearViews() { + this._activeView && this._activeView.destroy(); + } + _activateView(k) { + k && ((this._activeView = k), this._activeView.create()); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵdirectiveInject(Pe)); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngPlural", ""]], + inputs: { ngPlural: "ngPlural" }, + })), + be + ); + })(), + tr = (() => { + class be { + constructor(k, V, ve, nt) { + this.value = k; + const Nt = !isNaN(Number(k)); + nt.addCase(Nt ? `=${k}` : k, new Mi(ve, V)); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵinjectAttribute("ngPluralCase"), + n.ɵɵdirectiveInject(n.TemplateRef), + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(Ui, 1) + ); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngPluralCase", ""]], + })), + be + ); + })(), + bi = (() => { + class be { + constructor(k, V, ve) { + (this._ngEl = k), + (this._differs = V), + (this._renderer = ve), + (this._ngStyle = null), + (this._differ = null); + } + set ngStyle(k) { + (this._ngStyle = k), + !this._differ && + k && + (this._differ = this._differs.find(k).create()); + } + ngDoCheck() { + if (this._differ) { + const k = this._differ.diff(this._ngStyle); + k && this._applyChanges(k); + } + } + _setStyle(k, V) { + const [ve, nt] = k.split("."); + null != (V = null != V && nt ? `${V}${nt}` : V) + ? this._renderer.setStyle(this._ngEl.nativeElement, ve, V) + : this._renderer.removeStyle(this._ngEl.nativeElement, ve); + } + _applyChanges(k) { + k.forEachRemovedItem((V) => this._setStyle(V.key, null)), + k.forEachAddedItem((V) => + this._setStyle(V.key, V.currentValue) + ), + k.forEachChangedItem((V) => + this._setStyle(V.key, V.currentValue) + ); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(n.KeyValueDiffers), + n.ɵɵdirectiveInject(n.Renderer2) + ); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngStyle", ""]], + inputs: { ngStyle: "ngStyle" }, + })), + be + ); + })(), + Rn = (() => { + class be { + constructor(k) { + (this._viewContainerRef = k), + (this._viewRef = null), + (this.ngTemplateOutletContext = null), + (this.ngTemplateOutlet = null); + } + ngOnChanges(k) { + if (k.ngTemplateOutlet) { + const V = this._viewContainerRef; + this._viewRef && V.remove(V.indexOf(this._viewRef)), + (this._viewRef = this.ngTemplateOutlet + ? V.createEmbeddedView( + this.ngTemplateOutlet, + this.ngTemplateOutletContext + ) + : null); + } else + this._viewRef && + k.ngTemplateOutletContext && + this.ngTemplateOutletContext && + (this._viewRef.context = this.ngTemplateOutletContext); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵdirectiveInject(n.ViewContainerRef)); + }), + (be.ɵdir = n.ɵɵdefineDirective({ + type: be, + selectors: [["", "ngTemplateOutlet", ""]], + inputs: { + ngTemplateOutletContext: "ngTemplateOutletContext", + ngTemplateOutlet: "ngTemplateOutlet", + }, + features: [n.ɵɵNgOnChangesFeature], + })), + be + ); + })(); + function oi(be, Q) { + return Error( + `InvalidPipeArgument: '${Q}' for pipe '${(0, n.ɵstringify)(be)}'` + ); + } + class Fn { + createSubscription(Q, k) { + return Q.subscribe({ + next: k, + error: (V) => { + throw V; + }, + }); + } + dispose(Q) { + Q.unsubscribe(); + } + onDestroy(Q) { + Q.unsubscribe(); + } + } + class $i { + createSubscription(Q, k) { + return Q.then(k, (V) => { + throw V; + }); + } + dispose(Q) {} + onDestroy(Q) {} + } + const mi = new $i(), + Gn = new Fn(); + let ur = (() => { + class be { + constructor(k) { + (this._ref = k), + (this._latestValue = null), + (this._subscription = null), + (this._obj = null), + (this._strategy = null); + } + ngOnDestroy() { + this._subscription && this._dispose(); + } + transform(k) { + return this._obj + ? k !== this._obj + ? (this._dispose(), this.transform(k)) + : this._latestValue + : (k && this._subscribe(k), this._latestValue); + } + _subscribe(k) { + (this._obj = k), + (this._strategy = this._selectStrategy(k)), + (this._subscription = this._strategy.createSubscription( + k, + (V) => this._updateLatestValue(k, V) + )); + } + _selectStrategy(k) { + if ((0, n.ɵisPromise)(k)) return mi; + if ((0, n.ɵisSubscribable)(k)) return Gn; + throw oi(be, k); + } + _dispose() { + this._strategy.dispose(this._subscription), + (this._latestValue = null), + (this._subscription = null), + (this._obj = null); + } + _updateLatestValue(k, V) { + k === this._obj && + ((this._latestValue = V), this._ref.markForCheck()); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵdirectiveInject(n.ChangeDetectorRef, 16) + ); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ name: "async", type: be, pure: !1 })), + be + ); + })(), + gn = (() => { + class be { + transform(k) { + if (null == k) return null; + if ("string" != typeof k) throw oi(be, k); + return k.toLowerCase(); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ + name: "lowercase", + type: be, + pure: !0, + })), + be + ); + })(); + const yn = /(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g; + let Sn = (() => { + class be { + transform(k) { + if (null == k) return null; + if ("string" != typeof k) throw oi(be, k); + return k.replace( + yn, + (V) => V[0].toUpperCase() + V.substr(1).toLowerCase() + ); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ + name: "titlecase", + type: be, + pure: !0, + })), + be + ); + })(), + Wn = (() => { + class be { + transform(k) { + if (null == k) return null; + if ("string" != typeof k) throw oi(be, k); + return k.toUpperCase(); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ + name: "uppercase", + type: be, + pure: !0, + })), + be + ); + })(); + const Ri = new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"); + let Li = (() => { + class be { + constructor(k, V) { + (this.locale = k), (this.defaultTimezone = V); + } + transform(k, V = "mediumDate", ve, nt) { + var Nt; + if (null == k || "" === k || k != k) return null; + try { + return Xt( + k, + V, + nt || this.locale, + null !== (Nt = null != ve ? ve : this.defaultTimezone) && + void 0 !== Nt + ? Nt + : void 0 + ); + } catch (nn) { + throw oi(be, nn.message); + } + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵdirectiveInject(n.LOCALE_ID, 16), + n.ɵɵdirectiveInject(Ri, 24) + ); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ name: "date", type: be, pure: !0 })), + be + ); + })(); + const as = /#/g; + let Vr = (() => { + class be { + constructor(k) { + this._localization = k; + } + transform(k, V, ve) { + if (null == k) return ""; + if ("object" != typeof V || null === V) throw oi(be, V); + return V[Xe(k, Object.keys(V), this._localization, ve)].replace( + as, + k.toString() + ); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵdirectiveInject(Pe, 16)); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ + name: "i18nPlural", + type: be, + pure: !0, + })), + be + ); + })(), + nr = (() => { + class be { + transform(k, V) { + if (null == k) return ""; + if ("object" != typeof V || "string" != typeof k) throw oi(be, V); + return V.hasOwnProperty(k) + ? V[k] + : V.hasOwnProperty("other") + ? V.other + : ""; + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ + name: "i18nSelect", + type: be, + pure: !0, + })), + be + ); + })(), + Or = (() => { + class be { + transform(k) { + return JSON.stringify(k, null, 2); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ name: "json", type: be, pure: !1 })), + be + ); + })(), + cr = (() => { + class be { + constructor(k) { + (this.differs = k), (this.keyValues = []), (this.compareFn = $r); + } + transform(k, V = $r) { + if (!k || (!(k instanceof Map) && "object" != typeof k)) + return null; + this.differ || (this.differ = this.differs.find(k).create()); + const ve = this.differ.diff(k), + nt = V !== this.compareFn; + return ( + ve && + ((this.keyValues = []), + ve.forEachItem((Nt) => { + this.keyValues.push( + (function (be, Q) { + return { key: be, value: Q }; + })(Nt.key, Nt.currentValue) + ); + })), + (ve || nt) && (this.keyValues.sort(V), (this.compareFn = V)), + this.keyValues + ); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵdirectiveInject(n.KeyValueDiffers, 16)); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ + name: "keyvalue", + type: be, + pure: !1, + })), + be + ); + })(); + function $r(be, Q) { + const k = be.key, + V = Q.key; + if (k === V) return 0; + if (void 0 === k) return 1; + if (void 0 === V) return -1; + if (null === k) return 1; + if (null === V) return -1; + if ("string" == typeof k && "string" == typeof V) return k < V ? -1 : 1; + if ("number" == typeof k && "number" == typeof V) return k - V; + if ("boolean" == typeof k && "boolean" == typeof V) + return k < V ? -1 : 1; + const ve = String(k), + nt = String(V); + return ve == nt ? 0 : ve < nt ? -1 : 1; + } + let hr = (() => { + class be { + constructor(k) { + this._locale = k; + } + transform(k, V, ve) { + if (!Cr(k)) return null; + ve = ve || this._locale; + try { + return xe(Sr(k), ve, V); + } catch (nt) { + throw oi(be, nt.message); + } + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵdirectiveInject(n.LOCALE_ID, 16)); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ name: "number", type: be, pure: !0 })), + be + ); + })(), + qr = (() => { + class be { + constructor(k) { + this._locale = k; + } + transform(k, V, ve) { + if (!Cr(k)) return null; + ve = ve || this._locale; + try { + return ci(Sr(k), ve, V); + } catch (nt) { + throw oi(be, nt.message); + } + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(n.ɵɵdirectiveInject(n.LOCALE_ID, 16)); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ + name: "percent", + type: be, + pure: !0, + })), + be + ); + })(), + ir = (() => { + class be { + constructor(k, V = "USD") { + (this._locale = k), (this._defaultCurrencyCode = V); + } + transform(k, V = this._defaultCurrencyCode, ve = "symbol", nt, Nt) { + if (!Cr(k)) return null; + (Nt = Nt || this._locale), + "boolean" == typeof ve && (ve = ve ? "symbol" : "code"); + let nn = V || this._defaultCurrencyCode; + "code" !== ve && + (nn = + "symbol" === ve || "symbol-narrow" === ve + ? D(nn, "symbol" === ve ? "wide" : "narrow", Nt) + : ve); + try { + return Vi(Sr(k), Nt, nn, V, nt); + } catch (In) { + throw oi(be, In.message); + } + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)( + n.ɵɵdirectiveInject(n.LOCALE_ID, 16), + n.ɵɵdirectiveInject(n.DEFAULT_CURRENCY_CODE, 16) + ); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ + name: "currency", + type: be, + pure: !0, + })), + be + ); + })(); + function Cr(be) { + return !(null == be || "" === be || be != be); + } + function Sr(be) { + if ("string" == typeof be && !isNaN(Number(be) - parseFloat(be))) + return Number(be); + if ("number" != typeof be) throw new Error(`${be} is not a number`); + return be; + } + let mr = (() => { + class be { + transform(k, V, ve) { + if (null == k) return null; + if (!this.supports(k)) throw oi(be, k); + return k.slice(V, ve); + } + supports(k) { + return "string" == typeof k || Array.isArray(k); + } + } + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵpipe = n.ɵɵdefinePipe({ name: "slice", type: be, pure: !1 })), + be + ); + })(), + jr = (() => { + class be {} + return ( + (be.ɵfac = function (k) { + return new (k || be)(); + }), + (be.ɵmod = n.ɵɵdefineNgModule({ type: be })), + (be.ɵinj = n.ɵɵdefineInjector({ + providers: [{ provide: Pe, useClass: Wt }], + })), + be + ); + })(); + const Wi = "browser", + Wr = "server", + Rr = "browserWorkerApp", + Dr = "browserWorkerUi"; + function Lr(be) { + return be === Wi; + } + function Ji(be) { + return be === Wr; + } + function Fr(be) { + return be === Rr; + } + function ls(be) { + return be === Dr; + } + const kr = new n.Version("13.1.1"); + let Jr = (() => { + class be {} + return ( + (be.ɵprov = (0, n.ɵɵdefineInjectable)({ + token: be, + providedIn: "root", + factory: () => new Tr((0, n.ɵɵinject)(u), window), + })), + be + ); + })(); + class Tr { + constructor(Q, k) { + (this.document = Q), (this.window = k), (this.offset = () => [0, 0]); + } + setOffset(Q) { + this.offset = Array.isArray(Q) ? () => Q : Q; + } + getScrollPosition() { + return this.supportsScrolling() + ? [this.window.pageXOffset, this.window.pageYOffset] + : [0, 0]; + } + scrollToPosition(Q) { + this.supportsScrolling() && this.window.scrollTo(Q[0], Q[1]); + } + scrollToAnchor(Q) { + if (!this.supportsScrolling()) return; + const k = (function (be, Q) { + const k = be.getElementById(Q) || be.getElementsByName(Q)[0]; + if (k) return k; + if ( + "function" == typeof be.createTreeWalker && + be.body && + (be.body.createShadowRoot || be.body.attachShadow) + ) { + const V = be.createTreeWalker(be.body, NodeFilter.SHOW_ELEMENT); + let ve = V.currentNode; + for (; ve; ) { + const nt = ve.shadowRoot; + if (nt) { + const Nt = + nt.getElementById(Q) || nt.querySelector(`[name="${Q}"]`); + if (Nt) return Nt; + } + ve = V.nextNode(); + } + } + return null; + })(this.document, Q); + k && (this.scrollToElement(k), this.attemptFocus(k)); + } + setHistoryScrollRestoration(Q) { + if (this.supportScrollRestoration()) { + const k = this.window.history; + k && k.scrollRestoration && (k.scrollRestoration = Q); + } + } + scrollToElement(Q) { + const k = Q.getBoundingClientRect(), + V = k.left + this.window.pageXOffset, + ve = k.top + this.window.pageYOffset, + nt = this.offset(); + this.window.scrollTo(V - nt[0], ve - nt[1]); + } + attemptFocus(Q) { + return Q.focus(), this.document.activeElement === Q; + } + supportScrollRestoration() { + try { + if (!this.supportsScrolling()) return !1; + const Q = + us(this.window.history) || + us(Object.getPrototypeOf(this.window.history)); + return !(!Q || (!Q.writable && !Q.set)); + } catch (Q) { + return !1; + } + } + supportsScrolling() { + try { + return ( + !!this.window && + !!this.window.scrollTo && + "pageXOffset" in this.window + ); + } catch (Q) { + return !1; + } + } + } + function us(be) { + return Object.getOwnPropertyDescriptor(be, "scrollRestoration"); + } + class zr { + setOffset(Q) {} + getScrollPosition() { + return [0, 0]; + } + scrollToPosition(Q) {} + scrollToAnchor(Q) {} + setHistoryScrollRestoration(Q) {} + } + class Er {} + }, + 520: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + HTTP_INTERCEPTORS: () => ne, + HttpBackend: () => r, + HttpClient: () => $, + HttpClientJsonpModule: () => H, + HttpClientModule: () => fe, + HttpClientXsrfModule: () => Ee, + HttpContext: () => O, + HttpContextToken: () => T, + HttpErrorResponse: () => Z, + HttpEventType: () => L, + HttpHandler: () => h, + HttpHeaderResponse: () => ie, + HttpHeaders: () => o, + HttpParams: () => x, + HttpRequest: () => C, + HttpResponse: () => Y, + HttpResponseBase: () => F, + HttpUrlEncodingCodec: () => i, + HttpXhrBackend: () => ft, + HttpXsrfTokenExtractor: () => ot, + JsonpClientBackend: () => gt, + JsonpInterceptor: () => Ue, + XhrFactory: () => D, + ɵHttpInterceptingHandler: () => Tt, + }); + var n = p(9808), + f = p(5e3), + _ = p(1086), + m = p(6498), + s = p(1406), + d = p(2198), + u = p(4850); + class h {} + class r {} + class o { + constructor(X) { + (this.normalizedNames = new Map()), + (this.lazyUpdate = null), + X + ? (this.lazyInit = + "string" == typeof X + ? () => { + (this.headers = new Map()), + X.split("\n").forEach((_e) => { + const Be = _e.indexOf(":"); + if (Be > 0) { + const $e = _e.slice(0, Be), + st = $e.toLowerCase(), + ut = _e.slice(Be + 1).trim(); + this.maybeSetNormalizedName($e, st), + this.headers.has(st) + ? this.headers.get(st).push(ut) + : this.headers.set(st, [ut]); + } + }); + } + : () => { + (this.headers = new Map()), + Object.keys(X).forEach((_e) => { + let Be = X[_e]; + const $e = _e.toLowerCase(); + "string" == typeof Be && (Be = [Be]), + Be.length > 0 && + (this.headers.set($e, Be), + this.maybeSetNormalizedName(_e, $e)); + }); + }) + : (this.headers = new Map()); + } + has(X) { + return this.init(), this.headers.has(X.toLowerCase()); + } + get(X) { + this.init(); + const _e = this.headers.get(X.toLowerCase()); + return _e && _e.length > 0 ? _e[0] : null; + } + keys() { + return this.init(), Array.from(this.normalizedNames.values()); + } + getAll(X) { + return this.init(), this.headers.get(X.toLowerCase()) || null; + } + append(X, _e) { + return this.clone({ name: X, value: _e, op: "a" }); + } + set(X, _e) { + return this.clone({ name: X, value: _e, op: "s" }); + } + delete(X, _e) { + return this.clone({ name: X, value: _e, op: "d" }); + } + maybeSetNormalizedName(X, _e) { + this.normalizedNames.has(_e) || this.normalizedNames.set(_e, X); + } + init() { + this.lazyInit && + (this.lazyInit instanceof o + ? this.copyFrom(this.lazyInit) + : this.lazyInit(), + (this.lazyInit = null), + this.lazyUpdate && + (this.lazyUpdate.forEach((X) => this.applyUpdate(X)), + (this.lazyUpdate = null))); + } + copyFrom(X) { + X.init(), + Array.from(X.headers.keys()).forEach((_e) => { + this.headers.set(_e, X.headers.get(_e)), + this.normalizedNames.set(_e, X.normalizedNames.get(_e)); + }); + } + clone(X) { + const _e = new o(); + return ( + (_e.lazyInit = + this.lazyInit && this.lazyInit instanceof o + ? this.lazyInit + : this), + (_e.lazyUpdate = (this.lazyUpdate || []).concat([X])), + _e + ); + } + applyUpdate(X) { + const _e = X.name.toLowerCase(); + switch (X.op) { + case "a": + case "s": + let Be = X.value; + if (("string" == typeof Be && (Be = [Be]), 0 === Be.length)) + return; + this.maybeSetNormalizedName(X.name, _e); + const $e = ("a" === X.op ? this.headers.get(_e) : void 0) || []; + $e.push(...Be), this.headers.set(_e, $e); + break; + case "d": + const st = X.value; + if (st) { + let ut = this.headers.get(_e); + if (!ut) return; + (ut = ut.filter((St) => -1 === st.indexOf(St))), + 0 === ut.length + ? (this.headers.delete(_e), this.normalizedNames.delete(_e)) + : this.headers.set(_e, ut); + } else this.headers.delete(_e), this.normalizedNames.delete(_e); + } + } + forEach(X) { + this.init(), + Array.from(this.normalizedNames.keys()).forEach((_e) => + X(this.normalizedNames.get(_e), this.headers.get(_e)) + ); + } + } + class i { + encodeKey(X) { + return b(X); + } + encodeValue(X) { + return b(X); + } + decodeKey(X) { + return decodeURIComponent(X); + } + decodeValue(X) { + return decodeURIComponent(X); + } + } + const l = /%(\d[a-f0-9])/gi, + g = { + 40: "@", + "3A": ":", + 24: "$", + "2C": ",", + "3B": ";", + "2B": "+", + "3D": "=", + "3F": "?", + "2F": "/", + }; + function b(U) { + return encodeURIComponent(U).replace(l, (X, _e) => { + var Be; + return null !== (Be = g[_e]) && void 0 !== Be ? Be : X; + }); + } + function y(U) { + return `${U}`; + } + class x { + constructor(X = {}) { + if ( + ((this.updates = null), + (this.cloneFrom = null), + (this.encoder = X.encoder || new i()), + X.fromString) + ) { + if (X.fromObject) + throw new Error("Cannot specify both fromString and fromObject."); + this.map = (function (U, X) { + const _e = new Map(); + return ( + U.length > 0 && + U.replace(/^\?/, "") + .split("&") + .forEach(($e) => { + const st = $e.indexOf("="), + [ut, St] = + -1 == st + ? [X.decodeKey($e), ""] + : [ + X.decodeKey($e.slice(0, st)), + X.decodeValue($e.slice(st + 1)), + ], + Xt = _e.get(ut) || []; + Xt.push(St), _e.set(ut, Xt); + }), + _e + ); + })(X.fromString, this.encoder); + } else + X.fromObject + ? ((this.map = new Map()), + Object.keys(X.fromObject).forEach((_e) => { + const Be = X.fromObject[_e]; + this.map.set(_e, Array.isArray(Be) ? Be : [Be]); + })) + : (this.map = null); + } + has(X) { + return this.init(), this.map.has(X); + } + get(X) { + this.init(); + const _e = this.map.get(X); + return _e ? _e[0] : null; + } + getAll(X) { + return this.init(), this.map.get(X) || null; + } + keys() { + return this.init(), Array.from(this.map.keys()); + } + append(X, _e) { + return this.clone({ param: X, value: _e, op: "a" }); + } + appendAll(X) { + const _e = []; + return ( + Object.keys(X).forEach((Be) => { + const $e = X[Be]; + Array.isArray($e) + ? $e.forEach((st) => { + _e.push({ param: Be, value: st, op: "a" }); + }) + : _e.push({ param: Be, value: $e, op: "a" }); + }), + this.clone(_e) + ); + } + set(X, _e) { + return this.clone({ param: X, value: _e, op: "s" }); + } + delete(X, _e) { + return this.clone({ param: X, value: _e, op: "d" }); + } + toString() { + return ( + this.init(), + this.keys() + .map((X) => { + const _e = this.encoder.encodeKey(X); + return this.map + .get(X) + .map((Be) => _e + "=" + this.encoder.encodeValue(Be)) + .join("&"); + }) + .filter((X) => "" !== X) + .join("&") + ); + } + clone(X) { + const _e = new x({ encoder: this.encoder }); + return ( + (_e.cloneFrom = this.cloneFrom || this), + (_e.updates = (this.updates || []).concat(X)), + _e + ); + } + init() { + null === this.map && (this.map = new Map()), + null !== this.cloneFrom && + (this.cloneFrom.init(), + this.cloneFrom + .keys() + .forEach((X) => this.map.set(X, this.cloneFrom.map.get(X))), + this.updates.forEach((X) => { + switch (X.op) { + case "a": + case "s": + const _e = + ("a" === X.op ? this.map.get(X.param) : void 0) || []; + _e.push(y(X.value)), this.map.set(X.param, _e); + break; + case "d": + if (void 0 === X.value) { + this.map.delete(X.param); + break; + } + { + let Be = this.map.get(X.param) || []; + const $e = Be.indexOf(y(X.value)); + -1 !== $e && Be.splice($e, 1), + Be.length > 0 + ? this.map.set(X.param, Be) + : this.map.delete(X.param); + } + } + }), + (this.cloneFrom = this.updates = null)); + } + } + class T { + constructor(X) { + this.defaultValue = X; + } + } + class O { + constructor() { + this.map = new Map(); + } + set(X, _e) { + return this.map.set(X, _e), this; + } + get(X) { + return ( + this.map.has(X) || this.map.set(X, X.defaultValue()), + this.map.get(X) + ); + } + delete(X) { + return this.map.delete(X), this; + } + has(X) { + return this.map.has(X); + } + keys() { + return this.map.keys(); + } + } + function A(U) { + return "undefined" != typeof ArrayBuffer && U instanceof ArrayBuffer; + } + function S(U) { + return "undefined" != typeof Blob && U instanceof Blob; + } + function w(U) { + return "undefined" != typeof FormData && U instanceof FormData; + } + class C { + constructor(X, _e, Be, $e) { + let st; + if ( + ((this.url = _e), + (this.body = null), + (this.reportProgress = !1), + (this.withCredentials = !1), + (this.responseType = "json"), + (this.method = X.toUpperCase()), + (function (U) { + switch (U) { + case "DELETE": + case "GET": + case "HEAD": + case "OPTIONS": + case "JSONP": + return !1; + default: + return !0; + } + })(this.method) || $e + ? ((this.body = void 0 !== Be ? Be : null), (st = $e)) + : (st = Be), + st && + ((this.reportProgress = !!st.reportProgress), + (this.withCredentials = !!st.withCredentials), + st.responseType && (this.responseType = st.responseType), + st.headers && (this.headers = st.headers), + st.context && (this.context = st.context), + st.params && (this.params = st.params)), + this.headers || (this.headers = new o()), + this.context || (this.context = new O()), + this.params) + ) { + const ut = this.params.toString(); + if (0 === ut.length) this.urlWithParams = _e; + else { + const St = _e.indexOf("?"); + this.urlWithParams = + _e + (-1 === St ? "?" : St < _e.length - 1 ? "&" : "") + ut; + } + } else (this.params = new x()), (this.urlWithParams = _e); + } + serializeBody() { + return null === this.body + ? null + : A(this.body) || + S(this.body) || + w(this.body) || + ("undefined" != typeof URLSearchParams && + this.body instanceof URLSearchParams) || + "string" == typeof this.body + ? this.body + : this.body instanceof x + ? this.body.toString() + : "object" == typeof this.body || + "boolean" == typeof this.body || + Array.isArray(this.body) + ? JSON.stringify(this.body) + : this.body.toString(); + } + detectContentTypeHeader() { + return null === this.body || w(this.body) + ? null + : S(this.body) + ? this.body.type || null + : A(this.body) + ? null + : "string" == typeof this.body + ? "text/plain" + : this.body instanceof x + ? "application/x-www-form-urlencoded;charset=UTF-8" + : "object" == typeof this.body || + "number" == typeof this.body || + "boolean" == typeof this.body + ? "application/json" + : null; + } + clone(X = {}) { + var _e; + const Be = X.method || this.method, + $e = X.url || this.url, + st = X.responseType || this.responseType, + ut = void 0 !== X.body ? X.body : this.body, + St = + void 0 !== X.withCredentials + ? X.withCredentials + : this.withCredentials, + Xt = + void 0 !== X.reportProgress + ? X.reportProgress + : this.reportProgress; + let tn = X.headers || this.headers, + Dt = X.params || this.params; + const Kt = + null !== (_e = X.context) && void 0 !== _e ? _e : this.context; + return ( + void 0 !== X.setHeaders && + (tn = Object.keys(X.setHeaders).reduce( + (et, xt) => et.set(xt, X.setHeaders[xt]), + tn + )), + X.setParams && + (Dt = Object.keys(X.setParams).reduce( + (et, xt) => et.set(xt, X.setParams[xt]), + Dt + )), + new C(Be, $e, ut, { + params: Dt, + headers: tn, + context: Kt, + reportProgress: Xt, + responseType: st, + withCredentials: St, + }) + ); + } + } + var L = (() => ( + ((L = L || {})[(L.Sent = 0)] = "Sent"), + (L[(L.UploadProgress = 1)] = "UploadProgress"), + (L[(L.ResponseHeader = 2)] = "ResponseHeader"), + (L[(L.DownloadProgress = 3)] = "DownloadProgress"), + (L[(L.Response = 4)] = "Response"), + (L[(L.User = 5)] = "User"), + L + ))(); + class F { + constructor(X, _e = 200, Be = "OK") { + (this.headers = X.headers || new o()), + (this.status = void 0 !== X.status ? X.status : _e), + (this.statusText = X.statusText || Be), + (this.url = X.url || null), + (this.ok = this.status >= 200 && this.status < 300); + } + } + class ie extends F { + constructor(X = {}) { + super(X), (this.type = L.ResponseHeader); + } + clone(X = {}) { + return new ie({ + headers: X.headers || this.headers, + status: void 0 !== X.status ? X.status : this.status, + statusText: X.statusText || this.statusText, + url: X.url || this.url || void 0, + }); + } + } + class Y extends F { + constructor(X = {}) { + super(X), + (this.type = L.Response), + (this.body = void 0 !== X.body ? X.body : null); + } + clone(X = {}) { + return new Y({ + body: void 0 !== X.body ? X.body : this.body, + headers: X.headers || this.headers, + status: void 0 !== X.status ? X.status : this.status, + statusText: X.statusText || this.statusText, + url: X.url || this.url || void 0, + }); + } + } + class Z extends F { + constructor(X) { + super(X, 0, "Unknown Error"), + (this.name = "HttpErrorResponse"), + (this.ok = !1), + (this.message = + this.status >= 200 && this.status < 300 + ? `Http failure during parsing for ${X.url || "(unknown url)"}` + : `Http failure response for ${X.url || "(unknown url)"}: ${ + X.status + } ${X.statusText}`), + (this.error = X.error || null); + } + } + function ee(U, X) { + return { + body: X, + headers: U.headers, + context: U.context, + observe: U.observe, + params: U.params, + reportProgress: U.reportProgress, + responseType: U.responseType, + withCredentials: U.withCredentials, + }; + } + let $ = (() => { + class U { + constructor(_e) { + this.handler = _e; + } + request(_e, Be, $e = {}) { + let st; + if (_e instanceof C) st = _e; + else { + let Xt, tn; + (Xt = $e.headers instanceof o ? $e.headers : new o($e.headers)), + $e.params && + (tn = + $e.params instanceof x + ? $e.params + : new x({ fromObject: $e.params })), + (st = new C(_e, Be, void 0 !== $e.body ? $e.body : null, { + headers: Xt, + context: $e.context, + params: tn, + reportProgress: $e.reportProgress, + responseType: $e.responseType || "json", + withCredentials: $e.withCredentials, + })); + } + const ut = (0, _.of)(st).pipe( + (0, s.b)((Xt) => this.handler.handle(Xt)) + ); + if (_e instanceof C || "events" === $e.observe) return ut; + const St = ut.pipe((0, d.h)((Xt) => Xt instanceof Y)); + switch ($e.observe || "body") { + case "body": + switch (st.responseType) { + case "arraybuffer": + return St.pipe( + (0, u.U)((Xt) => { + if ( + null !== Xt.body && + !(Xt.body instanceof ArrayBuffer) + ) + throw new Error("Response is not an ArrayBuffer."); + return Xt.body; + }) + ); + case "blob": + return St.pipe( + (0, u.U)((Xt) => { + if (null !== Xt.body && !(Xt.body instanceof Blob)) + throw new Error("Response is not a Blob."); + return Xt.body; + }) + ); + case "text": + return St.pipe( + (0, u.U)((Xt) => { + if (null !== Xt.body && "string" != typeof Xt.body) + throw new Error("Response is not a string."); + return Xt.body; + }) + ); + default: + return St.pipe((0, u.U)((Xt) => Xt.body)); + } + case "response": + return St; + default: + throw new Error( + `Unreachable: unhandled observe type ${$e.observe}}` + ); + } + } + delete(_e, Be = {}) { + return this.request("DELETE", _e, Be); + } + get(_e, Be = {}) { + return this.request("GET", _e, Be); + } + head(_e, Be = {}) { + return this.request("HEAD", _e, Be); + } + jsonp(_e, Be) { + return this.request("JSONP", _e, { + params: new x().append(Be, "JSONP_CALLBACK"), + observe: "body", + responseType: "json", + }); + } + options(_e, Be = {}) { + return this.request("OPTIONS", _e, Be); + } + patch(_e, Be, $e = {}) { + return this.request("PATCH", _e, ee($e, Be)); + } + post(_e, Be, $e = {}) { + return this.request("POST", _e, ee($e, Be)); + } + put(_e, Be, $e = {}) { + return this.request("PUT", _e, ee($e, Be)); + } + } + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(f.ɵɵinject(h)); + }), + (U.ɵprov = f.ɵɵdefineInjectable({ token: U, factory: U.ɵfac })), + U + ); + })(); + class J { + constructor(X, _e) { + (this.next = X), (this.interceptor = _e); + } + handle(X) { + return this.interceptor.intercept(X, this.next); + } + } + const ne = new f.InjectionToken("HTTP_INTERCEPTORS"); + let ae = (() => { + class U { + intercept(_e, Be) { + return Be.handle(_e); + } + } + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(); + }), + (U.ɵprov = f.ɵɵdefineInjectable({ token: U, factory: U.ɵfac })), + U + ); + })(), + le = 0; + class Je {} + let gt = (() => { + class U { + constructor(_e, Be) { + (this.callbackMap = _e), + (this.document = Be), + (this.resolvedPromise = Promise.resolve()); + } + nextCallback() { + return "ng_jsonp_callback_" + le++; + } + handle(_e) { + if ("JSONP" !== _e.method) + throw new Error( + "JSONP requests must use JSONP request method." + ); + if ("json" !== _e.responseType) + throw new Error("JSONP requests must use Json response type."); + return new m.y((Be) => { + const $e = this.nextCallback(), + st = _e.urlWithParams.replace( + /=JSONP_CALLBACK(&|$)/, + `=${$e}$1` + ), + ut = this.document.createElement("script"); + ut.src = st; + let St = null, + Xt = !1, + tn = !1; + this.callbackMap[$e] = (xt) => { + delete this.callbackMap[$e], !tn && ((St = xt), (Xt = !0)); + }; + const Dt = () => { + ut.parentNode && ut.parentNode.removeChild(ut), + delete this.callbackMap[$e]; + }, + Kt = (xt) => { + tn || + this.resolvedPromise.then(() => { + Dt(), + Xt + ? (Be.next( + new Y({ + body: St, + status: 200, + statusText: "OK", + url: st, + }) + ), + Be.complete()) + : Be.error( + new Z({ + url: st, + status: 0, + statusText: "JSONP Error", + error: new Error( + "JSONP injected script did not invoke callback." + ), + }) + ); + }); + }, + et = (xt) => { + tn || + (Dt(), + Be.error( + new Z({ + error: xt, + status: 0, + statusText: "JSONP Error", + url: st, + }) + )); + }; + return ( + ut.addEventListener("load", Kt), + ut.addEventListener("error", et), + this.document.body.appendChild(ut), + Be.next({ type: L.Sent }), + () => { + (tn = !0), + ut.removeEventListener("load", Kt), + ut.removeEventListener("error", et), + Dt(); + } + ); + }); + } + } + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(f.ɵɵinject(Je), f.ɵɵinject(n.DOCUMENT)); + }), + (U.ɵprov = f.ɵɵdefineInjectable({ token: U, factory: U.ɵfac })), + U + ); + })(), + Ue = (() => { + class U { + constructor(_e) { + this.jsonp = _e; + } + intercept(_e, Be) { + return "JSONP" === _e.method + ? this.jsonp.handle(_e) + : Be.handle(_e); + } + } + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(f.ɵɵinject(gt)); + }), + (U.ɵprov = f.ɵɵdefineInjectable({ token: U, factory: U.ɵfac })), + U + ); + })(); + const tt = /^\)\]\}',?\n/; + let ft = (() => { + class U { + constructor(_e) { + this.xhrFactory = _e; + } + handle(_e) { + if ("JSONP" === _e.method) + throw new Error( + "Attempted to construct Jsonp request without HttpClientJsonpModule installed." + ); + return new m.y((Be) => { + const $e = this.xhrFactory.build(); + if ( + ($e.open(_e.method, _e.urlWithParams), + _e.withCredentials && ($e.withCredentials = !0), + _e.headers.forEach((xt, Lt) => + $e.setRequestHeader(xt, Lt.join(",")) + ), + _e.headers.has("Accept") || + $e.setRequestHeader( + "Accept", + "application/json, text/plain, */*" + ), + !_e.headers.has("Content-Type")) + ) { + const xt = _e.detectContentTypeHeader(); + null !== xt && $e.setRequestHeader("Content-Type", xt); + } + if (_e.responseType) { + const xt = _e.responseType.toLowerCase(); + $e.responseType = "json" !== xt ? xt : "text"; + } + const st = _e.serializeBody(); + let ut = null; + const St = () => { + if (null !== ut) return ut; + const xt = 1223 === $e.status ? 204 : $e.status, + Lt = $e.statusText || "OK", + Qe = new o($e.getAllResponseHeaders()), + mt = + (function (U) { + return "responseURL" in U && U.responseURL + ? U.responseURL + : /^X-Request-URL:/m.test(U.getAllResponseHeaders()) + ? U.getResponseHeader("X-Request-URL") + : null; + })($e) || _e.url; + return ( + (ut = new ie({ + headers: Qe, + status: xt, + statusText: Lt, + url: mt, + })), + ut + ); + }, + Xt = () => { + let { + headers: xt, + status: Lt, + statusText: Qe, + url: mt, + } = St(), + Vt = null; + 204 !== Lt && + (Vt = + void 0 === $e.response ? $e.responseText : $e.response), + 0 === Lt && (Lt = Vt ? 200 : 0); + let qt = Lt >= 200 && Lt < 300; + if ("json" === _e.responseType && "string" == typeof Vt) { + const Ne = Vt; + Vt = Vt.replace(tt, ""); + try { + Vt = "" !== Vt ? JSON.parse(Vt) : null; + } catch (Se) { + (Vt = Ne), + qt && ((qt = !1), (Vt = { error: Se, text: Vt })); + } + } + qt + ? (Be.next( + new Y({ + body: Vt, + headers: xt, + status: Lt, + statusText: Qe, + url: mt || void 0, + }) + ), + Be.complete()) + : Be.error( + new Z({ + error: Vt, + headers: xt, + status: Lt, + statusText: Qe, + url: mt || void 0, + }) + ); + }, + tn = (xt) => { + const { url: Lt } = St(), + Qe = new Z({ + error: xt, + status: $e.status || 0, + statusText: $e.statusText || "Unknown Error", + url: Lt || void 0, + }); + Be.error(Qe); + }; + let Dt = !1; + const Kt = (xt) => { + Dt || (Be.next(St()), (Dt = !0)); + let Lt = { type: L.DownloadProgress, loaded: xt.loaded }; + xt.lengthComputable && (Lt.total = xt.total), + "text" === _e.responseType && + !!$e.responseText && + (Lt.partialText = $e.responseText), + Be.next(Lt); + }, + et = (xt) => { + let Lt = { type: L.UploadProgress, loaded: xt.loaded }; + xt.lengthComputable && (Lt.total = xt.total), Be.next(Lt); + }; + return ( + $e.addEventListener("load", Xt), + $e.addEventListener("error", tn), + $e.addEventListener("timeout", tn), + $e.addEventListener("abort", tn), + _e.reportProgress && + ($e.addEventListener("progress", Kt), + null !== st && + $e.upload && + $e.upload.addEventListener("progress", et)), + $e.send(st), + Be.next({ type: L.Sent }), + () => { + $e.removeEventListener("error", tn), + $e.removeEventListener("abort", tn), + $e.removeEventListener("load", Xt), + $e.removeEventListener("timeout", tn), + _e.reportProgress && + ($e.removeEventListener("progress", Kt), + null !== st && + $e.upload && + $e.upload.removeEventListener("progress", et)), + $e.readyState !== $e.DONE && $e.abort(); + } + ); + }); + } + } + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(f.ɵɵinject(n.XhrFactory)); + }), + (U.ɵprov = f.ɵɵdefineInjectable({ token: U, factory: U.ɵfac })), + U + ); + })(); + const vt = new f.InjectionToken("XSRF_COOKIE_NAME"), + yt = new f.InjectionToken("XSRF_HEADER_NAME"); + class ot {} + let _t = (() => { + class U { + constructor(_e, Be, $e) { + (this.doc = _e), + (this.platform = Be), + (this.cookieName = $e), + (this.lastCookieString = ""), + (this.lastToken = null), + (this.parseCount = 0); + } + getToken() { + if ("server" === this.platform) return null; + const _e = this.doc.cookie || ""; + return ( + _e !== this.lastCookieString && + (this.parseCount++, + (this.lastToken = (0, n.ɵparseCookieValue)( + _e, + this.cookieName + )), + (this.lastCookieString = _e)), + this.lastToken + ); + } + } + return ( + (U.ɵfac = function (_e) { + return new (_e || U)( + f.ɵɵinject(n.DOCUMENT), + f.ɵɵinject(f.PLATFORM_ID), + f.ɵɵinject(vt) + ); + }), + (U.ɵprov = f.ɵɵdefineInjectable({ token: U, factory: U.ɵfac })), + U + ); + })(), + At = (() => { + class U { + constructor(_e, Be) { + (this.tokenService = _e), (this.headerName = Be); + } + intercept(_e, Be) { + const $e = _e.url.toLowerCase(); + if ( + "GET" === _e.method || + "HEAD" === _e.method || + $e.startsWith("http://") || + $e.startsWith("https://") + ) + return Be.handle(_e); + const st = this.tokenService.getToken(); + return ( + null !== st && + !_e.headers.has(this.headerName) && + (_e = _e.clone({ + headers: _e.headers.set(this.headerName, st), + })), + Be.handle(_e) + ); + } + } + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(f.ɵɵinject(ot), f.ɵɵinject(yt)); + }), + (U.ɵprov = f.ɵɵdefineInjectable({ token: U, factory: U.ɵfac })), + U + ); + })(), + Tt = (() => { + class U { + constructor(_e, Be) { + (this.backend = _e), (this.injector = Be), (this.chain = null); + } + handle(_e) { + if (null === this.chain) { + const Be = this.injector.get(ne, []); + this.chain = Be.reduceRight( + ($e, st) => new J($e, st), + this.backend + ); + } + return this.chain.handle(_e); + } + } + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(f.ɵɵinject(r), f.ɵɵinject(f.Injector)); + }), + (U.ɵprov = f.ɵɵdefineInjectable({ token: U, factory: U.ɵfac })), + U + ); + })(); + function Et() { + return "object" == typeof window ? window : {}; + } + let Ee = (() => { + class U { + static disable() { + return { + ngModule: U, + providers: [{ provide: At, useClass: ae }], + }; + } + static withOptions(_e = {}) { + return { + ngModule: U, + providers: [ + _e.cookieName ? { provide: vt, useValue: _e.cookieName } : [], + _e.headerName ? { provide: yt, useValue: _e.headerName } : [], + ], + }; + } + } + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(); + }), + (U.ɵmod = f.ɵɵdefineNgModule({ type: U })), + (U.ɵinj = f.ɵɵdefineInjector({ + providers: [ + At, + { provide: ne, useExisting: At, multi: !0 }, + { provide: ot, useClass: _t }, + { provide: vt, useValue: "XSRF-TOKEN" }, + { provide: yt, useValue: "X-XSRF-TOKEN" }, + ], + })), + U + ); + })(), + fe = (() => { + class U {} + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(); + }), + (U.ɵmod = f.ɵɵdefineNgModule({ type: U })), + (U.ɵinj = f.ɵɵdefineInjector({ + providers: [ + $, + { provide: h, useClass: Tt }, + ft, + { provide: r, useExisting: ft }, + ], + imports: [ + [ + Ee.withOptions({ + cookieName: "XSRF-TOKEN", + headerName: "X-XSRF-TOKEN", + }), + ], + ], + })), + U + ); + })(), + H = (() => { + class U {} + return ( + (U.ɵfac = function (_e) { + return new (_e || U)(); + }), + (U.ɵmod = f.ɵɵdefineNgModule({ type: U })), + (U.ɵinj = f.ɵɵdefineInjector({ + providers: [ + gt, + { provide: Je, useFactory: Et }, + { provide: ne, useClass: Ue, multi: !0 }, + ], + })), + U + ); + })(); + const D = n.XhrFactory; + }, + 5e3: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + ANALYZE_FOR_ENTRY_COMPONENTS: () => vo, + APP_BOOTSTRAP_LISTENER: () => sg, + APP_ID: () => tg, + APP_INITIALIZER: () => bd, + ApplicationInitStatus: () => la, + ApplicationModule: () => XC, + ApplicationRef: () => Wa, + Attribute: () => ha, + COMPILER_OPTIONS: () => ug, + CUSTOM_ELEMENTS_SCHEMA: () => Mh, + ChangeDetectionStrategy: () => Be, + ChangeDetectorRef: () => Mg, + Compiler: () => Ed, + CompilerFactory: () => oC, + Component: () => Q1, + ComponentFactory: () => El, + ComponentFactoryResolver: () => Na, + ComponentRef: () => V0, + ContentChild: () => Vl, + ContentChildren: () => Bl, + DEFAULT_CURRENCY_CODE: () => ag, + DebugElement: () => kC, + DebugEventListener: () => DC, + DebugNode: () => LC, + DefaultIterableDiffer: () => Ag, + Directive: () => eg, + ElementRef: () => Ua, + EmbeddedViewRef: () => SC, + ErrorHandler: () => Ca, + EventEmitter: () => Xs, + Host: () => Qd, + HostBinding: () => J1, + HostListener: () => eC, + INJECTOR: () => dl, + Inject: () => fo, + InjectFlags: () => Ee, + Injectable: () => by, + InjectionToken: () => lr, + Injector: () => gs, + Input: () => Z1, + IterableDiffers: () => kl, + KeyValueDiffers: () => Pl, + LOCALE_ID: () => Rl, + MissingTranslationStrategy: () => Zs, + ModuleWithComponentFactories: () => lg, + NO_ERRORS_SCHEMA: () => Sh, + NgModule: () => tC, + NgModuleFactory: () => X0, + NgModuleRef: () => sa, + NgProbeToken: () => mC, + NgZone: () => _s, + Optional: () => Is, + Output: () => q1, + PACKAGE_ROOT_URL: () => iC, + PLATFORM_ID: () => rg, + PLATFORM_INITIALIZER: () => ig, + Pipe: () => X1, + PlatformRef: () => Ad, + Query: () => yo, + QueryList: () => Tl, + ReflectiveInjector: () => Jo, + ReflectiveKey: () => ao, + Renderer2: () => c1, + RendererFactory2: () => H0, + RendererStyleFlags2: () => Ks, + ResolvedReflectiveFactory: () => mp, + Sanitizer: () => j0, + SecurityContext: () => br, + Self: () => io, + SimpleChange: () => Cr, + SkipSelf: () => Eo, + TRANSLATIONS: () => rC, + TRANSLATIONS_FORMAT: () => sC, + TemplateRef: () => $a, + Testability: () => fg, + TestabilityRegistry: () => Dd, + Type: () => Oo, + VERSION: () => z0, + Version: () => W0, + ViewChild: () => Hl, + ViewChildren: () => $l, + ViewContainerRef: () => Il, + ViewEncapsulation: () => ut, + ViewRef: () => Dg, + asNativeElements: () => TC, + assertPlatform: () => vg, + createNgModuleRef: () => v1, + createPlatform: () => gg, + createPlatformFactory: () => _g, + defineInjectable: () => tt, + destroyPlatform: () => gC, + enableProdMode: () => CC, + forwardRef: () => i, + getDebugNode: () => Ll, + getModuleFactory: () => EC, + getNgModuleById: () => wC, + getPlatform: () => Id, + inject: () => Fi, + isDevMode: () => bC, + platformCore: () => jC, + resolveForwardRef: () => c, + setTestabilityGetter: () => fC, + ɵALLOW_MULTIPLE_PLATFORMS: () => xd, + ɵAPP_ID_RANDOM_PROVIDER: () => ng, + ɵChangeDetectorStatus: () => $e, + ɵComponentFactory: () => El, + ɵConsole: () => og, + ɵDEFAULT_LOCALE_ID: () => Ra, + ɵINJECTOR_SCOPE: () => Uu, + ɵLifecycleHooksFeature: () => tp, + ɵLocaleDataIndex: () => Vn, + ɵNG_COMP_DEF: () => mt, + ɵNG_DIR_DEF: () => Vt, + ɵNG_ELEMENT_ID: () => te, + ɵNG_INJ_DEF: () => Tt, + ɵNG_MOD_DEF: () => Ne, + ɵNG_PIPE_DEF: () => qt, + ɵNG_PROV_DEF: () => At, + ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR: () => wl, + ɵNO_CHANGE: () => ei, + ɵNgModuleFactory: () => Dl, + ɵNoopNgZone: () => hg, + ɵReflectionCapabilities: () => bn, + ɵRender3ComponentFactory: () => Sl, + ɵRender3ComponentRef: () => Y0, + ɵRender3NgModuleRef: () => sd, + ɵRuntimeError: () => b, + ɵViewRef: () => ra, + ɵ_sanitizeHtml: () => hh, + ɵ_sanitizeUrl: () => _a, + ɵallowSanitizationBypassAndThrow: () => Po, + ɵbypassSanitizationTrustHtml: () => Xg, + ɵbypassSanitizationTrustResourceUrl: () => e_, + ɵbypassSanitizationTrustScript: () => qg, + ɵbypassSanitizationTrustStyle: () => Zg, + ɵbypassSanitizationTrustUrl: () => Jg, + ɵclearResolutionOfComponentResourcesQueue: () => eh, + ɵcompileComponent: () => Hm, + ɵcompileDirective: () => yd, + ɵcompileNgModule: () => Fm, + ɵcompileNgModuleDefs: () => Nm, + ɵcompileNgModuleFactory: () => pg, + ɵcompilePipe: () => qm, + ɵcreateInjector: () => Vu, + ɵdefaultIterableDiffers: () => Fg, + ɵdefaultKeyValueDiffers: () => Ng, + ɵdetectChanges: () => Nf, + ɵdevModeEqual: () => rp, + ɵfindLocaleData: () => Qc, + ɵflushModuleScopingQueueAsMuchAsPossible: () => km, + ɵgetDebugNode: () => Ll, + ɵgetDebugNodeR2: () => RC, + ɵgetDirectives: () => Yf, + ɵgetHostElement: () => ju, + ɵgetInjectableDef: () => ft, + ɵgetLContext: () => Qr, + ɵgetLocaleCurrencyCode: () => ub, + ɵgetLocalePluralCase: () => c0, + ɵgetSanitizationBypassType: () => rh, + ɵglobal: () => Kt, + ɵinjectChangeDetectorRef: () => Sg, + ɵisBoundToModule: () => mg, + ɵisDefaultChangeDetectionStrategy: () => st, + ɵisListLikeIterable: () => Ta, + ɵisObservable: () => Mp, + ɵisPromise: () => fc, + ɵisSubscribable: () => wp, + ɵivyEnabled: () => ZC, + ɵmakeDecorator: () => Ts, + ɵmarkDirty: () => Uf, + ɵnoSideEffects: () => _e, + ɵpatchComponentDefWithScope: () => gd, + ɵpublishDefaultGlobalUtils: () => iy, + ɵpublishGlobalUtil: () => As, + ɵregisterLocaleData: () => lb, + ɵregisterNgModuleType: () => q0, + ɵrenderComponent: () => ry, + ɵresetCompiledComponents: () => B1, + ɵresetJitOptions: () => N1, + ɵresolveComponentResources: () => qd, + ɵsetClassMetadata: () => Q0, + ɵsetCurrentInjector: () => wi, + ɵsetDocument: () => Jr, + ɵsetLocaleId: () => f0, + ɵstore: () => op, + ɵstringify: () => h, + ɵtransitiveScopesFor: () => ja, + ɵunregisterLocaleData: () => cb, + ɵunwrapSafeValue: () => ro, + ɵwhenRendered: () => sy, + ɵɵCopyDefinitionFeature: () => ip, + ɵɵFactoryTarget: () => vr, + ɵɵInheritDefinitionFeature: () => zu, + ɵɵNgOnChangesFeature: () => Sr, + ɵɵProvidersFeature: () => B0, + ɵɵadvance: () => nf, + ɵɵattribute: () => Yu, + ɵɵattributeInterpolate1: () => Qu, + ɵɵattributeInterpolate2: () => Xu, + ɵɵattributeInterpolate3: () => Zu, + ɵɵattributeInterpolate4: () => qu, + ɵɵattributeInterpolate5: () => Ju, + ɵɵattributeInterpolate6: () => ec, + ɵɵattributeInterpolate7: () => tc, + ɵɵattributeInterpolate8: () => nc, + ɵɵattributeInterpolateV: () => ic, + ɵɵclassMap: () => Np, + ɵɵclassMapInterpolate1: () => zp, + ɵɵclassMapInterpolate2: () => Kp, + ɵɵclassMapInterpolate3: () => Gp, + ɵɵclassMapInterpolate4: () => Yp, + ɵɵclassMapInterpolate5: () => Qp, + ɵɵclassMapInterpolate6: () => Xp, + ɵɵclassMapInterpolate7: () => Zp, + ɵɵclassMapInterpolate8: () => qp, + ɵɵclassMapInterpolateV: () => Jp, + ɵɵclassProp: () => Tc, + ɵɵcontentQuery: () => xm, + ɵɵdefineComponent: () => Me, + ɵɵdefineDirective: () => He, + ɵɵdefineInjectable: () => Ue, + ɵɵdefineInjector: () => at, + ɵɵdefineNgModule: () => An, + ɵɵdefinePipe: () => pt, + ɵɵdirectiveInject: () => Aa, + ɵɵdisableBindings: () => Bs, + ɵɵelement: () => bp, + ɵɵelementContainer: () => Cp, + ɵɵelementContainerEnd: () => hc, + ɵɵelementContainerStart: () => dc, + ɵɵelementEnd: () => cc, + ɵɵelementStart: () => uc, + ɵɵenableBindings: () => ds, + ɵɵgetCurrentView: () => Ep, + ɵɵgetInheritedFactory: () => Ds, + ɵɵhostProperty: () => Gc, + ɵɵi18n: () => k0, + ɵɵi18nApply: () => F0, + ɵɵi18nAttributes: () => P0, + ɵɵi18nEnd: () => Jc, + ɵɵi18nExp: () => ed, + ɵɵi18nPostprocess: () => N0, + ɵɵi18nStart: () => qc, + ɵɵinject: () => Cn, + ɵɵinjectAttribute: () => da, + ɵɵinvalidFactory: () => yp, + ɵɵinvalidFactoryDep: () => Pi, + ɵɵlistener: () => pc, + ɵɵloadQuery: () => Im, + ɵɵnamespaceHTML: () => Es, + ɵɵnamespaceMathML: () => Si, + ɵɵnamespaceSVG: () => dr, + ɵɵnextContext: () => Tp, + ɵɵngDeclareClassMetadata: () => JC, + ɵɵngDeclareComponent: () => eE, + ɵɵngDeclareDirective: () => qC, + ɵɵngDeclareFactory: () => tE, + ɵɵngDeclareInjectable: () => iE, + ɵɵngDeclareInjector: () => rE, + ɵɵngDeclareNgModule: () => sE, + ɵɵngDeclarePipe: () => oE, + ɵɵpipe: () => mm, + ɵɵpipeBind1: () => gm, + ɵɵpipeBind2: () => _m, + ɵɵpipeBind3: () => vm, + ɵɵpipeBind4: () => ym, + ɵɵpipeBindV: () => bm, + ɵɵprojection: () => Ip, + ɵɵprojectionDef: () => xp, + ɵɵproperty: () => ac, + ɵɵpropertyInterpolate: () => _c, + ɵɵpropertyInterpolate1: () => ml, + ɵɵpropertyInterpolate2: () => vc, + ɵɵpropertyInterpolate3: () => yc, + ɵɵpropertyInterpolate4: () => bc, + ɵɵpropertyInterpolate5: () => Cc, + ɵɵpropertyInterpolate6: () => Ec, + ɵɵpropertyInterpolate7: () => wc, + ɵɵpropertyInterpolate8: () => Mc, + ɵɵpropertyInterpolateV: () => Sc, + ɵɵpureFunction0: () => em, + ɵɵpureFunction1: () => tm, + ɵɵpureFunction2: () => nm, + ɵɵpureFunction3: () => im, + ɵɵpureFunction4: () => rm, + ɵɵpureFunction5: () => sm, + ɵɵpureFunction6: () => om, + ɵɵpureFunction7: () => am, + ɵɵpureFunction8: () => lm, + ɵɵpureFunctionV: () => um, + ɵɵqueryRefresh: () => Dm, + ɵɵreference: () => ap, + ɵɵresolveBody: () => Ah, + ɵɵresolveDocument: () => Ih, + ɵɵresolveWindow: () => xh, + ɵɵrestoreView: () => G, + ɵɵsanitizeHtml: () => fh, + ɵɵsanitizeResourceUrl: () => eu, + ɵɵsanitizeScript: () => mh, + ɵɵsanitizeStyle: () => ph, + ɵɵsanitizeUrl: () => Jl, + ɵɵsanitizeUrlOrResourceUrl: () => vh, + ɵɵsetComponentScope: () => ze, + ɵɵsetNgModuleScope: () => lt, + ɵɵstyleMap: () => Ps, + ɵɵstyleMapInterpolate1: () => e0, + ɵɵstyleMapInterpolate2: () => t0, + ɵɵstyleMapInterpolate3: () => n0, + ɵɵstyleMapInterpolate4: () => r0, + ɵɵstyleMapInterpolate5: () => s0, + ɵɵstyleMapInterpolate6: () => o0, + ɵɵstyleMapInterpolate7: () => a0, + ɵɵstyleMapInterpolate8: () => l0, + ɵɵstyleMapInterpolateV: () => u0, + ɵɵstyleProp: () => Dc, + ɵɵstylePropInterpolate1: () => Uc, + ɵɵstylePropInterpolate2: () => Bc, + ɵɵstylePropInterpolate3: () => Vc, + ɵɵstylePropInterpolate4: () => $c, + ɵɵstylePropInterpolate5: () => Hc, + ɵɵstylePropInterpolate6: () => jc, + ɵɵstylePropInterpolate7: () => Wc, + ɵɵstylePropInterpolate8: () => zc, + ɵɵstylePropInterpolateV: () => Kc, + ɵɵsyntheticHostListener: () => mc, + ɵɵsyntheticHostProperty: () => Yc, + ɵɵtemplate: () => sp, + ɵɵtemplateRefExtractor: () => Lm, + ɵɵtext: () => Wp, + ɵɵtextInterpolate: () => Ic, + ɵɵtextInterpolate1: () => _l, + ɵɵtextInterpolate2: () => Ac, + ɵɵtextInterpolate3: () => Oc, + ɵɵtextInterpolate4: () => Rc, + ɵɵtextInterpolate5: () => Lc, + ɵɵtextInterpolate6: () => kc, + ɵɵtextInterpolate7: () => Pc, + ɵɵtextInterpolate8: () => Fc, + ɵɵtextInterpolateV: () => Nc, + ɵɵtrustConstantHtml: () => gh, + ɵɵtrustConstantResourceUrl: () => _h, + ɵɵviewQuery: () => Tm, + }); + var n = p(8929), + f = p(2654), + _ = p(6498), + m = p(6787), + s = p(8117); + function d(e) { + for (let t in e) if (e[t] === d) return t; + throw Error("Could not find renamed property on target object."); + } + function u(e, t) { + for (const a in t) + t.hasOwnProperty(a) && !e.hasOwnProperty(a) && (e[a] = t[a]); + } + function h(e) { + if ("string" == typeof e) return e; + if (Array.isArray(e)) return "[" + e.map(h).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 a = t.indexOf("\n"); + return -1 === a ? t : t.substring(0, a); + } + function r(e, t) { + return null == e || "" === e + ? null === t + ? "" + : t + : null == t || "" === t + ? e + : e + " " + t; + } + const o = d({ __forward_ref__: d }); + function i(e) { + return ( + (e.__forward_ref__ = i), + (e.toString = function () { + return h(this()); + }), + e + ); + } + function c(e) { + return l(e) ? e() : e; + } + function l(e) { + return ( + "function" == typeof e && + e.hasOwnProperty(o) && + e.__forward_ref__ === i + ); + } + class b extends Error { + constructor(t, a) { + super( + (function (e, t) { + return `${e ? `NG0${e}: ` : ""}${t}`; + })(t, a) + ), + (this.code = t); + } + } + function T(e) { + return "string" == typeof e ? e : null == e ? "" : String(e); + } + function O(e) { + return "function" == typeof e + ? e.name || e.toString() + : "object" == typeof e && null != e && "function" == typeof e.type + ? e.type.name || e.type.toString() + : T(e); + } + function w(e, t) { + const a = t ? ` in ${t}` : ""; + throw new b("201", `No provider for ${O(e)} found${a}`); + } + function Le(e, t, a, v) { + throw new Error( + `ASSERTION ERROR: ${e}` + + (null == v ? "" : ` [Expected=> ${a} ${v} ${t} <=Actual]`) + ); + } + function Ue(e) { + return { + token: e.token, + providedIn: e.providedIn || null, + factory: e.factory, + value: void 0, + }; + } + const tt = Ue; + function at(e) { + return { providers: e.providers || [], imports: e.imports || [] }; + } + function ft(e) { + return vt(e, At) || vt(e, Bt); + } + function vt(e, t) { + return e.hasOwnProperty(t) ? e[t] : null; + } + function _t(e) { + return e && (e.hasOwnProperty(Tt) || e.hasOwnProperty(Et)) + ? e[Tt] + : null; + } + const At = d({ ɵprov: d }), + Tt = d({ ɵinj: d }), + Bt = d({ ngInjectableDef: d }), + Et = d({ ngInjectorDef: d }); + var Ee = (() => ( + ((Ee = Ee || {})[(Ee.Default = 0)] = "Default"), + (Ee[(Ee.Host = 1)] = "Host"), + (Ee[(Ee.Self = 2)] = "Self"), + (Ee[(Ee.SkipSelf = 4)] = "SkipSelf"), + (Ee[(Ee.Optional = 8)] = "Optional"), + Ee + ))(); + let fe; + function D(e) { + const t = fe; + return (fe = e), t; + } + function U(e, t, a) { + const v = ft(e); + return v && "root" == v.providedIn + ? void 0 === v.value + ? (v.value = v.factory()) + : v.value + : a & Ee.Optional + ? null + : void 0 !== t + ? t + : void w(h(e), "Injector"); + } + function _e(e) { + return { toString: e }.toString(); + } + var Be = (() => ( + ((Be = Be || {})[(Be.OnPush = 0)] = "OnPush"), + (Be[(Be.Default = 1)] = "Default"), + Be + ))(), + $e = (() => ( + (($e = $e || {})[($e.CheckOnce = 0)] = "CheckOnce"), + ($e[($e.Checked = 1)] = "Checked"), + ($e[($e.CheckAlways = 2)] = "CheckAlways"), + ($e[($e.Detached = 3)] = "Detached"), + ($e[($e.Errored = 4)] = "Errored"), + ($e[($e.Destroyed = 5)] = "Destroyed"), + $e + ))(); + function st(e) { + return null == e || e === Be.Default; + } + var ut = (() => { + return ( + ((e = ut || (ut = {}))[(e.Emulated = 0)] = "Emulated"), + (e[(e.None = 2)] = "None"), + (e[(e.ShadowDom = 3)] = "ShadowDom"), + ut + ); + var e; + })(); + const St = "undefined" != typeof globalThis && globalThis, + Xt = "undefined" != typeof window && window, + tn = + "undefined" != typeof self && + "undefined" != typeof WorkerGlobalScope && + self instanceof WorkerGlobalScope && + self, + Kt = St || ("undefined" != typeof global && global) || Xt || tn, + Lt = {}, + Qe = [], + mt = d({ ɵcmp: d }), + Vt = d({ ɵdir: d }), + qt = d({ ɵpipe: d }), + Ne = d({ ɵmod: d }), + Se = d({ ɵfac: d }), + te = d({ __NG_ELEMENT_ID__: d }); + let re = 0; + function Me(e) { + return _e(() => { + const a = {}, + v = { + type: e.type, + providersResolver: null, + decls: e.decls, + vars: e.vars, + factory: null, + template: e.template || null, + consts: e.consts || null, + ngContentSelectors: e.ngContentSelectors, + hostBindings: e.hostBindings || null, + hostVars: e.hostVars || 0, + hostAttrs: e.hostAttrs || null, + contentQueries: e.contentQueries || null, + declaredInputs: a, + inputs: null, + outputs: null, + exportAs: e.exportAs || null, + onPush: e.changeDetection === Be.OnPush, + directiveDefs: null, + pipeDefs: null, + selectors: e.selectors || Qe, + viewQuery: e.viewQuery || null, + features: e.features || null, + data: e.data || {}, + encapsulation: e.encapsulation || ut.Emulated, + id: "c", + styles: e.styles || Qe, + _: null, + setInput: null, + schemas: e.schemas || null, + tView: null, + }, + E = e.directives, + R = e.features, + W = e.pipes; + return ( + (v.id += re++), + (v.inputs = ct(e.inputs, a)), + (v.outputs = ct(e.outputs)), + R && R.forEach((se) => se(v)), + (v.directiveDefs = E + ? () => ("function" == typeof E ? E() : E).map(It) + : null), + (v.pipeDefs = W + ? () => ("function" == typeof W ? W() : W).map(Qt) + : null), + v + ); + }); + } + function ze(e, t, a) { + const v = e.ɵcmp; + (v.directiveDefs = () => t.map(It)), (v.pipeDefs = () => a.map(Qt)); + } + function It(e) { + return Ot(e) || un(e); + } + function Qt(e) { + return on(e); + } + const cn = {}; + function An(e) { + return _e(() => { + const t = { + type: e.type, + bootstrap: e.bootstrap || Qe, + declarations: e.declarations || Qe, + imports: e.imports || Qe, + exports: e.exports || Qe, + transitiveCompileScopes: null, + schemas: e.schemas || null, + id: e.id || null, + }; + return null != e.id && (cn[e.id] = e.type), t; + }); + } + function lt(e, t) { + return _e(() => { + const a = On(e, !0); + (a.declarations = t.declarations || Qe), + (a.imports = t.imports || Qe), + (a.exports = t.exports || Qe); + }); + } + function ct(e, t) { + if (null == e) return Lt; + const a = {}; + for (const v in e) + if (e.hasOwnProperty(v)) { + let E = e[v], + R = E; + Array.isArray(E) && ((R = E[1]), (E = E[0])), + (a[E] = v), + t && (t[E] = R); + } + return a; + } + const He = Me; + function pt(e) { + return { + type: e.type, + name: e.name, + factory: null, + pure: !1 !== e.pure, + onDestroy: e.type.prototype.ngOnDestroy || null, + }; + } + function Ot(e) { + return e[mt] || null; + } + function un(e) { + return e[Vt] || null; + } + function on(e) { + return e[qt] || null; + } + function On(e, t) { + const a = e[Ne] || null; + if (!a && !0 === t) + throw new Error(`Type ${h(e)} does not have '\u0275mod' property.`); + return a; + } + function Xn(e) { + return Array.isArray(e) && "object" == typeof e[1]; + } + function pi(e) { + return Array.isArray(e) && !0 === e[1]; + } + function Gi(e) { + return 0 != (8 & e.flags); + } + function Ui(e) { + return 2 == (2 & e.flags); + } + function tr(e) { + return 1 == (1 & e.flags); + } + function bi(e) { + return null !== e.template; + } + function Rn(e) { + return 0 != (512 & e[2]); + } + function ir(e, t) { + return e.hasOwnProperty(Se) ? e[Se] : null; + } + class Cr { + constructor(t, a, v) { + (this.previousValue = t), + (this.currentValue = a), + (this.firstChange = v); + } + isFirstChange() { + return this.firstChange; + } + } + function Sr() { + return mr; + } + function mr(e) { + return e.type.prototype.ngOnChanges && (e.setInput = jr), Hr; + } + function Hr() { + const e = Wr(this), + t = null == e ? void 0 : e.current; + if (t) { + const a = e.previous; + if (a === Lt) e.previous = t; + else for (let v in t) a[v] = t[v]; + (e.current = null), this.ngOnChanges(t); + } + } + function jr(e, t, a, v) { + const E = + Wr(e) || + (function (e, t) { + return (e[Wi] = t); + })(e, { previous: Lt, current: null }), + R = E.current || (E.current = {}), + W = E.previous, + se = this.declaredInputs[a], + ge = W[se]; + (R[se] = new Cr(ge && ge.currentValue, t, W === Lt)), (e[v] = t); + } + Sr.ngInherit = !0; + const Wi = "__ngSimpleChanges__"; + function Wr(e) { + return e[Wi] || null; + } + let Dr = null; + const Lr = (e) => { + Dr = e; + }, + Ji = function (e, t, a) { + null != Dr && Dr(e, t, a); + }, + Fr = "http://www.w3.org/2000/svg", + ls = "http://www.w3.org/1998/MathML/"; + let kr; + function Jr(e) { + kr = e; + } + function Tr() { + return void 0 !== kr + ? kr + : "undefined" != typeof document + ? document + : void 0; + } + function si(e) { + return !!e.listen; + } + const zr = { createRenderer: (e, t) => Tr() }; + function be(e) { + for (; Array.isArray(e); ) e = e[0]; + return e; + } + function V(e, t) { + return be(t[e]); + } + function ve(e, t) { + return be(t[e.index]); + } + function Nt(e, t) { + return e.data[t]; + } + function nn(e, t) { + return e[t]; + } + function In(e, t) { + const a = t[e]; + return Xn(a) ? a : a[0]; + } + function ni(e) { + return 4 == (4 & e[2]); + } + function di(e) { + return 128 == (128 & e[2]); + } + function hi(e, t) { + return null == t ? null : e[t]; + } + function Ei(e) { + e[18] = 0; + } + function ki(e, t) { + e[5] += t; + let a = e, + v = e[3]; + for ( + ; + null !== v && ((1 === t && 1 === a[5]) || (-1 === t && 0 === a[5])); + + ) + (v[5] += t), (a = v), (v = v[3]); + } + const xn = { + lFrame: bs(null), + bindingsEnabled: !0, + isInCheckNoChangesMode: !1, + }; + function es() { + return xn.bindingsEnabled; + } + function ds() { + xn.bindingsEnabled = !0; + } + function Bs() { + xn.bindingsEnabled = !1; + } + function we() { + return xn.lFrame.lView; + } + function N() { + return xn.lFrame.tView; + } + function G(e) { + return (xn.lFrame.contextLView = e), e[8]; + } + function pe() { + let e = Ae(); + for (; null !== e && 64 === e.type; ) e = e.parent; + return e; + } + function Ae() { + return xn.lFrame.currentTNode; + } + function We() { + const e = xn.lFrame, + t = e.currentTNode; + return e.isParent ? t : t.parent; + } + function rt(e, t) { + const a = xn.lFrame; + (a.currentTNode = e), (a.isParent = t); + } + function dt() { + return xn.lFrame.isParent; + } + function Rt() { + xn.lFrame.isParent = !1; + } + function pn() { + return xn.isInCheckNoChangesMode; + } + function Pn(e) { + xn.isInCheckNoChangesMode = e; + } + function Ln() { + const e = xn.lFrame; + let t = e.bindingRootIndex; + return ( + -1 === t && (t = e.bindingRootIndex = e.tView.bindingStartIndex), t + ); + } + function _n() { + return xn.lFrame.bindingIndex; + } + function Bn(e) { + return (xn.lFrame.bindingIndex = e); + } + function Kn() { + return xn.lFrame.bindingIndex++; + } + function _i(e) { + const t = xn.lFrame, + a = t.bindingIndex; + return (t.bindingIndex = t.bindingIndex + e), a; + } + function sr(e) { + xn.lFrame.inI18n = e; + } + function Qi(e, t) { + const a = xn.lFrame; + (a.bindingIndex = a.bindingRootIndex = e), fr(t); + } + function fr(e) { + xn.lFrame.currentDirectiveIndex = e; + } + function Xi(e) { + const t = xn.lFrame.currentDirectiveIndex; + return -1 === t ? null : e[t]; + } + function gr() { + return xn.lFrame.currentQueryIndex; + } + function zi(e) { + xn.lFrame.currentQueryIndex = e; + } + function Pr(e) { + const t = e[1]; + return 2 === t.type ? t.declTNode : 1 === t.type ? e[6] : null; + } + function ys(e, t, a) { + if (a & Ee.SkipSelf) { + let E = t, + R = e; + for ( + ; + !((E = E.parent), + null !== E || + a & Ee.Host || + ((E = Pr(R)), null === E || ((R = R[15]), 10 & E.type))); + + ); + if (null === E) return !1; + (t = E), (e = R); + } + const v = (xn.lFrame = Ur()); + return (v.currentTNode = t), (v.lView = e), !0; + } + function Yi(e) { + const t = Ur(), + a = e[1]; + (xn.lFrame = t), + (t.currentTNode = a.firstChild), + (t.lView = e), + (t.tView = a), + (t.contextLView = e), + (t.bindingIndex = a.bindingStartIndex), + (t.inI18n = !1); + } + function Ur() { + const e = xn.lFrame, + t = null === e ? null : e.child; + return null === t ? bs(e) : t; + } + function bs(e) { + const t = { + currentTNode: null, + isParent: !0, + lView: null, + tView: null, + selectedIndex: -1, + contextLView: null, + elementDepthCount: 0, + currentNamespace: null, + currentDirectiveIndex: -1, + bindingRootIndex: -1, + bindingIndex: -1, + currentQueryIndex: 0, + parent: e, + child: null, + inI18n: !1, + }; + return null !== e && (e.child = t), t; + } + function Cs() { + const e = xn.lFrame; + return ( + (xn.lFrame = e.parent), (e.currentTNode = null), (e.lView = null), e + ); + } + const mn = Cs; + function Mn() { + const e = Cs(); + (e.isParent = !0), + (e.tView = null), + (e.selectedIndex = -1), + (e.contextLView = null), + (e.elementDepthCount = 0), + (e.currentDirectiveIndex = -1), + (e.currentNamespace = null), + (e.bindingRootIndex = -1), + (e.bindingIndex = -1), + (e.currentQueryIndex = 0); + } + function ii() { + return xn.lFrame.selectedIndex; + } + function Hi(e) { + xn.lFrame.selectedIndex = e; + } + function Zn() { + const e = xn.lFrame; + return Nt(e.tView, e.selectedIndex); + } + function dr() { + xn.lFrame.currentNamespace = Fr; + } + function Si() { + xn.lFrame.currentNamespace = ls; + } + function Es() { + xn.lFrame.currentNamespace = null; + } + function Ir(e, t) { + for (let a = t.directiveStart, v = t.directiveEnd; a < v; a++) { + const R = e.data[a].type.prototype, + { + ngAfterContentInit: W, + ngAfterContentChecked: se, + ngAfterViewInit: ge, + ngAfterViewChecked: De, + ngOnDestroy: ke, + } = R; + W && (e.contentHooks || (e.contentHooks = [])).push(-a, W), + se && + ((e.contentHooks || (e.contentHooks = [])).push(a, se), + (e.contentCheckHooks || (e.contentCheckHooks = [])).push(a, se)), + ge && (e.viewHooks || (e.viewHooks = [])).push(-a, ge), + De && + ((e.viewHooks || (e.viewHooks = [])).push(a, De), + (e.viewCheckHooks || (e.viewCheckHooks = [])).push(a, De)), + null != ke && (e.destroyHooks || (e.destroyHooks = [])).push(a, ke); + } + } + function _r(e, t, a) { + Vs(e, t, 3, a); + } + function ts(e, t, a, v) { + (3 & e[2]) === a && Vs(e, t, a, v); + } + function Br(e, t) { + let a = e[2]; + (3 & a) === t && ((a &= 2047), (a += 1), (e[2] = a)); + } + function Vs(e, t, a, v) { + const R = null != v ? v : -1, + W = t.length - 1; + let se = 0; + for (let ge = void 0 !== v ? 65535 & e[18] : 0; ge < W; ge++) + if ("number" == typeof t[ge + 1]) { + if (((se = t[ge]), null != v && se >= v)) break; + } else + t[ge] < 0 && (e[18] += 65536), + (se < R || -1 == R) && + (qs(e, a, t, ge), (e[18] = (4294901760 & e[18]) + ge + 2)), + ge++; + } + function qs(e, t, a, v) { + const E = a[v] < 0, + R = a[v + 1], + se = e[E ? -a[v] : a[v]]; + if (E) { + if (e[2] >> 11 < e[18] >> 16 && (3 & e[2]) === t) { + (e[2] += 2048), Ji(4, se, R); + try { + R.call(se); + } finally { + Ji(5, se, R); + } + } + } else { + Ji(4, se, R); + try { + R.call(se); + } finally { + Ji(5, se, R); + } + } + } + class rs { + constructor(t, a, v) { + (this.factory = t), + (this.resolving = !1), + (this.canSeeViewProviders = a), + (this.injectImpl = v); + } + } + function Mt(e, t, a) { + const v = si(e); + let E = 0; + for (; E < a.length; ) { + const R = a[E]; + if ("number" == typeof R) { + if (0 !== R) break; + E++; + const W = a[E++], + se = a[E++], + ge = a[E++]; + v ? e.setAttribute(t, se, ge, W) : t.setAttributeNS(W, se, ge); + } else { + const W = R, + se = a[++E]; + ln(W) + ? v && e.setProperty(t, W, se) + : v + ? e.setAttribute(t, W, se) + : t.setAttribute(W, se), + E++; + } + } + return E; + } + function jt(e) { + return 3 === e || 4 === e || 6 === e; + } + function ln(e) { + return 64 === e.charCodeAt(0); + } + function Hn(e, t) { + if (null !== t && 0 !== t.length) + if (null === e || 0 === e.length) e = t.slice(); + else { + let a = -1; + for (let v = 0; v < t.length; v++) { + const E = t[v]; + "number" == typeof E + ? (a = E) + : 0 === a || + Ki(e, a, E, null, -1 === a || 2 === a ? t[++v] : null); + } + } + return e; + } + function Ki(e, t, a, v, E) { + let R = 0, + W = e.length; + if (-1 === t) W = -1; + else + for (; R < e.length; ) { + const se = e[R++]; + if ("number" == typeof se) { + if (se === t) { + W = -1; + break; + } + if (se > t) { + W = R - 1; + break; + } + } + } + for (; R < e.length; ) { + const se = e[R]; + if ("number" == typeof se) break; + if (se === a) { + if (null === v) return void (null !== E && (e[R + 1] = E)); + if (v === e[R + 1]) return void (e[R + 2] = E); + } + R++, null !== v && R++, null !== E && R++; + } + -1 !== W && (e.splice(W, 0, t), (R = W + 1)), + e.splice(R++, 0, a), + null !== v && e.splice(R++, 0, v), + null !== E && e.splice(R++, 0, E); + } + function me(e) { + return -1 !== e; + } + function oe(e) { + return 32767 & e; + } + function Ce(e, t) { + let a = (function (e) { + return e >> 16; + })(e), + v = t; + for (; a > 0; ) (v = v[15]), a--; + return v; + } + let Te = !0; + function Ve(e) { + const t = Te; + return (Te = e), t; + } + let vn = 0; + function Dn(e, t) { + const a = Di(e, t); + if (-1 !== a) return a; + const v = t[1]; + v.firstCreatePass && + ((e.injectorIndex = t.length), + vi(v.data, e), + vi(t, null), + vi(v.blueprint, null)); + const E = hs(e, t), + R = e.injectorIndex; + if (me(E)) { + const W = oe(E), + se = Ce(E, t), + ge = se[1].data; + for (let De = 0; De < 8; De++) t[R + De] = se[W + De] | ge[W + De]; + } + return (t[R + 8] = E), R; + } + function vi(e, t) { + e.push(0, 0, 0, 0, 0, 0, 0, 0, t); + } + function Di(e, t) { + return -1 === e.injectorIndex || + (e.parent && e.parent.injectorIndex === e.injectorIndex) || + null === t[e.injectorIndex + 8] + ? -1 + : e.injectorIndex; + } + function hs(e, t) { + if (e.parent && -1 !== e.parent.injectorIndex) + return e.parent.injectorIndex; + let a = 0, + v = null, + E = t; + for (; null !== E; ) { + const R = E[1], + W = R.type; + if (((v = 2 === W ? R.declTNode : 1 === W ? E[6] : null), null === v)) + return -1; + if ((a++, (E = E[15]), -1 !== v.injectorIndex)) + return v.injectorIndex | (a << 16); + } + return -1; + } + function Gr(e, t, a) { + !(function (e, t, a) { + let v; + "string" == typeof a + ? (v = a.charCodeAt(0) || 0) + : a.hasOwnProperty(te) && (v = a[te]), + null == v && (v = a[te] = vn++); + const E = 255 & v; + t.data[e + (E >> 5)] |= 1 << E; + })(e, t, a); + } + function ps(e, t, a) { + if (a & Ee.Optional) return e; + w(t, "NodeInjector"); + } + function eo(e, t, a, v) { + if ( + (a & Ee.Optional && void 0 === v && (v = null), + 0 == (a & (Ee.Self | Ee.Host))) + ) { + const E = e[9], + R = D(void 0); + try { + return E ? E.get(t, v, a & Ee.Optional) : U(t, v, a & Ee.Optional); + } finally { + D(R); + } + } + return ps(v, t, a); + } + function ss(e, t, a, v = Ee.Default, E) { + if (null !== e) { + const R = (function (e) { + if ("string" == typeof e) return e.charCodeAt(0) || 0; + const t = e.hasOwnProperty(te) ? e[te] : void 0; + return "number" == typeof t ? (t >= 0 ? 255 & t : ua) : t; + })(a); + if ("function" == typeof R) { + if (!ys(t, e, v)) return v & Ee.Host ? ps(E, a, v) : eo(t, a, v, E); + try { + const W = R(v); + if (null != W || v & Ee.Optional) return W; + w(a); + } finally { + mn(); + } + } else if ("number" == typeof R) { + let W = null, + se = Di(e, t), + ge = -1, + De = v & Ee.Host ? t[16][6] : null; + for ( + (-1 === se || v & Ee.SkipSelf) && + ((ge = -1 === se ? hs(e, t) : t[se + 8]), + -1 !== ge && Ga(v, !1) + ? ((W = t[1]), (se = oe(ge)), (t = Ce(ge, t))) + : (se = -1)); + -1 !== se; + + ) { + const ke = t[1]; + if (Ka(R, se, ke.data)) { + const qe = Nl(se, t, a, W, v, De); + if (qe !== Rs) return qe; + } + (ge = t[se + 8]), + -1 !== ge && Ga(v, t[1].data[se + 8] === De) && Ka(R, se, t) + ? ((W = ke), (se = oe(ge)), (t = Ce(ge, t))) + : (se = -1); + } + } + } + return eo(t, a, v, E); + } + const Rs = {}; + function ua() { + return new lo(pe(), we()); + } + function Nl(e, t, a, v, E, R) { + const W = t[1], + se = W.data[e + 8], + ke = Io( + se, + W, + a, + null == v ? Ui(se) && Te : v != W && 0 != (3 & se.type), + E & Ee.Host && R === se + ); + return null !== ke ? go(t, W, ke, se) : Rs; + } + function Io(e, t, a, v, E) { + const R = e.providerIndexes, + W = t.data, + se = 1048575 & R, + ge = e.directiveStart, + ke = R >> 20, + Ct = E ? se + ke : e.directiveEnd; + for (let Pt = v ? se : se + ke; Pt < Ct; Pt++) { + const Yt = W[Pt]; + if ((Pt < ge && a === Yt) || (Pt >= ge && Yt.type === a)) return Pt; + } + if (E) { + const Pt = W[ge]; + if (Pt && bi(Pt) && Pt.type === a) return ge; + } + return null; + } + function go(e, t, a, v) { + let E = e[a]; + const R = t.data; + if ( + (function (e) { + return e instanceof rs; + })(E) + ) { + const W = E; + W.resolving && + (function (e, t) { + throw new b("200", `Circular dependency in DI detected for ${e}`); + })(O(R[a])); + const se = Ve(W.canSeeViewProviders); + W.resolving = !0; + const ge = W.injectImpl ? D(W.injectImpl) : null; + ys(e, v, Ee.Default); + try { + (E = e[a] = W.factory(void 0, R, e, v)), + t.firstCreatePass && + a >= v.directiveStart && + (function (e, t, a) { + const { + ngOnChanges: v, + ngOnInit: E, + ngDoCheck: R, + } = t.type.prototype; + if (v) { + const W = mr(t); + (a.preOrderHooks || (a.preOrderHooks = [])).push(e, W), + ( + a.preOrderCheckHooks || (a.preOrderCheckHooks = []) + ).push(e, W); + } + E && + (a.preOrderHooks || (a.preOrderHooks = [])).push(0 - e, E), + R && + ((a.preOrderHooks || (a.preOrderHooks = [])).push(e, R), + ( + a.preOrderCheckHooks || (a.preOrderCheckHooks = []) + ).push(e, R)); + })(a, R[a], t); + } finally { + null !== ge && D(ge), Ve(se), (W.resolving = !1), mn(); + } + } + return E; + } + function Ka(e, t, a) { + return !!(a[t + (e >> 5)] & (1 << e)); + } + function Ga(e, t) { + return !(e & Ee.Self || (e & Ee.Host && t)); + } + class lo { + constructor(t, a) { + (this._tNode = t), (this._lView = a); + } + get(t, a, v) { + return ss(this._tNode, this._lView, t, v, a); + } + } + function Ds(e) { + return _e(() => { + const t = e.prototype.constructor, + a = t[Se] || ca(t), + v = Object.prototype; + let E = Object.getPrototypeOf(e.prototype).constructor; + for (; E && E !== v; ) { + const R = E[Se] || ca(E); + if (R && R !== a) return R; + E = Object.getPrototypeOf(E); + } + return (R) => new R(); + }); + } + function ca(e) { + return l(e) + ? () => { + const t = ca(c(e)); + return t && t(); + } + : ir(e); + } + function da(e) { + return (function (e, t) { + if ("class" === t) return e.classes; + if ("style" === t) return e.styles; + const a = e.attrs; + if (a) { + const v = a.length; + let E = 0; + for (; E < v; ) { + const R = a[E]; + if (jt(R)) break; + if (0 === R) E += 2; + else if ("number" == typeof R) + for (E++; E < v && "string" == typeof a[E]; ) E++; + else { + if (R === t) return a[E + 1]; + E += 2; + } + } + } + return null; + })(pe(), e); + } + const to = "__annotations__", + uo = "__parameters__", + co = "__prop__metadata__"; + function Ts(e, t, a, v, E) { + return _e(() => { + const R = _o(t); + function W(...se) { + if (this instanceof W) return R.call(this, ...se), this; + const ge = new W(...se); + return function (ke) { + return ( + E && E(ke, ...se), + (ke.hasOwnProperty(to) + ? ke[to] + : Object.defineProperty(ke, to, { value: [] })[to] + ).push(ge), + v && v(ke), + ke + ); + }; + } + return ( + a && (W.prototype = Object.create(a.prototype)), + (W.prototype.ngMetadataName = e), + (W.annotationCls = W), + W + ); + }); + } + function _o(e) { + return function (...a) { + if (e) { + const v = e(...a); + for (const E in v) this[E] = v[E]; + } + }; + } + function Hs(e, t, a) { + return _e(() => { + const v = _o(t); + function E(...R) { + if (this instanceof E) return v.apply(this, R), this; + const W = new E(...R); + return (se.annotation = W), se; + function se(ge, De, ke) { + const qe = ge.hasOwnProperty(uo) + ? ge[uo] + : Object.defineProperty(ge, uo, { value: [] })[uo]; + for (; qe.length <= ke; ) qe.push(null); + return (qe[ke] = qe[ke] || []).push(W), ge; + } + } + return ( + a && (E.prototype = Object.create(a.prototype)), + (E.prototype.ngMetadataName = e), + (E.annotationCls = E), + E + ); + }); + } + function js(e, t, a, v) { + return _e(() => { + const E = _o(t); + function R(...W) { + if (this instanceof R) return E.apply(this, W), this; + const se = new R(...W); + return function (De, ke) { + const qe = De.constructor, + Ct = qe.hasOwnProperty(co) + ? qe[co] + : Object.defineProperty(qe, co, { value: {} })[co]; + (Ct[ke] = (Ct.hasOwnProperty(ke) && Ct[ke]) || []), + Ct[ke].unshift(se), + v && v(De, ke, ...W); + }; + } + return ( + a && (R.prototype = Object.create(a.prototype)), + (R.prototype.ngMetadataName = e), + (R.annotationCls = R), + R + ); + }); + } + const ha = Hs("Attribute", (e) => ({ + attributeName: e, + __NG_ELEMENT_ID__: () => da(e), + })); + class lr { + constructor(t, a) { + (this._desc = t), + (this.ngMetadataName = "InjectionToken"), + (this.ɵprov = void 0), + "number" == typeof a + ? (this.__NG_ELEMENT_ID__ = a) + : void 0 !== a && + (this.ɵprov = Ue({ + token: this, + providedIn: a.providedIn || "root", + factory: a.factory, + })); + } + toString() { + return `InjectionToken ${this._desc}`; + } + } + const vo = new lr("AnalyzeForEntryComponents"); + class yo {} + const Bl = js( + "ContentChildren", + (e, t = {}) => + Object.assign( + { + selector: e, + first: !1, + isViewQuery: !1, + descendants: !1, + emitDistinctChangesOnly: !0, + }, + t + ), + yo + ), + Vl = js( + "ContentChild", + (e, t = {}) => + Object.assign( + { selector: e, first: !0, isViewQuery: !1, descendants: !0 }, + t + ), + yo + ), + $l = js( + "ViewChildren", + (e, t = {}) => + Object.assign( + { + selector: e, + first: !1, + isViewQuery: !0, + descendants: !0, + emitDistinctChangesOnly: !0, + }, + t + ), + yo + ), + Hl = js( + "ViewChild", + (e, t) => + Object.assign( + { selector: e, first: !0, isViewQuery: !0, descendants: !0 }, + t + ), + yo + ); + var vr = (() => ( + ((vr = vr || {})[(vr.Directive = 0)] = "Directive"), + (vr[(vr.Component = 1)] = "Component"), + (vr[(vr.Injectable = 2)] = "Injectable"), + (vr[(vr.Pipe = 3)] = "Pipe"), + (vr[(vr.NgModule = 4)] = "NgModule"), + vr + ))(); + function yr(e) { + const t = Kt.ng; + if (t && t.ɵcompilerFacade) return t.ɵcompilerFacade; + throw new Error("JIT compiler unavailable"); + } + const Oo = Function; + function bo(e) { + return "function" == typeof e; + } + function os(e, t) { + void 0 === t && (t = e); + for (let a = 0; a < e.length; a++) { + let v = e[a]; + Array.isArray(v) + ? (t === e && (t = e.slice(0, a)), os(v, t)) + : t !== e && t.push(v); + } + return t; + } + function xs(e, t) { + e.forEach((a) => (Array.isArray(a) ? xs(a, t) : t(a))); + } + function Ya(e, t, a) { + t >= e.length ? e.push(a) : e.splice(t, 0, a); + } + function Co(e, t) { + return t >= e.length - 1 ? e.pop() : e.splice(t, 1)[0]; + } + function ho(e, t) { + const a = []; + for (let v = 0; v < e; v++) a.push(t); + return a; + } + function Yr(e, t, a) { + let v = P(e, t); + return ( + v >= 0 + ? (e[1 | v] = a) + : ((v = ~v), + (function (e, t, a, v) { + let E = e.length; + if (E == t) e.push(a, v); + else if (1 === E) e.push(v, e[0]), (e[0] = a); + else { + for (E--, e.push(e[E - 1], e[E]); E > t; ) + (e[E] = e[E - 2]), E--; + (e[t] = a), (e[t + 1] = v); + } + })(e, v, t, a)), + v + ); + } + function ma(e, t) { + const a = P(e, t); + if (a >= 0) return e[1 | a]; + } + function P(e, t) { + return (function (e, t, a) { + let v = 0, + E = e.length >> a; + for (; E !== v; ) { + const R = v + ((E - v) >> 1), + W = e[R << a]; + if (t === W) return R << a; + W > t ? (E = R) : (v = R + 1); + } + return ~(E << a); + })(e, t, 1); + } + const Ge = /^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/, + Fe = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/, + ht = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/, + Ut = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/; + class bn { + constructor(t) { + this._reflect = t || Kt.Reflect; + } + isReflectionEnabled() { + return !0; + } + factory(t) { + return (...a) => new t(...a); + } + _zipTypesAndAnnotations(t, a) { + let v; + v = ho(void 0 === t ? a.length : t.length); + for (let E = 0; E < v.length; E++) + (v[E] = void 0 === t ? [] : t[E] && t[E] != Object ? [t[E]] : []), + a && null != a[E] && (v[E] = v[E].concat(a[E])); + return v; + } + _ownParameters(t, a) { + const v = t.toString(); + if (Ge.test((e = v)) || Ut.test(e) || (Fe.test(e) && !ht.test(e))) + return null; + var e; + if (t.parameters && t.parameters !== a.parameters) + return t.parameters; + const E = t.ctorParameters; + if (E && E !== a.ctorParameters) { + const se = "function" == typeof E ? E() : E, + ge = se.map((ke) => ke && ke.type), + De = se.map((ke) => ke && wt(ke.decorators)); + return this._zipTypesAndAnnotations(ge, De); + } + const R = t.hasOwnProperty(uo) && t[uo], + W = + this._reflect && + this._reflect.getOwnMetadata && + this._reflect.getOwnMetadata("design:paramtypes", t); + return W || R ? this._zipTypesAndAnnotations(W, R) : ho(t.length); + } + parameters(t) { + if (!bo(t)) return []; + const a = $t(t); + let v = this._ownParameters(t, a); + return !v && a !== Object && (v = this.parameters(a)), v || []; + } + _ownAnnotations(t, a) { + if (t.annotations && t.annotations !== a.annotations) { + let v = t.annotations; + return ( + "function" == typeof v && v.annotations && (v = v.annotations), v + ); + } + return t.decorators && t.decorators !== a.decorators + ? wt(t.decorators) + : t.hasOwnProperty(to) + ? t[to] + : null; + } + annotations(t) { + if (!bo(t)) return []; + const a = $t(t), + v = this._ownAnnotations(t, a) || []; + return (a !== Object ? this.annotations(a) : []).concat(v); + } + _ownPropMetadata(t, a) { + if (t.propMetadata && t.propMetadata !== a.propMetadata) { + let v = t.propMetadata; + return ( + "function" == typeof v && v.propMetadata && (v = v.propMetadata), + v + ); + } + if (t.propDecorators && t.propDecorators !== a.propDecorators) { + const v = t.propDecorators, + E = {}; + return ( + Object.keys(v).forEach((R) => { + E[R] = wt(v[R]); + }), + E + ); + } + return t.hasOwnProperty(co) ? t[co] : null; + } + propMetadata(t) { + if (!bo(t)) return {}; + const a = $t(t), + v = {}; + if (a !== Object) { + const R = this.propMetadata(a); + Object.keys(R).forEach((W) => { + v[W] = R[W]; + }); + } + const E = this._ownPropMetadata(t, a); + return ( + E && + Object.keys(E).forEach((R) => { + const W = []; + v.hasOwnProperty(R) && W.push(...v[R]), + W.push(...E[R]), + (v[R] = W); + }), + v + ); + } + ownPropMetadata(t) { + return (bo(t) && this._ownPropMetadata(t, $t(t))) || {}; + } + hasLifecycleHook(t, a) { + return t instanceof Oo && a in t.prototype; + } + guards(t) { + return {}; + } + getter(t) { + return new Function("o", "return o." + t + ";"); + } + setter(t) { + return new Function("o", "v", "return o." + t + " = v;"); + } + method(t) { + return new Function( + "o", + "args", + `if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);` + ); + } + importUri(t) { + return "object" == typeof t && t.filePath ? t.filePath : `./${h(t)}`; + } + resourceUri(t) { + return `./${h(t)}`; + } + resolveIdentifier(t, a, v, E) { + return E; + } + resolveEnum(t, a) { + return t[a]; + } + } + function wt(e) { + return e + ? e.map( + (t) => new (0, t.type.annotationCls)(...(t.args ? t.args : [])) + ) + : []; + } + function $t(e) { + const t = e.prototype ? Object.getPrototypeOf(e.prototype) : null; + return (t ? t.constructor : null) || Object; + } + const hn = {}, + en = "__NG_DI_FLAG__", + Nn = "ngTempTokenPath", + Ci = /\n/gm, + Ai = "__source", + gi = d({ provide: String, useValue: d }); + let fn; + function wi(e) { + const t = fn; + return (fn = e), t; + } + function wr(e, t = Ee.Default) { + if (void 0 === fn) + throw new Error("inject() must be called from an injection context"); + return null === fn + ? U(e, void 0, t) + : fn.get(e, t & Ee.Optional ? null : void 0, t); + } + function Cn(e, t = Ee.Default) { + return (fe || wr)(c(e), t); + } + function Pi(e) { + throw new Error("invalid"); + } + const Fi = Cn; + function ri(e) { + const t = []; + for (let a = 0; a < e.length; a++) { + const v = c(e[a]); + if (Array.isArray(v)) { + if (0 === v.length) + throw new Error("Arguments array must have arguments."); + let E, + R = Ee.Default; + for (let W = 0; W < v.length; W++) { + const se = v[W], + ge = no(se); + "number" == typeof ge + ? -1 === ge + ? (E = se.token) + : (R |= ge) + : (E = se); + } + t.push(Cn(E, R)); + } else t.push(Cn(v)); + } + return t; + } + function Jn(e, t) { + return (e[en] = t), (e.prototype[en] = t), e; + } + function no(e) { + return e[en]; + } + const fo = Jn( + Hs("Inject", (e) => ({ token: e })), + -1 + ), + Is = Jn(Hs("Optional"), 8), + io = Jn(Hs("Self"), 2), + Eo = Jn(Hs("SkipSelf"), 4), + Qd = Jn(Hs("Host"), 1); + let Xd = null; + function Kl() { + return (Xd = Xd || new bn()); + } + function qa(e) { + return Zd(Kl().parameters(e)); + } + function Zd(e) { + return e.map((t) => + (function (e) { + const t = { + token: null, + attribute: null, + host: !1, + optional: !1, + self: !1, + skipSelf: !1, + }; + if (Array.isArray(e) && e.length > 0) + for (let a = 0; a < e.length; a++) { + const v = e[a]; + if (void 0 === v) continue; + const E = Object.getPrototypeOf(v); + if (v instanceof Is || "Optional" === E.ngMetadataName) + t.optional = !0; + else if (v instanceof Eo || "SkipSelf" === E.ngMetadataName) + t.skipSelf = !0; + else if (v instanceof io || "Self" === E.ngMetadataName) + t.self = !0; + else if (v instanceof Qd || "Host" === E.ngMetadataName) + t.host = !0; + else if (v instanceof fo) t.token = v.token; + else if (v instanceof ha) { + if (void 0 === v.attributeName) + throw new Error("Attribute name must be defined."); + t.attribute = v.attributeName; + } else t.token = v; + } + else + t.token = + void 0 === e || (Array.isArray(e) && 0 === e.length) ? null : e; + return t; + })(t) + ); + } + function qd(e) { + const t = [], + a = new Map(); + function v(E) { + let R = a.get(E); + if (!R) { + const W = e(E); + a.set(E, (R = W.then($g))); + } + return R; + } + return ( + Lo.forEach((E, R) => { + const W = []; + E.templateUrl && + W.push( + v(E.templateUrl).then((qe) => { + E.template = qe; + }) + ); + const se = E.styleUrls, + ge = E.styles || (E.styles = []), + De = E.styles.length; + se && + se.forEach((qe, Ct) => { + ge.push(""), + W.push( + v(qe).then((Pt) => { + (ge[De + Ct] = Pt), + se.splice(se.indexOf(qe), 1), + 0 == se.length && (E.styleUrls = void 0); + }) + ); + }); + const ke = Promise.all(W).then(() => + (function (e) { + ga.delete(e); + })(R) + ); + t.push(ke); + }), + eh(), + Promise.all(t).then(() => {}) + ); + } + let Lo = new Map(); + const ga = new Set(); + function Jd(e) { + return !!( + (e.templateUrl && !e.hasOwnProperty("template")) || + (e.styleUrls && e.styleUrls.length) + ); + } + function eh() { + const e = Lo; + return (Lo = new Map()), e; + } + function $g(e) { + return "string" == typeof e ? e : e.text(); + } + let Ja, el; + function Gl() { + if (void 0 === Ja && ((Ja = null), Kt.trustedTypes)) + try { + Ja = Kt.trustedTypes.createPolicy("angular", { + createHTML: (e) => e, + createScript: (e) => e, + createScriptURL: (e) => e, + }); + } catch (e) {} + return Ja; + } + function ko(e) { + var t; + return ( + (null === (t = Gl()) || void 0 === t ? void 0 : t.createHTML(e)) || e + ); + } + function Yl() { + if (void 0 === el && ((el = null), Kt.trustedTypes)) + try { + el = Kt.trustedTypes.createPolicy("angular#unsafe-bypass", { + createHTML: (e) => e, + createScript: (e) => e, + createScriptURL: (e) => e, + }); + } catch (e) {} + return el; + } + function th(e) { + var t; + return ( + (null === (t = Yl()) || void 0 === t ? void 0 : t.createHTML(e)) || e + ); + } + function nh(e) { + var t; + return ( + (null === (t = Yl()) || void 0 === t ? void 0 : t.createScript(e)) || + e + ); + } + function ih(e) { + var t; + return ( + (null === (t = Yl()) || void 0 === t + ? void 0 + : t.createScriptURL(e)) || e + ); + } + class wo { + constructor(t) { + this.changingThisBreaksApplicationSecurity = t; + } + toString() { + return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`; + } + } + class zg extends wo { + getTypeName() { + return "HTML"; + } + } + class Kg extends wo { + getTypeName() { + return "Style"; + } + } + class Gg extends wo { + getTypeName() { + return "Script"; + } + } + class Yg extends wo { + getTypeName() { + return "URL"; + } + } + class Qg extends wo { + getTypeName() { + return "ResourceURL"; + } + } + function ro(e) { + return e instanceof wo ? e.changingThisBreaksApplicationSecurity : e; + } + function Po(e, t) { + const a = rh(e); + if (null != a && a !== t) { + if ("ResourceURL" === a && "URL" === t) return !0; + throw new Error( + `Required a safe ${t}, got a ${a} (see https://g.co/ng/security#xss)` + ); + } + return a === t; + } + function rh(e) { + return (e instanceof wo && e.getTypeName()) || null; + } + function Xg(e) { + return new zg(e); + } + function Zg(e) { + return new Kg(e); + } + function qg(e) { + return new Gg(e); + } + function Jg(e) { + return new Yg(e); + } + function e_(e) { + return new Qg(e); + } + function sh(e) { + const t = new n_(e); + return (function () { + try { + return !!new window.DOMParser().parseFromString( + ko(""), + "text/html" + ); + } catch (e) { + return !1; + } + })() + ? new t_(t) + : t; + } + class t_ { + constructor(t) { + this.inertDocumentHelper = t; + } + getInertBodyElement(t) { + t = "" + t; + try { + const a = new window.DOMParser().parseFromString(ko(t), "text/html") + .body; + return null === a + ? this.inertDocumentHelper.getInertBodyElement(t) + : (a.removeChild(a.firstChild), a); + } catch (a) { + return null; + } + } + } + class n_ { + constructor(t) { + if ( + ((this.defaultDoc = t), + (this.inertDocument = this.defaultDoc.implementation.createHTMLDocument( + "sanitization-inert" + )), + null == this.inertDocument.body) + ) { + const a = this.inertDocument.createElement("html"); + this.inertDocument.appendChild(a); + const v = this.inertDocument.createElement("body"); + a.appendChild(v); + } + } + getInertBodyElement(t) { + const a = this.inertDocument.createElement("template"); + if ("content" in a) return (a.innerHTML = ko(t)), a; + const v = this.inertDocument.createElement("body"); + return ( + (v.innerHTML = ko(t)), + this.defaultDoc.documentMode && this.stripCustomNsAttrs(v), + v + ); + } + stripCustomNsAttrs(t) { + const a = t.attributes; + for (let E = a.length - 1; 0 < E; E--) { + const W = a.item(E).name; + ("xmlns:ns1" === W || 0 === W.indexOf("ns1:")) && + t.removeAttribute(W); + } + let v = t.firstChild; + for (; v; ) + v.nodeType === Node.ELEMENT_NODE && this.stripCustomNsAttrs(v), + (v = v.nextSibling); + } + } + const r_ = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi, + s_ = /^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 _a(e) { + return (e = String(e)).match(r_) || e.match(s_) ? e : "unsafe:" + e; + } + function oh(e) { + return (e = String(e)) + .split(",") + .map((t) => _a(t.trim())) + .join(", "); + } + function Ws(e) { + const t = {}; + for (const a of e.split(",")) t[a] = !0; + return t; + } + function va(...e) { + const t = {}; + for (const a of e) + for (const v in a) a.hasOwnProperty(v) && (t[v] = !0); + return t; + } + const ah = Ws("area,br,col,hr,img,wbr"), + lh = Ws("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"), + uh = Ws("rp,rt"), + Ql = va( + ah, + va( + lh, + Ws( + "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" + ) + ), + va( + uh, + Ws( + "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" + ) + ), + va(uh, lh) + ), + Xl = Ws("background,cite,href,itemtype,longdesc,poster,src,xlink:href"), + Zl = Ws("srcset"), + ch = va( + Xl, + Zl, + Ws( + "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" + ), + Ws( + "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" + ) + ), + o_ = Ws("script,style,template"); + class a_ { + constructor() { + (this.sanitizedSomething = !1), (this.buf = []); + } + sanitizeChildren(t) { + let a = t.firstChild, + v = !0; + for (; a; ) + if ( + (a.nodeType === Node.ELEMENT_NODE + ? (v = this.startElement(a)) + : a.nodeType === Node.TEXT_NODE + ? this.chars(a.nodeValue) + : (this.sanitizedSomething = !0), + v && a.firstChild) + ) + a = a.firstChild; + else + for (; a; ) { + a.nodeType === Node.ELEMENT_NODE && this.endElement(a); + let E = this.checkClobberedElement(a, a.nextSibling); + if (E) { + a = E; + break; + } + a = this.checkClobberedElement(a, a.parentNode); + } + return this.buf.join(""); + } + startElement(t) { + const a = t.nodeName.toLowerCase(); + if (!Ql.hasOwnProperty(a)) + return (this.sanitizedSomething = !0), !o_.hasOwnProperty(a); + this.buf.push("<"), this.buf.push(a); + const v = t.attributes; + for (let E = 0; E < v.length; E++) { + const R = v.item(E), + W = R.name, + se = W.toLowerCase(); + if (!ch.hasOwnProperty(se)) { + this.sanitizedSomething = !0; + continue; + } + let ge = R.value; + Xl[se] && (ge = _a(ge)), + Zl[se] && (ge = oh(ge)), + this.buf.push(" ", W, '="', dh(ge), '"'); + } + return this.buf.push(">"), !0; + } + endElement(t) { + const a = t.nodeName.toLowerCase(); + Ql.hasOwnProperty(a) && + !ah.hasOwnProperty(a) && + (this.buf.push("")); + } + chars(t) { + this.buf.push(dh(t)); + } + checkClobberedElement(t, a) { + if ( + a && + (t.compareDocumentPosition(a) & + Node.DOCUMENT_POSITION_CONTAINED_BY) === + Node.DOCUMENT_POSITION_CONTAINED_BY + ) + throw new Error( + `Failed to sanitize html because the element is clobbered: ${t.outerHTML}` + ); + return a; + } + } + const l_ = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, + u_ = /([^\#-~ |!])/g; + function dh(e) { + return e + .replace(/&/g, "&") + .replace(l_, function (t) { + return ( + "&#" + + (1024 * (t.charCodeAt(0) - 55296) + + (t.charCodeAt(1) - 56320) + + 65536) + + ";" + ); + }) + .replace(u_, function (t) { + return "&#" + t.charCodeAt(0) + ";"; + }) + .replace(//g, ">"); + } + let tl; + function hh(e, t) { + let a = null; + try { + tl = tl || sh(e); + let v = t ? String(t) : ""; + a = tl.getInertBodyElement(v); + let E = 5, + R = v; + do { + if (0 === E) + throw new Error( + "Failed to sanitize html because the input is unstable" + ); + E--, (v = R), (R = a.innerHTML), (a = tl.getInertBodyElement(v)); + } while (v !== R); + return ko(new a_().sanitizeChildren(ql(a) || a)); + } finally { + if (a) { + const v = ql(a) || a; + for (; v.firstChild; ) v.removeChild(v.firstChild); + } + } + } + function ql(e) { + return "content" in e && + (function (e) { + return ( + e.nodeType === Node.ELEMENT_NODE && "TEMPLATE" === e.nodeName + ); + })(e) + ? e.content + : null; + } + var br = (() => ( + ((br = br || {})[(br.NONE = 0)] = "NONE"), + (br[(br.HTML = 1)] = "HTML"), + (br[(br.STYLE = 2)] = "STYLE"), + (br[(br.SCRIPT = 3)] = "SCRIPT"), + (br[(br.URL = 4)] = "URL"), + (br[(br.RESOURCE_URL = 5)] = "RESOURCE_URL"), + br + ))(); + function fh(e) { + const t = ya(); + return t + ? th(t.sanitize(br.HTML, e) || "") + : Po(e, "HTML") + ? th(ro(e)) + : hh(Tr(), T(e)); + } + function ph(e) { + const t = ya(); + return t + ? t.sanitize(br.STYLE, e) || "" + : Po(e, "Style") + ? ro(e) + : T(e); + } + function Jl(e) { + const t = ya(); + return t + ? t.sanitize(br.URL, e) || "" + : Po(e, "URL") + ? ro(e) + : _a(T(e)); + } + function eu(e) { + const t = ya(); + if (t) return ih(t.sanitize(br.RESOURCE_URL, e) || ""); + if (Po(e, "ResourceURL")) return ih(ro(e)); + throw new Error( + "unsafe value used in a resource URL context (see https://g.co/ng/security#xss)" + ); + } + function mh(e) { + const t = ya(); + if (t) return nh(t.sanitize(br.SCRIPT, e) || ""); + if (Po(e, "Script")) return nh(ro(e)); + throw new Error("unsafe value used in a script context"); + } + function gh(e) { + return ko(e[0]); + } + function _h(e) { + return (function (e) { + var t; + return ( + (null === (t = Gl()) || void 0 === t + ? void 0 + : t.createScriptURL(e)) || e + ); + })(e[0]); + } + function vh(e, t, a) { + return (function (e, t) { + return ("src" === t && + ("embed" === e || + "frame" === e || + "iframe" === e || + "media" === e || + "script" === e)) || + ("href" === t && ("base" === e || "link" === e)) + ? eu + : Jl; + })( + t, + a + )(e); + } + function ya() { + const e = we(); + return e && e[12]; + } + function Qr(e) { + let t = ba(e); + if (t) { + if (Array.isArray(t)) { + const a = t; + let v, E, R; + if ( + (function (e) { + return e && e.constructor && e.constructor.ɵcmp; + })(e) + ) { + if (((v = Eh(a, e)), -1 == v)) + throw new Error( + "The provided component was not found in the application" + ); + E = e; + } else if ( + (function (e) { + return e && e.constructor && e.constructor.ɵdir; + })(e) + ) { + if ( + ((v = (function (e, t) { + let a = e[1].firstChild; + for (; a; ) { + const E = a.directiveEnd; + for (let R = a.directiveStart; R < E; R++) + if (e[R] === t) return a.index; + a = p_(a); + } + return -1; + })(a, e)), + -1 == v) + ) + throw new Error( + "The provided directive was not found in the application" + ); + R = wh(v, a, !1); + } else if (((v = Ch(a, e)), -1 == v)) return null; + const W = be(a[v]), + se = ba(W), + ge = se && !Array.isArray(se) ? se : tu(a, v, W); + if ( + (E && + void 0 === ge.component && + ((ge.component = E), Xr(ge.component, ge)), + R && void 0 === ge.directives) + ) { + ge.directives = R; + for (let De = 0; De < R.length; De++) Xr(R[De], ge); + } + Xr(ge.native, ge), (t = ge); + } + } else { + const a = e; + let v = a; + for (; (v = v.parentNode); ) { + const E = ba(v); + if (E) { + let R; + if (((R = Array.isArray(E) ? E : E.lView), !R)) return null; + const W = Ch(R, a); + if (W >= 0) { + const se = be(R[W]), + ge = tu(R, W, se); + Xr(se, ge), (t = ge); + break; + } + } + } + } + return t || null; + } + function tu(e, t, a) { + return { + lView: e, + nodeIndex: t, + native: a, + component: void 0, + directives: void 0, + localRefs: void 0, + }; + } + function yh(e) { + let a, + t = ba(e); + if (Array.isArray(t)) { + const v = Eh(t, e); + a = In(v, t); + const E = tu(t, v, a[0]); + (E.component = e), Xr(e, E), Xr(E.native, E); + } else a = In(t.nodeIndex, t.lView); + return a; + } + const bh = "__ngContext__"; + function Xr(e, t) { + e[bh] = t; + } + function ba(e) { + return e[bh] || null; + } + function nu(e) { + const t = ba(e); + return t ? (Array.isArray(t) ? t : t.lView) : null; + } + function Ch(e, t) { + const a = e[1]; + for (let v = 20; v < a.bindingStartIndex; v++) + if (be(e[v]) === t) return v; + return -1; + } + function p_(e) { + if (e.child) return e.child; + if (e.next) return e.next; + for (; e.parent && !e.parent.next; ) e = e.parent; + return e.parent && e.parent.next; + } + function Eh(e, t) { + const a = e[1].components; + if (a) + for (let v = 0; v < a.length; v++) { + const E = a[v]; + if (In(E, e)[8] === t) return E; + } + else if (In(20, e)[8] === t) return 20; + return -1; + } + function wh(e, t, a) { + const v = t[1].data[e]; + let E = v.directiveStart; + return 0 == E + ? Qe + : (!a && 2 & v.flags && E++, t.slice(E, v.directiveEnd)); + } + const iu = "ngOriginalError"; + function ru(e) { + return e[iu]; + } + function E_(e, ...t) { + e.error(...t); + } + class Ca { + constructor() { + this._console = console; + } + handleError(t) { + const a = this._findOriginalError(t), + v = ((e = t) && e.ngErrorLogger) || E_; + var e; + v(this._console, "ERROR", t), + a && v(this._console, "ORIGINAL ERROR", a); + } + _findOriginalError(t) { + let a = t && ru(t); + for (; a && ru(a); ) a = ru(a); + return a || null; + } + } + const Mh = { name: "custom-elements" }, + Sh = { name: "no-errors-schema" }, + w_ = /^>|^->||--!>|)/; + const Th = (() => + ( + ("undefined" != typeof requestAnimationFrame && + requestAnimationFrame) || + setTimeout + ).bind(Kt))(); + function xh(e) { + return e.ownerDocument.defaultView; + } + function Ih(e) { + return e.ownerDocument; + } + function Ah(e) { + return e.ownerDocument.body; + } + function zs(e) { + return e instanceof Function ? e() : e; + } + var Ks = (() => ( + ((Ks = Ks || {})[(Ks.Important = 1)] = "Important"), + (Ks[(Ks.DashCase = 2)] = "DashCase"), + Ks + ))(); + let su; + function ou(e, t) { + return su(e, t); + } + function Ea(e) { + const t = e[3]; + return pi(t) ? t[3] : t; + } + function kh(e) { + return (function (e) { + let t = Xn(e) ? e : nu(e); + for (; t && !(512 & t[2]); ) t = Ea(t); + return t; + })(e)[8]; + } + function au(e) { + return Ph(e[13]); + } + function lu(e) { + return Ph(e[4]); + } + function Ph(e) { + for (; null !== e && !pi(e); ) e = e[4]; + return e; + } + function No(e, t, a, v, E) { + if (null != v) { + let R, + W = !1; + pi(v) ? (R = v) : Xn(v) && ((W = !0), (v = v[0])); + const se = be(v); + 0 === e && null !== a + ? null == E + ? $h(t, a, se) + : Mo(t, a, se, E || null, !0) + : 1 === e && null !== a + ? Mo(t, a, se, E || null, !0) + : 2 === e + ? Yh(t, se, W) + : 3 === e && t.destroyNode(se), + null != R && + (function (e, t, a, v, E) { + const R = a[7]; + R !== be(a) && No(t, e, v, R, E); + for (let se = 10; se < a.length; se++) { + const ge = a[se]; + wa(ge[1], ge, e, t, v, R); + } + })(t, e, R, a, E); + } + } + function uu(e, t) { + return si(e) ? e.createText(t) : e.createTextNode(t); + } + function Fh(e, t, a) { + si(e) ? e.setValue(t, a) : (t.textContent = a); + } + function O_(e, t) { + return e.createComment( + (function (e) { + return e.replace(w_, (t) => t.replace(M_, "\u200b$1\u200b")); + })(t) + ); + } + function cu(e, t, a) { + return si(e) + ? e.createElement(t, a) + : null === a + ? e.createElement(t) + : e.createElementNS(a, t); + } + function Nh(e, t) { + const a = e[9], + v = a.indexOf(t), + E = t[3]; + 1024 & t[2] && ((t[2] &= -1025), ki(E, -1)), a.splice(v, 1); + } + function du(e, t) { + if (e.length <= 10) return; + const a = 10 + t, + v = e[a]; + if (v) { + const E = v[17]; + null !== E && E !== e && Nh(E, v), t > 0 && (e[a - 1][4] = v[4]); + const R = Co(e, 10 + t); + !(function (e, t) { + wa(e, t, t[11], 2, null, null), (t[0] = null), (t[6] = null); + })(v[1], v); + const W = R[19]; + null !== W && W.detachView(R[1]), + (v[3] = null), + (v[4] = null), + (v[2] &= -129); + } + return v; + } + function Uh(e, t) { + if (!(256 & t[2])) { + const a = t[11]; + si(a) && a.destroyNode && wa(e, t, a, 3, null, null), + (function (e) { + let t = e[13]; + if (!t) return hu(e[1], e); + for (; t; ) { + let a = null; + if (Xn(t)) a = t[13]; + else { + const v = t[10]; + v && (a = v); + } + if (!a) { + for (; t && !t[4] && t !== e; ) + Xn(t) && hu(t[1], t), (t = t[3]); + null === t && (t = e), Xn(t) && hu(t[1], t), (a = t && t[4]); + } + t = a; + } + })(t); + } + } + function hu(e, t) { + if (!(256 & t[2])) { + (t[2] &= -129), + (t[2] |= 256), + (function (e, t) { + let a; + if (null != e && null != (a = e.destroyHooks)) + for (let v = 0; v < a.length; v += 2) { + const E = t[a[v]]; + if (!(E instanceof rs)) { + const R = a[v + 1]; + if (Array.isArray(R)) + for (let W = 0; W < R.length; W += 2) { + const se = E[R[W]], + ge = R[W + 1]; + Ji(4, se, ge); + try { + ge.call(se); + } finally { + Ji(5, se, ge); + } + } + else { + Ji(4, E, R); + try { + R.call(E); + } finally { + Ji(5, E, R); + } + } + } + } + })(e, t), + (function (e, t) { + const a = e.cleanup, + v = t[7]; + let E = -1; + if (null !== a) + for (let R = 0; R < a.length - 1; R += 2) + if ("string" == typeof a[R]) { + const W = a[R + 1], + se = "function" == typeof W ? W(t) : be(t[W]), + ge = v[(E = a[R + 2])], + De = a[R + 3]; + "boolean" == typeof De + ? se.removeEventListener(a[R], ge, De) + : De >= 0 + ? v[(E = De)]() + : v[(E = -De)].unsubscribe(), + (R += 2); + } else { + const W = v[(E = a[R + 1])]; + a[R].call(W); + } + if (null !== v) { + for (let R = E + 1; R < v.length; R++) v[R](); + t[7] = null; + } + })(e, t), + 1 === t[1].type && si(t[11]) && t[11].destroy(); + const a = t[17]; + if (null !== a && pi(t[3])) { + a !== t[3] && Nh(a, t); + const v = t[19]; + null !== v && v.detachView(e); + } + } + } + function Bh(e, t, a) { + return Vh(e, t.parent, a); + } + function Vh(e, t, a) { + let v = t; + for (; null !== v && 40 & v.type; ) v = (t = v).parent; + if (null === v) return a[0]; + if (2 & v.flags) { + const E = e.data[v.directiveStart].encapsulation; + if (E === ut.None || E === ut.Emulated) return null; + } + return ve(v, a); + } + function Mo(e, t, a, v, E) { + si(e) ? e.insertBefore(t, a, v, E) : t.insertBefore(a, v, E); + } + function $h(e, t, a) { + si(e) ? e.appendChild(t, a) : t.appendChild(a); + } + function Hh(e, t, a, v, E) { + null !== v ? Mo(e, t, a, v, E) : $h(e, t, a); + } + function nl(e, t) { + return si(e) ? e.parentNode(t) : t.parentNode; + } + function jh(e, t, a) { + return zh(e, t, a); + } + function Wh(e, t, a) { + return 40 & e.type ? ve(e, a) : null; + } + let fu, + zh = Wh; + function Kh(e, t) { + (zh = e), (fu = t); + } + function il(e, t, a, v) { + const E = Bh(e, v, t), + R = t[11], + se = jh(v.parent || t[6], v, t); + if (null != E) + if (Array.isArray(a)) + for (let ge = 0; ge < a.length; ge++) Hh(R, E, a[ge], se, !1); + else Hh(R, E, a, se, !1); + void 0 !== fu && fu(R, v, t, a, E); + } + function rl(e, t) { + if (null !== t) { + const a = t.type; + if (3 & a) return ve(t, e); + if (4 & a) return pu(-1, e[t.index]); + if (8 & a) { + const v = t.child; + if (null !== v) return rl(e, v); + { + const E = e[t.index]; + return pi(E) ? pu(-1, E) : be(E); + } + } + if (32 & a) return ou(t, e)() || be(e[t.index]); + { + const v = Gh(e, t); + return null !== v + ? Array.isArray(v) + ? v[0] + : rl(Ea(e[16]), v) + : rl(e, t.next); + } + } + return null; + } + function Gh(e, t) { + return null !== t ? e[16][6].projection[t.projection] : null; + } + function pu(e, t) { + const a = 10 + e + 1; + if (a < t.length) { + const v = t[a], + E = v[1].firstChild; + if (null !== E) return rl(v, E); + } + return t[7]; + } + function Yh(e, t, a) { + const v = nl(e, t); + v && + (function (e, t, a, v) { + si(e) ? e.removeChild(t, a, v) : t.removeChild(a); + })(e, v, t, a); + } + function mu(e, t, a, v, E, R, W) { + for (; null != a; ) { + const se = v[a.index], + ge = a.type; + if ( + (W && 0 === t && (se && Xr(be(se), v), (a.flags |= 4)), + 64 != (64 & a.flags)) + ) + if (8 & ge) mu(e, t, a.child, v, E, R, !1), No(t, e, E, se, R); + else if (32 & ge) { + const De = ou(a, v); + let ke; + for (; (ke = De()); ) No(t, e, E, ke, R); + No(t, e, E, se, R); + } else 16 & ge ? Qh(e, t, v, a, E, R) : No(t, e, E, se, R); + a = W ? a.projectionNext : a.next; + } + } + function wa(e, t, a, v, E, R) { + mu(a, v, e.firstChild, t, E, R, !1); + } + function Qh(e, t, a, v, E, R) { + const W = a[16], + ge = W[6].projection[v.projection]; + if (Array.isArray(ge)) + for (let De = 0; De < ge.length; De++) No(t, e, E, ge[De], R); + else mu(e, t, ge, W[3], E, R, !0); + } + function Xh(e, t, a) { + si(e) ? e.setAttribute(t, "style", a) : (t.style.cssText = a); + } + function gu(e, t, a) { + si(e) + ? "" === a + ? e.removeAttribute(t, "class") + : e.setAttribute(t, "class", a) + : (t.className = a); + } + function Zh(e, t, a) { + let v = e.length; + for (;;) { + const E = e.indexOf(t, a); + if (-1 === E) return E; + if (0 === E || e.charCodeAt(E - 1) <= 32) { + const R = t.length; + if (E + R === v || e.charCodeAt(E + R) <= 32) return E; + } + a = E + 1; + } + } + const qh = "ng-template"; + function z_(e, t, a) { + let v = 0; + for (; v < e.length; ) { + let E = e[v++]; + if (a && "class" === E) { + if (((E = e[v]), -1 !== Zh(E.toLowerCase(), t, 0))) return !0; + } else if (1 === E) { + for (; v < e.length && "string" == typeof (E = e[v++]); ) + if (E.toLowerCase() === t) return !0; + return !1; + } + } + return !1; + } + function Jh(e) { + return 4 === e.type && e.value !== qh; + } + function K_(e, t, a) { + return t === (4 !== e.type || a ? e.value : qh); + } + function G_(e, t, a) { + let v = 4; + const E = e.attrs || [], + R = (function (e) { + for (let t = 0; t < e.length; t++) if (jt(e[t])) return t; + return e.length; + })(E); + let W = !1; + for (let se = 0; se < t.length; se++) { + const ge = t[se]; + if ("number" != typeof ge) { + if (!W) + if (4 & v) { + if ( + ((v = 2 | (1 & v)), + ("" !== ge && !K_(e, ge, a)) || ("" === ge && 1 === t.length)) + ) { + if (Ls(v)) return !1; + W = !0; + } + } else { + const De = 8 & v ? ge : t[++se]; + if (8 & v && null !== e.attrs) { + if (!z_(e.attrs, De, a)) { + if (Ls(v)) return !1; + W = !0; + } + continue; + } + const qe = Y_(8 & v ? "class" : ge, E, Jh(e), a); + if (-1 === qe) { + if (Ls(v)) return !1; + W = !0; + continue; + } + if ("" !== De) { + let Ct; + Ct = qe > R ? "" : E[qe + 1].toLowerCase(); + const Pt = 8 & v ? Ct : null; + if ((Pt && -1 !== Zh(Pt, De, 0)) || (2 & v && De !== Ct)) { + if (Ls(v)) return !1; + W = !0; + } + } + } + } else { + if (!W && !Ls(v) && !Ls(ge)) return !1; + if (W && Ls(ge)) continue; + (W = !1), (v = ge | (1 & v)); + } + } + return Ls(v) || W; + } + function Ls(e) { + return 0 == (1 & e); + } + function Y_(e, t, a, v) { + if (null === t) return -1; + let E = 0; + if (v || !a) { + let R = !1; + for (; E < t.length; ) { + const W = t[E]; + if (W === e) return E; + if (3 === W || 6 === W) R = !0; + else { + if (1 === W || 2 === W) { + let se = t[++E]; + for (; "string" == typeof se; ) se = t[++E]; + continue; + } + if (4 === W) break; + if (0 === W) { + E += 4; + continue; + } + } + E += R ? 1 : 2; + } + return -1; + } + return (function (e, t) { + let a = e.indexOf(4); + if (a > -1) + for (a++; a < e.length; ) { + const v = e[a]; + if ("number" == typeof v) return -1; + if (v === t) return a; + a++; + } + return -1; + })(t, e); + } + function ef(e, t, a = !1) { + for (let v = 0; v < t.length; v++) if (G_(e, t[v], a)) return !0; + return !1; + } + function q_(e, t) { + e: for (let a = 0; a < t.length; a++) { + const v = t[a]; + if (e.length === v.length) { + for (let E = 0; E < e.length; E++) if (e[E] !== v[E]) continue e; + return !0; + } + } + return !1; + } + function tf(e, t) { + return e ? ":not(" + t.trim() + ")" : t; + } + function J_(e) { + let t = e[0], + a = 1, + v = 2, + E = "", + R = !1; + for (; a < e.length; ) { + let W = e[a]; + if ("string" == typeof W) + if (2 & v) { + const se = e[++a]; + E += "[" + W + (se.length > 0 ? '="' + se + '"' : "") + "]"; + } else 8 & v ? (E += "." + W) : 4 & v && (E += " " + W); + else + "" !== E && !Ls(W) && ((t += tf(R, E)), (E = "")), + (v = W), + (R = R || !Ls(v)); + a++; + } + return "" !== E && (t += tf(R, E)), t; + } + const ei = {}; + function nf(e) { + rf(N(), we(), ii() + e, pn()); + } + function rf(e, t, a, v) { + if (!v) + if (3 == (3 & t[2])) { + const R = e.preOrderCheckHooks; + null !== R && _r(t, R, a); + } else { + const R = e.preOrderHooks; + null !== R && ts(t, R, 0, a); + } + Hi(a); + } + function sl(e, t) { + return (e << 17) | (t << 2); + } + function ks(e) { + return (e >> 17) & 32767; + } + function _u(e) { + return 2 | e; + } + function so(e) { + return (131068 & e) >> 2; + } + function vu(e, t) { + return (-131069 & e) | (t << 2); + } + function yu(e) { + return 1 | e; + } + const Tu = (() => Promise.resolve(null))(); + function gf(e, t) { + const a = e.contentQueries; + if (null !== a) + for (let v = 0; v < a.length; v += 2) { + const E = a[v], + R = a[v + 1]; + if (-1 !== R) { + const W = e.data[R]; + zi(E), W.contentQueries(2, t[R], R); + } + } + } + function Ma(e, t, a, v, E, R, W, se, ge, De) { + const ke = t.blueprint.slice(); + return ( + (ke[0] = E), + (ke[2] = 140 | v), + Ei(ke), + (ke[3] = ke[15] = e), + (ke[8] = a), + (ke[10] = W || (e && e[10])), + (ke[11] = se || (e && e[11])), + (ke[12] = ge || (e && e[12]) || null), + (ke[9] = De || (e && e[9]) || null), + (ke[6] = R), + (ke[16] = 2 == t.type ? e[16] : ke), + ke + ); + } + function Uo(e, t, a, v, E) { + let R = e.data[t]; + if (null === R) + (R = xu(e, t, a, v, E)), xn.lFrame.inI18n && (R.flags |= 64); + else if (64 & R.type) { + (R.type = a), (R.value = v), (R.attrs = E); + const W = We(); + R.injectorIndex = null === W ? -1 : W.injectorIndex; + } + return rt(R, !0), R; + } + function xu(e, t, a, v, E) { + const R = Ae(), + W = dt(), + ge = (e.data[t] = (function (e, t, a, v, E, R) { + return { + type: a, + index: v, + insertBeforeIndex: null, + injectorIndex: t ? t.injectorIndex : -1, + directiveStart: -1, + directiveEnd: -1, + directiveStylingLast: -1, + propertyBindings: null, + flags: 0, + providerIndexes: 0, + value: E, + attrs: R, + mergedAttrs: null, + localNames: null, + initialInputs: void 0, + inputs: null, + outputs: null, + tViews: null, + next: null, + projectionNext: null, + child: null, + parent: t, + projection: null, + styles: null, + stylesWithoutHost: null, + residualStyles: void 0, + classes: null, + classesWithoutHost: null, + residualClasses: void 0, + classBindings: 0, + styleBindings: 0, + }; + })(0, W ? R : R && R.parent, a, t, v, E)); + return ( + null === e.firstChild && (e.firstChild = ge), + null !== R && + (W + ? null == R.child && null !== ge.parent && (R.child = ge) + : null === R.next && (R.next = ge)), + ge + ); + } + function Bo(e, t, a, v) { + if (0 === a) return -1; + const E = t.length; + for (let R = 0; R < a; R++) + t.push(v), e.blueprint.push(v), e.data.push(null); + return E; + } + function Sa(e, t, a) { + Yi(t); + try { + const v = e.viewQuery; + null !== v && Nu(1, v, a); + const E = e.template; + null !== E && _f(e, t, E, 1, a), + e.firstCreatePass && (e.firstCreatePass = !1), + e.staticContentQueries && gf(e, t), + e.staticViewQueries && Nu(2, e.viewQuery, a); + const R = e.components; + null !== R && + (function (e, t) { + for (let a = 0; a < t.length; a++) Pv(e, t[a]); + })(t, R); + } catch (v) { + throw ( + (e.firstCreatePass && + ((e.incompleteFirstPass = !0), (e.firstCreatePass = !1)), + v) + ); + } finally { + (t[2] &= -5), Mn(); + } + } + function Vo(e, t, a, v) { + const E = t[2]; + if (256 == (256 & E)) return; + Yi(t); + const R = pn(); + try { + Ei(t), Bn(e.bindingStartIndex), null !== a && _f(e, t, a, 2, v); + const W = 3 == (3 & E); + if (!R) + if (W) { + const De = e.preOrderCheckHooks; + null !== De && _r(t, De, null); + } else { + const De = e.preOrderHooks; + null !== De && ts(t, De, 0, null), Br(t, 0); + } + if ( + ((function (e) { + for (let t = au(e); null !== t; t = lu(t)) { + if (!t[2]) continue; + const a = t[9]; + for (let v = 0; v < a.length; v++) { + const E = a[v], + R = E[3]; + 0 == (1024 & E[2]) && ki(R, 1), (E[2] |= 1024); + } + } + })(t), + (function (e) { + for (let t = au(e); null !== t; t = lu(t)) + for (let a = 10; a < t.length; a++) { + const v = t[a], + E = v[1]; + di(v) && Vo(E, v, E.template, v[8]); + } + })(t), + null !== e.contentQueries && gf(e, t), + !R) + ) + if (W) { + const De = e.contentCheckHooks; + null !== De && _r(t, De); + } else { + const De = e.contentHooks; + null !== De && ts(t, De, 1), Br(t, 1); + } + !(function (e, t) { + const a = e.hostBindingOpCodes; + if (null !== a) + try { + for (let v = 0; v < a.length; v++) { + const E = a[v]; + if (E < 0) Hi(~E); + else { + const R = E, + W = a[++v], + se = a[++v]; + Qi(W, R), se(2, t[R]); + } + } + } finally { + Hi(-1); + } + })(e, t); + const se = e.components; + null !== se && + (function (e, t) { + for (let a = 0; a < t.length; a++) kv(e, t[a]); + })(t, se); + const ge = e.viewQuery; + if ((null !== ge && Nu(2, ge, v), !R)) + if (W) { + const De = e.viewCheckHooks; + null !== De && _r(t, De); + } else { + const De = e.viewHooks; + null !== De && ts(t, De, 2), Br(t, 2); + } + !0 === e.firstUpdatePass && (e.firstUpdatePass = !1), + R || (t[2] &= -73), + 1024 & t[2] && ((t[2] &= -1025), ki(t[3], -1)); + } finally { + Mn(); + } + } + function mv(e, t, a, v) { + const E = t[10], + R = !pn(), + W = ni(t); + try { + R && !W && E.begin && E.begin(), W && Sa(e, t, v), Vo(e, t, a, v); + } finally { + R && !W && E.end && E.end(); + } + } + function _f(e, t, a, v, E) { + const R = ii(), + W = 2 & v; + try { + Hi(-1), + W && t.length > 20 && rf(e, t, 20, pn()), + Ji(W ? 2 : 0, E), + a(v, E); + } finally { + Hi(R), Ji(W ? 3 : 1, E); + } + } + function vf(e, t, a) { + if (Gi(t)) { + const E = t.directiveEnd; + for (let R = t.directiveStart; R < E; R++) { + const W = e.data[R]; + W.contentQueries && W.contentQueries(1, a[R], R); + } + } + } + function Iu(e, t, a) { + !es() || + ((function (e, t, a, v) { + const E = a.directiveStart, + R = a.directiveEnd; + e.firstCreatePass || Dn(a, t), Xr(v, t); + const W = a.initialInputs; + for (let se = E; se < R; se++) { + const ge = e.data[se], + De = bi(ge); + De && Iv(t, a, ge); + const ke = go(t, e, se, a); + Xr(ke, t), + null !== W && Av(0, se - E, ke, ge, 0, W), + De && (In(a.index, t)[8] = ke); + } + })(e, t, a, ve(a, t)), + 128 == (128 & a.flags) && + (function (e, t, a) { + const v = a.directiveStart, + E = a.directiveEnd, + W = a.index, + se = xn.lFrame.currentDirectiveIndex; + try { + Hi(W); + for (let ge = v; ge < E; ge++) { + const De = e.data[ge], + ke = t[ge]; + fr(ge), + (null !== De.hostBindings || + 0 !== De.hostVars || + null !== De.hostAttrs) && + Df(De, ke); + } + } finally { + Hi(-1), fr(se); + } + })(e, t, a)); + } + function Au(e, t, a = ve) { + const v = t.localNames; + if (null !== v) { + let E = t.index + 1; + for (let R = 0; R < v.length; R += 2) { + const W = v[R + 1], + se = -1 === W ? a(t, e) : e[W]; + e[E++] = se; + } + } + } + function yf(e) { + const t = e.tView; + return null === t || t.incompleteFirstPass + ? (e.tView = ll( + 1, + null, + e.template, + e.decls, + e.vars, + e.directiveDefs, + e.pipeDefs, + e.viewQuery, + e.schemas, + e.consts + )) + : t; + } + function ll(e, t, a, v, E, R, W, se, ge, De) { + const ke = 20 + v, + qe = ke + E, + Ct = (function (e, t) { + const a = []; + for (let v = 0; v < t; v++) a.push(v < e ? null : ei); + return a; + })(ke, qe), + Pt = "function" == typeof De ? De() : De; + return (Ct[1] = { + type: e, + blueprint: Ct, + template: a, + queries: null, + viewQuery: se, + declTNode: t, + data: Ct.slice().fill(null, ke), + bindingStartIndex: ke, + expandoStartIndex: qe, + hostBindingOpCodes: null, + firstCreatePass: !0, + firstUpdatePass: !0, + staticViewQueries: !1, + staticContentQueries: !1, + preOrderHooks: null, + preOrderCheckHooks: null, + contentHooks: null, + contentCheckHooks: null, + viewHooks: null, + viewCheckHooks: null, + destroyHooks: null, + cleanup: null, + contentQueries: null, + components: null, + directiveRegistry: "function" == typeof R ? R() : R, + pipeRegistry: "function" == typeof W ? W() : W, + firstChild: null, + schemas: ge, + consts: Pt, + incompleteFirstPass: !1, + }); + } + function Cf(e, t, a) { + if (si(e)) return e.selectRootElement(t, a === ut.ShadowDom); + let v = "string" == typeof t ? e.querySelector(t) : t; + return (v.textContent = ""), v; + } + function Ef(e, t, a, v) { + const E = Rf(t); + null === a + ? E.push(v) + : (E.push(a), e.firstCreatePass && Lf(e).push(v, E.length - 1)); + } + function wf(e, t, a) { + for (let v in e) + if (e.hasOwnProperty(v)) { + const E = e[v]; + (a = null === a ? {} : a).hasOwnProperty(v) + ? a[v].push(t, E) + : (a[v] = [t, E]); + } + return a; + } + function ms(e, t, a, v, E, R, W, se) { + const ge = ve(t, a); + let ke, + De = t.inputs; + !se && null != De && (ke = De[v]) + ? (Ff(e, a, ke, v, E), + Ui(t) && + (function (e, t) { + const a = In(t, e); + 16 & a[2] || (a[2] |= 64); + })(a, t.index)) + : 3 & t.type && + ((v = (function (e) { + return "class" === e + ? "className" + : "for" === e + ? "htmlFor" + : "formaction" === e + ? "formAction" + : "innerHtml" === e + ? "innerHTML" + : "readonly" === e + ? "readOnly" + : "tabindex" === e + ? "tabIndex" + : e; + })(v)), + (E = null != W ? W(E, t.value || "", v) : E), + si(R) + ? R.setProperty(ge, v, E) + : ln(v) || (ge.setProperty ? ge.setProperty(v, E) : (ge[v] = E))); + } + function Ou(e, t, a, v) { + let E = !1; + if (es()) { + const R = (function (e, t, a) { + const v = e.directiveRegistry; + let E = null; + if (v) + for (let R = 0; R < v.length; R++) { + const W = v[R]; + ef(a, W.selectors, !1) && + (E || (E = []), + Gr(Dn(a, t), e, W.type), + bi(W) ? (Tf(e, a), E.unshift(W)) : E.push(W)); + } + return E; + })(e, t, a), + W = null === v ? null : { "": -1 }; + if (null !== R) { + (E = !0), xf(a, e.data.length, R.length); + for (let ke = 0; ke < R.length; ke++) { + const qe = R[ke]; + qe.providersResolver && qe.providersResolver(qe); + } + let se = !1, + ge = !1, + De = Bo(e, t, R.length, null); + for (let ke = 0; ke < R.length; ke++) { + const qe = R[ke]; + (a.mergedAttrs = Hn(a.mergedAttrs, qe.hostAttrs)), + If(e, a, t, De, qe), + xv(De, qe, W), + null !== qe.contentQueries && (a.flags |= 8), + (null !== qe.hostBindings || + null !== qe.hostAttrs || + 0 !== qe.hostVars) && + (a.flags |= 128); + const Ct = qe.type.prototype; + !se && + (Ct.ngOnChanges || Ct.ngOnInit || Ct.ngDoCheck) && + ((e.preOrderHooks || (e.preOrderHooks = [])).push(a.index), + (se = !0)), + !ge && + (Ct.ngOnChanges || Ct.ngDoCheck) && + ((e.preOrderCheckHooks || (e.preOrderCheckHooks = [])).push( + a.index + ), + (ge = !0)), + De++; + } + !(function (e, t) { + const v = t.directiveEnd, + E = e.data, + R = t.attrs, + W = []; + let se = null, + ge = null; + for (let De = t.directiveStart; De < v; De++) { + const ke = E[De], + qe = ke.inputs, + Ct = null === R || Jh(t) ? null : Ov(qe, R); + W.push(Ct), + (se = wf(qe, De, se)), + (ge = wf(ke.outputs, De, ge)); + } + null !== se && + (se.hasOwnProperty("class") && (t.flags |= 16), + se.hasOwnProperty("style") && (t.flags |= 32)), + (t.initialInputs = W), + (t.inputs = se), + (t.outputs = ge); + })(e, a); + } + W && + (function (e, t, a) { + if (t) { + const v = (e.localNames = []); + for (let E = 0; E < t.length; E += 2) { + const R = a[t[E + 1]]; + if (null == R) + throw new b( + "301", + `Export of name '${t[E + 1]}' not found!` + ); + v.push(t[E], R); + } + } + })(a, v, W); + } + return (a.mergedAttrs = Hn(a.mergedAttrs, a.attrs)), E; + } + function Sf(e, t, a, v, E, R) { + const W = R.hostBindings; + if (W) { + let se = e.hostBindingOpCodes; + null === se && (se = e.hostBindingOpCodes = []); + const ge = ~t.index; + (function (e) { + let t = e.length; + for (; t > 0; ) { + const a = e[--t]; + if ("number" == typeof a && a < 0) return a; + } + return 0; + })(se) != ge && se.push(ge), + se.push(v, E, W); + } + } + function Df(e, t) { + null !== e.hostBindings && e.hostBindings(1, t); + } + function Tf(e, t) { + (t.flags |= 2), (e.components || (e.components = [])).push(t.index); + } + function xv(e, t, a) { + if (a) { + if (t.exportAs) + for (let v = 0; v < t.exportAs.length; v++) a[t.exportAs[v]] = e; + bi(t) && (a[""] = e); + } + } + function xf(e, t, a) { + (e.flags |= 1), + (e.directiveStart = t), + (e.directiveEnd = t + a), + (e.providerIndexes = t); + } + function If(e, t, a, v, E) { + e.data[v] = E; + const R = E.factory || (E.factory = ir(E.type)), + W = new rs(R, bi(E), null); + (e.blueprint[v] = W), + (a[v] = W), + Sf(e, t, 0, v, Bo(e, a, E.hostVars, ei), E); + } + function Iv(e, t, a) { + const v = ve(t, e), + E = yf(a), + R = e[10], + W = ul( + e, + Ma( + e, + E, + null, + a.onPush ? 64 : 16, + v, + t, + R, + R.createRenderer(v, a), + null, + null + ) + ); + e[t.index] = W; + } + function Gs(e, t, a, v, E, R) { + const W = ve(e, t); + Ru(t[11], W, R, e.value, a, v, E); + } + function Ru(e, t, a, v, E, R, W) { + if (null == R) + si(e) ? e.removeAttribute(t, E, a) : t.removeAttribute(E); + else { + const se = null == W ? T(R) : W(R, v || "", E); + si(e) + ? e.setAttribute(t, E, se, a) + : a + ? t.setAttributeNS(a, E, se) + : t.setAttribute(E, se); + } + } + function Av(e, t, a, v, E, R) { + const W = R[t]; + if (null !== W) { + const se = v.setInput; + for (let ge = 0; ge < W.length; ) { + const De = W[ge++], + ke = W[ge++], + qe = W[ge++]; + null !== se ? v.setInput(a, qe, De, ke) : (a[ke] = qe); + } + } + } + function Ov(e, t) { + let a = null, + v = 0; + for (; v < t.length; ) { + const E = t[v]; + if (0 !== E) + if (5 !== E) { + if ("number" == typeof E) break; + e.hasOwnProperty(E) && + (null === a && (a = []), a.push(E, e[E], t[v + 1])), + (v += 2); + } else v += 2; + else v += 4; + } + return a; + } + function Af(e, t, a, v) { + return new Array(e, !0, !1, t, null, 0, v, a, null, null); + } + function kv(e, t) { + const a = In(t, e); + if (di(a)) { + const v = a[1]; + 80 & a[2] ? Vo(v, a, v.template, a[8]) : a[5] > 0 && Lu(a); + } + } + function Lu(e) { + for (let v = au(e); null !== v; v = lu(v)) + for (let E = 10; E < v.length; E++) { + const R = v[E]; + if (1024 & R[2]) { + const W = R[1]; + Vo(W, R, W.template, R[8]); + } else R[5] > 0 && Lu(R); + } + const a = e[1].components; + if (null !== a) + for (let v = 0; v < a.length; v++) { + const E = In(a[v], e); + di(E) && E[5] > 0 && Lu(E); + } + } + function Pv(e, t) { + const a = In(t, e), + v = a[1]; + (function (e, t) { + for (let a = t.length; a < e.blueprint.length; a++) + t.push(e.blueprint[a]); + })(v, a), + Sa(v, a, a[8]); + } + function ul(e, t) { + return e[13] ? (e[14][4] = t) : (e[13] = t), (e[14] = t), t; + } + function ku(e) { + for (; e; ) { + e[2] |= 64; + const t = Ea(e); + if (Rn(e) && !t) return e; + e = t; + } + return null; + } + function Pu(e) { + for (let t = 0; t < e.components.length; t++) { + const a = e.components[t], + v = nu(a), + E = v[1]; + mv(E, v, E.template, a); + } + } + function Fu(e, t, a) { + const v = t[10]; + v.begin && v.begin(); + try { + Vo(e, t, e.template, a); + } catch (E) { + throw (Pf(t, E), E); + } finally { + v.end && v.end(); + } + } + function Of(e) { + Pu(e[8]); + } + function Nu(e, t, a) { + zi(0), t(e, a); + } + const Vv = Tu; + function Rf(e) { + return e[7] || (e[7] = []); + } + function Lf(e) { + return e.cleanup || (e.cleanup = []); + } + function kf(e, t, a) { + return ( + (null === e || bi(e)) && + (a = (function (e) { + for (; Array.isArray(e); ) { + if ("object" == typeof e[1]) return e; + e = e[0]; + } + return null; + })(a[t.index])), + a[11] + ); + } + function Pf(e, t) { + const a = e[9], + v = a ? a.get(Ca, null) : null; + v && v.handleError(t); + } + function Ff(e, t, a, v, E) { + for (let R = 0; R < a.length; ) { + const W = a[R++], + se = a[R++], + ge = t[W], + De = e.data[W]; + null !== De.setInput ? De.setInput(ge, E, v, se) : (ge[se] = E); + } + } + function oo(e, t, a) { + const v = V(t, e); + Fh(e[11], v, a); + } + function cl(e, t, a) { + let v = a ? e.styles : null, + E = a ? e.classes : null, + R = 0; + if (null !== t) + for (let W = 0; W < t.length; W++) { + const se = t[W]; + "number" == typeof se + ? (R = se) + : 1 == R + ? (E = r(E, se)) + : 2 == R && (v = r(v, se + ": " + t[++W] + ";")); + } + a ? (e.styles = v) : (e.stylesWithoutHost = v), + a ? (e.classes = E) : (e.classesWithoutHost = E); + } + function Nf(e) { + const t = yh(e); + Fu(t[1], t, e); + } + function Uf(e) { + !(function (e, t) { + if (0 === e.flags && e.clean == Tu) { + let v; + (e.flags |= 1), + (e.clean = new Promise((E) => (v = E))), + e.scheduler(() => { + if ((1 & e.flags && ((e.flags &= -2), Pu(e)), 2 & e.flags)) { + e.flags &= -3; + const E = e.playerHandler; + E && E.flushPlayers(); + } + (e.clean = Tu), v(null); + }); + } + })(ku(yh(e))[8]); + } + const dl = new lr("INJECTOR", -1); + class Bf { + get(t, a = hn) { + if (a === hn) { + const v = new Error(`NullInjectorError: No provider for ${h(t)}!`); + throw ((v.name = "NullInjectorError"), v); + } + return a; + } + } + const Uu = new lr("Set Injector scope."), + Da = {}, + $v = {}; + let Bu; + function Vf() { + return void 0 === Bu && (Bu = new Bf()), Bu; + } + function Vu(e, t = null, a = null, v) { + const E = $f(e, t, a, v); + return E._resolveInjectorDefTypes(), E; + } + function $f(e, t = null, a = null, v) { + return new Hv(e, a, t || Vf(), v); + } + class Hv { + constructor(t, a, v, E = null) { + (this.parent = v), + (this.records = new Map()), + (this.injectorDefTypes = new Set()), + (this.onDestroy = new Set()), + (this._destroyed = !1); + const R = []; + a && xs(a, (se) => this.processProvider(se, t, a)), + xs([t], (se) => this.processInjectorType(se, [], R)), + this.records.set(dl, $o(void 0, this)); + const W = this.records.get(Uu); + (this.scope = null != W ? W.value : null), + (this.source = E || ("object" == typeof t ? null : h(t))); + } + get destroyed() { + return this._destroyed; + } + destroy() { + this.assertNotDestroyed(), (this._destroyed = !0); + try { + this.onDestroy.forEach((t) => t.ngOnDestroy()); + } finally { + this.records.clear(), + this.onDestroy.clear(), + this.injectorDefTypes.clear(); + } + } + get(t, a = hn, v = Ee.Default) { + this.assertNotDestroyed(); + const E = wi(this), + R = D(void 0); + try { + if (!(v & Ee.SkipSelf)) { + let se = this.records.get(t); + if (void 0 === se) { + const ge = + ("function" == typeof (e = t) || + ("object" == typeof e && e instanceof lr)) && + ft(t); + (se = + ge && this.injectableDefInScope(ge) ? $o($u(t), Da) : null), + this.records.set(t, se); + } + if (null != se) return this.hydrate(t, se); + } + return (v & Ee.Self ? Vf() : this.parent).get( + t, + (a = v & Ee.Optional && a === hn ? null : a) + ); + } catch (W) { + if ("NullInjectorError" === W.name) { + if (((W[Nn] = W[Nn] || []).unshift(h(t)), E)) throw W; + return (function (e, t, a, v) { + const E = e[Nn]; + throw ( + (t[Ai] && E.unshift(t[Ai]), + (e.message = (function (e, t, a, v = null) { + e = + e && "\n" === e.charAt(0) && "\u0275" == e.charAt(1) + ? e.substr(2) + : e; + let E = h(t); + if (Array.isArray(t)) E = t.map(h).join(" -> "); + else if ("object" == typeof t) { + let R = []; + for (let W in t) + if (t.hasOwnProperty(W)) { + let se = t[W]; + R.push( + W + + ":" + + ("string" == typeof se + ? JSON.stringify(se) + : h(se)) + ); + } + E = `{${R.join(", ")}}`; + } + return `${a}${v ? "(" + v + ")" : ""}[${E}]: ${e.replace( + Ci, + "\n " + )}`; + })("\n" + e.message, E, a, v)), + (e.ngTokenPath = E), + (e[Nn] = null), + e) + ); + })(W, t, "R3InjectorError", this.source); + } + throw W; + } finally { + D(R), wi(E); + } + var e; + } + _resolveInjectorDefTypes() { + this.injectorDefTypes.forEach((t) => this.get(t)); + } + toString() { + const t = []; + return ( + this.records.forEach((v, E) => t.push(h(E))), + `R3Injector[${t.join(", ")}]` + ); + } + assertNotDestroyed() { + if (this._destroyed) + throw new Error("Injector has already been destroyed."); + } + processInjectorType(t, a, v) { + if (!(t = c(t))) return !1; + let E = _t(t); + const R = (null == E && t.ngModule) || void 0, + W = void 0 === R ? t : R, + se = -1 !== v.indexOf(W); + if ((void 0 !== R && (E = _t(R)), null == E)) return !1; + if (null != E.imports && !se) { + let ke; + v.push(W); + try { + xs(E.imports, (qe) => { + this.processInjectorType(qe, a, v) && + (void 0 === ke && (ke = []), ke.push(qe)); + }); + } finally { + } + if (void 0 !== ke) + for (let qe = 0; qe < ke.length; qe++) { + const { ngModule: Ct, providers: Pt } = ke[qe]; + xs(Pt, (Yt) => this.processProvider(Yt, Ct, Pt || Qe)); + } + } + this.injectorDefTypes.add(W); + const ge = ir(W) || (() => new W()); + this.records.set(W, $o(ge, Da)); + const De = E.providers; + if (null != De && !se) { + const ke = t; + xs(De, (qe) => this.processProvider(qe, ke, De)); + } + return void 0 !== R && void 0 !== t.providers; + } + processProvider(t, a, v) { + let E = Ho((t = c(t))) ? t : c(t && t.provide); + const R = ((e = t), jf(e) ? $o(void 0, e.useValue) : $o(Hf(e), Da)); + var e; + if (Ho(t) || !0 !== t.multi) this.records.get(E); + else { + let W = this.records.get(E); + W || + ((W = $o(void 0, Da, !0)), + (W.factory = () => ri(W.multi)), + this.records.set(E, W)), + (E = t), + W.multi.push(t); + } + this.records.set(E, R); + } + hydrate(t, a) { + return ( + a.value === Da && ((a.value = $v), (a.value = a.factory())), + "object" == typeof a.value && + a.value && + null !== (e = a.value) && + "object" == typeof e && + "function" == typeof e.ngOnDestroy && + this.onDestroy.add(a.value), + a.value + ); + var e; + } + injectableDefInScope(t) { + if (!t.providedIn) return !1; + const a = c(t.providedIn); + return "string" == typeof a + ? "any" === a || a === this.scope + : this.injectorDefTypes.has(a); + } + } + function $u(e) { + const t = ft(e), + a = null !== t ? t.factory : ir(e); + if (null !== a) return a; + if (e instanceof lr) + throw new Error(`Token ${h(e)} is missing a \u0275prov definition.`); + if (e instanceof Function) + return (function (e) { + const t = e.length; + if (t > 0) { + const v = ho(t, "?"); + throw new Error( + `Can't resolve all parameters for ${h(e)}: (${v.join(", ")}).` + ); + } + const a = (function (e) { + const t = e && (e[At] || e[Bt]); + if (t) { + const a = (function (e) { + if (e.hasOwnProperty("name")) return e.name; + const t = ("" + e).match(/^function\s*([^\s(]+)/); + return null === t ? "" : t[1]; + })(e); + return ( + console.warn( + `DEPRECATED: DI is instantiating a token "${a}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${a}" class.` + ), + t + ); + } + return null; + })(e); + return null !== a ? () => a.factory(e) : () => new e(); + })(e); + throw new Error("unreachable"); + } + function Hf(e, t, a) { + let v; + if (Ho(e)) { + const E = c(e); + return ir(E) || $u(E); + } + if (jf(e)) v = () => c(e.useValue); + else if ( + (function (e) { + return !(!e || !e.useFactory); + })(e) + ) + v = () => e.useFactory(...ri(e.deps || [])); + else if ( + (function (e) { + return !(!e || !e.useExisting); + })(e) + ) + v = () => Cn(c(e.useExisting)); + else { + const E = c(e && (e.useClass || e.provide)); + if ( + !(function (e) { + return !!e.deps; + })(e) + ) + return ir(E) || $u(E); + v = () => new E(...ri(e.deps)); + } + return v; + } + function $o(e, t, a = !1) { + return { factory: e, value: t, multi: a ? [] : void 0 }; + } + function jf(e) { + return null !== e && "object" == typeof e && gi in e; + } + function Ho(e) { + return "function" == typeof e; + } + let gs = (() => { + class e { + static create(a, v) { + var E; + if (Array.isArray(a)) return Vu({ name: "" }, v, a, ""); + { + const R = null !== (E = a.name) && void 0 !== E ? E : ""; + return Vu({ name: R }, a.parent, a.providers, R); + } + } + } + return ( + (e.THROW_IF_NOT_FOUND = hn), + (e.NULL = new Bf()), + (e.ɵprov = Ue({ + token: e, + providedIn: "any", + factory: () => Cn(dl), + })), + (e.__NG_ELEMENT_ID__ = -1), + e + ); + })(); + function Hu(e) { + Wu(e); + const t = Qr(e); + return null === t + ? null + : (void 0 === t.component && + (t.component = (function (e, t) { + const a = t[1].data[e]; + return 2 & a.flags ? t[a.directiveStart] : null; + })(t.nodeIndex, t.lView)), + t.component); + } + function Wf(e) { + Wu(e); + const t = Qr(e); + return null === t ? null : t.lView[8]; + } + function zf(e) { + const t = Qr(e); + if (null === t) return null; + let v, + a = t.lView; + for (; 2 === a[1].type && (v = Ea(a)); ) a = v; + return 512 & a[2] ? null : a[8]; + } + function Kf(e) { + return [...kh(e).components]; + } + function Gf(e) { + const t = Qr(e); + return null === t + ? gs.NULL + : new lo(t.lView[1].data[t.nodeIndex], t.lView); + } + function Yf(e) { + if (e instanceof Text) return []; + const t = Qr(e); + if (null === t) return []; + const a = t.lView, + v = a[1], + E = t.nodeIndex; + return (null == v ? void 0 : v.data[E]) + ? (void 0 === t.directives && (t.directives = wh(E, a, !1)), + null === t.directives ? [] : [...t.directives]) + : []; + } + function qv(e) { + const { constructor: t } = e; + if (!t) throw new Error("Unable to find the instance constructor"); + const a = Ot(t); + if (a) + return { + inputs: a.inputs, + outputs: a.outputs, + encapsulation: a.encapsulation, + changeDetection: a.onPush ? Be.OnPush : Be.Default, + }; + const v = un(t); + return v ? { inputs: v.inputs, outputs: v.outputs } : null; + } + function ju(e) { + return Qr(e).native; + } + function Qf(e) { + Wu(e); + const t = Qr(e); + if (null === t) return []; + const a = t.lView, + E = a[7], + R = a[1].cleanup, + W = []; + if (R && E) + for (let se = 0; se < R.length; ) { + const ge = R[se++], + De = R[se++]; + if ("string" == typeof ge) { + const ke = ge, + qe = be(a[De]), + Ct = E[R[se++]], + Pt = R[se++], + Yt = "boolean" == typeof Pt || Pt >= 0 ? "dom" : "output", + sn = "boolean" == typeof Pt && Pt; + e == qe && + W.push({ + element: e, + name: ke, + callback: Ct, + useCapture: sn, + type: Yt, + }); + } + } + return W.sort(ey), W; + } + function ey(e, t) { + return e.name == t.name ? 0 : e.name < t.name ? -1 : 1; + } + function ty(e) { + return ( + void 0 !== e.type && + void 0 !== e.template && + void 0 !== e.declaredInputs + ); + } + function Wu(e) { + if ("undefined" != typeof Element && !(e instanceof Element)) + throw new Error("Expecting instance of DOM Element"); + } + function ny(e) { + Uf(e), Kf(e).forEach((t) => Nf(t)); + } + let Zf = !1; + function iy() { + Zf || + ((Zf = !0), + As("\u0275setProfiler", Lr), + As("getDirectiveMetadata", qv), + As("getComponent", Hu), + As("getContext", Wf), + As("getListeners", Qf), + As("getOwningComponent", zf), + As("getHostElement", ju), + As("getInjector", Gf), + As("getRootComponents", Kf), + As("getDirectives", Yf), + As("applyChanges", ny)); + } + function As(e, t) { + if ("undefined" == typeof COMPILED || !COMPILED) { + const a = Kt; + if (a) { + let v = a.ng; + v || (v = a.ng = {}), (v[e] = t); + } + } + } + function ry(e, t = {}) { + const a = t.rendererFactory || zr, + v = t.sanitizer || null, + E = Ot(e); + E.type != e && (E.type = e); + const R = E.selectors[0][0], + se = Cf(a.createRenderer(null, null), t.host || R, E.encapsulation), + ge = E.onPush ? 576 : 528, + De = ep(t.scheduler, t.playerHandler), + ke = a.createRenderer(se, E), + qe = ll(0, null, null, 1, 0, null, null, null, null, null), + Ct = Ma( + null, + qe, + De, + ge, + null, + null, + a, + ke, + null, + t.injector || null + ); + let Pt; + Yi(Ct); + try { + a.begin && a.begin(), + (Pt = Jf( + qf(se, E, Ct, a, ke, v), + E, + Ct, + De, + t.hostFeatures || null + )), + Sa(qe, Ct, null), + Vo(qe, Ct, null, null); + } finally { + Mn(), a.end && a.end(); + } + return Pt; + } + function qf(e, t, a, v, E, R) { + const W = a[1]; + a[20] = e; + const ge = Uo(W, 20, 2, "#host", null), + De = (ge.mergedAttrs = t.hostAttrs); + null !== De && + (cl(ge, De, !0), + null !== e && + (Mt(E, e, De), + null !== ge.classes && gu(E, e, ge.classes), + null !== ge.styles && Xh(E, e, ge.styles))); + const ke = v.createRenderer(e, t), + qe = Ma( + a, + yf(t), + null, + t.onPush ? 64 : 16, + a[20], + ge, + v, + ke, + R || null, + null + ); + return ( + W.firstCreatePass && + (Gr(Dn(ge, a), W, t.type), Tf(W, ge), xf(ge, a.length, 1)), + ul(a, qe), + (a[20] = qe) + ); + } + function Jf(e, t, a, v, E) { + const R = a[1], + W = (function (e, t, a) { + const v = pe(); + e.firstCreatePass && + (a.providersResolver && a.providersResolver(a), + If(e, v, t, Bo(e, t, 1, null), a)); + const E = go(t, e, v.directiveStart, v); + Xr(E, t); + const R = ve(v, t); + return R && Xr(R, t), E; + })(R, a, t); + if ( + (v.components.push(W), + (e[8] = W), + E && E.forEach((ge) => ge(W, t)), + t.contentQueries) + ) { + const ge = pe(); + t.contentQueries(1, W, ge.directiveStart); + } + const se = pe(); + return ( + !R.firstCreatePass || + (null === t.hostBindings && null === t.hostAttrs) || + (Hi(se.index), + Sf(a[1], se, 0, se.directiveStart, se.directiveEnd, t), + Df(t, W)), + W + ); + } + function ep(e, t) { + return { + components: [], + scheduler: e || Th, + clean: Vv, + playerHandler: t || null, + flags: 0, + }; + } + function tp(e, t) { + Ir(nu(e)[1], pe()); + } + function sy(e) { + return kh(e).clean; + } + function np(e) { + return Object.getPrototypeOf(e.prototype).constructor; + } + function zu(e) { + let t = np(e.type), + a = !0; + const v = [e]; + for (; t; ) { + let E; + if (bi(e)) E = t.ɵcmp || t.ɵdir; + else { + if (t.ɵcmp) throw new Error("Directives cannot inherit Components"); + E = t.ɵdir; + } + if (E) { + if (a) { + v.push(E); + const W = e; + (W.inputs = Ku(e.inputs)), + (W.declaredInputs = Ku(e.declaredInputs)), + (W.outputs = Ku(e.outputs)); + const se = E.hostBindings; + se && uy(e, se); + const ge = E.viewQuery, + De = E.contentQueries; + if ( + (ge && ay(e, ge), + De && ly(e, De), + u(e.inputs, E.inputs), + u(e.declaredInputs, E.declaredInputs), + u(e.outputs, E.outputs), + bi(E) && E.data.animation) + ) { + const ke = e.data; + ke.animation = (ke.animation || []).concat(E.data.animation); + } + } + const R = E.features; + if (R) + for (let W = 0; W < R.length; W++) { + const se = R[W]; + se && se.ngInherit && se(e), se === zu && (a = !1); + } + } + t = Object.getPrototypeOf(t); + } + !(function (e) { + let t = 0, + a = null; + for (let v = e.length - 1; v >= 0; v--) { + const E = e[v]; + (E.hostVars = t += E.hostVars), + (E.hostAttrs = Hn(E.hostAttrs, (a = Hn(a, E.hostAttrs)))); + } + })(v); + } + function Ku(e) { + return e === Lt ? {} : e === Qe ? [] : e; + } + function ay(e, t) { + const a = e.viewQuery; + e.viewQuery = a + ? (v, E) => { + t(v, E), a(v, E); + } + : t; + } + function ly(e, t) { + const a = e.contentQueries; + e.contentQueries = a + ? (v, E, R) => { + t(v, E, R), a(v, E, R); + } + : t; + } + function uy(e, t) { + const a = e.hostBindings; + e.hostBindings = a + ? (v, E) => { + t(v, E), a(v, E); + } + : t; + } + const cy = ["providersResolver"], + dy = [ + "template", + "decls", + "consts", + "vars", + "onPush", + "ngContentSelectors", + "styles", + "encapsulation", + "schemas", + ]; + function ip(e) { + let a, + t = np(e.type); + a = bi(e) ? t.ɵcmp : t.ɵdir; + const v = e; + for (const E of cy) v[E] = a[E]; + if (bi(a)) for (const E of dy) v[E] = a[E]; + } + let hl = null; + function jo() { + if (!hl) { + const e = Kt.Symbol; + if (e && e.iterator) hl = e.iterator; + else { + const t = Object.getOwnPropertyNames(Map.prototype); + for (let a = 0; a < t.length; ++a) { + const v = t[a]; + "entries" !== v && + "size" !== v && + Map.prototype[v] === Map.prototype.entries && + (hl = v); + } + } + } + return hl; + } + function rp(e, t) { + const a = Ta(e), + v = Ta(t); + return a && v + ? (function (e, t, a) { + const v = e[jo()](), + E = t[jo()](); + for (;;) { + const R = v.next(), + W = E.next(); + if (R.done && W.done) return !0; + if (R.done || W.done || !a(R.value, W.value)) return !1; + } + })(e, t, rp) + : !( + a || + !e || + ("object" != typeof e && "function" != typeof e) || + v || + !t || + ("object" != typeof t && "function" != typeof t) + ) || Object.is(e, t); + } + function Ta(e) { + return ( + !!Gu(e) && (Array.isArray(e) || (!(e instanceof Map) && jo() in e)) + ); + } + function Gu(e) { + return null !== e && ("function" == typeof e || "object" == typeof e); + } + function Ys(e, t, a) { + return (e[t] = a); + } + function xa(e, t) { + return e[t]; + } + function Zr(e, t, a) { + return !Object.is(e[t], a) && ((e[t] = a), !0); + } + function So(e, t, a, v) { + const E = Zr(e, t, a); + return Zr(e, t + 1, v) || E; + } + function fl(e, t, a, v, E) { + const R = So(e, t, a, v); + return Zr(e, t + 2, E) || R; + } + function Os(e, t, a, v, E, R) { + const W = So(e, t, a, v); + return So(e, t + 2, E, R) || W; + } + function Yu(e, t, a, v) { + const E = we(); + return Zr(E, Kn(), t) && (N(), Gs(Zn(), E, e, t, a, v)), Yu; + } + function Wo(e, t) { + let a = !1, + v = _n(); + for (let R = 1; R < t.length; R += 2) a = Zr(e, v++, t[R]) || a; + if ((Bn(v), !a)) return ei; + let E = t[0]; + for (let R = 1; R < t.length; R += 2) E += T(t[R]) + t[R + 1]; + return E; + } + function zo(e, t, a, v) { + return Zr(e, Kn(), a) ? t + T(a) + v : ei; + } + function Ko(e, t, a, v, E, R) { + const se = So(e, _n(), a, E); + return _i(2), se ? t + T(a) + v + T(E) + R : ei; + } + function Go(e, t, a, v, E, R, W, se) { + const De = fl(e, _n(), a, E, W); + return _i(3), De ? t + T(a) + v + T(E) + R + T(W) + se : ei; + } + function Yo(e, t, a, v, E, R, W, se, ge, De) { + const qe = Os(e, _n(), a, E, W, ge); + return ( + _i(4), qe ? t + T(a) + v + T(E) + R + T(W) + se + T(ge) + De : ei + ); + } + function Qo(e, t, a, v, E, R, W, se, ge, De, ke, qe) { + const Ct = _n(); + let Pt = Os(e, Ct, a, E, W, ge); + return ( + (Pt = Zr(e, Ct + 4, ke) || Pt), + _i(5), + Pt + ? t + T(a) + v + T(E) + R + T(W) + se + T(ge) + De + T(ke) + qe + : ei + ); + } + function Xo(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt) { + const Yt = _n(); + let sn = Os(e, Yt, a, E, W, ge); + return ( + (sn = So(e, Yt + 4, ke, Ct) || sn), + _i(6), + sn + ? t + + T(a) + + v + + T(E) + + R + + T(W) + + se + + T(ge) + + De + + T(ke) + + qe + + T(Ct) + + Pt + : ei + ); + } + function Zo(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn) { + const dn = _n(); + let wn = Os(e, dn, a, E, W, ge); + return ( + (wn = fl(e, dn + 4, ke, Ct, Yt) || wn), + _i(7), + wn + ? t + + T(a) + + v + + T(E) + + R + + T(W) + + se + + T(ge) + + De + + T(ke) + + qe + + T(Ct) + + Pt + + T(Yt) + + sn + : ei + ); + } + function qo( + e, + t, + a, + v, + E, + R, + W, + se, + ge, + De, + ke, + qe, + Ct, + Pt, + Yt, + sn, + dn, + wn + ) { + const Jt = _n(); + let Un = Os(e, Jt, a, E, W, ge); + return ( + (Un = Os(e, Jt + 4, ke, Ct, Yt, dn) || Un), + _i(8), + Un + ? t + + T(a) + + v + + T(E) + + R + + T(W) + + se + + T(ge) + + De + + T(ke) + + qe + + T(Ct) + + Pt + + T(Yt) + + sn + + T(dn) + + wn + : ei + ); + } + function Qu(e, t, a, v, E, R) { + const W = we(), + se = zo(W, t, a, v); + return se !== ei && Gs(Zn(), W, e, se, E, R), Qu; + } + function Xu(e, t, a, v, E, R, W, se) { + const ge = we(), + De = Ko(ge, t, a, v, E, R); + return De !== ei && Gs(Zn(), ge, e, De, W, se), Xu; + } + function Zu(e, t, a, v, E, R, W, se, ge, De) { + const ke = we(), + qe = Go(ke, t, a, v, E, R, W, se); + return qe !== ei && Gs(Zn(), ke, e, qe, ge, De), Zu; + } + function qu(e, t, a, v, E, R, W, se, ge, De, ke, qe) { + const Ct = we(), + Pt = Yo(Ct, t, a, v, E, R, W, se, ge, De); + return Pt !== ei && Gs(Zn(), Ct, e, Pt, ke, qe), qu; + } + function Ju(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt) { + const Yt = we(), + sn = Qo(Yt, t, a, v, E, R, W, se, ge, De, ke, qe); + return sn !== ei && Gs(Zn(), Yt, e, sn, Ct, Pt), Ju; + } + function ec(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn) { + const dn = we(), + wn = Xo(dn, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt); + return wn !== ei && Gs(Zn(), dn, e, wn, Yt, sn), ec; + } + function tc( + e, + t, + a, + v, + E, + R, + W, + se, + ge, + De, + ke, + qe, + Ct, + Pt, + Yt, + sn, + dn, + wn + ) { + const Jt = we(), + Un = Zo(Jt, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn); + return Un !== ei && Gs(Zn(), Jt, e, Un, dn, wn), tc; + } + function nc( + e, + t, + a, + v, + E, + R, + W, + se, + ge, + De, + ke, + qe, + Ct, + Pt, + Yt, + sn, + dn, + wn, + Jt, + Un + ) { + const yi = we(), + Bi = qo( + yi, + t, + a, + v, + E, + R, + W, + se, + ge, + De, + ke, + qe, + Ct, + Pt, + Yt, + sn, + dn, + wn + ); + return Bi !== ei && Gs(Zn(), yi, e, Bi, Jt, Un), nc; + } + function ic(e, t, a, v) { + const E = we(), + R = Wo(E, t); + return R !== ei && Gs(Zn(), E, e, R, a, v), ic; + } + function sp(e, t, a, v, E, R, W, se) { + const ge = we(), + De = N(), + ke = e + 20, + qe = De.firstCreatePass + ? (function (e, t, a, v, E, R, W, se, ge) { + const De = t.consts, + ke = Uo(t, e, 4, W || null, hi(De, se)); + Ou(t, a, ke, hi(De, ge)), Ir(t, ke); + const qe = (ke.tViews = ll( + 2, + ke, + v, + E, + R, + t.directiveRegistry, + t.pipeRegistry, + null, + t.schemas, + De + )); + return ( + null !== t.queries && + (t.queries.template(t, ke), + (qe.queries = t.queries.embeddedTView(ke))), + ke + ); + })(ke, De, ge, t, a, v, E, R, W) + : De.data[ke]; + rt(qe, !1); + const Ct = ge[11].createComment(""); + il(De, ge, Ct, qe), + Xr(Ct, ge), + ul(ge, (ge[ke] = Af(Ct, ge, Ct, qe))), + tr(qe) && Iu(De, ge, qe), + null != W && Au(ge, qe, se); + } + function op(e, t, a, v) { + a >= e.data.length && ((e.data[a] = null), (e.blueprint[a] = null)), + (t[a] = v); + } + function ap(e) { + return nn(xn.lFrame.contextLView, 20 + e); + } + const lp = { + ɵɵdefineInjectable: Ue, + ɵɵdefineInjector: at, + ɵɵinject: Cn, + ɵɵinvalidFactoryDep: Pi, + resolveForwardRef: c, + }; + const gy = d({ provide: String, useValue: d }); + function up(e) { + return void 0 !== e.useClass; + } + function cp(e) { + return void 0 !== e.useFactory; + } + const by = Ts("Injectable", void 0, void 0, void 0, (e, t) => + (function (e, t) { + let a = null, + v = null; + e.hasOwnProperty(At) || + Object.defineProperty(e, At, { + get: () => ( + null === a && + (a = yr().compileInjectable( + lp, + `ng:///${e.name}/\u0275prov.js`, + (function (e, t) { + const a = t || { providedIn: null }, + v = { + name: e.name, + type: e, + typeArgumentCount: 0, + providedIn: a.providedIn, + }; + return ( + (up(a) || cp(a)) && + void 0 !== a.deps && + (v.deps = Zd(a.deps)), + up(a) + ? (v.useClass = a.useClass) + : (function (e) { + return gy in e; + })(a) + ? (v.useValue = a.useValue) + : cp(a) + ? (v.useFactory = a.useFactory) + : (function (e) { + return void 0 !== e.useExisting; + })(a) && (v.useExisting = a.useExisting), + v + ); + })(e, t) + )), + a + ), + }), + e.hasOwnProperty(Se) || + Object.defineProperty(e, Se, { + get: () => { + if (null === v) { + const E = yr(); + v = E.compileFactory(lp, `ng:///${e.name}/\u0275fac.js`, { + name: e.name, + type: e, + typeArgumentCount: 0, + deps: qa(e), + target: E.FactoryTarget.Injectable, + }); + } + return v; + }, + configurable: !0, + }); + })(e, t) + ); + function rc(e) { + return e.length > 1 + ? " (" + + (function (e) { + const t = []; + for (let a = 0; a < e.length; ++a) { + if (t.indexOf(e[a]) > -1) return t.push(e[a]), t; + t.push(e[a]); + } + return t; + })(e.slice().reverse()) + .map((v) => h(v.token)) + .join(" -> ") + + ")" + : ""; + } + function sc(e, t, a, v) { + const E = [t], + R = a(E), + W = v + ? (function (e, t) { + const a = `${e} caused by: ${ + t instanceof Error ? t.message : t + }`, + v = Error(a); + return (v[iu] = t), v; + })(R, v) + : Error(R); + return ( + (W.addKey = Ey), + (W.keys = E), + (W.injectors = [e]), + (W.constructResolvingMessage = a), + (W[iu] = v), + W + ); + } + function Ey(e, t) { + this.injectors.push(e), + this.keys.push(t), + (this.message = this.constructResolvingMessage(this.keys)); + } + function dp(e, t) { + const a = []; + for (let v = 0, E = t.length; v < E; v++) { + const R = t[v]; + a.push(R && 0 != R.length ? R.map(h).join(" ") : "?"); + } + return Error( + "Cannot resolve all parameters for '" + + h(e) + + "'(" + + a.join(", ") + + "). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '" + + h(e) + + "' is decorated with Injectable." + ); + } + function xy(e, t) { + return Error( + `Cannot mix multi providers and regular providers, got: ${e} ${t}` + ); + } + class ao { + constructor(t, a) { + if (((this.token = t), (this.id = a), !t)) + throw new Error("Token must be defined!"); + this.displayName = h(this.token); + } + static get(t) { + return hp.get(c(t)); + } + static get numberOfKeys() { + return hp.numberOfKeys; + } + } + class Iy { + constructor() { + this._allKeys = new Map(); + } + get(t) { + if (t instanceof ao) return t; + if (this._allKeys.has(t)) return this._allKeys.get(t); + const a = new ao(t, ao.numberOfKeys); + return this._allKeys.set(t, a), a; + } + get numberOfKeys() { + return this._allKeys.size; + } + } + const hp = new Iy(); + class Ay { + constructor(t) { + this.reflectionCapabilities = t; + } + updateCapabilities(t) { + this.reflectionCapabilities = t; + } + factory(t) { + return this.reflectionCapabilities.factory(t); + } + parameters(t) { + return this.reflectionCapabilities.parameters(t); + } + annotations(t) { + return this.reflectionCapabilities.annotations(t); + } + propMetadata(t) { + return this.reflectionCapabilities.propMetadata(t); + } + hasLifecycleHook(t, a) { + return this.reflectionCapabilities.hasLifecycleHook(t, a); + } + getter(t) { + return this.reflectionCapabilities.getter(t); + } + setter(t) { + return this.reflectionCapabilities.setter(t); + } + method(t) { + return this.reflectionCapabilities.method(t); + } + importUri(t) { + return this.reflectionCapabilities.importUri(t); + } + resourceUri(t) { + return this.reflectionCapabilities.resourceUri(t); + } + resolveIdentifier(t, a, v, E) { + return this.reflectionCapabilities.resolveIdentifier(t, a, v, E); + } + resolveEnum(t, a) { + return this.reflectionCapabilities.resolveEnum(t, a); + } + } + const fp = new Ay(new bn()); + class pl { + constructor(t, a, v) { + (this.key = t), (this.optional = a), (this.visibility = v); + } + static fromKey(t) { + return new pl(t, !1, null); + } + } + const Oy = []; + class pp { + constructor(t, a, v) { + (this.key = t), + (this.resolvedFactories = a), + (this.multiProvider = v), + (this.resolvedFactory = this.resolvedFactories[0]); + } + } + class mp { + constructor(t, a) { + (this.factory = t), (this.dependencies = a); + } + } + function Ry(e) { + let t, a; + if (e.useClass) { + const v = c(e.useClass); + (t = fp.factory(v)), (a = _p(v)); + } else + e.useExisting + ? ((t = (v) => v), (a = [pl.fromKey(ao.get(e.useExisting))])) + : e.useFactory + ? ((t = e.useFactory), + (a = (function (e, t) { + if (t) { + const a = t.map((v) => [v]); + return t.map((v) => vp(e, v, a)); + } + return _p(e); + })(e.useFactory, e.deps))) + : ((t = () => e.useValue), (a = Oy)); + return new mp(t, a); + } + function Ly(e) { + return new pp(ao.get(e.provide), [Ry(e)], e.multi || !1); + } + function ky(e) { + const v = (function (e, t) { + for (let a = 0; a < e.length; a++) { + const v = e[a], + E = t.get(v.key.id); + if (E) { + if (v.multiProvider !== E.multiProvider) throw xy(E, v); + if (v.multiProvider) + for (let R = 0; R < v.resolvedFactories.length; R++) + E.resolvedFactories.push(v.resolvedFactories[R]); + else t.set(v.key.id, v); + } else { + let R; + (R = v.multiProvider + ? new pp(v.key, v.resolvedFactories.slice(), v.multiProvider) + : v), + t.set(v.key.id, R); + } + } + return t; + })(gp(e, []).map(Ly), new Map()); + return Array.from(v.values()); + } + function gp(e, t) { + return ( + e.forEach((a) => { + if (a instanceof Oo) t.push({ provide: a, useClass: a }); + else if (a && "object" == typeof a && void 0 !== a.provide) + t.push(a); + else { + if (!Array.isArray(a)) + throw (function (e) { + return Error( + `Invalid provider - only instances of Provider and Type are allowed, got: ${e}` + ); + })(a); + gp(a, t); + } + }), + t + ); + } + function _p(e) { + const t = fp.parameters(e); + if (!t) return []; + if (t.some((a) => null == a)) throw dp(e, t); + return t.map((a) => vp(e, a, t)); + } + function vp(e, t, a) { + let v = null, + E = !1; + if (!Array.isArray(t)) + return oc(t instanceof fo ? t.token : t, E, null); + let R = null; + for (let W = 0; W < t.length; ++W) { + const se = t[W]; + se instanceof Oo + ? (v = se) + : se instanceof fo + ? (v = se.token) + : se instanceof Is + ? (E = !0) + : se instanceof io || se instanceof Eo + ? (R = se) + : se instanceof lr && (v = se); + } + if (((v = c(v)), null != v)) return oc(v, E, R); + throw dp(e, a); + } + function oc(e, t, a) { + return new pl(ao.get(e), t, a); + } + const Ia = {}; + class Jo { + static resolve(t) { + return ky(t); + } + static resolveAndCreate(t, a) { + const v = Jo.resolve(t); + return Jo.fromResolvedProviders(v, a); + } + static fromResolvedProviders(t, a) { + return new Ny(t, a); + } + } + let Ny = (() => { + class e { + constructor(a, v) { + (this._constructionCounter = 0), + (this._providers = a), + (this.parent = v || null); + const E = a.length; + (this.keyIds = []), (this.objs = []); + for (let R = 0; R < E; R++) + (this.keyIds[R] = a[R].key.id), (this.objs[R] = Ia); + } + get(a, v = hn) { + return this._getByKey(ao.get(a), null, v); + } + resolveAndCreateChild(a) { + const v = Jo.resolve(a); + return this.createChildFromResolved(v); + } + createChildFromResolved(a) { + const v = new e(a); + return (v.parent = this), v; + } + resolveAndInstantiate(a) { + return this.instantiateResolved(Jo.resolve([a])[0]); + } + instantiateResolved(a) { + return this._instantiateProvider(a); + } + getProviderAtIndex(a) { + if (a < 0 || a >= this._providers.length) + throw (function (e) { + return Error(`Index ${e} is out-of-bounds.`); + })(a); + return this._providers[a]; + } + _new(a) { + if (this._constructionCounter++ > this._getMaxNumberOfObjects()) + throw (function (e, t) { + return sc(e, t, function (a) { + return `Cannot instantiate cyclic dependency!${rc(a)}`; + }); + })(this, a.key); + return this._instantiateProvider(a); + } + _getMaxNumberOfObjects() { + return this.objs.length; + } + _instantiateProvider(a) { + if (a.multiProvider) { + const v = []; + for (let E = 0; E < a.resolvedFactories.length; ++E) + v[E] = this._instantiate(a, a.resolvedFactories[E]); + return v; + } + return this._instantiate(a, a.resolvedFactories[0]); + } + _instantiate(a, v) { + const E = v.factory; + let R, W; + try { + R = v.dependencies.map((se) => + this._getByReflectiveDependency(se) + ); + } catch (se) { + throw (se.addKey && se.addKey(this, a.key), se); + } + try { + W = E(...R); + } catch (se) { + throw (function (e, t, a, v) { + return sc( + e, + v, + function (E) { + const R = h(E[0].token); + return `${ + t.message + }: Error during instantiation of ${R}!${rc(E)}.`; + }, + t + ); + })(this, se, 0, a.key); + } + return W; + } + _getByReflectiveDependency(a) { + return this._getByKey(a.key, a.visibility, a.optional ? null : hn); + } + _getByKey(a, v, E) { + return a === e.INJECTOR_KEY + ? this + : v instanceof io + ? this._getByKeySelf(a, E) + : this._getByKeyDefault(a, E, v); + } + _getObjByKeyId(a) { + for (let v = 0; v < this.keyIds.length; v++) + if (this.keyIds[v] === a) + return ( + this.objs[v] === Ia && + (this.objs[v] = this._new(this._providers[v])), + this.objs[v] + ); + return Ia; + } + _throwOrNull(a, v) { + if (v !== hn) return v; + throw (function (e, t) { + return sc(e, t, function (a) { + return `No provider for ${h(a[0].token)}!${rc(a)}`; + }); + })(this, a); + } + _getByKeySelf(a, v) { + const E = this._getObjByKeyId(a.id); + return E !== Ia ? E : this._throwOrNull(a, v); + } + _getByKeyDefault(a, v, E) { + let R; + for (R = E instanceof Eo ? this.parent : this; R instanceof e; ) { + const W = R, + se = W._getObjByKeyId(a.id); + if (se !== Ia) return se; + R = W.parent; + } + return null !== R ? R.get(a.token, v) : this._throwOrNull(a, v); + } + get displayName() { + return `ReflectiveInjector(providers: [${(function (e, t) { + const a = []; + for (let v = 0; v < e._providers.length; ++v) + a[v] = t(e.getProviderAtIndex(v)); + return a; + })(this, (v) => ' "' + v.key.displayName + '" ').join(", ")}])`; + } + toString() { + return this.displayName; + } + } + return (e.INJECTOR_KEY = ao.get(gs)), e; + })(); + function Aa(e, t = Ee.Default) { + const a = we(); + return null === a ? Cn(e, t) : ss(pe(), a, c(e), t); + } + function yp() { + throw new Error("invalid"); + } + function ac(e, t, a) { + const v = we(); + return Zr(v, Kn(), t) && ms(N(), Zn(), v, e, t, v[11], a, !1), ac; + } + function lc(e, t, a, v, E) { + const W = E ? "class" : "style"; + Ff(e, a, t.inputs[W], W, v); + } + function uc(e, t, a, v) { + const E = we(), + R = N(), + W = 20 + e, + se = E[11], + ge = (E[W] = cu(se, t, xn.lFrame.currentNamespace)), + De = R.firstCreatePass + ? (function (e, t, a, v, E, R, W) { + const se = t.consts, + De = Uo(t, e, 2, E, hi(se, R)); + return ( + Ou(t, a, De, hi(se, W)), + null !== De.attrs && cl(De, De.attrs, !1), + null !== De.mergedAttrs && cl(De, De.mergedAttrs, !0), + null !== t.queries && t.queries.elementStart(t, De), + De + ); + })(W, R, E, 0, t, a, v) + : R.data[W]; + rt(De, !0); + const ke = De.mergedAttrs; + null !== ke && Mt(se, ge, ke); + const qe = De.classes; + null !== qe && gu(se, ge, qe); + const Ct = De.styles; + null !== Ct && Xh(se, ge, Ct), + 64 != (64 & De.flags) && il(R, E, ge, De), + 0 === xn.lFrame.elementDepthCount && Xr(ge, E), + xn.lFrame.elementDepthCount++, + tr(De) && (Iu(R, E, De), vf(R, De, E)), + null !== v && Au(E, De); + } + function cc() { + let e = pe(); + dt() ? Rt() : ((e = e.parent), rt(e, !1)); + const t = e; + xn.lFrame.elementDepthCount--; + const a = N(); + a.firstCreatePass && (Ir(a, e), Gi(e) && a.queries.elementEnd(e)), + null != t.classesWithoutHost && + (function (e) { + return 0 != (16 & e.flags); + })(t) && + lc(a, t, we(), t.classesWithoutHost, !0), + null != t.stylesWithoutHost && + (function (e) { + return 0 != (32 & e.flags); + })(t) && + lc(a, t, we(), t.stylesWithoutHost, !1); + } + function bp(e, t, a, v) { + uc(e, t, a, v), cc(); + } + function dc(e, t, a) { + const v = we(), + E = N(), + R = e + 20, + W = E.firstCreatePass + ? (function (e, t, a, v, E) { + const R = t.consts, + W = hi(R, v), + se = Uo(t, e, 8, "ng-container", W); + return ( + null !== W && cl(se, W, !0), + Ou(t, a, se, hi(R, E)), + null !== t.queries && t.queries.elementStart(t, se), + se + ); + })(R, E, v, t, a) + : E.data[R]; + rt(W, !0); + const se = (v[R] = v[11].createComment("")); + il(E, v, se, W), + Xr(se, v), + tr(W) && (Iu(E, v, W), vf(E, W, v)), + null != a && Au(v, W); + } + function hc() { + let e = pe(); + const t = N(); + dt() ? Rt() : ((e = e.parent), rt(e, !1)), + t.firstCreatePass && (Ir(t, e), Gi(e) && t.queries.elementEnd(e)); + } + function Cp(e, t, a) { + dc(e, t, a), hc(); + } + function Ep() { + return we(); + } + function fc(e) { + return !!e && "function" == typeof e.then; + } + function wp(e) { + return !!e && "function" == typeof e.subscribe; + } + const Mp = wp; + function pc(e, t, a, v) { + const E = we(), + R = N(), + W = pe(); + return Sp(R, E, E[11], W, e, t, !!a, v), pc; + } + function mc(e, t) { + const a = pe(), + v = we(), + E = N(); + return Sp(E, v, kf(Xi(E.data), a, v), a, e, t, !1), mc; + } + function Sp(e, t, a, v, E, R, W, se) { + const ge = tr(v), + ke = e.firstCreatePass && Lf(e), + qe = t[8], + Ct = Rf(t); + let Pt = !0; + if (3 & v.type || se) { + const dn = ve(v, t), + wn = se ? se(dn) : dn, + Jt = Ct.length, + Un = se ? (yi) => se(be(yi[v.index])) : v.index; + if (si(a)) { + let yi = null; + if ( + (!se && + ge && + (yi = (function (e, t, a, v) { + const E = e.cleanup; + if (null != E) + for (let R = 0; R < E.length - 1; R += 2) { + const W = E[R]; + if (W === a && E[R + 1] === v) { + const se = t[7], + ge = E[R + 2]; + return se.length > ge ? se[ge] : null; + } + "string" == typeof W && (R += 2); + } + return null; + })(e, t, E, v.index)), + null !== yi) + ) + ((yi.__ngLastListenerFn__ || yi).__ngNextListenerFn__ = R), + (yi.__ngLastListenerFn__ = R), + (Pt = !1); + else { + R = gc(v, t, qe, R, !1); + const Bi = a.listen(wn, E, R); + Ct.push(R, Bi), ke && ke.push(E, Un, Jt, Jt + 1); + } + } else + (R = gc(v, t, qe, R, !0)), + wn.addEventListener(E, R, W), + Ct.push(R), + ke && ke.push(E, Un, Jt, W); + } else R = gc(v, t, qe, R, !1); + const Yt = v.outputs; + let sn; + if (Pt && null !== Yt && (sn = Yt[E])) { + const dn = sn.length; + if (dn) + for (let wn = 0; wn < dn; wn += 2) { + const vs = t[sn[wn]][sn[wn + 1]].subscribe(R), + xo = Ct.length; + Ct.push(R, vs), ke && ke.push(E, v.index, xo, -(xo + 1)); + } + } + } + function Dp(e, t, a, v) { + try { + return Ji(6, t, a), !1 !== a(v); + } catch (E) { + return Pf(e, E), !1; + } finally { + Ji(7, t, a); + } + } + function gc(e, t, a, v, E) { + return function R(W) { + if (W === Function) return v; + const se = 2 & e.flags ? In(e.index, t) : t; + 0 == (32 & t[2]) && ku(se); + let ge = Dp(t, a, v, W), + De = R.__ngNextListenerFn__; + for (; De; ) + (ge = Dp(t, a, De, W) && ge), (De = De.__ngNextListenerFn__); + return ( + E && !1 === ge && (W.preventDefault(), (W.returnValue = !1)), ge + ); + }; + } + function Tp(e = 1) { + return (function (e) { + return (xn.lFrame.contextLView = (function (e, t) { + for (; e > 0; ) (t = t[15]), e--; + return t; + })(e, xn.lFrame.contextLView))[8]; + })(e); + } + function Hy(e, t) { + let a = null; + const v = (function (e) { + const t = e.attrs; + if (null != t) { + const a = t.indexOf(5); + if (0 == (1 & a)) return t[a + 1]; + } + return null; + })(e); + for (let E = 0; E < t.length; E++) { + const R = t[E]; + if ("*" !== R) { + if (null === v ? ef(e, R, !0) : q_(v, R)) return E; + } else a = E; + } + return a; + } + function xp(e) { + const t = we()[16][6]; + if (!t.projection) { + const v = (t.projection = ho(e ? e.length : 1, null)), + E = v.slice(); + let R = t.child; + for (; null !== R; ) { + const W = e ? Hy(R, e) : 0; + null !== W && + (E[W] ? (E[W].projectionNext = R) : (v[W] = R), (E[W] = R)), + (R = R.next); + } + } + } + function Ip(e, t = 0, a) { + const v = we(), + E = N(), + R = Uo(E, 20 + e, 16, null, a || null); + null === R.projection && (R.projection = t), + Rt(), + 64 != (64 & R.flags) && + (function (e, t, a) { + Qh(t[11], 0, t, a, Bh(e, a, t), jh(a.parent || t[6], a, t)); + })(E, v, R); + } + function _c(e, t, a) { + return ml(e, "", t, "", a), _c; + } + function ml(e, t, a, v, E) { + const R = we(), + W = zo(R, t, a, v); + return W !== ei && ms(N(), Zn(), R, e, W, R[11], E, !1), ml; + } + function vc(e, t, a, v, E, R, W) { + const se = we(), + ge = Ko(se, t, a, v, E, R); + return ge !== ei && ms(N(), Zn(), se, e, ge, se[11], W, !1), vc; + } + function yc(e, t, a, v, E, R, W, se, ge) { + const De = we(), + ke = Go(De, t, a, v, E, R, W, se); + return ke !== ei && ms(N(), Zn(), De, e, ke, De[11], ge, !1), yc; + } + function bc(e, t, a, v, E, R, W, se, ge, De, ke) { + const qe = we(), + Ct = Yo(qe, t, a, v, E, R, W, se, ge, De); + return Ct !== ei && ms(N(), Zn(), qe, e, Ct, qe[11], ke, !1), bc; + } + function Cc(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct) { + const Pt = we(), + Yt = Qo(Pt, t, a, v, E, R, W, se, ge, De, ke, qe); + return Yt !== ei && ms(N(), Zn(), Pt, e, Yt, Pt[11], Ct, !1), Cc; + } + function Ec(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt) { + const sn = we(), + dn = Xo(sn, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt); + return dn !== ei && ms(N(), Zn(), sn, e, dn, sn[11], Yt, !1), Ec; + } + function wc(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn, dn) { + const wn = we(), + Jt = Zo(wn, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn); + return Jt !== ei && ms(N(), Zn(), wn, e, Jt, wn[11], dn, !1), wc; + } + function Mc( + e, + t, + a, + v, + E, + R, + W, + se, + ge, + De, + ke, + qe, + Ct, + Pt, + Yt, + sn, + dn, + wn, + Jt + ) { + const Un = we(), + yi = qo( + Un, + t, + a, + v, + E, + R, + W, + se, + ge, + De, + ke, + qe, + Ct, + Pt, + Yt, + sn, + dn, + wn + ); + return yi !== ei && ms(N(), Zn(), Un, e, yi, Un[11], Jt, !1), Mc; + } + function Sc(e, t, a) { + const v = we(), + E = Wo(v, t); + return E !== ei && ms(N(), Zn(), v, e, E, v[11], a, !1), Sc; + } + function Ap(e, t, a, v, E) { + const R = e[a + 1], + W = null === t; + let se = v ? ks(R) : so(R), + ge = !1; + for (; 0 !== se && (!1 === ge || W); ) { + const ke = e[se + 1]; + zy(e[se], t) && ((ge = !0), (e[se + 1] = v ? yu(ke) : _u(ke))), + (se = v ? ks(ke) : so(ke)); + } + ge && (e[a + 1] = v ? _u(R) : yu(R)); + } + function zy(e, t) { + return ( + null === e || + null == t || + (Array.isArray(e) ? e[1] : e) === t || + (!(!Array.isArray(e) || "string" != typeof t) && P(e, t) >= 0) + ); + } + const Ar = { textEnd: 0, key: 0, keyEnd: 0, value: 0, valueEnd: 0 }; + function Op(e) { + return e.substring(Ar.key, Ar.keyEnd); + } + function Ky(e) { + return e.substring(Ar.value, Ar.valueEnd); + } + function Rp(e, t) { + const a = Ar.textEnd; + return a === t + ? -1 + : ((t = Ar.keyEnd = (function (e, t, a) { + for (; t < a && e.charCodeAt(t) > 32; ) t++; + return t; + })(e, (Ar.key = t), a)), + ea(e, t, a)); + } + function Lp(e, t) { + const a = Ar.textEnd; + let v = (Ar.key = ea(e, t, a)); + return a === v + ? -1 + : ((v = Ar.keyEnd = (function (e, t, a) { + let v; + for ( + ; + t < a && + (45 === (v = e.charCodeAt(t)) || + 95 === v || + ((-33 & v) >= 65 && (-33 & v) <= 90) || + (v >= 48 && v <= 57)); + + ) + t++; + return t; + })(e, v, a)), + (v = Pp(e, v, a)), + (v = Ar.value = ea(e, v, a)), + (v = Ar.valueEnd = (function (e, t, a) { + let v = -1, + E = -1, + R = -1, + W = t, + se = W; + for (; W < a; ) { + const ge = e.charCodeAt(W++); + if (59 === ge) return se; + 34 === ge || 39 === ge + ? (se = W = Fp(e, ge, W, a)) + : t === W - 4 && 85 === R && 82 === E && 76 === v && 40 === ge + ? (se = W = Fp(e, 41, W, a)) + : ge > 32 && (se = W), + (R = E), + (E = v), + (v = -33 & ge); + } + return se; + })(e, v, a)), + Pp(e, v, a)); + } + function kp(e) { + (Ar.key = 0), + (Ar.keyEnd = 0), + (Ar.value = 0), + (Ar.valueEnd = 0), + (Ar.textEnd = e.length); + } + function ea(e, t, a) { + for (; t < a && e.charCodeAt(t) <= 32; ) t++; + return t; + } + function Pp(e, t, a, v) { + return (t = ea(e, t, a)) < a && t++, t; + } + function Fp(e, t, a, v) { + let E = -1, + R = a; + for (; R < v; ) { + const W = e.charCodeAt(R++); + if (W == t && 92 !== E) return R; + E = 92 == W && 92 === E ? 0 : W; + } + throw new Error(); + } + function Dc(e, t, a) { + return Fs(e, t, a, !1), Dc; + } + function Tc(e, t) { + return Fs(e, t, null, !0), Tc; + } + function Ps(e) { + Ns(Vp, qy, e, !1); + } + function qy(e, t) { + for ( + let a = (function (e) { + return kp(e), Lp(e, ea(e, 0, Ar.textEnd)); + })(t); + a >= 0; + a = Lp(t, a) + ) + Vp(e, Op(t), Ky(t)); + } + function Np(e) { + Ns(Yr, Qs, e, !0); + } + function Qs(e, t) { + for ( + let a = (function (e) { + return kp(e), Rp(e, ea(e, 0, Ar.textEnd)); + })(t); + a >= 0; + a = Rp(t, a) + ) + Yr(e, Op(t), !0); + } + function Fs(e, t, a, v) { + const E = we(), + R = N(), + W = _i(2); + R.firstUpdatePass && Bp(R, e, W, v), + t !== ei && + Zr(E, W, t) && + $p( + R, + R.data[ii()], + E, + E[11], + e, + (E[W + 1] = (function (e, t) { + return ( + null == e || + ("string" == typeof t + ? (e += t) + : "object" == typeof e && (e = h(ro(e)))), + e + ); + })(t, a)), + v, + W + ); + } + function Ns(e, t, a, v) { + const E = N(), + R = _i(2); + E.firstUpdatePass && Bp(E, null, R, v); + const W = we(); + if (a !== ei && Zr(W, R, a)) { + const se = E.data[ii()]; + if (jp(se, v) && !Up(E, R)) { + let ge = v ? se.classesWithoutHost : se.stylesWithoutHost; + null !== ge && (a = r(ge, a || "")), lc(E, se, W, a, v); + } else + !(function (e, t, a, v, E, R, W, se) { + E === ei && (E = Qe); + let ge = 0, + De = 0, + ke = 0 < E.length ? E[0] : null, + qe = 0 < R.length ? R[0] : null; + for (; null !== ke || null !== qe; ) { + const Ct = ge < E.length ? E[ge + 1] : void 0, + Pt = De < R.length ? R[De + 1] : void 0; + let sn, + Yt = null; + ke === qe + ? ((ge += 2), (De += 2), Ct !== Pt && ((Yt = qe), (sn = Pt))) + : null === qe || (null !== ke && ke < qe) + ? ((ge += 2), (Yt = ke)) + : ((De += 2), (Yt = qe), (sn = Pt)), + null !== Yt && $p(e, t, a, v, Yt, sn, W, se), + (ke = ge < E.length ? E[ge] : null), + (qe = De < R.length ? R[De] : null); + } + })( + E, + se, + W, + W[11], + W[R + 1], + (W[R + 1] = (function (e, t, a) { + if (null == a || "" === a) return Qe; + const v = [], + E = ro(a); + if (Array.isArray(E)) + for (let R = 0; R < E.length; R++) e(v, E[R], !0); + else if ("object" == typeof E) + for (const R in E) E.hasOwnProperty(R) && e(v, R, E[R]); + else "string" == typeof E && t(v, E); + return v; + })(e, t, a)), + v, + R + ); + } + } + function Up(e, t) { + return t >= e.expandoStartIndex; + } + function Bp(e, t, a, v) { + const E = e.data; + if (null === E[a + 1]) { + const R = E[ii()], + W = Up(e, a); + jp(R, v) && null === t && !W && (t = !1), + (t = (function (e, t, a, v) { + const E = Xi(e); + let R = v ? t.residualClasses : t.residualStyles; + if (null === E) + 0 === (v ? t.classBindings : t.styleBindings) && + ((a = Oa((a = xc(null, e, t, a, v)), t.attrs, v)), + (R = null)); + else { + const W = t.directiveStylingLast; + if (-1 === W || e[W] !== E) + if (((a = xc(E, e, t, a, v)), null === R)) { + let ge = (function (e, t, a) { + const v = a ? t.classBindings : t.styleBindings; + if (0 !== so(v)) return e[ks(v)]; + })(e, t, v); + void 0 !== ge && + Array.isArray(ge) && + ((ge = xc(null, e, t, ge[1], v)), + (ge = Oa(ge, t.attrs, v)), + (function (e, t, a, v) { + e[ks(a ? t.classBindings : t.styleBindings)] = v; + })(e, t, v, ge)); + } else + R = (function (e, t, a) { + let v; + const E = t.directiveEnd; + for (let R = 1 + t.directiveStylingLast; R < E; R++) + v = Oa(v, e[R].hostAttrs, a); + return Oa(v, t.attrs, a); + })(e, t, v); + } + return ( + void 0 !== R && + (v ? (t.residualClasses = R) : (t.residualStyles = R)), + a + ); + })(E, R, t, v)), + (function (e, t, a, v, E, R) { + let W = R ? t.classBindings : t.styleBindings, + se = ks(W), + ge = so(W); + e[v] = a; + let ke, + De = !1; + if (Array.isArray(a)) { + const qe = a; + (ke = qe[1]), (null === ke || P(qe, ke) > 0) && (De = !0); + } else ke = a; + if (E) + if (0 !== ge) { + const Ct = ks(e[se + 1]); + (e[v + 1] = sl(Ct, se)), + 0 !== Ct && (e[Ct + 1] = vu(e[Ct + 1], v)), + (e[se + 1] = (function (e, t) { + return (131071 & e) | (t << 17); + })(e[se + 1], v)); + } else + (e[v + 1] = sl(se, 0)), + 0 !== se && (e[se + 1] = vu(e[se + 1], v)), + (se = v); + else + (e[v + 1] = sl(ge, 0)), + 0 === se ? (se = v) : (e[ge + 1] = vu(e[ge + 1], v)), + (ge = v); + De && (e[v + 1] = _u(e[v + 1])), + Ap(e, ke, v, !0), + Ap(e, ke, v, !1), + (function (e, t, a, v, E) { + const R = E ? e.residualClasses : e.residualStyles; + null != R && + "string" == typeof t && + P(R, t) >= 0 && + (a[v + 1] = yu(a[v + 1])); + })(t, ke, e, v, R), + (W = sl(se, ge)), + R ? (t.classBindings = W) : (t.styleBindings = W); + })(E, R, t, a, W, v); + } + } + function xc(e, t, a, v, E) { + let R = null; + const W = a.directiveEnd; + let se = a.directiveStylingLast; + for ( + -1 === se ? (se = a.directiveStart) : se++; + se < W && ((R = t[se]), (v = Oa(v, R.hostAttrs, E)), R !== e); + + ) + se++; + return null !== e && (a.directiveStylingLast = se), v; + } + function Oa(e, t, a) { + const v = a ? 1 : 2; + let E = -1; + if (null !== t) + for (let R = 0; R < t.length; R++) { + const W = t[R]; + "number" == typeof W + ? (E = W) + : E === v && + (Array.isArray(e) || (e = void 0 === e ? [] : ["", e]), + Yr(e, W, !!a || t[++R])); + } + return void 0 === e ? null : e; + } + function Vp(e, t, a) { + Yr(e, t, ro(a)); + } + function $p(e, t, a, v, E, R, W, se) { + if (!(3 & t.type)) return; + const ge = e.data, + De = ge[se + 1]; + gl( + (function (e) { + return 1 == (1 & e); + })(De) + ? Hp(ge, t, a, E, so(De), W) + : void 0 + ) || + (gl(R) || + ((function (e) { + return 2 == (2 & e); + })(De) && + (R = Hp(ge, null, a, E, se, W))), + (function (e, t, a, v, E) { + const R = si(e); + if (t) + E + ? R + ? e.addClass(a, v) + : a.classList.add(v) + : R + ? e.removeClass(a, v) + : a.classList.remove(v); + else { + let W = -1 === v.indexOf("-") ? void 0 : Ks.DashCase; + if (null == E) + R ? e.removeStyle(a, v, W) : a.style.removeProperty(v); + else { + const se = "string" == typeof E && E.endsWith("!important"); + se && ((E = E.slice(0, -10)), (W |= Ks.Important)), + R + ? e.setStyle(a, v, E, W) + : a.style.setProperty(v, E, se ? "important" : ""); + } + } + })(v, W, V(ii(), a), E, R)); + } + function Hp(e, t, a, v, E, R) { + const W = null === t; + let se; + for (; E > 0; ) { + const ge = e[E], + De = Array.isArray(ge), + ke = De ? ge[1] : ge, + qe = null === ke; + let Ct = a[E + 1]; + Ct === ei && (Ct = qe ? Qe : void 0); + let Pt = qe ? ma(Ct, v) : ke === v ? Ct : void 0; + if ((De && !gl(Pt) && (Pt = ma(ge, v)), gl(Pt) && ((se = Pt), W))) + return se; + const Yt = e[E + 1]; + E = W ? ks(Yt) : so(Yt); + } + if (null !== t) { + let ge = R ? t.residualClasses : t.residualStyles; + null != ge && (se = ma(ge, v)); + } + return se; + } + function gl(e) { + return void 0 !== e; + } + function jp(e, t) { + return 0 != (e.flags & (t ? 16 : 32)); + } + function Wp(e, t = "") { + const a = we(), + v = N(), + E = e + 20, + R = v.firstCreatePass ? Uo(v, E, 1, t, null) : v.data[E], + W = (a[E] = uu(a[11], t)); + il(v, a, W, R), rt(R, !1); + } + function Ic(e) { + return _l("", e, ""), Ic; + } + function _l(e, t, a) { + const v = we(), + E = zo(v, e, t, a); + return E !== ei && oo(v, ii(), E), _l; + } + function Ac(e, t, a, v, E) { + const R = we(), + W = Ko(R, e, t, a, v, E); + return W !== ei && oo(R, ii(), W), Ac; + } + function Oc(e, t, a, v, E, R, W) { + const se = we(), + ge = Go(se, e, t, a, v, E, R, W); + return ge !== ei && oo(se, ii(), ge), Oc; + } + function Rc(e, t, a, v, E, R, W, se, ge) { + const De = we(), + ke = Yo(De, e, t, a, v, E, R, W, se, ge); + return ke !== ei && oo(De, ii(), ke), Rc; + } + function Lc(e, t, a, v, E, R, W, se, ge, De, ke) { + const qe = we(), + Ct = Qo(qe, e, t, a, v, E, R, W, se, ge, De, ke); + return Ct !== ei && oo(qe, ii(), Ct), Lc; + } + function kc(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct) { + const Pt = we(), + Yt = Xo(Pt, e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct); + return Yt !== ei && oo(Pt, ii(), Yt), kc; + } + function Pc(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt) { + const sn = we(), + dn = Zo(sn, e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt); + return dn !== ei && oo(sn, ii(), dn), Pc; + } + function Fc(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn, dn) { + const wn = we(), + Jt = qo( + wn, + e, + t, + a, + v, + E, + R, + W, + se, + ge, + De, + ke, + qe, + Ct, + Pt, + Yt, + sn, + dn + ); + return Jt !== ei && oo(wn, ii(), Jt), Fc; + } + function Nc(e) { + const t = we(), + a = Wo(t, e); + return a !== ei && oo(t, ii(), a), Nc; + } + function zp(e, t, a) { + Ns(Yr, Qs, zo(we(), e, t, a), !0); + } + function Kp(e, t, a, v, E) { + Ns(Yr, Qs, Ko(we(), e, t, a, v, E), !0); + } + function Gp(e, t, a, v, E, R, W) { + Ns(Yr, Qs, Go(we(), e, t, a, v, E, R, W), !0); + } + function Yp(e, t, a, v, E, R, W, se, ge) { + Ns(Yr, Qs, Yo(we(), e, t, a, v, E, R, W, se, ge), !0); + } + function Qp(e, t, a, v, E, R, W, se, ge, De, ke) { + Ns(Yr, Qs, Qo(we(), e, t, a, v, E, R, W, se, ge, De, ke), !0); + } + function Xp(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct) { + Ns(Yr, Qs, Xo(we(), e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct), !0); + } + function Zp(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt) { + Ns( + Yr, + Qs, + Zo(we(), e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt), + !0 + ); + } + function qp(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn, dn) { + Ns( + Yr, + Qs, + qo(we(), e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn, dn), + !0 + ); + } + function Jp(e) { + Ns(Yr, Qs, Wo(we(), e), !0); + } + function e0(e, t, a) { + Ps(zo(we(), e, t, a)); + } + function t0(e, t, a, v, E) { + Ps(Ko(we(), e, t, a, v, E)); + } + function n0(e, t, a, v, E, R, W) { + Ps(Go(we(), e, t, a, v, E, R, W)); + } + function r0(e, t, a, v, E, R, W, se, ge) { + Ps(Yo(we(), e, t, a, v, E, R, W, se, ge)); + } + function s0(e, t, a, v, E, R, W, se, ge, De, ke) { + Ps(Qo(we(), e, t, a, v, E, R, W, se, ge, De, ke)); + } + function o0(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct) { + Ps(Xo(we(), e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct)); + } + function a0(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt) { + Ps(Zo(we(), e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt)); + } + function l0(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn, dn) { + Ps( + qo(we(), e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn, dn) + ); + } + function u0(e) { + Ps(Wo(we(), e)); + } + function Uc(e, t, a, v, E) { + return Fs(e, zo(we(), t, a, v), E, !1), Uc; + } + function Bc(e, t, a, v, E, R, W) { + return Fs(e, Ko(we(), t, a, v, E, R), W, !1), Bc; + } + function Vc(e, t, a, v, E, R, W, se, ge) { + return Fs(e, Go(we(), t, a, v, E, R, W, se), ge, !1), Vc; + } + function $c(e, t, a, v, E, R, W, se, ge, De, ke) { + return Fs(e, Yo(we(), t, a, v, E, R, W, se, ge, De), ke, !1), $c; + } + function Hc(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct) { + return ( + Fs(e, Qo(we(), t, a, v, E, R, W, se, ge, De, ke, qe), Ct, !1), Hc + ); + } + function jc(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt) { + return ( + Fs(e, Xo(we(), t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt), Yt, !1), + jc + ); + } + function Wc(e, t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn, dn) { + return ( + Fs( + e, + Zo(we(), t, a, v, E, R, W, se, ge, De, ke, qe, Ct, Pt, Yt, sn), + dn, + !1 + ), + Wc + ); + } + function zc( + e, + t, + a, + v, + E, + R, + W, + se, + ge, + De, + ke, + qe, + Ct, + Pt, + Yt, + sn, + dn, + wn, + Jt + ) { + return ( + Fs( + e, + qo( + we(), + t, + a, + v, + E, + R, + W, + se, + ge, + De, + ke, + qe, + Ct, + Pt, + Yt, + sn, + dn, + wn + ), + Jt, + !1 + ), + zc + ); + } + function Kc(e, t, a) { + return Fs(e, Wo(we(), t), a, !1), Kc; + } + function Gc(e, t, a) { + const v = we(); + return Zr(v, Kn(), t) && ms(N(), Zn(), v, e, t, v[11], a, !0), Gc; + } + function Yc(e, t, a) { + const v = we(); + if (Zr(v, Kn(), t)) { + const R = N(), + W = Zn(); + ms(R, W, v, e, t, kf(Xi(R.data), W, v), a, !0); + } + return Yc; + } + const Do = void 0; + var ab = [ + "en", + [["a", "p"], ["AM", "PM"], Do], + [["AM", "PM"], Do, Do], + [ + ["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"], + ], + Do, + [ + ["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", + ], + ], + Do, + [ + ["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}", Do, "{1} 'at' {0}", Do], + [ + ".", + ",", + ";", + "%", + "+", + "-", + "E", + "\xd7", + "\u2030", + "\u221e", + "NaN", + ":", + ], + ["#,##0.###", "#,##0%", "\xa4#,##0.00", "#E0"], + "USD", + "$", + "US Dollar", + {}, + "ltr", + function (e) { + const a = Math.floor(Math.abs(e)), + v = e.toString().replace(/^[^.]*\.?/, "").length; + return 1 === a && 0 === v ? 1 : 5; + }, + ]; + let ta = {}; + function lb(e, t, a) { + "string" != typeof t && ((a = t), (t = e[Vn.LocaleId])), + (t = t.toLowerCase().replace(/_/g, "-")), + (ta[t] = e), + a && (ta[t][Vn.ExtraData] = a); + } + function Qc(e) { + const t = (function (e) { + return e.toLowerCase().replace(/_/g, "-"); + })(e); + let a = d0(t); + if (a) return a; + const v = t.split("-")[0]; + if (((a = d0(v)), a)) return a; + if ("en" === v) return ab; + throw new Error(`Missing locale data for the locale "${e}".`); + } + function ub(e) { + return Qc(e)[Vn.CurrencyCode] || null; + } + function c0(e) { + return Qc(e)[Vn.PluralCase]; + } + function d0(e) { + return ( + e in ta || + (ta[e] = + Kt.ng && + Kt.ng.common && + Kt.ng.common.locales && + Kt.ng.common.locales[e]), + ta[e] + ); + } + function cb() { + ta = {}; + } + var Vn = (() => ( + ((Vn = Vn || {})[(Vn.LocaleId = 0)] = "LocaleId"), + (Vn[(Vn.DayPeriodsFormat = 1)] = "DayPeriodsFormat"), + (Vn[(Vn.DayPeriodsStandalone = 2)] = "DayPeriodsStandalone"), + (Vn[(Vn.DaysFormat = 3)] = "DaysFormat"), + (Vn[(Vn.DaysStandalone = 4)] = "DaysStandalone"), + (Vn[(Vn.MonthsFormat = 5)] = "MonthsFormat"), + (Vn[(Vn.MonthsStandalone = 6)] = "MonthsStandalone"), + (Vn[(Vn.Eras = 7)] = "Eras"), + (Vn[(Vn.FirstDayOfWeek = 8)] = "FirstDayOfWeek"), + (Vn[(Vn.WeekendRange = 9)] = "WeekendRange"), + (Vn[(Vn.DateFormat = 10)] = "DateFormat"), + (Vn[(Vn.TimeFormat = 11)] = "TimeFormat"), + (Vn[(Vn.DateTimeFormat = 12)] = "DateTimeFormat"), + (Vn[(Vn.NumberSymbols = 13)] = "NumberSymbols"), + (Vn[(Vn.NumberFormats = 14)] = "NumberFormats"), + (Vn[(Vn.CurrencyCode = 15)] = "CurrencyCode"), + (Vn[(Vn.CurrencySymbol = 16)] = "CurrencySymbol"), + (Vn[(Vn.CurrencyName = 17)] = "CurrencyName"), + (Vn[(Vn.Currencies = 18)] = "Currencies"), + (Vn[(Vn.Directionality = 19)] = "Directionality"), + (Vn[(Vn.PluralCase = 20)] = "PluralCase"), + (Vn[(Vn.ExtraData = 21)] = "ExtraData"), + Vn + ))(); + const hb = ["zero", "one", "two", "few", "many"], + Ra = "en-US", + vl = { marker: "element" }, + yl = { marker: "ICU" }; + var pr = (() => ( + ((pr = pr || {})[(pr.SHIFT = 2)] = "SHIFT"), + (pr[(pr.APPEND_EAGERLY = 1)] = "APPEND_EAGERLY"), + (pr[(pr.COMMENT = 2)] = "COMMENT"), + pr + ))(); + let h0 = Ra; + function f0(e) { + (function (e, t) { + null == e && Le(t, e, null, "!="); + })(e, "Expected localeId to be defined"), + "string" == typeof e && (h0 = e.toLowerCase().replace(/_/g, "-")); + } + function p0(e, t, a) { + const v = t.insertBeforeIndex, + E = Array.isArray(v) ? v[0] : v; + return null === E ? Wh(e, 0, a) : be(a[E]); + } + function m0(e, t, a, v, E) { + const R = t.insertBeforeIndex; + if (Array.isArray(R)) { + let W = v, + se = null; + if ( + (3 & t.type || ((se = W), (W = E)), + null !== W && 0 == (2 & t.flags)) + ) + for (let ge = 1; ge < R.length; ge++) Mo(e, W, a[R[ge]], se, !1); + } + } + function g0(e, t) { + if ((e.push(t), e.length > 1)) + for (let a = e.length - 2; a >= 0; a--) { + const v = e[a]; + _0(v) || (gb(v, t) && null === _b(v) && vb(v, t.index)); + } + } + function _0(e) { + return !(64 & e.type); + } + function gb(e, t) { + return _0(t) || e.index > t.index; + } + function _b(e) { + const t = e.insertBeforeIndex; + return Array.isArray(t) ? t[0] : t; + } + function vb(e, t) { + const a = e.insertBeforeIndex; + Array.isArray(a) ? (a[0] = t) : (Kh(p0, m0), (e.insertBeforeIndex = t)); + } + function La(e, t) { + const a = e.data[t]; + return null === a || "string" == typeof a + ? null + : a.hasOwnProperty("currentCaseLViewIndex") + ? a + : a.value; + } + function Cb(e, t, a) { + const v = xu(e, a, 64, null, null); + return g0(t, v), v; + } + function bl(e, t) { + const a = t[e.currentCaseLViewIndex]; + return null === a ? a : a < 0 ? ~a : a; + } + function v0(e) { + return e >>> 17; + } + function y0(e) { + return (131070 & e) >>> 1; + } + let ka = 0, + Pa = 0; + function C0(e, t, a, v) { + const E = a[11]; + let W, + R = null; + for (let se = 0; se < t.length; se++) { + const ge = t[se]; + if ("string" == typeof ge) { + const De = t[++se]; + null === a[De] && (a[De] = uu(E, ge)); + } else if ("number" == typeof ge) + switch (1 & ge) { + case 0: + const De = v0(ge); + let ke, qe; + if ( + (null === R && ((R = De), (W = nl(E, v))), + De === R + ? ((ke = v), (qe = W)) + : ((ke = null), (qe = be(a[De]))), + null !== qe) + ) { + const sn = y0(ge); + Mo(E, qe, a[sn], ke, !1); + const wn = La(e, sn); + if (null !== wn && "object" == typeof wn) { + const Jt = bl(wn, a); + null !== Jt && C0(e, wn.create[Jt], a, a[wn.anchorIdx]); + } + } + break; + case 1: + const Pt = t[++se], + Yt = t[++se]; + Ru(E, V(ge >>> 1, a), null, null, Pt, Yt, null); + break; + default: + throw new Error( + `Unable to determine the type of mutate operation for "${ge}"` + ); + } + else + switch (ge) { + case yl: + const De = t[++se], + ke = t[++se]; + null === a[ke] && Xr((a[ke] = O_(E, De)), a); + break; + case vl: + const qe = t[++se], + Ct = t[++se]; + null === a[Ct] && Xr((a[Ct] = cu(E, qe, null)), a); + } + } + } + function E0(e, t, a, v, E) { + for (let R = 0; R < a.length; R++) { + const W = a[R], + se = a[++R]; + if (W & E) { + let ge = ""; + for (let De = R + 1; De <= R + se; De++) { + const ke = a[De]; + if ("string" == typeof ke) ge += ke; + else if ("number" == typeof ke) + if (ke < 0) ge += T(t[v - ke]); + else { + const qe = ke >>> 2; + switch (3 & ke) { + case 1: + const Ct = a[++De], + Pt = a[++De], + Yt = e.data[qe]; + "string" == typeof Yt + ? Ru(t[11], t[qe], null, Yt, Ct, ge, Pt) + : ms(e, Yt, t, Ct, ge, t[11], Pt, !1); + break; + case 0: + const sn = t[qe]; + null !== sn && Fh(t[11], sn, ge); + break; + case 2: + Db(e, La(e, qe), t, ge); + break; + case 3: + w0(e, La(e, qe), v, t); + } + } + } + } else { + const ge = a[R + 1]; + if (ge > 0 && 3 == (3 & ge)) { + const ke = La(e, ge >>> 2); + t[ke.currentCaseLViewIndex] < 0 && w0(e, ke, v, t); + } + } + R += se; + } + } + function w0(e, t, a, v) { + let E = v[t.currentCaseLViewIndex]; + if (null !== E) { + let R = ka; + E < 0 && ((E = v[t.currentCaseLViewIndex] = ~E), (R = -1)), + E0(e, v, t.update[E], a, R); + } + } + function Db(e, t, a, v) { + const E = (function (e, t) { + let a = e.cases.indexOf(t); + if (-1 === a) + switch (e.type) { + case 1: { + const v = (function (e, t) { + const a = c0(t)(parseInt(e, 10)), + v = hb[a]; + return void 0 !== v ? v : "other"; + })(t, h0); + (a = e.cases.indexOf(v)), + -1 === a && "other" !== v && (a = e.cases.indexOf("other")); + break; + } + case 0: + a = e.cases.indexOf("other"); + } + return -1 === a ? null : a; + })(t, v); + if ( + bl(t, a) !== E && + (M0(e, t, a), + (a[t.currentCaseLViewIndex] = null === E ? null : ~E), + null !== E) + ) { + const W = a[t.anchorIdx]; + W && C0(e, t.create[E], a, W); + } + } + function M0(e, t, a) { + let v = bl(t, a); + if (null !== v) { + const E = t.remove[v]; + for (let R = 0; R < E.length; R++) { + const W = E[R]; + if (W > 0) { + const se = V(W, a); + null !== se && Yh(a[11], se); + } else M0(e, La(e, ~W), a); + } + } + } + function xb() { + const e = []; + let a, + v, + t = -1; + function R(se, ge) { + t = 0; + const De = bl(se, ge); + v = null !== De ? se.remove[De] : Qe; + } + function W() { + if (t < v.length) { + const se = v[t++]; + return se > 0 ? a[se] : (e.push(t, v), R(a[1].data[~se], a), W()); + } + return 0 === e.length ? null : ((v = e.pop()), (t = e.pop()), W()); + } + return function (se, ge) { + for (a = ge; e.length; ) e.pop(); + return R(se.value, ge), W; + }; + } + const Cl = /\ufffd(\d+):?\d*\ufffd/gi, + Ib = /({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi, + Ab = /\ufffd(\d+)\ufffd/, + D0 = /^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/, + Ob = /\ufffd\/?\*(\d+:\d+)\ufffd/gi, + Rb = /\ufffd(\/?[#*]\d+):?\d*\ufffd/gi, + Lb = /\uE500/g; + function T0(e, t, a, v, E, R, W) { + const se = Bo(e, v, 1, null); + let ge = se << pr.SHIFT, + De = We(); + t === De && (De = null), + null === De && (ge |= pr.APPEND_EAGERLY), + W && + ((ge |= pr.COMMENT), + (function (e) { + void 0 === su && (su = e()); + })(xb)), + E.push(ge, null === R ? "" : R); + const ke = xu(e, se, W ? 32 : 1, null === R ? "" : R, null); + g0(a, ke); + const qe = ke.index; + return ( + rt(ke, !1), + null !== De && + t !== De && + (function (e, t) { + let a = e.insertBeforeIndex; + null === a + ? (Kh(p0, m0), (a = e.insertBeforeIndex = [null, t])) + : ((function (e, t, a) { + e != t && Le(a, e, t, "=="); + })(Array.isArray(a), !0, "Expecting array here"), + a.push(t)); + })(De, qe), + ke + ); + } + function Fb(e, t, a, v, E, R, W) { + const se = W.match(Cl), + ge = T0(e, t, a, R, v, se ? null : W, !1); + se && na(E, W, ge.index, null, 0, null); + } + function na(e, t, a, v, E, R) { + const W = e.length, + se = W + 1; + e.push(null, null); + const ge = W + 2, + De = t.split(Cl); + let ke = 0; + for (let qe = 0; qe < De.length; qe++) { + const Ct = De[qe]; + if (1 & qe) { + const Pt = E + parseInt(Ct, 10); + e.push(-1 - Pt), (ke |= x0(Pt)); + } else "" !== Ct && e.push(Ct); + } + return ( + e.push((a << 2) | (v ? 1 : 0)), + v && e.push(v, R), + (e[W] = ke), + (e[se] = e.length - ge), + ke + ); + } + function Ub(e) { + let t = 0; + for (let a = 0; a < e.length; a++) { + const v = e[a]; + "number" == typeof v && v < 0 && t++; + } + return t; + } + function x0(e) { + return 1 << Math.min(e, 31); + } + function I0(e) { + let t, + R, + a = "", + v = 0, + E = !1; + for (; null !== (t = Ob.exec(e)); ) + E + ? t[0] === `\ufffd/*${R}\ufffd` && ((v = t.index), (E = !1)) + : ((a += e.substring(v, t.index + t[0].length)), + (R = t[1]), + (E = !0)); + return (a += e.substr(v)), a; + } + function A0(e, t, a, v, E, R) { + let W = 0; + const se = { + type: E.type, + currentCaseLViewIndex: Bo(e, t, 1, null), + anchorIdx: R, + cases: [], + create: [], + remove: [], + update: [], + }; + (function (e, t, a) { + e.push(x0(t.mainBinding), 2, -1 - t.mainBinding, (a << 2) | 2); + })(a, E, R), + (function (e, t, a) { + const v = e.data[t]; + null === v ? (e.data[t] = a) : (v.value = a); + })(e, R, se); + const ge = E.values; + for (let De = 0; De < ge.length; De++) { + const ke = ge[De], + qe = []; + for (let Ct = 0; Ct < ke.length; Ct++) { + const Pt = ke[Ct]; + if ("string" != typeof Pt) { + const Yt = qe.push(Pt) - 1; + ke[Ct] = `\x3c!--\ufffd${Yt}\ufffd--\x3e`; + } + } + W = Hb(e, se, t, a, v, E.cases[De], ke.join(""), qe) | W; + } + W && + (function (e, t, a) { + e.push(t, 1, (a << 2) | 3); + })(a, W, R); + } + function $b(e) { + const t = [], + a = []; + let v = 1, + E = 0; + const R = Xc( + (e = e.replace(D0, function (W, se, ge) { + return ( + (v = "select" === ge ? 0 : 1), + (E = parseInt(se.substr(1), 10)), + "" + ); + })) + ); + for (let W = 0; W < R.length; ) { + let se = R[W++].trim(); + 1 === v && (se = se.replace(/\s*(?:=)?(\w+)\s*/, "$1")), + se.length && t.push(se); + const ge = Xc(R[W++]); + t.length > a.length && a.push(ge); + } + return { type: v, mainBinding: E, cases: t, values: a }; + } + function Xc(e) { + if (!e) return []; + let t = 0; + const a = [], + v = [], + E = /[{}]/g; + let R; + for (E.lastIndex = 0; (R = E.exec(e)); ) { + const se = R.index; + if ("}" == R[0]) { + if ((a.pop(), 0 == a.length)) { + const ge = e.substring(t, se); + D0.test(ge) ? v.push($b(ge)) : v.push(ge), (t = se + 1); + } + } else { + if (0 == a.length) { + const ge = e.substring(t, se); + v.push(ge), (t = se + 1); + } + a.push("{"); + } + } + const W = e.substring(t); + return v.push(W), v; + } + function Hb(e, t, a, v, E, R, W, se) { + const ge = [], + De = [], + ke = []; + t.cases.push(R), + t.create.push(ge), + t.remove.push(De), + t.update.push(ke); + const Ct = sh(Tr()).getInertBodyElement(W), + Pt = ql(Ct) || Ct; + return Pt ? O0(e, t, a, v, ge, De, ke, Pt, E, se, 0) : 0; + } + function O0(e, t, a, v, E, R, W, se, ge, De, ke) { + let qe = 0, + Ct = se.firstChild; + for (; Ct; ) { + const Pt = Bo(e, a, 1, null); + switch (Ct.nodeType) { + case Node.ELEMENT_NODE: + const Yt = Ct, + sn = Yt.tagName.toLowerCase(); + if (Ql.hasOwnProperty(sn)) { + Zc(E, vl, sn, ge, Pt), (e.data[Pt] = sn); + const Un = Yt.attributes; + for (let yi = 0; yi < Un.length; yi++) { + const Bi = Un.item(yi), + vs = Bi.name.toLowerCase(); + Bi.value.match(Cl) + ? ch.hasOwnProperty(vs) && + na( + W, + Bi.value, + Pt, + Bi.name, + 0, + Xl[vs] ? _a : Zl[vs] ? oh : null + ) + : Kb(E, Pt, Bi); + } + (qe = O0(e, t, a, v, E, R, W, Ct, Pt, De, ke + 1) | qe), + R0(R, Pt, ke); + } + break; + case Node.TEXT_NODE: + const dn = Ct.textContent || "", + wn = dn.match(Cl); + Zc(E, null, wn ? "" : dn, ge, Pt), + R0(R, Pt, ke), + wn && (qe = na(W, dn, Pt, null, 0, null) | qe); + break; + case Node.COMMENT_NODE: + const Jt = Ab.exec(Ct.textContent || ""); + if (Jt) { + const yi = De[parseInt(Jt[1], 10)]; + Zc(E, yl, "", ge, Pt), A0(e, a, v, ge, yi, Pt), jb(R, Pt, ke); + } + } + Ct = Ct.nextSibling; + } + return qe; + } + function R0(e, t, a) { + 0 === a && e.push(t); + } + function jb(e, t, a) { + 0 === a && (e.push(~t), e.push(t)); + } + function Zc(e, t, a, v, E) { + null !== t && e.push(t), + e.push( + a, + E, + (function (e, t, a) { + return 0 | (t << 17) | (a << 1); + })(0, v, E) + ); + } + function Kb(e, t, a) { + e.push((t << 1) | 1, a.name, a.value); + } + const Gb = /\[(\ufffd.+?\ufffd?)\]/, + Yb = /\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g, + Qb = /({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g, + Xb = /{([A-Z0-9_]+)}/g, + Zb = /\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g, + qb = /\/\*/, + Jb = /\d+\:(\d+)/; + function qc(e, t, a = -1) { + const v = N(), + E = we(), + R = 20 + e, + W = hi(v.consts, t), + se = We(); + v.firstCreatePass && + (function (e, t, a, v, E, R) { + const W = We(), + se = [], + ge = [], + De = [[]]; + E = (function (e, t) { + if ( + (function (e) { + return -1 === e; + })(t) + ) + return I0(e); + { + const a = e.indexOf(`:${t}\ufffd`) + 2 + t.toString().length, + v = e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`)); + return I0(e.substring(a, v)); + } + })(E, R); + const ke = (function (e) { + return e.replace(Lb, " "); + })(E).split(Rb); + for (let qe = 0; qe < ke.length; qe++) { + let Ct = ke[qe]; + if (0 == (1 & qe)) { + const Pt = Xc(Ct); + for (let Yt = 0; Yt < Pt.length; Yt++) { + let sn = Pt[Yt]; + if (0 == (1 & Yt)) { + const dn = sn; + "" !== dn && Fb(e, W, De[0], se, ge, a, dn); + } else { + const dn = sn; + if ("object" != typeof dn) + throw new Error( + `Unable to parse ICU expression in "${E}" message.` + ); + A0(e, a, ge, t, dn, T0(e, W, De[0], a, se, "", !0).index); + } + } + } else { + const Pt = 47 === Ct.charCodeAt(0), + sn = + (Ct.charCodeAt(Pt ? 1 : 0), + 20 + Number.parseInt(Ct.substring(Pt ? 2 : 1))); + if (Pt) De.shift(), rt(We(), !1); + else { + const dn = Cb(e, De[0], sn); + De.unshift([]), rt(dn, !0); + } + } + } + e.data[v] = { create: se, update: ge }; + })(v, null === se ? 0 : se.index, E, R, W, a); + const ge = v.data[R], + ke = Vh(v, se === E[6] ? null : se, E); + (function (e, t, a, v) { + const E = e[11]; + for (let R = 0; R < t.length; R++) { + const W = t[R++], + se = t[R], + ge = (W & pr.COMMENT) === pr.COMMENT, + De = (W & pr.APPEND_EAGERLY) === pr.APPEND_EAGERLY, + ke = W >>> pr.SHIFT; + let qe = e[ke]; + null === qe && (qe = e[ke] = ge ? E.createComment(se) : uu(E, se)), + De && null !== a && Mo(E, a, qe, v, !1); + } + })(E, ge.create, ke, se && 8 & se.type ? E[se.index] : null), + sr(!0); + } + function Jc() { + sr(!1); + } + function k0(e, t, a) { + qc(e, t, a), Jc(); + } + function P0(e, t) { + const a = N(); + !(function (e, t, a) { + const E = pe().index, + R = []; + if (e.firstCreatePass && null === e.data[t]) { + for (let W = 0; W < a.length; W += 2) { + const se = a[W], + ge = a[W + 1]; + if ("" !== ge) { + if (Ib.test(ge)) + throw new Error( + `ICU expressions are not supported in attributes. Message: "${ge}".` + ); + na(R, ge, E, se, Ub(R), null); + } + } + e.data[t] = R; + } + })(a, e + 20, hi(a.consts, t)); + } + function ed(e) { + return ( + (function (e) { + e && (ka |= 1 << Math.min(Pa, 31)), Pa++; + })(Zr(we(), Kn(), e)), + ed + ); + } + function F0(e) { + !(function (e, t, a) { + if (Pa > 0) { + const v = e.data[a]; + E0(e, t, Array.isArray(v) ? v : v.update, _n() - Pa - 1, ka); + } + (ka = 0), (Pa = 0); + })(N(), we(), e + 20); + } + function N0(e, t = {}) { + return (function (e, t = {}) { + let a = e; + if (Gb.test(e)) { + const v = {}, + E = [0]; + a = a.replace(Yb, (R, W, se) => { + const ge = W || se, + De = v[ge] || []; + if ( + (De.length || + (ge.split("|").forEach((sn) => { + const dn = sn.match(Jb), + wn = dn ? parseInt(dn[1], 10) : 0, + Jt = qb.test(sn); + De.push([wn, Jt, sn]); + }), + (v[ge] = De)), + !De.length) + ) + throw new Error( + `i18n postprocess: unmatched placeholder - ${ge}` + ); + const ke = E[E.length - 1]; + let qe = 0; + for (let sn = 0; sn < De.length; sn++) + if (De[sn][0] === ke) { + qe = sn; + break; + } + const [Ct, Pt, Yt] = De[qe]; + return ( + Pt ? E.pop() : ke !== Ct && E.push(Ct), De.splice(qe, 1), Yt + ); + }); + } + return ( + Object.keys(t).length && + ((a = a.replace(Qb, (v, E, R, W, se, ge) => + t.hasOwnProperty(R) ? `${E}${t[R]}${ge}` : v + )), + (a = a.replace(Xb, (v, E) => (t.hasOwnProperty(E) ? t[E] : v))), + (a = a.replace(Zb, (v, E) => { + if (t.hasOwnProperty(E)) { + const R = t[E]; + if (!R.length) + throw new Error( + `i18n postprocess: unmatched ICU - ${v} with key: ${E}` + ); + return R.shift(); + } + return v; + }))), + a + ); + })(e, t); + } + function td(e, t, a, v, E) { + if (((e = c(e)), Array.isArray(e))) + for (let R = 0; R < e.length; R++) td(e[R], t, a, v, E); + else { + const R = N(), + W = we(); + let se = Ho(e) ? e : c(e.provide), + ge = Hf(e); + const De = pe(), + ke = 1048575 & De.providerIndexes, + qe = De.directiveStart, + Ct = De.providerIndexes >> 20; + if (Ho(e) || !e.multi) { + const Pt = new rs(ge, E, Aa), + Yt = id(se, t, E ? ke : ke + Ct, qe); + -1 === Yt + ? (Gr(Dn(De, W), R, se), + nd(R, e, t.length), + t.push(se), + De.directiveStart++, + De.directiveEnd++, + E && (De.providerIndexes += 1048576), + a.push(Pt), + W.push(Pt)) + : ((a[Yt] = Pt), (W[Yt] = Pt)); + } else { + const Pt = id(se, t, ke + Ct, qe), + Yt = id(se, t, ke, ke + Ct), + sn = Pt >= 0 && a[Pt], + dn = Yt >= 0 && a[Yt]; + if ((E && !dn) || (!E && !sn)) { + Gr(Dn(De, W), R, se); + const wn = (function (e, t, a, v, E) { + const R = new rs(e, a, Aa); + return ( + (R.multi = []), + (R.index = t), + (R.componentProviders = 0), + U0(R, E, v && !a), + R + ); + })(E ? r1 : n1, a.length, E, v, ge); + !E && dn && (a[Yt].providerFactory = wn), + nd(R, e, t.length, 0), + t.push(se), + De.directiveStart++, + De.directiveEnd++, + E && (De.providerIndexes += 1048576), + a.push(wn), + W.push(wn); + } else nd(R, e, Pt > -1 ? Pt : Yt, U0(a[E ? Yt : Pt], ge, !E && v)); + !E && v && dn && a[Yt].componentProviders++; + } + } + } + function nd(e, t, a, v) { + const E = Ho(t), + R = (function (e) { + return !!e.useClass; + })(t); + if (E || R) { + const ge = (R ? c(t.useClass) : t).prototype.ngOnDestroy; + if (ge) { + const De = e.destroyHooks || (e.destroyHooks = []); + if (!E && t.multi) { + const ke = De.indexOf(a); + -1 === ke ? De.push(a, [v, ge]) : De[ke + 1].push(v, ge); + } else De.push(a, ge); + } + } + } + function U0(e, t, a) { + return a && e.componentProviders++, e.multi.push(t) - 1; + } + function id(e, t, a, v) { + for (let E = a; E < v; E++) if (t[E] === e) return E; + return -1; + } + function n1(e, t, a, v) { + return rd(this.multi, []); + } + function r1(e, t, a, v) { + const E = this.multi; + let R; + if (this.providerFactory) { + const W = this.providerFactory.componentProviders, + se = go(a, a[1], this.providerFactory.index, v); + (R = se.slice(0, W)), rd(E, R); + for (let ge = W; ge < se.length; ge++) R.push(se[ge]); + } else (R = []), rd(E, R); + return R; + } + function rd(e, t) { + for (let a = 0; a < e.length; a++) t.push((0, e[a])()); + return t; + } + function B0(e, t = []) { + return (a) => { + a.providersResolver = (v, E) => + (function (e, t, a) { + const v = N(); + if (v.firstCreatePass) { + const E = bi(e); + td(a, v.data, v.blueprint, E, !0), + td(t, v.data, v.blueprint, E, !1); + } + })(v, E ? E(e) : e, t); + }; + } + class V0 {} + class El {} + class a1 { + resolveComponentFactory(t) { + throw (function (e) { + const t = Error( + `No component factory found for ${h( + e + )}. Did you add it to @NgModule.entryComponents?` + ); + return (t.ngComponent = e), t; + })(t); + } + } + let Na = (() => { + class e {} + return (e.NULL = new a1()), e; + })(); + function l1() { + return ia(pe(), we()); + } + function ia(e, t) { + return new Ua(ve(e, t)); + } + let Ua = (() => { + class e { + constructor(a) { + this.nativeElement = a; + } + } + return (e.__NG_ELEMENT_ID__ = l1), e; + })(); + function u1(e) { + return e instanceof Ua ? e.nativeElement : e; + } + class H0 {} + let c1 = (() => { + class e {} + return ( + (e.__NG_ELEMENT_ID__ = () => + (function () { + const e = we(), + a = In(pe().index, e); + return (function (e) { + return e[11]; + })(Xn(a) ? a : e); + })()), + e + ); + })(), + j0 = (() => { + class e {} + return ( + (e.ɵprov = Ue({ + token: e, + providedIn: "root", + factory: () => null, + })), + e + ); + })(); + class W0 { + constructor(t) { + (this.full = t), + (this.major = t.split(".")[0]), + (this.minor = t.split(".")[1]), + (this.patch = t.split(".").slice(2).join(".")); + } + } + const z0 = new W0("13.1.1"), + wl = {}; + function Ml(e, t, a, v, E = !1) { + for (; null !== a; ) { + const R = t[a.index]; + if ((null !== R && v.push(be(R)), pi(R))) + for (let se = 10; se < R.length; se++) { + const ge = R[se], + De = ge[1].firstChild; + null !== De && Ml(ge[1], ge, De, v); + } + const W = a.type; + if (8 & W) Ml(e, t, a.child, v); + else if (32 & W) { + const se = ou(a, t); + let ge; + for (; (ge = se()); ) v.push(ge); + } else if (16 & W) { + const se = Gh(t, a); + if (Array.isArray(se)) v.push(...se); + else { + const ge = Ea(t[16]); + Ml(ge[1], ge, se, v, !0); + } + } + a = E ? a.projectionNext : a.next; + } + return v; + } + class ra { + constructor(t, a) { + (this._lView = t), + (this._cdRefInjectingView = a), + (this._appRef = null), + (this._attachedToViewContainer = !1); + } + get rootNodes() { + const t = this._lView, + a = t[1]; + return Ml(a, t, a.firstChild, []); + } + get context() { + return this._lView[8]; + } + set context(t) { + this._lView[8] = t; + } + get destroyed() { + return 256 == (256 & this._lView[2]); + } + destroy() { + if (this._appRef) this._appRef.detachView(this); + else if (this._attachedToViewContainer) { + const t = this._lView[3]; + if (pi(t)) { + const a = t[8], + v = a ? a.indexOf(this) : -1; + v > -1 && (du(t, v), Co(a, v)); + } + this._attachedToViewContainer = !1; + } + Uh(this._lView[1], this._lView); + } + onDestroy(t) { + Ef(this._lView[1], this._lView, null, t); + } + markForCheck() { + ku(this._cdRefInjectingView || this._lView); + } + detach() { + this._lView[2] &= -129; + } + reattach() { + this._lView[2] |= 128; + } + detectChanges() { + Fu(this._lView[1], this._lView, this.context); + } + checkNoChanges() { + !(function (e, t, a) { + Pn(!0); + try { + Fu(e, t, a); + } finally { + Pn(!1); + } + })(this._lView[1], this._lView, this.context); + } + attachToViewContainerRef() { + if (this._appRef) + throw new Error( + "This view is already attached directly to the ApplicationRef!" + ); + this._attachedToViewContainer = !0; + } + detachFromAppRef() { + var t; + (this._appRef = null), + wa(this._lView[1], (t = this._lView), t[11], 2, null, null); + } + attachToAppRef(t) { + if (this._attachedToViewContainer) + throw new Error( + "This view is already attached to a ViewContainer!" + ); + this._appRef = t; + } + } + class f1 extends ra { + constructor(t) { + super(t), (this._view = t); + } + detectChanges() { + Of(this._view); + } + checkNoChanges() { + !(function (e) { + Pn(!0); + try { + Of(e); + } finally { + Pn(!1); + } + })(this._view); + } + get context() { + return null; + } + } + class K0 extends Na { + constructor(t) { + super(), (this.ngModule = t); + } + resolveComponentFactory(t) { + const a = Ot(t); + return new Sl(a, this.ngModule); + } + } + function G0(e) { + const t = []; + for (let a in e) + e.hasOwnProperty(a) && t.push({ propName: e[a], templateName: a }); + return t; + } + const m1 = new lr("SCHEDULER_TOKEN", { + providedIn: "root", + factory: () => Th, + }); + class Sl extends El { + constructor(t, a) { + super(), + (this.componentDef = t), + (this.ngModule = a), + (this.componentType = t.type), + (this.selector = t.selectors.map(J_).join(",")), + (this.ngContentSelectors = t.ngContentSelectors + ? t.ngContentSelectors + : []), + (this.isBoundToModule = !!a); + } + get inputs() { + return G0(this.componentDef.inputs); + } + get outputs() { + return G0(this.componentDef.outputs); + } + create(t, a, v, E) { + const R = (E = E || this.ngModule) + ? (function (e, t) { + return { + get: (a, v, E) => { + const R = e.get(a, wl, E); + return R !== wl || v === wl ? R : t.get(a, v, E); + }, + }; + })(t, E.injector) + : t, + W = R.get(H0, zr), + se = R.get(j0, null), + ge = W.createRenderer(null, this.componentDef), + De = this.componentDef.selectors[0][0] || "div", + ke = v + ? Cf(ge, v, this.componentDef.encapsulation) + : cu( + W.createRenderer(null, this.componentDef), + De, + (function (e) { + const t = e.toLowerCase(); + return "svg" === t ? Fr : "math" === t ? ls : null; + })(De) + ), + qe = this.componentDef.onPush ? 576 : 528, + Ct = ep(), + Pt = ll(0, null, null, 1, 0, null, null, null, null, null), + Yt = Ma(null, Pt, Ct, qe, null, null, W, ge, se, R); + let sn, dn; + Yi(Yt); + try { + const wn = qf(ke, this.componentDef, Yt, W, ge); + if (ke) + if (v) Mt(ge, ke, ["ng-version", z0.full]); + else { + const { attrs: Jt, classes: Un } = (function (e) { + const t = [], + a = []; + let v = 1, + E = 2; + for (; v < e.length; ) { + let R = e[v]; + if ("string" == typeof R) + 2 === E + ? "" !== R && t.push(R, e[++v]) + : 8 === E && a.push(R); + else { + if (!Ls(E)) break; + E = R; + } + v++; + } + return { attrs: t, classes: a }; + })(this.componentDef.selectors[0]); + Jt && Mt(ge, ke, Jt), + Un && Un.length > 0 && gu(ge, ke, Un.join(" ")); + } + if (((dn = Nt(Pt, 20)), void 0 !== a)) { + const Jt = (dn.projection = []); + for (let Un = 0; Un < this.ngContentSelectors.length; Un++) { + const yi = a[Un]; + Jt.push(null != yi ? Array.from(yi) : null); + } + } + (sn = Jf(wn, this.componentDef, Yt, Ct, [tp])), Sa(Pt, Yt, null); + } finally { + Mn(); + } + return new Y0(this.componentType, sn, ia(dn, Yt), Yt, dn); + } + } + class Y0 extends V0 { + constructor(t, a, v, E, R) { + super(), + (this.location = v), + (this._rootLView = E), + (this._tNode = R), + (this.instance = a), + (this.hostView = this.changeDetectorRef = new f1(E)), + (this.componentType = t); + } + get injector() { + return new lo(this._tNode, this._rootLView); + } + destroy() { + this.hostView.destroy(); + } + onDestroy(t) { + this.hostView.onDestroy(t); + } + } + function Q0(e, t, a, v) { + return _e(() => { + const E = e; + null !== t && + (E.hasOwnProperty("decorators") && void 0 !== E.decorators + ? E.decorators.push(...t) + : (E.decorators = t)), + null !== a && (E.ctorParameters = a), + null !== v && + (E.propDecorators = + E.hasOwnProperty("propDecorators") && + void 0 !== E.propDecorators + ? Object.assign(Object.assign({}, E.propDecorators), v) + : v); + }); + } + class sa {} + class X0 {} + const oa = new Map(); + function q0(e) { + const t = new Set(); + !(function a(v) { + const E = On(v, !0), + R = E.id; + if (null !== R) { + (function (e, t, a) { + if (t && t !== a) + throw new Error( + `Duplicate module registered for ${e} - ${h(t)} vs ${h( + t.name + )}` + ); + })(R, oa.get(R), v), + oa.set(R, v); + } + const W = zs(E.imports); + for (const se of W) t.has(se) || (t.add(se), a(se)); + })(e); + } + function J0(e) { + return oa.get(e) || cn[e]; + } + function v1(e, t) { + return new sd(e, null != t ? t : null); + } + class sd extends sa { + constructor(t, a) { + super(), + (this._parent = a), + (this._bootstrapComponents = []), + (this.injector = this), + (this.destroyCbs = []), + (this.componentFactoryResolver = new K0(this)); + const v = On(t); + (this._bootstrapComponents = zs(v.bootstrap)), + (this._r3Injector = $f( + t, + a, + [ + { provide: sa, useValue: this }, + { provide: Na, useValue: this.componentFactoryResolver }, + ], + h(t) + )), + this._r3Injector._resolveInjectorDefTypes(), + (this.instance = this.get(t)); + } + get(t, a = gs.THROW_IF_NOT_FOUND, v = Ee.Default) { + return t === gs || t === sa || t === dl + ? this + : this._r3Injector.get(t, a, v); + } + destroy() { + const t = this._r3Injector; + !t.destroyed && t.destroy(), + this.destroyCbs.forEach((a) => a()), + (this.destroyCbs = null); + } + onDestroy(t) { + this.destroyCbs.push(t); + } + } + class Dl extends X0 { + constructor(t) { + super(), (this.moduleType = t), null !== On(t) && q0(t); + } + create(t) { + return new sd(this.moduleType, t); + } + } + function em(e, t, a) { + const v = Ln() + e, + E = we(); + return E[v] === ei ? Ys(E, v, a ? t.call(a) : t()) : xa(E, v); + } + function tm(e, t, a, v) { + return cm(we(), Ln(), e, t, a, v); + } + function nm(e, t, a, v, E) { + return dm(we(), Ln(), e, t, a, v, E); + } + function im(e, t, a, v, E, R) { + return hm(we(), Ln(), e, t, a, v, E, R); + } + function rm(e, t, a, v, E, R, W) { + return fm(we(), Ln(), e, t, a, v, E, R, W); + } + function sm(e, t, a, v, E, R, W, se) { + const ge = Ln() + e, + De = we(), + ke = Os(De, ge, a, v, E, R); + return Zr(De, ge + 4, W) || ke + ? Ys(De, ge + 5, se ? t.call(se, a, v, E, R, W) : t(a, v, E, R, W)) + : xa(De, ge + 5); + } + function om(e, t, a, v, E, R, W, se, ge) { + const De = Ln() + e, + ke = we(), + qe = Os(ke, De, a, v, E, R); + return So(ke, De + 4, W, se) || qe + ? Ys( + ke, + De + 6, + ge ? t.call(ge, a, v, E, R, W, se) : t(a, v, E, R, W, se) + ) + : xa(ke, De + 6); + } + function am(e, t, a, v, E, R, W, se, ge, De) { + const ke = Ln() + e, + qe = we(); + let Ct = Os(qe, ke, a, v, E, R); + return fl(qe, ke + 4, W, se, ge) || Ct + ? Ys( + qe, + ke + 7, + De ? t.call(De, a, v, E, R, W, se, ge) : t(a, v, E, R, W, se, ge) + ) + : xa(qe, ke + 7); + } + function lm(e, t, a, v, E, R, W, se, ge, De, ke) { + const qe = Ln() + e, + Ct = we(), + Pt = Os(Ct, qe, a, v, E, R); + return Os(Ct, qe + 4, W, se, ge, De) || Pt + ? Ys( + Ct, + qe + 8, + ke + ? t.call(ke, a, v, E, R, W, se, ge, De) + : t(a, v, E, R, W, se, ge, De) + ) + : xa(Ct, qe + 8); + } + function um(e, t, a, v) { + return pm(we(), Ln(), e, t, a, v); + } + function Ba(e, t) { + const a = e[t]; + return a === ei ? void 0 : a; + } + function cm(e, t, a, v, E, R) { + const W = t + a; + return Zr(e, W, E) + ? Ys(e, W + 1, R ? v.call(R, E) : v(E)) + : Ba(e, W + 1); + } + function dm(e, t, a, v, E, R, W) { + const se = t + a; + return So(e, se, E, R) + ? Ys(e, se + 2, W ? v.call(W, E, R) : v(E, R)) + : Ba(e, se + 2); + } + function hm(e, t, a, v, E, R, W, se) { + const ge = t + a; + return fl(e, ge, E, R, W) + ? Ys(e, ge + 3, se ? v.call(se, E, R, W) : v(E, R, W)) + : Ba(e, ge + 3); + } + function fm(e, t, a, v, E, R, W, se, ge) { + const De = t + a; + return Os(e, De, E, R, W, se) + ? Ys(e, De + 4, ge ? v.call(ge, E, R, W, se) : v(E, R, W, se)) + : Ba(e, De + 4); + } + function pm(e, t, a, v, E, R) { + let W = t + a, + se = !1; + for (let ge = 0; ge < E.length; ge++) Zr(e, W++, E[ge]) && (se = !0); + return se ? Ys(e, W, v.apply(R, E)) : Ba(e, W); + } + function mm(e, t) { + const a = N(); + let v; + const E = e + 20; + a.firstCreatePass + ? ((v = (function (e, t) { + if (t) + for (let a = t.length - 1; a >= 0; a--) { + const v = t[a]; + if (e === v.name) return v; + } + })(t, a.pipeRegistry)), + (a.data[E] = v), + v.onDestroy && + (a.destroyHooks || (a.destroyHooks = [])).push(E, v.onDestroy)) + : (v = a.data[E]); + const R = v.factory || (v.factory = ir(v.type)), + W = D(Aa); + try { + const se = Ve(!1), + ge = R(); + return Ve(se), op(a, we(), E, ge), ge; + } finally { + D(W); + } + } + function gm(e, t, a) { + const v = e + 20, + E = we(), + R = nn(E, v); + return Va(E, v) ? cm(E, Ln(), t, R.transform, a, R) : R.transform(a); + } + function _m(e, t, a, v) { + const E = e + 20, + R = we(), + W = nn(R, E); + return Va(R, E) + ? dm(R, Ln(), t, W.transform, a, v, W) + : W.transform(a, v); + } + function vm(e, t, a, v, E) { + const R = e + 20, + W = we(), + se = nn(W, R); + return Va(W, R) + ? hm(W, Ln(), t, se.transform, a, v, E, se) + : se.transform(a, v, E); + } + function ym(e, t, a, v, E, R) { + const W = e + 20, + se = we(), + ge = nn(se, W); + return Va(se, W) + ? fm(se, Ln(), t, ge.transform, a, v, E, R, ge) + : ge.transform(a, v, E, R); + } + function bm(e, t, a) { + const v = e + 20, + E = we(), + R = nn(E, v); + return Va(E, v) + ? pm(E, Ln(), t, R.transform, a, R) + : R.transform.apply(R, a); + } + function Va(e, t) { + return e[1].data[t].pure; + } + function od(e) { + return (t) => { + setTimeout(e, void 0, t); + }; + } + const Xs = class extends n.xQ { + constructor(t = !1) { + super(), (this.__isAsync = t); + } + emit(t) { + super.next(t); + } + subscribe(t, a, v) { + var E, R, W; + let se = t, + ge = a || (() => null), + De = v; + if (t && "object" == typeof t) { + const qe = t; + (se = null === (E = qe.next) || void 0 === E ? void 0 : E.bind(qe)), + (ge = + null === (R = qe.error) || void 0 === R ? void 0 : R.bind(qe)), + (De = + null === (W = qe.complete) || void 0 === W + ? void 0 + : W.bind(qe)); + } + this.__isAsync && + ((ge = od(ge)), se && (se = od(se)), De && (De = od(De))); + const ke = super.subscribe({ next: se, error: ge, complete: De }); + return t instanceof f.w && t.add(ke), ke; + } + }; + function C1() { + return this._results[jo()](); + } + class Tl { + constructor(t = !1) { + (this._emitDistinctChangesOnly = t), + (this.dirty = !0), + (this._results = []), + (this._changesDetected = !1), + (this._changes = null), + (this.length = 0), + (this.first = void 0), + (this.last = void 0); + const a = jo(), + v = Tl.prototype; + v[a] || (v[a] = C1); + } + get changes() { + return this._changes || (this._changes = new Xs()); + } + get(t) { + return this._results[t]; + } + map(t) { + return this._results.map(t); + } + filter(t) { + return this._results.filter(t); + } + find(t) { + return this._results.find(t); + } + reduce(t, a) { + return this._results.reduce(t, a); + } + forEach(t) { + this._results.forEach(t); + } + some(t) { + return this._results.some(t); + } + toArray() { + return this._results.slice(); + } + toString() { + return this._results.toString(); + } + reset(t, a) { + const v = this; + v.dirty = !1; + const E = os(t); + (this._changesDetected = !(function (e, t, a) { + if (e.length !== t.length) return !1; + for (let v = 0; v < e.length; v++) { + let E = e[v], + R = t[v]; + if ((a && ((E = a(E)), (R = a(R))), R !== E)) return !1; + } + return !0; + })(v._results, E, a)) && + ((v._results = E), + (v.length = E.length), + (v.last = E[this.length - 1]), + (v.first = E[0])); + } + notifyOnChanges() { + this._changes && + (this._changesDetected || !this._emitDistinctChangesOnly) && + this._changes.emit(this); + } + setDirty() { + this.dirty = !0; + } + destroy() { + this.changes.complete(), this.changes.unsubscribe(); + } + } + Symbol; + let $a = (() => { + class e {} + return (e.__NG_ELEMENT_ID__ = M1), e; + })(); + const E1 = $a, + w1 = class extends E1 { + constructor(t, a, v) { + super(), + (this._declarationLView = t), + (this._declarationTContainer = a), + (this.elementRef = v); + } + createEmbeddedView(t) { + const a = this._declarationTContainer.tViews, + v = Ma( + this._declarationLView, + a, + t, + 16, + null, + a.declTNode, + null, + null, + null, + null + ); + v[17] = this._declarationLView[this._declarationTContainer.index]; + const R = this._declarationLView[19]; + return ( + null !== R && (v[19] = R.createEmbeddedView(a)), + Sa(a, v, t), + new ra(v) + ); + } + }; + function M1() { + return xl(pe(), we()); + } + function xl(e, t) { + return 4 & e.type ? new w1(t, e, ia(e, t)) : null; + } + let Il = (() => { + class e {} + return (e.__NG_ELEMENT_ID__ = S1), e; + })(); + function S1() { + return wm(pe(), we()); + } + const D1 = Il, + Cm = class extends D1 { + constructor(t, a, v) { + super(), + (this._lContainer = t), + (this._hostTNode = a), + (this._hostLView = v); + } + get element() { + return ia(this._hostTNode, this._hostLView); + } + get injector() { + return new lo(this._hostTNode, this._hostLView); + } + get parentInjector() { + const t = hs(this._hostTNode, this._hostLView); + if (me(t)) { + const a = Ce(t, this._hostLView), + v = oe(t); + return new lo(a[1].data[v + 8], a); + } + return new lo(null, this._hostLView); + } + clear() { + for (; this.length > 0; ) this.remove(this.length - 1); + } + get(t) { + const a = Em(this._lContainer); + return (null !== a && a[t]) || null; + } + get length() { + return this._lContainer.length - 10; + } + createEmbeddedView(t, a, v) { + const E = t.createEmbeddedView(a || {}); + return this.insert(E, v), E; + } + createComponent(t, a, v, E, R) { + const W = t && !bo(t); + let se; + if (W) se = a; + else { + const qe = a || {}; + (se = qe.index), + (v = qe.injector), + (E = qe.projectableNodes), + (R = qe.ngModuleRef); + } + const ge = W ? t : new Sl(Ot(t)), + De = v || this.parentInjector; + if (!R && null == ge.ngModule && De) { + const qe = De.get(sa, null); + qe && (R = qe); + } + const ke = ge.create(De, E, void 0, R); + return this.insert(ke.hostView, se), ke; + } + insert(t, a) { + const v = t._lView, + E = v[1]; + if (pi(v[3])) { + const ke = this.indexOf(t); + if (-1 !== ke) this.detach(ke); + else { + const qe = v[3], + Ct = new Cm(qe, qe[6], qe[3]); + Ct.detach(Ct.indexOf(t)); + } + } + const R = this._adjustIndex(a), + W = this._lContainer; + !(function (e, t, a, v) { + const E = 10 + v, + R = a.length; + v > 0 && (a[E - 1][4] = t), + v < R - 10 + ? ((t[4] = a[E]), Ya(a, 10 + v, t)) + : (a.push(t), (t[4] = null)), + (t[3] = a); + const W = t[17]; + null !== W && + a !== W && + (function (e, t) { + const a = e[9]; + t[16] !== t[3][3][16] && (e[2] = !0), + null === a ? (e[9] = [t]) : a.push(t); + })(W, t); + const se = t[19]; + null !== se && se.insertView(e), (t[2] |= 128); + })(E, v, W, R); + const se = pu(R, W), + ge = v[11], + De = nl(ge, W[7]); + return ( + null !== De && + (function (e, t, a, v, E, R) { + (v[0] = E), (v[6] = t), wa(e, v, a, 1, E, R); + })(E, W[6], ge, v, De, se), + t.attachToViewContainerRef(), + Ya(ad(W), R, t), + t + ); + } + move(t, a) { + return this.insert(t, a); + } + indexOf(t) { + const a = Em(this._lContainer); + return null !== a ? a.indexOf(t) : -1; + } + remove(t) { + const a = this._adjustIndex(t, -1), + v = du(this._lContainer, a); + v && (Co(ad(this._lContainer), a), Uh(v[1], v)); + } + detach(t) { + const a = this._adjustIndex(t, -1), + v = du(this._lContainer, a); + return v && null != Co(ad(this._lContainer), a) ? new ra(v) : null; + } + _adjustIndex(t, a = 0) { + return null == t ? this.length + a : t; + } + }; + function Em(e) { + return e[8]; + } + function ad(e) { + return e[8] || (e[8] = []); + } + function wm(e, t) { + let a; + const v = t[e.index]; + if (pi(v)) a = v; + else { + let E; + if (8 & e.type) E = be(v); + else { + const R = t[11]; + E = R.createComment(""); + const W = ve(e, t); + Mo( + R, + nl(R, W), + E, + (function (e, t) { + return si(e) ? e.nextSibling(t) : t.nextSibling; + })(R, W), + !1 + ); + } + (t[e.index] = a = Af(v, t, E, e)), ul(t, a); + } + return new Cm(a, e, t); + } + class ld { + constructor(t) { + (this.queryList = t), (this.matches = null); + } + clone() { + return new ld(this.queryList); + } + setDirty() { + this.queryList.setDirty(); + } + } + class ud { + constructor(t = []) { + this.queries = t; + } + createEmbeddedView(t) { + const a = t.queries; + if (null !== a) { + const v = + null !== t.contentQueries ? t.contentQueries[0] : a.length, + E = []; + for (let R = 0; R < v; R++) { + const W = a.getByIndex(R); + E.push(this.queries[W.indexInDeclarationView].clone()); + } + return new ud(E); + } + return null; + } + insertView(t) { + this.dirtyQueriesWithMatches(t); + } + detachView(t) { + this.dirtyQueriesWithMatches(t); + } + dirtyQueriesWithMatches(t) { + for (let a = 0; a < this.queries.length; a++) + null !== Rm(t, a).matches && this.queries[a].setDirty(); + } + } + class Mm { + constructor(t, a, v = null) { + (this.predicate = t), (this.flags = a), (this.read = v); + } + } + class cd { + constructor(t = []) { + this.queries = t; + } + elementStart(t, a) { + for (let v = 0; v < this.queries.length; v++) + this.queries[v].elementStart(t, a); + } + elementEnd(t) { + for (let a = 0; a < this.queries.length; a++) + this.queries[a].elementEnd(t); + } + embeddedTView(t) { + let a = null; + for (let v = 0; v < this.length; v++) { + const E = null !== a ? a.length : 0, + R = this.getByIndex(v).embeddedTView(t, E); + R && + ((R.indexInDeclarationView = v), + null !== a ? a.push(R) : (a = [R])); + } + return null !== a ? new cd(a) : null; + } + template(t, a) { + for (let v = 0; v < this.queries.length; v++) + this.queries[v].template(t, a); + } + getByIndex(t) { + return this.queries[t]; + } + get length() { + return this.queries.length; + } + track(t) { + this.queries.push(t); + } + } + class dd { + constructor(t, a = -1) { + (this.metadata = t), + (this.matches = null), + (this.indexInDeclarationView = -1), + (this.crossesNgTemplate = !1), + (this._appliesToNextNode = !0), + (this._declarationNodeIndex = a); + } + elementStart(t, a) { + this.isApplyingToNode(a) && this.matchTNode(t, a); + } + elementEnd(t) { + this._declarationNodeIndex === t.index && + (this._appliesToNextNode = !1); + } + template(t, a) { + this.elementStart(t, a); + } + embeddedTView(t, a) { + return this.isApplyingToNode(t) + ? ((this.crossesNgTemplate = !0), + this.addMatch(-t.index, a), + new dd(this.metadata)) + : null; + } + isApplyingToNode(t) { + if (this._appliesToNextNode && 1 != (1 & this.metadata.flags)) { + const a = this._declarationNodeIndex; + let v = t.parent; + for (; null !== v && 8 & v.type && v.index !== a; ) v = v.parent; + return a === (null !== v ? v.index : -1); + } + return this._appliesToNextNode; + } + matchTNode(t, a) { + const v = this.metadata.predicate; + if (Array.isArray(v)) + for (let E = 0; E < v.length; E++) { + const R = v[E]; + this.matchTNodeWithReadOption(t, a, I1(a, R)), + this.matchTNodeWithReadOption(t, a, Io(a, t, R, !1, !1)); + } + else + v === $a + ? 4 & a.type && this.matchTNodeWithReadOption(t, a, -1) + : this.matchTNodeWithReadOption(t, a, Io(a, t, v, !1, !1)); + } + matchTNodeWithReadOption(t, a, v) { + if (null !== v) { + const E = this.metadata.read; + if (null !== E) + if (E === Ua || E === Il || (E === $a && 4 & a.type)) + this.addMatch(a.index, -2); + else { + const R = Io(a, t, E, !1, !1); + null !== R && this.addMatch(a.index, R); + } + else this.addMatch(a.index, v); + } + } + addMatch(t, a) { + null === this.matches + ? (this.matches = [t, a]) + : this.matches.push(t, a); + } + } + function I1(e, t) { + const a = e.localNames; + if (null !== a) + for (let v = 0; v < a.length; v += 2) if (a[v] === t) return a[v + 1]; + return null; + } + function O1(e, t, a, v) { + return -1 === a + ? (function (e, t) { + return 11 & e.type ? ia(e, t) : 4 & e.type ? xl(e, t) : null; + })(t, e) + : -2 === a + ? (function (e, t, a) { + return a === Ua + ? ia(t, e) + : a === $a + ? xl(t, e) + : a === Il + ? wm(t, e) + : void 0; + })(e, t, v) + : go(e, e[1], a, t); + } + function Sm(e, t, a, v) { + const E = t[19].queries[v]; + if (null === E.matches) { + const R = e.data, + W = a.matches, + se = []; + for (let ge = 0; ge < W.length; ge += 2) { + const De = W[ge]; + se.push(De < 0 ? null : O1(t, R[De], W[ge + 1], a.metadata.read)); + } + E.matches = se; + } + return E.matches; + } + function hd(e, t, a, v) { + const E = e.queries.getByIndex(a), + R = E.matches; + if (null !== R) { + const W = Sm(e, t, E, a); + for (let se = 0; se < R.length; se += 2) { + const ge = R[se]; + if (ge > 0) v.push(W[se / 2]); + else { + const De = R[se + 1], + ke = t[-ge]; + for (let qe = 10; qe < ke.length; qe++) { + const Ct = ke[qe]; + Ct[17] === Ct[3] && hd(Ct[1], Ct, De, v); + } + if (null !== ke[9]) { + const qe = ke[9]; + for (let Ct = 0; Ct < qe.length; Ct++) { + const Pt = qe[Ct]; + hd(Pt[1], Pt, De, v); + } + } + } + } + } + return v; + } + function Dm(e) { + const t = we(), + a = N(), + v = gr(); + zi(v + 1); + const E = Rm(a, v); + if (e.dirty && ni(t) === (2 == (2 & E.metadata.flags))) { + if (null === E.matches) e.reset([]); + else { + const R = E.crossesNgTemplate ? hd(a, t, v, []) : Sm(a, t, E, v); + e.reset(R, u1), e.notifyOnChanges(); + } + return !0; + } + return !1; + } + function Tm(e, t, a) { + const v = N(); + v.firstCreatePass && + (Om(v, new Mm(e, t, a), -1), + 2 == (2 & t) && (v.staticViewQueries = !0)), + Am(v, we(), t); + } + function xm(e, t, a, v) { + const E = N(); + if (E.firstCreatePass) { + const R = pe(); + Om(E, new Mm(t, a, v), R.index), + (function (e, t) { + const a = e.contentQueries || (e.contentQueries = []); + t !== (a.length ? a[a.length - 1] : -1) && + a.push(e.queries.length - 1, t); + })(E, e), + 2 == (2 & a) && (E.staticContentQueries = !0); + } + Am(E, we(), a); + } + function Im() { + return (e = we()), (t = gr()), e[19].queries[t].queryList; + var e, t; + } + function Am(e, t, a) { + const v = new Tl(4 == (4 & a)); + Ef(e, t, v, v.destroy), + null === t[19] && (t[19] = new ud()), + t[19].queries.push(new ld(v)); + } + function Om(e, t, a) { + null === e.queries && (e.queries = new cd()), + e.queries.track(new dd(t, a)); + } + function Rm(e, t) { + return e.queries.getByIndex(t); + } + function Lm(e, t) { + return xl(e, t); + } + const is = (() => ({ + ɵɵattribute: Yu, + ɵɵattributeInterpolate1: Qu, + ɵɵattributeInterpolate2: Xu, + ɵɵattributeInterpolate3: Zu, + ɵɵattributeInterpolate4: qu, + ɵɵattributeInterpolate5: Ju, + ɵɵattributeInterpolate6: ec, + ɵɵattributeInterpolate7: tc, + ɵɵattributeInterpolate8: nc, + ɵɵattributeInterpolateV: ic, + ɵɵdefineComponent: Me, + ɵɵdefineDirective: He, + ɵɵdefineInjectable: Ue, + ɵɵdefineInjector: at, + ɵɵdefineNgModule: An, + ɵɵdefinePipe: pt, + ɵɵdirectiveInject: Aa, + ɵɵgetInheritedFactory: Ds, + ɵɵinject: Cn, + ɵɵinjectAttribute: da, + ɵɵinvalidFactory: yp, + ɵɵinvalidFactoryDep: Pi, + ɵɵtemplateRefExtractor: Lm, + ɵɵNgOnChangesFeature: Sr, + ɵɵProvidersFeature: B0, + ɵɵCopyDefinitionFeature: ip, + ɵɵInheritDefinitionFeature: zu, + ɵɵnextContext: Tp, + ɵɵnamespaceHTML: Es, + ɵɵnamespaceMathML: Si, + ɵɵnamespaceSVG: dr, + ɵɵenableBindings: ds, + ɵɵdisableBindings: Bs, + ɵɵelementStart: uc, + ɵɵelementEnd: cc, + ɵɵelement: bp, + ɵɵelementContainerStart: dc, + ɵɵelementContainerEnd: hc, + ɵɵelementContainer: Cp, + ɵɵpureFunction0: em, + ɵɵpureFunction1: tm, + ɵɵpureFunction2: nm, + ɵɵpureFunction3: im, + ɵɵpureFunction4: rm, + ɵɵpureFunction5: sm, + ɵɵpureFunction6: om, + ɵɵpureFunction7: am, + ɵɵpureFunction8: lm, + ɵɵpureFunctionV: um, + ɵɵgetCurrentView: Ep, + ɵɵrestoreView: G, + ɵɵlistener: pc, + ɵɵprojection: Ip, + ɵɵsyntheticHostProperty: Yc, + ɵɵsyntheticHostListener: mc, + ɵɵpipeBind1: gm, + ɵɵpipeBind2: _m, + ɵɵpipeBind3: vm, + ɵɵpipeBind4: ym, + ɵɵpipeBindV: bm, + ɵɵprojectionDef: xp, + ɵɵhostProperty: Gc, + ɵɵproperty: ac, + ɵɵpropertyInterpolate: _c, + ɵɵpropertyInterpolate1: ml, + ɵɵpropertyInterpolate2: vc, + ɵɵpropertyInterpolate3: yc, + ɵɵpropertyInterpolate4: bc, + ɵɵpropertyInterpolate5: Cc, + ɵɵpropertyInterpolate6: Ec, + ɵɵpropertyInterpolate7: wc, + ɵɵpropertyInterpolate8: Mc, + ɵɵpropertyInterpolateV: Sc, + ɵɵpipe: mm, + ɵɵqueryRefresh: Dm, + ɵɵviewQuery: Tm, + ɵɵloadQuery: Im, + ɵɵcontentQuery: xm, + ɵɵreference: ap, + ɵɵclassMap: Np, + ɵɵclassMapInterpolate1: zp, + ɵɵclassMapInterpolate2: Kp, + ɵɵclassMapInterpolate3: Gp, + ɵɵclassMapInterpolate4: Yp, + ɵɵclassMapInterpolate5: Qp, + ɵɵclassMapInterpolate6: Xp, + ɵɵclassMapInterpolate7: Zp, + ɵɵclassMapInterpolate8: qp, + ɵɵclassMapInterpolateV: Jp, + ɵɵstyleMap: Ps, + ɵɵstyleMapInterpolate1: e0, + ɵɵstyleMapInterpolate2: t0, + ɵɵstyleMapInterpolate3: n0, + ɵɵstyleMapInterpolate4: r0, + ɵɵstyleMapInterpolate5: s0, + ɵɵstyleMapInterpolate6: o0, + ɵɵstyleMapInterpolate7: a0, + ɵɵstyleMapInterpolate8: l0, + ɵɵstyleMapInterpolateV: u0, + ɵɵstyleProp: Dc, + ɵɵstylePropInterpolate1: Uc, + ɵɵstylePropInterpolate2: Bc, + ɵɵstylePropInterpolate3: Vc, + ɵɵstylePropInterpolate4: $c, + ɵɵstylePropInterpolate5: Hc, + ɵɵstylePropInterpolate6: jc, + ɵɵstylePropInterpolate7: Wc, + ɵɵstylePropInterpolate8: zc, + ɵɵstylePropInterpolateV: Kc, + ɵɵclassProp: Tc, + ɵɵadvance: nf, + ɵɵtemplate: sp, + ɵɵtext: Wp, + ɵɵtextInterpolate: Ic, + ɵɵtextInterpolate1: _l, + ɵɵtextInterpolate2: Ac, + ɵɵtextInterpolate3: Oc, + ɵɵtextInterpolate4: Rc, + ɵɵtextInterpolate5: Lc, + ɵɵtextInterpolate6: kc, + ɵɵtextInterpolate7: Pc, + ɵɵtextInterpolate8: Fc, + ɵɵtextInterpolateV: Nc, + ɵɵi18n: k0, + ɵɵi18nAttributes: P0, + ɵɵi18nExp: ed, + ɵɵi18nStart: qc, + ɵɵi18nEnd: Jc, + ɵɵi18nApply: F0, + ɵɵi18nPostprocess: N0, + ɵɵresolveWindow: xh, + ɵɵresolveDocument: Ih, + ɵɵresolveBody: Ah, + ɵɵsetComponentScope: ze, + ɵɵsetNgModuleScope: lt, + ɵɵsanitizeHtml: fh, + ɵɵsanitizeStyle: ph, + ɵɵsanitizeResourceUrl: eu, + ɵɵsanitizeScript: mh, + ɵɵsanitizeUrl: Jl, + ɵɵsanitizeUrlOrResourceUrl: vh, + ɵɵtrustConstantHtml: gh, + ɵɵtrustConstantResourceUrl: _h, + forwardRef: i, + resolveForwardRef: c, + }))(); + let aa = null; + function N1() { + aa = null; + } + const Ha = []; + let fd = !1; + function km() { + if (!fd) { + fd = !0; + try { + for (let e = Ha.length - 1; e >= 0; e--) { + const { moduleType: t, ngModule: a } = Ha[e]; + a.declarations && + a.declarations.every(Pm) && + (Ha.splice(e, 1), V1(t, a)); + } + } finally { + fd = !1; + } + } + } + function Pm(e) { + return Array.isArray(e) ? e.every(Pm) : !!c(e); + } + function Fm(e, t = {}) { + Nm(e, t), + (function (e, t) { + Ha.push({ moduleType: e, ngModule: t }); + })(e, t); + } + function Nm(e, t, a = !1) { + const v = os(t.declarations || Qe); + let E = null; + Object.defineProperty(e, Ne, { + configurable: !0, + get: () => ( + null === E && + ((E = yr().compileNgModule(is, `ng:///${e.name}/\u0275mod.js`, { + type: e, + bootstrap: os(t.bootstrap || Qe).map(c), + declarations: v.map(c), + imports: os(t.imports || Qe) + .map(c) + .map($m), + exports: os(t.exports || Qe) + .map(c) + .map($m), + schemas: t.schemas ? os(t.schemas) : null, + id: t.id || null, + })), + E.schemas || (E.schemas = [])), + E + ), + }); + let R = null; + Object.defineProperty(e, Se, { + get: () => { + if (null === R) { + const se = yr(); + R = se.compileFactory(is, `ng:///${e.name}/\u0275fac.js`, { + name: e.name, + type: e, + deps: qa(e), + target: se.FactoryTarget.NgModule, + typeArgumentCount: 0, + }); + } + return R; + }, + configurable: !1, + }); + let W = null; + Object.defineProperty(e, Tt, { + get: () => { + if (null === W) { + const se = { + name: e.name, + type: e, + providers: t.providers || Qe, + imports: [(t.imports || Qe).map(c), (t.exports || Qe).map(c)], + }; + W = yr().compileInjector(is, `ng:///${e.name}/\u0275inj.js`, se); + } + return W; + }, + configurable: !1, + }); + } + let Al = new WeakMap(), + md = new WeakMap(); + function B1() { + (Al = new WeakMap()), (md = new WeakMap()), (Ha.length = 0); + } + function V1(e, t) { + const a = os(t.declarations || Qe), + v = ja(e); + a.forEach((E) => { + E.hasOwnProperty(mt) + ? gd(Ot(E), v) + : !E.hasOwnProperty(Vt) && + !E.hasOwnProperty(qt) && + (E.ngSelectorScope = e); + }); + } + function gd(e, t) { + (e.directiveDefs = () => + Array.from(t.compilation.directives) + .map((a) => (a.hasOwnProperty(mt) ? Ot(a) : un(a))) + .filter((a) => !!a)), + (e.pipeDefs = () => + Array.from(t.compilation.pipes).map((a) => on(a))), + (e.schemas = t.schemas), + (e.tView = null); + } + function ja(e) { + if (!_d(e)) + throw new Error( + `${e.name} does not have a module def (\u0275mod property)` + ); + const t = On(e); + if (null !== t.transitiveCompileScopes) + return t.transitiveCompileScopes; + const a = { + schemas: t.schemas || null, + compilation: { directives: new Set(), pipes: new Set() }, + exported: { directives: new Set(), pipes: new Set() }, + }; + return ( + zs(t.imports).forEach((v) => { + const E = v; + if (!_d(E)) + throw new Error( + `Importing ${E.name} which does not have a \u0275mod property` + ); + const R = ja(E); + R.exported.directives.forEach((W) => + a.compilation.directives.add(W) + ), + R.exported.pipes.forEach((W) => a.compilation.pipes.add(W)); + }), + zs(t.declarations).forEach((v) => { + on(v) + ? a.compilation.pipes.add(v) + : a.compilation.directives.add(v); + }), + zs(t.exports).forEach((v) => { + const E = v; + if (_d(E)) { + const R = ja(E); + R.exported.directives.forEach((W) => { + a.compilation.directives.add(W), a.exported.directives.add(W); + }), + R.exported.pipes.forEach((W) => { + a.compilation.pipes.add(W), a.exported.pipes.add(W); + }); + } else + on(E) ? a.exported.pipes.add(E) : a.exported.directives.add(E); + }), + (t.transitiveCompileScopes = a), + a + ); + } + function $m(e) { + return (function (e) { + return void 0 !== e.ngModule; + })(e) + ? e.ngModule + : e; + } + function _d(e) { + return !!On(e); + } + let vd = 0; + function Hm(e, t) { + let a = null; + (function (e, t) { + Jd(t) && (Lo.set(e, t), ga.add(e)); + })(e, t), + Wm(e, t), + Object.defineProperty(e, mt, { + get: () => { + if (null === a) { + const v = yr(); + if (Jd(t)) { + const De = [`Component '${e.name}' is not resolved:`]; + throw ( + (t.templateUrl && + De.push(` - templateUrl: ${t.templateUrl}`), + t.styleUrls && + t.styleUrls.length && + De.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`), + De.push( + "Did you run and wait for 'resolveComponentResources()'?" + ), + new Error(De.join("\n"))) + ); + } + const E = aa; + let R = t.preserveWhitespaces; + void 0 === R && + (R = + null !== E && + void 0 !== E.preserveWhitespaces && + E.preserveWhitespaces); + let W = t.encapsulation; + void 0 === W && + (W = + null !== E && void 0 !== E.defaultEncapsulation + ? E.defaultEncapsulation + : ut.Emulated); + const se = t.templateUrl || `ng:///${e.name}/template.html`, + ge = Object.assign(Object.assign({}, zm(e, t)), { + typeSourceSpan: v.createParseSourceSpan( + "Component", + e.name, + se + ), + template: t.template || "", + preserveWhitespaces: R, + styles: t.styles || Qe, + animations: t.animations, + directives: [], + changeDetection: t.changeDetection, + pipes: new Map(), + encapsulation: W, + interpolation: t.interpolation, + viewProviders: t.viewProviders || null, + }); + vd++; + try { + ge.usesInheritance && Km(e), + (a = v.compileComponent(is, se, ge)); + } finally { + vd--; + } + if ( + (0 === vd && km(), + (function (e) { + return void 0 !== e.ngSelectorScope; + })(e)) + ) { + const De = ja(e.ngSelectorScope); + gd(a, De); + } + } + return a; + }, + configurable: !1, + }); + } + function yd(e, t) { + let a = null; + Wm(e, t || {}), + Object.defineProperty(e, Vt, { + get: () => { + if (null === a) { + const v = jm(e, t || {}); + a = yr().compileDirective(is, v.sourceMapUrl, v.metadata); + } + return a; + }, + configurable: !1, + }); + } + function jm(e, t) { + const a = e && e.name, + v = `ng:///${a}/\u0275dir.js`, + E = yr(), + R = zm(e, t); + return ( + (R.typeSourceSpan = E.createParseSourceSpan("Directive", a, v)), + R.usesInheritance && Km(e), + { metadata: R, sourceMapUrl: v } + ); + } + function Wm(e, t) { + let a = null; + Object.defineProperty(e, Se, { + get: () => { + if (null === a) { + const v = jm(e, t), + E = yr(); + a = E.compileFactory(is, `ng:///${e.name}/\u0275fac.js`, { + name: v.metadata.name, + type: v.metadata.type, + typeArgumentCount: 0, + deps: qa(e), + target: E.FactoryTarget.Directive, + }); + } + return a; + }, + configurable: !1, + }); + } + function j1(e) { + return Object.getPrototypeOf(e.prototype) === Object.prototype; + } + function zm(e, t) { + const a = Kl(), + v = a.ownPropMetadata(e); + return { + name: e.name, + type: e, + selector: void 0 !== t.selector ? t.selector : null, + host: t.host || Lt, + propMetadata: v, + inputs: t.inputs || Qe, + outputs: t.outputs || Qe, + queries: Gm(e, v, Ym), + lifecycle: { usesOnChanges: a.hasLifecycleHook(e, "ngOnChanges") }, + typeSourceSpan: null, + usesInheritance: !j1(e), + exportAs: K1(t.exportAs), + providers: t.providers || null, + viewQueries: Gm(e, v, Qm), + }; + } + function Km(e) { + const t = Object.prototype; + let a = Object.getPrototypeOf(e.prototype).constructor; + for (; a && a !== t; ) + !un(a) && !Ot(a) && Y1(a) && yd(a, null), + (a = Object.getPrototypeOf(a)); + } + function W1(e) { + return "string" == typeof e ? Zm(e) : c(e); + } + function z1(e, t) { + return { + propertyName: e, + predicate: W1(t.selector), + descendants: t.descendants, + first: t.first, + read: t.read ? t.read : null, + static: !!t.static, + emitDistinctChangesOnly: !!t.emitDistinctChangesOnly, + }; + } + function Gm(e, t, a) { + const v = []; + for (const E in t) + if (t.hasOwnProperty(E)) { + const R = t[E]; + R.forEach((W) => { + if (a(W)) { + if (!W.selector) + throw new Error( + `Can't construct a query for the property "${E}" of "${O( + e + )}" since the query selector wasn't defined.` + ); + if (R.some(Xm)) + throw new Error( + "Cannot combine @Input decorators with query decorators" + ); + v.push(z1(E, W)); + } + }); + } + return v; + } + function K1(e) { + return void 0 === e ? null : Zm(e); + } + function Ym(e) { + const t = e.ngMetadataName; + return "ContentChild" === t || "ContentChildren" === t; + } + function Qm(e) { + const t = e.ngMetadataName; + return "ViewChild" === t || "ViewChildren" === t; + } + function Xm(e) { + return "Input" === e.ngMetadataName; + } + function Zm(e) { + return e.split(",").map((t) => t.trim()); + } + const G1 = [ + "ngOnChanges", + "ngOnInit", + "ngOnDestroy", + "ngDoCheck", + "ngAfterViewInit", + "ngAfterViewChecked", + "ngAfterContentInit", + "ngAfterContentChecked", + ]; + function Y1(e) { + const t = Kl(); + if (G1.some((v) => t.hasLifecycleHook(e, v))) return !0; + const a = t.propMetadata(e); + for (const v in a) { + const E = a[v]; + for (let R = 0; R < E.length; R++) { + const W = E[R], + se = W.ngMetadataName; + if ( + Xm(W) || + Ym(W) || + Qm(W) || + "Output" === se || + "HostBinding" === se || + "HostListener" === se + ) + return !0; + } + } + return !1; + } + function qm(e, t) { + let a = null, + v = null; + Object.defineProperty(e, Se, { + get: () => { + if (null === v) { + const E = Jm(e, t), + R = yr(); + v = R.compileFactory(is, `ng:///${E.name}/\u0275fac.js`, { + name: E.name, + type: E.type, + typeArgumentCount: 0, + deps: qa(e), + target: R.FactoryTarget.Pipe, + }); + } + return v; + }, + configurable: !1, + }), + Object.defineProperty(e, qt, { + get: () => { + if (null === a) { + const E = Jm(e, t); + a = yr().compilePipe(is, `ng:///${E.name}/\u0275pipe.js`, E); + } + return a; + }, + configurable: !1, + }); + } + function Jm(e, t) { + return { + type: e, + name: e.name, + pipeName: t.name, + pure: void 0 === t.pure || t.pure, + }; + } + const eg = Ts( + "Directive", + (e = {}) => e, + void 0, + void 0, + (e, t) => yd(e, t) + ), + Q1 = Ts( + "Component", + (e = {}) => Object.assign({ changeDetection: Be.Default }, e), + eg, + void 0, + (e, t) => Hm(e, t) + ), + X1 = Ts( + "Pipe", + (e) => Object.assign({ pure: !0 }, e), + void 0, + void 0, + (e, t) => qm(e, t) + ), + Z1 = js("Input", (e) => ({ bindingPropertyName: e })), + q1 = js("Output", (e) => ({ bindingPropertyName: e })), + J1 = js("HostBinding", (e) => ({ hostPropertyName: e })), + eC = js("HostListener", (e, t) => ({ eventName: e, args: t })), + tC = Ts( + "NgModule", + (e) => e, + void 0, + void 0, + (e, t) => Fm(e, t) + ); + function Ol(...e) {} + const bd = new lr("Application Initializer"); + let la = (() => { + class e { + constructor(a) { + (this.appInits = a), + (this.resolve = Ol), + (this.reject = Ol), + (this.initialized = !1), + (this.done = !1), + (this.donePromise = new Promise((v, E) => { + (this.resolve = v), (this.reject = E); + })); + } + runInitializers() { + if (this.initialized) return; + const a = [], + v = () => { + (this.done = !0), this.resolve(); + }; + if (this.appInits) + for (let E = 0; E < this.appInits.length; E++) { + const R = this.appInits[E](); + if (fc(R)) a.push(R); + else if (Mp(R)) { + const W = new Promise((se, ge) => { + R.subscribe({ complete: se, error: ge }); + }); + a.push(W); + } + } + Promise.all(a) + .then(() => { + v(); + }) + .catch((E) => { + this.reject(E); + }), + 0 === a.length && v(), + (this.initialized = !0); + } + } + return ( + (e.ɵfac = function (a) { + return new (a || e)(Cn(bd, 8)); + }), + (e.ɵprov = Ue({ token: e, factory: e.ɵfac })), + e + ); + })(); + const tg = new lr("AppId"), + ng = { + provide: tg, + useFactory: function () { + return `${Cd()}${Cd()}${Cd()}`; + }, + deps: [], + }; + function Cd() { + return String.fromCharCode(97 + Math.floor(25 * Math.random())); + } + const ig = new lr("Platform Initializer"), + rg = new lr("Platform ID"), + sg = new lr("appBootstrapListener"), + iC = new lr("Application Packages Root URL"); + let og = (() => { + class e { + log(a) { + console.log(a); + } + warn(a) { + console.warn(a); + } + } + return ( + (e.ɵfac = function (a) { + return new (a || e)(); + }), + (e.ɵprov = Ue({ token: e, factory: e.ɵfac })), + e + ); + })(); + const Rl = new lr("LocaleId"), + ag = new lr("DefaultCurrencyCode"), + rC = new lr("Translations"), + sC = new lr("TranslationsFormat"); + var Zs = (() => ( + ((Zs = Zs || {})[(Zs.Error = 0)] = "Error"), + (Zs[(Zs.Warning = 1)] = "Warning"), + (Zs[(Zs.Ignore = 2)] = "Ignore"), + Zs + ))(); + class lg { + constructor(t, a) { + (this.ngModuleFactory = t), (this.componentFactories = a); + } + } + let Ed = (() => { + class e { + compileModuleSync(a) { + return new Dl(a); + } + compileModuleAsync(a) { + return Promise.resolve(this.compileModuleSync(a)); + } + compileModuleAndAllComponentsSync(a) { + const v = this.compileModuleSync(a), + R = zs(On(a).declarations).reduce((W, se) => { + const ge = Ot(se); + return ge && W.push(new Sl(ge)), W; + }, []); + return new lg(v, R); + } + compileModuleAndAllComponentsAsync(a) { + return Promise.resolve(this.compileModuleAndAllComponentsSync(a)); + } + clearCache() {} + clearCacheFor(a) {} + getModuleId(a) {} + } + return ( + (e.ɵfac = function (a) { + return new (a || e)(); + }), + (e.ɵprov = Ue({ token: e, factory: e.ɵfac })), + e + ); + })(); + const ug = new lr("compilerOptions"); + class oC {} + const aC = (() => Promise.resolve(0))(); + function wd(e) { + "undefined" == typeof Zone + ? aC.then(() => { + e && e.apply(null, null); + }) + : Zone.current.scheduleMicroTask("scheduleMicrotask", e); + } + class _s { + constructor({ + enableLongStackTrace: t = !1, + shouldCoalesceEventChangeDetection: a = !1, + shouldCoalesceRunChangeDetection: v = !1, + }) { + if ( + ((this.hasPendingMacrotasks = !1), + (this.hasPendingMicrotasks = !1), + (this.isStable = !0), + (this.onUnstable = new Xs(!1)), + (this.onMicrotaskEmpty = new Xs(!1)), + (this.onStable = new Xs(!1)), + (this.onError = new Xs(!1)), + "undefined" == typeof Zone) + ) + throw new Error("In this configuration Angular requires Zone.js"); + Zone.assertZonePatched(); + const E = this; + (E._nesting = 0), + (E._outer = E._inner = Zone.current), + Zone.TaskTrackingZoneSpec && + (E._inner = E._inner.fork(new Zone.TaskTrackingZoneSpec())), + t && + Zone.longStackTraceZoneSpec && + (E._inner = E._inner.fork(Zone.longStackTraceZoneSpec)), + (E.shouldCoalesceEventChangeDetection = !v && a), + (E.shouldCoalesceRunChangeDetection = v), + (E.lastRequestAnimationFrameId = -1), + (E.nativeRequestAnimationFrame = (function () { + let e = Kt.requestAnimationFrame, + t = Kt.cancelAnimationFrame; + if ("undefined" != typeof Zone && e && t) { + const a = e[Zone.__symbol__("OriginalDelegate")]; + a && (e = a); + const v = t[Zone.__symbol__("OriginalDelegate")]; + v && (t = v); + } + return { + nativeRequestAnimationFrame: e, + nativeCancelAnimationFrame: t, + }; + })().nativeRequestAnimationFrame), + (function (e) { + const t = () => { + !(function (e) { + e.isCheckStableRunning || + -1 !== e.lastRequestAnimationFrameId || + ((e.lastRequestAnimationFrameId = e.nativeRequestAnimationFrame.call( + Kt, + () => { + e.fakeTopEventTask || + (e.fakeTopEventTask = Zone.root.scheduleEventTask( + "fakeTopEventTask", + () => { + (e.lastRequestAnimationFrameId = -1), + Sd(e), + (e.isCheckStableRunning = !0), + Md(e), + (e.isCheckStableRunning = !1); + }, + void 0, + () => {}, + () => {} + )), + e.fakeTopEventTask.invoke(); + } + )), + Sd(e)); + })(e); + }; + e._inner = e._inner.fork({ + name: "angular", + properties: { isAngularZone: !0 }, + onInvokeTask: (a, v, E, R, W, se) => { + try { + return cg(e), a.invokeTask(E, R, W, se); + } finally { + ((e.shouldCoalesceEventChangeDetection && + "eventTask" === R.type) || + e.shouldCoalesceRunChangeDetection) && + t(), + dg(e); + } + }, + onInvoke: (a, v, E, R, W, se, ge) => { + try { + return cg(e), a.invoke(E, R, W, se, ge); + } finally { + e.shouldCoalesceRunChangeDetection && t(), dg(e); + } + }, + onHasTask: (a, v, E, R) => { + a.hasTask(E, R), + v === E && + ("microTask" == R.change + ? ((e._hasPendingMicrotasks = R.microTask), + Sd(e), + Md(e)) + : "macroTask" == R.change && + (e.hasPendingMacrotasks = R.macroTask)); + }, + onHandleError: (a, v, E, R) => ( + a.handleError(E, R), + e.runOutsideAngular(() => e.onError.emit(R)), + !1 + ), + }); + })(E); + } + static isInAngularZone() { + return !0 === Zone.current.get("isAngularZone"); + } + static assertInAngularZone() { + if (!_s.isInAngularZone()) + throw new Error("Expected to be in Angular Zone, but it is not!"); + } + static assertNotInAngularZone() { + if (_s.isInAngularZone()) + throw new Error("Expected to not be in Angular Zone, but it is!"); + } + run(t, a, v) { + return this._inner.run(t, a, v); + } + runTask(t, a, v, E) { + const R = this._inner, + W = R.scheduleEventTask("NgZoneEvent: " + E, t, uC, Ol, Ol); + try { + return R.runTask(W, a, v); + } finally { + R.cancelTask(W); + } + } + runGuarded(t, a, v) { + return this._inner.runGuarded(t, a, v); + } + runOutsideAngular(t) { + return this._outer.run(t); + } + } + const uC = {}; + function Md(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 Sd(e) { + e.hasPendingMicrotasks = !!( + e._hasPendingMicrotasks || + ((e.shouldCoalesceEventChangeDetection || + e.shouldCoalesceRunChangeDetection) && + -1 !== e.lastRequestAnimationFrameId) + ); + } + function cg(e) { + e._nesting++, + e.isStable && ((e.isStable = !1), e.onUnstable.emit(null)); + } + function dg(e) { + e._nesting--, Md(e); + } + class hg { + constructor() { + (this.hasPendingMicrotasks = !1), + (this.hasPendingMacrotasks = !1), + (this.isStable = !0), + (this.onUnstable = new Xs()), + (this.onMicrotaskEmpty = new Xs()), + (this.onStable = new Xs()), + (this.onError = new Xs()); + } + run(t, a, v) { + return t.apply(a, v); + } + runGuarded(t, a, v) { + return t.apply(a, v); + } + runOutsideAngular(t) { + return t(); + } + runTask(t, a, v, E) { + return t.apply(a, v); + } + } + let fg = (() => { + class e { + constructor(a) { + (this._ngZone = a), + (this._pendingCount = 0), + (this._isZoneStable = !0), + (this._didWork = !1), + (this._callbacks = []), + (this.taskTrackingZone = null), + this._watchAngularEvents(), + a.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: () => { + _s.assertNotInAngularZone(), + wd(() => { + (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()) + wd(() => { + for (; 0 !== this._callbacks.length; ) { + let a = this._callbacks.pop(); + clearTimeout(a.timeoutId), a.doneCb(this._didWork); + } + this._didWork = !1; + }); + else { + let a = this.getPendingTasks(); + (this._callbacks = this._callbacks.filter( + (v) => + !v.updateCb || + !v.updateCb(a) || + (clearTimeout(v.timeoutId), !1) + )), + (this._didWork = !0); + } + } + getPendingTasks() { + return this.taskTrackingZone + ? this.taskTrackingZone.macroTasks.map((a) => ({ + source: a.source, + creationLocation: a.creationLocation, + data: a.data, + })) + : []; + } + addCallback(a, v, E) { + let R = -1; + v && + v > 0 && + (R = setTimeout(() => { + (this._callbacks = this._callbacks.filter( + (W) => W.timeoutId !== R + )), + a(this._didWork, this.getPendingTasks()); + }, v)), + this._callbacks.push({ doneCb: a, timeoutId: R, updateCb: E }); + } + whenStable(a, v, E) { + if (E && !this.taskTrackingZone) + throw new Error( + 'Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?' + ); + this.addCallback(a, v, E), this._runCallbacksIfReady(); + } + getPendingRequestCount() { + return this._pendingCount; + } + findProviders(a, v, E) { + return []; + } + } + return ( + (e.ɵfac = function (a) { + return new (a || e)(Cn(_s)); + }), + (e.ɵprov = Ue({ token: e, factory: e.ɵfac })), + e + ); + })(), + Dd = (() => { + class e { + constructor() { + (this._applications = new Map()), Td.addToWindow(this); + } + registerApplication(a, v) { + this._applications.set(a, v); + } + unregisterApplication(a) { + this._applications.delete(a); + } + unregisterAllApplications() { + this._applications.clear(); + } + getTestability(a) { + return this._applications.get(a) || null; + } + getAllTestabilities() { + return Array.from(this._applications.values()); + } + getAllRootElements() { + return Array.from(this._applications.keys()); + } + findTestabilityInTree(a, v = !0) { + return Td.findTestabilityInTree(this, a, v); + } + } + return ( + (e.ɵfac = function (a) { + return new (a || e)(); + }), + (e.ɵprov = Ue({ token: e, factory: e.ɵfac })), + e + ); + })(); + class hC { + addToWindow(t) {} + findTestabilityInTree(t, a, v) { + return null; + } + } + function fC(e) { + Td = e; + } + let Us, + Td = new hC(); + function pg(e, t, a) { + const v = new Dl(a); + return Promise.resolve(v); + } + function mg(e) { + return e.isBoundToModule; + } + const xd = new lr("AllowMultipleToken"); + class mC { + constructor(t, a) { + (this.name = t), (this.token = a); + } + } + function gg(e) { + if (Us && !Us.destroyed && !Us.injector.get(xd, !1)) + throw new b("400", ""); + Us = e.get(Ad); + const t = e.get(ig, null); + return t && t.forEach((a) => a()), Us; + } + function _g(e, t, a = []) { + const v = `Platform: ${t}`, + E = new lr(v); + return (R = []) => { + let W = Id(); + if (!W || W.injector.get(xd, !1)) + if (e) e(a.concat(R).concat({ provide: E, useValue: !0 })); + else { + const se = a + .concat(R) + .concat( + { provide: E, useValue: !0 }, + { provide: Uu, useValue: "platform" } + ); + gg(gs.create({ providers: se, name: v })); + } + return vg(); + }; + } + function vg(e) { + const t = Id(); + if (!t) throw new b("401", ""); + return t; + } + function gC() { + Us && !Us.destroyed && Us.destroy(); + } + function Id() { + return Us && !Us.destroyed ? Us : null; + } + let Ad = (() => { + class e { + constructor(a) { + (this._injector = a), + (this._modules = []), + (this._destroyListeners = []), + (this._destroyed = !1); + } + bootstrapModuleFactory(a, v) { + const se = (function (e, t) { + let a; + return ( + (a = + "noop" === e + ? new hg() + : ("zone.js" === e ? void 0 : e) || + new _s({ + enableLongStackTrace: !1, + shouldCoalesceEventChangeDetection: !!(null == t + ? void 0 + : t.ngZoneEventCoalescing), + shouldCoalesceRunChangeDetection: !!(null == t + ? void 0 + : t.ngZoneRunCoalescing), + })), + a + ); + })(v ? v.ngZone : void 0, { + ngZoneEventCoalescing: (v && v.ngZoneEventCoalescing) || !1, + ngZoneRunCoalescing: (v && v.ngZoneRunCoalescing) || !1, + }), + ge = [{ provide: _s, useValue: se }]; + return se.run(() => { + const De = gs.create({ + providers: ge, + parent: this.injector, + name: a.moduleType.name, + }), + ke = a.create(De), + qe = ke.injector.get(Ca, null); + if (!qe) throw new b("402", ""); + return ( + se.runOutsideAngular(() => { + const Ct = se.onError.subscribe({ + next: (Pt) => { + qe.handleError(Pt); + }, + }); + ke.onDestroy(() => { + Od(this._modules, ke), Ct.unsubscribe(); + }); + }), + (function (e, t, a) { + try { + const v = a(); + return fc(v) + ? v.catch((E) => { + throw ( + (t.runOutsideAngular(() => e.handleError(E)), E) + ); + }) + : v; + } catch (v) { + throw (t.runOutsideAngular(() => e.handleError(v)), v); + } + })(qe, se, () => { + const Ct = ke.injector.get(la); + return ( + Ct.runInitializers(), + Ct.donePromise.then( + () => ( + f0(ke.injector.get(Rl, Ra) || Ra), + this._moduleDoBootstrap(ke), + ke + ) + ) + ); + }) + ); + }); + } + bootstrapModule(a, v = []) { + const E = yg({}, v); + return pg(0, 0, a).then((R) => this.bootstrapModuleFactory(R, E)); + } + _moduleDoBootstrap(a) { + const v = a.injector.get(Wa); + if (a._bootstrapComponents.length > 0) + a._bootstrapComponents.forEach((E) => v.bootstrap(E)); + else { + if (!a.instance.ngDoBootstrap) throw new b("403", ""); + a.instance.ngDoBootstrap(v); + } + this._modules.push(a); + } + onDestroy(a) { + this._destroyListeners.push(a); + } + get injector() { + return this._injector; + } + destroy() { + if (this._destroyed) throw new b("404", ""); + this._modules.slice().forEach((a) => a.destroy()), + this._destroyListeners.forEach((a) => a()), + (this._destroyed = !0); + } + get destroyed() { + return this._destroyed; + } + } + return ( + (e.ɵfac = function (a) { + return new (a || e)(Cn(gs)); + }), + (e.ɵprov = Ue({ token: e, factory: e.ɵfac })), + e + ); + })(); + function yg(e, t) { + return Array.isArray(t) + ? t.reduce(yg, e) + : Object.assign(Object.assign({}, e), t); + } + let Wa = (() => { + class e { + constructor(a, v, E, R, W) { + (this._zone = a), + (this._injector = v), + (this._exceptionHandler = E), + (this._componentFactoryResolver = R), + (this._initStatus = W), + (this._bootstrapListeners = []), + (this._views = []), + (this._runningTick = !1), + (this._stable = !0), + (this.componentTypes = []), + (this.components = []), + (this._onMicrotaskEmptySubscription = this._zone.onMicrotaskEmpty.subscribe( + { + next: () => { + this._zone.run(() => { + this.tick(); + }); + }, + } + )); + const se = new _.y((De) => { + (this._stable = + this._zone.isStable && + !this._zone.hasPendingMacrotasks && + !this._zone.hasPendingMicrotasks), + this._zone.runOutsideAngular(() => { + De.next(this._stable), De.complete(); + }); + }), + ge = new _.y((De) => { + let ke; + this._zone.runOutsideAngular(() => { + ke = this._zone.onStable.subscribe(() => { + _s.assertNotInAngularZone(), + wd(() => { + !this._stable && + !this._zone.hasPendingMacrotasks && + !this._zone.hasPendingMicrotasks && + ((this._stable = !0), De.next(!0)); + }); + }); + }); + const qe = this._zone.onUnstable.subscribe(() => { + _s.assertInAngularZone(), + this._stable && + ((this._stable = !1), + this._zone.runOutsideAngular(() => { + De.next(!1); + })); + }); + return () => { + ke.unsubscribe(), qe.unsubscribe(); + }; + }); + this.isStable = (0, m.T)(se, ge.pipe((0, s.B)())); + } + bootstrap(a, v) { + if (!this._initStatus.done) throw new b("405", ""); + let E; + (E = + a instanceof El + ? a + : this._componentFactoryResolver.resolveComponentFactory(a)), + this.componentTypes.push(E.componentType); + const R = mg(E) ? void 0 : this._injector.get(sa), + se = E.create(gs.NULL, [], v || E.selector, R), + ge = se.location.nativeElement, + De = se.injector.get(fg, null), + ke = De && se.injector.get(Dd); + return ( + De && ke && ke.registerApplication(ge, De), + se.onDestroy(() => { + this.detachView(se.hostView), + Od(this.components, se), + ke && ke.unregisterApplication(ge); + }), + this._loadComponent(se), + se + ); + } + tick() { + if (this._runningTick) throw new b("101", ""); + try { + this._runningTick = !0; + for (let a of this._views) a.detectChanges(); + } catch (a) { + this._zone.runOutsideAngular(() => + this._exceptionHandler.handleError(a) + ); + } finally { + this._runningTick = !1; + } + } + attachView(a) { + const v = a; + this._views.push(v), v.attachToAppRef(this); + } + detachView(a) { + const v = a; + Od(this._views, v), v.detachFromAppRef(); + } + _loadComponent(a) { + this.attachView(a.hostView), + this.tick(), + this.components.push(a), + this._injector + .get(sg, []) + .concat(this._bootstrapListeners) + .forEach((E) => E(a)); + } + ngOnDestroy() { + this._views.slice().forEach((a) => a.destroy()), + this._onMicrotaskEmptySubscription.unsubscribe(); + } + get viewCount() { + return this._views.length; + } + } + return ( + (e.ɵfac = function (a) { + return new (a || e)(Cn(_s), Cn(gs), Cn(Ca), Cn(Na), Cn(la)); + }), + (e.ɵprov = Ue({ token: e, factory: e.ɵfac })), + e + ); + })(); + function Od(e, t) { + const a = e.indexOf(t); + a > -1 && e.splice(a, 1); + } + let Cg = !0, + Eg = !1; + function bC() { + return (Eg = !0), Cg; + } + function CC() { + if (Eg) + throw new Error("Cannot enable prod mode after platform setup."); + Cg = !1; + } + function EC(e) { + const t = J0(e); + if (!t) throw wg(e); + return new Dl(t); + } + function wC(e) { + const t = J0(e); + if (!t) throw wg(e); + return t; + } + function wg(e) { + return new Error(`No module with ID ${e} loaded`); + } + let Mg = (() => { + class e {} + return (e.__NG_ELEMENT_ID__ = Sg), e; + })(); + function Sg(e) { + return (function (e, t, a) { + if (Ui(e) && !a) { + const v = In(e.index, t); + return new ra(v, v); + } + return 47 & e.type ? new ra(t[16], t) : null; + })(pe(), we(), 16 == (16 & e)); + } + class Dg extends Mg {} + class SC extends Dg {} + class DC { + constructor(t, a) { + (this.name = t), (this.callback = a); + } + } + function TC(e) { + return e.map((t) => t.nativeElement); + } + class Rd { + constructor(t) { + this.nativeNode = t; + } + get parent() { + const t = this.nativeNode.parentNode; + return t ? new za(t) : null; + } + get injector() { + return Gf(this.nativeNode); + } + get componentInstance() { + const t = this.nativeNode; + return t && (Hu(t) || zf(t)); + } + get context() { + return Hu(this.nativeNode) || Wf(this.nativeNode); + } + get listeners() { + return Qf(this.nativeNode).filter((t) => "dom" === t.type); + } + get references() { + return (function (e) { + const t = Qr(e); + return null === t + ? {} + : (void 0 === t.localRefs && + (t.localRefs = (function (e, t) { + const a = e[1].data[t]; + if (a && a.localNames) { + const v = {}; + let E = a.index + 1; + for (let R = 0; R < a.localNames.length; R += 2) + (v[a.localNames[R]] = e[E]), E++; + return v; + } + return null; + })(t.lView, t.nodeIndex)), + t.localRefs || {}); + })(this.nativeNode); + } + get providerTokens() { + return (function (e) { + const t = Qr(e); + if (null === t) return []; + const v = t.lView[1], + E = v.data[t.nodeIndex], + R = [], + se = E.directiveEnd; + for (let ge = 1048575 & E.providerIndexes; ge < se; ge++) { + let De = v.data[ge]; + ty(De) && (De = De.type), R.push(De); + } + return R; + })(this.nativeNode); + } + } + class za extends Rd { + constructor(t) { + super(t); + } + get nativeElement() { + return this.nativeNode.nodeType == Node.ELEMENT_NODE + ? this.nativeNode + : null; + } + get name() { + const t = Qr(this.nativeNode); + return null !== t + ? t.lView[1].data[t.nodeIndex].value + : this.nativeNode.nodeName; + } + get properties() { + const t = Qr(this.nativeNode); + if (null === t) return {}; + const a = t.lView, + v = a[1].data, + E = v[t.nodeIndex], + R = {}; + return ( + (function (e, t) { + if (e) { + let a = Object.getPrototypeOf(e); + const v = Node.prototype; + for (; null !== a && a !== v; ) { + const E = Object.getOwnPropertyDescriptors(a); + for (let R in E) + if (!R.startsWith("__") && !R.startsWith("on")) { + const W = e[R]; + IC(W) && (t[R] = W); + } + a = Object.getPrototypeOf(a); + } + } + })(this.nativeElement, R), + (function (e, t, a, v) { + let E = t.propertyBindings; + if (null !== E) + for (let R = 0; R < E.length; R++) { + const W = E[R], + ge = v[W].split("\ufffd"), + De = ge[0]; + if (ge.length > 1) { + let ke = ge[1]; + for (let qe = 1; qe < ge.length - 1; qe++) + ke += T(a[W + qe - 1]) + ge[qe + 1]; + e[De] = ke; + } else e[De] = a[W]; + } + })(R, E, a, v), + R + ); + } + get attributes() { + const t = {}, + a = this.nativeElement; + if (!a) return t; + const v = Qr(a); + if (null === v) return {}; + const R = v.lView[1].data[v.nodeIndex].attrs, + W = []; + if (R) { + let ge = 0; + for (; ge < R.length; ) { + const De = R[ge]; + if ("string" != typeof De) break; + (t[De] = R[ge + 1]), W.push(De.toLowerCase()), (ge += 2); + } + } + const se = a.attributes; + for (let ge = 0; ge < se.length; ge++) { + const De = se[ge], + ke = De.name.toLowerCase(); + -1 === W.indexOf(ke) && (t[ke] = De.value); + } + return t; + } + get styles() { + return this.nativeElement && this.nativeElement.style + ? this.nativeElement.style + : {}; + } + get classes() { + const t = {}, + v = this.nativeElement.className; + return ( + ("string" != typeof v + ? v.baseVal.split(" ") + : v.split(" ") + ).forEach((R) => (t[R] = !0)), + t + ); + } + get childNodes() { + const t = this.nativeNode.childNodes, + a = []; + for (let v = 0; v < t.length; v++) a.push(Nd(t[v])); + return a; + } + get children() { + const t = this.nativeElement; + if (!t) return []; + const a = t.children, + v = []; + for (let E = 0; E < a.length; E++) v.push(Nd(a[E])); + return v; + } + query(t) { + return this.queryAll(t)[0] || null; + } + queryAll(t) { + const a = []; + return Tg(this, t, a, !0), a; + } + queryAllNodes(t) { + const a = []; + return Tg(this, t, a, !1), a; + } + triggerEventHandler(t, a) { + const v = this.nativeNode, + E = []; + this.listeners.forEach((R) => { + if (R.name === t) { + const W = R.callback; + W.call(v, a), E.push(W); + } + }), + "function" == typeof v.eventListeners && + v.eventListeners(t).forEach((R) => { + if (-1 !== R.toString().indexOf("__ngUnwrap__")) { + const W = R("__ngUnwrap__"); + return -1 === E.indexOf(W) && W.call(v, a); + } + }); + } + } + function IC(e) { + return ( + "string" == typeof e || + "boolean" == typeof e || + "number" == typeof e || + null === e + ); + } + function Tg(e, t, a, v) { + const E = Qr(e.nativeNode); + null !== E + ? To(E.lView[1].data[E.nodeIndex], E.lView, t, a, v, e.nativeNode) + : kd(e.nativeNode, t, a, v); + } + function To(e, t, a, v, E, R) { + const W = (function (e, t) { + const a = null === e ? -1 : e.index; + return -1 !== a ? be(t[a]) : null; + })(e, t); + if (11 & e.type) { + if ((Ld(W, a, v, E, R), Ui(e))) { + const ge = In(e.index, t); + ge && ge[1].firstChild && To(ge[1].firstChild, ge, a, v, E, R); + } else e.child && To(e.child, t, a, v, E, R), W && kd(W, a, v, E); + const se = t[e.index]; + pi(se) && xg(se, a, v, E, R); + } else if (4 & e.type) { + const se = t[e.index]; + Ld(se[7], a, v, E, R), xg(se, a, v, E, R); + } else if (16 & e.type) { + const se = t[16], + De = se[6].projection[e.projection]; + if (Array.isArray(De)) for (let ke of De) Ld(ke, a, v, E, R); + else if (De) { + const ke = se[3]; + To(ke[1].data[De.index], ke, a, v, E, R); + } + } else e.child && To(e.child, t, a, v, E, R); + if (R !== W) { + const se = 4 & e.flags ? e.projectionNext : e.next; + se && To(se, t, a, v, E, R); + } + } + function xg(e, t, a, v, E) { + for (let R = 10; R < e.length; R++) { + const W = e[R], + se = W[1].firstChild; + se && To(se, W, t, a, v, E); + } + } + function Ld(e, t, a, v, E) { + if (E !== e) { + const R = Ll(e); + if (!R) return; + ((v && R instanceof za && t(R) && -1 === a.indexOf(R)) || + (!v && t(R) && -1 === a.indexOf(R))) && + a.push(R); + } + } + function kd(e, t, a, v) { + const E = e.childNodes, + R = E.length; + for (let W = 0; W < R; W++) { + const se = E[W], + ge = Ll(se); + ge && + (((v && ge instanceof za && t(ge) && -1 === a.indexOf(ge)) || + (!v && t(ge) && -1 === a.indexOf(ge))) && + a.push(ge), + kd(se, t, a, v)); + } + } + const Fd = "__ng_debug__"; + function Nd(e) { + return e instanceof Node + ? (e.hasOwnProperty(Fd) || + (e[Fd] = e.nodeType == Node.ELEMENT_NODE ? new za(e) : new Rd(e)), + e[Fd]) + : null; + } + const Ll = Nd, + RC = function (e) { + return null; + }, + LC = Rd, + kC = za; + class Ig { + constructor() {} + supports(t) { + return Ta(t); + } + create(t) { + return new Ag(t); + } + } + const PC = (e, t) => t; + class Ag { + constructor(t) { + (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 = t || PC); + } + forEachItem(t) { + let a; + for (a = this._itHead; null !== a; a = a._next) t(a); + } + forEachOperation(t) { + let a = this._itHead, + v = this._removalsHead, + E = 0, + R = null; + for (; a || v; ) { + const W = !v || (a && a.currentIndex < Rg(v, E, R)) ? a : v, + se = Rg(W, E, R), + ge = W.currentIndex; + if (W === v) E--, (v = v._nextRemoved); + else if (((a = a._next), null == W.previousIndex)) E++; + else { + R || (R = []); + const De = se - E, + ke = ge - E; + if (De != ke) { + for (let Ct = 0; Ct < De; Ct++) { + const Pt = Ct < R.length ? R[Ct] : (R[Ct] = 0), + Yt = Pt + Ct; + ke <= Yt && Yt < De && (R[Ct] = Pt + 1); + } + R[W.previousIndex] = ke - De; + } + } + se !== ge && t(W, se, ge); + } + } + forEachPreviousItem(t) { + let a; + for (a = this._previousItHead; null !== a; a = a._nextPrevious) t(a); + } + forEachAddedItem(t) { + let a; + for (a = this._additionsHead; null !== a; a = a._nextAdded) t(a); + } + forEachMovedItem(t) { + let a; + for (a = this._movesHead; null !== a; a = a._nextMoved) t(a); + } + forEachRemovedItem(t) { + let a; + for (a = this._removalsHead; null !== a; a = a._nextRemoved) t(a); + } + forEachIdentityChange(t) { + let a; + for ( + a = this._identityChangesHead; + null !== a; + a = a._nextIdentityChange + ) + t(a); + } + diff(t) { + if ((null == t && (t = []), !Ta(t))) + throw new Error( + `Error trying to diff '${h( + t + )}'. Only arrays and iterables are allowed` + ); + return this.check(t) ? this : null; + } + onDestroy() {} + check(t) { + this._reset(); + let E, + R, + W, + a = this._itHead, + v = !1; + if (Array.isArray(t)) { + this.length = t.length; + for (let se = 0; se < this.length; se++) + (R = t[se]), + (W = this._trackByFn(se, R)), + null !== a && Object.is(a.trackById, W) + ? (v && (a = this._verifyReinsertion(a, R, W, se)), + Object.is(a.item, R) || this._addIdentityChange(a, R)) + : ((a = this._mismatch(a, R, W, se)), (v = !0)), + (a = a._next); + } else + (E = 0), + (function (e, t) { + if (Array.isArray(e)) + for (let a = 0; a < e.length; a++) t(e[a]); + else { + const a = e[jo()](); + let v; + for (; !(v = a.next()).done; ) t(v.value); + } + })(t, (se) => { + (W = this._trackByFn(E, se)), + null !== a && Object.is(a.trackById, W) + ? (v && (a = this._verifyReinsertion(a, se, W, E)), + Object.is(a.item, se) || this._addIdentityChange(a, se)) + : ((a = this._mismatch(a, se, W, E)), (v = !0)), + (a = a._next), + E++; + }), + (this.length = E); + return this._truncate(a), (this.collection = t), this.isDirty; + } + get isDirty() { + return ( + null !== this._additionsHead || + null !== this._movesHead || + null !== this._removalsHead || + null !== this._identityChangesHead + ); + } + _reset() { + if (this.isDirty) { + let t; + for ( + t = this._previousItHead = this._itHead; + null !== t; + t = t._next + ) + t._nextPrevious = t._next; + for (t = this._additionsHead; null !== t; t = t._nextAdded) + t.previousIndex = t.currentIndex; + for ( + this._additionsHead = this._additionsTail = null, + t = this._movesHead; + null !== t; + t = t._nextMoved + ) + t.previousIndex = t.currentIndex; + (this._movesHead = this._movesTail = null), + (this._removalsHead = this._removalsTail = null), + (this._identityChangesHead = this._identityChangesTail = null); + } + } + _mismatch(t, a, v, E) { + let R; + return ( + null === t ? (R = this._itTail) : ((R = t._prev), this._remove(t)), + null !== + (t = + null === this._unlinkedRecords + ? null + : this._unlinkedRecords.get(v, null)) + ? (Object.is(t.item, a) || this._addIdentityChange(t, a), + this._reinsertAfter(t, R, E)) + : null !== + (t = + null === this._linkedRecords + ? null + : this._linkedRecords.get(v, E)) + ? (Object.is(t.item, a) || this._addIdentityChange(t, a), + this._moveAfter(t, R, E)) + : (t = this._addAfter(new FC(a, v), R, E)), + t + ); + } + _verifyReinsertion(t, a, v, E) { + let R = + null === this._unlinkedRecords + ? null + : this._unlinkedRecords.get(v, null); + return ( + null !== R + ? (t = this._reinsertAfter(R, t._prev, E)) + : t.currentIndex != E && + ((t.currentIndex = E), this._addToMoves(t, E)), + t + ); + } + _truncate(t) { + for (; null !== t; ) { + const a = t._next; + this._addToRemovals(this._unlink(t)), (t = a); + } + 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(t, a, v) { + null !== this._unlinkedRecords && this._unlinkedRecords.remove(t); + const E = t._prevRemoved, + R = t._nextRemoved; + return ( + null === E ? (this._removalsHead = R) : (E._nextRemoved = R), + null === R ? (this._removalsTail = E) : (R._prevRemoved = E), + this._insertAfter(t, a, v), + this._addToMoves(t, v), + t + ); + } + _moveAfter(t, a, v) { + return ( + this._unlink(t), + this._insertAfter(t, a, v), + this._addToMoves(t, v), + t + ); + } + _addAfter(t, a, v) { + return ( + this._insertAfter(t, a, v), + (this._additionsTail = + null === this._additionsTail + ? (this._additionsHead = t) + : (this._additionsTail._nextAdded = t)), + t + ); + } + _insertAfter(t, a, v) { + const E = null === a ? this._itHead : a._next; + return ( + (t._next = E), + (t._prev = a), + null === E ? (this._itTail = t) : (E._prev = t), + null === a ? (this._itHead = t) : (a._next = t), + null === this._linkedRecords && (this._linkedRecords = new Og()), + this._linkedRecords.put(t), + (t.currentIndex = v), + t + ); + } + _remove(t) { + return this._addToRemovals(this._unlink(t)); + } + _unlink(t) { + null !== this._linkedRecords && this._linkedRecords.remove(t); + const a = t._prev, + v = t._next; + return ( + null === a ? (this._itHead = v) : (a._next = v), + null === v ? (this._itTail = a) : (v._prev = a), + t + ); + } + _addToMoves(t, a) { + return ( + t.previousIndex === a || + (this._movesTail = + null === this._movesTail + ? (this._movesHead = t) + : (this._movesTail._nextMoved = t)), + t + ); + } + _addToRemovals(t) { + return ( + null === this._unlinkedRecords && + (this._unlinkedRecords = new Og()), + this._unlinkedRecords.put(t), + (t.currentIndex = null), + (t._nextRemoved = null), + null === this._removalsTail + ? ((this._removalsTail = this._removalsHead = t), + (t._prevRemoved = null)) + : ((t._prevRemoved = this._removalsTail), + (this._removalsTail = this._removalsTail._nextRemoved = t)), + t + ); + } + _addIdentityChange(t, a) { + return ( + (t.item = a), + (this._identityChangesTail = + null === this._identityChangesTail + ? (this._identityChangesHead = t) + : (this._identityChangesTail._nextIdentityChange = t)), + t + ); + } + } + class FC { + constructor(t, a) { + (this.item = t), + (this.trackById = a), + (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 NC { + constructor() { + (this._head = null), (this._tail = null); + } + add(t) { + null === this._head + ? ((this._head = this._tail = t), + (t._nextDup = null), + (t._prevDup = null)) + : ((this._tail._nextDup = t), + (t._prevDup = this._tail), + (t._nextDup = null), + (this._tail = t)); + } + get(t, a) { + let v; + for (v = this._head; null !== v; v = v._nextDup) + if ( + (null === a || a <= v.currentIndex) && + Object.is(v.trackById, t) + ) + return v; + return null; + } + remove(t) { + const a = t._prevDup, + v = t._nextDup; + return ( + null === a ? (this._head = v) : (a._nextDup = v), + null === v ? (this._tail = a) : (v._prevDup = a), + null === this._head + ); + } + } + class Og { + constructor() { + this.map = new Map(); + } + put(t) { + const a = t.trackById; + let v = this.map.get(a); + v || ((v = new NC()), this.map.set(a, v)), v.add(t); + } + get(t, a) { + const E = this.map.get(t); + return E ? E.get(t, a) : null; + } + remove(t) { + const a = t.trackById; + return this.map.get(a).remove(t) && this.map.delete(a), t; + } + get isEmpty() { + return 0 === this.map.size; + } + clear() { + this.map.clear(); + } + } + function Rg(e, t, a) { + const v = e.previousIndex; + if (null === v) return v; + let E = 0; + return a && v < a.length && (E = a[v]), v + t + E; + } + class Lg { + constructor() {} + supports(t) { + return t instanceof Map || Gu(t); + } + create() { + return new UC(); + } + } + class UC { + 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(t) { + let a; + for (a = this._mapHead; null !== a; a = a._next) t(a); + } + forEachPreviousItem(t) { + let a; + for (a = this._previousMapHead; null !== a; a = a._nextPrevious) t(a); + } + forEachChangedItem(t) { + let a; + for (a = this._changesHead; null !== a; a = a._nextChanged) t(a); + } + forEachAddedItem(t) { + let a; + for (a = this._additionsHead; null !== a; a = a._nextAdded) t(a); + } + forEachRemovedItem(t) { + let a; + for (a = this._removalsHead; null !== a; a = a._nextRemoved) t(a); + } + diff(t) { + if (t) { + if (!(t instanceof Map || Gu(t))) + throw new Error( + `Error trying to diff '${h( + t + )}'. Only maps and objects are allowed` + ); + } else t = new Map(); + return this.check(t) ? this : null; + } + onDestroy() {} + check(t) { + this._reset(); + let a = this._mapHead; + if ( + ((this._appendAfter = null), + this._forEach(t, (v, E) => { + if (a && a.key === E) + this._maybeAddToChanges(a, v), + (this._appendAfter = a), + (a = a._next); + else { + const R = this._getOrCreateRecordForKey(E, v); + a = this._insertBeforeOrAppend(a, R); + } + }), + a) + ) { + a._prev && (a._prev._next = null), (this._removalsHead = a); + for (let v = a; null !== v; v = v._nextRemoved) + v === this._mapHead && (this._mapHead = null), + this._records.delete(v.key), + (v._nextRemoved = v._next), + (v.previousValue = v.currentValue), + (v.currentValue = null), + (v._prev = null), + (v._next = null); + } + return ( + this._changesTail && (this._changesTail._nextChanged = null), + this._additionsTail && (this._additionsTail._nextAdded = null), + this.isDirty + ); + } + _insertBeforeOrAppend(t, a) { + if (t) { + const v = t._prev; + return ( + (a._next = t), + (a._prev = v), + (t._prev = a), + v && (v._next = a), + t === this._mapHead && (this._mapHead = a), + (this._appendAfter = t), + t + ); + } + return ( + this._appendAfter + ? ((this._appendAfter._next = a), (a._prev = this._appendAfter)) + : (this._mapHead = a), + (this._appendAfter = a), + null + ); + } + _getOrCreateRecordForKey(t, a) { + if (this._records.has(t)) { + const E = this._records.get(t); + this._maybeAddToChanges(E, a); + const R = E._prev, + W = E._next; + return ( + R && (R._next = W), + W && (W._prev = R), + (E._next = null), + (E._prev = null), + E + ); + } + const v = new BC(t); + return ( + this._records.set(t, v), + (v.currentValue = a), + this._addToAdditions(v), + v + ); + } + _reset() { + if (this.isDirty) { + let t; + for ( + this._previousMapHead = this._mapHead, t = this._previousMapHead; + null !== t; + t = t._next + ) + t._nextPrevious = t._next; + for (t = this._changesHead; null !== t; t = t._nextChanged) + t.previousValue = t.currentValue; + for (t = this._additionsHead; null != t; t = t._nextAdded) + t.previousValue = t.currentValue; + (this._changesHead = this._changesTail = null), + (this._additionsHead = this._additionsTail = null), + (this._removalsHead = null); + } + } + _maybeAddToChanges(t, a) { + Object.is(a, t.currentValue) || + ((t.previousValue = t.currentValue), + (t.currentValue = a), + this._addToChanges(t)); + } + _addToAdditions(t) { + null === this._additionsHead + ? (this._additionsHead = this._additionsTail = t) + : ((this._additionsTail._nextAdded = t), (this._additionsTail = t)); + } + _addToChanges(t) { + null === this._changesHead + ? (this._changesHead = this._changesTail = t) + : ((this._changesTail._nextChanged = t), (this._changesTail = t)); + } + _forEach(t, a) { + t instanceof Map + ? t.forEach(a) + : Object.keys(t).forEach((v) => a(t[v], v)); + } + } + class BC { + constructor(t) { + (this.key = t), + (this.previousValue = null), + (this.currentValue = null), + (this._nextPrevious = null), + (this._next = null), + (this._prev = null), + (this._nextAdded = null), + (this._nextRemoved = null), + (this._nextChanged = null); + } + } + function kg() { + return new kl([new Ig()]); + } + let kl = (() => { + class e { + constructor(a) { + this.factories = a; + } + static create(a, v) { + if (null != v) { + const E = v.factories.slice(); + a = a.concat(E); + } + return new e(a); + } + static extend(a) { + return { + provide: e, + useFactory: (v) => e.create(a, v || kg()), + deps: [[e, new Eo(), new Is()]], + }; + } + find(a) { + const v = this.factories.find((E) => E.supports(a)); + if (null != v) return v; + throw new Error( + `Cannot find a differ supporting object '${a}' of type '${(function ( + e + ) { + return e.name || typeof e; + })(a)}'` + ); + } + } + return (e.ɵprov = Ue({ token: e, providedIn: "root", factory: kg })), e; + })(); + function Pg() { + return new Pl([new Lg()]); + } + let Pl = (() => { + class e { + constructor(a) { + this.factories = a; + } + static create(a, v) { + if (v) { + const E = v.factories.slice(); + a = a.concat(E); + } + return new e(a); + } + static extend(a) { + return { + provide: e, + useFactory: (v) => e.create(a, v || Pg()), + deps: [[e, new Eo(), new Is()]], + }; + } + find(a) { + const v = this.factories.find((E) => E.supports(a)); + if (v) return v; + throw new Error(`Cannot find a differ supporting object '${a}'`); + } + } + return (e.ɵprov = Ue({ token: e, providedIn: "root", factory: Pg })), e; + })(); + const $C = [new Lg()], + Fg = new kl([new Ig()]), + Ng = new Pl($C), + jC = _g(null, "core", [ + { provide: rg, useValue: "unknown" }, + { provide: Ad, deps: [gs] }, + { provide: Dd, deps: [] }, + { provide: og, deps: [] }, + ]), + YC = [ + { provide: Wa, useClass: Wa, deps: [_s, gs, Ca, Na, la] }, + { + provide: m1, + deps: [_s], + useFactory: function (e) { + let t = []; + return ( + e.onStable.subscribe(() => { + for (; t.length; ) t.pop()(); + }), + function (a) { + t.push(a); + } + ); + }, + }, + { provide: la, useClass: la, deps: [[new Is(), bd]] }, + { provide: Ed, useClass: Ed, deps: [] }, + ng, + { + provide: kl, + useFactory: function () { + return Fg; + }, + deps: [], + }, + { + provide: Pl, + useFactory: function () { + return Ng; + }, + deps: [], + }, + { + provide: Rl, + useFactory: function (e) { + return ( + e || ("undefined" != typeof $localize && $localize.locale) || Ra + ); + }, + deps: [[new fo(Rl), new Is(), new Eo()]], + }, + { provide: ag, useValue: "USD" }, + ]; + let XC = (() => { + class e { + constructor(a) {} + } + return ( + (e.ɵfac = function (a) { + return new (a || e)(Cn(Wa)); + }), + (e.ɵmod = An({ type: e })), + (e.ɵinj = at({ providers: YC })), + e + ); + })(); + const ZC = !0; + function qC(e) { + return yr().compileDirectiveDeclaration( + is, + `ng:///${e.type.name}/\u0275fac.js`, + e + ); + } + function JC(e) { + var t, a; + Q0( + e.type, + e.decorators, + null !== (t = e.ctorParameters) && void 0 !== t ? t : null, + null !== (a = e.propDecorators) && void 0 !== a ? a : null + ); + } + function eE(e) { + return yr().compileComponentDeclaration( + is, + `ng:///${e.type.name}/\u0275cmp.js`, + e + ); + } + function tE(e) { + return yr( + (function (e) { + switch (e) { + case vr.Directive: + return "directive"; + case vr.Component: + return "component"; + case vr.Injectable: + return "injectable"; + case vr.Pipe: + return "pipe"; + case vr.NgModule: + } + })(e.target) + ).compileFactoryDeclaration(is, `ng:///${e.type.name}/\u0275fac.js`, e); + } + function iE(e) { + return yr().compileInjectableDeclaration( + is, + `ng:///${e.type.name}/\u0275prov.js`, + e + ); + } + function rE(e) { + return yr().compileInjectorDeclaration( + is, + `ng:///${e.type.name}/\u0275inj.js`, + e + ); + } + function sE(e) { + return yr().compileNgModuleDeclaration( + is, + `ng:///${e.type.name}/\u0275mod.js`, + e + ); + } + function oE(e) { + return yr().compilePipeDeclaration( + is, + `ng:///${e.type.name}/\u0275pipe.js`, + e + ); + } + }, + 3075: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + AbstractControl: () => Ni, + AbstractControlDirective: () => yt, + AbstractFormGroupDirective: () => ue, + COMPOSITION_BUFFER_MODE: () => l, + CheckboxControlValueAccessor: () => o, + CheckboxRequiredValidator: () => Hr, + ControlContainer: () => _t, + DefaultValueAccessor: () => g, + EmailValidator: () => Wi, + FormArray: () => Vi, + FormArrayName: () => oi, + FormBuilder: () => Er, + FormControl: () => Ti, + FormControlDirective: () => Gi, + FormControlName: () => mi, + FormGroup: () => qn, + FormGroupDirective: () => tr, + FormGroupName: () => Rn, + FormsModule: () => us, + MaxLengthValidator: () => Lr, + MaxValidator: () => hr, + MinLengthValidator: () => Rr, + MinValidator: () => ir, + NG_ASYNC_VALIDATORS: () => T, + NG_VALIDATORS: () => x, + NG_VALUE_ACCESSOR: () => h, + NgControl: () => ot, + NgControlStatus: () => Et, + NgControlStatusGroup: () => Ee, + NgForm: () => Ze, + NgModel: () => Zt, + NgModelGroup: () => Wt, + NgSelectOption: () => Sn, + NumberValueAccessor: () => zn, + PatternValidator: () => Fr, + RadioControlValueAccessor: () => kn, + RangeValueAccessor: () => Zi, + ReactiveFormsModule: () => si, + RequiredValidator: () => mr, + SelectControlValueAccessor: () => yn, + SelectMultipleControlValueAccessor: () => Vr, + VERSION: () => be, + Validators: () => M, + ɵInternalFormsSharedModule: () => Tr, + ɵNgNoValidate: () => an, + ɵNgSelectMultipleOption: () => nr, + }); + var n = p(5e3), + f = p(9808), + _ = p(5254), + m = p(567), + s = p(4850); + let d = (() => { + class Q { + constructor(V, ve) { + (this._renderer = V), + (this._elementRef = ve), + (this.onChange = (nt) => {}), + (this.onTouched = () => {}); + } + setProperty(V, ve) { + this._renderer.setProperty(this._elementRef.nativeElement, V, ve); + } + registerOnTouched(V) { + this.onTouched = V; + } + registerOnChange(V) { + this.onChange = V; + } + setDisabledState(V) { + this.setProperty("disabled", V); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(n.Renderer2), + n.ɵɵdirectiveInject(n.ElementRef) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ type: Q })), + Q + ); + })(), + u = (() => { + class Q extends d {} + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + features: [n.ɵɵInheritDefinitionFeature], + })), + Q + ); + })(); + const h = new n.InjectionToken("NgValueAccessor"), + r = { provide: h, useExisting: (0, n.forwardRef)(() => o), multi: !0 }; + let o = (() => { + class Q extends u { + writeValue(V) { + this.setProperty("checked", V); + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["input", "type", "checkbox", "formControlName", ""], + ["input", "type", "checkbox", "formControl", ""], + ["input", "type", "checkbox", "ngModel", ""], + ], + hostBindings: function (V, ve) { + 1 & V && + n.ɵɵlistener("change", function (Nt) { + return ve.onChange(Nt.target.checked); + })("blur", function () { + return ve.onTouched(); + }); + }, + features: [n.ɵɵProvidersFeature([r]), n.ɵɵInheritDefinitionFeature], + })), + Q + ); + })(); + const i = { + provide: h, + useExisting: (0, n.forwardRef)(() => g), + multi: !0, + }, + l = new n.InjectionToken("CompositionEventMode"); + let g = (() => { + class Q extends d { + constructor(V, ve, nt) { + super(V, ve), + (this._compositionMode = nt), + (this._composing = !1), + null == this._compositionMode && + (this._compositionMode = !(function () { + const Q = (0, f.ɵgetDOM)() + ? (0, f.ɵgetDOM)().getUserAgent() + : ""; + return /android (\d+)/.test(Q.toLowerCase()); + })()); + } + writeValue(V) { + this.setProperty("value", null == V ? "" : V); + } + _handleInput(V) { + (!this._compositionMode || + (this._compositionMode && !this._composing)) && + this.onChange(V); + } + _compositionStart() { + this._composing = !0; + } + _compositionEnd(V) { + (this._composing = !1), this._compositionMode && this.onChange(V); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(n.Renderer2), + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(l, 8) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["input", "formControlName", "", 3, "type", "checkbox"], + ["textarea", "formControlName", ""], + ["input", "formControl", "", 3, "type", "checkbox"], + ["textarea", "formControl", ""], + ["input", "ngModel", "", 3, "type", "checkbox"], + ["textarea", "ngModel", ""], + ["", "ngDefaultControl", ""], + ], + hostBindings: function (V, ve) { + 1 & V && + n.ɵɵlistener("input", function (Nt) { + return ve._handleInput(Nt.target.value); + })("blur", function () { + return ve.onTouched(); + })("compositionstart", function () { + return ve._compositionStart(); + })("compositionend", function (Nt) { + return ve._compositionEnd(Nt.target.value); + }); + }, + features: [n.ɵɵProvidersFeature([i]), n.ɵɵInheritDefinitionFeature], + })), + Q + ); + })(); + function b(Q) { + return null == Q || 0 === Q.length; + } + function y(Q) { + return null != Q && "number" == typeof Q.length; + } + const x = new n.InjectionToken("NgValidators"), + T = new n.InjectionToken("NgAsyncValidators"), + O = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[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 M { + static min(k) { + return A(k); + } + static max(k) { + return S(k); + } + static required(k) { + return w(k); + } + static requiredTrue(k) { + return I(k); + } + static email(k) { + return C(k); + } + static minLength(k) { + return L(k); + } + static maxLength(k) { + return F(k); + } + static pattern(k) { + return ie(k); + } + static nullValidator(k) { + return null; + } + static compose(k) { + return le(k); + } + static composeAsync(k) { + return Le(k); + } + } + function A(Q) { + return (k) => { + if (b(k.value) || b(Q)) return null; + const V = parseFloat(k.value); + return !isNaN(V) && V < Q + ? { min: { min: Q, actual: k.value } } + : null; + }; + } + function S(Q) { + return (k) => { + if (b(k.value) || b(Q)) return null; + const V = parseFloat(k.value); + return !isNaN(V) && V > Q + ? { max: { max: Q, actual: k.value } } + : null; + }; + } + function w(Q) { + return b(Q.value) ? { required: !0 } : null; + } + function I(Q) { + return !0 === Q.value ? null : { required: !0 }; + } + function C(Q) { + return b(Q.value) || O.test(Q.value) ? null : { email: !0 }; + } + function L(Q) { + return (k) => + b(k.value) || !y(k.value) + ? null + : k.value.length < Q + ? { minlength: { requiredLength: Q, actualLength: k.value.length } } + : null; + } + function F(Q) { + return (k) => + y(k.value) && k.value.length > Q + ? { maxlength: { requiredLength: Q, actualLength: k.value.length } } + : null; + } + function ie(Q) { + if (!Q) return Y; + let k, V; + return ( + "string" == typeof Q + ? ((V = ""), + "^" !== Q.charAt(0) && (V += "^"), + (V += Q), + "$" !== Q.charAt(Q.length - 1) && (V += "$"), + (k = new RegExp(V))) + : ((V = Q.toString()), (k = Q)), + (ve) => { + if (b(ve.value)) return null; + const nt = ve.value; + return k.test(nt) + ? null + : { pattern: { requiredPattern: V, actualValue: nt } }; + } + ); + } + function Y(Q) { + return null; + } + function Z(Q) { + return null != Q; + } + function ee(Q) { + const k = (0, n.ɵisPromise)(Q) ? (0, _.D)(Q) : Q; + return (0, n.ɵisObservable)(k), k; + } + function $(Q) { + let k = {}; + return ( + Q.forEach((V) => { + k = null != V ? Object.assign(Object.assign({}, k), V) : k; + }), + 0 === Object.keys(k).length ? null : k + ); + } + function J(Q, k) { + return k.map((V) => V(Q)); + } + function ae(Q) { + return Q.map((k) => + (function (Q) { + return !Q.validate; + })(k) + ? k + : (V) => k.validate(V) + ); + } + function le(Q) { + if (!Q) return null; + const k = Q.filter(Z); + return 0 == k.length + ? null + : function (V) { + return $(J(V, k)); + }; + } + function Oe(Q) { + return null != Q ? le(ae(Q)) : null; + } + function Le(Q) { + if (!Q) return null; + const k = Q.filter(Z); + return 0 == k.length + ? null + : function (V) { + const ve = J(V, k).map(ee); + return (0, m.D)(ve).pipe((0, s.U)($)); + }; + } + function Ye(Q) { + return null != Q ? Le(ae(Q)) : null; + } + function Je(Q, k) { + return null === Q ? [k] : Array.isArray(Q) ? [...Q, k] : [Q, k]; + } + function gt(Q) { + return Q._rawValidators; + } + function Ue(Q) { + return Q._rawAsyncValidators; + } + function tt(Q) { + return Q ? (Array.isArray(Q) ? Q : [Q]) : []; + } + function at(Q, k) { + return Array.isArray(Q) ? Q.includes(k) : Q === k; + } + function ft(Q, k) { + const V = tt(k); + return ( + tt(Q).forEach((nt) => { + at(V, nt) || V.push(nt); + }), + V + ); + } + function vt(Q, k) { + return tt(k).filter((V) => !at(Q, V)); + } + class yt { + constructor() { + (this._rawValidators = []), + (this._rawAsyncValidators = []), + (this._onDestroyCallbacks = []); + } + 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; + } + _setValidators(k) { + (this._rawValidators = k || []), + (this._composedValidatorFn = Oe(this._rawValidators)); + } + _setAsyncValidators(k) { + (this._rawAsyncValidators = k || []), + (this._composedAsyncValidatorFn = Ye(this._rawAsyncValidators)); + } + get validator() { + return this._composedValidatorFn || null; + } + get asyncValidator() { + return this._composedAsyncValidatorFn || null; + } + _registerOnDestroy(k) { + this._onDestroyCallbacks.push(k); + } + _invokeOnDestroyCallbacks() { + this._onDestroyCallbacks.forEach((k) => k()), + (this._onDestroyCallbacks = []); + } + reset(k) { + this.control && this.control.reset(k); + } + hasError(k, V) { + return !!this.control && this.control.hasError(k, V); + } + getError(k, V) { + return this.control ? this.control.getError(k, V) : null; + } + } + class ot extends yt { + constructor() { + super(...arguments), + (this._parent = null), + (this.name = null), + (this.valueAccessor = null); + } + } + class _t extends yt { + get formDirective() { + return null; + } + get path() { + return null; + } + } + class At { + constructor(k) { + this._cd = k; + } + is(k) { + var V, ve, nt; + return "submitted" === k + ? !!(null === (V = this._cd) || void 0 === V ? void 0 : V.submitted) + : !!(null === + (nt = + null === (ve = this._cd) || void 0 === ve + ? void 0 + : ve.control) || void 0 === nt + ? void 0 + : nt[k]); + } + } + let Et = (() => { + class Q extends At { + constructor(V) { + super(V); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(n.ɵɵdirectiveInject(ot, 2)); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["", "formControlName", ""], + ["", "ngModel", ""], + ["", "formControl", ""], + ], + hostVars: 14, + hostBindings: function (V, ve) { + 2 & V && + n.ɵɵclassProp("ng-untouched", ve.is("untouched"))( + "ng-touched", + ve.is("touched") + )("ng-pristine", ve.is("pristine"))( + "ng-dirty", + ve.is("dirty") + )("ng-valid", ve.is("valid"))("ng-invalid", ve.is("invalid"))( + "ng-pending", + ve.is("pending") + ); + }, + features: [n.ɵɵInheritDefinitionFeature], + })), + Q + ); + })(), + Ee = (() => { + class Q extends At { + constructor(V) { + super(V); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(n.ɵɵdirectiveInject(_t, 10)); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["", "formGroupName", ""], + ["", "formArrayName", ""], + ["", "ngModelGroup", ""], + ["", "formGroup", ""], + ["form", 3, "ngNoForm", ""], + ["", "ngForm", ""], + ], + hostVars: 16, + hostBindings: function (V, ve) { + 2 & V && + n.ɵɵclassProp("ng-untouched", ve.is("untouched"))( + "ng-touched", + ve.is("touched") + )("ng-pristine", ve.is("pristine"))( + "ng-dirty", + ve.is("dirty") + )("ng-valid", ve.is("valid"))("ng-invalid", ve.is("invalid"))( + "ng-pending", + ve.is("pending") + )("ng-submitted", ve.is("submitted")); + }, + features: [n.ɵɵInheritDefinitionFeature], + })), + Q + ); + })(); + function tn(Q, k) { + return [...k.path, Q]; + } + function Dt(Q, k) { + Lt(Q, k), + k.valueAccessor.writeValue(Q.value), + (function (Q, k) { + k.valueAccessor.registerOnChange((V) => { + (Q._pendingValue = V), + (Q._pendingChange = !0), + (Q._pendingDirty = !0), + "change" === Q.updateOn && qt(Q, k); + }); + })(Q, k), + (function (Q, k) { + const V = (ve, nt) => { + k.valueAccessor.writeValue(ve), nt && k.viewToModelUpdate(ve); + }; + Q.registerOnChange(V), + k._registerOnDestroy(() => { + Q._unregisterOnChange(V); + }); + })(Q, k), + (function (Q, k) { + k.valueAccessor.registerOnTouched(() => { + (Q._pendingTouched = !0), + "blur" === Q.updateOn && Q._pendingChange && qt(Q, k), + "submit" !== Q.updateOn && Q.markAsTouched(); + }); + })(Q, k), + (function (Q, k) { + if (k.valueAccessor.setDisabledState) { + const V = (ve) => { + k.valueAccessor.setDisabledState(ve); + }; + Q.registerOnDisabledChange(V), + k._registerOnDestroy(() => { + Q._unregisterOnDisabledChange(V); + }); + } + })(Q, k); + } + function Kt(Q, k, V = !0) { + const ve = () => {}; + k.valueAccessor && + (k.valueAccessor.registerOnChange(ve), + k.valueAccessor.registerOnTouched(ve)), + Qe(Q, k), + Q && + (k._invokeOnDestroyCallbacks(), + Q._registerOnCollectionChange(() => {})); + } + function et(Q, k) { + Q.forEach((V) => { + V.registerOnValidatorChange && V.registerOnValidatorChange(k); + }); + } + function Lt(Q, k) { + const V = gt(Q); + null !== k.validator + ? Q.setValidators(Je(V, k.validator)) + : "function" == typeof V && Q.setValidators([V]); + const ve = Ue(Q); + null !== k.asyncValidator + ? Q.setAsyncValidators(Je(ve, k.asyncValidator)) + : "function" == typeof ve && Q.setAsyncValidators([ve]); + const nt = () => Q.updateValueAndValidity(); + et(k._rawValidators, nt), et(k._rawAsyncValidators, nt); + } + function Qe(Q, k) { + let V = !1; + if (null !== Q) { + if (null !== k.validator) { + const nt = gt(Q); + if (Array.isArray(nt) && nt.length > 0) { + const Nt = nt.filter((nn) => nn !== k.validator); + Nt.length !== nt.length && ((V = !0), Q.setValidators(Nt)); + } + } + if (null !== k.asyncValidator) { + const nt = Ue(Q); + if (Array.isArray(nt) && nt.length > 0) { + const Nt = nt.filter((nn) => nn !== k.asyncValidator); + Nt.length !== nt.length && ((V = !0), Q.setAsyncValidators(Nt)); + } + } + } + const ve = () => {}; + return et(k._rawValidators, ve), et(k._rawAsyncValidators, ve), V; + } + function qt(Q, k) { + Q._pendingDirty && Q.markAsDirty(), + Q.setValue(Q._pendingValue, { emitModelToViewChange: !1 }), + k.viewToModelUpdate(Q._pendingValue), + (Q._pendingChange = !1); + } + function Se(Q, k) { + Lt(Q, k); + } + function ze(Q, k) { + if (!Q.hasOwnProperty("model")) return !1; + const V = Q.model; + return !!V.isFirstChange() || !Object.is(k, V.currentValue); + } + function Qt(Q, k) { + Q._syncPendingControls(), + k.forEach((V) => { + const ve = V.control; + "submit" === ve.updateOn && + ve._pendingChange && + (V.viewToModelUpdate(ve._pendingValue), (ve._pendingChange = !1)); + }); + } + function cn(Q, k) { + if (!k) return null; + let V, ve, nt; + return ( + Array.isArray(k), + k.forEach((Nt) => { + Nt.constructor === g + ? (V = Nt) + : (function (Q) { + return Object.getPrototypeOf(Q.constructor) === u; + })(Nt) + ? (ve = Nt) + : (nt = Nt); + }), + nt || ve || V || null + ); + } + function An(Q, k) { + const V = Q.indexOf(k); + V > -1 && Q.splice(V, 1); + } + const ct = "VALID", + He = "INVALID", + pt = "PENDING", + Ot = "DISABLED"; + function on(Q) { + return (Oi(Q) ? Q.validators : Q) || null; + } + function On(Q) { + return Array.isArray(Q) ? Oe(Q) : Q || null; + } + function Yn(Q, k) { + return (Oi(k) ? k.asyncValidators : Q) || null; + } + function ji(Q) { + return Array.isArray(Q) ? Ye(Q) : Q || null; + } + function Oi(Q) { + return null != Q && !Array.isArray(Q) && "object" == typeof Q; + } + class Ni { + constructor(k, V) { + (this._pendingDirty = !1), + (this._hasOwnPendingAsyncValidator = !1), + (this._pendingTouched = !1), + (this._onCollectionChange = () => {}), + (this._parent = null), + (this.pristine = !0), + (this.touched = !1), + (this._onDisabledChange = []), + (this._rawValidators = k), + (this._rawAsyncValidators = V), + (this._composedValidatorFn = On(this._rawValidators)), + (this._composedAsyncValidatorFn = ji(this._rawAsyncValidators)); + } + get validator() { + return this._composedValidatorFn; + } + set validator(k) { + this._rawValidators = this._composedValidatorFn = k; + } + get asyncValidator() { + return this._composedAsyncValidatorFn; + } + set asyncValidator(k) { + this._rawAsyncValidators = this._composedAsyncValidatorFn = k; + } + get parent() { + return this._parent; + } + get valid() { + return this.status === ct; + } + get invalid() { + return this.status === He; + } + get pending() { + return this.status == pt; + } + get disabled() { + return this.status === Ot; + } + get enabled() { + return this.status !== Ot; + } + get dirty() { + return !this.pristine; + } + get untouched() { + return !this.touched; + } + get updateOn() { + return this._updateOn + ? this._updateOn + : this.parent + ? this.parent.updateOn + : "change"; + } + setValidators(k) { + (this._rawValidators = k), (this._composedValidatorFn = On(k)); + } + setAsyncValidators(k) { + (this._rawAsyncValidators = k), + (this._composedAsyncValidatorFn = ji(k)); + } + addValidators(k) { + this.setValidators(ft(k, this._rawValidators)); + } + addAsyncValidators(k) { + this.setAsyncValidators(ft(k, this._rawAsyncValidators)); + } + removeValidators(k) { + this.setValidators(vt(k, this._rawValidators)); + } + removeAsyncValidators(k) { + this.setAsyncValidators(vt(k, this._rawAsyncValidators)); + } + hasValidator(k) { + return at(this._rawValidators, k); + } + hasAsyncValidator(k) { + return at(this._rawAsyncValidators, k); + } + clearValidators() { + this.validator = null; + } + clearAsyncValidators() { + this.asyncValidator = null; + } + markAsTouched(k = {}) { + (this.touched = !0), + this._parent && !k.onlySelf && this._parent.markAsTouched(k); + } + markAllAsTouched() { + this.markAsTouched({ onlySelf: !0 }), + this._forEachChild((k) => k.markAllAsTouched()); + } + markAsUntouched(k = {}) { + (this.touched = !1), + (this._pendingTouched = !1), + this._forEachChild((V) => { + V.markAsUntouched({ onlySelf: !0 }); + }), + this._parent && !k.onlySelf && this._parent._updateTouched(k); + } + markAsDirty(k = {}) { + (this.pristine = !1), + this._parent && !k.onlySelf && this._parent.markAsDirty(k); + } + markAsPristine(k = {}) { + (this.pristine = !0), + (this._pendingDirty = !1), + this._forEachChild((V) => { + V.markAsPristine({ onlySelf: !0 }); + }), + this._parent && !k.onlySelf && this._parent._updatePristine(k); + } + markAsPending(k = {}) { + (this.status = pt), + !1 !== k.emitEvent && this.statusChanges.emit(this.status), + this._parent && !k.onlySelf && this._parent.markAsPending(k); + } + disable(k = {}) { + const V = this._parentMarkedDirty(k.onlySelf); + (this.status = Ot), + (this.errors = null), + this._forEachChild((ve) => { + ve.disable(Object.assign(Object.assign({}, k), { onlySelf: !0 })); + }), + this._updateValue(), + !1 !== k.emitEvent && + (this.valueChanges.emit(this.value), + this.statusChanges.emit(this.status)), + this._updateAncestors( + Object.assign(Object.assign({}, k), { skipPristineCheck: V }) + ), + this._onDisabledChange.forEach((ve) => ve(!0)); + } + enable(k = {}) { + const V = this._parentMarkedDirty(k.onlySelf); + (this.status = ct), + this._forEachChild((ve) => { + ve.enable(Object.assign(Object.assign({}, k), { onlySelf: !0 })); + }), + this.updateValueAndValidity({ + onlySelf: !0, + emitEvent: k.emitEvent, + }), + this._updateAncestors( + Object.assign(Object.assign({}, k), { skipPristineCheck: V }) + ), + this._onDisabledChange.forEach((ve) => ve(!1)); + } + _updateAncestors(k) { + this._parent && + !k.onlySelf && + (this._parent.updateValueAndValidity(k), + k.skipPristineCheck || this._parent._updatePristine(), + this._parent._updateTouched()); + } + setParent(k) { + this._parent = k; + } + updateValueAndValidity(k = {}) { + this._setInitialStatus(), + this._updateValue(), + this.enabled && + (this._cancelExistingSubscription(), + (this.errors = this._runValidator()), + (this.status = this._calculateStatus()), + (this.status === ct || this.status === pt) && + this._runAsyncValidator(k.emitEvent)), + !1 !== k.emitEvent && + (this.valueChanges.emit(this.value), + this.statusChanges.emit(this.status)), + this._parent && + !k.onlySelf && + this._parent.updateValueAndValidity(k); + } + _updateTreeValidity(k = { emitEvent: !0 }) { + this._forEachChild((V) => V._updateTreeValidity(k)), + this.updateValueAndValidity({ + onlySelf: !0, + emitEvent: k.emitEvent, + }); + } + _setInitialStatus() { + this.status = this._allControlsDisabled() ? Ot : ct; + } + _runValidator() { + return this.validator ? this.validator(this) : null; + } + _runAsyncValidator(k) { + if (this.asyncValidator) { + (this.status = pt), (this._hasOwnPendingAsyncValidator = !0); + const V = ee(this.asyncValidator(this)); + this._asyncValidationSubscription = V.subscribe((ve) => { + (this._hasOwnPendingAsyncValidator = !1), + this.setErrors(ve, { emitEvent: k }); + }); + } + } + _cancelExistingSubscription() { + this._asyncValidationSubscription && + (this._asyncValidationSubscription.unsubscribe(), + (this._hasOwnPendingAsyncValidator = !1)); + } + setErrors(k, V = {}) { + (this.errors = k), this._updateControlsErrors(!1 !== V.emitEvent); + } + get(k) { + return (function (Q, k, V) { + if ( + null == k || + (Array.isArray(k) || (k = k.split(".")), + Array.isArray(k) && 0 === k.length) + ) + return null; + let ve = Q; + return ( + k.forEach((nt) => { + ve = + ve instanceof qn + ? ve.controls.hasOwnProperty(nt) + ? ve.controls[nt] + : null + : (ve instanceof Vi && ve.at(nt)) || null; + }), + ve + ); + })(this, k); + } + getError(k, V) { + const ve = V ? this.get(V) : this; + return ve && ve.errors ? ve.errors[k] : null; + } + hasError(k, V) { + return !!this.getError(k, V); + } + get root() { + let k = this; + for (; k._parent; ) k = k._parent; + return k; + } + _updateControlsErrors(k) { + (this.status = this._calculateStatus()), + k && this.statusChanges.emit(this.status), + this._parent && this._parent._updateControlsErrors(k); + } + _initObservables() { + (this.valueChanges = new n.EventEmitter()), + (this.statusChanges = new n.EventEmitter()); + } + _calculateStatus() { + return this._allControlsDisabled() + ? Ot + : this.errors + ? He + : this._hasOwnPendingAsyncValidator || + this._anyControlsHaveStatus(pt) + ? pt + : this._anyControlsHaveStatus(He) + ? He + : ct; + } + _anyControlsHaveStatus(k) { + return this._anyControls((V) => V.status === k); + } + _anyControlsDirty() { + return this._anyControls((k) => k.dirty); + } + _anyControlsTouched() { + return this._anyControls((k) => k.touched); + } + _updatePristine(k = {}) { + (this.pristine = !this._anyControlsDirty()), + this._parent && !k.onlySelf && this._parent._updatePristine(k); + } + _updateTouched(k = {}) { + (this.touched = this._anyControlsTouched()), + this._parent && !k.onlySelf && this._parent._updateTouched(k); + } + _isBoxedValue(k) { + return ( + "object" == typeof k && + null !== k && + 2 === Object.keys(k).length && + "value" in k && + "disabled" in k + ); + } + _registerOnCollectionChange(k) { + this._onCollectionChange = k; + } + _setUpdateStrategy(k) { + Oi(k) && null != k.updateOn && (this._updateOn = k.updateOn); + } + _parentMarkedDirty(k) { + return ( + !k && + !(!this._parent || !this._parent.dirty) && + !this._parent._anyControlsDirty() + ); + } + } + class Ti extends Ni { + constructor(k = null, V, ve) { + super(on(V), Yn(ve, V)), + (this._onChange = []), + (this._pendingChange = !1), + this._applyFormState(k), + this._setUpdateStrategy(V), + this._initObservables(), + this.updateValueAndValidity({ + onlySelf: !0, + emitEvent: !!this.asyncValidator, + }); + } + setValue(k, V = {}) { + (this.value = this._pendingValue = k), + this._onChange.length && + !1 !== V.emitModelToViewChange && + this._onChange.forEach((ve) => + ve(this.value, !1 !== V.emitViewToModelChange) + ), + this.updateValueAndValidity(V); + } + patchValue(k, V = {}) { + this.setValue(k, V); + } + reset(k = null, V = {}) { + this._applyFormState(k), + this.markAsPristine(V), + this.markAsUntouched(V), + this.setValue(this.value, V), + (this._pendingChange = !1); + } + _updateValue() {} + _anyControls(k) { + return !1; + } + _allControlsDisabled() { + return this.disabled; + } + registerOnChange(k) { + this._onChange.push(k); + } + _unregisterOnChange(k) { + An(this._onChange, k); + } + registerOnDisabledChange(k) { + this._onDisabledChange.push(k); + } + _unregisterOnDisabledChange(k) { + An(this._onDisabledChange, k); + } + _forEachChild(k) {} + _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(k) { + this._isBoxedValue(k) + ? ((this.value = this._pendingValue = k.value), + k.disabled + ? this.disable({ onlySelf: !0, emitEvent: !1 }) + : this.enable({ onlySelf: !0, emitEvent: !1 })) + : (this.value = this._pendingValue = k); + } + } + class qn extends Ni { + constructor(k, V, ve) { + super(on(V), Yn(ve, V)), + (this.controls = k), + this._initObservables(), + this._setUpdateStrategy(V), + this._setUpControls(), + this.updateValueAndValidity({ + onlySelf: !0, + emitEvent: !!this.asyncValidator, + }); + } + registerControl(k, V) { + return this.controls[k] + ? this.controls[k] + : ((this.controls[k] = V), + V.setParent(this), + V._registerOnCollectionChange(this._onCollectionChange), + V); + } + addControl(k, V, ve = {}) { + this.registerControl(k, V), + this.updateValueAndValidity({ emitEvent: ve.emitEvent }), + this._onCollectionChange(); + } + removeControl(k, V = {}) { + this.controls[k] && + this.controls[k]._registerOnCollectionChange(() => {}), + delete this.controls[k], + this.updateValueAndValidity({ emitEvent: V.emitEvent }), + this._onCollectionChange(); + } + setControl(k, V, ve = {}) { + this.controls[k] && + this.controls[k]._registerOnCollectionChange(() => {}), + delete this.controls[k], + V && this.registerControl(k, V), + this.updateValueAndValidity({ emitEvent: ve.emitEvent }), + this._onCollectionChange(); + } + contains(k) { + return this.controls.hasOwnProperty(k) && this.controls[k].enabled; + } + setValue(k, V = {}) { + this._checkAllValuesPresent(k), + Object.keys(k).forEach((ve) => { + this._throwIfControlMissing(ve), + this.controls[ve].setValue(k[ve], { + onlySelf: !0, + emitEvent: V.emitEvent, + }); + }), + this.updateValueAndValidity(V); + } + patchValue(k, V = {}) { + null != k && + (Object.keys(k).forEach((ve) => { + this.controls[ve] && + this.controls[ve].patchValue(k[ve], { + onlySelf: !0, + emitEvent: V.emitEvent, + }); + }), + this.updateValueAndValidity(V)); + } + reset(k = {}, V = {}) { + this._forEachChild((ve, nt) => { + ve.reset(k[nt], { onlySelf: !0, emitEvent: V.emitEvent }); + }), + this._updatePristine(V), + this._updateTouched(V), + this.updateValueAndValidity(V); + } + getRawValue() { + return this._reduceChildren( + {}, + (k, V, ve) => ( + (k[ve] = V instanceof Ti ? V.value : V.getRawValue()), k + ) + ); + } + _syncPendingControls() { + let k = this._reduceChildren( + !1, + (V, ve) => !!ve._syncPendingControls() || V + ); + return k && this.updateValueAndValidity({ onlySelf: !0 }), k; + } + _throwIfControlMissing(k) { + 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[k]) + throw new Error(`Cannot find form control with name: ${k}.`); + } + _forEachChild(k) { + Object.keys(this.controls).forEach((V) => { + const ve = this.controls[V]; + ve && k(ve, V); + }); + } + _setUpControls() { + this._forEachChild((k) => { + k.setParent(this), + k._registerOnCollectionChange(this._onCollectionChange); + }); + } + _updateValue() { + this.value = this._reduceValue(); + } + _anyControls(k) { + for (const V of Object.keys(this.controls)) { + const ve = this.controls[V]; + if (this.contains(V) && k(ve)) return !0; + } + return !1; + } + _reduceValue() { + return this._reduceChildren( + {}, + (k, V, ve) => ((V.enabled || this.disabled) && (k[ve] = V.value), k) + ); + } + _reduceChildren(k, V) { + let ve = k; + return ( + this._forEachChild((nt, Nt) => { + ve = V(ve, nt, Nt); + }), + ve + ); + } + _allControlsDisabled() { + for (const k of Object.keys(this.controls)) + if (this.controls[k].enabled) return !1; + return Object.keys(this.controls).length > 0 || this.disabled; + } + _checkAllValuesPresent(k) { + this._forEachChild((V, ve) => { + if (void 0 === k[ve]) + throw new Error( + `Must supply a value for form control with name: '${ve}'.` + ); + }); + } + } + class Vi extends Ni { + constructor(k, V, ve) { + super(on(V), Yn(ve, V)), + (this.controls = k), + this._initObservables(), + this._setUpdateStrategy(V), + this._setUpControls(), + this.updateValueAndValidity({ + onlySelf: !0, + emitEvent: !!this.asyncValidator, + }); + } + at(k) { + return this.controls[k]; + } + push(k, V = {}) { + this.controls.push(k), + this._registerControl(k), + this.updateValueAndValidity({ emitEvent: V.emitEvent }), + this._onCollectionChange(); + } + insert(k, V, ve = {}) { + this.controls.splice(k, 0, V), + this._registerControl(V), + this.updateValueAndValidity({ emitEvent: ve.emitEvent }); + } + removeAt(k, V = {}) { + this.controls[k] && + this.controls[k]._registerOnCollectionChange(() => {}), + this.controls.splice(k, 1), + this.updateValueAndValidity({ emitEvent: V.emitEvent }); + } + setControl(k, V, ve = {}) { + this.controls[k] && + this.controls[k]._registerOnCollectionChange(() => {}), + this.controls.splice(k, 1), + V && (this.controls.splice(k, 0, V), this._registerControl(V)), + this.updateValueAndValidity({ emitEvent: ve.emitEvent }), + this._onCollectionChange(); + } + get length() { + return this.controls.length; + } + setValue(k, V = {}) { + this._checkAllValuesPresent(k), + k.forEach((ve, nt) => { + this._throwIfControlMissing(nt), + this.at(nt).setValue(ve, { + onlySelf: !0, + emitEvent: V.emitEvent, + }); + }), + this.updateValueAndValidity(V); + } + patchValue(k, V = {}) { + null != k && + (k.forEach((ve, nt) => { + this.at(nt) && + this.at(nt).patchValue(ve, { + onlySelf: !0, + emitEvent: V.emitEvent, + }); + }), + this.updateValueAndValidity(V)); + } + reset(k = [], V = {}) { + this._forEachChild((ve, nt) => { + ve.reset(k[nt], { onlySelf: !0, emitEvent: V.emitEvent }); + }), + this._updatePristine(V), + this._updateTouched(V), + this.updateValueAndValidity(V); + } + getRawValue() { + return this.controls.map((k) => + k instanceof Ti ? k.value : k.getRawValue() + ); + } + clear(k = {}) { + this.controls.length < 1 || + (this._forEachChild((V) => V._registerOnCollectionChange(() => {})), + this.controls.splice(0), + this.updateValueAndValidity({ emitEvent: k.emitEvent })); + } + _syncPendingControls() { + let k = this.controls.reduce( + (V, ve) => !!ve._syncPendingControls() || V, + !1 + ); + return k && this.updateValueAndValidity({ onlySelf: !0 }), k; + } + _throwIfControlMissing(k) { + 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(k)) + throw new Error(`Cannot find form control at index ${k}`); + } + _forEachChild(k) { + this.controls.forEach((V, ve) => { + k(V, ve); + }); + } + _updateValue() { + this.value = this.controls + .filter((k) => k.enabled || this.disabled) + .map((k) => k.value); + } + _anyControls(k) { + return this.controls.some((V) => V.enabled && k(V)); + } + _setUpControls() { + this._forEachChild((k) => this._registerControl(k)); + } + _checkAllValuesPresent(k) { + this._forEachChild((V, ve) => { + if (void 0 === k[ve]) + throw new Error( + `Must supply a value for form control at index: ${ve}.` + ); + }); + } + _allControlsDisabled() { + for (const k of this.controls) if (k.enabled) return !1; + return this.controls.length > 0 || this.disabled; + } + _registerControl(k) { + k.setParent(this), + k._registerOnCollectionChange(this._onCollectionChange); + } + } + const ci = { provide: _t, useExisting: (0, n.forwardRef)(() => Ze) }, + xe = (() => Promise.resolve(null))(); + let Ze = (() => { + class Q extends _t { + constructor(V, ve) { + super(), + (this.submitted = !1), + (this._directives = []), + (this.ngSubmit = new n.EventEmitter()), + (this.form = new qn({}, Oe(V), Ye(ve))); + } + ngAfterViewInit() { + this._setUpdateStrategy(); + } + get formDirective() { + return this; + } + get control() { + return this.form; + } + get path() { + return []; + } + get controls() { + return this.form.controls; + } + addControl(V) { + xe.then(() => { + const ve = this._findContainer(V.path); + (V.control = ve.registerControl(V.name, V.control)), + Dt(V.control, V), + V.control.updateValueAndValidity({ emitEvent: !1 }), + this._directives.push(V); + }); + } + getControl(V) { + return this.form.get(V.path); + } + removeControl(V) { + xe.then(() => { + const ve = this._findContainer(V.path); + ve && ve.removeControl(V.name), An(this._directives, V); + }); + } + addFormGroup(V) { + xe.then(() => { + const ve = this._findContainer(V.path), + nt = new qn({}); + Se(nt, V), + ve.registerControl(V.name, nt), + nt.updateValueAndValidity({ emitEvent: !1 }); + }); + } + removeFormGroup(V) { + xe.then(() => { + const ve = this._findContainer(V.path); + ve && ve.removeControl(V.name); + }); + } + getFormGroup(V) { + return this.form.get(V.path); + } + updateModel(V, ve) { + xe.then(() => { + this.form.get(V.path).setValue(ve); + }); + } + setValue(V) { + this.control.setValue(V); + } + onSubmit(V) { + return ( + (this.submitted = !0), + Qt(this.form, this._directives), + this.ngSubmit.emit(V), + !1 + ); + } + onReset() { + this.resetForm(); + } + resetForm(V) { + this.form.reset(V), (this.submitted = !1); + } + _setUpdateStrategy() { + this.options && + null != this.options.updateOn && + (this.form._updateOn = this.options.updateOn); + } + _findContainer(V) { + return V.pop(), V.length ? this.form.get(V) : this.form; + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(x, 10), + n.ɵɵdirectiveInject(T, 10) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["form", 3, "ngNoForm", "", 3, "formGroup", ""], + ["ng-form"], + ["", "ngForm", ""], + ], + hostBindings: function (V, ve) { + 1 & V && + n.ɵɵlistener("submit", function (Nt) { + return ve.onSubmit(Nt); + })("reset", function () { + return ve.onReset(); + }); + }, + inputs: { options: ["ngFormOptions", "options"] }, + outputs: { ngSubmit: "ngSubmit" }, + exportAs: ["ngForm"], + features: [ + n.ɵɵProvidersFeature([ci]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(), + ue = (() => { + class Q extends _t { + ngOnInit() { + this._checkParentType(), this.formDirective.addFormGroup(this); + } + ngOnDestroy() { + this.formDirective && this.formDirective.removeFormGroup(this); + } + get control() { + return this.formDirective.getFormGroup(this); + } + get path() { + return tn( + null == this.name ? this.name : this.name.toString(), + this._parent + ); + } + get formDirective() { + return this._parent ? this._parent.formDirective : null; + } + _checkParentType() {} + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + features: [n.ɵɵInheritDefinitionFeature], + })), + Q + ); + })(); + const Xe = { provide: _t, useExisting: (0, n.forwardRef)(() => Wt) }; + let Wt = (() => { + class Q extends ue { + constructor(V, ve, nt) { + super(), + (this._parent = V), + this._setValidators(ve), + this._setAsyncValidators(nt); + } + _checkParentType() {} + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(_t, 5), + n.ɵɵdirectiveInject(x, 10), + n.ɵɵdirectiveInject(T, 10) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [["", "ngModelGroup", ""]], + inputs: { name: ["ngModelGroup", "name"] }, + exportAs: ["ngModelGroup"], + features: [ + n.ɵɵProvidersFeature([Xe]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const Ft = { provide: ot, useExisting: (0, n.forwardRef)(() => Zt) }, + Ht = (() => Promise.resolve(null))(); + let Zt = (() => { + class Q extends ot { + constructor(V, ve, nt, Nt) { + super(), + (this.control = new Ti()), + (this._registered = !1), + (this.update = new n.EventEmitter()), + (this._parent = V), + this._setValidators(ve), + this._setAsyncValidators(nt), + (this.valueAccessor = cn(0, Nt)); + } + ngOnChanges(V) { + this._checkForErrors(), + this._registered || this._setUpControl(), + "isDisabled" in V && this._updateDisabled(V), + ze(V, this.viewModel) && + (this._updateValue(this.model), + (this.viewModel = this.model)); + } + ngOnDestroy() { + this.formDirective && this.formDirective.removeControl(this); + } + get path() { + return this._parent ? tn(this.name, this._parent) : [this.name]; + } + get formDirective() { + return this._parent ? this._parent.formDirective : null; + } + viewToModelUpdate(V) { + (this.viewModel = V), this.update.emit(V); + } + _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() { + Dt(this.control, this), + this.control.updateValueAndValidity({ emitEvent: !1 }); + } + _checkForErrors() { + this._isStandalone() || this._checkParentType(), + this._checkName(); + } + _checkParentType() {} + _checkName() { + this.options && + this.options.name && + (this.name = this.options.name), + this._isStandalone(); + } + _updateValue(V) { + Ht.then(() => { + this.control.setValue(V, { emitViewToModelChange: !1 }); + }); + } + _updateDisabled(V) { + const ve = V.isDisabled.currentValue, + nt = "" === ve || (ve && "false" !== ve); + Ht.then(() => { + nt && !this.control.disabled + ? this.control.disable() + : !nt && this.control.disabled && this.control.enable(); + }); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(_t, 9), + n.ɵɵdirectiveInject(x, 10), + n.ɵɵdirectiveInject(T, 10), + n.ɵɵdirectiveInject(h, 10) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + [ + "", + "ngModel", + "", + 3, + "formControlName", + "", + 3, + "formControl", + "", + ], + ], + inputs: { + name: "name", + isDisabled: ["disabled", "isDisabled"], + model: ["ngModel", "model"], + options: ["ngModelOptions", "options"], + }, + outputs: { update: "ngModelChange" }, + exportAs: ["ngModel"], + features: [ + n.ɵɵProvidersFeature([Ft]), + n.ɵɵInheritDefinitionFeature, + n.ɵɵNgOnChangesFeature, + ], + })), + Q + ); + })(), + an = (() => { + class Q {} + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["form", 3, "ngNoForm", "", 3, "ngNativeValidate", ""], + ], + hostAttrs: ["novalidate", ""], + })), + Q + ); + })(); + const Tn = { + provide: h, + useExisting: (0, n.forwardRef)(() => zn), + multi: !0, + }; + let zn = (() => { + class Q extends u { + writeValue(V) { + this.setProperty("value", null == V ? "" : V); + } + registerOnChange(V) { + this.onChange = (ve) => { + V("" == ve ? null : parseFloat(ve)); + }; + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["input", "type", "number", "formControlName", ""], + ["input", "type", "number", "formControl", ""], + ["input", "type", "number", "ngModel", ""], + ], + hostBindings: function (V, ve) { + 1 & V && + n.ɵɵlistener("input", function (Nt) { + return ve.onChange(Nt.target.value); + })("blur", function () { + return ve.onTouched(); + }); + }, + features: [ + n.ɵɵProvidersFeature([Tn]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const $n = { + provide: h, + useExisting: (0, n.forwardRef)(() => kn), + multi: !0, + }; + let jn = (() => { + class Q {} + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵmod = n.ɵɵdefineNgModule({ type: Q })), + (Q.ɵinj = n.ɵɵdefineInjector({})), + Q + ); + })(), + Qn = (() => { + class Q { + constructor() { + this._accessors = []; + } + add(V, ve) { + this._accessors.push([V, ve]); + } + remove(V) { + for (let ve = this._accessors.length - 1; ve >= 0; --ve) + if (this._accessors[ve][1] === V) + return void this._accessors.splice(ve, 1); + } + select(V) { + this._accessors.forEach((ve) => { + this._isSameGroup(ve, V) && + ve[1] !== V && + ve[1].fireUncheck(V.value); + }); + } + _isSameGroup(V, ve) { + return ( + !!V[0].control && + V[0]._parent === ve._control._parent && + V[1].name === ve.name + ); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵprov = n.ɵɵdefineInjectable({ + token: Q, + factory: Q.ɵfac, + providedIn: jn, + })), + Q + ); + })(), + kn = (() => { + class Q extends u { + constructor(V, ve, nt, Nt) { + super(V, ve), + (this._registry = nt), + (this._injector = Nt), + (this.onChange = () => {}); + } + ngOnInit() { + (this._control = this._injector.get(ot)), + this._checkName(), + this._registry.add(this._control, this); + } + ngOnDestroy() { + this._registry.remove(this); + } + writeValue(V) { + (this._state = V === this.value), + this.setProperty("checked", this._state); + } + registerOnChange(V) { + (this._fn = V), + (this.onChange = () => { + V(this.value), this._registry.select(this); + }); + } + fireUncheck(V) { + this.writeValue(V); + } + _checkName() { + !this.name && + this.formControlName && + (this.name = this.formControlName); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(n.Renderer2), + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(Qn), + n.ɵɵdirectiveInject(n.Injector) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["input", "type", "radio", "formControlName", ""], + ["input", "type", "radio", "formControl", ""], + ["input", "type", "radio", "ngModel", ""], + ], + hostBindings: function (V, ve) { + 1 & V && + n.ɵɵlistener("change", function () { + return ve.onChange(); + })("blur", function () { + return ve.onTouched(); + }); + }, + inputs: { + name: "name", + formControlName: "formControlName", + value: "value", + }, + features: [ + n.ɵɵProvidersFeature([$n]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const Mi = { + provide: h, + useExisting: (0, n.forwardRef)(() => Zi), + multi: !0, + }; + let Zi = (() => { + class Q extends u { + writeValue(V) { + this.setProperty("value", parseFloat(V)); + } + registerOnChange(V) { + this.onChange = (ve) => { + V("" == ve ? null : parseFloat(ve)); + }; + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["input", "type", "range", "formControlName", ""], + ["input", "type", "range", "formControl", ""], + ["input", "type", "range", "ngModel", ""], + ], + hostBindings: function (V, ve) { + 1 & V && + n.ɵɵlistener("change", function (Nt) { + return ve.onChange(Nt.target.value); + })("input", function (Nt) { + return ve.onChange(Nt.target.value); + })("blur", function () { + return ve.onTouched(); + }); + }, + features: [ + n.ɵɵProvidersFeature([Mi]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const Xn = new n.InjectionToken("NgModelWithFormControlWarning"), + pi = { provide: ot, useExisting: (0, n.forwardRef)(() => Gi) }; + let Gi = (() => { + class Q extends ot { + constructor(V, ve, nt, Nt) { + super(), + (this._ngModelWarningConfig = Nt), + (this.update = new n.EventEmitter()), + (this._ngModelWarningSent = !1), + this._setValidators(V), + this._setAsyncValidators(ve), + (this.valueAccessor = cn(0, nt)); + } + set isDisabled(V) {} + ngOnChanges(V) { + if (this._isControlChanged(V)) { + const ve = V.form.previousValue; + ve && Kt(ve, this, !1), + Dt(this.form, this), + this.control.disabled && + this.valueAccessor.setDisabledState && + this.valueAccessor.setDisabledState(!0), + this.form.updateValueAndValidity({ emitEvent: !1 }); + } + ze(V, this.viewModel) && + (this.form.setValue(this.model), (this.viewModel = this.model)); + } + ngOnDestroy() { + this.form && Kt(this.form, this, !1); + } + get path() { + return []; + } + get control() { + return this.form; + } + viewToModelUpdate(V) { + (this.viewModel = V), this.update.emit(V); + } + _isControlChanged(V) { + return V.hasOwnProperty("form"); + } + } + return ( + (Q._ngModelWarningSentOnce = !1), + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(x, 10), + n.ɵɵdirectiveInject(T, 10), + n.ɵɵdirectiveInject(h, 10), + n.ɵɵdirectiveInject(Xn, 8) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [["", "formControl", ""]], + inputs: { + form: ["formControl", "form"], + isDisabled: ["disabled", "isDisabled"], + model: ["ngModel", "model"], + }, + outputs: { update: "ngModelChange" }, + exportAs: ["ngForm"], + features: [ + n.ɵɵProvidersFeature([pi]), + n.ɵɵInheritDefinitionFeature, + n.ɵɵNgOnChangesFeature, + ], + })), + Q + ); + })(); + const Ui = { provide: _t, useExisting: (0, n.forwardRef)(() => tr) }; + let tr = (() => { + class Q extends _t { + constructor(V, ve) { + super(), + (this.validators = V), + (this.asyncValidators = ve), + (this.submitted = !1), + (this._onCollectionChange = () => this._updateDomValue()), + (this.directives = []), + (this.form = null), + (this.ngSubmit = new n.EventEmitter()), + this._setValidators(V), + this._setAsyncValidators(ve); + } + ngOnChanges(V) { + this._checkFormPresent(), + V.hasOwnProperty("form") && + (this._updateValidators(), + this._updateDomValue(), + this._updateRegistrations(), + (this._oldForm = this.form)); + } + ngOnDestroy() { + this.form && + (Qe(this.form, this), + this.form._onCollectionChange === this._onCollectionChange && + this.form._registerOnCollectionChange(() => {})); + } + get formDirective() { + return this; + } + get control() { + return this.form; + } + get path() { + return []; + } + addControl(V) { + const ve = this.form.get(V.path); + return ( + Dt(ve, V), + ve.updateValueAndValidity({ emitEvent: !1 }), + this.directives.push(V), + ve + ); + } + getControl(V) { + return this.form.get(V.path); + } + removeControl(V) { + Kt(V.control || null, V, !1), An(this.directives, V); + } + addFormGroup(V) { + this._setUpFormContainer(V); + } + removeFormGroup(V) { + this._cleanUpFormContainer(V); + } + getFormGroup(V) { + return this.form.get(V.path); + } + addFormArray(V) { + this._setUpFormContainer(V); + } + removeFormArray(V) { + this._cleanUpFormContainer(V); + } + getFormArray(V) { + return this.form.get(V.path); + } + updateModel(V, ve) { + this.form.get(V.path).setValue(ve); + } + onSubmit(V) { + return ( + (this.submitted = !0), + Qt(this.form, this.directives), + this.ngSubmit.emit(V), + !1 + ); + } + onReset() { + this.resetForm(); + } + resetForm(V) { + this.form.reset(V), (this.submitted = !1); + } + _updateDomValue() { + this.directives.forEach((V) => { + const ve = V.control, + nt = this.form.get(V.path); + ve !== nt && + (Kt(ve || null, V), + nt instanceof Ti && (Dt(nt, V), (V.control = nt))); + }), + this.form._updateTreeValidity({ emitEvent: !1 }); + } + _setUpFormContainer(V) { + const ve = this.form.get(V.path); + Se(ve, V), ve.updateValueAndValidity({ emitEvent: !1 }); + } + _cleanUpFormContainer(V) { + if (this.form) { + const ve = this.form.get(V.path); + ve && + (function (Q, k) { + return Qe(Q, k); + })(ve, V) && + ve.updateValueAndValidity({ emitEvent: !1 }); + } + } + _updateRegistrations() { + this.form._registerOnCollectionChange(this._onCollectionChange), + this._oldForm && + this._oldForm._registerOnCollectionChange(() => {}); + } + _updateValidators() { + Lt(this.form, this), this._oldForm && Qe(this._oldForm, this); + } + _checkFormPresent() {} + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(x, 10), + n.ɵɵdirectiveInject(T, 10) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [["", "formGroup", ""]], + hostBindings: function (V, ve) { + 1 & V && + n.ɵɵlistener("submit", function (Nt) { + return ve.onSubmit(Nt); + })("reset", function () { + return ve.onReset(); + }); + }, + inputs: { form: ["formGroup", "form"] }, + outputs: { ngSubmit: "ngSubmit" }, + exportAs: ["ngForm"], + features: [ + n.ɵɵProvidersFeature([Ui]), + n.ɵɵInheritDefinitionFeature, + n.ɵɵNgOnChangesFeature, + ], + })), + Q + ); + })(); + const bi = { provide: _t, useExisting: (0, n.forwardRef)(() => Rn) }; + let Rn = (() => { + class Q extends ue { + constructor(V, ve, nt) { + super(), + (this._parent = V), + this._setValidators(ve), + this._setAsyncValidators(nt); + } + _checkParentType() { + Fn(this._parent); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(_t, 13), + n.ɵɵdirectiveInject(x, 10), + n.ɵɵdirectiveInject(T, 10) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [["", "formGroupName", ""]], + inputs: { name: ["formGroupName", "name"] }, + features: [ + n.ɵɵProvidersFeature([bi]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const qi = { provide: _t, useExisting: (0, n.forwardRef)(() => oi) }; + let oi = (() => { + class Q extends _t { + constructor(V, ve, nt) { + super(), + (this._parent = V), + this._setValidators(ve), + this._setAsyncValidators(nt); + } + ngOnInit() { + this._checkParentType(), this.formDirective.addFormArray(this); + } + ngOnDestroy() { + this.formDirective && this.formDirective.removeFormArray(this); + } + get control() { + return this.formDirective.getFormArray(this); + } + get formDirective() { + return this._parent ? this._parent.formDirective : null; + } + get path() { + return tn( + null == this.name ? this.name : this.name.toString(), + this._parent + ); + } + _checkParentType() { + Fn(this._parent); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(_t, 13), + n.ɵɵdirectiveInject(x, 10), + n.ɵɵdirectiveInject(T, 10) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [["", "formArrayName", ""]], + inputs: { name: ["formArrayName", "name"] }, + features: [ + n.ɵɵProvidersFeature([qi]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + function Fn(Q) { + return !(Q instanceof Rn || Q instanceof tr || Q instanceof oi); + } + const $i = { provide: ot, useExisting: (0, n.forwardRef)(() => mi) }; + let mi = (() => { + class Q extends ot { + constructor(V, ve, nt, Nt, nn) { + super(), + (this._ngModelWarningConfig = nn), + (this._added = !1), + (this.update = new n.EventEmitter()), + (this._ngModelWarningSent = !1), + (this._parent = V), + this._setValidators(ve), + this._setAsyncValidators(nt), + (this.valueAccessor = cn(0, Nt)); + } + set isDisabled(V) {} + ngOnChanges(V) { + this._added || this._setUpControl(), + ze(V, this.viewModel) && + ((this.viewModel = this.model), + this.formDirective.updateModel(this, this.model)); + } + ngOnDestroy() { + this.formDirective && this.formDirective.removeControl(this); + } + viewToModelUpdate(V) { + (this.viewModel = V), this.update.emit(V); + } + get path() { + return tn( + null == this.name ? this.name : this.name.toString(), + this._parent + ); + } + get formDirective() { + return this._parent ? this._parent.formDirective : null; + } + _checkParentType() {} + _setUpControl() { + this._checkParentType(), + (this.control = this.formDirective.addControl(this)), + this.control.disabled && + this.valueAccessor.setDisabledState && + this.valueAccessor.setDisabledState(!0), + (this._added = !0); + } + } + return ( + (Q._ngModelWarningSentOnce = !1), + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(_t, 13), + n.ɵɵdirectiveInject(x, 10), + n.ɵɵdirectiveInject(T, 10), + n.ɵɵdirectiveInject(h, 10), + n.ɵɵdirectiveInject(Xn, 8) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [["", "formControlName", ""]], + inputs: { + name: ["formControlName", "name"], + isDisabled: ["disabled", "isDisabled"], + model: ["ngModel", "model"], + }, + outputs: { update: "ngModelChange" }, + features: [ + n.ɵɵProvidersFeature([$i]), + n.ɵɵInheritDefinitionFeature, + n.ɵɵNgOnChangesFeature, + ], + })), + Q + ); + })(); + const Gn = { + provide: h, + useExisting: (0, n.forwardRef)(() => yn), + multi: !0, + }; + function ur(Q, k) { + return null == Q + ? `${k}` + : (k && "object" == typeof k && (k = "Object"), + `${Q}: ${k}`.slice(0, 50)); + } + let yn = (() => { + class Q extends u { + constructor() { + super(...arguments), + (this._optionMap = new Map()), + (this._idCounter = 0), + (this._compareWith = Object.is); + } + set compareWith(V) { + this._compareWith = V; + } + writeValue(V) { + this.value = V; + const ve = this._getOptionId(V); + null == ve && this.setProperty("selectedIndex", -1); + const nt = ur(ve, V); + this.setProperty("value", nt); + } + registerOnChange(V) { + this.onChange = (ve) => { + (this.value = this._getOptionValue(ve)), V(this.value); + }; + } + _registerOption() { + return (this._idCounter++).toString(); + } + _getOptionId(V) { + for (const ve of Array.from(this._optionMap.keys())) + if (this._compareWith(this._optionMap.get(ve), V)) return ve; + return null; + } + _getOptionValue(V) { + const ve = (function (Q) { + return Q.split(":")[0]; + })(V); + return this._optionMap.has(ve) ? this._optionMap.get(ve) : V; + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["select", "formControlName", "", 3, "multiple", ""], + ["select", "formControl", "", 3, "multiple", ""], + ["select", "ngModel", "", 3, "multiple", ""], + ], + hostBindings: function (V, ve) { + 1 & V && + n.ɵɵlistener("change", function (Nt) { + return ve.onChange(Nt.target.value); + })("blur", function () { + return ve.onTouched(); + }); + }, + inputs: { compareWith: "compareWith" }, + features: [ + n.ɵɵProvidersFeature([Gn]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(), + Sn = (() => { + class Q { + constructor(V, ve, nt) { + (this._element = V), + (this._renderer = ve), + (this._select = nt), + this._select && (this.id = this._select._registerOption()); + } + set ngValue(V) { + null != this._select && + (this._select._optionMap.set(this.id, V), + this._setElementValue(ur(this.id, V)), + this._select.writeValue(this._select.value)); + } + set value(V) { + this._setElementValue(V), + this._select && this._select.writeValue(this._select.value); + } + _setElementValue(V) { + this._renderer.setProperty( + this._element.nativeElement, + "value", + V + ); + } + ngOnDestroy() { + this._select && + (this._select._optionMap.delete(this.id), + this._select.writeValue(this._select.value)); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(n.Renderer2), + n.ɵɵdirectiveInject(yn, 9) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [["option"]], + inputs: { ngValue: "ngValue", value: "value" }, + })), + Q + ); + })(); + const Wn = { + provide: h, + useExisting: (0, n.forwardRef)(() => Vr), + multi: !0, + }; + function Ri(Q, k) { + return null == Q + ? `${k}` + : ("string" == typeof k && (k = `'${k}'`), + k && "object" == typeof k && (k = "Object"), + `${Q}: ${k}`.slice(0, 50)); + } + let Vr = (() => { + class Q extends u { + constructor() { + super(...arguments), + (this._optionMap = new Map()), + (this._idCounter = 0), + (this._compareWith = Object.is); + } + set compareWith(V) { + this._compareWith = V; + } + writeValue(V) { + let ve; + if (((this.value = V), Array.isArray(V))) { + const nt = V.map((Nt) => this._getOptionId(Nt)); + ve = (Nt, nn) => { + Nt._setSelected(nt.indexOf(nn.toString()) > -1); + }; + } else + ve = (nt, Nt) => { + nt._setSelected(!1); + }; + this._optionMap.forEach(ve); + } + registerOnChange(V) { + this.onChange = (ve) => { + const nt = [], + Nt = ve.selectedOptions; + if (void 0 !== Nt) { + const nn = Nt; + for (let In = 0; In < nn.length; In++) { + const di = this._getOptionValue(nn[In].value); + nt.push(di); + } + } else { + const nn = ve.options; + for (let In = 0; In < nn.length; In++) { + const ni = nn[In]; + if (ni.selected) { + const di = this._getOptionValue(ni.value); + nt.push(di); + } + } + } + (this.value = nt), V(nt); + }; + } + _registerOption(V) { + const ve = (this._idCounter++).toString(); + return this._optionMap.set(ve, V), ve; + } + _getOptionId(V) { + for (const ve of Array.from(this._optionMap.keys())) + if (this._compareWith(this._optionMap.get(ve)._value, V)) + return ve; + return null; + } + _getOptionValue(V) { + const ve = (function (Q) { + return Q.split(":")[0]; + })(V); + return this._optionMap.has(ve) + ? this._optionMap.get(ve)._value + : V; + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["select", "multiple", "", "formControlName", ""], + ["select", "multiple", "", "formControl", ""], + ["select", "multiple", "", "ngModel", ""], + ], + hostBindings: function (V, ve) { + 1 & V && + n.ɵɵlistener("change", function (Nt) { + return ve.onChange(Nt.target); + })("blur", function () { + return ve.onTouched(); + }); + }, + inputs: { compareWith: "compareWith" }, + features: [ + n.ɵɵProvidersFeature([Wn]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(), + nr = (() => { + class Q { + constructor(V, ve, nt) { + (this._element = V), + (this._renderer = ve), + (this._select = nt), + this._select && (this.id = this._select._registerOption(this)); + } + set ngValue(V) { + null != this._select && + ((this._value = V), + this._setElementValue(Ri(this.id, V)), + this._select.writeValue(this._select.value)); + } + set value(V) { + this._select + ? ((this._value = V), + this._setElementValue(Ri(this.id, V)), + this._select.writeValue(this._select.value)) + : this._setElementValue(V); + } + _setElementValue(V) { + this._renderer.setProperty( + this._element.nativeElement, + "value", + V + ); + } + _setSelected(V) { + this._renderer.setProperty( + this._element.nativeElement, + "selected", + V + ); + } + ngOnDestroy() { + this._select && + (this._select._optionMap.delete(this.id), + this._select.writeValue(this._select.value)); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(n.Renderer2), + n.ɵɵdirectiveInject(Vr, 9) + ); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [["option"]], + inputs: { ngValue: "ngValue", value: "value" }, + })), + Q + ); + })(); + function Or(Q) { + return "number" == typeof Q ? Q : parseInt(Q, 10); + } + function Mr(Q) { + return "number" == typeof Q ? Q : parseFloat(Q); + } + let cr = (() => { + class Q { + constructor() { + this._validator = Y; + } + ngOnChanges(V) { + if (this.inputName in V) { + const ve = this.normalizeInput(V[this.inputName].currentValue); + (this._validator = this.enabled() ? this.createValidator(ve) : Y), + this._onChange && this._onChange(); + } + } + validate(V) { + return this._validator(V); + } + registerOnValidatorChange(V) { + this._onChange = V; + } + enabled() { + return null != this[this.inputName]; + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + features: [n.ɵɵNgOnChangesFeature], + })), + Q + ); + })(); + const $r = { + provide: x, + useExisting: (0, n.forwardRef)(() => hr), + multi: !0, + }; + let hr = (() => { + class Q extends cr { + constructor() { + super(...arguments), + (this.inputName = "max"), + (this.normalizeInput = (V) => Mr(V)), + (this.createValidator = (V) => S(V)); + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["input", "type", "number", "max", "", "formControlName", ""], + ["input", "type", "number", "max", "", "formControl", ""], + ["input", "type", "number", "max", "", "ngModel", ""], + ], + hostVars: 1, + hostBindings: function (V, ve) { + 2 & V && n.ɵɵattribute("max", ve.enabled() ? ve.max : null); + }, + inputs: { max: "max" }, + features: [ + n.ɵɵProvidersFeature([$r]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const qr = { + provide: x, + useExisting: (0, n.forwardRef)(() => ir), + multi: !0, + }; + let ir = (() => { + class Q extends cr { + constructor() { + super(...arguments), + (this.inputName = "min"), + (this.normalizeInput = (V) => Mr(V)), + (this.createValidator = (V) => A(V)); + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["input", "type", "number", "min", "", "formControlName", ""], + ["input", "type", "number", "min", "", "formControl", ""], + ["input", "type", "number", "min", "", "ngModel", ""], + ], + hostVars: 1, + hostBindings: function (V, ve) { + 2 & V && n.ɵɵattribute("min", ve.enabled() ? ve.min : null); + }, + inputs: { min: "min" }, + features: [ + n.ɵɵProvidersFeature([qr]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const Cr = { + provide: x, + useExisting: (0, n.forwardRef)(() => mr), + multi: !0, + }, + Sr = { + provide: x, + useExisting: (0, n.forwardRef)(() => Hr), + multi: !0, + }; + let mr = (() => { + class Q { + constructor() { + this._required = !1; + } + get required() { + return this._required; + } + set required(V) { + (this._required = null != V && !1 !== V && "false" != `${V}`), + this._onChange && this._onChange(); + } + validate(V) { + return this.required ? w(V) : null; + } + registerOnValidatorChange(V) { + this._onChange = V; + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + [ + "", + "required", + "", + "formControlName", + "", + 3, + "type", + "checkbox", + ], + ["", "required", "", "formControl", "", 3, "type", "checkbox"], + ["", "required", "", "ngModel", "", 3, "type", "checkbox"], + ], + hostVars: 1, + hostBindings: function (V, ve) { + 2 & V && n.ɵɵattribute("required", ve.required ? "" : null); + }, + inputs: { required: "required" }, + features: [n.ɵɵProvidersFeature([Cr])], + })), + Q + ); + })(), + Hr = (() => { + class Q extends mr { + validate(V) { + return this.required ? I(V) : null; + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + [ + "input", + "type", + "checkbox", + "required", + "", + "formControlName", + "", + ], + [ + "input", + "type", + "checkbox", + "required", + "", + "formControl", + "", + ], + ["input", "type", "checkbox", "required", "", "ngModel", ""], + ], + hostVars: 1, + hostBindings: function (V, ve) { + 2 & V && n.ɵɵattribute("required", ve.required ? "" : null); + }, + features: [ + n.ɵɵProvidersFeature([Sr]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const jr = { + provide: x, + useExisting: (0, n.forwardRef)(() => Wi), + multi: !0, + }; + let Wi = (() => { + class Q { + constructor() { + this._enabled = !1; + } + set email(V) { + (this._enabled = "" === V || !0 === V || "true" === V), + this._onChange && this._onChange(); + } + validate(V) { + return this._enabled ? C(V) : null; + } + registerOnValidatorChange(V) { + this._onChange = V; + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["", "email", "", "formControlName", ""], + ["", "email", "", "formControl", ""], + ["", "email", "", "ngModel", ""], + ], + inputs: { email: "email" }, + features: [n.ɵɵProvidersFeature([jr])], + })), + Q + ); + })(); + const Wr = { + provide: x, + useExisting: (0, n.forwardRef)(() => Rr), + multi: !0, + }; + let Rr = (() => { + class Q extends cr { + constructor() { + super(...arguments), + (this.inputName = "minlength"), + (this.normalizeInput = (V) => Or(V)), + (this.createValidator = (V) => L(V)); + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["", "minlength", "", "formControlName", ""], + ["", "minlength", "", "formControl", ""], + ["", "minlength", "", "ngModel", ""], + ], + hostVars: 1, + hostBindings: function (V, ve) { + 2 & V && + n.ɵɵattribute("minlength", ve.enabled() ? ve.minlength : null); + }, + inputs: { minlength: "minlength" }, + features: [ + n.ɵɵProvidersFeature([Wr]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const Dr = { + provide: x, + useExisting: (0, n.forwardRef)(() => Lr), + multi: !0, + }; + let Lr = (() => { + class Q extends cr { + constructor() { + super(...arguments), + (this.inputName = "maxlength"), + (this.normalizeInput = (V) => Or(V)), + (this.createValidator = (V) => F(V)); + } + } + return ( + (Q.ɵfac = (function () { + let k; + return function (ve) { + return (k || (k = n.ɵɵgetInheritedFactory(Q)))(ve || Q); + }; + })()), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["", "maxlength", "", "formControlName", ""], + ["", "maxlength", "", "formControl", ""], + ["", "maxlength", "", "ngModel", ""], + ], + hostVars: 1, + hostBindings: function (V, ve) { + 2 & V && + n.ɵɵattribute("maxlength", ve.enabled() ? ve.maxlength : null); + }, + inputs: { maxlength: "maxlength" }, + features: [ + n.ɵɵProvidersFeature([Dr]), + n.ɵɵInheritDefinitionFeature, + ], + })), + Q + ); + })(); + const Ji = { + provide: x, + useExisting: (0, n.forwardRef)(() => Fr), + multi: !0, + }; + let Fr = (() => { + class Q { + constructor() { + this._validator = Y; + } + ngOnChanges(V) { + "pattern" in V && + (this._createValidator(), this._onChange && this._onChange()); + } + validate(V) { + return this._validator(V); + } + registerOnValidatorChange(V) { + this._onChange = V; + } + _createValidator() { + this._validator = ie(this.pattern); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵdir = n.ɵɵdefineDirective({ + type: Q, + selectors: [ + ["", "pattern", "", "formControlName", ""], + ["", "pattern", "", "formControl", ""], + ["", "pattern", "", "ngModel", ""], + ], + hostVars: 1, + hostBindings: function (V, ve) { + 2 & V && + n.ɵɵattribute("pattern", ve.pattern ? ve.pattern : null); + }, + inputs: { pattern: "pattern" }, + features: [n.ɵɵProvidersFeature([Ji]), n.ɵɵNgOnChangesFeature], + })), + Q + ); + })(), + Tr = (() => { + class Q {} + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵmod = n.ɵɵdefineNgModule({ type: Q })), + (Q.ɵinj = n.ɵɵdefineInjector({ imports: [[jn]] })), + Q + ); + })(), + us = (() => { + class Q {} + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵmod = n.ɵɵdefineNgModule({ type: Q })), + (Q.ɵinj = n.ɵɵdefineInjector({ imports: [Tr] })), + Q + ); + })(), + si = (() => { + class Q { + static withConfig(V) { + return { + ngModule: Q, + providers: [ + { provide: Xn, useValue: V.warnOnNgModelWithFormControl }, + ], + }; + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵmod = n.ɵɵdefineNgModule({ type: Q })), + (Q.ɵinj = n.ɵɵdefineInjector({ imports: [Tr] })), + Q + ); + })(), + Er = (() => { + class Q { + group(V, ve = null) { + const nt = this._reduceControls(V); + let In, + Nt = null, + nn = null; + return ( + null != ve && + ((function (Q) { + return ( + void 0 !== Q.asyncValidators || + void 0 !== Q.validators || + void 0 !== Q.updateOn + ); + })(ve) + ? ((Nt = null != ve.validators ? ve.validators : null), + (nn = + null != ve.asyncValidators ? ve.asyncValidators : null), + (In = null != ve.updateOn ? ve.updateOn : void 0)) + : ((Nt = null != ve.validator ? ve.validator : null), + (nn = + null != ve.asyncValidator ? ve.asyncValidator : null))), + new qn(nt, { + asyncValidators: nn, + updateOn: In, + validators: Nt, + }) + ); + } + control(V, ve, nt) { + return new Ti(V, ve, nt); + } + array(V, ve, nt) { + const Nt = V.map((nn) => this._createControl(nn)); + return new Vi(Nt, ve, nt); + } + _reduceControls(V) { + const ve = {}; + return ( + Object.keys(V).forEach((nt) => { + ve[nt] = this._createControl(V[nt]); + }), + ve + ); + } + _createControl(V) { + return V instanceof Ti || V instanceof qn || V instanceof Vi + ? V + : Array.isArray(V) + ? this.control( + V[0], + V.length > 1 ? V[1] : null, + V.length > 2 ? V[2] : null + ) + : this.control(V); + } + } + return ( + (Q.ɵfac = function (V) { + return new (V || Q)(); + }), + (Q.ɵprov = n.ɵɵdefineInjectable({ + token: Q, + factory: Q.ɵfac, + providedIn: si, + })), + Q + ); + })(); + const be = new n.Version("13.1.1"); + }, + 1079: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_AUTOCOMPLETE_DEFAULT_OPTIONS: () => $, + MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY: () => J, + MAT_AUTOCOMPLETE_SCROLL_STRATEGY: () => le, + MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY: () => Oe, + MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER: () => Le, + MAT_AUTOCOMPLETE_VALUE_ACCESSOR: () => Ye, + MatAutocomplete: () => ae, + MatAutocompleteModule: () => ft, + MatAutocompleteOrigin: () => at, + MatAutocompleteSelectedEvent: () => Z, + MatAutocompleteTrigger: () => Ue, + _MatAutocompleteBase: () => ne, + _MatAutocompleteOriginBase: () => tt, + _MatAutocompleteTriggerBase: () => gt, + getMatAutocompleteMissingPanelError: () => Je, + }); + var n = p(5664), + f = p(3191), + _ = p(5e3), + m = p(508), + s = p(2654), + d = p(8929), + u = p(8514), + h = p(6787), + r = p(1086), + o = p(3753), + i = p(925), + c = p(9808), + l = p(1314), + g = p(9071), + b = p(1159), + y = p(7429), + x = p(3075), + T = p(7322), + O = p(2986), + M = p(7545), + A = p(2198), + S = p(4850), + w = p(2868), + I = p(943), + C = p(226); + const L = ["panel"]; + function F(vt, yt) { + if ( + (1 & vt && + (_.ɵɵelementStart(0, "div", 0, 1), + _.ɵɵprojection(2), + _.ɵɵelementEnd()), + 2 & vt) + ) { + const ot = yt.id, + _t = _.ɵɵnextContext(); + _.ɵɵproperty("id", _t.id)("ngClass", _t._classList), + _.ɵɵattribute("aria-label", _t.ariaLabel || null)( + "aria-labelledby", + _t._getPanelAriaLabelledby(ot) + ); + } + } + const ie = ["*"]; + let Y = 0; + class Z { + constructor(yt, ot) { + (this.source = yt), (this.option = ot); + } + } + const ee = (0, m.mixinDisableRipple)(class {}), + $ = new _.InjectionToken("mat-autocomplete-default-options", { + providedIn: "root", + factory: J, + }); + function J() { + return { autoActiveFirstOption: !1 }; + } + let ne = (() => { + class vt extends ee { + constructor(ot, _t, At, Tt) { + super(), + (this._changeDetectorRef = ot), + (this._elementRef = _t), + (this._activeOptionChanges = s.w.EMPTY), + (this.showPanel = !1), + (this._isOpen = !1), + (this.displayWith = null), + (this.optionSelected = new _.EventEmitter()), + (this.opened = new _.EventEmitter()), + (this.closed = new _.EventEmitter()), + (this.optionActivated = new _.EventEmitter()), + (this._classList = {}), + (this.id = "mat-autocomplete-" + Y++), + (this.inertGroups = (null == Tt ? void 0 : Tt.SAFARI) || !1), + (this._autoActiveFirstOption = !!At.autoActiveFirstOption); + } + get isOpen() { + return this._isOpen && this.showPanel; + } + get autoActiveFirstOption() { + return this._autoActiveFirstOption; + } + set autoActiveFirstOption(ot) { + this._autoActiveFirstOption = (0, f.Ig)(ot); + } + set classList(ot) { + (this._classList = + ot && ot.length + ? (0, f.du)(ot).reduce((_t, At) => ((_t[At] = !0), _t), {}) + : {}), + this._setVisibilityClasses(this._classList), + (this._elementRef.nativeElement.className = ""); + } + ngAfterContentInit() { + (this._keyManager = new n.s1(this.options).withWrap()), + (this._activeOptionChanges = this._keyManager.change.subscribe( + (ot) => { + this.isOpen && + this.optionActivated.emit({ + source: this, + option: this.options.toArray()[ot] || null, + }); + } + )), + this._setVisibility(); + } + ngOnDestroy() { + this._activeOptionChanges.unsubscribe(); + } + _setScrollTop(ot) { + this.panel && (this.panel.nativeElement.scrollTop = ot); + } + _getScrollTop() { + return this.panel ? this.panel.nativeElement.scrollTop : 0; + } + _setVisibility() { + (this.showPanel = !!this.options.length), + this._setVisibilityClasses(this._classList), + this._changeDetectorRef.markForCheck(); + } + _emitSelectEvent(ot) { + const _t = new Z(this, ot); + this.optionSelected.emit(_t); + } + _getPanelAriaLabelledby(ot) { + return this.ariaLabel + ? null + : this.ariaLabelledby + ? (ot ? ot + " " : "") + this.ariaLabelledby + : ot; + } + _setVisibilityClasses(ot) { + (ot[this._visibleClass] = this.showPanel), + (ot[this._hiddenClass] = !this.showPanel); + } + } + return ( + (vt.ɵfac = function (ot) { + return new (ot || vt)( + _.ɵɵdirectiveInject(_.ChangeDetectorRef), + _.ɵɵdirectiveInject(_.ElementRef), + _.ɵɵdirectiveInject($), + _.ɵɵdirectiveInject(i.t4) + ); + }), + (vt.ɵdir = _.ɵɵdefineDirective({ + type: vt, + viewQuery: function (ot, _t) { + if ( + (1 & ot && + (_.ɵɵviewQuery(_.TemplateRef, 7), _.ɵɵviewQuery(L, 5)), + 2 & ot) + ) { + let At; + _.ɵɵqueryRefresh((At = _.ɵɵloadQuery())) && + (_t.template = At.first), + _.ɵɵqueryRefresh((At = _.ɵɵloadQuery())) && + (_t.panel = At.first); + } + }, + inputs: { + ariaLabel: ["aria-label", "ariaLabel"], + ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], + displayWith: "displayWith", + autoActiveFirstOption: "autoActiveFirstOption", + panelWidth: "panelWidth", + classList: ["class", "classList"], + }, + outputs: { + optionSelected: "optionSelected", + opened: "opened", + closed: "closed", + optionActivated: "optionActivated", + }, + features: [_.ɵɵInheritDefinitionFeature], + })), + vt + ); + })(), + ae = (() => { + class vt extends ne { + constructor() { + super(...arguments), + (this._visibleClass = "mat-autocomplete-visible"), + (this._hiddenClass = "mat-autocomplete-hidden"); + } + } + return ( + (vt.ɵfac = (function () { + let yt; + return function (_t) { + return (yt || (yt = _.ɵɵgetInheritedFactory(vt)))(_t || vt); + }; + })()), + (vt.ɵcmp = _.ɵɵdefineComponent({ + type: vt, + selectors: [["mat-autocomplete"]], + contentQueries: function (ot, _t, At) { + if ( + (1 & ot && + (_.ɵɵcontentQuery(At, m.MAT_OPTGROUP, 5), + _.ɵɵcontentQuery(At, m.MatOption, 5)), + 2 & ot) + ) { + let Tt; + _.ɵɵqueryRefresh((Tt = _.ɵɵloadQuery())) && + (_t.optionGroups = Tt), + _.ɵɵqueryRefresh((Tt = _.ɵɵloadQuery())) && + (_t.options = Tt); + } + }, + hostAttrs: [1, "mat-autocomplete"], + inputs: { disableRipple: "disableRipple" }, + exportAs: ["matAutocomplete"], + features: [ + _.ɵɵProvidersFeature([ + { provide: m.MAT_OPTION_PARENT_COMPONENT, useExisting: vt }, + ]), + _.ɵɵInheritDefinitionFeature, + ], + ngContentSelectors: ie, + decls: 1, + vars: 0, + consts: [ + [ + "role", + "listbox", + 1, + "mat-autocomplete-panel", + 3, + "id", + "ngClass", + ], + ["panel", ""], + ], + template: function (ot, _t) { + 1 & ot && + (_.ɵɵprojectionDef(), + _.ɵɵtemplate(0, F, 3, 4, "ng-template")); + }, + directives: [c.NgClass], + styles: [ + ".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + vt + ); + })(); + const le = new _.InjectionToken("mat-autocomplete-scroll-strategy"); + function Oe(vt) { + return () => vt.scrollStrategies.reposition(); + } + const Le = { provide: le, deps: [l.aV], useFactory: Oe }, + Ye = { + provide: x.NG_VALUE_ACCESSOR, + useExisting: (0, _.forwardRef)(() => Ue), + multi: !0, + }; + function Je() { + return Error( + "Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook." + ); + } + let gt = (() => { + class vt { + constructor(ot, _t, At, Tt, Bt, Et, Ee, fe, H, D, U) { + (this._element = ot), + (this._overlay = _t), + (this._viewContainerRef = At), + (this._zone = Tt), + (this._changeDetectorRef = Bt), + (this._dir = Ee), + (this._formField = fe), + (this._document = H), + (this._viewportRuler = D), + (this._defaults = U), + (this._componentDestroyed = !1), + (this._autocompleteDisabled = !1), + (this._manuallyFloatingLabel = !1), + (this._viewportSubscription = s.w.EMPTY), + (this._canOpenOnNextFocus = !0), + (this._closeKeyEventStream = new d.xQ()), + (this._windowBlurHandler = () => { + this._canOpenOnNextFocus = + this._document.activeElement !== + this._element.nativeElement || this.panelOpen; + }), + (this._onChange = () => {}), + (this._onTouched = () => {}), + (this.position = "auto"), + (this.autocompleteAttribute = "off"), + (this._overlayAttached = !1), + (this.optionSelections = (0, u.P)(() => + this.autocomplete && this.autocomplete.options + ? (0, h.T)( + ...this.autocomplete.options.map( + (X) => X.onSelectionChange + ) + ) + : this._zone.onStable.pipe( + (0, O.q)(1), + (0, M.w)(() => this.optionSelections) + ) + )), + (this._scrollStrategy = Et); + } + get autocompleteDisabled() { + return this._autocompleteDisabled; + } + set autocompleteDisabled(ot) { + this._autocompleteDisabled = (0, f.Ig)(ot); + } + ngAfterViewInit() { + const ot = this._getWindow(); + void 0 !== ot && + this._zone.runOutsideAngular(() => + ot.addEventListener("blur", this._windowBlurHandler) + ); + } + ngOnChanges(ot) { + ot.position && + this._positionStrategy && + (this._setStrategyPositions(this._positionStrategy), + this.panelOpen && this._overlayRef.updatePosition()); + } + ngOnDestroy() { + const ot = this._getWindow(); + void 0 !== ot && + ot.removeEventListener("blur", this._windowBlurHandler), + this._viewportSubscription.unsubscribe(), + (this._componentDestroyed = !0), + this._destroyPanel(), + this._closeKeyEventStream.complete(); + } + get panelOpen() { + return this._overlayAttached && this.autocomplete.showPanel; + } + openPanel() { + this._attachOverlay(), this._floatLabel(); + } + closePanel() { + this._resetLabel(), + this._overlayAttached && + (this.panelOpen && this.autocomplete.closed.emit(), + (this.autocomplete._isOpen = this._overlayAttached = !1), + this._overlayRef && + this._overlayRef.hasAttached() && + (this._overlayRef.detach(), + this._closingActionsSubscription.unsubscribe()), + this._componentDestroyed || + this._changeDetectorRef.detectChanges()); + } + updatePosition() { + this._overlayAttached && this._overlayRef.updatePosition(); + } + get panelClosingActions() { + return (0, h.T)( + this.optionSelections, + this.autocomplete._keyManager.tabOut.pipe( + (0, A.h)(() => this._overlayAttached) + ), + this._closeKeyEventStream, + this._getOutsideClickStream(), + this._overlayRef + ? this._overlayRef + .detachments() + .pipe((0, A.h)(() => this._overlayAttached)) + : (0, r.of)() + ).pipe( + (0, S.U)((ot) => + ot instanceof m.MatOptionSelectionChange ? ot : null + ) + ); + } + get activeOption() { + return this.autocomplete && this.autocomplete._keyManager + ? this.autocomplete._keyManager.activeItem + : null; + } + _getOutsideClickStream() { + return (0, h.T)( + (0, o.R)(this._document, "click"), + (0, o.R)(this._document, "auxclick"), + (0, o.R)(this._document, "touchend") + ).pipe( + (0, A.h)((ot) => { + const _t = (0, i.sA)(ot), + At = this._formField + ? this._formField._elementRef.nativeElement + : null, + Tt = this.connectedTo + ? this.connectedTo.elementRef.nativeElement + : null; + return ( + this._overlayAttached && + _t !== this._element.nativeElement && + (!At || !At.contains(_t)) && + (!Tt || !Tt.contains(_t)) && + !!this._overlayRef && + !this._overlayRef.overlayElement.contains(_t) + ); + }) + ); + } + writeValue(ot) { + Promise.resolve(null).then(() => this._setTriggerValue(ot)); + } + registerOnChange(ot) { + this._onChange = ot; + } + registerOnTouched(ot) { + this._onTouched = ot; + } + setDisabledState(ot) { + this._element.nativeElement.disabled = ot; + } + _handleKeydown(ot) { + const _t = ot.keyCode; + if ( + (_t === b.hY && !(0, b.Vb)(ot) && ot.preventDefault(), + this.activeOption && _t === b.K5 && this.panelOpen) + ) + this.activeOption._selectViaInteraction(), + this._resetActiveItem(), + ot.preventDefault(); + else if (this.autocomplete) { + const At = this.autocomplete._keyManager.activeItem, + Tt = _t === b.LH || _t === b.JH; + this.panelOpen || _t === b.Mf + ? this.autocomplete._keyManager.onKeydown(ot) + : Tt && this._canOpen() && this.openPanel(), + (Tt || this.autocomplete._keyManager.activeItem !== At) && + this._scrollToOption( + this.autocomplete._keyManager.activeItemIndex || 0 + ); + } + } + _handleInput(ot) { + let _t = ot.target, + At = _t.value; + "number" === _t.type && (At = "" == At ? null : parseFloat(At)), + this._previousValue !== At && + ((this._previousValue = At), + this._onChange(At), + this._canOpen() && + this._document.activeElement === ot.target && + this.openPanel()); + } + _handleFocus() { + this._canOpenOnNextFocus + ? this._canOpen() && + ((this._previousValue = this._element.nativeElement.value), + this._attachOverlay(), + this._floatLabel(!0)) + : (this._canOpenOnNextFocus = !0); + } + _floatLabel(ot = !1) { + this._formField && + "auto" === this._formField.floatLabel && + (ot + ? this._formField._animateAndLockLabel() + : (this._formField.floatLabel = "always"), + (this._manuallyFloatingLabel = !0)); + } + _resetLabel() { + this._manuallyFloatingLabel && + ((this._formField.floatLabel = "auto"), + (this._manuallyFloatingLabel = !1)); + } + _subscribeToClosingActions() { + const ot = this._zone.onStable.pipe((0, O.q)(1)), + _t = this.autocomplete.options.changes.pipe( + (0, w.b)(() => this._positionStrategy.reapplyLastPosition()), + (0, I.g)(0) + ); + return (0, h.T)(ot, _t) + .pipe( + (0, M.w)(() => { + const At = this.panelOpen; + return ( + this._resetActiveItem(), + this.autocomplete._setVisibility(), + this.panelOpen && + (this._overlayRef.updatePosition(), + At !== this.panelOpen && + this.autocomplete.opened.emit()), + this.panelClosingActions + ); + }), + (0, O.q)(1) + ) + .subscribe((At) => this._setValueAndClose(At)); + } + _destroyPanel() { + this._overlayRef && + (this.closePanel(), + this._overlayRef.dispose(), + (this._overlayRef = null)); + } + _setTriggerValue(ot) { + const _t = + this.autocomplete && this.autocomplete.displayWith + ? this.autocomplete.displayWith(ot) + : ot, + At = null != _t ? _t : ""; + this._formField + ? (this._formField._control.value = At) + : (this._element.nativeElement.value = At), + (this._previousValue = At); + } + _setValueAndClose(ot) { + ot && + ot.source && + (this._clearPreviousSelectedOption(ot.source), + this._setTriggerValue(ot.source.value), + this._onChange(ot.source.value), + this._element.nativeElement.focus(), + this.autocomplete._emitSelectEvent(ot.source)), + this.closePanel(); + } + _clearPreviousSelectedOption(ot) { + this.autocomplete.options.forEach((_t) => { + _t !== ot && _t.selected && _t.deselect(); + }); + } + _attachOverlay() { + var ot; + let _t = this._overlayRef; + _t + ? (this._positionStrategy.setOrigin( + this._getConnectedElement() + ), + _t.updateSize({ width: this._getPanelWidth() })) + : ((this._portal = new y.UE( + this.autocomplete.template, + this._viewContainerRef, + { + id: + null === (ot = this._formField) || void 0 === ot + ? void 0 + : ot.getLabelId(), + } + )), + (_t = this._overlay.create(this._getOverlayConfig())), + (this._overlayRef = _t), + _t.keydownEvents().subscribe((Tt) => { + ((Tt.keyCode === b.hY && !(0, b.Vb)(Tt)) || + (Tt.keyCode === b.LH && (0, b.Vb)(Tt, "altKey"))) && + (this._closeKeyEventStream.next(), + this._resetActiveItem(), + Tt.stopPropagation(), + Tt.preventDefault()); + }), + (this._viewportSubscription = this._viewportRuler + .change() + .subscribe(() => { + this.panelOpen && + _t && + _t.updateSize({ width: this._getPanelWidth() }); + }))), + _t && + !_t.hasAttached() && + (_t.attach(this._portal), + (this._closingActionsSubscription = this._subscribeToClosingActions())); + const At = this.panelOpen; + this.autocomplete._setVisibility(), + (this.autocomplete._isOpen = this._overlayAttached = !0), + this.panelOpen && + At !== this.panelOpen && + this.autocomplete.opened.emit(); + } + _getOverlayConfig() { + var ot; + return new l.X_({ + positionStrategy: this._getOverlayPosition(), + scrollStrategy: this._scrollStrategy(), + width: this._getPanelWidth(), + direction: this._dir, + panelClass: + null === (ot = this._defaults) || void 0 === ot + ? void 0 + : ot.overlayPanelClass, + }); + } + _getOverlayPosition() { + const ot = this._overlay + .position() + .flexibleConnectedTo(this._getConnectedElement()) + .withFlexibleDimensions(!1) + .withPush(!1); + return ( + this._setStrategyPositions(ot), + (this._positionStrategy = ot), + ot + ); + } + _setStrategyPositions(ot) { + const _t = [ + { + originX: "start", + originY: "bottom", + overlayX: "start", + overlayY: "top", + }, + { + originX: "end", + originY: "bottom", + overlayX: "end", + overlayY: "top", + }, + ], + At = this._aboveClass, + Tt = [ + { + originX: "start", + originY: "top", + overlayX: "start", + overlayY: "bottom", + panelClass: At, + }, + { + originX: "end", + originY: "top", + overlayX: "end", + overlayY: "bottom", + panelClass: At, + }, + ]; + let Bt; + (Bt = + "above" === this.position + ? Tt + : "below" === this.position + ? _t + : [..._t, ...Tt]), + ot.withPositions(Bt); + } + _getConnectedElement() { + return this.connectedTo + ? this.connectedTo.elementRef + : this._formField + ? this._formField.getConnectedOverlayOrigin() + : this._element; + } + _getPanelWidth() { + return this.autocomplete.panelWidth || this._getHostWidth(); + } + _getHostWidth() { + return this._getConnectedElement().nativeElement.getBoundingClientRect() + .width; + } + _resetActiveItem() { + const ot = this.autocomplete; + ot.autoActiveFirstOption + ? ot._keyManager.setFirstItemActive() + : ot._keyManager.setActiveItem(-1); + } + _canOpen() { + const ot = this._element.nativeElement; + return ( + !ot.readOnly && !ot.disabled && !this._autocompleteDisabled + ); + } + _getWindow() { + var ot; + return ( + (null === (ot = this._document) || void 0 === ot + ? void 0 + : ot.defaultView) || window + ); + } + _scrollToOption(ot) { + const _t = this.autocomplete, + At = (0, m._countGroupLabelsBeforeOption)( + ot, + _t.options, + _t.optionGroups + ); + if (0 === ot && 1 === At) _t._setScrollTop(0); + else if (_t.panel) { + const Tt = _t.options.toArray()[ot]; + if (Tt) { + const Bt = Tt._getHostElement(), + Et = (0, m._getOptionScrollPosition)( + Bt.offsetTop, + Bt.offsetHeight, + _t._getScrollTop(), + _t.panel.nativeElement.offsetHeight + ); + _t._setScrollTop(Et); + } + } + } + } + return ( + (vt.ɵfac = function (ot) { + return new (ot || vt)( + _.ɵɵdirectiveInject(_.ElementRef), + _.ɵɵdirectiveInject(l.aV), + _.ɵɵdirectiveInject(_.ViewContainerRef), + _.ɵɵdirectiveInject(_.NgZone), + _.ɵɵdirectiveInject(_.ChangeDetectorRef), + _.ɵɵdirectiveInject(le), + _.ɵɵdirectiveInject(C.Is, 8), + _.ɵɵdirectiveInject(T.MAT_FORM_FIELD, 9), + _.ɵɵdirectiveInject(c.DOCUMENT, 8), + _.ɵɵdirectiveInject(g.rL), + _.ɵɵdirectiveInject($, 8) + ); + }), + (vt.ɵdir = _.ɵɵdefineDirective({ + type: vt, + inputs: { + autocomplete: ["matAutocomplete", "autocomplete"], + position: ["matAutocompletePosition", "position"], + connectedTo: ["matAutocompleteConnectedTo", "connectedTo"], + autocompleteAttribute: [ + "autocomplete", + "autocompleteAttribute", + ], + autocompleteDisabled: [ + "matAutocompleteDisabled", + "autocompleteDisabled", + ], + }, + features: [_.ɵɵNgOnChangesFeature], + })), + vt + ); + })(), + Ue = (() => { + class vt extends gt { + constructor() { + super(...arguments), + (this._aboveClass = "mat-autocomplete-panel-above"); + } + } + return ( + (vt.ɵfac = (function () { + let yt; + return function (_t) { + return (yt || (yt = _.ɵɵgetInheritedFactory(vt)))(_t || vt); + }; + })()), + (vt.ɵdir = _.ɵɵdefineDirective({ + type: vt, + selectors: [ + ["input", "matAutocomplete", ""], + ["textarea", "matAutocomplete", ""], + ], + hostAttrs: [1, "mat-autocomplete-trigger"], + hostVars: 7, + hostBindings: function (ot, _t) { + 1 & ot && + _.ɵɵlistener("focusin", function () { + return _t._handleFocus(); + })("blur", function () { + return _t._onTouched(); + })("input", function (Tt) { + return _t._handleInput(Tt); + })("keydown", function (Tt) { + return _t._handleKeydown(Tt); + }), + 2 & ot && + _.ɵɵattribute("autocomplete", _t.autocompleteAttribute)( + "role", + _t.autocompleteDisabled ? null : "combobox" + )( + "aria-autocomplete", + _t.autocompleteDisabled ? null : "list" + )( + "aria-activedescendant", + _t.panelOpen && _t.activeOption + ? _t.activeOption.id + : null + )( + "aria-expanded", + _t.autocompleteDisabled ? null : _t.panelOpen.toString() + )( + "aria-owns", + _t.autocompleteDisabled || + !_t.panelOpen || + null == _t.autocomplete + ? null + : _t.autocomplete.id + )("aria-haspopup", !_t.autocompleteDisabled); + }, + exportAs: ["matAutocompleteTrigger"], + features: [ + _.ɵɵProvidersFeature([Ye]), + _.ɵɵInheritDefinitionFeature, + ], + })), + vt + ); + })(), + tt = (() => { + class vt { + constructor(ot) { + this.elementRef = ot; + } + } + return ( + (vt.ɵfac = function (ot) { + return new (ot || vt)(_.ɵɵdirectiveInject(_.ElementRef)); + }), + (vt.ɵdir = _.ɵɵdefineDirective({ type: vt })), + vt + ); + })(), + at = (() => { + class vt extends tt {} + return ( + (vt.ɵfac = (function () { + let yt; + return function (_t) { + return (yt || (yt = _.ɵɵgetInheritedFactory(vt)))(_t || vt); + }; + })()), + (vt.ɵdir = _.ɵɵdefineDirective({ + type: vt, + selectors: [["", "matAutocompleteOrigin", ""]], + exportAs: ["matAutocompleteOrigin"], + features: [_.ɵɵInheritDefinitionFeature], + })), + vt + ); + })(), + ft = (() => { + class vt {} + return ( + (vt.ɵfac = function (ot) { + return new (ot || vt)(); + }), + (vt.ɵmod = _.ɵɵdefineNgModule({ type: vt })), + (vt.ɵinj = _.ɵɵdefineInjector({ + providers: [Le], + imports: [ + [l.U8, m.MatOptionModule, m.MatCommonModule, c.CommonModule], + g.ZD, + m.MatOptionModule, + m.MatCommonModule, + ], + })), + vt + ); + })(); + }, + 7423: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MatAnchor: () => c, + MatButton: () => i, + MatButtonModule: () => l, + }); + var n = p(5e3), + f = p(508), + _ = p(6360), + m = p(5664); + const s = ["mat-button", ""], + d = ["*"], + r = [ + "mat-button", + "mat-flat-button", + "mat-icon-button", + "mat-raised-button", + "mat-stroked-button", + "mat-mini-fab", + "mat-fab", + ], + o = (0, f.mixinColor)( + (0, f.mixinDisabled)( + (0, f.mixinDisableRipple)( + class { + constructor(g) { + this._elementRef = g; + } + } + ) + ) + ); + let i = (() => { + class g extends o { + constructor(y, x, T) { + super(y), + (this._focusMonitor = x), + (this._animationMode = T), + (this.isRoundButton = this._hasHostAttributes( + "mat-fab", + "mat-mini-fab" + )), + (this.isIconButton = this._hasHostAttributes( + "mat-icon-button" + )); + for (const O of r) + this._hasHostAttributes(O) && + this._getHostElement().classList.add(O); + y.nativeElement.classList.add("mat-button-base"), + this.isRoundButton && (this.color = "accent"); + } + ngAfterViewInit() { + this._focusMonitor.monitor(this._elementRef, !0); + } + ngOnDestroy() { + this._focusMonitor.stopMonitoring(this._elementRef); + } + focus(y, x) { + y + ? this._focusMonitor.focusVia(this._getHostElement(), y, x) + : this._getHostElement().focus(x); + } + _getHostElement() { + return this._elementRef.nativeElement; + } + _isRippleDisabled() { + return this.disableRipple || this.disabled; + } + _hasHostAttributes(...y) { + return y.some((x) => this._getHostElement().hasAttribute(x)); + } + } + return ( + (g.ɵfac = function (y) { + return new (y || g)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(m.tE), + n.ɵɵdirectiveInject(_.ANIMATION_MODULE_TYPE, 8) + ); + }), + (g.ɵcmp = n.ɵɵdefineComponent({ + type: g, + selectors: [ + ["button", "mat-button", ""], + ["button", "mat-raised-button", ""], + ["button", "mat-icon-button", ""], + ["button", "mat-fab", ""], + ["button", "mat-mini-fab", ""], + ["button", "mat-stroked-button", ""], + ["button", "mat-flat-button", ""], + ], + viewQuery: function (y, x) { + if ((1 & y && n.ɵɵviewQuery(f.MatRipple, 5), 2 & y)) { + let T; + n.ɵɵqueryRefresh((T = n.ɵɵloadQuery())) && + (x.ripple = T.first); + } + }, + hostAttrs: [1, "mat-focus-indicator"], + hostVars: 5, + hostBindings: function (y, x) { + 2 & y && + (n.ɵɵattribute("disabled", x.disabled || null), + n.ɵɵclassProp( + "_mat-animation-noopable", + "NoopAnimations" === x._animationMode + )("mat-button-disabled", x.disabled)); + }, + inputs: { + disabled: "disabled", + disableRipple: "disableRipple", + color: "color", + }, + exportAs: ["matButton"], + features: [n.ɵɵInheritDefinitionFeature], + attrs: s, + ngContentSelectors: d, + decls: 4, + vars: 5, + consts: [ + [1, "mat-button-wrapper"], + [ + "matRipple", + "", + 1, + "mat-button-ripple", + 3, + "matRippleDisabled", + "matRippleCentered", + "matRippleTrigger", + ], + [1, "mat-button-focus-overlay"], + ], + template: function (y, x) { + 1 & y && + (n.ɵɵprojectionDef(), + n.ɵɵelementStart(0, "span", 0), + n.ɵɵprojection(1), + n.ɵɵelementEnd(), + n.ɵɵelement(2, "span", 1), + n.ɵɵelement(3, "span", 2)), + 2 & y && + (n.ɵɵadvance(2), + n.ɵɵclassProp( + "mat-button-ripple-round", + x.isRoundButton || x.isIconButton + ), + n.ɵɵproperty("matRippleDisabled", x._isRippleDisabled())( + "matRippleCentered", + x.isIconButton + )("matRippleTrigger", x._getHostElement())); + }, + directives: [f.MatRipple], + styles: [ + ".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + g + ); + })(), + c = (() => { + class g extends i { + constructor(y, x, T) { + super(x, y, T); + } + _haltDisabledEvents(y) { + this.disabled && + (y.preventDefault(), y.stopImmediatePropagation()); + } + } + return ( + (g.ɵfac = function (y) { + return new (y || g)( + n.ɵɵdirectiveInject(m.tE), + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(_.ANIMATION_MODULE_TYPE, 8) + ); + }), + (g.ɵcmp = n.ɵɵdefineComponent({ + type: g, + selectors: [ + ["a", "mat-button", ""], + ["a", "mat-raised-button", ""], + ["a", "mat-icon-button", ""], + ["a", "mat-fab", ""], + ["a", "mat-mini-fab", ""], + ["a", "mat-stroked-button", ""], + ["a", "mat-flat-button", ""], + ], + hostAttrs: [1, "mat-focus-indicator"], + hostVars: 7, + hostBindings: function (y, x) { + 1 & y && + n.ɵɵlistener("click", function (O) { + return x._haltDisabledEvents(O); + }), + 2 & y && + (n.ɵɵattribute( + "tabindex", + x.disabled ? -1 : x.tabIndex || 0 + )("disabled", x.disabled || null)( + "aria-disabled", + x.disabled.toString() + ), + n.ɵɵclassProp( + "_mat-animation-noopable", + "NoopAnimations" === x._animationMode + )("mat-button-disabled", x.disabled)); + }, + inputs: { + disabled: "disabled", + disableRipple: "disableRipple", + color: "color", + tabIndex: "tabIndex", + }, + exportAs: ["matButton", "matAnchor"], + features: [n.ɵɵInheritDefinitionFeature], + attrs: s, + ngContentSelectors: d, + decls: 4, + vars: 5, + consts: [ + [1, "mat-button-wrapper"], + [ + "matRipple", + "", + 1, + "mat-button-ripple", + 3, + "matRippleDisabled", + "matRippleCentered", + "matRippleTrigger", + ], + [1, "mat-button-focus-overlay"], + ], + template: function (y, x) { + 1 & y && + (n.ɵɵprojectionDef(), + n.ɵɵelementStart(0, "span", 0), + n.ɵɵprojection(1), + n.ɵɵelementEnd(), + n.ɵɵelement(2, "span", 1), + n.ɵɵelement(3, "span", 2)), + 2 & y && + (n.ɵɵadvance(2), + n.ɵɵclassProp( + "mat-button-ripple-round", + x.isRoundButton || x.isIconButton + ), + n.ɵɵproperty("matRippleDisabled", x._isRippleDisabled())( + "matRippleCentered", + x.isIconButton + )("matRippleTrigger", x._getHostElement())); + }, + directives: [f.MatRipple], + styles: [ + ".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + g + ); + })(), + l = (() => { + class g {} + return ( + (g.ɵfac = function (y) { + return new (y || g)(); + }), + (g.ɵmod = n.ɵɵdefineNgModule({ type: g })), + (g.ɵinj = n.ɵɵdefineInjector({ + imports: [ + [f.MatRippleModule, f.MatCommonModule], + f.MatCommonModule, + ], + })), + g + ); + })(); + }, + 9224: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MatCard: () => A, + MatCardActions: () => l, + MatCardAvatar: () => M, + MatCardContent: () => o, + MatCardFooter: () => g, + MatCardHeader: () => S, + MatCardImage: () => b, + MatCardLgImage: () => T, + MatCardMdImage: () => x, + MatCardModule: () => I, + MatCardSmImage: () => y, + MatCardSubtitle: () => c, + MatCardTitle: () => i, + MatCardTitleGroup: () => w, + MatCardXlImage: () => O, + }); + var n = p(5e3), + f = p(6360), + _ = p(508); + const m = ["*", [["mat-card-footer"]]], + s = ["*", "mat-card-footer"], + d = [ + [ + ["", "mat-card-avatar", ""], + ["", "matCardAvatar", ""], + ], + [ + ["mat-card-title"], + ["mat-card-subtitle"], + ["", "mat-card-title", ""], + ["", "mat-card-subtitle", ""], + ["", "matCardTitle", ""], + ["", "matCardSubtitle", ""], + ], + "*", + ], + u = [ + "[mat-card-avatar], [matCardAvatar]", + "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", + "*", + ], + h = [ + [ + ["mat-card-title"], + ["mat-card-subtitle"], + ["", "mat-card-title", ""], + ["", "mat-card-subtitle", ""], + ["", "matCardTitle", ""], + ["", "matCardSubtitle", ""], + ], + [["img"]], + "*", + ], + r = [ + "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", + "img", + "*", + ]; + let o = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [ + ["mat-card-content"], + ["", "mat-card-content", ""], + ["", "matCardContent", ""], + ], + hostAttrs: [1, "mat-card-content"], + })), + C + ); + })(), + i = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [ + ["mat-card-title"], + ["", "mat-card-title", ""], + ["", "matCardTitle", ""], + ], + hostAttrs: [1, "mat-card-title"], + })), + C + ); + })(), + c = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [ + ["mat-card-subtitle"], + ["", "mat-card-subtitle", ""], + ["", "matCardSubtitle", ""], + ], + hostAttrs: [1, "mat-card-subtitle"], + })), + C + ); + })(), + l = (() => { + class C { + constructor() { + this.align = "start"; + } + } + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [["mat-card-actions"]], + hostAttrs: [1, "mat-card-actions"], + hostVars: 2, + hostBindings: function (F, ie) { + 2 & F && + n.ɵɵclassProp( + "mat-card-actions-align-end", + "end" === ie.align + ); + }, + inputs: { align: "align" }, + exportAs: ["matCardActions"], + })), + C + ); + })(), + g = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [["mat-card-footer"]], + hostAttrs: [1, "mat-card-footer"], + })), + C + ); + })(), + b = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [ + ["", "mat-card-image", ""], + ["", "matCardImage", ""], + ], + hostAttrs: [1, "mat-card-image"], + })), + C + ); + })(), + y = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [ + ["", "mat-card-sm-image", ""], + ["", "matCardImageSmall", ""], + ], + hostAttrs: [1, "mat-card-sm-image"], + })), + C + ); + })(), + x = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [ + ["", "mat-card-md-image", ""], + ["", "matCardImageMedium", ""], + ], + hostAttrs: [1, "mat-card-md-image"], + })), + C + ); + })(), + T = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [ + ["", "mat-card-lg-image", ""], + ["", "matCardImageLarge", ""], + ], + hostAttrs: [1, "mat-card-lg-image"], + })), + C + ); + })(), + O = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [ + ["", "mat-card-xl-image", ""], + ["", "matCardImageXLarge", ""], + ], + hostAttrs: [1, "mat-card-xl-image"], + })), + C + ); + })(), + M = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵdir = n.ɵɵdefineDirective({ + type: C, + selectors: [ + ["", "mat-card-avatar", ""], + ["", "matCardAvatar", ""], + ], + hostAttrs: [1, "mat-card-avatar"], + })), + C + ); + })(), + A = (() => { + class C { + constructor(F) { + this._animationMode = F; + } + } + return ( + (C.ɵfac = function (F) { + return new (F || C)( + n.ɵɵdirectiveInject(f.ANIMATION_MODULE_TYPE, 8) + ); + }), + (C.ɵcmp = n.ɵɵdefineComponent({ + type: C, + selectors: [["mat-card"]], + hostAttrs: [1, "mat-card", "mat-focus-indicator"], + hostVars: 2, + hostBindings: function (F, ie) { + 2 & F && + n.ɵɵclassProp( + "_mat-animation-noopable", + "NoopAnimations" === ie._animationMode + ); + }, + exportAs: ["matCard"], + ngContentSelectors: s, + decls: 2, + vars: 0, + template: function (F, ie) { + 1 & F && + (n.ɵɵprojectionDef(m), + n.ɵɵprojection(0), + n.ɵɵprojection(1, 1)); + }, + styles: [ + ".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + C + ); + })(), + S = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵcmp = n.ɵɵdefineComponent({ + type: C, + selectors: [["mat-card-header"]], + hostAttrs: [1, "mat-card-header"], + ngContentSelectors: u, + decls: 4, + vars: 0, + consts: [[1, "mat-card-header-text"]], + template: function (F, ie) { + 1 & F && + (n.ɵɵprojectionDef(d), + n.ɵɵprojection(0), + n.ɵɵelementStart(1, "div", 0), + n.ɵɵprojection(2, 1), + n.ɵɵelementEnd(), + n.ɵɵprojection(3, 2)); + }, + encapsulation: 2, + changeDetection: 0, + })), + C + ); + })(), + w = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵcmp = n.ɵɵdefineComponent({ + type: C, + selectors: [["mat-card-title-group"]], + hostAttrs: [1, "mat-card-title-group"], + ngContentSelectors: r, + decls: 4, + vars: 0, + template: function (F, ie) { + 1 & F && + (n.ɵɵprojectionDef(h), + n.ɵɵelementStart(0, "div"), + n.ɵɵprojection(1), + n.ɵɵelementEnd(), + n.ɵɵprojection(2, 1), + n.ɵɵprojection(3, 2)); + }, + encapsulation: 2, + changeDetection: 0, + })), + C + ); + })(), + I = (() => { + class C {} + return ( + (C.ɵfac = function (F) { + return new (F || C)(); + }), + (C.ɵmod = n.ɵɵdefineNgModule({ type: C })), + (C.ɵinj = n.ɵɵdefineInjector({ + imports: [[_.MatCommonModule], _.MatCommonModule], + })), + C + ); + })(); + }, + 7446: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR: () => b, + MAT_CHECKBOX_DEFAULT_OPTIONS: () => i, + MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY: () => c, + MAT_CHECKBOX_REQUIRED_VALIDATOR: () => O, + MatCheckbox: () => T, + MatCheckboxChange: () => y, + MatCheckboxModule: () => S, + MatCheckboxRequiredValidator: () => M, + _MatCheckboxRequiredValidatorModule: () => A, + }); + var n = p(3191), + f = p(5e3), + _ = p(3075), + m = p(508), + s = p(6360), + d = p(5664), + u = p(7144); + const h = ["input"], + r = function (w) { + return { enterDuration: w }; + }, + o = ["*"], + i = new f.InjectionToken("mat-checkbox-default-options", { + providedIn: "root", + factory: c, + }); + function c() { + return { color: "accent", clickAction: "check-indeterminate" }; + } + let l = 0; + const g = c(), + b = { + provide: _.NG_VALUE_ACCESSOR, + useExisting: (0, f.forwardRef)(() => T), + multi: !0, + }; + class y {} + const x = (0, m.mixinTabIndex)( + (0, m.mixinColor)( + (0, m.mixinDisableRipple)( + (0, m.mixinDisabled)( + class { + constructor(w) { + this._elementRef = w; + } + } + ) + ) + ) + ); + let T = (() => { + class w extends x { + constructor(C, L, F, ie, Y, Z, ee) { + super(C), + (this._changeDetectorRef = L), + (this._focusMonitor = F), + (this._ngZone = ie), + (this._animationMode = Z), + (this._options = ee), + (this.ariaLabel = ""), + (this.ariaLabelledby = null), + (this._uniqueId = "mat-checkbox-" + ++l), + (this.id = this._uniqueId), + (this.labelPosition = "after"), + (this.name = null), + (this.change = new f.EventEmitter()), + (this.indeterminateChange = new f.EventEmitter()), + (this._onTouched = () => {}), + (this._currentAnimationClass = ""), + (this._currentCheckState = 0), + (this._controlValueAccessorChangeFn = () => {}), + (this._checked = !1), + (this._disabled = !1), + (this._indeterminate = !1), + (this._options = this._options || g), + (this.color = this.defaultColor = this._options.color || g.color), + (this.tabIndex = parseInt(Y) || 0); + } + get inputId() { + return `${this.id || this._uniqueId}-input`; + } + get required() { + return this._required; + } + set required(C) { + this._required = (0, n.Ig)(C); + } + ngAfterViewInit() { + this._focusMonitor.monitor(this._elementRef, !0).subscribe((C) => { + C || + Promise.resolve().then(() => { + this._onTouched(), this._changeDetectorRef.markForCheck(); + }); + }), + this._syncIndeterminate(this._indeterminate); + } + ngAfterViewChecked() {} + ngOnDestroy() { + this._focusMonitor.stopMonitoring(this._elementRef); + } + get checked() { + return this._checked; + } + set checked(C) { + C != this.checked && + ((this._checked = C), this._changeDetectorRef.markForCheck()); + } + get disabled() { + return this._disabled; + } + set disabled(C) { + const L = (0, n.Ig)(C); + L !== this.disabled && + ((this._disabled = L), this._changeDetectorRef.markForCheck()); + } + get indeterminate() { + return this._indeterminate; + } + set indeterminate(C) { + const L = C != this._indeterminate; + (this._indeterminate = (0, n.Ig)(C)), + L && + (this._transitionCheckState( + this._indeterminate ? 3 : this.checked ? 1 : 2 + ), + this.indeterminateChange.emit(this._indeterminate)), + this._syncIndeterminate(this._indeterminate); + } + _isRippleDisabled() { + return this.disableRipple || this.disabled; + } + _onLabelTextChange() { + this._changeDetectorRef.detectChanges(); + } + writeValue(C) { + this.checked = !!C; + } + registerOnChange(C) { + this._controlValueAccessorChangeFn = C; + } + registerOnTouched(C) { + this._onTouched = C; + } + setDisabledState(C) { + this.disabled = C; + } + _getAriaChecked() { + return this.checked + ? "true" + : this.indeterminate + ? "mixed" + : "false"; + } + _transitionCheckState(C) { + let L = this._currentCheckState, + F = this._elementRef.nativeElement; + if ( + L !== C && + (this._currentAnimationClass.length > 0 && + F.classList.remove(this._currentAnimationClass), + (this._currentAnimationClass = this._getAnimationClassForCheckStateTransition( + L, + C + )), + (this._currentCheckState = C), + this._currentAnimationClass.length > 0) + ) { + F.classList.add(this._currentAnimationClass); + const ie = this._currentAnimationClass; + this._ngZone.runOutsideAngular(() => { + setTimeout(() => { + F.classList.remove(ie); + }, 1e3); + }); + } + } + _emitChangeEvent() { + const C = new y(); + (C.source = this), + (C.checked = this.checked), + this._controlValueAccessorChangeFn(this.checked), + this.change.emit(C), + this._inputElement && + (this._inputElement.nativeElement.checked = this.checked); + } + toggle() { + this.checked = !this.checked; + } + _onInputClick(C) { + var L; + const F = + null === (L = this._options) || void 0 === L + ? void 0 + : L.clickAction; + C.stopPropagation(), + this.disabled || "noop" === F + ? !this.disabled && + "noop" === F && + ((this._inputElement.nativeElement.checked = this.checked), + (this._inputElement.nativeElement.indeterminate = this.indeterminate)) + : (this.indeterminate && + "check" !== F && + Promise.resolve().then(() => { + (this._indeterminate = !1), + this.indeterminateChange.emit(this._indeterminate); + }), + this.toggle(), + this._transitionCheckState(this._checked ? 1 : 2), + this._emitChangeEvent()); + } + focus(C, L) { + C + ? this._focusMonitor.focusVia(this._inputElement, C, L) + : this._inputElement.nativeElement.focus(L); + } + _onInteractionEvent(C) { + C.stopPropagation(); + } + _getAnimationClassForCheckStateTransition(C, L) { + if ("NoopAnimations" === this._animationMode) return ""; + let F = ""; + switch (C) { + case 0: + if (1 === L) F = "unchecked-checked"; + else { + if (3 != L) return ""; + F = "unchecked-indeterminate"; + } + break; + case 2: + F = 1 === L ? "unchecked-checked" : "unchecked-indeterminate"; + break; + case 1: + F = 2 === L ? "checked-unchecked" : "checked-indeterminate"; + break; + case 3: + F = + 1 === L ? "indeterminate-checked" : "indeterminate-unchecked"; + } + return `mat-checkbox-anim-${F}`; + } + _syncIndeterminate(C) { + const L = this._inputElement; + L && (L.nativeElement.indeterminate = C); + } + } + return ( + (w.ɵfac = function (C) { + return new (C || w)( + f.ɵɵdirectiveInject(f.ElementRef), + f.ɵɵdirectiveInject(f.ChangeDetectorRef), + f.ɵɵdirectiveInject(d.tE), + f.ɵɵdirectiveInject(f.NgZone), + f.ɵɵinjectAttribute("tabindex"), + f.ɵɵdirectiveInject(s.ANIMATION_MODULE_TYPE, 8), + f.ɵɵdirectiveInject(i, 8) + ); + }), + (w.ɵcmp = f.ɵɵdefineComponent({ + type: w, + selectors: [["mat-checkbox"]], + viewQuery: function (C, L) { + if ( + (1 & C && (f.ɵɵviewQuery(h, 5), f.ɵɵviewQuery(m.MatRipple, 5)), + 2 & C) + ) { + let F; + f.ɵɵqueryRefresh((F = f.ɵɵloadQuery())) && + (L._inputElement = F.first), + f.ɵɵqueryRefresh((F = f.ɵɵloadQuery())) && + (L.ripple = F.first); + } + }, + hostAttrs: [1, "mat-checkbox"], + hostVars: 12, + hostBindings: function (C, L) { + 2 & C && + (f.ɵɵhostProperty("id", L.id), + f.ɵɵattribute("tabindex", null), + f.ɵɵclassProp("mat-checkbox-indeterminate", L.indeterminate)( + "mat-checkbox-checked", + L.checked + )("mat-checkbox-disabled", L.disabled)( + "mat-checkbox-label-before", + "before" == L.labelPosition + )( + "_mat-animation-noopable", + "NoopAnimations" === L._animationMode + )); + }, + inputs: { + disableRipple: "disableRipple", + color: "color", + tabIndex: "tabIndex", + ariaLabel: ["aria-label", "ariaLabel"], + ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], + ariaDescribedby: ["aria-describedby", "ariaDescribedby"], + id: "id", + required: "required", + labelPosition: "labelPosition", + name: "name", + value: "value", + checked: "checked", + disabled: "disabled", + indeterminate: "indeterminate", + }, + outputs: { + change: "change", + indeterminateChange: "indeterminateChange", + }, + exportAs: ["matCheckbox"], + features: [f.ɵɵProvidersFeature([b]), f.ɵɵInheritDefinitionFeature], + ngContentSelectors: o, + decls: 17, + vars: 21, + consts: [ + [1, "mat-checkbox-layout"], + ["label", ""], + [1, "mat-checkbox-inner-container"], + [ + "type", + "checkbox", + 1, + "mat-checkbox-input", + "cdk-visually-hidden", + 3, + "id", + "required", + "checked", + "disabled", + "tabIndex", + "change", + "click", + ], + ["input", ""], + [ + "matRipple", + "", + 1, + "mat-checkbox-ripple", + "mat-focus-indicator", + 3, + "matRippleTrigger", + "matRippleDisabled", + "matRippleRadius", + "matRippleCentered", + "matRippleAnimation", + ], + [1, "mat-ripple-element", "mat-checkbox-persistent-ripple"], + [1, "mat-checkbox-frame"], + [1, "mat-checkbox-background"], + [ + "version", + "1.1", + "focusable", + "false", + "viewBox", + "0 0 24 24", + 0, + "xml", + "space", + "preserve", + "aria-hidden", + "true", + 1, + "mat-checkbox-checkmark", + ], + [ + "fill", + "none", + "stroke", + "white", + "d", + "M4.1,12.7 9,17.6 20.3,6.3", + 1, + "mat-checkbox-checkmark-path", + ], + [1, "mat-checkbox-mixedmark"], + [1, "mat-checkbox-label", 3, "cdkObserveContent"], + ["checkboxLabel", ""], + [2, "display", "none"], + ], + template: function (C, L) { + if ( + (1 & C && + (f.ɵɵprojectionDef(), + f.ɵɵelementStart(0, "label", 0, 1), + f.ɵɵelementStart(2, "span", 2), + f.ɵɵelementStart(3, "input", 3, 4), + f.ɵɵlistener("change", function (ie) { + return L._onInteractionEvent(ie); + })("click", function (ie) { + return L._onInputClick(ie); + }), + f.ɵɵelementEnd(), + f.ɵɵelementStart(5, "span", 5), + f.ɵɵelement(6, "span", 6), + f.ɵɵelementEnd(), + f.ɵɵelement(7, "span", 7), + f.ɵɵelementStart(8, "span", 8), + f.ɵɵnamespaceSVG(), + f.ɵɵelementStart(9, "svg", 9), + f.ɵɵelement(10, "path", 10), + f.ɵɵelementEnd(), + f.ɵɵnamespaceHTML(), + f.ɵɵelement(11, "span", 11), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(), + f.ɵɵelementStart(12, "span", 12, 13), + f.ɵɵlistener("cdkObserveContent", function () { + return L._onLabelTextChange(); + }), + f.ɵɵelementStart(14, "span", 14), + f.ɵɵtext(15, "\xa0"), + f.ɵɵelementEnd(), + f.ɵɵprojection(16), + f.ɵɵelementEnd(), + f.ɵɵelementEnd()), + 2 & C) + ) { + const F = f.ɵɵreference(1), + ie = f.ɵɵreference(13); + f.ɵɵattribute("for", L.inputId), + f.ɵɵadvance(2), + f.ɵɵclassProp( + "mat-checkbox-inner-container-no-side-margin", + !ie.textContent || !ie.textContent.trim() + ), + f.ɵɵadvance(1), + f.ɵɵproperty("id", L.inputId)("required", L.required)( + "checked", + L.checked + )("disabled", L.disabled)("tabIndex", L.tabIndex), + f.ɵɵattribute("value", L.value)("name", L.name)( + "aria-label", + L.ariaLabel || null + )("aria-labelledby", L.ariaLabelledby)( + "aria-checked", + L._getAriaChecked() + )("aria-describedby", L.ariaDescribedby), + f.ɵɵadvance(2), + f.ɵɵproperty("matRippleTrigger", F)( + "matRippleDisabled", + L._isRippleDisabled() + )("matRippleRadius", 20)("matRippleCentered", !0)( + "matRippleAnimation", + f.ɵɵpureFunction1( + 19, + r, + "NoopAnimations" === L._animationMode ? 0 : 150 + ) + ); + } + }, + directives: [m.MatRipple, u.wD], + styles: [ + "@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + w + ); + })(); + const O = { + provide: _.NG_VALIDATORS, + useExisting: (0, f.forwardRef)(() => M), + multi: !0, + }; + let M = (() => { + class w extends _.CheckboxRequiredValidator {} + return ( + (w.ɵfac = (function () { + let I; + return function (L) { + return (I || (I = f.ɵɵgetInheritedFactory(w)))(L || w); + }; + })()), + (w.ɵdir = f.ɵɵdefineDirective({ + type: w, + selectors: [ + ["mat-checkbox", "required", "", "formControlName", ""], + ["mat-checkbox", "required", "", "formControl", ""], + ["mat-checkbox", "required", "", "ngModel", ""], + ], + features: [ + f.ɵɵProvidersFeature([O]), + f.ɵɵInheritDefinitionFeature, + ], + })), + w + ); + })(), + A = (() => { + class w {} + return ( + (w.ɵfac = function (C) { + return new (C || w)(); + }), + (w.ɵmod = f.ɵɵdefineNgModule({ type: w })), + (w.ɵinj = f.ɵɵdefineInjector({})), + w + ); + })(), + S = (() => { + class w {} + return ( + (w.ɵfac = function (C) { + return new (C || w)(); + }), + (w.ɵmod = f.ɵɵdefineNgModule({ type: w })), + (w.ɵinj = f.ɵɵdefineInjector({ + imports: [ + [m.MatRippleModule, m.MatCommonModule, u.Q8, A], + m.MatCommonModule, + A, + ], + })), + w + ); + })(); + }, + 508: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + AnimationCurves: () => O, + AnimationDurations: () => M, + DateAdapter: () => le, + ErrorStateMatcher: () => ft, + MATERIAL_SANITY_CHECKS: () => w, + MAT_DATE_FORMATS: () => Oe, + MAT_DATE_LOCALE: () => ne, + MAT_DATE_LOCALE_FACTORY: () => ae, + MAT_NATIVE_DATE_FORMATS: () => gt, + MAT_OPTGROUP: () => Dt, + MAT_OPTION_PARENT_COMPONENT: () => ut, + MAT_RIPPLE_GLOBAL_OPTIONS: () => X, + MatCommonModule: () => I, + MatLine: () => vt, + MatLineModule: () => _t, + MatNativeDateModule: () => tt, + MatOptgroup: () => Kt, + MatOption: () => Qe, + MatOptionModule: () => qt, + MatOptionSelectionChange: () => xt, + MatPseudoCheckbox: () => $e, + MatPseudoCheckboxModule: () => st, + MatRipple: () => _e, + MatRippleModule: () => Be, + NativeDateAdapter: () => Je, + NativeDateModule: () => Ue, + RippleRef: () => At, + RippleRenderer: () => H, + ShowOnDirtyErrorStateMatcher: () => at, + VERSION: () => T, + _MatOptgroupBase: () => tn, + _MatOptionBase: () => Lt, + _countGroupLabelsBeforeOption: () => mt, + _getOptionScrollPosition: () => Vt, + defaultRippleAnimationConfig: () => Tt, + mixinColor: () => Y, + mixinDisableRipple: () => Z, + mixinDisabled: () => ie, + mixinErrorState: () => $, + mixinInitialized: () => J, + mixinTabIndex: () => ee, + setLines: () => yt, + }); + var n = p(5e3), + f = p(226), + m = p(9808), + s = p(925), + d = p(5664), + u = p(3191), + h = p(8929), + r = p(6498), + o = p(1059), + i = p(6360), + c = p(1159); + const l = ["*", [["mat-option"], ["ng-container"]]], + g = ["*", "mat-option, ng-container"]; + function b(Ne, Se) { + if ((1 & Ne && n.ɵɵelement(0, "mat-pseudo-checkbox", 4), 2 & Ne)) { + const te = n.ɵɵnextContext(); + n.ɵɵproperty("state", te.selected ? "checked" : "unchecked")( + "disabled", + te.disabled + ); + } + } + function y(Ne, Se) { + if ( + (1 & Ne && + (n.ɵɵelementStart(0, "span", 5), n.ɵɵtext(1), n.ɵɵelementEnd()), + 2 & Ne) + ) { + const te = n.ɵɵnextContext(); + n.ɵɵadvance(1), n.ɵɵtextInterpolate1("(", te.group.label, ")"); + } + } + const x = ["*"], + T = new n.Version("13.1.1"); + let O = (() => { + class Ne {} + return ( + (Ne.STANDARD_CURVE = "cubic-bezier(0.4,0.0,0.2,1)"), + (Ne.DECELERATION_CURVE = "cubic-bezier(0.0,0.0,0.2,1)"), + (Ne.ACCELERATION_CURVE = "cubic-bezier(0.4,0.0,1,1)"), + (Ne.SHARP_CURVE = "cubic-bezier(0.4,0.0,0.6,1)"), + Ne + ); + })(), + M = (() => { + class Ne {} + return ( + (Ne.COMPLEX = "375ms"), + (Ne.ENTERING = "225ms"), + (Ne.EXITING = "195ms"), + Ne + ); + })(); + const w = new n.InjectionToken("mat-sanity-checks", { + providedIn: "root", + factory: function () { + return !0; + }, + }); + let I = (() => { + class Ne { + constructor(te, re, Me) { + (this._sanityChecks = re), + (this._document = Me), + (this._hasDoneGlobalChecks = !1), + te._applyBodyHighContrastModeCssClasses(), + this._hasDoneGlobalChecks || (this._hasDoneGlobalChecks = !0); + } + _checkIsEnabled(te) { + return ( + !(0, s.Oy)() && + ("boolean" == typeof this._sanityChecks + ? this._sanityChecks + : !!this._sanityChecks[te]) + ); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + n.ɵɵinject(d.qm), + n.ɵɵinject(w, 8), + n.ɵɵinject(m.DOCUMENT) + ); + }), + (Ne.ɵmod = n.ɵɵdefineNgModule({ type: Ne })), + (Ne.ɵinj = n.ɵɵdefineInjector({ imports: [[f.vT], f.vT] })), + Ne + ); + })(); + function ie(Ne) { + return class extends Ne { + constructor(...Se) { + super(...Se), (this._disabled = !1); + } + get disabled() { + return this._disabled; + } + set disabled(Se) { + this._disabled = (0, u.Ig)(Se); + } + }; + } + function Y(Ne, Se) { + return class extends Ne { + constructor(...te) { + super(...te), (this.defaultColor = Se), (this.color = Se); + } + get color() { + return this._color; + } + set color(te) { + const re = te || this.defaultColor; + re !== this._color && + (this._color && + this._elementRef.nativeElement.classList.remove( + `mat-${this._color}` + ), + re && this._elementRef.nativeElement.classList.add(`mat-${re}`), + (this._color = re)); + } + }; + } + function Z(Ne) { + return class extends Ne { + constructor(...Se) { + super(...Se), (this._disableRipple = !1); + } + get disableRipple() { + return this._disableRipple; + } + set disableRipple(Se) { + this._disableRipple = (0, u.Ig)(Se); + } + }; + } + function ee(Ne, Se = 0) { + return class extends Ne { + constructor(...te) { + super(...te), (this._tabIndex = Se), (this.defaultTabIndex = Se); + } + get tabIndex() { + return this.disabled ? -1 : this._tabIndex; + } + set tabIndex(te) { + this._tabIndex = null != te ? (0, u.su)(te) : this.defaultTabIndex; + } + }; + } + function $(Ne) { + return class extends Ne { + constructor(...Se) { + super(...Se), + (this.stateChanges = new h.xQ()), + (this.errorState = !1); + } + updateErrorState() { + const Se = this.errorState, + ze = ( + this.errorStateMatcher || this._defaultErrorStateMatcher + ).isErrorState( + this.ngControl ? this.ngControl.control : null, + this._parentFormGroup || this._parentForm + ); + ze !== Se && ((this.errorState = ze), this.stateChanges.next()); + } + }; + } + function J(Ne) { + return class extends Ne { + constructor(...Se) { + super(...Se), + (this._isInitialized = !1), + (this._pendingSubscribers = []), + (this.initialized = new r.y((te) => { + this._isInitialized + ? this._notifySubscriber(te) + : this._pendingSubscribers.push(te); + })); + } + _markInitialized() { + (this._isInitialized = !0), + this._pendingSubscribers.forEach(this._notifySubscriber), + (this._pendingSubscribers = null); + } + _notifySubscriber(Se) { + Se.next(), Se.complete(); + } + }; + } + const ne = new n.InjectionToken("MAT_DATE_LOCALE", { + providedIn: "root", + factory: ae, + }); + function ae() { + return (0, n.inject)(n.LOCALE_ID); + } + class le { + constructor() { + (this._localeChanges = new h.xQ()), + (this.localeChanges = this._localeChanges); + } + getValidDateOrNull(Se) { + return this.isDateInstance(Se) && this.isValid(Se) ? Se : null; + } + deserialize(Se) { + return null == Se || (this.isDateInstance(Se) && this.isValid(Se)) + ? Se + : this.invalid(); + } + setLocale(Se) { + (this.locale = Se), this._localeChanges.next(); + } + compareDate(Se, te) { + return ( + this.getYear(Se) - this.getYear(te) || + this.getMonth(Se) - this.getMonth(te) || + this.getDate(Se) - this.getDate(te) + ); + } + sameDate(Se, te) { + if (Se && te) { + let re = this.isValid(Se), + Me = this.isValid(te); + return re && Me ? !this.compareDate(Se, te) : re == Me; + } + return Se == te; + } + clampDate(Se, te, re) { + return te && this.compareDate(Se, te) < 0 + ? te + : re && this.compareDate(Se, re) > 0 + ? re + : Se; + } + } + const Oe = new n.InjectionToken("mat-date-formats"), + Le = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/; + function Ye(Ne, Se) { + const te = Array(Ne); + for (let re = 0; re < Ne; re++) te[re] = Se(re); + return te; + } + let Je = (() => { + class Ne extends le { + constructor(te, re) { + super(), (this.useUtcForDisplay = !1), super.setLocale(te); + } + getYear(te) { + return te.getFullYear(); + } + getMonth(te) { + return te.getMonth(); + } + getDate(te) { + return te.getDate(); + } + getDayOfWeek(te) { + return te.getDay(); + } + getMonthNames(te) { + const re = new Intl.DateTimeFormat(this.locale, { + month: te, + timeZone: "utc", + }); + return Ye(12, (Me) => this._format(re, new Date(2017, Me, 1))); + } + getDateNames() { + const te = new Intl.DateTimeFormat(this.locale, { + day: "numeric", + timeZone: "utc", + }); + return Ye(31, (re) => this._format(te, new Date(2017, 0, re + 1))); + } + getDayOfWeekNames(te) { + const re = new Intl.DateTimeFormat(this.locale, { + weekday: te, + timeZone: "utc", + }); + return Ye(7, (Me) => this._format(re, new Date(2017, 0, Me + 1))); + } + getYearName(te) { + const re = new Intl.DateTimeFormat(this.locale, { + year: "numeric", + timeZone: "utc", + }); + return this._format(re, te); + } + getFirstDayOfWeek() { + return 0; + } + getNumDaysInMonth(te) { + return this.getDate( + this._createDateWithOverflow( + this.getYear(te), + this.getMonth(te) + 1, + 0 + ) + ); + } + clone(te) { + return new Date(te.getTime()); + } + createDate(te, re, Me) { + let ze = this._createDateWithOverflow(te, re, Me); + return ze.getMonth(), ze; + } + today() { + return new Date(); + } + parse(te) { + return "number" == typeof te + ? new Date(te) + : te + ? new Date(Date.parse(te)) + : null; + } + format(te, re) { + if (!this.isValid(te)) + throw Error("NativeDateAdapter: Cannot format invalid date."); + const Me = new Intl.DateTimeFormat( + this.locale, + Object.assign(Object.assign({}, re), { timeZone: "utc" }) + ); + return this._format(Me, te); + } + addCalendarYears(te, re) { + return this.addCalendarMonths(te, 12 * re); + } + addCalendarMonths(te, re) { + let Me = this._createDateWithOverflow( + this.getYear(te), + this.getMonth(te) + re, + this.getDate(te) + ); + return ( + this.getMonth(Me) != + (((this.getMonth(te) + re) % 12) + 12) % 12 && + (Me = this._createDateWithOverflow( + this.getYear(Me), + this.getMonth(Me), + 0 + )), + Me + ); + } + addCalendarDays(te, re) { + return this._createDateWithOverflow( + this.getYear(te), + this.getMonth(te), + this.getDate(te) + re + ); + } + toIso8601(te) { + return [ + te.getUTCFullYear(), + this._2digit(te.getUTCMonth() + 1), + this._2digit(te.getUTCDate()), + ].join("-"); + } + deserialize(te) { + if ("string" == typeof te) { + if (!te) return null; + if (Le.test(te)) { + let re = new Date(te); + if (this.isValid(re)) return re; + } + } + return super.deserialize(te); + } + isDateInstance(te) { + return te instanceof Date; + } + isValid(te) { + return !isNaN(te.getTime()); + } + invalid() { + return new Date(NaN); + } + _createDateWithOverflow(te, re, Me) { + const ze = new Date(); + return ze.setFullYear(te, re, Me), ze.setHours(0, 0, 0, 0), ze; + } + _2digit(te) { + return ("00" + te).slice(-2); + } + _format(te, re) { + const Me = new Date(); + return ( + Me.setUTCFullYear(re.getFullYear(), re.getMonth(), re.getDate()), + Me.setUTCHours( + re.getHours(), + re.getMinutes(), + re.getSeconds(), + re.getMilliseconds() + ), + te.format(Me) + ); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(n.ɵɵinject(ne, 8), n.ɵɵinject(s.t4)); + }), + (Ne.ɵprov = n.ɵɵdefineInjectable({ token: Ne, factory: Ne.ɵfac })), + Ne + ); + })(); + const gt = { + parse: { dateInput: null }, + display: { + dateInput: { year: "numeric", month: "numeric", day: "numeric" }, + monthYearLabel: { year: "numeric", month: "short" }, + dateA11yLabel: { year: "numeric", month: "long", day: "numeric" }, + monthYearA11yLabel: { year: "numeric", month: "long" }, + }, + }; + let Ue = (() => { + class Ne {} + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵmod = n.ɵɵdefineNgModule({ type: Ne })), + (Ne.ɵinj = n.ɵɵdefineInjector({ + providers: [{ provide: le, useClass: Je }], + imports: [[s.ud]], + })), + Ne + ); + })(), + tt = (() => { + class Ne {} + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵmod = n.ɵɵdefineNgModule({ type: Ne })), + (Ne.ɵinj = n.ɵɵdefineInjector({ + providers: [{ provide: Oe, useValue: gt }], + imports: [[Ue]], + })), + Ne + ); + })(), + at = (() => { + class Ne { + isErrorState(te, re) { + return !!(te && te.invalid && (te.dirty || (re && re.submitted))); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵprov = n.ɵɵdefineInjectable({ token: Ne, factory: Ne.ɵfac })), + Ne + ); + })(), + ft = (() => { + class Ne { + isErrorState(te, re) { + return !!( + te && + te.invalid && + (te.touched || (re && re.submitted)) + ); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵprov = n.ɵɵdefineInjectable({ + token: Ne, + factory: Ne.ɵfac, + providedIn: "root", + })), + Ne + ); + })(), + vt = (() => { + class Ne {} + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵdir = n.ɵɵdefineDirective({ + type: Ne, + selectors: [ + ["", "mat-line", ""], + ["", "matLine", ""], + ], + hostAttrs: [1, "mat-line"], + })), + Ne + ); + })(); + function yt(Ne, Se, te = "mat") { + Ne.changes.pipe((0, o.O)(Ne)).subscribe(({ length: re }) => { + ot(Se, `${te}-2-line`, !1), + ot(Se, `${te}-3-line`, !1), + ot(Se, `${te}-multi-line`, !1), + 2 === re || 3 === re + ? ot(Se, `${te}-${re}-line`, !0) + : re > 3 && ot(Se, `${te}-multi-line`, !0); + }); + } + function ot(Ne, Se, te) { + Ne.nativeElement.classList.toggle(Se, te); + } + let _t = (() => { + class Ne {} + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵmod = n.ɵɵdefineNgModule({ type: Ne })), + (Ne.ɵinj = n.ɵɵdefineInjector({ imports: [[I], I] })), + Ne + ); + })(); + class At { + constructor(Se, te, re) { + (this._renderer = Se), + (this.element = te), + (this.config = re), + (this.state = 3); + } + fadeOut() { + this._renderer.fadeOutRipple(this); + } + } + const Tt = { enterDuration: 225, exitDuration: 150 }, + Et = (0, s.i$)({ passive: !0 }), + Ee = ["mousedown", "touchstart"], + fe = ["mouseup", "mouseleave", "touchend", "touchcancel"]; + class H { + constructor(Se, te, re, Me) { + (this._target = Se), + (this._ngZone = te), + (this._isPointerDown = !1), + (this._activeRipples = new Set()), + (this._pointerUpEventsRegistered = !1), + Me.isBrowser && (this._containerElement = (0, u.fI)(re)); + } + fadeInRipple(Se, te, re = {}) { + const Me = (this._containerRect = + this._containerRect || + this._containerElement.getBoundingClientRect()), + ze = Object.assign(Object.assign({}, Tt), re.animation); + re.centered && + ((Se = Me.left + Me.width / 2), (te = Me.top + Me.height / 2)); + const It = + re.radius || + (function (Ne, Se, te) { + const re = Math.max( + Math.abs(Ne - te.left), + Math.abs(Ne - te.right) + ), + Me = Math.max( + Math.abs(Se - te.top), + Math.abs(Se - te.bottom) + ); + return Math.sqrt(re * re + Me * Me); + })(Se, te, Me), + Qt = Se - Me.left, + cn = te - Me.top, + An = ze.enterDuration, + lt = document.createElement("div"); + lt.classList.add("mat-ripple-element"), + (lt.style.left = Qt - It + "px"), + (lt.style.top = cn - It + "px"), + (lt.style.height = 2 * It + "px"), + (lt.style.width = 2 * It + "px"), + null != re.color && (lt.style.backgroundColor = re.color), + (lt.style.transitionDuration = `${An}ms`), + this._containerElement.appendChild(lt), + window.getComputedStyle(lt).getPropertyValue("opacity"), + (lt.style.transform = "scale(1)"); + const ct = new At(this, lt, re); + return ( + (ct.state = 0), + this._activeRipples.add(ct), + re.persistent || (this._mostRecentTransientRipple = ct), + this._runTimeoutOutsideZone(() => { + const He = ct === this._mostRecentTransientRipple; + (ct.state = 1), + !re.persistent && (!He || !this._isPointerDown) && ct.fadeOut(); + }, An), + ct + ); + } + fadeOutRipple(Se) { + const te = this._activeRipples.delete(Se); + if ( + (Se === this._mostRecentTransientRipple && + (this._mostRecentTransientRipple = null), + this._activeRipples.size || (this._containerRect = null), + !te) + ) + return; + const re = Se.element, + Me = Object.assign(Object.assign({}, Tt), Se.config.animation); + (re.style.transitionDuration = `${Me.exitDuration}ms`), + (re.style.opacity = "0"), + (Se.state = 2), + this._runTimeoutOutsideZone(() => { + (Se.state = 3), re.remove(); + }, Me.exitDuration); + } + fadeOutAll() { + this._activeRipples.forEach((Se) => Se.fadeOut()); + } + fadeOutAllNonPersistent() { + this._activeRipples.forEach((Se) => { + Se.config.persistent || Se.fadeOut(); + }); + } + setupTriggerEvents(Se) { + const te = (0, u.fI)(Se); + !te || + te === this._triggerElement || + (this._removeTriggerEvents(), + (this._triggerElement = te), + this._registerEvents(Ee)); + } + handleEvent(Se) { + "mousedown" === Se.type + ? this._onMousedown(Se) + : "touchstart" === Se.type + ? this._onTouchStart(Se) + : this._onPointerUp(), + this._pointerUpEventsRegistered || + (this._registerEvents(fe), + (this._pointerUpEventsRegistered = !0)); + } + _onMousedown(Se) { + const te = (0, d.X6)(Se), + re = + this._lastTouchStartEvent && + Date.now() < this._lastTouchStartEvent + 800; + !this._target.rippleDisabled && + !te && + !re && + ((this._isPointerDown = !0), + this.fadeInRipple( + Se.clientX, + Se.clientY, + this._target.rippleConfig + )); + } + _onTouchStart(Se) { + if (!this._target.rippleDisabled && !(0, d.yG)(Se)) { + (this._lastTouchStartEvent = Date.now()), + (this._isPointerDown = !0); + const te = Se.changedTouches; + for (let re = 0; re < te.length; re++) + this.fadeInRipple( + te[re].clientX, + te[re].clientY, + this._target.rippleConfig + ); + } + } + _onPointerUp() { + !this._isPointerDown || + ((this._isPointerDown = !1), + this._activeRipples.forEach((Se) => { + !Se.config.persistent && + (1 === Se.state || + (Se.config.terminateOnPointerUp && 0 === Se.state)) && + Se.fadeOut(); + })); + } + _runTimeoutOutsideZone(Se, te = 0) { + this._ngZone.runOutsideAngular(() => setTimeout(Se, te)); + } + _registerEvents(Se) { + this._ngZone.runOutsideAngular(() => { + Se.forEach((te) => { + this._triggerElement.addEventListener(te, this, Et); + }); + }); + } + _removeTriggerEvents() { + this._triggerElement && + (Ee.forEach((Se) => { + this._triggerElement.removeEventListener(Se, this, Et); + }), + this._pointerUpEventsRegistered && + fe.forEach((Se) => { + this._triggerElement.removeEventListener(Se, this, Et); + })); + } + } + const X = new n.InjectionToken("mat-ripple-global-options"); + let _e = (() => { + class Ne { + constructor(te, re, Me, ze, It) { + (this._elementRef = te), + (this._animationMode = It), + (this.radius = 0), + (this._disabled = !1), + (this._isInitialized = !1), + (this._globalOptions = ze || {}), + (this._rippleRenderer = new H(this, re, te, Me)); + } + get disabled() { + return this._disabled; + } + set disabled(te) { + te && this.fadeOutAllNonPersistent(), + (this._disabled = te), + this._setupTriggerEventsIfEnabled(); + } + get trigger() { + return this._trigger || this._elementRef.nativeElement; + } + set trigger(te) { + (this._trigger = te), this._setupTriggerEventsIfEnabled(); + } + ngOnInit() { + (this._isInitialized = !0), this._setupTriggerEventsIfEnabled(); + } + ngOnDestroy() { + this._rippleRenderer._removeTriggerEvents(); + } + fadeOutAll() { + this._rippleRenderer.fadeOutAll(); + } + fadeOutAllNonPersistent() { + this._rippleRenderer.fadeOutAllNonPersistent(); + } + get rippleConfig() { + return { + centered: this.centered, + radius: this.radius, + color: this.color, + animation: Object.assign( + Object.assign( + Object.assign({}, this._globalOptions.animation), + "NoopAnimations" === this._animationMode + ? { enterDuration: 0, exitDuration: 0 } + : {} + ), + this.animation + ), + terminateOnPointerUp: this._globalOptions.terminateOnPointerUp, + }; + } + get rippleDisabled() { + return this.disabled || !!this._globalOptions.disabled; + } + _setupTriggerEventsIfEnabled() { + !this.disabled && + this._isInitialized && + this._rippleRenderer.setupTriggerEvents(this.trigger); + } + launch(te, re = 0, Me) { + return "number" == typeof te + ? this._rippleRenderer.fadeInRipple( + te, + re, + Object.assign(Object.assign({}, this.rippleConfig), Me) + ) + : this._rippleRenderer.fadeInRipple( + 0, + 0, + Object.assign(Object.assign({}, this.rippleConfig), te) + ); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(n.NgZone), + n.ɵɵdirectiveInject(s.t4), + n.ɵɵdirectiveInject(X, 8), + n.ɵɵdirectiveInject(i.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵdir = n.ɵɵdefineDirective({ + type: Ne, + selectors: [ + ["", "mat-ripple", ""], + ["", "matRipple", ""], + ], + hostAttrs: [1, "mat-ripple"], + hostVars: 2, + hostBindings: function (te, re) { + 2 & te && n.ɵɵclassProp("mat-ripple-unbounded", re.unbounded); + }, + inputs: { + color: ["matRippleColor", "color"], + unbounded: ["matRippleUnbounded", "unbounded"], + centered: ["matRippleCentered", "centered"], + radius: ["matRippleRadius", "radius"], + animation: ["matRippleAnimation", "animation"], + disabled: ["matRippleDisabled", "disabled"], + trigger: ["matRippleTrigger", "trigger"], + }, + exportAs: ["matRipple"], + })), + Ne + ); + })(), + Be = (() => { + class Ne {} + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵmod = n.ɵɵdefineNgModule({ type: Ne })), + (Ne.ɵinj = n.ɵɵdefineInjector({ imports: [[I, s.ud], I] })), + Ne + ); + })(), + $e = (() => { + class Ne { + constructor(te) { + (this._animationMode = te), + (this.state = "unchecked"), + (this.disabled = !1); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + n.ɵɵdirectiveInject(i.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵcmp = n.ɵɵdefineComponent({ + type: Ne, + selectors: [["mat-pseudo-checkbox"]], + hostAttrs: [1, "mat-pseudo-checkbox"], + hostVars: 8, + hostBindings: function (te, re) { + 2 & te && + n.ɵɵclassProp( + "mat-pseudo-checkbox-indeterminate", + "indeterminate" === re.state + )("mat-pseudo-checkbox-checked", "checked" === re.state)( + "mat-pseudo-checkbox-disabled", + re.disabled + )( + "_mat-animation-noopable", + "NoopAnimations" === re._animationMode + ); + }, + inputs: { state: "state", disabled: "disabled" }, + decls: 0, + vars: 0, + template: function (te, re) {}, + styles: [ + '.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n', + ], + encapsulation: 2, + changeDetection: 0, + })), + Ne + ); + })(), + st = (() => { + class Ne {} + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵmod = n.ɵɵdefineNgModule({ type: Ne })), + (Ne.ɵinj = n.ɵɵdefineInjector({ imports: [[I]] })), + Ne + ); + })(); + const ut = new n.InjectionToken("MAT_OPTION_PARENT_COMPONENT"), + St = ie(class {}); + let Xt = 0, + tn = (() => { + class Ne extends St { + constructor(te) { + var re; + super(), + (this._labelId = "mat-optgroup-label-" + Xt++), + (this._inert = + null !== (re = null == te ? void 0 : te.inertGroups) && + void 0 !== re && + re); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(n.ɵɵdirectiveInject(ut, 8)); + }), + (Ne.ɵdir = n.ɵɵdefineDirective({ + type: Ne, + inputs: { label: "label" }, + features: [n.ɵɵInheritDefinitionFeature], + })), + Ne + ); + })(); + const Dt = new n.InjectionToken("MatOptgroup"); + let Kt = (() => { + class Ne extends tn {} + return ( + (Ne.ɵfac = (function () { + let Se; + return function (re) { + return (Se || (Se = n.ɵɵgetInheritedFactory(Ne)))(re || Ne); + }; + })()), + (Ne.ɵcmp = n.ɵɵdefineComponent({ + type: Ne, + selectors: [["mat-optgroup"]], + hostAttrs: [1, "mat-optgroup"], + hostVars: 5, + hostBindings: function (te, re) { + 2 & te && + (n.ɵɵattribute("role", re._inert ? null : "group")( + "aria-disabled", + re._inert ? null : re.disabled.toString() + )("aria-labelledby", re._inert ? null : re._labelId), + n.ɵɵclassProp("mat-optgroup-disabled", re.disabled)); + }, + inputs: { disabled: "disabled" }, + exportAs: ["matOptgroup"], + features: [ + n.ɵɵProvidersFeature([{ provide: Dt, useExisting: Ne }]), + n.ɵɵInheritDefinitionFeature, + ], + ngContentSelectors: g, + decls: 4, + vars: 2, + consts: [ + ["aria-hidden", "true", 1, "mat-optgroup-label", 3, "id"], + ], + template: function (te, re) { + 1 & te && + (n.ɵɵprojectionDef(l), + n.ɵɵelementStart(0, "span", 0), + n.ɵɵtext(1), + n.ɵɵprojection(2), + n.ɵɵelementEnd(), + n.ɵɵprojection(3, 1)), + 2 & te && + (n.ɵɵproperty("id", re._labelId), + n.ɵɵadvance(1), + n.ɵɵtextInterpolate1("", re.label, " ")); + }, + styles: [ + ".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + Ne + ); + })(), + et = 0; + class xt { + constructor(Se, te = !1) { + (this.source = Se), (this.isUserInput = te); + } + } + let Lt = (() => { + class Ne { + constructor(te, re, Me, ze) { + (this._element = te), + (this._changeDetectorRef = re), + (this._parent = Me), + (this.group = ze), + (this._selected = !1), + (this._active = !1), + (this._disabled = !1), + (this._mostRecentViewValue = ""), + (this.id = "mat-option-" + et++), + (this.onSelectionChange = new n.EventEmitter()), + (this._stateChanges = new h.xQ()); + } + get multiple() { + return this._parent && this._parent.multiple; + } + get selected() { + return this._selected; + } + get disabled() { + return (this.group && this.group.disabled) || this._disabled; + } + set disabled(te) { + this._disabled = (0, u.Ig)(te); + } + get disableRipple() { + return !(!this._parent || !this._parent.disableRipple); + } + get active() { + return this._active; + } + get viewValue() { + return (this._getHostElement().textContent || "").trim(); + } + select() { + this._selected || + ((this._selected = !0), + this._changeDetectorRef.markForCheck(), + this._emitSelectionChangeEvent()); + } + deselect() { + this._selected && + ((this._selected = !1), + this._changeDetectorRef.markForCheck(), + this._emitSelectionChangeEvent()); + } + focus(te, re) { + const Me = this._getHostElement(); + "function" == typeof Me.focus && Me.focus(re); + } + setActiveStyles() { + this._active || + ((this._active = !0), this._changeDetectorRef.markForCheck()); + } + setInactiveStyles() { + this._active && + ((this._active = !1), this._changeDetectorRef.markForCheck()); + } + getLabel() { + return this.viewValue; + } + _handleKeydown(te) { + (te.keyCode === c.K5 || te.keyCode === c.L_) && + !(0, c.Vb)(te) && + (this._selectViaInteraction(), te.preventDefault()); + } + _selectViaInteraction() { + this.disabled || + ((this._selected = !this.multiple || !this._selected), + this._changeDetectorRef.markForCheck(), + this._emitSelectionChangeEvent(!0)); + } + _getAriaSelected() { + return this.selected || (!this.multiple && null); + } + _getTabIndex() { + return this.disabled ? "-1" : "0"; + } + _getHostElement() { + return this._element.nativeElement; + } + ngAfterViewChecked() { + if (this._selected) { + const te = this.viewValue; + te !== this._mostRecentViewValue && + ((this._mostRecentViewValue = te), this._stateChanges.next()); + } + } + ngOnDestroy() { + this._stateChanges.complete(); + } + _emitSelectionChangeEvent(te = !1) { + this.onSelectionChange.emit(new xt(this, te)); + } + } + return ( + (Ne.ɵfac = function (te) { + n.ɵɵinvalidFactory(); + }), + (Ne.ɵdir = n.ɵɵdefineDirective({ + type: Ne, + inputs: { value: "value", id: "id", disabled: "disabled" }, + outputs: { onSelectionChange: "onSelectionChange" }, + })), + Ne + ); + })(), + Qe = (() => { + class Ne extends Lt { + constructor(te, re, Me, ze) { + super(te, re, Me, ze); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(n.ChangeDetectorRef), + n.ɵɵdirectiveInject(ut, 8), + n.ɵɵdirectiveInject(Dt, 8) + ); + }), + (Ne.ɵcmp = n.ɵɵdefineComponent({ + type: Ne, + selectors: [["mat-option"]], + hostAttrs: [ + "role", + "option", + 1, + "mat-option", + "mat-focus-indicator", + ], + hostVars: 12, + hostBindings: function (te, re) { + 1 & te && + n.ɵɵlistener("click", function () { + return re._selectViaInteraction(); + })("keydown", function (ze) { + return re._handleKeydown(ze); + }), + 2 & te && + (n.ɵɵhostProperty("id", re.id), + n.ɵɵattribute("tabindex", re._getTabIndex())( + "aria-selected", + re._getAriaSelected() + )("aria-disabled", re.disabled.toString()), + n.ɵɵclassProp("mat-selected", re.selected)( + "mat-option-multiple", + re.multiple + )("mat-active", re.active)( + "mat-option-disabled", + re.disabled + )); + }, + exportAs: ["matOption"], + features: [n.ɵɵInheritDefinitionFeature], + ngContentSelectors: x, + decls: 5, + vars: 4, + consts: [ + [ + "class", + "mat-option-pseudo-checkbox", + 3, + "state", + "disabled", + 4, + "ngIf", + ], + [1, "mat-option-text"], + ["class", "cdk-visually-hidden", 4, "ngIf"], + [ + "mat-ripple", + "", + 1, + "mat-option-ripple", + 3, + "matRippleTrigger", + "matRippleDisabled", + ], + [1, "mat-option-pseudo-checkbox", 3, "state", "disabled"], + [1, "cdk-visually-hidden"], + ], + template: function (te, re) { + 1 & te && + (n.ɵɵprojectionDef(), + n.ɵɵtemplate(0, b, 1, 2, "mat-pseudo-checkbox", 0), + n.ɵɵelementStart(1, "span", 1), + n.ɵɵprojection(2), + n.ɵɵelementEnd(), + n.ɵɵtemplate(3, y, 2, 1, "span", 2), + n.ɵɵelement(4, "div", 3)), + 2 & te && + (n.ɵɵproperty("ngIf", re.multiple), + n.ɵɵadvance(3), + n.ɵɵproperty("ngIf", re.group && re.group._inert), + n.ɵɵadvance(1), + n.ɵɵproperty("matRippleTrigger", re._getHostElement())( + "matRippleDisabled", + re.disabled || re.disableRipple + )); + }, + directives: [m.NgIf, _e, $e], + styles: [ + ".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + Ne + ); + })(); + function mt(Ne, Se, te) { + if (te.length) { + let re = Se.toArray(), + Me = te.toArray(), + ze = 0; + for (let It = 0; It < Ne + 1; It++) + re[It].group && re[It].group === Me[ze] && ze++; + return ze; + } + return 0; + } + function Vt(Ne, Se, te, re) { + return Ne < te + ? Ne + : Ne + Se > te + re + ? Math.max(0, Ne - re + Se) + : te; + } + let qt = (() => { + class Ne {} + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵmod = n.ɵɵdefineNgModule({ type: Ne })), + (Ne.ɵinj = n.ɵɵdefineInjector({ + imports: [[Be, m.CommonModule, I, st]], + })), + Ne + ); + })(); + }, + 4703: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + DateRange: () => At, + DefaultMatCalendarRangeStrategy: () => X, + MAT_DATEPICKER_SCROLL_STRATEGY: () => Se, + MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY: () => te, + MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER: () => re, + MAT_DATEPICKER_VALIDATORS: () => He, + MAT_DATEPICKER_VALUE_ACCESSOR: () => ct, + MAT_DATE_RANGE_SELECTION_STRATEGY: () => U, + MAT_RANGE_DATE_SELECTION_MODEL_FACTORY: () => H, + MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER: () => D, + MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY: () => Ee, + MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER: () => fe, + MatCalendar: () => Vt, + MatCalendarBody: () => ft, + MatCalendarCell: () => at, + MatCalendarHeader: () => mt, + MatDateRangeInput: () => Ti, + MatDateRangePicker: () => qn, + MatDateSelectionModel: () => Tt, + MatDatepicker: () => Qt, + MatDatepickerActions: () => xe, + MatDatepickerApply: () => Vi, + MatDatepickerCancel: () => ci, + MatDatepickerContent: () => ze, + MatDatepickerInput: () => pt, + MatDatepickerInputEvent: () => cn, + MatDatepickerIntl: () => Lt, + MatDatepickerModule: () => Ze, + MatDatepickerToggle: () => un, + MatDatepickerToggleIcon: () => Ot, + MatEndDate: () => Oi, + MatMonthView: () => st, + MatMultiYearView: () => Xt, + MatRangeDateSelectionModel: () => Et, + MatSingleDateSelectionModel: () => Bt, + MatStartDate: () => ji, + MatYearView: () => xt, + matDatepickerAnimations: () => qt, + yearsPerPage: () => ut, + yearsPerRow: () => St, + }); + var n = p(5664), + f = p(1314), + _ = p(7429), + m = p(9808), + s = p(5e3), + d = p(7423), + u = p(9071), + h = p(508), + r = p(8929), + o = p(2654), + i = p(6787), + c = p(1086), + l = p(1159), + g = p(2986), + b = p(1059), + y = p(2198), + x = p(226), + T = p(3191), + O = p(925), + M = p(1777), + A = p(3075), + S = p(7322), + w = p(7531); + const I = ["mat-calendar-body", ""]; + function C(ue, Re) { + if ( + (1 & ue && + (s.ɵɵelementStart(0, "tr", 2), + s.ɵɵelementStart(1, "td", 3), + s.ɵɵtext(2), + s.ɵɵelementEnd(), + s.ɵɵelementEnd()), + 2 & ue) + ) { + const B = s.ɵɵnextContext(); + s.ɵɵadvance(1), + s.ɵɵstyleProp("padding-top", B._cellPadding)( + "padding-bottom", + B._cellPadding + ), + s.ɵɵattribute("colspan", B.numCols), + s.ɵɵadvance(1), + s.ɵɵtextInterpolate1(" ", B.label, " "); + } + } + function L(ue, Re) { + if ( + (1 & ue && + (s.ɵɵelementStart(0, "td", 3), s.ɵɵtext(1), s.ɵɵelementEnd()), + 2 & ue) + ) { + const B = s.ɵɵnextContext(2); + s.ɵɵstyleProp("padding-top", B._cellPadding)( + "padding-bottom", + B._cellPadding + ), + s.ɵɵattribute("colspan", B._firstRowOffset), + s.ɵɵadvance(1), + s.ɵɵtextInterpolate1( + " ", + B._firstRowOffset >= B.labelMinRequiredCells ? B.label : "", + " " + ); + } + } + function F(ue, Re) { + if (1 & ue) { + const B = s.ɵɵgetCurrentView(); + s.ɵɵelementStart(0, "td", 7), + s.ɵɵlistener("click", function (Pe) { + const Wt = s.ɵɵrestoreView(B).$implicit; + return s.ɵɵnextContext(2)._cellClicked(Wt, Pe); + }), + s.ɵɵelementStart(1, "div", 8), + s.ɵɵtext(2), + s.ɵɵelementEnd(), + s.ɵɵelement(3, "div", 9), + s.ɵɵelementEnd(); + } + if (2 & ue) { + const B = Re.$implicit, + de = Re.index, + Pe = s.ɵɵnextContext().index, + Xe = s.ɵɵnextContext(); + s.ɵɵstyleProp("width", Xe._cellWidth)("padding-top", Xe._cellPadding)( + "padding-bottom", + Xe._cellPadding + ), + s.ɵɵclassProp("mat-calendar-body-disabled", !B.enabled)( + "mat-calendar-body-active", + Xe._isActiveCell(Pe, de) + )( + "mat-calendar-body-range-start", + Xe._isRangeStart(B.compareValue) + )("mat-calendar-body-range-end", Xe._isRangeEnd(B.compareValue))( + "mat-calendar-body-in-range", + Xe._isInRange(B.compareValue) + )( + "mat-calendar-body-comparison-bridge-start", + Xe._isComparisonBridgeStart(B.compareValue, Pe, de) + )( + "mat-calendar-body-comparison-bridge-end", + Xe._isComparisonBridgeEnd(B.compareValue, Pe, de) + )( + "mat-calendar-body-comparison-start", + Xe._isComparisonStart(B.compareValue) + )( + "mat-calendar-body-comparison-end", + Xe._isComparisonEnd(B.compareValue) + )( + "mat-calendar-body-in-comparison-range", + Xe._isInComparisonRange(B.compareValue) + )( + "mat-calendar-body-preview-start", + Xe._isPreviewStart(B.compareValue) + )( + "mat-calendar-body-preview-end", + Xe._isPreviewEnd(B.compareValue) + )("mat-calendar-body-in-preview", Xe._isInPreview(B.compareValue)), + s.ɵɵproperty("ngClass", B.cssClasses)( + "tabindex", + Xe._isActiveCell(Pe, de) ? 0 : -1 + ), + s.ɵɵattribute("data-mat-row", Pe)("data-mat-col", de)( + "aria-label", + B.ariaLabel + )("aria-disabled", !B.enabled || null)( + "aria-selected", + Xe._isSelected(B.compareValue) + )("aria-current", Xe.todayValue === B.compareValue ? "date" : null), + s.ɵɵadvance(1), + s.ɵɵclassProp( + "mat-calendar-body-selected", + Xe._isSelected(B.compareValue) + )( + "mat-calendar-body-comparison-identical", + Xe._isComparisonIdentical(B.compareValue) + )("mat-calendar-body-today", Xe.todayValue === B.compareValue), + s.ɵɵadvance(1), + s.ɵɵtextInterpolate1(" ", B.displayValue, " "); + } + } + function ie(ue, Re) { + if ( + (1 & ue && + (s.ɵɵelementStart(0, "tr", 4), + s.ɵɵtemplate(1, L, 2, 6, "td", 5), + s.ɵɵtemplate(2, F, 4, 47, "td", 6), + s.ɵɵelementEnd()), + 2 & ue) + ) { + const B = Re.$implicit, + de = Re.index, + Pe = s.ɵɵnextContext(); + s.ɵɵadvance(1), + s.ɵɵproperty("ngIf", 0 === de && Pe._firstRowOffset), + s.ɵɵadvance(1), + s.ɵɵproperty("ngForOf", B); + } + } + function Y(ue, Re) { + if ( + (1 & ue && + (s.ɵɵelementStart(0, "th", 5), + s.ɵɵelementStart(1, "abbr", 6), + s.ɵɵtext(2), + s.ɵɵelementEnd(), + s.ɵɵelementEnd()), + 2 & ue) + ) { + const B = Re.$implicit; + s.ɵɵattribute("aria-label", B.long), + s.ɵɵadvance(1), + s.ɵɵattribute("title", B.long), + s.ɵɵadvance(1), + s.ɵɵtextInterpolate(B.narrow); + } + } + const Z = ["*"]; + function ee(ue, Re) {} + function $(ue, Re) { + if (1 & ue) { + const B = s.ɵɵgetCurrentView(); + s.ɵɵelementStart(0, "mat-month-view", 5), + s.ɵɵlistener("activeDateChange", function (Pe) { + return s.ɵɵrestoreView(B), (s.ɵɵnextContext().activeDate = Pe); + })("_userSelection", function (Pe) { + return s.ɵɵrestoreView(B), s.ɵɵnextContext()._dateSelected(Pe); + }), + s.ɵɵelementEnd(); + } + if (2 & ue) { + const B = s.ɵɵnextContext(); + s.ɵɵproperty("activeDate", B.activeDate)("selected", B.selected)( + "dateFilter", + B.dateFilter + )("maxDate", B.maxDate)("minDate", B.minDate)( + "dateClass", + B.dateClass + )("comparisonStart", B.comparisonStart)( + "comparisonEnd", + B.comparisonEnd + ); + } + } + function J(ue, Re) { + if (1 & ue) { + const B = s.ɵɵgetCurrentView(); + s.ɵɵelementStart(0, "mat-year-view", 6), + s.ɵɵlistener("activeDateChange", function (Pe) { + return s.ɵɵrestoreView(B), (s.ɵɵnextContext().activeDate = Pe); + })("monthSelected", function (Pe) { + return ( + s.ɵɵrestoreView(B), + s.ɵɵnextContext()._monthSelectedInYearView(Pe) + ); + })("selectedChange", function (Pe) { + return ( + s.ɵɵrestoreView(B), + s.ɵɵnextContext()._goToDateInView(Pe, "month") + ); + }), + s.ɵɵelementEnd(); + } + if (2 & ue) { + const B = s.ɵɵnextContext(); + s.ɵɵproperty("activeDate", B.activeDate)("selected", B.selected)( + "dateFilter", + B.dateFilter + )("maxDate", B.maxDate)("minDate", B.minDate)( + "dateClass", + B.dateClass + ); + } + } + function ne(ue, Re) { + if (1 & ue) { + const B = s.ɵɵgetCurrentView(); + s.ɵɵelementStart(0, "mat-multi-year-view", 7), + s.ɵɵlistener("activeDateChange", function (Pe) { + return s.ɵɵrestoreView(B), (s.ɵɵnextContext().activeDate = Pe); + })("yearSelected", function (Pe) { + return ( + s.ɵɵrestoreView(B), + s.ɵɵnextContext()._yearSelectedInMultiYearView(Pe) + ); + })("selectedChange", function (Pe) { + return ( + s.ɵɵrestoreView(B), + s.ɵɵnextContext()._goToDateInView(Pe, "year") + ); + }), + s.ɵɵelementEnd(); + } + if (2 & ue) { + const B = s.ɵɵnextContext(); + s.ɵɵproperty("activeDate", B.activeDate)("selected", B.selected)( + "dateFilter", + B.dateFilter + )("maxDate", B.maxDate)("minDate", B.minDate)( + "dateClass", + B.dateClass + ); + } + } + function ae(ue, Re) {} + const le = ["button"]; + function Oe(ue, Re) { + 1 & ue && + (s.ɵɵnamespaceSVG(), + s.ɵɵelementStart(0, "svg", 3), + s.ɵɵelement(1, "path", 4), + s.ɵɵelementEnd()); + } + const Le = [[["", "matDatepickerToggleIcon", ""]]], + Ye = ["[matDatepickerToggleIcon]"], + Je = [[["input", "matStartDate", ""]], [["input", "matEndDate", ""]]], + gt = ["input[matStartDate]", "input[matEndDate]"]; + function Ue(ue, Re) { + 1 & ue && + (s.ɵɵelementStart(0, "div", 0), s.ɵɵprojection(1), s.ɵɵelementEnd()); + } + class at { + constructor(Re, B, de, Pe, Xe = {}, Wt = Re, Ft) { + (this.value = Re), + (this.displayValue = B), + (this.ariaLabel = de), + (this.enabled = Pe), + (this.cssClasses = Xe), + (this.compareValue = Wt), + (this.rawValue = Ft); + } + } + let ft = (() => { + class ue { + constructor(B, de) { + (this._elementRef = B), + (this._ngZone = de), + (this.numCols = 7), + (this.activeCell = 0), + (this.isRange = !1), + (this.cellAspectRatio = 1), + (this.previewStart = null), + (this.previewEnd = null), + (this.selectedValueChange = new s.EventEmitter()), + (this.previewChange = new s.EventEmitter()), + (this._enterHandler = (Pe) => { + if (this._skipNextFocus && "focus" === Pe.type) + this._skipNextFocus = !1; + else if (Pe.target && this.isRange) { + const Xe = this._getCellFromElement(Pe.target); + Xe && + this._ngZone.run(() => + this.previewChange.emit({ + value: Xe.enabled ? Xe : null, + event: Pe, + }) + ); + } + }), + (this._leaveHandler = (Pe) => { + null !== this.previewEnd && + this.isRange && + Pe.target && + vt(Pe.target) && + this._ngZone.run(() => + this.previewChange.emit({ value: null, event: Pe }) + ); + }), + de.runOutsideAngular(() => { + const Pe = B.nativeElement; + Pe.addEventListener("mouseenter", this._enterHandler, !0), + Pe.addEventListener("focus", this._enterHandler, !0), + Pe.addEventListener("mouseleave", this._leaveHandler, !0), + Pe.addEventListener("blur", this._leaveHandler, !0); + }); + } + _cellClicked(B, de) { + B.enabled && + this.selectedValueChange.emit({ value: B.value, event: de }); + } + _isSelected(B) { + return this.startValue === B || this.endValue === B; + } + ngOnChanges(B) { + const de = B.numCols, + { rows: Pe, numCols: Xe } = this; + (B.rows || de) && + (this._firstRowOffset = + Pe && Pe.length && Pe[0].length ? Xe - Pe[0].length : 0), + (B.cellAspectRatio || de || !this._cellPadding) && + (this._cellPadding = (50 * this.cellAspectRatio) / Xe + "%"), + (de || !this._cellWidth) && (this._cellWidth = 100 / Xe + "%"); + } + ngOnDestroy() { + const B = this._elementRef.nativeElement; + B.removeEventListener("mouseenter", this._enterHandler, !0), + B.removeEventListener("focus", this._enterHandler, !0), + B.removeEventListener("mouseleave", this._leaveHandler, !0), + B.removeEventListener("blur", this._leaveHandler, !0); + } + _isActiveCell(B, de) { + let Pe = B * this.numCols + de; + return B && (Pe -= this._firstRowOffset), Pe == this.activeCell; + } + _focusActiveCell(B = !0) { + this._ngZone.runOutsideAngular(() => { + this._ngZone.onStable.pipe((0, g.q)(1)).subscribe(() => { + const de = this._elementRef.nativeElement.querySelector( + ".mat-calendar-body-active" + ); + de && (B || (this._skipNextFocus = !0), de.focus()); + }); + }); + } + _isRangeStart(B) { + return yt(B, this.startValue, this.endValue); + } + _isRangeEnd(B) { + return ot(B, this.startValue, this.endValue); + } + _isInRange(B) { + return _t(B, this.startValue, this.endValue, this.isRange); + } + _isComparisonStart(B) { + return yt(B, this.comparisonStart, this.comparisonEnd); + } + _isComparisonBridgeStart(B, de, Pe) { + if ( + !this._isComparisonStart(B) || + this._isRangeStart(B) || + !this._isInRange(B) + ) + return !1; + let Xe = this.rows[de][Pe - 1]; + if (!Xe) { + const Wt = this.rows[de - 1]; + Xe = Wt && Wt[Wt.length - 1]; + } + return Xe && !this._isRangeEnd(Xe.compareValue); + } + _isComparisonBridgeEnd(B, de, Pe) { + if ( + !this._isComparisonEnd(B) || + this._isRangeEnd(B) || + !this._isInRange(B) + ) + return !1; + let Xe = this.rows[de][Pe + 1]; + if (!Xe) { + const Wt = this.rows[de + 1]; + Xe = Wt && Wt[0]; + } + return Xe && !this._isRangeStart(Xe.compareValue); + } + _isComparisonEnd(B) { + return ot(B, this.comparisonStart, this.comparisonEnd); + } + _isInComparisonRange(B) { + return _t( + B, + this.comparisonStart, + this.comparisonEnd, + this.isRange + ); + } + _isComparisonIdentical(B) { + return ( + this.comparisonStart === this.comparisonEnd && + B === this.comparisonStart + ); + } + _isPreviewStart(B) { + return yt(B, this.previewStart, this.previewEnd); + } + _isPreviewEnd(B) { + return ot(B, this.previewStart, this.previewEnd); + } + _isInPreview(B) { + return _t(B, this.previewStart, this.previewEnd, this.isRange); + } + _getCellFromElement(B) { + let de; + if ( + (vt(B) ? (de = B) : vt(B.parentNode) && (de = B.parentNode), de) + ) { + const Pe = de.getAttribute("data-mat-row"), + Xe = de.getAttribute("data-mat-col"); + if (Pe && Xe) return this.rows[parseInt(Pe)][parseInt(Xe)]; + } + return null; + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(s.NgZone) + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["", "mat-calendar-body", ""]], + hostAttrs: [1, "mat-calendar-body"], + inputs: { + label: "label", + rows: "rows", + todayValue: "todayValue", + startValue: "startValue", + endValue: "endValue", + labelMinRequiredCells: "labelMinRequiredCells", + numCols: "numCols", + activeCell: "activeCell", + isRange: "isRange", + cellAspectRatio: "cellAspectRatio", + comparisonStart: "comparisonStart", + comparisonEnd: "comparisonEnd", + previewStart: "previewStart", + previewEnd: "previewEnd", + }, + outputs: { + selectedValueChange: "selectedValueChange", + previewChange: "previewChange", + }, + exportAs: ["matCalendarBody"], + features: [s.ɵɵNgOnChangesFeature], + attrs: I, + decls: 2, + vars: 2, + consts: [ + ["aria-hidden", "true", 4, "ngIf"], + ["role", "row", 4, "ngFor", "ngForOf"], + ["aria-hidden", "true"], + [1, "mat-calendar-body-label"], + ["role", "row"], + [ + "class", + "mat-calendar-body-label", + 3, + "paddingTop", + "paddingBottom", + 4, + "ngIf", + ], + [ + "role", + "gridcell", + "class", + "mat-calendar-body-cell", + 3, + "ngClass", + "tabindex", + "mat-calendar-body-disabled", + "mat-calendar-body-active", + "mat-calendar-body-range-start", + "mat-calendar-body-range-end", + "mat-calendar-body-in-range", + "mat-calendar-body-comparison-bridge-start", + "mat-calendar-body-comparison-bridge-end", + "mat-calendar-body-comparison-start", + "mat-calendar-body-comparison-end", + "mat-calendar-body-in-comparison-range", + "mat-calendar-body-preview-start", + "mat-calendar-body-preview-end", + "mat-calendar-body-in-preview", + "width", + "paddingTop", + "paddingBottom", + "click", + 4, + "ngFor", + "ngForOf", + ], + [ + "role", + "gridcell", + 1, + "mat-calendar-body-cell", + 3, + "ngClass", + "tabindex", + "click", + ], + [1, "mat-calendar-body-cell-content", "mat-focus-indicator"], + [1, "mat-calendar-body-cell-preview"], + ], + template: function (B, de) { + 1 & B && + (s.ɵɵtemplate(0, C, 3, 6, "tr", 0), + s.ɵɵtemplate(1, ie, 3, 2, "tr", 1)), + 2 & B && + (s.ɵɵproperty( + "ngIf", + de._firstRowOffset < de.labelMinRequiredCells + ), + s.ɵɵadvance(1), + s.ɵɵproperty("ngForOf", de.rows)); + }, + directives: [m.NgIf, m.NgForOf, m.NgClass], + styles: [ + '.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n', + ], + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(); + function vt(ue) { + return "TD" === ue.nodeName; + } + function yt(ue, Re, B) { + return null !== B && Re !== B && ue < B && ue === Re; + } + function ot(ue, Re, B) { + return null !== Re && Re !== B && ue >= Re && ue === B; + } + function _t(ue, Re, B, de) { + return ( + de && null !== Re && null !== B && Re !== B && ue >= Re && ue <= B + ); + } + class At { + constructor(Re, B) { + (this.start = Re), (this.end = B); + } + } + let Tt = (() => { + class ue { + constructor(B, de) { + (this.selection = B), + (this._adapter = de), + (this._selectionChanged = new r.xQ()), + (this.selectionChanged = this._selectionChanged), + (this.selection = B); + } + updateSelection(B, de) { + const Pe = this.selection; + (this.selection = B), + this._selectionChanged.next({ + selection: B, + source: de, + oldValue: Pe, + }); + } + ngOnDestroy() { + this._selectionChanged.complete(); + } + _isValidDateInstance(B) { + return ( + this._adapter.isDateInstance(B) && this._adapter.isValid(B) + ); + } + } + return ( + (ue.ɵfac = function (B) { + s.ɵɵinvalidFactory(); + }), + (ue.ɵprov = s.ɵɵdefineInjectable({ token: ue, factory: ue.ɵfac })), + ue + ); + })(), + Bt = (() => { + class ue extends Tt { + constructor(B) { + super(null, B); + } + add(B) { + super.updateSelection(B, this); + } + isValid() { + return ( + null != this.selection && + this._isValidDateInstance(this.selection) + ); + } + isComplete() { + return null != this.selection; + } + clone() { + const B = new ue(this._adapter); + return B.updateSelection(this.selection, this), B; + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)(s.ɵɵinject(h.DateAdapter)); + }), + (ue.ɵprov = s.ɵɵdefineInjectable({ token: ue, factory: ue.ɵfac })), + ue + ); + })(), + Et = (() => { + class ue extends Tt { + constructor(B) { + super(new At(null, null), B); + } + add(B) { + let { start: de, end: Pe } = this.selection; + null == de + ? (de = B) + : null == Pe + ? (Pe = B) + : ((de = B), (Pe = null)), + super.updateSelection(new At(de, Pe), this); + } + isValid() { + const { start: B, end: de } = this.selection; + return ( + (null == B && null == de) || + (null != B && null != de + ? this._isValidDateInstance(B) && + this._isValidDateInstance(de) && + this._adapter.compareDate(B, de) <= 0 + : (null == B || this._isValidDateInstance(B)) && + (null == de || this._isValidDateInstance(de))) + ); + } + isComplete() { + return null != this.selection.start && null != this.selection.end; + } + clone() { + const B = new ue(this._adapter); + return B.updateSelection(this.selection, this), B; + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)(s.ɵɵinject(h.DateAdapter)); + }), + (ue.ɵprov = s.ɵɵdefineInjectable({ token: ue, factory: ue.ɵfac })), + ue + ); + })(); + function Ee(ue, Re) { + return ue || new Bt(Re); + } + const fe = { + provide: Tt, + deps: [[new s.Optional(), new s.SkipSelf(), Tt], h.DateAdapter], + useFactory: Ee, + }; + function H(ue, Re) { + return ue || new Et(Re); + } + const D = { + provide: Tt, + deps: [[new s.Optional(), new s.SkipSelf(), Tt], h.DateAdapter], + useFactory: H, + }, + U = new s.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY"); + let X = (() => { + class ue { + constructor(B) { + this._dateAdapter = B; + } + selectionFinished(B, de) { + let { start: Pe, end: Xe } = de; + return ( + null == Pe + ? (Pe = B) + : null == Xe && B && this._dateAdapter.compareDate(B, Pe) >= 0 + ? (Xe = B) + : ((Pe = B), (Xe = null)), + new At(Pe, Xe) + ); + } + createPreview(B, de) { + let Pe = null, + Xe = null; + return ( + de.start && !de.end && B && ((Pe = de.start), (Xe = B)), + new At(Pe, Xe) + ); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)(s.ɵɵinject(h.DateAdapter)); + }), + (ue.ɵprov = s.ɵɵdefineInjectable({ token: ue, factory: ue.ɵfac })), + ue + ); + })(); + const Be = { + provide: U, + deps: [[new s.Optional(), new s.SkipSelf(), U], h.DateAdapter], + useFactory: function (ue, Re) { + return ue || new X(Re); + }, + }; + let st = (() => { + class ue { + constructor(B, de, Pe, Xe, Wt) { + (this._changeDetectorRef = B), + (this._dateFormats = de), + (this._dateAdapter = Pe), + (this._dir = Xe), + (this._rangeStrategy = Wt), + (this._rerenderSubscription = o.w.EMPTY), + (this.selectedChange = new s.EventEmitter()), + (this._userSelection = new s.EventEmitter()), + (this.activeDateChange = new s.EventEmitter()), + (this._activeDate = this._dateAdapter.today()); + } + get activeDate() { + return this._activeDate; + } + set activeDate(B) { + const de = this._activeDate, + Pe = + this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ) || this._dateAdapter.today(); + (this._activeDate = this._dateAdapter.clampDate( + Pe, + this.minDate, + this.maxDate + )), + this._hasSameMonthAndYear(de, this._activeDate) || this._init(); + } + get selected() { + return this._selected; + } + set selected(B) { + (this._selected = + B instanceof At + ? B + : this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + )), + this._setRanges(this._selected); + } + get minDate() { + return this._minDate; + } + set minDate(B) { + this._minDate = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + get maxDate() { + return this._maxDate; + } + set maxDate(B) { + this._maxDate = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + ngAfterContentInit() { + this._rerenderSubscription = this._dateAdapter.localeChanges + .pipe((0, b.O)(null)) + .subscribe(() => this._init()); + } + ngOnChanges(B) { + const de = B.comparisonStart || B.comparisonEnd; + de && !de.firstChange && this._setRanges(this.selected); + } + ngOnDestroy() { + this._rerenderSubscription.unsubscribe(); + } + _dateSelected(B) { + const de = B.value, + Pe = this._dateAdapter.getYear(this.activeDate), + Xe = this._dateAdapter.getMonth(this.activeDate), + Wt = this._dateAdapter.createDate(Pe, Xe, de); + let Ft, Ht; + this._selected instanceof At + ? ((Ft = this._getDateInCurrentMonth(this._selected.start)), + (Ht = this._getDateInCurrentMonth(this._selected.end))) + : (Ft = Ht = this._getDateInCurrentMonth(this._selected)), + (Ft !== de || Ht !== de) && this.selectedChange.emit(Wt), + this._userSelection.emit({ value: Wt, event: B.event }), + (this._previewStart = this._previewEnd = null), + this._changeDetectorRef.markForCheck(); + } + _handleCalendarBodyKeydown(B) { + const de = this._activeDate, + Pe = this._isRtl(); + switch (B.keyCode) { + case l.oh: + this.activeDate = this._dateAdapter.addCalendarDays( + this._activeDate, + Pe ? 1 : -1 + ); + break; + case l.SV: + this.activeDate = this._dateAdapter.addCalendarDays( + this._activeDate, + Pe ? -1 : 1 + ); + break; + case l.LH: + this.activeDate = this._dateAdapter.addCalendarDays( + this._activeDate, + -7 + ); + break; + case l.JH: + this.activeDate = this._dateAdapter.addCalendarDays( + this._activeDate, + 7 + ); + break; + case l.Sd: + this.activeDate = this._dateAdapter.addCalendarDays( + this._activeDate, + 1 - this._dateAdapter.getDate(this._activeDate) + ); + break; + case l.uR: + this.activeDate = this._dateAdapter.addCalendarDays( + this._activeDate, + this._dateAdapter.getNumDaysInMonth(this._activeDate) - + this._dateAdapter.getDate(this._activeDate) + ); + break; + case l.Ku: + this.activeDate = B.altKey + ? this._dateAdapter.addCalendarYears(this._activeDate, -1) + : this._dateAdapter.addCalendarMonths(this._activeDate, -1); + break; + case l.VM: + this.activeDate = B.altKey + ? this._dateAdapter.addCalendarYears(this._activeDate, 1) + : this._dateAdapter.addCalendarMonths(this._activeDate, 1); + break; + case l.K5: + case l.L_: + return ( + (this._selectionKeyPressed = !0), + void (this._canSelect(this._activeDate) && B.preventDefault()) + ); + case l.hY: + return void ( + null != this._previewEnd && + !(0, l.Vb)(B) && + ((this._previewStart = this._previewEnd = null), + this.selectedChange.emit(null), + this._userSelection.emit({ value: null, event: B }), + B.preventDefault(), + B.stopPropagation()) + ); + default: + return; + } + this._dateAdapter.compareDate(de, this.activeDate) && + this.activeDateChange.emit(this.activeDate), + this._focusActiveCell(), + B.preventDefault(); + } + _handleCalendarBodyKeyup(B) { + (B.keyCode === l.L_ || B.keyCode === l.K5) && + (this._selectionKeyPressed && + this._canSelect(this._activeDate) && + this._dateSelected({ + value: this._dateAdapter.getDate(this._activeDate), + event: B, + }), + (this._selectionKeyPressed = !1)); + } + _init() { + this._setRanges(this.selected), + (this._todayDate = this._getCellCompareValue( + this._dateAdapter.today() + )), + (this._monthLabel = this._dateFormats.display.monthLabel + ? this._dateAdapter.format( + this.activeDate, + this._dateFormats.display.monthLabel + ) + : this._dateAdapter + .getMonthNames("short") + [ + this._dateAdapter.getMonth(this.activeDate) + ].toLocaleUpperCase()); + let B = this._dateAdapter.createDate( + this._dateAdapter.getYear(this.activeDate), + this._dateAdapter.getMonth(this.activeDate), + 1 + ); + (this._firstWeekOffset = + (7 + + this._dateAdapter.getDayOfWeek(B) - + this._dateAdapter.getFirstDayOfWeek()) % + 7), + this._initWeekdays(), + this._createWeekCells(), + this._changeDetectorRef.markForCheck(); + } + _focusActiveCell(B) { + this._matCalendarBody._focusActiveCell(B); + } + _previewChanged({ event: B, value: de }) { + if (this._rangeStrategy) { + const Xe = this._rangeStrategy.createPreview( + de ? de.rawValue : null, + this.selected, + B + ); + (this._previewStart = this._getCellCompareValue(Xe.start)), + (this._previewEnd = this._getCellCompareValue(Xe.end)), + this._changeDetectorRef.detectChanges(); + } + } + _initWeekdays() { + const B = this._dateAdapter.getFirstDayOfWeek(), + de = this._dateAdapter.getDayOfWeekNames("narrow"); + let Xe = this._dateAdapter + .getDayOfWeekNames("long") + .map((Wt, Ft) => ({ long: Wt, narrow: de[Ft] })); + this._weekdays = Xe.slice(B).concat(Xe.slice(0, B)); + } + _createWeekCells() { + const B = this._dateAdapter.getNumDaysInMonth(this.activeDate), + de = this._dateAdapter.getDateNames(); + this._weeks = [[]]; + for (let Pe = 0, Xe = this._firstWeekOffset; Pe < B; Pe++, Xe++) { + 7 == Xe && (this._weeks.push([]), (Xe = 0)); + const Wt = this._dateAdapter.createDate( + this._dateAdapter.getYear(this.activeDate), + this._dateAdapter.getMonth(this.activeDate), + Pe + 1 + ), + Ft = this._shouldEnableDate(Wt), + Ht = this._dateAdapter.format( + Wt, + this._dateFormats.display.dateA11yLabel + ), + Zt = this.dateClass ? this.dateClass(Wt, "month") : void 0; + this._weeks[this._weeks.length - 1].push( + new at( + Pe + 1, + de[Pe], + Ht, + Ft, + Zt, + this._getCellCompareValue(Wt), + Wt + ) + ); + } + } + _shouldEnableDate(B) { + return ( + !!B && + (!this.minDate || + this._dateAdapter.compareDate(B, this.minDate) >= 0) && + (!this.maxDate || + this._dateAdapter.compareDate(B, this.maxDate) <= 0) && + (!this.dateFilter || this.dateFilter(B)) + ); + } + _getDateInCurrentMonth(B) { + return B && this._hasSameMonthAndYear(B, this.activeDate) + ? this._dateAdapter.getDate(B) + : null; + } + _hasSameMonthAndYear(B, de) { + return !( + !B || + !de || + this._dateAdapter.getMonth(B) != this._dateAdapter.getMonth(de) || + this._dateAdapter.getYear(B) != this._dateAdapter.getYear(de) + ); + } + _getCellCompareValue(B) { + if (B) { + const de = this._dateAdapter.getYear(B), + Pe = this._dateAdapter.getMonth(B), + Xe = this._dateAdapter.getDate(B); + return new Date(de, Pe, Xe).getTime(); + } + return null; + } + _isRtl() { + return this._dir && "rtl" === this._dir.value; + } + _setRanges(B) { + B instanceof At + ? ((this._rangeStart = this._getCellCompareValue(B.start)), + (this._rangeEnd = this._getCellCompareValue(B.end)), + (this._isRange = !0)) + : ((this._rangeStart = this._rangeEnd = this._getCellCompareValue( + B + )), + (this._isRange = !1)), + (this._comparisonRangeStart = this._getCellCompareValue( + this.comparisonStart + )), + (this._comparisonRangeEnd = this._getCellCompareValue( + this.comparisonEnd + )); + } + _canSelect(B) { + return !this.dateFilter || this.dateFilter(B); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(h.MAT_DATE_FORMATS, 8), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(x.Is, 8), + s.ɵɵdirectiveInject(U, 8) + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-month-view"]], + viewQuery: function (B, de) { + if ((1 & B && s.ɵɵviewQuery(ft, 5), 2 & B)) { + let Pe; + s.ɵɵqueryRefresh((Pe = s.ɵɵloadQuery())) && + (de._matCalendarBody = Pe.first); + } + }, + inputs: { + activeDate: "activeDate", + selected: "selected", + minDate: "minDate", + maxDate: "maxDate", + dateFilter: "dateFilter", + dateClass: "dateClass", + comparisonStart: "comparisonStart", + comparisonEnd: "comparisonEnd", + }, + outputs: { + selectedChange: "selectedChange", + _userSelection: "_userSelection", + activeDateChange: "activeDateChange", + }, + exportAs: ["matMonthView"], + features: [s.ɵɵNgOnChangesFeature], + decls: 7, + vars: 13, + consts: [ + ["role", "grid", 1, "mat-calendar-table"], + [1, "mat-calendar-table-header"], + ["scope", "col", 4, "ngFor", "ngForOf"], + [ + "aria-hidden", + "true", + "colspan", + "7", + 1, + "mat-calendar-table-header-divider", + ], + [ + "mat-calendar-body", + "", + 3, + "label", + "rows", + "todayValue", + "startValue", + "endValue", + "comparisonStart", + "comparisonEnd", + "previewStart", + "previewEnd", + "isRange", + "labelMinRequiredCells", + "activeCell", + "selectedValueChange", + "previewChange", + "keyup", + "keydown", + ], + ["scope", "col"], + [1, "mat-calendar-abbr"], + ], + template: function (B, de) { + 1 & B && + (s.ɵɵelementStart(0, "table", 0), + s.ɵɵelementStart(1, "thead", 1), + s.ɵɵelementStart(2, "tr"), + s.ɵɵtemplate(3, Y, 3, 3, "th", 2), + s.ɵɵelementEnd(), + s.ɵɵelementStart(4, "tr"), + s.ɵɵelement(5, "th", 3), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵelementStart(6, "tbody", 4), + s.ɵɵlistener("selectedValueChange", function (Xe) { + return de._dateSelected(Xe); + })("previewChange", function (Xe) { + return de._previewChanged(Xe); + })("keyup", function (Xe) { + return de._handleCalendarBodyKeyup(Xe); + })("keydown", function (Xe) { + return de._handleCalendarBodyKeydown(Xe); + }), + s.ɵɵelementEnd(), + s.ɵɵelementEnd()), + 2 & B && + (s.ɵɵadvance(3), + s.ɵɵproperty("ngForOf", de._weekdays), + s.ɵɵadvance(3), + s.ɵɵproperty("label", de._monthLabel)("rows", de._weeks)( + "todayValue", + de._todayDate + )("startValue", de._rangeStart)("endValue", de._rangeEnd)( + "comparisonStart", + de._comparisonRangeStart + )("comparisonEnd", de._comparisonRangeEnd)( + "previewStart", + de._previewStart + )("previewEnd", de._previewEnd)("isRange", de._isRange)( + "labelMinRequiredCells", + 3 + )("activeCell", de._dateAdapter.getDate(de.activeDate) - 1)); + }, + directives: [m.NgForOf, ft], + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(); + const ut = 24, + St = 4; + let Xt = (() => { + class ue { + constructor(B, de, Pe) { + (this._changeDetectorRef = B), + (this._dateAdapter = de), + (this._dir = Pe), + (this._rerenderSubscription = o.w.EMPTY), + (this.selectedChange = new s.EventEmitter()), + (this.yearSelected = new s.EventEmitter()), + (this.activeDateChange = new s.EventEmitter()), + (this._activeDate = this._dateAdapter.today()); + } + get activeDate() { + return this._activeDate; + } + set activeDate(B) { + let de = this._activeDate; + const Pe = + this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ) || this._dateAdapter.today(); + (this._activeDate = this._dateAdapter.clampDate( + Pe, + this.minDate, + this.maxDate + )), + tn( + this._dateAdapter, + de, + this._activeDate, + this.minDate, + this.maxDate + ) || this._init(); + } + get selected() { + return this._selected; + } + set selected(B) { + (this._selected = + B instanceof At + ? B + : this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + )), + this._setSelectedYear(B); + } + get minDate() { + return this._minDate; + } + set minDate(B) { + this._minDate = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + get maxDate() { + return this._maxDate; + } + set maxDate(B) { + this._maxDate = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + ngAfterContentInit() { + this._rerenderSubscription = this._dateAdapter.localeChanges + .pipe((0, b.O)(null)) + .subscribe(() => this._init()); + } + ngOnDestroy() { + this._rerenderSubscription.unsubscribe(); + } + _init() { + this._todayYear = this._dateAdapter.getYear( + this._dateAdapter.today() + ); + const de = + this._dateAdapter.getYear(this._activeDate) - + Dt( + this._dateAdapter, + this.activeDate, + this.minDate, + this.maxDate + ); + this._years = []; + for (let Pe = 0, Xe = []; Pe < ut; Pe++) + Xe.push(de + Pe), + Xe.length == St && + (this._years.push( + Xe.map((Wt) => this._createCellForYear(Wt)) + ), + (Xe = [])); + this._changeDetectorRef.markForCheck(); + } + _yearSelected(B) { + const de = B.value; + this.yearSelected.emit(this._dateAdapter.createDate(de, 0, 1)); + let Pe = this._dateAdapter.getMonth(this.activeDate), + Xe = this._dateAdapter.getNumDaysInMonth( + this._dateAdapter.createDate(de, Pe, 1) + ); + this.selectedChange.emit( + this._dateAdapter.createDate( + de, + Pe, + Math.min(this._dateAdapter.getDate(this.activeDate), Xe) + ) + ); + } + _handleCalendarBodyKeydown(B) { + const de = this._activeDate, + Pe = this._isRtl(); + switch (B.keyCode) { + case l.oh: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + Pe ? 1 : -1 + ); + break; + case l.SV: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + Pe ? -1 : 1 + ); + break; + case l.LH: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + -St + ); + break; + case l.JH: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + St + ); + break; + case l.Sd: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + -Dt( + this._dateAdapter, + this.activeDate, + this.minDate, + this.maxDate + ) + ); + break; + case l.uR: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + ut - + Dt( + this._dateAdapter, + this.activeDate, + this.minDate, + this.maxDate + ) - + 1 + ); + break; + case l.Ku: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + B.altKey ? 10 * -ut : -ut + ); + break; + case l.VM: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + B.altKey ? 10 * ut : ut + ); + break; + case l.K5: + case l.L_: + this._selectionKeyPressed = !0; + break; + default: + return; + } + this._dateAdapter.compareDate(de, this.activeDate) && + this.activeDateChange.emit(this.activeDate), + this._focusActiveCell(), + B.preventDefault(); + } + _handleCalendarBodyKeyup(B) { + (B.keyCode === l.L_ || B.keyCode === l.K5) && + (this._selectionKeyPressed && + this._yearSelected({ + value: this._dateAdapter.getYear(this._activeDate), + event: B, + }), + (this._selectionKeyPressed = !1)); + } + _getActiveCell() { + return Dt( + this._dateAdapter, + this.activeDate, + this.minDate, + this.maxDate + ); + } + _focusActiveCell() { + this._matCalendarBody._focusActiveCell(); + } + _createCellForYear(B) { + const de = this._dateAdapter.createDate(B, 0, 1), + Pe = this._dateAdapter.getYearName(de), + Xe = this.dateClass ? this.dateClass(de, "multi-year") : void 0; + return new at(B, Pe, Pe, this._shouldEnableYear(B), Xe); + } + _shouldEnableYear(B) { + if ( + null == B || + (this.maxDate && B > this._dateAdapter.getYear(this.maxDate)) || + (this.minDate && B < this._dateAdapter.getYear(this.minDate)) + ) + return !1; + if (!this.dateFilter) return !0; + for ( + let Pe = this._dateAdapter.createDate(B, 0, 1); + this._dateAdapter.getYear(Pe) == B; + Pe = this._dateAdapter.addCalendarDays(Pe, 1) + ) + if (this.dateFilter(Pe)) return !0; + return !1; + } + _isRtl() { + return this._dir && "rtl" === this._dir.value; + } + _setSelectedYear(B) { + if (((this._selectedYear = null), B instanceof At)) { + const de = B.start || B.end; + de && (this._selectedYear = this._dateAdapter.getYear(de)); + } else B && (this._selectedYear = this._dateAdapter.getYear(B)); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(x.Is, 8) + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-multi-year-view"]], + viewQuery: function (B, de) { + if ((1 & B && s.ɵɵviewQuery(ft, 5), 2 & B)) { + let Pe; + s.ɵɵqueryRefresh((Pe = s.ɵɵloadQuery())) && + (de._matCalendarBody = Pe.first); + } + }, + inputs: { + activeDate: "activeDate", + selected: "selected", + minDate: "minDate", + maxDate: "maxDate", + dateFilter: "dateFilter", + dateClass: "dateClass", + }, + outputs: { + selectedChange: "selectedChange", + yearSelected: "yearSelected", + activeDateChange: "activeDateChange", + }, + exportAs: ["matMultiYearView"], + decls: 5, + vars: 7, + consts: [ + ["role", "grid", 1, "mat-calendar-table"], + ["aria-hidden", "true", 1, "mat-calendar-table-header"], + ["colspan", "4", 1, "mat-calendar-table-header-divider"], + [ + "mat-calendar-body", + "", + 3, + "rows", + "todayValue", + "startValue", + "endValue", + "numCols", + "cellAspectRatio", + "activeCell", + "selectedValueChange", + "keyup", + "keydown", + ], + ], + template: function (B, de) { + 1 & B && + (s.ɵɵelementStart(0, "table", 0), + s.ɵɵelementStart(1, "thead", 1), + s.ɵɵelementStart(2, "tr"), + s.ɵɵelement(3, "th", 2), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵelementStart(4, "tbody", 3), + s.ɵɵlistener("selectedValueChange", function (Xe) { + return de._yearSelected(Xe); + })("keyup", function (Xe) { + return de._handleCalendarBodyKeyup(Xe); + })("keydown", function (Xe) { + return de._handleCalendarBodyKeydown(Xe); + }), + s.ɵɵelementEnd(), + s.ɵɵelementEnd()), + 2 & B && + (s.ɵɵadvance(4), + s.ɵɵproperty("rows", de._years)("todayValue", de._todayYear)( + "startValue", + de._selectedYear + )("endValue", de._selectedYear)("numCols", 4)( + "cellAspectRatio", + 4 / 7 + )("activeCell", de._getActiveCell())); + }, + directives: [ft], + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(); + function tn(ue, Re, B, de, Pe) { + const Xe = ue.getYear(Re), + Wt = ue.getYear(B), + Ft = Kt(ue, de, Pe); + return Math.floor((Xe - Ft) / ut) === Math.floor((Wt - Ft) / ut); + } + function Dt(ue, Re, B, de) { + return (function (ue, Re) { + return ((ue % Re) + Re) % Re; + })(ue.getYear(Re) - Kt(ue, B, de), ut); + } + function Kt(ue, Re, B) { + let de = 0; + return ( + B ? (de = ue.getYear(B) - ut + 1) : Re && (de = ue.getYear(Re)), de + ); + } + let xt = (() => { + class ue { + constructor(B, de, Pe, Xe) { + (this._changeDetectorRef = B), + (this._dateFormats = de), + (this._dateAdapter = Pe), + (this._dir = Xe), + (this._rerenderSubscription = o.w.EMPTY), + (this.selectedChange = new s.EventEmitter()), + (this.monthSelected = new s.EventEmitter()), + (this.activeDateChange = new s.EventEmitter()), + (this._activeDate = this._dateAdapter.today()); + } + get activeDate() { + return this._activeDate; + } + set activeDate(B) { + let de = this._activeDate; + const Pe = + this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ) || this._dateAdapter.today(); + (this._activeDate = this._dateAdapter.clampDate( + Pe, + this.minDate, + this.maxDate + )), + this._dateAdapter.getYear(de) !== + this._dateAdapter.getYear(this._activeDate) && this._init(); + } + get selected() { + return this._selected; + } + set selected(B) { + (this._selected = + B instanceof At + ? B + : this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + )), + this._setSelectedMonth(B); + } + get minDate() { + return this._minDate; + } + set minDate(B) { + this._minDate = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + get maxDate() { + return this._maxDate; + } + set maxDate(B) { + this._maxDate = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + ngAfterContentInit() { + this._rerenderSubscription = this._dateAdapter.localeChanges + .pipe((0, b.O)(null)) + .subscribe(() => this._init()); + } + ngOnDestroy() { + this._rerenderSubscription.unsubscribe(); + } + _monthSelected(B) { + const de = B.value, + Pe = this._dateAdapter.createDate( + this._dateAdapter.getYear(this.activeDate), + de, + 1 + ); + this.monthSelected.emit(Pe); + const Xe = this._dateAdapter.getNumDaysInMonth(Pe); + this.selectedChange.emit( + this._dateAdapter.createDate( + this._dateAdapter.getYear(this.activeDate), + de, + Math.min(this._dateAdapter.getDate(this.activeDate), Xe) + ) + ); + } + _handleCalendarBodyKeydown(B) { + const de = this._activeDate, + Pe = this._isRtl(); + switch (B.keyCode) { + case l.oh: + this.activeDate = this._dateAdapter.addCalendarMonths( + this._activeDate, + Pe ? 1 : -1 + ); + break; + case l.SV: + this.activeDate = this._dateAdapter.addCalendarMonths( + this._activeDate, + Pe ? -1 : 1 + ); + break; + case l.LH: + this.activeDate = this._dateAdapter.addCalendarMonths( + this._activeDate, + -4 + ); + break; + case l.JH: + this.activeDate = this._dateAdapter.addCalendarMonths( + this._activeDate, + 4 + ); + break; + case l.Sd: + this.activeDate = this._dateAdapter.addCalendarMonths( + this._activeDate, + -this._dateAdapter.getMonth(this._activeDate) + ); + break; + case l.uR: + this.activeDate = this._dateAdapter.addCalendarMonths( + this._activeDate, + 11 - this._dateAdapter.getMonth(this._activeDate) + ); + break; + case l.Ku: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + B.altKey ? -10 : -1 + ); + break; + case l.VM: + this.activeDate = this._dateAdapter.addCalendarYears( + this._activeDate, + B.altKey ? 10 : 1 + ); + break; + case l.K5: + case l.L_: + this._selectionKeyPressed = !0; + break; + default: + return; + } + this._dateAdapter.compareDate(de, this.activeDate) && + this.activeDateChange.emit(this.activeDate), + this._focusActiveCell(), + B.preventDefault(); + } + _handleCalendarBodyKeyup(B) { + (B.keyCode === l.L_ || B.keyCode === l.K5) && + (this._selectionKeyPressed && + this._monthSelected({ + value: this._dateAdapter.getMonth(this._activeDate), + event: B, + }), + (this._selectionKeyPressed = !1)); + } + _init() { + this._setSelectedMonth(this.selected), + (this._todayMonth = this._getMonthInCurrentYear( + this._dateAdapter.today() + )), + (this._yearLabel = this._dateAdapter.getYearName( + this.activeDate + )); + let B = this._dateAdapter.getMonthNames("short"); + (this._months = [ + [0, 1, 2, 3], + [4, 5, 6, 7], + [8, 9, 10, 11], + ].map((de) => + de.map((Pe) => this._createCellForMonth(Pe, B[Pe])) + )), + this._changeDetectorRef.markForCheck(); + } + _focusActiveCell() { + this._matCalendarBody._focusActiveCell(); + } + _getMonthInCurrentYear(B) { + return B && + this._dateAdapter.getYear(B) == + this._dateAdapter.getYear(this.activeDate) + ? this._dateAdapter.getMonth(B) + : null; + } + _createCellForMonth(B, de) { + const Pe = this._dateAdapter.createDate( + this._dateAdapter.getYear(this.activeDate), + B, + 1 + ), + Xe = this._dateAdapter.format( + Pe, + this._dateFormats.display.monthYearA11yLabel + ), + Wt = this.dateClass ? this.dateClass(Pe, "year") : void 0; + return new at( + B, + de.toLocaleUpperCase(), + Xe, + this._shouldEnableMonth(B), + Wt + ); + } + _shouldEnableMonth(B) { + const de = this._dateAdapter.getYear(this.activeDate); + if ( + null == B || + this._isYearAndMonthAfterMaxDate(de, B) || + this._isYearAndMonthBeforeMinDate(de, B) + ) + return !1; + if (!this.dateFilter) return !0; + for ( + let Xe = this._dateAdapter.createDate(de, B, 1); + this._dateAdapter.getMonth(Xe) == B; + Xe = this._dateAdapter.addCalendarDays(Xe, 1) + ) + if (this.dateFilter(Xe)) return !0; + return !1; + } + _isYearAndMonthAfterMaxDate(B, de) { + if (this.maxDate) { + const Pe = this._dateAdapter.getYear(this.maxDate), + Xe = this._dateAdapter.getMonth(this.maxDate); + return B > Pe || (B === Pe && de > Xe); + } + return !1; + } + _isYearAndMonthBeforeMinDate(B, de) { + if (this.minDate) { + const Pe = this._dateAdapter.getYear(this.minDate), + Xe = this._dateAdapter.getMonth(this.minDate); + return B < Pe || (B === Pe && de < Xe); + } + return !1; + } + _isRtl() { + return this._dir && "rtl" === this._dir.value; + } + _setSelectedMonth(B) { + this._selectedMonth = + B instanceof At + ? this._getMonthInCurrentYear(B.start) || + this._getMonthInCurrentYear(B.end) + : this._getMonthInCurrentYear(B); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(h.MAT_DATE_FORMATS, 8), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(x.Is, 8) + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-year-view"]], + viewQuery: function (B, de) { + if ((1 & B && s.ɵɵviewQuery(ft, 5), 2 & B)) { + let Pe; + s.ɵɵqueryRefresh((Pe = s.ɵɵloadQuery())) && + (de._matCalendarBody = Pe.first); + } + }, + inputs: { + activeDate: "activeDate", + selected: "selected", + minDate: "minDate", + maxDate: "maxDate", + dateFilter: "dateFilter", + dateClass: "dateClass", + }, + outputs: { + selectedChange: "selectedChange", + monthSelected: "monthSelected", + activeDateChange: "activeDateChange", + }, + exportAs: ["matYearView"], + decls: 5, + vars: 9, + consts: [ + ["role", "grid", 1, "mat-calendar-table"], + ["aria-hidden", "true", 1, "mat-calendar-table-header"], + ["colspan", "4", 1, "mat-calendar-table-header-divider"], + [ + "mat-calendar-body", + "", + 3, + "label", + "rows", + "todayValue", + "startValue", + "endValue", + "labelMinRequiredCells", + "numCols", + "cellAspectRatio", + "activeCell", + "selectedValueChange", + "keyup", + "keydown", + ], + ], + template: function (B, de) { + 1 & B && + (s.ɵɵelementStart(0, "table", 0), + s.ɵɵelementStart(1, "thead", 1), + s.ɵɵelementStart(2, "tr"), + s.ɵɵelement(3, "th", 2), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵelementStart(4, "tbody", 3), + s.ɵɵlistener("selectedValueChange", function (Xe) { + return de._monthSelected(Xe); + })("keyup", function (Xe) { + return de._handleCalendarBodyKeyup(Xe); + })("keydown", function (Xe) { + return de._handleCalendarBodyKeydown(Xe); + }), + s.ɵɵelementEnd(), + s.ɵɵelementEnd()), + 2 & B && + (s.ɵɵadvance(4), + s.ɵɵproperty("label", de._yearLabel)("rows", de._months)( + "todayValue", + de._todayMonth + )("startValue", de._selectedMonth)( + "endValue", + de._selectedMonth + )("labelMinRequiredCells", 2)("numCols", 4)( + "cellAspectRatio", + 4 / 7 + )("activeCell", de._dateAdapter.getMonth(de.activeDate))); + }, + directives: [ft], + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(), + Lt = (() => { + class ue { + constructor() { + (this.changes = new r.xQ()), + (this.calendarLabel = "Calendar"), + (this.openCalendarLabel = "Open calendar"), + (this.closeCalendarLabel = "Close calendar"), + (this.prevMonthLabel = "Previous month"), + (this.nextMonthLabel = "Next month"), + (this.prevYearLabel = "Previous year"), + (this.nextYearLabel = "Next year"), + (this.prevMultiYearLabel = "Previous 24 years"), + (this.nextMultiYearLabel = "Next 24 years"), + (this.switchToMonthViewLabel = "Choose date"), + (this.switchToMultiYearViewLabel = "Choose month and year"); + } + formatYearRange(B, de) { + return `${B} \u2013 ${de}`; + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)(); + }), + (ue.ɵprov = s.ɵɵdefineInjectable({ + token: ue, + factory: ue.ɵfac, + providedIn: "root", + })), + ue + ); + })(), + Qe = 0, + mt = (() => { + class ue { + constructor(B, de, Pe, Xe, Wt) { + (this._intl = B), + (this.calendar = de), + (this._dateAdapter = Pe), + (this._dateFormats = Xe), + (this._buttonDescriptionId = "mat-calendar-button-" + Qe++), + this.calendar.stateChanges.subscribe(() => Wt.markForCheck()); + } + get periodButtonText() { + if ("month" == this.calendar.currentView) + return this._dateAdapter + .format( + this.calendar.activeDate, + this._dateFormats.display.monthYearLabel + ) + .toLocaleUpperCase(); + if ("year" == this.calendar.currentView) + return this._dateAdapter.getYearName(this.calendar.activeDate); + const de = + this._dateAdapter.getYear(this.calendar.activeDate) - + Dt( + this._dateAdapter, + this.calendar.activeDate, + this.calendar.minDate, + this.calendar.maxDate + ), + Pe = de + ut - 1, + Xe = this._dateAdapter.getYearName( + this._dateAdapter.createDate(de, 0, 1) + ), + Wt = this._dateAdapter.getYearName( + this._dateAdapter.createDate(Pe, 0, 1) + ); + return this._intl.formatYearRange(Xe, Wt); + } + get periodButtonLabel() { + return "month" == this.calendar.currentView + ? this._intl.switchToMultiYearViewLabel + : this._intl.switchToMonthViewLabel; + } + get prevButtonLabel() { + return { + month: this._intl.prevMonthLabel, + year: this._intl.prevYearLabel, + "multi-year": this._intl.prevMultiYearLabel, + }[this.calendar.currentView]; + } + get nextButtonLabel() { + return { + month: this._intl.nextMonthLabel, + year: this._intl.nextYearLabel, + "multi-year": this._intl.nextMultiYearLabel, + }[this.calendar.currentView]; + } + currentPeriodClicked() { + this.calendar.currentView = + "month" == this.calendar.currentView ? "multi-year" : "month"; + } + previousClicked() { + this.calendar.activeDate = + "month" == this.calendar.currentView + ? this._dateAdapter.addCalendarMonths( + this.calendar.activeDate, + -1 + ) + : this._dateAdapter.addCalendarYears( + this.calendar.activeDate, + "year" == this.calendar.currentView ? -1 : -ut + ); + } + nextClicked() { + this.calendar.activeDate = + "month" == this.calendar.currentView + ? this._dateAdapter.addCalendarMonths( + this.calendar.activeDate, + 1 + ) + : this._dateAdapter.addCalendarYears( + this.calendar.activeDate, + "year" == this.calendar.currentView ? 1 : ut + ); + } + previousEnabled() { + return ( + !this.calendar.minDate || + !this.calendar.minDate || + !this._isSameView( + this.calendar.activeDate, + this.calendar.minDate + ) + ); + } + nextEnabled() { + return ( + !this.calendar.maxDate || + !this._isSameView( + this.calendar.activeDate, + this.calendar.maxDate + ) + ); + } + _isSameView(B, de) { + return "month" == this.calendar.currentView + ? this._dateAdapter.getYear(B) == + this._dateAdapter.getYear(de) && + this._dateAdapter.getMonth(B) == + this._dateAdapter.getMonth(de) + : "year" == this.calendar.currentView + ? this._dateAdapter.getYear(B) == this._dateAdapter.getYear(de) + : tn( + this._dateAdapter, + B, + de, + this.calendar.minDate, + this.calendar.maxDate + ); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(Lt), + s.ɵɵdirectiveInject((0, s.forwardRef)(() => Vt)), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(h.MAT_DATE_FORMATS, 8), + s.ɵɵdirectiveInject(s.ChangeDetectorRef) + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-calendar-header"]], + exportAs: ["matCalendarHeader"], + ngContentSelectors: Z, + decls: 11, + vars: 10, + consts: [ + [1, "mat-calendar-header"], + [1, "mat-calendar-controls"], + [ + "mat-button", + "", + "type", + "button", + "cdkAriaLive", + "polite", + 1, + "mat-calendar-period-button", + 3, + "click", + ], + [ + "viewBox", + "0 0 10 5", + "focusable", + "false", + 1, + "mat-calendar-arrow", + ], + ["points", "0,0 5,5 10,0"], + [1, "mat-calendar-spacer"], + [ + "mat-icon-button", + "", + "type", + "button", + 1, + "mat-calendar-previous-button", + 3, + "disabled", + "click", + ], + [ + "mat-icon-button", + "", + "type", + "button", + 1, + "mat-calendar-next-button", + 3, + "disabled", + "click", + ], + ], + template: function (B, de) { + 1 & B && + (s.ɵɵprojectionDef(), + s.ɵɵelementStart(0, "div", 0), + s.ɵɵelementStart(1, "div", 1), + s.ɵɵelementStart(2, "button", 2), + s.ɵɵlistener("click", function () { + return de.currentPeriodClicked(); + }), + s.ɵɵelementStart(3, "span"), + s.ɵɵtext(4), + s.ɵɵelementEnd(), + s.ɵɵnamespaceSVG(), + s.ɵɵelementStart(5, "svg", 3), + s.ɵɵelement(6, "polygon", 4), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵnamespaceHTML(), + s.ɵɵelement(7, "div", 5), + s.ɵɵprojection(8), + s.ɵɵelementStart(9, "button", 6), + s.ɵɵlistener("click", function () { + return de.previousClicked(); + }), + s.ɵɵelementEnd(), + s.ɵɵelementStart(10, "button", 7), + s.ɵɵlistener("click", function () { + return de.nextClicked(); + }), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵelementEnd()), + 2 & B && + (s.ɵɵadvance(2), + s.ɵɵattribute("aria-label", de.periodButtonLabel)( + "aria-describedby", + de._buttonDescriptionId + ), + s.ɵɵadvance(1), + s.ɵɵattribute("id", de._buttonDescriptionId), + s.ɵɵadvance(1), + s.ɵɵtextInterpolate(de.periodButtonText), + s.ɵɵadvance(1), + s.ɵɵclassProp( + "mat-calendar-invert", + "month" !== de.calendar.currentView + ), + s.ɵɵadvance(4), + s.ɵɵproperty("disabled", !de.previousEnabled()), + s.ɵɵattribute("aria-label", de.prevButtonLabel), + s.ɵɵadvance(1), + s.ɵɵproperty("disabled", !de.nextEnabled()), + s.ɵɵattribute("aria-label", de.nextButtonLabel)); + }, + directives: [d.MatButton, n.Qr], + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(), + Vt = (() => { + class ue { + constructor(B, de, Pe, Xe) { + (this._dateAdapter = de), + (this._dateFormats = Pe), + (this._changeDetectorRef = Xe), + (this._moveFocusOnNextTick = !1), + (this.startView = "month"), + (this.selectedChange = new s.EventEmitter()), + (this.yearSelected = new s.EventEmitter()), + (this.monthSelected = new s.EventEmitter()), + (this.viewChanged = new s.EventEmitter(!0)), + (this._userSelection = new s.EventEmitter()), + (this.stateChanges = new r.xQ()), + (this._intlChanges = B.changes.subscribe(() => { + Xe.markForCheck(), this.stateChanges.next(); + })); + } + get startAt() { + return this._startAt; + } + set startAt(B) { + this._startAt = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + get selected() { + return this._selected; + } + set selected(B) { + this._selected = + B instanceof At + ? B + : this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + get minDate() { + return this._minDate; + } + set minDate(B) { + this._minDate = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + get maxDate() { + return this._maxDate; + } + set maxDate(B) { + this._maxDate = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + get activeDate() { + return this._clampedActiveDate; + } + set activeDate(B) { + (this._clampedActiveDate = this._dateAdapter.clampDate( + B, + this.minDate, + this.maxDate + )), + this.stateChanges.next(), + this._changeDetectorRef.markForCheck(); + } + get currentView() { + return this._currentView; + } + set currentView(B) { + const de = this._currentView !== B ? B : null; + (this._currentView = B), + (this._moveFocusOnNextTick = !0), + this._changeDetectorRef.markForCheck(), + de && this.viewChanged.emit(de); + } + ngAfterContentInit() { + (this._calendarHeaderPortal = new _.C5( + this.headerComponent || mt + )), + (this.activeDate = this.startAt || this._dateAdapter.today()), + (this._currentView = this.startView); + } + ngAfterViewChecked() { + this._moveFocusOnNextTick && + ((this._moveFocusOnNextTick = !1), this.focusActiveCell()); + } + ngOnDestroy() { + this._intlChanges.unsubscribe(), this.stateChanges.complete(); + } + ngOnChanges(B) { + const de = B.minDate || B.maxDate || B.dateFilter; + if (de && !de.firstChange) { + const Pe = this._getCurrentViewComponent(); + Pe && (this._changeDetectorRef.detectChanges(), Pe._init()); + } + this.stateChanges.next(); + } + focusActiveCell() { + this._getCurrentViewComponent()._focusActiveCell(!1); + } + updateTodaysDate() { + this._getCurrentViewComponent()._init(); + } + _dateSelected(B) { + const de = B.value; + (this.selected instanceof At || + (de && !this._dateAdapter.sameDate(de, this.selected))) && + this.selectedChange.emit(de), + this._userSelection.emit(B); + } + _yearSelectedInMultiYearView(B) { + this.yearSelected.emit(B); + } + _monthSelectedInYearView(B) { + this.monthSelected.emit(B); + } + _goToDateInView(B, de) { + (this.activeDate = B), (this.currentView = de); + } + _getCurrentViewComponent() { + return this.monthView || this.yearView || this.multiYearView; + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(Lt), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(h.MAT_DATE_FORMATS, 8), + s.ɵɵdirectiveInject(s.ChangeDetectorRef) + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-calendar"]], + viewQuery: function (B, de) { + if ( + (1 & B && + (s.ɵɵviewQuery(st, 5), + s.ɵɵviewQuery(xt, 5), + s.ɵɵviewQuery(Xt, 5)), + 2 & B) + ) { + let Pe; + s.ɵɵqueryRefresh((Pe = s.ɵɵloadQuery())) && + (de.monthView = Pe.first), + s.ɵɵqueryRefresh((Pe = s.ɵɵloadQuery())) && + (de.yearView = Pe.first), + s.ɵɵqueryRefresh((Pe = s.ɵɵloadQuery())) && + (de.multiYearView = Pe.first); + } + }, + hostAttrs: [1, "mat-calendar"], + inputs: { + headerComponent: "headerComponent", + startAt: "startAt", + startView: "startView", + selected: "selected", + minDate: "minDate", + maxDate: "maxDate", + dateFilter: "dateFilter", + dateClass: "dateClass", + comparisonStart: "comparisonStart", + comparisonEnd: "comparisonEnd", + }, + outputs: { + selectedChange: "selectedChange", + yearSelected: "yearSelected", + monthSelected: "monthSelected", + viewChanged: "viewChanged", + _userSelection: "_userSelection", + }, + exportAs: ["matCalendar"], + features: [s.ɵɵProvidersFeature([fe]), s.ɵɵNgOnChangesFeature], + decls: 5, + vars: 5, + consts: [ + [3, "cdkPortalOutlet"], + [ + "cdkMonitorSubtreeFocus", + "", + "tabindex", + "-1", + 1, + "mat-calendar-content", + 3, + "ngSwitch", + ], + [ + 3, + "activeDate", + "selected", + "dateFilter", + "maxDate", + "minDate", + "dateClass", + "comparisonStart", + "comparisonEnd", + "activeDateChange", + "_userSelection", + 4, + "ngSwitchCase", + ], + [ + 3, + "activeDate", + "selected", + "dateFilter", + "maxDate", + "minDate", + "dateClass", + "activeDateChange", + "monthSelected", + "selectedChange", + 4, + "ngSwitchCase", + ], + [ + 3, + "activeDate", + "selected", + "dateFilter", + "maxDate", + "minDate", + "dateClass", + "activeDateChange", + "yearSelected", + "selectedChange", + 4, + "ngSwitchCase", + ], + [ + 3, + "activeDate", + "selected", + "dateFilter", + "maxDate", + "minDate", + "dateClass", + "comparisonStart", + "comparisonEnd", + "activeDateChange", + "_userSelection", + ], + [ + 3, + "activeDate", + "selected", + "dateFilter", + "maxDate", + "minDate", + "dateClass", + "activeDateChange", + "monthSelected", + "selectedChange", + ], + [ + 3, + "activeDate", + "selected", + "dateFilter", + "maxDate", + "minDate", + "dateClass", + "activeDateChange", + "yearSelected", + "selectedChange", + ], + ], + template: function (B, de) { + 1 & B && + (s.ɵɵtemplate(0, ee, 0, 0, "ng-template", 0), + s.ɵɵelementStart(1, "div", 1), + s.ɵɵtemplate(2, $, 1, 8, "mat-month-view", 2), + s.ɵɵtemplate(3, J, 1, 6, "mat-year-view", 3), + s.ɵɵtemplate(4, ne, 1, 6, "mat-multi-year-view", 4), + s.ɵɵelementEnd()), + 2 & B && + (s.ɵɵproperty("cdkPortalOutlet", de._calendarHeaderPortal), + s.ɵɵadvance(1), + s.ɵɵproperty("ngSwitch", de.currentView), + s.ɵɵadvance(1), + s.ɵɵproperty("ngSwitchCase", "month"), + s.ɵɵadvance(1), + s.ɵɵproperty("ngSwitchCase", "year"), + s.ɵɵadvance(1), + s.ɵɵproperty("ngSwitchCase", "multi-year")); + }, + directives: [_.Pl, n.kH, m.NgSwitch, m.NgSwitchCase, st, xt, Xt], + styles: [ + '.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n', + ], + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(); + const qt = { + transformPanel: (0, M.X$)("transformPanel", [ + (0, M.eR)( + "void => enter-dropdown", + (0, M.jt)( + "120ms cubic-bezier(0, 0, 0.2, 1)", + (0, M.F4)([ + (0, M.oB)({ opacity: 0, transform: "scale(1, 0.8)" }), + (0, M.oB)({ opacity: 1, transform: "scale(1, 1)" }), + ]) + ) + ), + (0, M.eR)( + "void => enter-dialog", + (0, M.jt)( + "150ms cubic-bezier(0, 0, 0.2, 1)", + (0, M.F4)([ + (0, M.oB)({ opacity: 0, transform: "scale(0.7)" }), + (0, M.oB)({ transform: "none", opacity: 1 }), + ]) + ) + ), + (0, M.eR)( + "* => void", + (0, M.jt)("100ms linear", (0, M.oB)({ opacity: 0 })) + ), + ]), + fadeInCalendar: (0, M.X$)("fadeInCalendar", [ + (0, M.SB)("void", (0, M.oB)({ opacity: 0 })), + (0, M.SB)("enter", (0, M.oB)({ opacity: 1 })), + (0, M.eR)( + "void => *", + (0, M.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)") + ), + ]), + }; + let Ne = 0; + const Se = new s.InjectionToken("mat-datepicker-scroll-strategy"); + function te(ue) { + return () => ue.scrollStrategies.reposition(); + } + const re = { provide: Se, deps: [f.aV], useFactory: te }, + Me = (0, h.mixinColor)( + class { + constructor(ue) { + this._elementRef = ue; + } + } + ); + let ze = (() => { + class ue extends Me { + constructor(B, de, Pe, Xe, Wt, Ft) { + super(B), + (this._changeDetectorRef = de), + (this._globalModel = Pe), + (this._dateAdapter = Xe), + (this._rangeSelectionStrategy = Wt), + (this._subscriptions = new o.w()), + (this._animationDone = new r.xQ()), + (this._actionsPortal = null), + (this._closeButtonText = Ft.closeCalendarLabel); + } + ngOnInit() { + (this._model = this._actionsPortal + ? this._globalModel.clone() + : this._globalModel), + (this._animationState = this.datepicker.touchUi + ? "enter-dialog" + : "enter-dropdown"); + } + ngAfterViewInit() { + this._subscriptions.add( + this.datepicker.stateChanges.subscribe(() => { + this._changeDetectorRef.markForCheck(); + }) + ), + this._calendar.focusActiveCell(); + } + ngOnDestroy() { + this._subscriptions.unsubscribe(), this._animationDone.complete(); + } + _handleUserSelection(B) { + const de = this._model.selection, + Pe = B.value, + Xe = de instanceof At; + if (Xe && this._rangeSelectionStrategy) { + const Wt = this._rangeSelectionStrategy.selectionFinished( + Pe, + de, + B.event + ); + this._model.updateSelection(Wt, this); + } else + Pe && + (Xe || !this._dateAdapter.sameDate(Pe, de)) && + this._model.add(Pe); + (!this._model || this._model.isComplete()) && + !this._actionsPortal && + this.datepicker.close(); + } + _startExitAnimation() { + (this._animationState = "void"), + this._changeDetectorRef.markForCheck(); + } + _getSelected() { + return this._model.selection; + } + _applyPendingSelection() { + this._model !== this._globalModel && + this._globalModel.updateSelection(this._model.selection, this); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(Tt), + s.ɵɵdirectiveInject(h.DateAdapter), + s.ɵɵdirectiveInject(U, 8), + s.ɵɵdirectiveInject(Lt) + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-datepicker-content"]], + viewQuery: function (B, de) { + if ((1 & B && s.ɵɵviewQuery(Vt, 5), 2 & B)) { + let Pe; + s.ɵɵqueryRefresh((Pe = s.ɵɵloadQuery())) && + (de._calendar = Pe.first); + } + }, + hostAttrs: [1, "mat-datepicker-content"], + hostVars: 3, + hostBindings: function (B, de) { + 1 & B && + s.ɵɵsyntheticHostListener( + "@transformPanel.done", + function () { + return de._animationDone.next(); + } + ), + 2 & B && + (s.ɵɵsyntheticHostProperty( + "@transformPanel", + de._animationState + ), + s.ɵɵclassProp( + "mat-datepicker-content-touch", + de.datepicker.touchUi + )); + }, + inputs: { color: "color" }, + exportAs: ["matDatepickerContent"], + features: [s.ɵɵInheritDefinitionFeature], + decls: 5, + vars: 20, + consts: [ + ["cdkTrapFocus", "", 1, "mat-datepicker-content-container"], + [ + 3, + "id", + "ngClass", + "startAt", + "startView", + "minDate", + "maxDate", + "dateFilter", + "headerComponent", + "selected", + "dateClass", + "comparisonStart", + "comparisonEnd", + "yearSelected", + "monthSelected", + "viewChanged", + "_userSelection", + ], + [3, "cdkPortalOutlet"], + [ + "type", + "button", + "mat-raised-button", + "", + 1, + "mat-datepicker-close-button", + 3, + "color", + "focus", + "blur", + "click", + ], + ], + template: function (B, de) { + 1 & B && + (s.ɵɵelementStart(0, "div", 0), + s.ɵɵelementStart(1, "mat-calendar", 1), + s.ɵɵlistener("yearSelected", function (Xe) { + return de.datepicker._selectYear(Xe); + })("monthSelected", function (Xe) { + return de.datepicker._selectMonth(Xe); + })("viewChanged", function (Xe) { + return de.datepicker._viewChanged(Xe); + })("_userSelection", function (Xe) { + return de._handleUserSelection(Xe); + }), + s.ɵɵelementEnd(), + s.ɵɵtemplate(2, ae, 0, 0, "ng-template", 2), + s.ɵɵelementStart(3, "button", 3), + s.ɵɵlistener("focus", function () { + return (de._closeButtonFocused = !0); + })("blur", function () { + return (de._closeButtonFocused = !1); + })("click", function () { + return de.datepicker.close(); + }), + s.ɵɵtext(4), + s.ɵɵelementEnd(), + s.ɵɵelementEnd()), + 2 & B && + (s.ɵɵclassProp( + "mat-datepicker-content-container-with-actions", + de._actionsPortal + ), + s.ɵɵadvance(1), + s.ɵɵproperty("id", de.datepicker.id)( + "ngClass", + de.datepicker.panelClass + )("startAt", de.datepicker.startAt)( + "startView", + de.datepicker.startView + )("minDate", de.datepicker._getMinDate())( + "maxDate", + de.datepicker._getMaxDate() + )("dateFilter", de.datepicker._getDateFilter())( + "headerComponent", + de.datepicker.calendarHeaderComponent + )("selected", de._getSelected())( + "dateClass", + de.datepicker.dateClass + )("comparisonStart", de.comparisonStart)( + "comparisonEnd", + de.comparisonEnd + )("@fadeInCalendar", "enter"), + s.ɵɵadvance(1), + s.ɵɵproperty("cdkPortalOutlet", de._actionsPortal), + s.ɵɵadvance(1), + s.ɵɵclassProp( + "cdk-visually-hidden", + !de._closeButtonFocused + ), + s.ɵɵproperty("color", de.color || "primary"), + s.ɵɵadvance(1), + s.ɵɵtextInterpolate(de._closeButtonText)); + }, + directives: [n.mK, Vt, m.NgClass, _.Pl, d.MatButton], + styles: [ + ".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n", + ], + encapsulation: 2, + data: { animation: [qt.transformPanel, qt.fadeInCalendar] }, + changeDetection: 0, + })), + ue + ); + })(), + It = (() => { + class ue { + constructor(B, de, Pe, Xe, Wt, Ft, Ht) { + (this._overlay = B), + (this._ngZone = de), + (this._viewContainerRef = Pe), + (this._dateAdapter = Wt), + (this._dir = Ft), + (this._model = Ht), + (this._inputStateChanges = o.w.EMPTY), + (this.startView = "month"), + (this._touchUi = !1), + (this.xPosition = "start"), + (this.yPosition = "below"), + (this._restoreFocus = !0), + (this.yearSelected = new s.EventEmitter()), + (this.monthSelected = new s.EventEmitter()), + (this.viewChanged = new s.EventEmitter(!0)), + (this.openedStream = new s.EventEmitter()), + (this.closedStream = new s.EventEmitter()), + (this._opened = !1), + (this.id = "mat-datepicker-" + Ne++), + (this._focusedElementBeforeOpen = null), + (this._backdropHarnessClass = `${this.id}-backdrop`), + (this.stateChanges = new r.xQ()), + (this._scrollStrategy = Xe); + } + get startAt() { + return ( + this._startAt || + (this.datepickerInput + ? this.datepickerInput.getStartValue() + : null) + ); + } + set startAt(B) { + this._startAt = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + } + get color() { + return ( + this._color || + (this.datepickerInput + ? this.datepickerInput.getThemePalette() + : void 0) + ); + } + set color(B) { + this._color = B; + } + get touchUi() { + return this._touchUi; + } + set touchUi(B) { + this._touchUi = (0, T.Ig)(B); + } + get disabled() { + return void 0 === this._disabled && this.datepickerInput + ? this.datepickerInput.disabled + : !!this._disabled; + } + set disabled(B) { + const de = (0, T.Ig)(B); + de !== this._disabled && + ((this._disabled = de), this.stateChanges.next(void 0)); + } + get restoreFocus() { + return this._restoreFocus; + } + set restoreFocus(B) { + this._restoreFocus = (0, T.Ig)(B); + } + get panelClass() { + return this._panelClass; + } + set panelClass(B) { + this._panelClass = (0, T.du)(B); + } + get opened() { + return this._opened; + } + set opened(B) { + (0, T.Ig)(B) ? this.open() : this.close(); + } + _getMinDate() { + return this.datepickerInput && this.datepickerInput.min; + } + _getMaxDate() { + return this.datepickerInput && this.datepickerInput.max; + } + _getDateFilter() { + return this.datepickerInput && this.datepickerInput.dateFilter; + } + ngOnChanges(B) { + const de = B.xPosition || B.yPosition; + if (de && !de.firstChange && this._overlayRef) { + const Pe = this._overlayRef.getConfig().positionStrategy; + Pe instanceof f._G && + (this._setConnectedPositions(Pe), + this.opened && this._overlayRef.updatePosition()); + } + this.stateChanges.next(void 0); + } + ngOnDestroy() { + this._destroyOverlay(), + this.close(), + this._inputStateChanges.unsubscribe(), + this.stateChanges.complete(); + } + select(B) { + this._model.add(B); + } + _selectYear(B) { + this.yearSelected.emit(B); + } + _selectMonth(B) { + this.monthSelected.emit(B); + } + _viewChanged(B) { + this.viewChanged.emit(B); + } + registerInput(B) { + return ( + this._inputStateChanges.unsubscribe(), + (this.datepickerInput = B), + (this._inputStateChanges = B.stateChanges.subscribe(() => + this.stateChanges.next(void 0) + )), + this._model + ); + } + registerActions(B) { + this._actionsPortal = B; + } + removeActions(B) { + B === this._actionsPortal && (this._actionsPortal = null); + } + open() { + this._opened || + this.disabled || + ((this._focusedElementBeforeOpen = (0, O.ht)()), + this._openOverlay(), + (this._opened = !0), + this.openedStream.emit()); + } + close() { + if (!this._opened) return; + if (this._componentRef) { + const de = this._componentRef.instance; + de._startExitAnimation(), + de._animationDone + .pipe((0, g.q)(1)) + .subscribe(() => this._destroyOverlay()); + } + const B = () => { + this._opened && + ((this._opened = !1), + this.closedStream.emit(), + (this._focusedElementBeforeOpen = null)); + }; + this._restoreFocus && + this._focusedElementBeforeOpen && + "function" == typeof this._focusedElementBeforeOpen.focus + ? (this._focusedElementBeforeOpen.focus(), setTimeout(B)) + : B(); + } + _applyPendingSelection() { + var B, de; + null === + (de = + null === (B = this._componentRef) || void 0 === B + ? void 0 + : B.instance) || + void 0 === de || + de._applyPendingSelection(); + } + _forwardContentValues(B) { + (B.datepicker = this), + (B.color = this.color), + (B._actionsPortal = this._actionsPortal); + } + _openOverlay() { + this._destroyOverlay(); + const B = this.touchUi, + de = this.datepickerInput.getOverlayLabelId(), + Pe = new _.C5(ze, this._viewContainerRef), + Xe = (this._overlayRef = this._overlay.create( + new f.X_({ + positionStrategy: B + ? this._getDialogStrategy() + : this._getDropdownStrategy(), + hasBackdrop: !0, + backdropClass: [ + B + ? "cdk-overlay-dark-backdrop" + : "mat-overlay-transparent-backdrop", + this._backdropHarnessClass, + ], + direction: this._dir, + scrollStrategy: B + ? this._overlay.scrollStrategies.block() + : this._scrollStrategy(), + panelClass: "mat-datepicker-" + (B ? "dialog" : "popup"), + }) + )), + Wt = Xe.overlayElement; + Wt.setAttribute("role", "dialog"), + de && Wt.setAttribute("aria-labelledby", de), + B && Wt.setAttribute("aria-modal", "true"), + this._getCloseStream(Xe).subscribe((Ft) => { + Ft && Ft.preventDefault(), this.close(); + }), + (this._componentRef = Xe.attach(Pe)), + this._forwardContentValues(this._componentRef.instance), + B || + this._ngZone.onStable + .pipe((0, g.q)(1)) + .subscribe(() => Xe.updatePosition()); + } + _destroyOverlay() { + this._overlayRef && + (this._overlayRef.dispose(), + (this._overlayRef = this._componentRef = null)); + } + _getDialogStrategy() { + return this._overlay + .position() + .global() + .centerHorizontally() + .centerVertically(); + } + _getDropdownStrategy() { + const B = this._overlay + .position() + .flexibleConnectedTo( + this.datepickerInput.getConnectedOverlayOrigin() + ) + .withTransformOriginOn(".mat-datepicker-content") + .withFlexibleDimensions(!1) + .withViewportMargin(8) + .withLockedPosition(); + return this._setConnectedPositions(B); + } + _setConnectedPositions(B) { + const de = "end" === this.xPosition ? "end" : "start", + Pe = "start" === de ? "end" : "start", + Xe = "above" === this.yPosition ? "bottom" : "top", + Wt = "top" === Xe ? "bottom" : "top"; + return B.withPositions([ + { originX: de, originY: Wt, overlayX: de, overlayY: Xe }, + { originX: de, originY: Xe, overlayX: de, overlayY: Wt }, + { originX: Pe, originY: Wt, overlayX: Pe, overlayY: Xe }, + { originX: Pe, originY: Xe, overlayX: Pe, overlayY: Wt }, + ]); + } + _getCloseStream(B) { + return (0, i.T)( + B.backdropClick(), + B.detachments(), + B.keydownEvents().pipe( + (0, y.h)( + (de) => + (de.keyCode === l.hY && !(0, l.Vb)(de)) || + (this.datepickerInput && + (0, l.Vb)(de, "altKey") && + de.keyCode === l.LH) + ) + ) + ); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(f.aV), + s.ɵɵdirectiveInject(s.NgZone), + s.ɵɵdirectiveInject(s.ViewContainerRef), + s.ɵɵdirectiveInject(Se), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(x.Is, 8), + s.ɵɵdirectiveInject(Tt) + ); + }), + (ue.ɵdir = s.ɵɵdefineDirective({ + type: ue, + inputs: { + calendarHeaderComponent: "calendarHeaderComponent", + startAt: "startAt", + startView: "startView", + color: "color", + touchUi: "touchUi", + disabled: "disabled", + xPosition: "xPosition", + yPosition: "yPosition", + restoreFocus: "restoreFocus", + dateClass: "dateClass", + panelClass: "panelClass", + opened: "opened", + }, + outputs: { + yearSelected: "yearSelected", + monthSelected: "monthSelected", + viewChanged: "viewChanged", + openedStream: "opened", + closedStream: "closed", + }, + features: [s.ɵɵNgOnChangesFeature], + })), + ue + ); + })(), + Qt = (() => { + class ue extends It {} + return ( + (ue.ɵfac = (function () { + let Re; + return function (de) { + return (Re || (Re = s.ɵɵgetInheritedFactory(ue)))(de || ue); + }; + })()), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-datepicker"]], + exportAs: ["matDatepicker"], + features: [ + s.ɵɵProvidersFeature([fe, { provide: It, useExisting: ue }]), + s.ɵɵInheritDefinitionFeature, + ], + decls: 0, + vars: 0, + template: function (B, de) {}, + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(); + class cn { + constructor(Re, B) { + (this.target = Re), + (this.targetElement = B), + (this.value = this.target.value); + } + } + let An = (() => { + class ue { + constructor(B, de, Pe) { + (this._elementRef = B), + (this._dateAdapter = de), + (this._dateFormats = Pe), + (this.dateChange = new s.EventEmitter()), + (this.dateInput = new s.EventEmitter()), + (this.stateChanges = new r.xQ()), + (this._onTouched = () => {}), + (this._validatorOnChange = () => {}), + (this._cvaOnChange = () => {}), + (this._valueChangesSubscription = o.w.EMPTY), + (this._localeSubscription = o.w.EMPTY), + (this._parseValidator = () => + this._lastValueValid + ? null + : { + matDatepickerParse: { + text: this._elementRef.nativeElement.value, + }, + }), + (this._filterValidator = (Xe) => { + const Wt = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(Xe.value) + ); + return !Wt || this._matchesFilter(Wt) + ? null + : { matDatepickerFilter: !0 }; + }), + (this._minValidator = (Xe) => { + const Wt = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(Xe.value) + ), + Ft = this._getMinDate(); + return !Ft || !Wt || this._dateAdapter.compareDate(Ft, Wt) <= 0 + ? null + : { matDatepickerMin: { min: Ft, actual: Wt } }; + }), + (this._maxValidator = (Xe) => { + const Wt = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(Xe.value) + ), + Ft = this._getMaxDate(); + return !Ft || !Wt || this._dateAdapter.compareDate(Ft, Wt) >= 0 + ? null + : { matDatepickerMax: { max: Ft, actual: Wt } }; + }), + (this._lastValueValid = !1), + (this._localeSubscription = de.localeChanges.subscribe(() => { + this._assignValueProgrammatically(this.value); + })); + } + get value() { + return this._model + ? this._getValueFromModel(this._model.selection) + : this._pendingValue; + } + set value(B) { + this._assignValueProgrammatically(B); + } + get disabled() { + return !!this._disabled || this._parentDisabled(); + } + set disabled(B) { + const de = (0, T.Ig)(B), + Pe = this._elementRef.nativeElement; + this._disabled !== de && + ((this._disabled = de), this.stateChanges.next(void 0)), + de && this._isInitialized && Pe.blur && Pe.blur(); + } + _getValidators() { + return [ + this._parseValidator, + this._minValidator, + this._maxValidator, + this._filterValidator, + ]; + } + _registerModel(B) { + (this._model = B), + this._valueChangesSubscription.unsubscribe(), + this._pendingValue && this._assignValue(this._pendingValue), + (this._valueChangesSubscription = this._model.selectionChanged.subscribe( + (de) => { + if (this._shouldHandleChangeEvent(de)) { + const Pe = this._getValueFromModel(de.selection); + (this._lastValueValid = this._isValidValue(Pe)), + this._cvaOnChange(Pe), + this._onTouched(), + this._formatValue(Pe), + this.dateInput.emit( + new cn(this, this._elementRef.nativeElement) + ), + this.dateChange.emit( + new cn(this, this._elementRef.nativeElement) + ); + } + } + )); + } + ngAfterViewInit() { + this._isInitialized = !0; + } + ngOnChanges(B) { + lt(B, this._dateAdapter) && this.stateChanges.next(void 0); + } + ngOnDestroy() { + this._valueChangesSubscription.unsubscribe(), + this._localeSubscription.unsubscribe(), + this.stateChanges.complete(); + } + registerOnValidatorChange(B) { + this._validatorOnChange = B; + } + validate(B) { + return this._validator ? this._validator(B) : null; + } + writeValue(B) { + this._assignValueProgrammatically(B); + } + registerOnChange(B) { + this._cvaOnChange = B; + } + registerOnTouched(B) { + this._onTouched = B; + } + setDisabledState(B) { + this.disabled = B; + } + _onKeydown(B) { + B.altKey && + B.keyCode === l.JH && + !this._elementRef.nativeElement.readOnly && + (this._openPopup(), B.preventDefault()); + } + _onInput(B) { + const de = this._lastValueValid; + let Pe = this._dateAdapter.parse( + B, + this._dateFormats.parse.dateInput + ); + (this._lastValueValid = this._isValidValue(Pe)), + (Pe = this._dateAdapter.getValidDateOrNull(Pe)), + this._dateAdapter.sameDate(Pe, this.value) + ? (B && !this.value && this._cvaOnChange(Pe), + de !== this._lastValueValid && this._validatorOnChange()) + : (this._assignValue(Pe), + this._cvaOnChange(Pe), + this.dateInput.emit( + new cn(this, this._elementRef.nativeElement) + )); + } + _onChange() { + this.dateChange.emit(new cn(this, this._elementRef.nativeElement)); + } + _onBlur() { + this.value && this._formatValue(this.value), this._onTouched(); + } + _formatValue(B) { + this._elementRef.nativeElement.value = B + ? this._dateAdapter.format(B, this._dateFormats.display.dateInput) + : ""; + } + _assignValue(B) { + this._model + ? (this._assignValueToModel(B), (this._pendingValue = null)) + : (this._pendingValue = B); + } + _isValidValue(B) { + return !B || this._dateAdapter.isValid(B); + } + _parentDisabled() { + return !1; + } + _assignValueProgrammatically(B) { + (B = this._dateAdapter.deserialize(B)), + (this._lastValueValid = this._isValidValue(B)), + (B = this._dateAdapter.getValidDateOrNull(B)), + this._assignValue(B), + this._formatValue(B); + } + _matchesFilter(B) { + const de = this._getDateFilter(); + return !de || de(B); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(h.MAT_DATE_FORMATS, 8) + ); + }), + (ue.ɵdir = s.ɵɵdefineDirective({ + type: ue, + inputs: { value: "value", disabled: "disabled" }, + outputs: { dateChange: "dateChange", dateInput: "dateInput" }, + features: [s.ɵɵNgOnChangesFeature], + })), + ue + ); + })(); + function lt(ue, Re) { + const B = Object.keys(ue); + for (let de of B) { + const { previousValue: Pe, currentValue: Xe } = ue[de]; + if (!Re.isDateInstance(Pe) || !Re.isDateInstance(Xe)) return !0; + if (!Re.sameDate(Pe, Xe)) return !0; + } + return !1; + } + const ct = { + provide: A.NG_VALUE_ACCESSOR, + useExisting: (0, s.forwardRef)(() => pt), + multi: !0, + }, + He = { + provide: A.NG_VALIDATORS, + useExisting: (0, s.forwardRef)(() => pt), + multi: !0, + }; + let pt = (() => { + class ue extends An { + constructor(B, de, Pe, Xe) { + super(B, de, Pe), + (this._formField = Xe), + (this._closedSubscription = o.w.EMPTY), + (this._validator = A.Validators.compose( + super._getValidators() + )); + } + set matDatepicker(B) { + B && + ((this._datepicker = B), + (this._closedSubscription = B.closedStream.subscribe(() => + this._onTouched() + )), + this._registerModel(B.registerInput(this))); + } + get min() { + return this._min; + } + set min(B) { + const de = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + this._dateAdapter.sameDate(de, this._min) || + ((this._min = de), this._validatorOnChange()); + } + get max() { + return this._max; + } + set max(B) { + const de = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + this._dateAdapter.sameDate(de, this._max) || + ((this._max = de), this._validatorOnChange()); + } + get dateFilter() { + return this._dateFilter; + } + set dateFilter(B) { + const de = this._matchesFilter(this.value); + (this._dateFilter = B), + this._matchesFilter(this.value) !== de && + this._validatorOnChange(); + } + getConnectedOverlayOrigin() { + return this._formField + ? this._formField.getConnectedOverlayOrigin() + : this._elementRef; + } + getOverlayLabelId() { + return this._formField + ? this._formField.getLabelId() + : this._elementRef.nativeElement.getAttribute( + "aria-labelledby" + ); + } + getThemePalette() { + return this._formField ? this._formField.color : void 0; + } + getStartValue() { + return this.value; + } + ngOnDestroy() { + super.ngOnDestroy(), this._closedSubscription.unsubscribe(); + } + _openPopup() { + this._datepicker && this._datepicker.open(); + } + _getValueFromModel(B) { + return B; + } + _assignValueToModel(B) { + this._model && this._model.updateSelection(B, this); + } + _getMinDate() { + return this._min; + } + _getMaxDate() { + return this._max; + } + _getDateFilter() { + return this._dateFilter; + } + _shouldHandleChangeEvent(B) { + return B.source !== this; + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(h.MAT_DATE_FORMATS, 8), + s.ɵɵdirectiveInject(S.MAT_FORM_FIELD, 8) + ); + }), + (ue.ɵdir = s.ɵɵdefineDirective({ + type: ue, + selectors: [["input", "matDatepicker", ""]], + hostAttrs: [1, "mat-datepicker-input"], + hostVars: 6, + hostBindings: function (B, de) { + 1 & B && + s.ɵɵlistener("input", function (Xe) { + return de._onInput(Xe.target.value); + })("change", function () { + return de._onChange(); + })("blur", function () { + return de._onBlur(); + })("keydown", function (Xe) { + return de._onKeydown(Xe); + }), + 2 & B && + (s.ɵɵhostProperty("disabled", de.disabled), + s.ɵɵattribute( + "aria-haspopup", + de._datepicker ? "dialog" : null + )( + "aria-owns", + ((null == de._datepicker + ? null + : de._datepicker.opened) && + de._datepicker.id) || + null + )("min", de.min ? de._dateAdapter.toIso8601(de.min) : null)( + "max", + de.max ? de._dateAdapter.toIso8601(de.max) : null + )( + "data-mat-calendar", + de._datepicker ? de._datepicker.id : null + )); + }, + inputs: { + matDatepicker: "matDatepicker", + min: "min", + max: "max", + dateFilter: ["matDatepickerFilter", "dateFilter"], + }, + exportAs: ["matDatepickerInput"], + features: [ + s.ɵɵProvidersFeature([ + ct, + He, + { provide: w.MAT_INPUT_VALUE_ACCESSOR, useExisting: ue }, + ]), + s.ɵɵInheritDefinitionFeature, + ], + })), + ue + ); + })(), + Ot = (() => { + class ue {} + return ( + (ue.ɵfac = function (B) { + return new (B || ue)(); + }), + (ue.ɵdir = s.ɵɵdefineDirective({ + type: ue, + selectors: [["", "matDatepickerToggleIcon", ""]], + })), + ue + ); + })(), + un = (() => { + class ue { + constructor(B, de, Pe) { + (this._intl = B), + (this._changeDetectorRef = de), + (this._stateChanges = o.w.EMPTY); + const Xe = Number(Pe); + this.tabIndex = Xe || 0 === Xe ? Xe : null; + } + get disabled() { + return void 0 === this._disabled && this.datepicker + ? this.datepicker.disabled + : !!this._disabled; + } + set disabled(B) { + this._disabled = (0, T.Ig)(B); + } + ngOnChanges(B) { + B.datepicker && this._watchStateChanges(); + } + ngOnDestroy() { + this._stateChanges.unsubscribe(); + } + ngAfterContentInit() { + this._watchStateChanges(); + } + _open(B) { + this.datepicker && + !this.disabled && + (this.datepicker.open(), B.stopPropagation()); + } + _watchStateChanges() { + const B = this.datepicker + ? this.datepicker.stateChanges + : (0, c.of)(), + de = + this.datepicker && this.datepicker.datepickerInput + ? this.datepicker.datepickerInput.stateChanges + : (0, c.of)(), + Pe = this.datepicker + ? (0, i.T)( + this.datepicker.openedStream, + this.datepicker.closedStream + ) + : (0, c.of)(); + this._stateChanges.unsubscribe(), + (this._stateChanges = (0, i.T)( + this._intl.changes, + B, + de, + Pe + ).subscribe(() => this._changeDetectorRef.markForCheck())); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(Lt), + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵinjectAttribute("tabindex") + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-datepicker-toggle"]], + contentQueries: function (B, de, Pe) { + if ((1 & B && s.ɵɵcontentQuery(Pe, Ot, 5), 2 & B)) { + let Xe; + s.ɵɵqueryRefresh((Xe = s.ɵɵloadQuery())) && + (de._customIcon = Xe.first); + } + }, + viewQuery: function (B, de) { + if ((1 & B && s.ɵɵviewQuery(le, 5), 2 & B)) { + let Pe; + s.ɵɵqueryRefresh((Pe = s.ɵɵloadQuery())) && + (de._button = Pe.first); + } + }, + hostAttrs: [1, "mat-datepicker-toggle"], + hostVars: 8, + hostBindings: function (B, de) { + 1 & B && + s.ɵɵlistener("click", function (Xe) { + return de._open(Xe); + }), + 2 & B && + (s.ɵɵattribute("tabindex", null)( + "data-mat-calendar", + de.datepicker ? de.datepicker.id : null + ), + s.ɵɵclassProp( + "mat-datepicker-toggle-active", + de.datepicker && de.datepicker.opened + )( + "mat-accent", + de.datepicker && "accent" === de.datepicker.color + )( + "mat-warn", + de.datepicker && "warn" === de.datepicker.color + )); + }, + inputs: { + datepicker: ["for", "datepicker"], + tabIndex: "tabIndex", + ariaLabel: ["aria-label", "ariaLabel"], + disabled: "disabled", + disableRipple: "disableRipple", + }, + exportAs: ["matDatepickerToggle"], + features: [s.ɵɵNgOnChangesFeature], + ngContentSelectors: Ye, + decls: 4, + vars: 6, + consts: [ + [ + "mat-icon-button", + "", + "type", + "button", + 3, + "disabled", + "disableRipple", + ], + ["button", ""], + [ + "class", + "mat-datepicker-toggle-default-icon", + "viewBox", + "0 0 24 24", + "width", + "24px", + "height", + "24px", + "fill", + "currentColor", + "focusable", + "false", + 4, + "ngIf", + ], + [ + "viewBox", + "0 0 24 24", + "width", + "24px", + "height", + "24px", + "fill", + "currentColor", + "focusable", + "false", + 1, + "mat-datepicker-toggle-default-icon", + ], + [ + "d", + "M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z", + ], + ], + template: function (B, de) { + 1 & B && + (s.ɵɵprojectionDef(Le), + s.ɵɵelementStart(0, "button", 0, 1), + s.ɵɵtemplate(2, Oe, 2, 0, "svg", 2), + s.ɵɵprojection(3), + s.ɵɵelementEnd()), + 2 & B && + (s.ɵɵproperty("disabled", de.disabled)( + "disableRipple", + de.disableRipple + ), + s.ɵɵattribute( + "aria-haspopup", + de.datepicker ? "dialog" : null + )("aria-label", de.ariaLabel || de._intl.openCalendarLabel)( + "tabindex", + de.disabled ? -1 : de.tabIndex + ), + s.ɵɵadvance(2), + s.ɵɵproperty("ngIf", !de._customIcon)); + }, + directives: [d.MatButton, m.NgIf], + styles: [ + ".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(); + const on = new s.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT"), + Yn = (0, h.mixinErrorState)( + (() => { + class ue extends An { + constructor(B, de, Pe, Xe, Wt, Ft, Ht, Zt) { + super(de, Ht, Zt), + (this._rangeInput = B), + (this._defaultErrorStateMatcher = Pe), + (this._injector = Xe), + (this._parentForm = Wt), + (this._parentFormGroup = Ft); + } + ngOnInit() { + const B = this._injector.get( + A.NgControl, + null, + s.InjectFlags.Self | s.InjectFlags.Optional + ); + B && (this.ngControl = B); + } + ngDoCheck() { + this.ngControl && this.updateErrorState(); + } + isEmpty() { + return 0 === this._elementRef.nativeElement.value.length; + } + _getPlaceholder() { + return this._elementRef.nativeElement.placeholder; + } + focus() { + this._elementRef.nativeElement.focus(); + } + _onInput(B) { + super._onInput(B), this._rangeInput._handleChildValueChange(); + } + _openPopup() { + this._rangeInput._openDatepicker(); + } + _getMinDate() { + return this._rangeInput.min; + } + _getMaxDate() { + return this._rangeInput.max; + } + _getDateFilter() { + return this._rangeInput.dateFilter; + } + _parentDisabled() { + return this._rangeInput._groupDisabled; + } + _shouldHandleChangeEvent({ source: B }) { + return ( + B !== this._rangeInput._startInput && + B !== this._rangeInput._endInput + ); + } + _assignValueProgrammatically(B) { + super._assignValueProgrammatically(B); + const de = + this === this._rangeInput._startInput + ? this._rangeInput._endInput + : this._rangeInput._startInput; + null == de || de._validatorOnChange(); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(on), + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(h.ErrorStateMatcher), + s.ɵɵdirectiveInject(s.Injector), + s.ɵɵdirectiveInject(A.NgForm, 8), + s.ɵɵdirectiveInject(A.FormGroupDirective, 8), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(h.MAT_DATE_FORMATS, 8) + ); + }), + (ue.ɵdir = s.ɵɵdefineDirective({ + type: ue, + features: [s.ɵɵInheritDefinitionFeature], + })), + ue + ); + })() + ); + let ji = (() => { + class ue extends Yn { + constructor(B, de, Pe, Xe, Wt, Ft, Ht, Zt) { + super(B, de, Pe, Xe, Wt, Ft, Ht, Zt), + (this._startValidator = (an) => { + const Tn = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(an.value) + ), + zn = this._model ? this._model.selection.end : null; + return !Tn || + !zn || + this._dateAdapter.compareDate(Tn, zn) <= 0 + ? null + : { matStartDateInvalid: { end: zn, actual: Tn } }; + }), + (this._validator = A.Validators.compose([ + ...super._getValidators(), + this._startValidator, + ])); + } + _getValueFromModel(B) { + return B.start; + } + _shouldHandleChangeEvent(B) { + var de; + return !( + !super._shouldHandleChangeEvent(B) || + (( + null === (de = B.oldValue) || void 0 === de + ? void 0 + : de.start + ) + ? B.selection.start && + !this._dateAdapter.compareDate( + B.oldValue.start, + B.selection.start + ) + : !B.selection.start) + ); + } + _assignValueToModel(B) { + if (this._model) { + const de = new At(B, this._model.selection.end); + this._model.updateSelection(de, this); + } + } + _formatValue(B) { + super._formatValue(B), this._rangeInput._handleChildValueChange(); + } + getMirrorValue() { + const B = this._elementRef.nativeElement, + de = B.value; + return de.length > 0 ? de : B.placeholder; + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(on), + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(h.ErrorStateMatcher), + s.ɵɵdirectiveInject(s.Injector), + s.ɵɵdirectiveInject(A.NgForm, 8), + s.ɵɵdirectiveInject(A.FormGroupDirective, 8), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(h.MAT_DATE_FORMATS, 8) + ); + }), + (ue.ɵdir = s.ɵɵdefineDirective({ + type: ue, + selectors: [["input", "matStartDate", ""]], + hostAttrs: [ + "type", + "text", + 1, + "mat-start-date", + "mat-date-range-input-inner", + ], + hostVars: 6, + hostBindings: function (B, de) { + 1 & B && + s.ɵɵlistener("input", function (Xe) { + return de._onInput(Xe.target.value); + })("change", function () { + return de._onChange(); + })("keydown", function (Xe) { + return de._onKeydown(Xe); + })("blur", function () { + return de._onBlur(); + }), + 2 & B && + (s.ɵɵhostProperty("disabled", de.disabled), + s.ɵɵattribute("id", de._rangeInput.id)( + "aria-haspopup", + de._rangeInput.rangePicker ? "dialog" : null + )( + "aria-owns", + ((null == de._rangeInput.rangePicker + ? null + : de._rangeInput.rangePicker.opened) && + de._rangeInput.rangePicker.id) || + null + )( + "min", + de._getMinDate() + ? de._dateAdapter.toIso8601(de._getMinDate()) + : null + )( + "max", + de._getMaxDate() + ? de._dateAdapter.toIso8601(de._getMaxDate()) + : null + )); + }, + inputs: { errorStateMatcher: "errorStateMatcher" }, + outputs: { dateChange: "dateChange", dateInput: "dateInput" }, + features: [ + s.ɵɵProvidersFeature([ + { provide: A.NG_VALUE_ACCESSOR, useExisting: ue, multi: !0 }, + { provide: A.NG_VALIDATORS, useExisting: ue, multi: !0 }, + ]), + s.ɵɵInheritDefinitionFeature, + ], + })), + ue + ); + })(), + Oi = (() => { + class ue extends Yn { + constructor(B, de, Pe, Xe, Wt, Ft, Ht, Zt) { + super(B, de, Pe, Xe, Wt, Ft, Ht, Zt), + (this._endValidator = (an) => { + const Tn = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(an.value) + ), + zn = this._model ? this._model.selection.start : null; + return !Tn || + !zn || + this._dateAdapter.compareDate(Tn, zn) >= 0 + ? null + : { matEndDateInvalid: { start: zn, actual: Tn } }; + }), + (this._validator = A.Validators.compose([ + ...super._getValidators(), + this._endValidator, + ])); + } + _getValueFromModel(B) { + return B.end; + } + _shouldHandleChangeEvent(B) { + var de; + return !( + !super._shouldHandleChangeEvent(B) || + ((null === (de = B.oldValue) || void 0 === de ? void 0 : de.end) + ? B.selection.end && + !this._dateAdapter.compareDate( + B.oldValue.end, + B.selection.end + ) + : !B.selection.end) + ); + } + _assignValueToModel(B) { + if (this._model) { + const de = new At(this._model.selection.start, B); + this._model.updateSelection(de, this); + } + } + _onKeydown(B) { + B.keyCode === l.ZH && + !this._elementRef.nativeElement.value && + this._rangeInput._startInput.focus(), + super._onKeydown(B); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(on), + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(h.ErrorStateMatcher), + s.ɵɵdirectiveInject(s.Injector), + s.ɵɵdirectiveInject(A.NgForm, 8), + s.ɵɵdirectiveInject(A.FormGroupDirective, 8), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(h.MAT_DATE_FORMATS, 8) + ); + }), + (ue.ɵdir = s.ɵɵdefineDirective({ + type: ue, + selectors: [["input", "matEndDate", ""]], + hostAttrs: [ + "type", + "text", + 1, + "mat-end-date", + "mat-date-range-input-inner", + ], + hostVars: 5, + hostBindings: function (B, de) { + 1 & B && + s.ɵɵlistener("input", function (Xe) { + return de._onInput(Xe.target.value); + })("change", function () { + return de._onChange(); + })("keydown", function (Xe) { + return de._onKeydown(Xe); + })("blur", function () { + return de._onBlur(); + }), + 2 & B && + (s.ɵɵhostProperty("disabled", de.disabled), + s.ɵɵattribute( + "aria-haspopup", + de._rangeInput.rangePicker ? "dialog" : null + )( + "aria-owns", + ((null == de._rangeInput.rangePicker + ? null + : de._rangeInput.rangePicker.opened) && + de._rangeInput.rangePicker.id) || + null + )( + "min", + de._getMinDate() + ? de._dateAdapter.toIso8601(de._getMinDate()) + : null + )( + "max", + de._getMaxDate() + ? de._dateAdapter.toIso8601(de._getMaxDate()) + : null + )); + }, + inputs: { errorStateMatcher: "errorStateMatcher" }, + outputs: { dateChange: "dateChange", dateInput: "dateInput" }, + features: [ + s.ɵɵProvidersFeature([ + { provide: A.NG_VALUE_ACCESSOR, useExisting: ue, multi: !0 }, + { provide: A.NG_VALIDATORS, useExisting: ue, multi: !0 }, + ]), + s.ɵɵInheritDefinitionFeature, + ], + })), + ue + ); + })(), + Ni = 0, + Ti = (() => { + class ue { + constructor(B, de, Pe, Xe, Wt) { + if ( + ((this._changeDetectorRef = B), + (this._elementRef = de), + (this._dateAdapter = Xe), + (this._formField = Wt), + (this._closedSubscription = o.w.EMPTY), + (this.id = "mat-date-range-input-" + Ni++), + (this.focused = !1), + (this.controlType = "mat-date-range-input"), + (this._groupDisabled = !1), + (this._ariaDescribedBy = null), + (this.separator = "\u2013"), + (this.comparisonStart = null), + (this.comparisonEnd = null), + (this.stateChanges = new r.xQ()), + null == Wt + ? void 0 + : Wt._elementRef.nativeElement.classList.contains( + "mat-mdc-form-field" + )) + ) { + const Ft = de.nativeElement.classList; + Ft.add("mat-mdc-input-element"), + Ft.add("mat-mdc-form-field-input-control"); + } + this.ngControl = Pe; + } + get value() { + return this._model ? this._model.selection : null; + } + get shouldLabelFloat() { + return this.focused || !this.empty; + } + get placeholder() { + var B, de; + const Pe = + (null === (B = this._startInput) || void 0 === B + ? void 0 + : B._getPlaceholder()) || "", + Xe = + (null === (de = this._endInput) || void 0 === de + ? void 0 + : de._getPlaceholder()) || ""; + return Pe || Xe ? `${Pe} ${this.separator} ${Xe}` : ""; + } + get rangePicker() { + return this._rangePicker; + } + set rangePicker(B) { + B && + ((this._model = B.registerInput(this)), + (this._rangePicker = B), + this._closedSubscription.unsubscribe(), + (this._closedSubscription = B.closedStream.subscribe(() => { + var de, Pe; + null === (de = this._startInput) || + void 0 === de || + de._onTouched(), + null === (Pe = this._endInput) || + void 0 === Pe || + Pe._onTouched(); + })), + this._registerModel(this._model)); + } + get required() { + return !!this._required; + } + set required(B) { + this._required = (0, T.Ig)(B); + } + get dateFilter() { + return this._dateFilter; + } + set dateFilter(B) { + const de = this._startInput, + Pe = this._endInput, + Xe = de && de._matchesFilter(de.value), + Wt = Pe && Pe._matchesFilter(de.value); + (this._dateFilter = B), + de && + de._matchesFilter(de.value) !== Xe && + de._validatorOnChange(), + Pe && + Pe._matchesFilter(Pe.value) !== Wt && + Pe._validatorOnChange(); + } + get min() { + return this._min; + } + set min(B) { + const de = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + this._dateAdapter.sameDate(de, this._min) || + ((this._min = de), this._revalidate()); + } + get max() { + return this._max; + } + set max(B) { + const de = this._dateAdapter.getValidDateOrNull( + this._dateAdapter.deserialize(B) + ); + this._dateAdapter.sameDate(de, this._max) || + ((this._max = de), this._revalidate()); + } + get disabled() { + return this._startInput && this._endInput + ? this._startInput.disabled && this._endInput.disabled + : this._groupDisabled; + } + set disabled(B) { + const de = (0, T.Ig)(B); + de !== this._groupDisabled && + ((this._groupDisabled = de), this.stateChanges.next(void 0)); + } + get errorState() { + return ( + !(!this._startInput || !this._endInput) && + (this._startInput.errorState || this._endInput.errorState) + ); + } + get empty() { + const B = !!this._startInput && this._startInput.isEmpty(), + de = !!this._endInput && this._endInput.isEmpty(); + return B && de; + } + setDescribedByIds(B) { + this._ariaDescribedBy = B.length ? B.join(" ") : null; + } + onContainerClick() { + !this.focused && + !this.disabled && + (this._model && this._model.selection.start + ? this._endInput.focus() + : this._startInput.focus()); + } + ngAfterContentInit() { + this._model && this._registerModel(this._model), + (0, i.T)( + this._startInput.stateChanges, + this._endInput.stateChanges + ).subscribe(() => { + this.stateChanges.next(void 0); + }); + } + ngOnChanges(B) { + lt(B, this._dateAdapter) && this.stateChanges.next(void 0); + } + ngOnDestroy() { + this._closedSubscription.unsubscribe(), + this.stateChanges.complete(); + } + getStartValue() { + return this.value ? this.value.start : null; + } + getThemePalette() { + return this._formField ? this._formField.color : void 0; + } + getConnectedOverlayOrigin() { + return this._formField + ? this._formField.getConnectedOverlayOrigin() + : this._elementRef; + } + getOverlayLabelId() { + return this._formField ? this._formField.getLabelId() : null; + } + _getInputMirrorValue() { + return this._startInput ? this._startInput.getMirrorValue() : ""; + } + _shouldHidePlaceholders() { + return !!this._startInput && !this._startInput.isEmpty(); + } + _handleChildValueChange() { + this.stateChanges.next(void 0), + this._changeDetectorRef.markForCheck(); + } + _openDatepicker() { + this._rangePicker && this._rangePicker.open(); + } + _shouldHideSeparator() { + return ( + (!this._formField || + (this._formField.getLabelId() && + !this._formField._shouldLabelFloat())) && + this.empty + ); + } + _getAriaLabelledby() { + const B = this._formField; + return B && B._hasFloatingLabel() ? B._labelId : null; + } + _updateFocus(B) { + (this.focused = null !== B), this.stateChanges.next(); + } + _revalidate() { + this._startInput && this._startInput._validatorOnChange(), + this._endInput && this._endInput._validatorOnChange(); + } + _registerModel(B) { + this._startInput && this._startInput._registerModel(B), + this._endInput && this._endInput._registerModel(B); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(A.ControlContainer, 10), + s.ɵɵdirectiveInject(h.DateAdapter, 8), + s.ɵɵdirectiveInject(S.MAT_FORM_FIELD, 8) + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-date-range-input"]], + contentQueries: function (B, de, Pe) { + if ( + (1 & B && + (s.ɵɵcontentQuery(Pe, ji, 5), s.ɵɵcontentQuery(Pe, Oi, 5)), + 2 & B) + ) { + let Xe; + s.ɵɵqueryRefresh((Xe = s.ɵɵloadQuery())) && + (de._startInput = Xe.first), + s.ɵɵqueryRefresh((Xe = s.ɵɵloadQuery())) && + (de._endInput = Xe.first); + } + }, + hostAttrs: ["role", "group", 1, "mat-date-range-input"], + hostVars: 8, + hostBindings: function (B, de) { + 2 & B && + (s.ɵɵattribute("id", null)( + "aria-labelledby", + de._getAriaLabelledby() + )("aria-describedby", de._ariaDescribedBy)( + "data-mat-calendar", + de.rangePicker ? de.rangePicker.id : null + ), + s.ɵɵclassProp( + "mat-date-range-input-hide-placeholders", + de._shouldHidePlaceholders() + )("mat-date-range-input-required", de.required)); + }, + inputs: { + rangePicker: "rangePicker", + required: "required", + dateFilter: "dateFilter", + min: "min", + max: "max", + disabled: "disabled", + separator: "separator", + comparisonStart: "comparisonStart", + comparisonEnd: "comparisonEnd", + }, + exportAs: ["matDateRangeInput"], + features: [ + s.ɵɵProvidersFeature([ + { provide: S.MatFormFieldControl, useExisting: ue }, + { provide: on, useExisting: ue }, + ]), + s.ɵɵNgOnChangesFeature, + ], + ngContentSelectors: gt, + decls: 9, + vars: 4, + consts: [ + [ + "cdkMonitorSubtreeFocus", + "", + 1, + "mat-date-range-input-container", + 3, + "cdkFocusChange", + ], + [1, "mat-date-range-input-start-wrapper"], + ["aria-hidden", "true", 1, "mat-date-range-input-mirror"], + [1, "mat-date-range-input-separator"], + [1, "mat-date-range-input-end-wrapper"], + ], + template: function (B, de) { + 1 & B && + (s.ɵɵprojectionDef(Je), + s.ɵɵelementStart(0, "div", 0), + s.ɵɵlistener("cdkFocusChange", function (Xe) { + return de._updateFocus(Xe); + }), + s.ɵɵelementStart(1, "div", 1), + s.ɵɵprojection(2), + s.ɵɵelementStart(3, "span", 2), + s.ɵɵtext(4), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵelementStart(5, "span", 3), + s.ɵɵtext(6), + s.ɵɵelementEnd(), + s.ɵɵelementStart(7, "div", 4), + s.ɵɵprojection(8, 1), + s.ɵɵelementEnd(), + s.ɵɵelementEnd()), + 2 & B && + (s.ɵɵadvance(4), + s.ɵɵtextInterpolate(de._getInputMirrorValue()), + s.ɵɵadvance(1), + s.ɵɵclassProp( + "mat-date-range-input-separator-hidden", + de._shouldHideSeparator() + ), + s.ɵɵadvance(1), + s.ɵɵtextInterpolate(de.separator)); + }, + directives: [n.kH], + styles: [ + ".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(), + qn = (() => { + class ue extends It { + _forwardContentValues(B) { + super._forwardContentValues(B); + const de = this.datepickerInput; + de && + ((B.comparisonStart = de.comparisonStart), + (B.comparisonEnd = de.comparisonEnd)); + } + } + return ( + (ue.ɵfac = (function () { + let Re; + return function (de) { + return (Re || (Re = s.ɵɵgetInheritedFactory(ue)))(de || ue); + }; + })()), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [["mat-date-range-picker"]], + exportAs: ["matDateRangePicker"], + features: [ + s.ɵɵProvidersFeature([D, Be, { provide: It, useExisting: ue }]), + s.ɵɵInheritDefinitionFeature, + ], + decls: 0, + vars: 0, + template: function (B, de) {}, + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(), + Vi = (() => { + class ue { + constructor(B) { + this._datepicker = B; + } + _applySelection() { + this._datepicker._applyPendingSelection(), + this._datepicker.close(); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)(s.ɵɵdirectiveInject(It)); + }), + (ue.ɵdir = s.ɵɵdefineDirective({ + type: ue, + selectors: [ + ["", "matDatepickerApply", ""], + ["", "matDateRangePickerApply", ""], + ], + hostBindings: function (B, de) { + 1 & B && + s.ɵɵlistener("click", function () { + return de._applySelection(); + }); + }, + })), + ue + ); + })(), + ci = (() => { + class ue { + constructor(B) { + this._datepicker = B; + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)(s.ɵɵdirectiveInject(It)); + }), + (ue.ɵdir = s.ɵɵdefineDirective({ + type: ue, + selectors: [ + ["", "matDatepickerCancel", ""], + ["", "matDateRangePickerCancel", ""], + ], + hostBindings: function (B, de) { + 1 & B && + s.ɵɵlistener("click", function () { + return de._datepicker.close(); + }); + }, + })), + ue + ); + })(), + xe = (() => { + class ue { + constructor(B, de) { + (this._datepicker = B), (this._viewContainerRef = de); + } + ngAfterViewInit() { + (this._portal = new _.UE(this._template, this._viewContainerRef)), + this._datepicker.registerActions(this._portal); + } + ngOnDestroy() { + var B; + this._datepicker.removeActions(this._portal), + this._portal && + this._portal.isAttached && + (null === (B = this._portal) || void 0 === B || B.detach()); + } + } + return ( + (ue.ɵfac = function (B) { + return new (B || ue)( + s.ɵɵdirectiveInject(It), + s.ɵɵdirectiveInject(s.ViewContainerRef) + ); + }), + (ue.ɵcmp = s.ɵɵdefineComponent({ + type: ue, + selectors: [ + ["mat-datepicker-actions"], + ["mat-date-range-picker-actions"], + ], + viewQuery: function (B, de) { + if ((1 & B && s.ɵɵviewQuery(s.TemplateRef, 5), 2 & B)) { + let Pe; + s.ɵɵqueryRefresh((Pe = s.ɵɵloadQuery())) && + (de._template = Pe.first); + } + }, + ngContentSelectors: Z, + decls: 1, + vars: 0, + consts: [[1, "mat-datepicker-actions"]], + template: function (B, de) { + 1 & B && + (s.ɵɵprojectionDef(), + s.ɵɵtemplate(0, Ue, 2, 0, "ng-template")); + }, + styles: [ + ".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + ue + ); + })(), + Ze = (() => { + class ue {} + return ( + (ue.ɵfac = function (B) { + return new (B || ue)(); + }), + (ue.ɵmod = s.ɵɵdefineNgModule({ type: ue })), + (ue.ɵinj = s.ɵɵdefineInjector({ + providers: [Lt, re], + imports: [ + [ + m.CommonModule, + d.MatButtonModule, + f.U8, + n.rt, + _.eL, + h.MatCommonModule, + ], + u.ZD, + ], + })), + ue + ); + })(); + }, + 4834: (ye, j, p) => { + "use strict"; + p.r(j), p.d(j, { MatDivider: () => m, MatDividerModule: () => s }); + var n = p(5e3), + f = p(3191), + _ = p(508); + let m = (() => { + class d { + constructor() { + (this._vertical = !1), (this._inset = !1); + } + get vertical() { + return this._vertical; + } + set vertical(h) { + this._vertical = (0, f.Ig)(h); + } + get inset() { + return this._inset; + } + set inset(h) { + this._inset = (0, f.Ig)(h); + } + } + return ( + (d.ɵfac = function (h) { + return new (h || d)(); + }), + (d.ɵcmp = n.ɵɵdefineComponent({ + type: d, + selectors: [["mat-divider"]], + hostAttrs: ["role", "separator", 1, "mat-divider"], + hostVars: 7, + hostBindings: function (h, r) { + 2 & h && + (n.ɵɵattribute( + "aria-orientation", + r.vertical ? "vertical" : "horizontal" + ), + n.ɵɵclassProp("mat-divider-vertical", r.vertical)( + "mat-divider-horizontal", + !r.vertical + )("mat-divider-inset", r.inset)); + }, + inputs: { vertical: "vertical", inset: "inset" }, + decls: 0, + vars: 0, + template: function (h, r) {}, + styles: [ + ".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + d + ); + })(), + s = (() => { + class d {} + return ( + (d.ɵfac = function (h) { + return new (h || d)(); + }), + (d.ɵmod = n.ɵɵdefineNgModule({ type: d })), + (d.ɵinj = n.ɵɵdefineInjector({ + imports: [[_.MatCommonModule], _.MatCommonModule], + })), + d + ); + })(); + }, + 7322: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_ERROR: () => J, + MAT_FORM_FIELD: () => Ee, + MAT_FORM_FIELD_DEFAULT_OPTIONS: () => Et, + MAT_PREFIX: () => ft, + MAT_SUFFIX: () => yt, + MatError: () => ne, + MatFormField: () => fe, + MatFormFieldControl: () => le, + MatFormFieldModule: () => H, + MatHint: () => Ue, + MatLabel: () => tt, + MatPlaceholder: () => at, + MatPrefix: () => vt, + MatSuffix: () => ot, + _MAT_HINT: () => gt, + getMatFormFieldDuplicatedHintError: () => Le, + getMatFormFieldMissingControlError: () => Ye, + getMatFormFieldPlaceholderConflictError: () => Oe, + matFormFieldAnimations: () => ae, + }); + var n = p(7144), + f = p(9808), + _ = p(5e3), + m = p(508), + s = p(3191), + d = p(8929), + u = p(6787), + h = p(3753), + r = p(1059), + o = p(7625), + i = p(2986), + c = p(1777), + l = p(6360), + g = p(226), + b = p(925); + const y = ["connectionContainer"], + x = ["inputContainer"], + T = ["label"]; + function O(D, U) { + 1 & D && + (_.ɵɵelementContainerStart(0), + _.ɵɵelementStart(1, "div", 14), + _.ɵɵelement(2, "div", 15), + _.ɵɵelement(3, "div", 16), + _.ɵɵelement(4, "div", 17), + _.ɵɵelementEnd(), + _.ɵɵelementStart(5, "div", 18), + _.ɵɵelement(6, "div", 15), + _.ɵɵelement(7, "div", 16), + _.ɵɵelement(8, "div", 17), + _.ɵɵelementEnd(), + _.ɵɵelementContainerEnd()); + } + function M(D, U) { + if (1 & D) { + const X = _.ɵɵgetCurrentView(); + _.ɵɵelementStart(0, "div", 19), + _.ɵɵlistener("cdkObserveContent", function () { + return _.ɵɵrestoreView(X), _.ɵɵnextContext().updateOutlineGap(); + }), + _.ɵɵprojection(1, 1), + _.ɵɵelementEnd(); + } + if (2 & D) { + const X = _.ɵɵnextContext(); + _.ɵɵproperty("cdkObserveContentDisabled", "outline" != X.appearance); + } + } + function A(D, U) { + if ( + (1 & D && + (_.ɵɵelementContainerStart(0), + _.ɵɵprojection(1, 2), + _.ɵɵelementStart(2, "span"), + _.ɵɵtext(3), + _.ɵɵelementEnd(), + _.ɵɵelementContainerEnd()), + 2 & D) + ) { + const X = _.ɵɵnextContext(2); + _.ɵɵadvance(3), _.ɵɵtextInterpolate(X._control.placeholder); + } + } + function S(D, U) { + 1 & D && _.ɵɵprojection(0, 3, ["*ngSwitchCase", "true"]); + } + function w(D, U) { + 1 & D && + (_.ɵɵelementStart(0, "span", 23), + _.ɵɵtext(1, " *"), + _.ɵɵelementEnd()); + } + function I(D, U) { + if (1 & D) { + const X = _.ɵɵgetCurrentView(); + _.ɵɵelementStart(0, "label", 20, 21), + _.ɵɵlistener("cdkObserveContent", function () { + return _.ɵɵrestoreView(X), _.ɵɵnextContext().updateOutlineGap(); + }), + _.ɵɵtemplate(2, A, 4, 1, "ng-container", 12), + _.ɵɵtemplate(3, S, 1, 0, "ng-content", 12), + _.ɵɵtemplate(4, w, 2, 0, "span", 22), + _.ɵɵelementEnd(); + } + if (2 & D) { + const X = _.ɵɵnextContext(); + _.ɵɵclassProp( + "mat-empty", + X._control.empty && !X._shouldAlwaysFloat() + )( + "mat-form-field-empty", + X._control.empty && !X._shouldAlwaysFloat() + )("mat-accent", "accent" == X.color)("mat-warn", "warn" == X.color), + _.ɵɵproperty( + "cdkObserveContentDisabled", + "outline" != X.appearance + )("id", X._labelId)("ngSwitch", X._hasLabel()), + _.ɵɵattribute("for", X._control.id)("aria-owns", X._control.id), + _.ɵɵadvance(2), + _.ɵɵproperty("ngSwitchCase", !1), + _.ɵɵadvance(1), + _.ɵɵproperty("ngSwitchCase", !0), + _.ɵɵadvance(1), + _.ɵɵproperty( + "ngIf", + !X.hideRequiredMarker && + X._control.required && + !X._control.disabled + ); + } + } + function C(D, U) { + 1 & D && + (_.ɵɵelementStart(0, "div", 24), + _.ɵɵprojection(1, 4), + _.ɵɵelementEnd()); + } + function L(D, U) { + if ( + (1 & D && + (_.ɵɵelementStart(0, "div", 25), + _.ɵɵelement(1, "span", 26), + _.ɵɵelementEnd()), + 2 & D) + ) { + const X = _.ɵɵnextContext(); + _.ɵɵadvance(1), + _.ɵɵclassProp("mat-accent", "accent" == X.color)( + "mat-warn", + "warn" == X.color + ); + } + } + function F(D, U) { + if ( + (1 & D && + (_.ɵɵelementStart(0, "div"), + _.ɵɵprojection(1, 5), + _.ɵɵelementEnd()), + 2 & D) + ) { + const X = _.ɵɵnextContext(); + _.ɵɵproperty("@transitionMessages", X._subscriptAnimationState); + } + } + function ie(D, U) { + if ( + (1 & D && + (_.ɵɵelementStart(0, "div", 30), _.ɵɵtext(1), _.ɵɵelementEnd()), + 2 & D) + ) { + const X = _.ɵɵnextContext(2); + _.ɵɵproperty("id", X._hintLabelId), + _.ɵɵadvance(1), + _.ɵɵtextInterpolate(X.hintLabel); + } + } + function Y(D, U) { + if ( + (1 & D && + (_.ɵɵelementStart(0, "div", 27), + _.ɵɵtemplate(1, ie, 2, 2, "div", 28), + _.ɵɵprojection(2, 6), + _.ɵɵelement(3, "div", 29), + _.ɵɵprojection(4, 7), + _.ɵɵelementEnd()), + 2 & D) + ) { + const X = _.ɵɵnextContext(); + _.ɵɵproperty("@transitionMessages", X._subscriptAnimationState), + _.ɵɵadvance(1), + _.ɵɵproperty("ngIf", X.hintLabel); + } + } + const Z = [ + "*", + [["", "matPrefix", ""]], + [["mat-placeholder"]], + [["mat-label"]], + [["", "matSuffix", ""]], + [["mat-error"]], + [["mat-hint", 3, "align", "end"]], + [["mat-hint", "align", "end"]], + ], + ee = [ + "*", + "[matPrefix]", + "mat-placeholder", + "mat-label", + "[matSuffix]", + "mat-error", + "mat-hint:not([align='end'])", + "mat-hint[align='end']", + ]; + let $ = 0; + const J = new _.InjectionToken("MatError"); + let ne = (() => { + class D { + constructor(X, _e) { + (this.id = "mat-error-" + $++), + X || _e.nativeElement.setAttribute("aria-live", "polite"); + } + } + return ( + (D.ɵfac = function (X) { + return new (X || D)( + _.ɵɵinjectAttribute("aria-live"), + _.ɵɵdirectiveInject(_.ElementRef) + ); + }), + (D.ɵdir = _.ɵɵdefineDirective({ + type: D, + selectors: [["mat-error"]], + hostAttrs: ["aria-atomic", "true", 1, "mat-error"], + hostVars: 1, + hostBindings: function (X, _e) { + 2 & X && _.ɵɵattribute("id", _e.id); + }, + inputs: { id: "id" }, + features: [_.ɵɵProvidersFeature([{ provide: J, useExisting: D }])], + })), + D + ); + })(); + const ae = { + transitionMessages: (0, c.X$)("transitionMessages", [ + (0, c.SB)( + "enter", + (0, c.oB)({ opacity: 1, transform: "translateY(0%)" }) + ), + (0, c.eR)("void => enter", [ + (0, c.oB)({ opacity: 0, transform: "translateY(-5px)" }), + (0, c.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)"), + ]), + ]), + }; + let le = (() => { + class D {} + return ( + (D.ɵfac = function (X) { + return new (X || D)(); + }), + (D.ɵdir = _.ɵɵdefineDirective({ type: D })), + D + ); + })(); + function Oe() { + return Error( + "Placeholder attribute and child element were both specified." + ); + } + function Le(D) { + return Error(`A hint was already declared for 'align="${D}"'.`); + } + function Ye() { + return Error("mat-form-field must contain a MatFormFieldControl."); + } + let Je = 0; + const gt = new _.InjectionToken("MatHint"); + let Ue = (() => { + class D { + constructor() { + (this.align = "start"), (this.id = "mat-hint-" + Je++); + } + } + return ( + (D.ɵfac = function (X) { + return new (X || D)(); + }), + (D.ɵdir = _.ɵɵdefineDirective({ + type: D, + selectors: [["mat-hint"]], + hostAttrs: [1, "mat-hint"], + hostVars: 4, + hostBindings: function (X, _e) { + 2 & X && + (_.ɵɵattribute("id", _e.id)("align", null), + _.ɵɵclassProp("mat-form-field-hint-end", "end" === _e.align)); + }, + inputs: { align: "align", id: "id" }, + features: [ + _.ɵɵProvidersFeature([{ provide: gt, useExisting: D }]), + ], + })), + D + ); + })(), + tt = (() => { + class D {} + return ( + (D.ɵfac = function (X) { + return new (X || D)(); + }), + (D.ɵdir = _.ɵɵdefineDirective({ + type: D, + selectors: [["mat-label"]], + })), + D + ); + })(), + at = (() => { + class D {} + return ( + (D.ɵfac = function (X) { + return new (X || D)(); + }), + (D.ɵdir = _.ɵɵdefineDirective({ + type: D, + selectors: [["mat-placeholder"]], + })), + D + ); + })(); + const ft = new _.InjectionToken("MatPrefix"); + let vt = (() => { + class D {} + return ( + (D.ɵfac = function (X) { + return new (X || D)(); + }), + (D.ɵdir = _.ɵɵdefineDirective({ + type: D, + selectors: [["", "matPrefix", ""]], + features: [_.ɵɵProvidersFeature([{ provide: ft, useExisting: D }])], + })), + D + ); + })(); + const yt = new _.InjectionToken("MatSuffix"); + let ot = (() => { + class D {} + return ( + (D.ɵfac = function (X) { + return new (X || D)(); + }), + (D.ɵdir = _.ɵɵdefineDirective({ + type: D, + selectors: [["", "matSuffix", ""]], + features: [ + _.ɵɵProvidersFeature([{ provide: yt, useExisting: D }]), + ], + })), + D + ); + })(), + _t = 0; + const Bt = (0, m.mixinColor)( + class { + constructor(D) { + this._elementRef = D; + } + }, + "primary" + ), + Et = new _.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS"), + Ee = new _.InjectionToken("MatFormField"); + let fe = (() => { + class D extends Bt { + constructor(X, _e, Be, $e, st, ut, St) { + super(X), + (this._changeDetectorRef = _e), + (this._dir = Be), + (this._defaults = $e), + (this._platform = st), + (this._ngZone = ut), + (this._outlineGapCalculationNeededImmediately = !1), + (this._outlineGapCalculationNeededOnStable = !1), + (this._destroyed = new d.xQ()), + (this._showAlwaysAnimate = !1), + (this._subscriptAnimationState = ""), + (this._hintLabel = ""), + (this._hintLabelId = "mat-hint-" + _t++), + (this._labelId = "mat-form-field-label-" + _t++), + (this.floatLabel = this._getDefaultFloatLabelState()), + (this._animationsEnabled = "NoopAnimations" !== St), + (this.appearance = + $e && $e.appearance ? $e.appearance : "legacy"), + (this._hideRequiredMarker = + !(!$e || null == $e.hideRequiredMarker) && + $e.hideRequiredMarker); + } + get appearance() { + return this._appearance; + } + set appearance(X) { + const _e = this._appearance; + (this._appearance = + X || (this._defaults && this._defaults.appearance) || "legacy"), + "outline" === this._appearance && + _e !== X && + (this._outlineGapCalculationNeededOnStable = !0); + } + get hideRequiredMarker() { + return this._hideRequiredMarker; + } + set hideRequiredMarker(X) { + this._hideRequiredMarker = (0, s.Ig)(X); + } + _shouldAlwaysFloat() { + return "always" === this.floatLabel && !this._showAlwaysAnimate; + } + _canLabelFloat() { + return "never" !== this.floatLabel; + } + get hintLabel() { + return this._hintLabel; + } + set hintLabel(X) { + (this._hintLabel = X), this._processHints(); + } + get floatLabel() { + return "legacy" !== this.appearance && + "never" === this._floatLabel + ? "auto" + : this._floatLabel; + } + set floatLabel(X) { + X !== this._floatLabel && + ((this._floatLabel = X || this._getDefaultFloatLabelState()), + this._changeDetectorRef.markForCheck()); + } + get _control() { + return ( + this._explicitFormFieldControl || + this._controlNonStatic || + this._controlStatic + ); + } + set _control(X) { + this._explicitFormFieldControl = X; + } + getLabelId() { + return this._hasFloatingLabel() ? this._labelId : null; + } + getConnectedOverlayOrigin() { + return this._connectionContainerRef || this._elementRef; + } + ngAfterContentInit() { + this._validateControlChild(); + const X = this._control; + X.controlType && + this._elementRef.nativeElement.classList.add( + `mat-form-field-type-${X.controlType}` + ), + X.stateChanges.pipe((0, r.O)(null)).subscribe(() => { + this._validatePlaceholders(), + this._syncDescribedByIds(), + this._changeDetectorRef.markForCheck(); + }), + X.ngControl && + X.ngControl.valueChanges && + X.ngControl.valueChanges + .pipe((0, o.R)(this._destroyed)) + .subscribe(() => this._changeDetectorRef.markForCheck()), + this._ngZone.runOutsideAngular(() => { + this._ngZone.onStable + .pipe((0, o.R)(this._destroyed)) + .subscribe(() => { + this._outlineGapCalculationNeededOnStable && + this.updateOutlineGap(); + }); + }), + (0, u.T)( + this._prefixChildren.changes, + this._suffixChildren.changes + ).subscribe(() => { + (this._outlineGapCalculationNeededOnStable = !0), + this._changeDetectorRef.markForCheck(); + }), + this._hintChildren.changes + .pipe((0, r.O)(null)) + .subscribe(() => { + this._processHints(), + this._changeDetectorRef.markForCheck(); + }), + this._errorChildren.changes + .pipe((0, r.O)(null)) + .subscribe(() => { + this._syncDescribedByIds(), + this._changeDetectorRef.markForCheck(); + }), + this._dir && + this._dir.change + .pipe((0, o.R)(this._destroyed)) + .subscribe(() => { + "function" == typeof requestAnimationFrame + ? this._ngZone.runOutsideAngular(() => { + requestAnimationFrame(() => + this.updateOutlineGap() + ); + }) + : this.updateOutlineGap(); + }); + } + ngAfterContentChecked() { + this._validateControlChild(), + this._outlineGapCalculationNeededImmediately && + this.updateOutlineGap(); + } + ngAfterViewInit() { + (this._subscriptAnimationState = "enter"), + this._changeDetectorRef.detectChanges(); + } + ngOnDestroy() { + this._destroyed.next(), this._destroyed.complete(); + } + _shouldForward(X) { + const _e = this._control ? this._control.ngControl : null; + return _e && _e[X]; + } + _hasPlaceholder() { + return !!( + (this._control && this._control.placeholder) || + this._placeholderChild + ); + } + _hasLabel() { + return !(!this._labelChildNonStatic && !this._labelChildStatic); + } + _shouldLabelFloat() { + return ( + this._canLabelFloat() && + ((this._control && this._control.shouldLabelFloat) || + this._shouldAlwaysFloat()) + ); + } + _hideControlPlaceholder() { + return ( + ("legacy" === this.appearance && !this._hasLabel()) || + (this._hasLabel() && !this._shouldLabelFloat()) + ); + } + _hasFloatingLabel() { + return ( + this._hasLabel() || + ("legacy" === this.appearance && this._hasPlaceholder()) + ); + } + _getDisplayedMessages() { + return this._errorChildren && + this._errorChildren.length > 0 && + this._control.errorState + ? "error" + : "hint"; + } + _animateAndLockLabel() { + this._hasFloatingLabel() && + this._canLabelFloat() && + (this._animationsEnabled && + this._label && + ((this._showAlwaysAnimate = !0), + (0, h.R)(this._label.nativeElement, "transitionend") + .pipe((0, i.q)(1)) + .subscribe(() => { + this._showAlwaysAnimate = !1; + })), + (this.floatLabel = "always"), + this._changeDetectorRef.markForCheck()); + } + _validatePlaceholders() {} + _processHints() { + this._validateHints(), this._syncDescribedByIds(); + } + _validateHints() {} + _getDefaultFloatLabelState() { + return (this._defaults && this._defaults.floatLabel) || "auto"; + } + _syncDescribedByIds() { + if (this._control) { + let X = []; + if ( + (this._control.userAriaDescribedBy && + "string" == typeof this._control.userAriaDescribedBy && + X.push(...this._control.userAriaDescribedBy.split(" ")), + "hint" === this._getDisplayedMessages()) + ) { + const _e = this._hintChildren + ? this._hintChildren.find(($e) => "start" === $e.align) + : null, + Be = this._hintChildren + ? this._hintChildren.find(($e) => "end" === $e.align) + : null; + _e + ? X.push(_e.id) + : this._hintLabel && X.push(this._hintLabelId), + Be && X.push(Be.id); + } else + this._errorChildren && + X.push(...this._errorChildren.map((_e) => _e.id)); + this._control.setDescribedByIds(X); + } + } + _validateControlChild() {} + updateOutlineGap() { + const X = this._label ? this._label.nativeElement : null; + if ( + !( + "outline" === this.appearance && + X && + X.children.length && + X.textContent.trim() && + this._platform.isBrowser + ) + ) + return; + if (!this._isAttachedToDOM()) + return void (this._outlineGapCalculationNeededImmediately = !0); + let _e = 0, + Be = 0; + const $e = this._connectionContainerRef.nativeElement, + st = $e.querySelectorAll(".mat-form-field-outline-start"), + ut = $e.querySelectorAll(".mat-form-field-outline-gap"); + if (this._label && this._label.nativeElement.children.length) { + const St = $e.getBoundingClientRect(); + if (0 === St.width && 0 === St.height) + return ( + (this._outlineGapCalculationNeededOnStable = !0), + void (this._outlineGapCalculationNeededImmediately = !1) + ); + const Xt = this._getStartEnd(St), + tn = X.children, + Dt = this._getStartEnd(tn[0].getBoundingClientRect()); + let Kt = 0; + for (let et = 0; et < tn.length; et++) Kt += tn[et].offsetWidth; + (_e = Math.abs(Dt - Xt) - 5), + (Be = Kt > 0 ? 0.75 * Kt + 10 : 0); + } + for (let St = 0; St < st.length; St++) + st[St].style.width = `${_e}px`; + for (let St = 0; St < ut.length; St++) + ut[St].style.width = `${Be}px`; + this._outlineGapCalculationNeededOnStable = this._outlineGapCalculationNeededImmediately = !1; + } + _getStartEnd(X) { + return this._dir && "rtl" === this._dir.value ? X.right : X.left; + } + _isAttachedToDOM() { + const X = this._elementRef.nativeElement; + if (X.getRootNode) { + const _e = X.getRootNode(); + return _e && _e !== X; + } + return document.documentElement.contains(X); + } + } + return ( + (D.ɵfac = function (X) { + return new (X || D)( + _.ɵɵdirectiveInject(_.ElementRef), + _.ɵɵdirectiveInject(_.ChangeDetectorRef), + _.ɵɵdirectiveInject(g.Is, 8), + _.ɵɵdirectiveInject(Et, 8), + _.ɵɵdirectiveInject(b.t4), + _.ɵɵdirectiveInject(_.NgZone), + _.ɵɵdirectiveInject(l.ANIMATION_MODULE_TYPE, 8) + ); + }), + (D.ɵcmp = _.ɵɵdefineComponent({ + type: D, + selectors: [["mat-form-field"]], + contentQueries: function (X, _e, Be) { + if ( + (1 & X && + (_.ɵɵcontentQuery(Be, le, 5), + _.ɵɵcontentQuery(Be, le, 7), + _.ɵɵcontentQuery(Be, tt, 5), + _.ɵɵcontentQuery(Be, tt, 7), + _.ɵɵcontentQuery(Be, at, 5), + _.ɵɵcontentQuery(Be, J, 5), + _.ɵɵcontentQuery(Be, gt, 5), + _.ɵɵcontentQuery(Be, ft, 5), + _.ɵɵcontentQuery(Be, yt, 5)), + 2 & X) + ) { + let $e; + _.ɵɵqueryRefresh(($e = _.ɵɵloadQuery())) && + (_e._controlNonStatic = $e.first), + _.ɵɵqueryRefresh(($e = _.ɵɵloadQuery())) && + (_e._controlStatic = $e.first), + _.ɵɵqueryRefresh(($e = _.ɵɵloadQuery())) && + (_e._labelChildNonStatic = $e.first), + _.ɵɵqueryRefresh(($e = _.ɵɵloadQuery())) && + (_e._labelChildStatic = $e.first), + _.ɵɵqueryRefresh(($e = _.ɵɵloadQuery())) && + (_e._placeholderChild = $e.first), + _.ɵɵqueryRefresh(($e = _.ɵɵloadQuery())) && + (_e._errorChildren = $e), + _.ɵɵqueryRefresh(($e = _.ɵɵloadQuery())) && + (_e._hintChildren = $e), + _.ɵɵqueryRefresh(($e = _.ɵɵloadQuery())) && + (_e._prefixChildren = $e), + _.ɵɵqueryRefresh(($e = _.ɵɵloadQuery())) && + (_e._suffixChildren = $e); + } + }, + viewQuery: function (X, _e) { + if ( + (1 & X && + (_.ɵɵviewQuery(y, 7), + _.ɵɵviewQuery(x, 5), + _.ɵɵviewQuery(T, 5)), + 2 & X) + ) { + let Be; + _.ɵɵqueryRefresh((Be = _.ɵɵloadQuery())) && + (_e._connectionContainerRef = Be.first), + _.ɵɵqueryRefresh((Be = _.ɵɵloadQuery())) && + (_e._inputContainerRef = Be.first), + _.ɵɵqueryRefresh((Be = _.ɵɵloadQuery())) && + (_e._label = Be.first); + } + }, + hostAttrs: [1, "mat-form-field"], + hostVars: 40, + hostBindings: function (X, _e) { + 2 & X && + _.ɵɵclassProp( + "mat-form-field-appearance-standard", + "standard" == _e.appearance + )("mat-form-field-appearance-fill", "fill" == _e.appearance)( + "mat-form-field-appearance-outline", + "outline" == _e.appearance + )( + "mat-form-field-appearance-legacy", + "legacy" == _e.appearance + )("mat-form-field-invalid", _e._control.errorState)( + "mat-form-field-can-float", + _e._canLabelFloat() + )("mat-form-field-should-float", _e._shouldLabelFloat())( + "mat-form-field-has-label", + _e._hasFloatingLabel() + )( + "mat-form-field-hide-placeholder", + _e._hideControlPlaceholder() + )("mat-form-field-disabled", _e._control.disabled)( + "mat-form-field-autofilled", + _e._control.autofilled + )("mat-focused", _e._control.focused)( + "ng-untouched", + _e._shouldForward("untouched") + )("ng-touched", _e._shouldForward("touched"))( + "ng-pristine", + _e._shouldForward("pristine") + )("ng-dirty", _e._shouldForward("dirty"))( + "ng-valid", + _e._shouldForward("valid") + )("ng-invalid", _e._shouldForward("invalid"))( + "ng-pending", + _e._shouldForward("pending") + )("_mat-animation-noopable", !_e._animationsEnabled); + }, + inputs: { + color: "color", + appearance: "appearance", + hideRequiredMarker: "hideRequiredMarker", + hintLabel: "hintLabel", + floatLabel: "floatLabel", + }, + exportAs: ["matFormField"], + features: [ + _.ɵɵProvidersFeature([{ provide: Ee, useExisting: D }]), + _.ɵɵInheritDefinitionFeature, + ], + ngContentSelectors: ee, + decls: 15, + vars: 8, + consts: [ + [1, "mat-form-field-wrapper"], + [1, "mat-form-field-flex", 3, "click"], + ["connectionContainer", ""], + [4, "ngIf"], + [ + "class", + "mat-form-field-prefix", + 3, + "cdkObserveContentDisabled", + "cdkObserveContent", + 4, + "ngIf", + ], + [1, "mat-form-field-infix"], + ["inputContainer", ""], + [1, "mat-form-field-label-wrapper"], + [ + "class", + "mat-form-field-label", + 3, + "cdkObserveContentDisabled", + "id", + "mat-empty", + "mat-form-field-empty", + "mat-accent", + "mat-warn", + "ngSwitch", + "cdkObserveContent", + 4, + "ngIf", + ], + ["class", "mat-form-field-suffix", 4, "ngIf"], + ["class", "mat-form-field-underline", 4, "ngIf"], + [1, "mat-form-field-subscript-wrapper", 3, "ngSwitch"], + [4, "ngSwitchCase"], + ["class", "mat-form-field-hint-wrapper", 4, "ngSwitchCase"], + [1, "mat-form-field-outline"], + [1, "mat-form-field-outline-start"], + [1, "mat-form-field-outline-gap"], + [1, "mat-form-field-outline-end"], + [1, "mat-form-field-outline", "mat-form-field-outline-thick"], + [ + 1, + "mat-form-field-prefix", + 3, + "cdkObserveContentDisabled", + "cdkObserveContent", + ], + [ + 1, + "mat-form-field-label", + 3, + "cdkObserveContentDisabled", + "id", + "ngSwitch", + "cdkObserveContent", + ], + ["label", ""], + [ + "class", + "mat-placeholder-required mat-form-field-required-marker", + "aria-hidden", + "true", + 4, + "ngIf", + ], + [ + "aria-hidden", + "true", + 1, + "mat-placeholder-required", + "mat-form-field-required-marker", + ], + [1, "mat-form-field-suffix"], + [1, "mat-form-field-underline"], + [1, "mat-form-field-ripple"], + [1, "mat-form-field-hint-wrapper"], + ["class", "mat-hint", 3, "id", 4, "ngIf"], + [1, "mat-form-field-hint-spacer"], + [1, "mat-hint", 3, "id"], + ], + template: function (X, _e) { + 1 & X && + (_.ɵɵprojectionDef(Z), + _.ɵɵelementStart(0, "div", 0), + _.ɵɵelementStart(1, "div", 1, 2), + _.ɵɵlistener("click", function ($e) { + return ( + _e._control.onContainerClick && + _e._control.onContainerClick($e) + ); + }), + _.ɵɵtemplate(3, O, 9, 0, "ng-container", 3), + _.ɵɵtemplate(4, M, 2, 1, "div", 4), + _.ɵɵelementStart(5, "div", 5, 6), + _.ɵɵprojection(7), + _.ɵɵelementStart(8, "span", 7), + _.ɵɵtemplate(9, I, 5, 16, "label", 8), + _.ɵɵelementEnd(), + _.ɵɵelementEnd(), + _.ɵɵtemplate(10, C, 2, 0, "div", 9), + _.ɵɵelementEnd(), + _.ɵɵtemplate(11, L, 2, 4, "div", 10), + _.ɵɵelementStart(12, "div", 11), + _.ɵɵtemplate(13, F, 2, 1, "div", 12), + _.ɵɵtemplate(14, Y, 5, 2, "div", 13), + _.ɵɵelementEnd(), + _.ɵɵelementEnd()), + 2 & X && + (_.ɵɵadvance(3), + _.ɵɵproperty("ngIf", "outline" == _e.appearance), + _.ɵɵadvance(1), + _.ɵɵproperty("ngIf", _e._prefixChildren.length), + _.ɵɵadvance(5), + _.ɵɵproperty("ngIf", _e._hasFloatingLabel()), + _.ɵɵadvance(1), + _.ɵɵproperty("ngIf", _e._suffixChildren.length), + _.ɵɵadvance(1), + _.ɵɵproperty("ngIf", "outline" != _e.appearance), + _.ɵɵadvance(1), + _.ɵɵproperty("ngSwitch", _e._getDisplayedMessages()), + _.ɵɵadvance(1), + _.ɵɵproperty("ngSwitchCase", "error"), + _.ɵɵadvance(1), + _.ɵɵproperty("ngSwitchCase", "hint")); + }, + directives: [f.NgIf, f.NgSwitch, f.NgSwitchCase, n.wD], + styles: [ + ".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n", + '.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n', + '.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n', + ".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n", + ".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n", + ".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n", + ], + encapsulation: 2, + data: { animation: [ae.transitionMessages] }, + changeDetection: 0, + })), + D + ); + })(), + H = (() => { + class D {} + return ( + (D.ɵfac = function (X) { + return new (X || D)(); + }), + (D.ɵmod = _.ɵɵdefineNgModule({ type: D })), + (D.ɵinj = _.ɵɵdefineInjector({ + imports: [ + [f.CommonModule, m.MatCommonModule, n.Q8], + m.MatCommonModule, + ], + })), + D + ); + })(); + }, + 5245: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + ICON_REGISTRY_PROVIDER: () => ie, + ICON_REGISTRY_PROVIDER_FACTORY: () => F, + MAT_ICON_LOCATION: () => J, + MAT_ICON_LOCATION_FACTORY: () => ne, + MatIcon: () => Le, + MatIconModule: () => Ye, + MatIconRegistry: () => L, + getMatIconFailedToSanitizeLiteralError: () => I, + getMatIconFailedToSanitizeUrlError: () => w, + getMatIconNameNotFoundError: () => A, + getMatIconNoHttpProviderError: () => S, + }); + var n = p(5e3), + f = p(508), + _ = p(3191), + m = p(9808), + s = p(1086), + d = p(1737), + u = p(567), + h = p(2654), + r = p(2868), + o = p(4850), + i = p(7221), + c = p(537), + l = p(8117), + g = p(2986), + b = p(520), + y = p(2313); + const x = ["*"]; + let T; + function M(Je) { + var gt; + return ( + (null === + (gt = (function () { + if (void 0 === T && ((T = null), "undefined" != typeof window)) { + const Je = window; + void 0 !== Je.trustedTypes && + (T = Je.trustedTypes.createPolicy("angular#components", { + createHTML: (gt) => gt, + })); + } + return T; + })()) || void 0 === gt + ? void 0 + : gt.createHTML(Je)) || Je + ); + } + function A(Je) { + return Error(`Unable to find icon with the name "${Je}"`); + } + function S() { + return Error( + "Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports." + ); + } + function w(Je) { + return Error( + `The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Je}".` + ); + } + function I(Je) { + return Error( + `The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Je}".` + ); + } + class C { + constructor(gt, Ue, tt) { + (this.url = gt), (this.svgText = Ue), (this.options = tt); + } + } + let L = (() => { + class Je { + constructor(Ue, tt, at, ft) { + (this._httpClient = Ue), + (this._sanitizer = tt), + (this._errorHandler = ft), + (this._svgIconConfigs = new Map()), + (this._iconSetConfigs = new Map()), + (this._cachedIconsByUrl = new Map()), + (this._inProgressUrlFetches = new Map()), + (this._fontCssClassesByAlias = new Map()), + (this._resolvers = []), + (this._defaultFontSetClass = "material-icons"), + (this._document = at); + } + addSvgIcon(Ue, tt, at) { + return this.addSvgIconInNamespace("", Ue, tt, at); + } + addSvgIconLiteral(Ue, tt, at) { + return this.addSvgIconLiteralInNamespace("", Ue, tt, at); + } + addSvgIconInNamespace(Ue, tt, at, ft) { + return this._addSvgIconConfig(Ue, tt, new C(at, null, ft)); + } + addSvgIconResolver(Ue) { + return this._resolvers.push(Ue), this; + } + addSvgIconLiteralInNamespace(Ue, tt, at, ft) { + const vt = this._sanitizer.sanitize(n.SecurityContext.HTML, at); + if (!vt) throw I(at); + const yt = M(vt); + return this._addSvgIconConfig(Ue, tt, new C("", yt, ft)); + } + addSvgIconSet(Ue, tt) { + return this.addSvgIconSetInNamespace("", Ue, tt); + } + addSvgIconSetLiteral(Ue, tt) { + return this.addSvgIconSetLiteralInNamespace("", Ue, tt); + } + addSvgIconSetInNamespace(Ue, tt, at) { + return this._addSvgIconSetConfig(Ue, new C(tt, null, at)); + } + addSvgIconSetLiteralInNamespace(Ue, tt, at) { + const ft = this._sanitizer.sanitize(n.SecurityContext.HTML, tt); + if (!ft) throw I(tt); + const vt = M(ft); + return this._addSvgIconSetConfig(Ue, new C("", vt, at)); + } + registerFontClassAlias(Ue, tt = Ue) { + return this._fontCssClassesByAlias.set(Ue, tt), this; + } + classNameForFontAlias(Ue) { + return this._fontCssClassesByAlias.get(Ue) || Ue; + } + setDefaultFontSetClass(Ue) { + return (this._defaultFontSetClass = Ue), this; + } + getDefaultFontSetClass() { + return this._defaultFontSetClass; + } + getSvgIconFromUrl(Ue) { + const tt = this._sanitizer.sanitize( + n.SecurityContext.RESOURCE_URL, + Ue + ); + if (!tt) throw w(Ue); + const at = this._cachedIconsByUrl.get(tt); + return at + ? (0, s.of)(Y(at)) + : this._loadSvgIconFromConfig(new C(Ue, null)).pipe( + (0, r.b)((ft) => this._cachedIconsByUrl.set(tt, ft)), + (0, o.U)((ft) => Y(ft)) + ); + } + getNamedSvgIcon(Ue, tt = "") { + const at = Z(tt, Ue); + let ft = this._svgIconConfigs.get(at); + if (ft) return this._getSvgFromConfig(ft); + if (((ft = this._getIconConfigFromResolvers(tt, Ue)), ft)) + return ( + this._svgIconConfigs.set(at, ft), this._getSvgFromConfig(ft) + ); + const vt = this._iconSetConfigs.get(tt); + return vt + ? this._getSvgFromIconSetConfigs(Ue, vt) + : (0, d._)(A(at)); + } + ngOnDestroy() { + (this._resolvers = []), + this._svgIconConfigs.clear(), + this._iconSetConfigs.clear(), + this._cachedIconsByUrl.clear(); + } + _getSvgFromConfig(Ue) { + return Ue.svgText + ? (0, s.of)(Y(this._svgElementFromConfig(Ue))) + : this._loadSvgIconFromConfig(Ue).pipe((0, o.U)((tt) => Y(tt))); + } + _getSvgFromIconSetConfigs(Ue, tt) { + const at = this._extractIconWithNameFromAnySet(Ue, tt); + if (at) return (0, s.of)(at); + const ft = tt + .filter((vt) => !vt.svgText) + .map((vt) => + this._loadSvgIconSetFromConfig(vt).pipe( + (0, i.K)((yt) => { + const _t = `Loading icon set URL: ${this._sanitizer.sanitize( + n.SecurityContext.RESOURCE_URL, + vt.url + )} failed: ${yt.message}`; + return ( + this._errorHandler.handleError(new Error(_t)), + (0, s.of)(null) + ); + }) + ) + ); + return (0, u.D)(ft).pipe( + (0, o.U)(() => { + const vt = this._extractIconWithNameFromAnySet(Ue, tt); + if (!vt) throw A(Ue); + return vt; + }) + ); + } + _extractIconWithNameFromAnySet(Ue, tt) { + for (let at = tt.length - 1; at >= 0; at--) { + const ft = tt[at]; + if (ft.svgText && ft.svgText.toString().indexOf(Ue) > -1) { + const vt = this._svgElementFromConfig(ft), + yt = this._extractSvgIconFromSet(vt, Ue, ft.options); + if (yt) return yt; + } + } + return null; + } + _loadSvgIconFromConfig(Ue) { + return this._fetchIcon(Ue).pipe( + (0, r.b)((tt) => (Ue.svgText = tt)), + (0, o.U)(() => this._svgElementFromConfig(Ue)) + ); + } + _loadSvgIconSetFromConfig(Ue) { + return Ue.svgText + ? (0, s.of)(null) + : this._fetchIcon(Ue).pipe((0, r.b)((tt) => (Ue.svgText = tt))); + } + _extractSvgIconFromSet(Ue, tt, at) { + const ft = Ue.querySelector(`[id="${tt}"]`); + if (!ft) return null; + const vt = ft.cloneNode(!0); + if ((vt.removeAttribute("id"), "svg" === vt.nodeName.toLowerCase())) + return this._setSvgAttributes(vt, at); + if ("symbol" === vt.nodeName.toLowerCase()) + return this._setSvgAttributes(this._toSvgElement(vt), at); + const yt = this._svgElementFromString(M("")); + return yt.appendChild(vt), this._setSvgAttributes(yt, at); + } + _svgElementFromString(Ue) { + const tt = this._document.createElement("DIV"); + tt.innerHTML = Ue; + const at = tt.querySelector("svg"); + if (!at) throw Error(" tag not found"); + return at; + } + _toSvgElement(Ue) { + const tt = this._svgElementFromString(M("")), + at = Ue.attributes; + for (let ft = 0; ft < at.length; ft++) { + const { name: vt, value: yt } = at[ft]; + "id" !== vt && tt.setAttribute(vt, yt); + } + for (let ft = 0; ft < Ue.childNodes.length; ft++) + Ue.childNodes[ft].nodeType === this._document.ELEMENT_NODE && + tt.appendChild(Ue.childNodes[ft].cloneNode(!0)); + return tt; + } + _setSvgAttributes(Ue, tt) { + return ( + Ue.setAttribute("fit", ""), + Ue.setAttribute("height", "100%"), + Ue.setAttribute("width", "100%"), + Ue.setAttribute("preserveAspectRatio", "xMidYMid meet"), + Ue.setAttribute("focusable", "false"), + tt && tt.viewBox && Ue.setAttribute("viewBox", tt.viewBox), + Ue + ); + } + _fetchIcon(Ue) { + var tt; + const { url: at, options: ft } = Ue, + vt = + null !== (tt = null == ft ? void 0 : ft.withCredentials) && + void 0 !== tt && + tt; + if (!this._httpClient) throw S(); + if (null == at) throw Error(`Cannot fetch icon from URL "${at}".`); + const yt = this._sanitizer.sanitize( + n.SecurityContext.RESOURCE_URL, + at + ); + if (!yt) throw w(at); + const ot = this._inProgressUrlFetches.get(yt); + if (ot) return ot; + const _t = this._httpClient + .get(yt, { responseType: "text", withCredentials: vt }) + .pipe( + (0, o.U)((At) => M(At)), + (0, c.x)(() => this._inProgressUrlFetches.delete(yt)), + (0, l.B)() + ); + return this._inProgressUrlFetches.set(yt, _t), _t; + } + _addSvgIconConfig(Ue, tt, at) { + return this._svgIconConfigs.set(Z(Ue, tt), at), this; + } + _addSvgIconSetConfig(Ue, tt) { + const at = this._iconSetConfigs.get(Ue); + return at ? at.push(tt) : this._iconSetConfigs.set(Ue, [tt]), this; + } + _svgElementFromConfig(Ue) { + if (!Ue.svgElement) { + const tt = this._svgElementFromString(Ue.svgText); + this._setSvgAttributes(tt, Ue.options), (Ue.svgElement = tt); + } + return Ue.svgElement; + } + _getIconConfigFromResolvers(Ue, tt) { + for (let at = 0; at < this._resolvers.length; at++) { + const ft = this._resolvers[at](tt, Ue); + if (ft) + return ee(ft) + ? new C(ft.url, null, ft.options) + : new C(ft, null); + } + } + } + return ( + (Je.ɵfac = function (Ue) { + return new (Ue || Je)( + n.ɵɵinject(b.HttpClient, 8), + n.ɵɵinject(y.DomSanitizer), + n.ɵɵinject(m.DOCUMENT, 8), + n.ɵɵinject(n.ErrorHandler) + ); + }), + (Je.ɵprov = n.ɵɵdefineInjectable({ + token: Je, + factory: Je.ɵfac, + providedIn: "root", + })), + Je + ); + })(); + function F(Je, gt, Ue, tt, at) { + return Je || new L(gt, Ue, at, tt); + } + const ie = { + provide: L, + deps: [ + [new n.Optional(), new n.SkipSelf(), L], + [new n.Optional(), b.HttpClient], + y.DomSanitizer, + n.ErrorHandler, + [new n.Optional(), m.DOCUMENT], + ], + useFactory: F, + }; + function Y(Je) { + return Je.cloneNode(!0); + } + function Z(Je, gt) { + return Je + ":" + gt; + } + function ee(Je) { + return !(!Je.url || !Je.options); + } + const $ = (0, f.mixinColor)( + class { + constructor(Je) { + this._elementRef = Je; + } + } + ), + J = new n.InjectionToken("mat-icon-location", { + providedIn: "root", + factory: ne, + }); + function ne() { + const Je = (0, n.inject)(m.DOCUMENT), + gt = Je ? Je.location : null; + return { getPathname: () => (gt ? gt.pathname + gt.search : "") }; + } + const ae = [ + "clip-path", + "color-profile", + "src", + "cursor", + "fill", + "filter", + "marker", + "marker-start", + "marker-mid", + "marker-end", + "mask", + "stroke", + ], + le = ae.map((Je) => `[${Je}]`).join(", "), + Oe = /^url\(['"]?#(.*?)['"]?\)$/; + let Le = (() => { + class Je extends $ { + constructor(Ue, tt, at, ft, vt) { + super(Ue), + (this._iconRegistry = tt), + (this._location = ft), + (this._errorHandler = vt), + (this._inline = !1), + (this._currentIconFetch = h.w.EMPTY), + at || Ue.nativeElement.setAttribute("aria-hidden", "true"); + } + get inline() { + return this._inline; + } + set inline(Ue) { + this._inline = (0, _.Ig)(Ue); + } + get svgIcon() { + return this._svgIcon; + } + set svgIcon(Ue) { + Ue !== this._svgIcon && + (Ue + ? this._updateSvgIcon(Ue) + : this._svgIcon && this._clearSvgElement(), + (this._svgIcon = Ue)); + } + get fontSet() { + return this._fontSet; + } + set fontSet(Ue) { + const tt = this._cleanupFontValue(Ue); + tt !== this._fontSet && + ((this._fontSet = tt), this._updateFontIconClasses()); + } + get fontIcon() { + return this._fontIcon; + } + set fontIcon(Ue) { + const tt = this._cleanupFontValue(Ue); + tt !== this._fontIcon && + ((this._fontIcon = tt), this._updateFontIconClasses()); + } + _splitIconName(Ue) { + if (!Ue) return ["", ""]; + const tt = Ue.split(":"); + switch (tt.length) { + case 1: + return ["", tt[0]]; + case 2: + return tt; + default: + throw Error(`Invalid icon name: "${Ue}"`); + } + } + ngOnInit() { + this._updateFontIconClasses(); + } + ngAfterViewChecked() { + const Ue = this._elementsWithExternalReferences; + if (Ue && Ue.size) { + const tt = this._location.getPathname(); + tt !== this._previousPath && + ((this._previousPath = tt), + this._prependPathToReferences(tt)); + } + } + ngOnDestroy() { + this._currentIconFetch.unsubscribe(), + this._elementsWithExternalReferences && + this._elementsWithExternalReferences.clear(); + } + _usingFontIcon() { + return !this.svgIcon; + } + _setSvgElement(Ue) { + this._clearSvgElement(); + const tt = Ue.querySelectorAll("style"); + for (let ft = 0; ft < tt.length; ft++) tt[ft].textContent += " "; + const at = this._location.getPathname(); + (this._previousPath = at), + this._cacheChildrenWithExternalReferences(Ue), + this._prependPathToReferences(at), + this._elementRef.nativeElement.appendChild(Ue); + } + _clearSvgElement() { + const Ue = this._elementRef.nativeElement; + let tt = Ue.childNodes.length; + for ( + this._elementsWithExternalReferences && + this._elementsWithExternalReferences.clear(); + tt--; + + ) { + const at = Ue.childNodes[tt]; + (1 !== at.nodeType || "svg" === at.nodeName.toLowerCase()) && + at.remove(); + } + } + _updateFontIconClasses() { + if (!this._usingFontIcon()) return; + const Ue = this._elementRef.nativeElement, + tt = this.fontSet + ? this._iconRegistry.classNameForFontAlias(this.fontSet) + : this._iconRegistry.getDefaultFontSetClass(); + tt != this._previousFontSetClass && + (this._previousFontSetClass && + Ue.classList.remove(this._previousFontSetClass), + tt && Ue.classList.add(tt), + (this._previousFontSetClass = tt)), + this.fontIcon != this._previousFontIconClass && + (this._previousFontIconClass && + Ue.classList.remove(this._previousFontIconClass), + this.fontIcon && Ue.classList.add(this.fontIcon), + (this._previousFontIconClass = this.fontIcon)); + } + _cleanupFontValue(Ue) { + return "string" == typeof Ue ? Ue.trim().split(" ")[0] : Ue; + } + _prependPathToReferences(Ue) { + const tt = this._elementsWithExternalReferences; + tt && + tt.forEach((at, ft) => { + at.forEach((vt) => { + ft.setAttribute(vt.name, `url('${Ue}#${vt.value}')`); + }); + }); + } + _cacheChildrenWithExternalReferences(Ue) { + const tt = Ue.querySelectorAll(le), + at = (this._elementsWithExternalReferences = + this._elementsWithExternalReferences || new Map()); + for (let ft = 0; ft < tt.length; ft++) + ae.forEach((vt) => { + const yt = tt[ft], + ot = yt.getAttribute(vt), + _t = ot ? ot.match(Oe) : null; + if (_t) { + let At = at.get(yt); + At || ((At = []), at.set(yt, At)), + At.push({ name: vt, value: _t[1] }); + } + }); + } + _updateSvgIcon(Ue) { + if ( + ((this._svgNamespace = null), + (this._svgName = null), + this._currentIconFetch.unsubscribe(), + Ue) + ) { + const [tt, at] = this._splitIconName(Ue); + tt && (this._svgNamespace = tt), + at && (this._svgName = at), + (this._currentIconFetch = this._iconRegistry + .getNamedSvgIcon(at, tt) + .pipe((0, g.q)(1)) + .subscribe( + (ft) => this._setSvgElement(ft), + (ft) => { + this._errorHandler.handleError( + new Error( + `Error retrieving icon ${tt}:${at}! ${ft.message}` + ) + ); + } + )); + } + } + } + return ( + (Je.ɵfac = function (Ue) { + return new (Ue || Je)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(L), + n.ɵɵinjectAttribute("aria-hidden"), + n.ɵɵdirectiveInject(J), + n.ɵɵdirectiveInject(n.ErrorHandler) + ); + }), + (Je.ɵcmp = n.ɵɵdefineComponent({ + type: Je, + selectors: [["mat-icon"]], + hostAttrs: ["role", "img", 1, "mat-icon", "notranslate"], + hostVars: 7, + hostBindings: function (Ue, tt) { + 2 & Ue && + (n.ɵɵattribute( + "data-mat-icon-type", + tt._usingFontIcon() ? "font" : "svg" + )("data-mat-icon-name", tt._svgName || tt.fontIcon)( + "data-mat-icon-namespace", + tt._svgNamespace || tt.fontSet + ), + n.ɵɵclassProp("mat-icon-inline", tt.inline)( + "mat-icon-no-color", + "primary" !== tt.color && + "accent" !== tt.color && + "warn" !== tt.color + )); + }, + inputs: { + color: "color", + inline: "inline", + svgIcon: "svgIcon", + fontSet: "fontSet", + fontIcon: "fontIcon", + }, + exportAs: ["matIcon"], + features: [n.ɵɵInheritDefinitionFeature], + ngContentSelectors: x, + decls: 1, + vars: 0, + template: function (Ue, tt) { + 1 & Ue && (n.ɵɵprojectionDef(), n.ɵɵprojection(0)); + }, + styles: [ + ".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + Je + ); + })(), + Ye = (() => { + class Je {} + return ( + (Je.ɵfac = function (Ue) { + return new (Ue || Je)(); + }), + (Je.ɵmod = n.ɵɵdefineNgModule({ type: Je })), + (Je.ɵinj = n.ɵɵdefineInjector({ + imports: [[f.MatCommonModule], f.MatCommonModule], + })), + Je + ); + })(); + }, + 7531: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_INPUT_VALUE_ACCESSOR: () => b, + MatInput: () => O, + MatInputModule: () => M, + getMatInputUnsupportedTypeError: () => g, + }); + var n = p(3191), + f = p(925), + _ = p(5e3), + m = p(3075), + s = p(508), + d = p(7322), + u = p(8929), + h = p(8896); + const r = (0, f.i$)({ passive: !0 }); + let o = (() => { + class A { + constructor(w, I) { + (this._platform = w), + (this._ngZone = I), + (this._monitoredElements = new Map()); + } + monitor(w) { + if (!this._platform.isBrowser) return h.E; + const I = (0, n.fI)(w), + C = this._monitoredElements.get(I); + if (C) return C.subject; + const L = new u.xQ(), + F = "cdk-text-field-autofilled", + ie = (Y) => { + "cdk-text-field-autofill-start" !== Y.animationName || + I.classList.contains(F) + ? "cdk-text-field-autofill-end" === Y.animationName && + I.classList.contains(F) && + (I.classList.remove(F), + this._ngZone.run(() => + L.next({ target: Y.target, isAutofilled: !1 }) + )) + : (I.classList.add(F), + this._ngZone.run(() => + L.next({ target: Y.target, isAutofilled: !0 }) + )); + }; + return ( + this._ngZone.runOutsideAngular(() => { + I.addEventListener("animationstart", ie, r), + I.classList.add("cdk-text-field-autofill-monitored"); + }), + this._monitoredElements.set(I, { + subject: L, + unlisten: () => { + I.removeEventListener("animationstart", ie, r); + }, + }), + L + ); + } + stopMonitoring(w) { + const I = (0, n.fI)(w), + C = this._monitoredElements.get(I); + C && + (C.unlisten(), + C.subject.complete(), + I.classList.remove("cdk-text-field-autofill-monitored"), + I.classList.remove("cdk-text-field-autofilled"), + this._monitoredElements.delete(I)); + } + ngOnDestroy() { + this._monitoredElements.forEach((w, I) => this.stopMonitoring(I)); + } + } + return ( + (A.ɵfac = function (w) { + return new (w || A)(_.ɵɵinject(f.t4), _.ɵɵinject(_.NgZone)); + }), + (A.ɵprov = _.ɵɵdefineInjectable({ + token: A, + factory: A.ɵfac, + providedIn: "root", + })), + A + ); + })(), + l = (() => { + class A {} + return ( + (A.ɵfac = function (w) { + return new (w || A)(); + }), + (A.ɵmod = _.ɵɵdefineNgModule({ type: A })), + (A.ɵinj = _.ɵɵdefineInjector({ imports: [[f.ud]] })), + A + ); + })(); + function g(A) { + return Error(`Input type "${A}" isn't supported by matInput.`); + } + const b = new _.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"), + y = [ + "button", + "checkbox", + "file", + "hidden", + "image", + "radio", + "range", + "reset", + "submit", + ]; + let x = 0; + const T = (0, s.mixinErrorState)( + class { + constructor(A, S, w, I) { + (this._defaultErrorStateMatcher = A), + (this._parentForm = S), + (this._parentFormGroup = w), + (this.ngControl = I); + } + } + ); + let O = (() => { + class A extends T { + constructor(w, I, C, L, F, ie, Y, Z, ee, $) { + super(ie, L, F, C), + (this._elementRef = w), + (this._platform = I), + (this._autofillMonitor = Z), + (this._formField = $), + (this._uid = "mat-input-" + x++), + (this.focused = !1), + (this.stateChanges = new u.xQ()), + (this.controlType = "mat-input"), + (this.autofilled = !1), + (this._disabled = !1), + (this._type = "text"), + (this._readonly = !1), + (this._neverEmptyInputTypes = [ + "date", + "datetime", + "datetime-local", + "month", + "time", + "week", + ].filter((ae) => (0, f.qK)().has(ae))); + const J = this._elementRef.nativeElement, + ne = J.nodeName.toLowerCase(); + (this._inputValueAccessor = Y || J), + (this._previousNativeValue = this.value), + (this.id = this.id), + I.IOS && + ee.runOutsideAngular(() => { + w.nativeElement.addEventListener("keyup", (ae) => { + const le = ae.target; + !le.value && + 0 === le.selectionStart && + 0 === le.selectionEnd && + (le.setSelectionRange(1, 1), + le.setSelectionRange(0, 0)); + }); + }), + (this._isServer = !this._platform.isBrowser), + (this._isNativeSelect = "select" === ne), + (this._isTextarea = "textarea" === ne), + (this._isInFormField = !!$), + this._isNativeSelect && + (this.controlType = J.multiple + ? "mat-native-select-multiple" + : "mat-native-select"); + } + get disabled() { + return this.ngControl && null !== this.ngControl.disabled + ? this.ngControl.disabled + : this._disabled; + } + set disabled(w) { + (this._disabled = (0, n.Ig)(w)), + this.focused && ((this.focused = !1), this.stateChanges.next()); + } + get id() { + return this._id; + } + set id(w) { + this._id = w || this._uid; + } + get required() { + var w, I, C, L; + return ( + null !== + (L = + null !== (w = this._required) && void 0 !== w + ? w + : null === + (C = + null === (I = this.ngControl) || void 0 === I + ? void 0 + : I.control) || void 0 === C + ? void 0 + : C.hasValidator(m.Validators.required)) && + void 0 !== L && + L + ); + } + set required(w) { + this._required = (0, n.Ig)(w); + } + get type() { + return this._type; + } + set type(w) { + (this._type = w || "text"), + this._validateType(), + !this._isTextarea && + (0, f.qK)().has(this._type) && + (this._elementRef.nativeElement.type = this._type); + } + get value() { + return this._inputValueAccessor.value; + } + set value(w) { + w !== this.value && + ((this._inputValueAccessor.value = w), + this.stateChanges.next()); + } + get readonly() { + return this._readonly; + } + set readonly(w) { + this._readonly = (0, n.Ig)(w); + } + ngAfterViewInit() { + this._platform.isBrowser && + this._autofillMonitor + .monitor(this._elementRef.nativeElement) + .subscribe((w) => { + (this.autofilled = w.isAutofilled), + this.stateChanges.next(); + }); + } + ngOnChanges() { + this.stateChanges.next(); + } + ngOnDestroy() { + this.stateChanges.complete(), + this._platform.isBrowser && + this._autofillMonitor.stopMonitoring( + this._elementRef.nativeElement + ); + } + ngDoCheck() { + this.ngControl && this.updateErrorState(), + this._dirtyCheckNativeValue(), + this._dirtyCheckPlaceholder(); + } + focus(w) { + this._elementRef.nativeElement.focus(w); + } + _focusChanged(w) { + w !== this.focused && + ((this.focused = w), this.stateChanges.next()); + } + _onInput() {} + _dirtyCheckPlaceholder() { + var w, I; + const C = ( + null === + (I = + null === (w = this._formField) || void 0 === w + ? void 0 + : w._hideControlPlaceholder) || void 0 === I + ? void 0 + : I.call(w) + ) + ? null + : this.placeholder; + if (C !== this._previousPlaceholder) { + const L = this._elementRef.nativeElement; + (this._previousPlaceholder = C), + C + ? L.setAttribute("placeholder", C) + : L.removeAttribute("placeholder"); + } + } + _dirtyCheckNativeValue() { + const w = this._elementRef.nativeElement.value; + this._previousNativeValue !== w && + ((this._previousNativeValue = w), this.stateChanges.next()); + } + _validateType() { + y.indexOf(this._type); + } + _isNeverEmpty() { + return this._neverEmptyInputTypes.indexOf(this._type) > -1; + } + _isBadInput() { + let w = this._elementRef.nativeElement.validity; + return w && w.badInput; + } + get empty() { + return !( + this._isNeverEmpty() || + this._elementRef.nativeElement.value || + this._isBadInput() || + this.autofilled + ); + } + get shouldLabelFloat() { + if (this._isNativeSelect) { + const w = this._elementRef.nativeElement, + I = w.options[0]; + return ( + this.focused || + w.multiple || + !this.empty || + !!(w.selectedIndex > -1 && I && I.label) + ); + } + return this.focused || !this.empty; + } + setDescribedByIds(w) { + w.length + ? this._elementRef.nativeElement.setAttribute( + "aria-describedby", + w.join(" ") + ) + : this._elementRef.nativeElement.removeAttribute( + "aria-describedby" + ); + } + onContainerClick() { + this.focused || this.focus(); + } + _isInlineSelect() { + const w = this._elementRef.nativeElement; + return this._isNativeSelect && (w.multiple || w.size > 1); + } + } + return ( + (A.ɵfac = function (w) { + return new (w || A)( + _.ɵɵdirectiveInject(_.ElementRef), + _.ɵɵdirectiveInject(f.t4), + _.ɵɵdirectiveInject(m.NgControl, 10), + _.ɵɵdirectiveInject(m.NgForm, 8), + _.ɵɵdirectiveInject(m.FormGroupDirective, 8), + _.ɵɵdirectiveInject(s.ErrorStateMatcher), + _.ɵɵdirectiveInject(b, 10), + _.ɵɵdirectiveInject(o), + _.ɵɵdirectiveInject(_.NgZone), + _.ɵɵdirectiveInject(d.MAT_FORM_FIELD, 8) + ); + }), + (A.ɵdir = _.ɵɵdefineDirective({ + type: A, + selectors: [ + ["input", "matInput", ""], + ["textarea", "matInput", ""], + ["select", "matNativeControl", ""], + ["input", "matNativeControl", ""], + ["textarea", "matNativeControl", ""], + ], + hostAttrs: [ + 1, + "mat-input-element", + "mat-form-field-autofill-control", + ], + hostVars: 11, + hostBindings: function (w, I) { + 1 & w && + _.ɵɵlistener("focus", function () { + return I._focusChanged(!0); + })("blur", function () { + return I._focusChanged(!1); + })("input", function () { + return I._onInput(); + }), + 2 & w && + (_.ɵɵhostProperty("disabled", I.disabled)( + "required", + I.required + ), + _.ɵɵattribute("id", I.id)( + "data-placeholder", + I.placeholder + )("readonly", (I.readonly && !I._isNativeSelect) || null)( + "aria-invalid", + I.empty && I.required ? null : I.errorState + )("aria-required", I.required), + _.ɵɵclassProp("mat-input-server", I._isServer)( + "mat-native-select-inline", + I._isInlineSelect() + )); + }, + inputs: { + disabled: "disabled", + id: "id", + placeholder: "placeholder", + required: "required", + type: "type", + errorStateMatcher: "errorStateMatcher", + userAriaDescribedBy: [ + "aria-describedby", + "userAriaDescribedBy", + ], + value: "value", + readonly: "readonly", + }, + exportAs: ["matInput"], + features: [ + _.ɵɵProvidersFeature([ + { provide: d.MatFormFieldControl, useExisting: A }, + ]), + _.ɵɵInheritDefinitionFeature, + _.ɵɵNgOnChangesFeature, + ], + })), + A + ); + })(), + M = (() => { + class A {} + return ( + (A.ɵfac = function (w) { + return new (w || A)(); + }), + (A.ɵmod = _.ɵɵdefineNgModule({ type: A })), + (A.ɵinj = _.ɵɵdefineInjector({ + providers: [s.ErrorStateMatcher], + imports: [ + [l, d.MatFormFieldModule, s.MatCommonModule], + l, + d.MatFormFieldModule, + ], + })), + A + ); + })(); + }, + 2181: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_MENU_CONTENT: () => ee, + MAT_MENU_DEFAULT_OPTIONS: () => gt, + MAT_MENU_PANEL: () => Le, + MAT_MENU_SCROLL_STRATEGY: () => vt, + MatMenu: () => ft, + MatMenuContent: () => J, + MatMenuItem: () => Je, + MatMenuModule: () => Et, + MatMenuTrigger: () => Bt, + _MatMenuBase: () => at, + _MatMenuContentBase: () => $, + _MatMenuTriggerBase: () => Tt, + fadeInItems: () => Y, + matMenuAnimations: () => ie, + transformMenu: () => Z, + }); + var n = p(5664), + f = p(3191), + _ = p(1159), + m = p(5e3), + s = p(8929), + d = p(2654), + u = p(6787), + h = p(1086), + r = p(8139), + o = p(1059), + i = p(7545), + c = p(2986), + l = p(2198), + g = p(7625), + b = p(943), + y = p(1777), + x = p(7429), + T = p(9808), + O = p(508), + M = p(1314), + A = p(925), + S = p(226), + w = p(9071); + const I = ["mat-menu-item", ""]; + function C(Ee, fe) { + 1 & Ee && + (m.ɵɵnamespaceSVG(), + m.ɵɵelementStart(0, "svg", 2), + m.ɵɵelement(1, "polygon", 3), + m.ɵɵelementEnd()); + } + const L = ["*"]; + function F(Ee, fe) { + if (1 & Ee) { + const H = m.ɵɵgetCurrentView(); + m.ɵɵelementStart(0, "div", 0), + m.ɵɵlistener("keydown", function (U) { + return m.ɵɵrestoreView(H), m.ɵɵnextContext()._handleKeydown(U); + })("click", function () { + return m.ɵɵrestoreView(H), m.ɵɵnextContext().closed.emit("click"); + })("@transformMenu.start", function (U) { + return m.ɵɵrestoreView(H), m.ɵɵnextContext()._onAnimationStart(U); + })("@transformMenu.done", function (U) { + return m.ɵɵrestoreView(H), m.ɵɵnextContext()._onAnimationDone(U); + }), + m.ɵɵelementStart(1, "div", 1), + m.ɵɵprojection(2), + m.ɵɵelementEnd(), + m.ɵɵelementEnd(); + } + if (2 & Ee) { + const H = m.ɵɵnextContext(); + m.ɵɵproperty("id", H.panelId)("ngClass", H._classList)( + "@transformMenu", + H._panelAnimationState + ), + m.ɵɵattribute("aria-label", H.ariaLabel || null)( + "aria-labelledby", + H.ariaLabelledby || null + )("aria-describedby", H.ariaDescribedby || null); + } + } + const ie = { + transformMenu: (0, y.X$)("transformMenu", [ + (0, y.SB)( + "void", + (0, y.oB)({ opacity: 0, transform: "scale(0.8)" }) + ), + (0, y.eR)( + "void => enter", + (0, y.jt)( + "120ms cubic-bezier(0, 0, 0.2, 1)", + (0, y.oB)({ opacity: 1, transform: "scale(1)" }) + ) + ), + (0, y.eR)( + "* => void", + (0, y.jt)("100ms 25ms linear", (0, y.oB)({ opacity: 0 })) + ), + ]), + fadeInItems: (0, y.X$)("fadeInItems", [ + (0, y.SB)("showing", (0, y.oB)({ opacity: 1 })), + (0, y.eR)("void => *", [ + (0, y.oB)({ opacity: 0 }), + (0, y.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"), + ]), + ]), + }, + Y = ie.fadeInItems, + Z = ie.transformMenu, + ee = new m.InjectionToken("MatMenuContent"); + let $ = (() => { + class Ee { + constructor(H, D, U, X, _e, Be, $e) { + (this._template = H), + (this._componentFactoryResolver = D), + (this._appRef = U), + (this._injector = X), + (this._viewContainerRef = _e), + (this._document = Be), + (this._changeDetectorRef = $e), + (this._attached = new s.xQ()); + } + attach(H = {}) { + this._portal || + (this._portal = new x.UE( + this._template, + this._viewContainerRef + )), + this.detach(), + this._outlet || + (this._outlet = new x.u0( + this._document.createElement("div"), + this._componentFactoryResolver, + this._appRef, + this._injector + )); + const D = this._template.elementRef.nativeElement; + D.parentNode.insertBefore(this._outlet.outletElement, D), + this._changeDetectorRef && + this._changeDetectorRef.markForCheck(), + this._portal.attach(this._outlet, H), + this._attached.next(); + } + detach() { + this._portal.isAttached && this._portal.detach(); + } + ngOnDestroy() { + this._outlet && this._outlet.dispose(); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)( + m.ɵɵdirectiveInject(m.TemplateRef), + m.ɵɵdirectiveInject(m.ComponentFactoryResolver), + m.ɵɵdirectiveInject(m.ApplicationRef), + m.ɵɵdirectiveInject(m.Injector), + m.ɵɵdirectiveInject(m.ViewContainerRef), + m.ɵɵdirectiveInject(T.DOCUMENT), + m.ɵɵdirectiveInject(m.ChangeDetectorRef) + ); + }), + (Ee.ɵdir = m.ɵɵdefineDirective({ type: Ee })), + Ee + ); + })(), + J = (() => { + class Ee extends $ {} + return ( + (Ee.ɵfac = (function () { + let fe; + return function (D) { + return (fe || (fe = m.ɵɵgetInheritedFactory(Ee)))(D || Ee); + }; + })()), + (Ee.ɵdir = m.ɵɵdefineDirective({ + type: Ee, + selectors: [["ng-template", "matMenuContent", ""]], + features: [ + m.ɵɵProvidersFeature([{ provide: ee, useExisting: Ee }]), + m.ɵɵInheritDefinitionFeature, + ], + })), + Ee + ); + })(); + const Le = new m.InjectionToken("MAT_MENU_PANEL"), + Ye = (0, O.mixinDisableRipple)((0, O.mixinDisabled)(class {})); + let Je = (() => { + class Ee extends Ye { + constructor(H, D, U, X, _e) { + super(), + (this._elementRef = H), + (this._focusMonitor = U), + (this._parentMenu = X), + (this._changeDetectorRef = _e), + (this.role = "menuitem"), + (this._hovered = new s.xQ()), + (this._focused = new s.xQ()), + (this._highlighted = !1), + (this._triggersSubmenu = !1), + X && X.addItem && X.addItem(this); + } + focus(H, D) { + this._focusMonitor && H + ? this._focusMonitor.focusVia(this._getHostElement(), H, D) + : this._getHostElement().focus(D), + this._focused.next(this); + } + ngAfterViewInit() { + this._focusMonitor && + this._focusMonitor.monitor(this._elementRef, !1); + } + ngOnDestroy() { + this._focusMonitor && + this._focusMonitor.stopMonitoring(this._elementRef), + this._parentMenu && + this._parentMenu.removeItem && + this._parentMenu.removeItem(this), + this._hovered.complete(), + this._focused.complete(); + } + _getTabIndex() { + return this.disabled ? "-1" : "0"; + } + _getHostElement() { + return this._elementRef.nativeElement; + } + _checkDisabled(H) { + this.disabled && (H.preventDefault(), H.stopPropagation()); + } + _handleMouseEnter() { + this._hovered.next(this); + } + getLabel() { + var H; + const D = this._elementRef.nativeElement.cloneNode(!0), + U = D.querySelectorAll("mat-icon, .material-icons"); + for (let X = 0; X < U.length; X++) U[X].remove(); + return ( + (null === (H = D.textContent) || void 0 === H + ? void 0 + : H.trim()) || "" + ); + } + _setHighlighted(H) { + var D; + (this._highlighted = H), + null === (D = this._changeDetectorRef) || + void 0 === D || + D.markForCheck(); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)( + m.ɵɵdirectiveInject(m.ElementRef), + m.ɵɵdirectiveInject(T.DOCUMENT), + m.ɵɵdirectiveInject(n.tE), + m.ɵɵdirectiveInject(Le, 8), + m.ɵɵdirectiveInject(m.ChangeDetectorRef) + ); + }), + (Ee.ɵcmp = m.ɵɵdefineComponent({ + type: Ee, + selectors: [["", "mat-menu-item", ""]], + hostAttrs: [1, "mat-focus-indicator"], + hostVars: 10, + hostBindings: function (H, D) { + 1 & H && + m.ɵɵlistener("click", function (X) { + return D._checkDisabled(X); + })("mouseenter", function () { + return D._handleMouseEnter(); + }), + 2 & H && + (m.ɵɵattribute("role", D.role)("tabindex", D._getTabIndex())( + "aria-disabled", + D.disabled.toString() + )("disabled", D.disabled || null), + m.ɵɵclassProp("mat-menu-item", !0)( + "mat-menu-item-highlighted", + D._highlighted + )("mat-menu-item-submenu-trigger", D._triggersSubmenu)); + }, + inputs: { + disabled: "disabled", + disableRipple: "disableRipple", + role: "role", + }, + exportAs: ["matMenuItem"], + features: [m.ɵɵInheritDefinitionFeature], + attrs: I, + ngContentSelectors: L, + decls: 3, + vars: 3, + consts: [ + [ + "matRipple", + "", + 1, + "mat-menu-ripple", + 3, + "matRippleDisabled", + "matRippleTrigger", + ], + [ + "class", + "mat-menu-submenu-icon", + "viewBox", + "0 0 5 10", + "focusable", + "false", + 4, + "ngIf", + ], + [ + "viewBox", + "0 0 5 10", + "focusable", + "false", + 1, + "mat-menu-submenu-icon", + ], + ["points", "0,0 5,5 0,10"], + ], + template: function (H, D) { + 1 & H && + (m.ɵɵprojectionDef(), + m.ɵɵprojection(0), + m.ɵɵelement(1, "div", 0), + m.ɵɵtemplate(2, C, 2, 0, "svg", 1)), + 2 & H && + (m.ɵɵadvance(1), + m.ɵɵproperty( + "matRippleDisabled", + D.disableRipple || D.disabled + )("matRippleTrigger", D._getHostElement()), + m.ɵɵadvance(1), + m.ɵɵproperty("ngIf", D._triggersSubmenu)); + }, + directives: [O.MatRipple, T.NgIf], + encapsulation: 2, + changeDetection: 0, + })), + Ee + ); + })(); + const gt = new m.InjectionToken("mat-menu-default-options", { + providedIn: "root", + factory: function () { + return { + overlapTrigger: !1, + xPosition: "after", + yPosition: "below", + backdropClass: "cdk-overlay-transparent-backdrop", + }; + }, + }); + let tt = 0, + at = (() => { + class Ee { + constructor(H, D, U) { + (this._elementRef = H), + (this._ngZone = D), + (this._defaultOptions = U), + (this._xPosition = this._defaultOptions.xPosition), + (this._yPosition = this._defaultOptions.yPosition), + (this._directDescendantItems = new m.QueryList()), + (this._tabSubscription = d.w.EMPTY), + (this._classList = {}), + (this._panelAnimationState = "void"), + (this._animationDone = new s.xQ()), + (this.overlayPanelClass = + this._defaultOptions.overlayPanelClass || ""), + (this.backdropClass = this._defaultOptions.backdropClass), + (this._overlapTrigger = this._defaultOptions.overlapTrigger), + (this._hasBackdrop = this._defaultOptions.hasBackdrop), + (this.closed = new m.EventEmitter()), + (this.close = this.closed), + (this.panelId = "mat-menu-panel-" + tt++); + } + get xPosition() { + return this._xPosition; + } + set xPosition(H) { + (this._xPosition = H), this.setPositionClasses(); + } + get yPosition() { + return this._yPosition; + } + set yPosition(H) { + (this._yPosition = H), this.setPositionClasses(); + } + get overlapTrigger() { + return this._overlapTrigger; + } + set overlapTrigger(H) { + this._overlapTrigger = (0, f.Ig)(H); + } + get hasBackdrop() { + return this._hasBackdrop; + } + set hasBackdrop(H) { + this._hasBackdrop = (0, f.Ig)(H); + } + set panelClass(H) { + const D = this._previousPanelClass; + D && + D.length && + D.split(" ").forEach((U) => { + this._classList[U] = !1; + }), + (this._previousPanelClass = H), + H && + H.length && + (H.split(" ").forEach((U) => { + this._classList[U] = !0; + }), + (this._elementRef.nativeElement.className = "")); + } + get classList() { + return this.panelClass; + } + set classList(H) { + this.panelClass = H; + } + ngOnInit() { + this.setPositionClasses(); + } + ngAfterContentInit() { + this._updateDirectDescendants(), + (this._keyManager = new n.Em(this._directDescendantItems) + .withWrap() + .withTypeAhead() + .withHomeAndEnd()), + (this._tabSubscription = this._keyManager.tabOut.subscribe(() => + this.closed.emit("tab") + )), + this._directDescendantItems.changes + .pipe( + (0, o.O)(this._directDescendantItems), + (0, i.w)((H) => (0, u.T)(...H.map((D) => D._focused))) + ) + .subscribe((H) => this._keyManager.updateActiveItem(H)); + } + ngOnDestroy() { + this._directDescendantItems.destroy(), + this._tabSubscription.unsubscribe(), + this.closed.complete(); + } + _hovered() { + return this._directDescendantItems.changes.pipe( + (0, o.O)(this._directDescendantItems), + (0, i.w)((D) => (0, u.T)(...D.map((U) => U._hovered))) + ); + } + addItem(H) {} + removeItem(H) {} + _handleKeydown(H) { + const D = H.keyCode, + U = this._keyManager; + switch (D) { + case _.hY: + (0, _.Vb)(H) || + (H.preventDefault(), this.closed.emit("keydown")); + break; + case _.oh: + this.parentMenu && + "ltr" === this.direction && + this.closed.emit("keydown"); + break; + case _.SV: + this.parentMenu && + "rtl" === this.direction && + this.closed.emit("keydown"); + break; + default: + (D === _.LH || D === _.JH) && U.setFocusOrigin("keyboard"), + U.onKeydown(H); + } + } + focusFirstItem(H = "program") { + this.lazyContent + ? this._ngZone.onStable + .pipe((0, c.q)(1)) + .subscribe(() => this._focusFirstItem(H)) + : this._focusFirstItem(H); + } + _focusFirstItem(H) { + const D = this._keyManager; + if ( + (D.setFocusOrigin(H).setFirstItemActive(), + !D.activeItem && this._directDescendantItems.length) + ) { + let U = this._directDescendantItems.first._getHostElement() + .parentElement; + for (; U; ) { + if ("menu" === U.getAttribute("role")) { + U.focus(); + break; + } + U = U.parentElement; + } + } + } + resetActiveItem() { + this._keyManager.setActiveItem(-1); + } + setElevation(H) { + const D = Math.min(this._baseElevation + H, 24), + U = `${this._elevationPrefix}${D}`, + X = Object.keys(this._classList).find((_e) => + _e.startsWith(this._elevationPrefix) + ); + (!X || X === this._previousElevation) && + (this._previousElevation && + (this._classList[this._previousElevation] = !1), + (this._classList[U] = !0), + (this._previousElevation = U)); + } + setPositionClasses(H = this.xPosition, D = this.yPosition) { + const U = this._classList; + (U["mat-menu-before"] = "before" === H), + (U["mat-menu-after"] = "after" === H), + (U["mat-menu-above"] = "above" === D), + (U["mat-menu-below"] = "below" === D); + } + _startAnimation() { + this._panelAnimationState = "enter"; + } + _resetAnimation() { + this._panelAnimationState = "void"; + } + _onAnimationDone(H) { + this._animationDone.next(H), (this._isAnimating = !1); + } + _onAnimationStart(H) { + (this._isAnimating = !0), + "enter" === H.toState && + 0 === this._keyManager.activeItemIndex && + (H.element.scrollTop = 0); + } + _updateDirectDescendants() { + this._allItems.changes + .pipe((0, o.O)(this._allItems)) + .subscribe((H) => { + this._directDescendantItems.reset( + H.filter((D) => D._parentMenu === this) + ), + this._directDescendantItems.notifyOnChanges(); + }); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)( + m.ɵɵdirectiveInject(m.ElementRef), + m.ɵɵdirectiveInject(m.NgZone), + m.ɵɵdirectiveInject(gt) + ); + }), + (Ee.ɵdir = m.ɵɵdefineDirective({ + type: Ee, + contentQueries: function (H, D, U) { + if ( + (1 & H && + (m.ɵɵcontentQuery(U, ee, 5), + m.ɵɵcontentQuery(U, Je, 5), + m.ɵɵcontentQuery(U, Je, 4)), + 2 & H) + ) { + let X; + m.ɵɵqueryRefresh((X = m.ɵɵloadQuery())) && + (D.lazyContent = X.first), + m.ɵɵqueryRefresh((X = m.ɵɵloadQuery())) && + (D._allItems = X), + m.ɵɵqueryRefresh((X = m.ɵɵloadQuery())) && (D.items = X); + } + }, + viewQuery: function (H, D) { + if ((1 & H && m.ɵɵviewQuery(m.TemplateRef, 5), 2 & H)) { + let U; + m.ɵɵqueryRefresh((U = m.ɵɵloadQuery())) && + (D.templateRef = U.first); + } + }, + inputs: { + backdropClass: "backdropClass", + ariaLabel: ["aria-label", "ariaLabel"], + ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], + ariaDescribedby: ["aria-describedby", "ariaDescribedby"], + xPosition: "xPosition", + yPosition: "yPosition", + overlapTrigger: "overlapTrigger", + hasBackdrop: "hasBackdrop", + panelClass: ["class", "panelClass"], + classList: "classList", + }, + outputs: { closed: "closed", close: "close" }, + })), + Ee + ); + })(), + ft = (() => { + class Ee extends at { + constructor(H, D, U) { + super(H, D, U), + (this._elevationPrefix = "mat-elevation-z"), + (this._baseElevation = 4); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)( + m.ɵɵdirectiveInject(m.ElementRef), + m.ɵɵdirectiveInject(m.NgZone), + m.ɵɵdirectiveInject(gt) + ); + }), + (Ee.ɵcmp = m.ɵɵdefineComponent({ + type: Ee, + selectors: [["mat-menu"]], + hostVars: 3, + hostBindings: function (H, D) { + 2 & H && + m.ɵɵattribute("aria-label", null)("aria-labelledby", null)( + "aria-describedby", + null + ); + }, + exportAs: ["matMenu"], + features: [ + m.ɵɵProvidersFeature([{ provide: Le, useExisting: Ee }]), + m.ɵɵInheritDefinitionFeature, + ], + ngContentSelectors: L, + decls: 1, + vars: 0, + consts: [ + [ + "tabindex", + "-1", + "role", + "menu", + 1, + "mat-menu-panel", + 3, + "id", + "ngClass", + "keydown", + "click", + ], + [1, "mat-menu-content"], + ], + template: function (H, D) { + 1 & H && + (m.ɵɵprojectionDef(), + m.ɵɵtemplate(0, F, 3, 6, "ng-template")); + }, + directives: [T.NgClass], + styles: [ + "mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n", + ], + encapsulation: 2, + data: { animation: [ie.transformMenu, ie.fadeInItems] }, + changeDetection: 0, + })), + Ee + ); + })(); + const vt = new m.InjectionToken("mat-menu-scroll-strategy"), + ot = { + provide: vt, + deps: [M.aV], + useFactory: function (Ee) { + return () => Ee.scrollStrategies.reposition(); + }, + }, + At = (0, A.i$)({ passive: !0 }); + let Tt = (() => { + class Ee { + constructor(H, D, U, X, _e, Be, $e, st) { + (this._overlay = H), + (this._element = D), + (this._viewContainerRef = U), + (this._menuItemInstance = Be), + (this._dir = $e), + (this._focusMonitor = st), + (this._overlayRef = null), + (this._menuOpen = !1), + (this._closingActionsSubscription = d.w.EMPTY), + (this._hoverSubscription = d.w.EMPTY), + (this._menuCloseSubscription = d.w.EMPTY), + (this._handleTouchStart = (ut) => { + (0, n.yG)(ut) || (this._openedBy = "touch"); + }), + (this._openedBy = void 0), + (this.restoreFocus = !0), + (this.menuOpened = new m.EventEmitter()), + (this.onMenuOpen = this.menuOpened), + (this.menuClosed = new m.EventEmitter()), + (this.onMenuClose = this.menuClosed), + (this._scrollStrategy = X), + (this._parentMaterialMenu = _e instanceof at ? _e : void 0), + D.nativeElement.addEventListener( + "touchstart", + this._handleTouchStart, + At + ), + Be && (Be._triggersSubmenu = this.triggersSubmenu()); + } + get _deprecatedMatMenuTriggerFor() { + return this.menu; + } + set _deprecatedMatMenuTriggerFor(H) { + this.menu = H; + } + get menu() { + return this._menu; + } + set menu(H) { + H !== this._menu && + ((this._menu = H), + this._menuCloseSubscription.unsubscribe(), + H && + (this._menuCloseSubscription = H.close.subscribe((D) => { + this._destroyMenu(D), + ("click" === D || "tab" === D) && + this._parentMaterialMenu && + this._parentMaterialMenu.closed.emit(D); + }))); + } + ngAfterContentInit() { + this._checkMenu(), this._handleHover(); + } + ngOnDestroy() { + this._overlayRef && + (this._overlayRef.dispose(), (this._overlayRef = null)), + this._element.nativeElement.removeEventListener( + "touchstart", + this._handleTouchStart, + At + ), + this._menuCloseSubscription.unsubscribe(), + this._closingActionsSubscription.unsubscribe(), + this._hoverSubscription.unsubscribe(); + } + get menuOpen() { + return this._menuOpen; + } + get dir() { + return this._dir && "rtl" === this._dir.value ? "rtl" : "ltr"; + } + triggersSubmenu() { + return !(!this._menuItemInstance || !this._parentMaterialMenu); + } + toggleMenu() { + return this._menuOpen ? this.closeMenu() : this.openMenu(); + } + openMenu() { + if (this._menuOpen) return; + this._checkMenu(); + const H = this._createOverlay(), + D = H.getConfig(); + this._setPosition(D.positionStrategy), + (D.hasBackdrop = + null == this.menu.hasBackdrop + ? !this.triggersSubmenu() + : this.menu.hasBackdrop), + H.attach(this._getPortal()), + this.menu.lazyContent && + this.menu.lazyContent.attach(this.menuData), + (this._closingActionsSubscription = this._menuClosingActions().subscribe( + () => this.closeMenu() + )), + this._initMenu(), + this.menu instanceof at && this.menu._startAnimation(); + } + closeMenu() { + this.menu.close.emit(); + } + focus(H, D) { + this._focusMonitor && H + ? this._focusMonitor.focusVia(this._element, H, D) + : this._element.nativeElement.focus(D); + } + updatePosition() { + var H; + null === (H = this._overlayRef) || + void 0 === H || + H.updatePosition(); + } + _destroyMenu(H) { + if (!this._overlayRef || !this.menuOpen) return; + const D = this.menu; + this._closingActionsSubscription.unsubscribe(), + this._overlayRef.detach(), + this.restoreFocus && + ("keydown" === H || + !this._openedBy || + !this.triggersSubmenu()) && + this.focus(this._openedBy), + (this._openedBy = void 0), + D instanceof at + ? (D._resetAnimation(), + D.lazyContent + ? D._animationDone + .pipe( + (0, l.h)((U) => "void" === U.toState), + (0, c.q)(1), + (0, g.R)(D.lazyContent._attached) + ) + .subscribe({ + next: () => D.lazyContent.detach(), + complete: () => this._setIsMenuOpen(!1), + }) + : this._setIsMenuOpen(!1)) + : (this._setIsMenuOpen(!1), + D.lazyContent && D.lazyContent.detach()); + } + _initMenu() { + (this.menu.parentMenu = this.triggersSubmenu() + ? this._parentMaterialMenu + : void 0), + (this.menu.direction = this.dir), + this._setMenuElevation(), + this.menu.focusFirstItem(this._openedBy || "program"), + this._setIsMenuOpen(!0); + } + _setMenuElevation() { + if (this.menu.setElevation) { + let H = 0, + D = this.menu.parentMenu; + for (; D; ) H++, (D = D.parentMenu); + this.menu.setElevation(H); + } + } + _setIsMenuOpen(H) { + (this._menuOpen = H), + this._menuOpen + ? this.menuOpened.emit() + : this.menuClosed.emit(), + this.triggersSubmenu() && + this._menuItemInstance._setHighlighted(H); + } + _checkMenu() {} + _createOverlay() { + if (!this._overlayRef) { + const H = this._getOverlayConfig(); + this._subscribeToPositions(H.positionStrategy), + (this._overlayRef = this._overlay.create(H)), + this._overlayRef.keydownEvents().subscribe(); + } + return this._overlayRef; + } + _getOverlayConfig() { + return new M.X_({ + positionStrategy: this._overlay + .position() + .flexibleConnectedTo(this._element) + .withLockedPosition() + .withGrowAfterOpen() + .withTransformOriginOn( + ".mat-menu-panel, .mat-mdc-menu-panel" + ), + backdropClass: + this.menu.backdropClass || "cdk-overlay-transparent-backdrop", + panelClass: this.menu.overlayPanelClass, + scrollStrategy: this._scrollStrategy(), + direction: this._dir, + }); + } + _subscribeToPositions(H) { + this.menu.setPositionClasses && + H.positionChanges.subscribe((D) => { + this.menu.setPositionClasses( + "start" === D.connectionPair.overlayX ? "after" : "before", + "top" === D.connectionPair.overlayY ? "below" : "above" + ); + }); + } + _setPosition(H) { + let [D, U] = + "before" === this.menu.xPosition + ? ["end", "start"] + : ["start", "end"], + [X, _e] = + "above" === this.menu.yPosition + ? ["bottom", "top"] + : ["top", "bottom"], + [Be, $e] = [X, _e], + [st, ut] = [D, U], + St = 0; + this.triggersSubmenu() + ? ((ut = D = + "before" === this.menu.xPosition ? "start" : "end"), + (U = st = "end" === D ? "start" : "end"), + (St = "bottom" === X ? 8 : -8)) + : this.menu.overlapTrigger || + ((Be = "top" === X ? "bottom" : "top"), + ($e = "top" === _e ? "bottom" : "top")), + H.withPositions([ + { + originX: D, + originY: Be, + overlayX: st, + overlayY: X, + offsetY: St, + }, + { + originX: U, + originY: Be, + overlayX: ut, + overlayY: X, + offsetY: St, + }, + { + originX: D, + originY: $e, + overlayX: st, + overlayY: _e, + offsetY: -St, + }, + { + originX: U, + originY: $e, + overlayX: ut, + overlayY: _e, + offsetY: -St, + }, + ]); + } + _menuClosingActions() { + const H = this._overlayRef.backdropClick(), + D = this._overlayRef.detachments(), + U = this._parentMaterialMenu + ? this._parentMaterialMenu.closed + : (0, h.of)(), + X = this._parentMaterialMenu + ? this._parentMaterialMenu._hovered().pipe( + (0, l.h)((_e) => _e !== this._menuItemInstance), + (0, l.h)(() => this._menuOpen) + ) + : (0, h.of)(); + return (0, u.T)(H, U, X, D); + } + _handleMousedown(H) { + (0, n.X6)(H) || + ((this._openedBy = 0 === H.button ? "mouse" : void 0), + this.triggersSubmenu() && H.preventDefault()); + } + _handleKeydown(H) { + const D = H.keyCode; + (D === _.K5 || D === _.L_) && (this._openedBy = "keyboard"), + this.triggersSubmenu() && + ((D === _.SV && "ltr" === this.dir) || + (D === _.oh && "rtl" === this.dir)) && + ((this._openedBy = "keyboard"), this.openMenu()); + } + _handleClick(H) { + this.triggersSubmenu() + ? (H.stopPropagation(), this.openMenu()) + : this.toggleMenu(); + } + _handleHover() { + !this.triggersSubmenu() || + !this._parentMaterialMenu || + (this._hoverSubscription = this._parentMaterialMenu + ._hovered() + .pipe( + (0, l.h)( + (H) => H === this._menuItemInstance && !H.disabled + ), + (0, b.g)(0, r.E) + ) + .subscribe(() => { + (this._openedBy = "mouse"), + this.menu instanceof at && this.menu._isAnimating + ? this.menu._animationDone + .pipe( + (0, c.q)(1), + (0, b.g)(0, r.E), + (0, g.R)(this._parentMaterialMenu._hovered()) + ) + .subscribe(() => this.openMenu()) + : this.openMenu(); + })); + } + _getPortal() { + return ( + (!this._portal || + this._portal.templateRef !== this.menu.templateRef) && + (this._portal = new x.UE( + this.menu.templateRef, + this._viewContainerRef + )), + this._portal + ); + } + } + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)( + m.ɵɵdirectiveInject(M.aV), + m.ɵɵdirectiveInject(m.ElementRef), + m.ɵɵdirectiveInject(m.ViewContainerRef), + m.ɵɵdirectiveInject(vt), + m.ɵɵdirectiveInject(Le, 8), + m.ɵɵdirectiveInject(Je, 10), + m.ɵɵdirectiveInject(S.Is, 8), + m.ɵɵdirectiveInject(n.tE) + ); + }), + (Ee.ɵdir = m.ɵɵdefineDirective({ + type: Ee, + hostAttrs: ["aria-haspopup", "true"], + hostVars: 2, + hostBindings: function (H, D) { + 1 & H && + m.ɵɵlistener("click", function (X) { + return D._handleClick(X); + })("mousedown", function (X) { + return D._handleMousedown(X); + })("keydown", function (X) { + return D._handleKeydown(X); + }), + 2 & H && + m.ɵɵattribute("aria-expanded", D.menuOpen || null)( + "aria-controls", + D.menuOpen ? D.menu.panelId : null + ); + }, + inputs: { + _deprecatedMatMenuTriggerFor: [ + "mat-menu-trigger-for", + "_deprecatedMatMenuTriggerFor", + ], + menu: ["matMenuTriggerFor", "menu"], + menuData: ["matMenuTriggerData", "menuData"], + restoreFocus: ["matMenuTriggerRestoreFocus", "restoreFocus"], + }, + outputs: { + menuOpened: "menuOpened", + onMenuOpen: "onMenuOpen", + menuClosed: "menuClosed", + onMenuClose: "onMenuClose", + }, + })), + Ee + ); + })(), + Bt = (() => { + class Ee extends Tt {} + return ( + (Ee.ɵfac = (function () { + let fe; + return function (D) { + return (fe || (fe = m.ɵɵgetInheritedFactory(Ee)))(D || Ee); + }; + })()), + (Ee.ɵdir = m.ɵɵdefineDirective({ + type: Ee, + selectors: [ + ["", "mat-menu-trigger-for", ""], + ["", "matMenuTriggerFor", ""], + ], + hostAttrs: [1, "mat-menu-trigger"], + exportAs: ["matMenuTrigger"], + features: [m.ɵɵInheritDefinitionFeature], + })), + Ee + ); + })(), + Et = (() => { + class Ee {} + return ( + (Ee.ɵfac = function (H) { + return new (H || Ee)(); + }), + (Ee.ɵmod = m.ɵɵdefineNgModule({ type: Ee })), + (Ee.ɵinj = m.ɵɵdefineInjector({ + providers: [ot], + imports: [ + [T.CommonModule, O.MatCommonModule, O.MatRippleModule, M.U8], + w.ZD, + O.MatCommonModule, + ], + })), + Ee + ); + })(); + }, + 7850: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_PAGINATOR_DEFAULT_OPTIONS: () => st, + MAT_PAGINATOR_INTL_PROVIDER: () => _e, + MAT_PAGINATOR_INTL_PROVIDER_FACTORY: () => X, + MatPaginator: () => Xt, + MatPaginatorIntl: () => U, + MatPaginatorModule: () => tn, + PageEvent: () => $e, + _MatPaginatorBase: () => St, + }); + var n = p(9808), + f = p(5e3), + _ = p(508), + m = p(7423), + s = p(4107), + d = p(1314), + u = p(5664), + h = p(9071), + r = p(3191), + o = p(1159), + i = p(8929), + c = p(6053), + l = p(1961), + g = p(6498), + b = p(2986), + y = p(1307), + x = p(13), + T = p(4850), + O = p(1059), + M = p(7625), + A = p(925); + const w = new Set(); + let I, + C = (() => { + class Dt { + constructor(et) { + (this._platform = et), + (this._matchMedia = + this._platform.isBrowser && window.matchMedia + ? window.matchMedia.bind(window) + : F); + } + matchMedia(et) { + return ( + (this._platform.WEBKIT || this._platform.BLINK) && + (function (Dt) { + if (!w.has(Dt)) + try { + I || + ((I = document.createElement("style")), + I.setAttribute("type", "text/css"), + document.head.appendChild(I)), + I.sheet && + (I.sheet.insertRule(`@media ${Dt} {body{ }}`, 0), + w.add(Dt)); + } catch (Kt) { + console.error(Kt); + } + })(et), + this._matchMedia(et) + ); + } + } + return ( + (Dt.ɵfac = function (et) { + return new (et || Dt)(f.ɵɵinject(A.t4)); + }), + (Dt.ɵprov = f.ɵɵdefineInjectable({ + token: Dt, + factory: Dt.ɵfac, + providedIn: "root", + })), + Dt + ); + })(); + function F(Dt) { + return { + matches: "all" === Dt || "" === Dt, + media: Dt, + addListener: () => {}, + removeListener: () => {}, + }; + } + let ie = (() => { + class Dt { + constructor(et, xt) { + (this._mediaMatcher = et), + (this._zone = xt), + (this._queries = new Map()), + (this._destroySubject = new i.xQ()); + } + ngOnDestroy() { + this._destroySubject.next(), this._destroySubject.complete(); + } + isMatched(et) { + return Y((0, r.Eq)(et)).some( + (Lt) => this._registerQuery(Lt).mql.matches + ); + } + observe(et) { + const Lt = Y((0, r.Eq)(et)).map( + (mt) => this._registerQuery(mt).observable + ); + let Qe = (0, c.aj)(Lt); + return ( + (Qe = (0, l.z)( + Qe.pipe((0, b.q)(1)), + Qe.pipe((0, y.T)(1), (0, x.b)(0)) + )), + Qe.pipe( + (0, T.U)((mt) => { + const Vt = { matches: !1, breakpoints: {} }; + return ( + mt.forEach(({ matches: qt, query: Ne }) => { + (Vt.matches = Vt.matches || qt), + (Vt.breakpoints[Ne] = qt); + }), + Vt + ); + }) + ) + ); + } + _registerQuery(et) { + if (this._queries.has(et)) return this._queries.get(et); + const xt = this._mediaMatcher.matchMedia(et), + Qe = { + observable: new g.y((mt) => { + const Vt = (qt) => this._zone.run(() => mt.next(qt)); + return ( + xt.addListener(Vt), + () => { + xt.removeListener(Vt); + } + ); + }).pipe( + (0, O.O)(xt), + (0, T.U)(({ matches: mt }) => ({ query: et, matches: mt })), + (0, M.R)(this._destroySubject) + ), + mql: xt, + }; + return this._queries.set(et, Qe), Qe; + } + } + return ( + (Dt.ɵfac = function (et) { + return new (et || Dt)(f.ɵɵinject(C), f.ɵɵinject(f.NgZone)); + }), + (Dt.ɵprov = f.ɵɵdefineInjectable({ + token: Dt, + factory: Dt.ɵfac, + providedIn: "root", + })), + Dt + ); + })(); + function Y(Dt) { + return Dt.map((Kt) => Kt.split(",")) + .reduce((Kt, et) => Kt.concat(et)) + .map((Kt) => Kt.trim()); + } + var ee = p(7429), + $ = p(1777), + J = p(226); + const ne = { + tooltipState: (0, $.X$)("state", [ + (0, $.SB)( + "initial, void, hidden", + (0, $.oB)({ opacity: 0, transform: "scale(0)" }) + ), + (0, $.SB)("visible", (0, $.oB)({ transform: "scale(1)" })), + (0, $.eR)( + "* => visible", + (0, $.jt)( + "200ms cubic-bezier(0, 0, 0.2, 1)", + (0, $.F4)([ + (0, $.oB)({ opacity: 0, transform: "scale(0)", offset: 0 }), + (0, $.oB)({ + opacity: 0.5, + transform: "scale(0.99)", + offset: 0.5, + }), + (0, $.oB)({ opacity: 1, transform: "scale(1)", offset: 1 }), + ]) + ) + ), + (0, $.eR)( + "* => hidden", + (0, $.jt)( + "100ms cubic-bezier(0, 0, 0.2, 1)", + (0, $.oB)({ opacity: 0 }) + ) + ), + ]), + }, + Oe = "tooltip-panel", + Le = (0, A.i$)({ passive: !0 }), + gt = new f.InjectionToken("mat-tooltip-scroll-strategy"), + tt = { + provide: gt, + deps: [d.aV], + useFactory: function (Dt) { + return () => Dt.scrollStrategies.reposition({ scrollThrottle: 20 }); + }, + }, + at = new f.InjectionToken("mat-tooltip-default-options", { + providedIn: "root", + factory: function () { + return { showDelay: 0, hideDelay: 0, touchendHideDelay: 1500 }; + }, + }); + let vt = (() => { + class Dt { + constructor(et, xt, Lt, Qe, mt, Vt, qt, Ne, Se, te, re, Me) { + (this._overlay = et), + (this._elementRef = xt), + (this._scrollDispatcher = Lt), + (this._viewContainerRef = Qe), + (this._ngZone = mt), + (this._platform = Vt), + (this._ariaDescriber = qt), + (this._focusMonitor = Ne), + (this._dir = te), + (this._defaultOptions = re), + (this._position = "below"), + (this._disabled = !1), + (this._viewInitialized = !1), + (this._pointerExitEventsInitialized = !1), + (this._viewportMargin = 8), + (this._cssClassPrefix = "mat"), + (this._showDelay = this._defaultOptions.showDelay), + (this._hideDelay = this._defaultOptions.hideDelay), + (this.touchGestures = "auto"), + (this._message = ""), + (this._passiveListeners = []), + (this._destroyed = new i.xQ()), + (this._handleKeydown = (ze) => { + this._isTooltipVisible() && + ze.keyCode === o.hY && + !(0, o.Vb)(ze) && + (ze.preventDefault(), + ze.stopPropagation(), + this._ngZone.run(() => this.hide(0))); + }), + (this._scrollStrategy = Se), + (this._document = Me), + re && + (re.position && (this.position = re.position), + re.touchGestures && (this.touchGestures = re.touchGestures)), + te.change.pipe((0, M.R)(this._destroyed)).subscribe(() => { + this._overlayRef && this._updatePosition(this._overlayRef); + }), + mt.runOutsideAngular(() => { + xt.nativeElement.addEventListener( + "keydown", + this._handleKeydown + ); + }); + } + get position() { + return this._position; + } + set position(et) { + var xt; + et !== this._position && + ((this._position = et), + this._overlayRef && + (this._updatePosition(this._overlayRef), + null === (xt = this._tooltipInstance) || + void 0 === xt || + xt.show(0), + this._overlayRef.updatePosition())); + } + get disabled() { + return this._disabled; + } + set disabled(et) { + (this._disabled = (0, r.Ig)(et)), + this._disabled + ? this.hide(0) + : this._setupPointerEnterEventsIfNeeded(); + } + get showDelay() { + return this._showDelay; + } + set showDelay(et) { + this._showDelay = (0, r.su)(et); + } + get hideDelay() { + return this._hideDelay; + } + set hideDelay(et) { + this._hideDelay = (0, r.su)(et); + } + get message() { + return this._message; + } + set message(et) { + this._ariaDescriber.removeDescription( + this._elementRef.nativeElement, + this._message, + "tooltip" + ), + (this._message = null != et ? String(et).trim() : ""), + !this._message && this._isTooltipVisible() + ? this.hide(0) + : (this._setupPointerEnterEventsIfNeeded(), + this._updateTooltipMessage(), + this._ngZone.runOutsideAngular(() => { + Promise.resolve().then(() => { + this._ariaDescriber.describe( + this._elementRef.nativeElement, + this.message, + "tooltip" + ); + }); + })); + } + get tooltipClass() { + return this._tooltipClass; + } + set tooltipClass(et) { + (this._tooltipClass = et), + this._tooltipInstance && + this._setTooltipClass(this._tooltipClass); + } + ngAfterViewInit() { + (this._viewInitialized = !0), + this._setupPointerEnterEventsIfNeeded(), + this._focusMonitor + .monitor(this._elementRef) + .pipe((0, M.R)(this._destroyed)) + .subscribe((et) => { + et + ? "keyboard" === et && this._ngZone.run(() => this.show()) + : this._ngZone.run(() => this.hide(0)); + }); + } + ngOnDestroy() { + const et = this._elementRef.nativeElement; + clearTimeout(this._touchstartTimeout), + this._overlayRef && + (this._overlayRef.dispose(), (this._tooltipInstance = null)), + et.removeEventListener("keydown", this._handleKeydown), + this._passiveListeners.forEach(([xt, Lt]) => { + et.removeEventListener(xt, Lt, Le); + }), + (this._passiveListeners.length = 0), + this._destroyed.next(), + this._destroyed.complete(), + this._ariaDescriber.removeDescription( + et, + this.message, + "tooltip" + ), + this._focusMonitor.stopMonitoring(et); + } + show(et = this.showDelay) { + if ( + this.disabled || + !this.message || + (this._isTooltipVisible() && + !this._tooltipInstance._showTimeoutId && + !this._tooltipInstance._hideTimeoutId) + ) + return; + const xt = this._createOverlay(); + this._detach(), + (this._portal = + this._portal || + new ee.C5(this._tooltipComponent, this._viewContainerRef)), + (this._tooltipInstance = xt.attach(this._portal).instance), + this._tooltipInstance + .afterHidden() + .pipe((0, M.R)(this._destroyed)) + .subscribe(() => this._detach()), + this._setTooltipClass(this._tooltipClass), + this._updateTooltipMessage(), + this._tooltipInstance.show(et); + } + hide(et = this.hideDelay) { + this._tooltipInstance && this._tooltipInstance.hide(et); + } + toggle() { + this._isTooltipVisible() ? this.hide() : this.show(); + } + _isTooltipVisible() { + return ( + !!this._tooltipInstance && this._tooltipInstance.isVisible() + ); + } + _createOverlay() { + if (this._overlayRef) return this._overlayRef; + const et = this._scrollDispatcher.getAncestorScrollContainers( + this._elementRef + ), + xt = this._overlay + .position() + .flexibleConnectedTo(this._elementRef) + .withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`) + .withFlexibleDimensions(!1) + .withViewportMargin(this._viewportMargin) + .withScrollableContainers(et); + return ( + xt.positionChanges + .pipe((0, M.R)(this._destroyed)) + .subscribe((Lt) => { + this._updateCurrentPositionClass(Lt.connectionPair), + this._tooltipInstance && + Lt.scrollableViewProperties.isOverlayClipped && + this._tooltipInstance.isVisible() && + this._ngZone.run(() => this.hide(0)); + }), + (this._overlayRef = this._overlay.create({ + direction: this._dir, + positionStrategy: xt, + panelClass: `${this._cssClassPrefix}-${Oe}`, + scrollStrategy: this._scrollStrategy(), + })), + this._updatePosition(this._overlayRef), + this._overlayRef + .detachments() + .pipe((0, M.R)(this._destroyed)) + .subscribe(() => this._detach()), + this._overlayRef + .outsidePointerEvents() + .pipe((0, M.R)(this._destroyed)) + .subscribe(() => { + var Lt; + return null === (Lt = this._tooltipInstance) || + void 0 === Lt + ? void 0 + : Lt._handleBodyInteraction(); + }), + this._overlayRef + ); + } + _detach() { + this._overlayRef && + this._overlayRef.hasAttached() && + this._overlayRef.detach(), + (this._tooltipInstance = null); + } + _updatePosition(et) { + const xt = et.getConfig().positionStrategy, + Lt = this._getOrigin(), + Qe = this._getOverlayPosition(); + xt.withPositions([ + this._addOffset( + Object.assign(Object.assign({}, Lt.main), Qe.main) + ), + this._addOffset( + Object.assign(Object.assign({}, Lt.fallback), Qe.fallback) + ), + ]); + } + _addOffset(et) { + return et; + } + _getOrigin() { + const et = !this._dir || "ltr" == this._dir.value, + xt = this.position; + let Lt; + "above" == xt || "below" == xt + ? (Lt = { + originX: "center", + originY: "above" == xt ? "top" : "bottom", + }) + : "before" == xt || + ("left" == xt && et) || + ("right" == xt && !et) + ? (Lt = { originX: "start", originY: "center" }) + : ("after" == xt || + ("right" == xt && et) || + ("left" == xt && !et)) && + (Lt = { originX: "end", originY: "center" }); + const { x: Qe, y: mt } = this._invertPosition( + Lt.originX, + Lt.originY + ); + return { main: Lt, fallback: { originX: Qe, originY: mt } }; + } + _getOverlayPosition() { + const et = !this._dir || "ltr" == this._dir.value, + xt = this.position; + let Lt; + "above" == xt + ? (Lt = { overlayX: "center", overlayY: "bottom" }) + : "below" == xt + ? (Lt = { overlayX: "center", overlayY: "top" }) + : "before" == xt || + ("left" == xt && et) || + ("right" == xt && !et) + ? (Lt = { overlayX: "end", overlayY: "center" }) + : ("after" == xt || + ("right" == xt && et) || + ("left" == xt && !et)) && + (Lt = { overlayX: "start", overlayY: "center" }); + const { x: Qe, y: mt } = this._invertPosition( + Lt.overlayX, + Lt.overlayY + ); + return { main: Lt, fallback: { overlayX: Qe, overlayY: mt } }; + } + _updateTooltipMessage() { + this._tooltipInstance && + ((this._tooltipInstance.message = this.message), + this._tooltipInstance._markForCheck(), + this._ngZone.onMicrotaskEmpty + .pipe((0, b.q)(1), (0, M.R)(this._destroyed)) + .subscribe(() => { + this._tooltipInstance && this._overlayRef.updatePosition(); + })); + } + _setTooltipClass(et) { + this._tooltipInstance && + ((this._tooltipInstance.tooltipClass = et), + this._tooltipInstance._markForCheck()); + } + _invertPosition(et, xt) { + return ( + "above" === this.position || "below" === this.position + ? "top" === xt + ? (xt = "bottom") + : "bottom" === xt && (xt = "top") + : "end" === et + ? (et = "start") + : "start" === et && (et = "end"), + { x: et, y: xt } + ); + } + _updateCurrentPositionClass(et) { + const { overlayY: xt, originX: Lt, originY: Qe } = et; + let mt; + if ( + ((mt = + "center" === xt + ? this._dir && "rtl" === this._dir.value + ? "end" === Lt + ? "left" + : "right" + : "start" === Lt + ? "left" + : "right" + : "bottom" === xt && "top" === Qe + ? "above" + : "below"), + mt !== this._currentPosition) + ) { + const Vt = this._overlayRef; + if (Vt) { + const qt = `${this._cssClassPrefix}-${Oe}-`; + Vt.removePanelClass(qt + this._currentPosition), + Vt.addPanelClass(qt + mt); + } + this._currentPosition = mt; + } + } + _setupPointerEnterEventsIfNeeded() { + this._disabled || + !this.message || + !this._viewInitialized || + this._passiveListeners.length || + (this._platformSupportsMouseEvents() + ? this._passiveListeners.push([ + "mouseenter", + () => { + this._setupPointerExitEventsIfNeeded(), this.show(); + }, + ]) + : "off" !== this.touchGestures && + (this._disableNativeGesturesIfNecessary(), + this._passiveListeners.push([ + "touchstart", + () => { + this._setupPointerExitEventsIfNeeded(), + clearTimeout(this._touchstartTimeout), + (this._touchstartTimeout = setTimeout( + () => this.show(), + 500 + )); + }, + ])), + this._addListeners(this._passiveListeners)); + } + _setupPointerExitEventsIfNeeded() { + if (this._pointerExitEventsInitialized) return; + this._pointerExitEventsInitialized = !0; + const et = []; + if (this._platformSupportsMouseEvents()) + et.push( + ["mouseleave", () => this.hide()], + ["wheel", (xt) => this._wheelListener(xt)] + ); + else if ("off" !== this.touchGestures) { + this._disableNativeGesturesIfNecessary(); + const xt = () => { + clearTimeout(this._touchstartTimeout), + this.hide(this._defaultOptions.touchendHideDelay); + }; + et.push(["touchend", xt], ["touchcancel", xt]); + } + this._addListeners(et), this._passiveListeners.push(...et); + } + _addListeners(et) { + et.forEach(([xt, Lt]) => { + this._elementRef.nativeElement.addEventListener(xt, Lt, Le); + }); + } + _platformSupportsMouseEvents() { + return !this._platform.IOS && !this._platform.ANDROID; + } + _wheelListener(et) { + if (this._isTooltipVisible()) { + const xt = this._document.elementFromPoint( + et.clientX, + et.clientY + ), + Lt = this._elementRef.nativeElement; + xt !== Lt && !Lt.contains(xt) && this.hide(); + } + } + _disableNativeGesturesIfNecessary() { + const et = this.touchGestures; + if ("off" !== et) { + const xt = this._elementRef.nativeElement, + Lt = xt.style; + ("on" === et || + ("INPUT" !== xt.nodeName && "TEXTAREA" !== xt.nodeName)) && + (Lt.userSelect = Lt.msUserSelect = Lt.webkitUserSelect = Lt.MozUserSelect = + "none"), + ("on" === et || !xt.draggable) && + (Lt.webkitUserDrag = "none"), + (Lt.touchAction = "none"), + (Lt.webkitTapHighlightColor = "transparent"); + } + } + } + return ( + (Dt.ɵfac = function (et) { + f.ɵɵinvalidFactory(); + }), + (Dt.ɵdir = f.ɵɵdefineDirective({ + type: Dt, + inputs: { + position: ["matTooltipPosition", "position"], + disabled: ["matTooltipDisabled", "disabled"], + showDelay: ["matTooltipShowDelay", "showDelay"], + hideDelay: ["matTooltipHideDelay", "hideDelay"], + touchGestures: ["matTooltipTouchGestures", "touchGestures"], + message: ["matTooltip", "message"], + tooltipClass: ["matTooltipClass", "tooltipClass"], + }, + })), + Dt + ); + })(), + yt = (() => { + class Dt extends vt { + constructor(et, xt, Lt, Qe, mt, Vt, qt, Ne, Se, te, re, Me) { + super(et, xt, Lt, Qe, mt, Vt, qt, Ne, Se, te, re, Me), + (this._tooltipComponent = _t); + } + } + return ( + (Dt.ɵfac = function (et) { + return new (et || Dt)( + f.ɵɵdirectiveInject(d.aV), + f.ɵɵdirectiveInject(f.ElementRef), + f.ɵɵdirectiveInject(h.mF), + f.ɵɵdirectiveInject(f.ViewContainerRef), + f.ɵɵdirectiveInject(f.NgZone), + f.ɵɵdirectiveInject(A.t4), + f.ɵɵdirectiveInject(u.$s), + f.ɵɵdirectiveInject(u.tE), + f.ɵɵdirectiveInject(gt), + f.ɵɵdirectiveInject(J.Is, 8), + f.ɵɵdirectiveInject(at, 8), + f.ɵɵdirectiveInject(n.DOCUMENT) + ); + }), + (Dt.ɵdir = f.ɵɵdefineDirective({ + type: Dt, + selectors: [["", "matTooltip", ""]], + hostAttrs: [1, "mat-tooltip-trigger"], + exportAs: ["matTooltip"], + features: [f.ɵɵInheritDefinitionFeature], + })), + Dt + ); + })(), + ot = (() => { + class Dt { + constructor(et) { + (this._changeDetectorRef = et), + (this._visibility = "initial"), + (this._closeOnInteraction = !1), + (this._onHide = new i.xQ()); + } + show(et) { + clearTimeout(this._hideTimeoutId), + (this._closeOnInteraction = !0), + (this._showTimeoutId = setTimeout(() => { + (this._visibility = "visible"), + (this._showTimeoutId = void 0), + this._onShow(), + this._markForCheck(); + }, et)); + } + hide(et) { + clearTimeout(this._showTimeoutId), + (this._hideTimeoutId = setTimeout(() => { + (this._visibility = "hidden"), + (this._hideTimeoutId = void 0), + this._markForCheck(); + }, et)); + } + afterHidden() { + return this._onHide; + } + isVisible() { + return "visible" === this._visibility; + } + ngOnDestroy() { + clearTimeout(this._showTimeoutId), + clearTimeout(this._hideTimeoutId), + this._onHide.complete(); + } + _animationStart() { + this._closeOnInteraction = !1; + } + _animationDone(et) { + const xt = et.toState; + "hidden" === xt && !this.isVisible() && this._onHide.next(), + ("visible" === xt || "hidden" === xt) && + (this._closeOnInteraction = !0); + } + _handleBodyInteraction() { + this._closeOnInteraction && this.hide(0); + } + _markForCheck() { + this._changeDetectorRef.markForCheck(); + } + _onShow() {} + } + return ( + (Dt.ɵfac = function (et) { + return new (et || Dt)(f.ɵɵdirectiveInject(f.ChangeDetectorRef)); + }), + (Dt.ɵdir = f.ɵɵdefineDirective({ type: Dt })), + Dt + ); + })(), + _t = (() => { + class Dt extends ot { + constructor(et, xt) { + super(et), + (this._breakpointObserver = xt), + (this._isHandset = this._breakpointObserver.observe( + "(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)" + )); + } + } + return ( + (Dt.ɵfac = function (et) { + return new (et || Dt)( + f.ɵɵdirectiveInject(f.ChangeDetectorRef), + f.ɵɵdirectiveInject(ie) + ); + }), + (Dt.ɵcmp = f.ɵɵdefineComponent({ + type: Dt, + selectors: [["mat-tooltip-component"]], + hostAttrs: ["aria-hidden", "true"], + hostVars: 2, + hostBindings: function (et, xt) { + 2 & et && + f.ɵɵstyleProp( + "zoom", + "visible" === xt._visibility ? 1 : null + ); + }, + features: [f.ɵɵInheritDefinitionFeature], + decls: 3, + vars: 7, + consts: [[1, "mat-tooltip", 3, "ngClass"]], + template: function (et, xt) { + if ( + (1 & et && + (f.ɵɵelementStart(0, "div", 0), + f.ɵɵlistener("@state.start", function () { + return xt._animationStart(); + })("@state.done", function (Qe) { + return xt._animationDone(Qe); + }), + f.ɵɵpipe(1, "async"), + f.ɵɵtext(2), + f.ɵɵelementEnd()), + 2 & et) + ) { + let Lt; + f.ɵɵclassProp( + "mat-tooltip-handset", + null == (Lt = f.ɵɵpipeBind1(1, 5, xt._isHandset)) + ? null + : Lt.matches + ), + f.ɵɵproperty("ngClass", xt.tooltipClass)( + "@state", + xt._visibility + ), + f.ɵɵadvance(2), + f.ɵɵtextInterpolate(xt.message); + } + }, + directives: [n.NgClass], + pipes: [n.AsyncPipe], + styles: [ + ".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n", + ], + encapsulation: 2, + data: { animation: [ne.tooltipState] }, + changeDetection: 0, + })), + Dt + ); + })(), + At = (() => { + class Dt {} + return ( + (Dt.ɵfac = function (et) { + return new (et || Dt)(); + }), + (Dt.ɵmod = f.ɵɵdefineNgModule({ type: Dt })), + (Dt.ɵinj = f.ɵɵdefineInjector({ + providers: [tt], + imports: [ + [u.rt, n.CommonModule, d.U8, _.MatCommonModule], + _.MatCommonModule, + h.ZD, + ], + })), + Dt + ); + })(); + var Tt = p(7322); + function Bt(Dt, Kt) { + if ( + (1 & Dt && + (f.ɵɵelementStart(0, "mat-option", 19), + f.ɵɵtext(1), + f.ɵɵelementEnd()), + 2 & Dt) + ) { + const et = Kt.$implicit; + f.ɵɵproperty("value", et), + f.ɵɵadvance(1), + f.ɵɵtextInterpolate1(" ", et, " "); + } + } + function Et(Dt, Kt) { + if (1 & Dt) { + const et = f.ɵɵgetCurrentView(); + f.ɵɵelementStart(0, "mat-form-field", 16), + f.ɵɵelementStart(1, "mat-select", 17), + f.ɵɵlistener("selectionChange", function (Lt) { + return ( + f.ɵɵrestoreView(et), + f.ɵɵnextContext(2)._changePageSize(Lt.value) + ); + }), + f.ɵɵtemplate(2, Bt, 2, 2, "mat-option", 18), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(); + } + if (2 & Dt) { + const et = f.ɵɵnextContext(2); + f.ɵɵproperty("appearance", et._formFieldAppearance)( + "color", + et.color + ), + f.ɵɵadvance(1), + f.ɵɵproperty("value", et.pageSize)("disabled", et.disabled)( + "aria-label", + et._intl.itemsPerPageLabel + ), + f.ɵɵadvance(1), + f.ɵɵproperty("ngForOf", et._displayedPageSizeOptions); + } + } + function Ee(Dt, Kt) { + if ( + (1 & Dt && + (f.ɵɵelementStart(0, "div", 20), f.ɵɵtext(1), f.ɵɵelementEnd()), + 2 & Dt) + ) { + const et = f.ɵɵnextContext(2); + f.ɵɵadvance(1), f.ɵɵtextInterpolate(et.pageSize); + } + } + function fe(Dt, Kt) { + if ( + (1 & Dt && + (f.ɵɵelementStart(0, "div", 12), + f.ɵɵelementStart(1, "div", 13), + f.ɵɵtext(2), + f.ɵɵelementEnd(), + f.ɵɵtemplate(3, Et, 3, 6, "mat-form-field", 14), + f.ɵɵtemplate(4, Ee, 2, 1, "div", 15), + f.ɵɵelementEnd()), + 2 & Dt) + ) { + const et = f.ɵɵnextContext(); + f.ɵɵadvance(2), + f.ɵɵtextInterpolate1(" ", et._intl.itemsPerPageLabel, " "), + f.ɵɵadvance(1), + f.ɵɵproperty("ngIf", et._displayedPageSizeOptions.length > 1), + f.ɵɵadvance(1), + f.ɵɵproperty("ngIf", et._displayedPageSizeOptions.length <= 1); + } + } + function H(Dt, Kt) { + if (1 & Dt) { + const et = f.ɵɵgetCurrentView(); + f.ɵɵelementStart(0, "button", 21), + f.ɵɵlistener("click", function () { + return f.ɵɵrestoreView(et), f.ɵɵnextContext().firstPage(); + }), + f.ɵɵnamespaceSVG(), + f.ɵɵelementStart(1, "svg", 7), + f.ɵɵelement(2, "path", 22), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(); + } + if (2 & Dt) { + const et = f.ɵɵnextContext(); + f.ɵɵproperty("matTooltip", et._intl.firstPageLabel)( + "matTooltipDisabled", + et._previousButtonsDisabled() + )("matTooltipPosition", "above")( + "disabled", + et._previousButtonsDisabled() + ), + f.ɵɵattribute("aria-label", et._intl.firstPageLabel); + } + } + function D(Dt, Kt) { + if (1 & Dt) { + const et = f.ɵɵgetCurrentView(); + f.ɵɵnamespaceSVG(), + f.ɵɵnamespaceHTML(), + f.ɵɵelementStart(0, "button", 23), + f.ɵɵlistener("click", function () { + return f.ɵɵrestoreView(et), f.ɵɵnextContext().lastPage(); + }), + f.ɵɵnamespaceSVG(), + f.ɵɵelementStart(1, "svg", 7), + f.ɵɵelement(2, "path", 24), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(); + } + if (2 & Dt) { + const et = f.ɵɵnextContext(); + f.ɵɵproperty("matTooltip", et._intl.lastPageLabel)( + "matTooltipDisabled", + et._nextButtonsDisabled() + )("matTooltipPosition", "above")( + "disabled", + et._nextButtonsDisabled() + ), + f.ɵɵattribute("aria-label", et._intl.lastPageLabel); + } + } + let U = (() => { + class Dt { + constructor() { + (this.changes = new i.xQ()), + (this.itemsPerPageLabel = "Items per page:"), + (this.nextPageLabel = "Next page"), + (this.previousPageLabel = "Previous page"), + (this.firstPageLabel = "First page"), + (this.lastPageLabel = "Last page"), + (this.getRangeLabel = (et, xt, Lt) => { + if (0 == Lt || 0 == xt) return `0 of ${Lt}`; + const Qe = et * xt; + return `${Qe + 1} \u2013 ${ + Qe < (Lt = Math.max(Lt, 0)) ? Math.min(Qe + xt, Lt) : Qe + xt + } of ${Lt}`; + }); + } + } + return ( + (Dt.ɵfac = function (et) { + return new (et || Dt)(); + }), + (Dt.ɵprov = f.ɵɵdefineInjectable({ + token: Dt, + factory: Dt.ɵfac, + providedIn: "root", + })), + Dt + ); + })(); + function X(Dt) { + return Dt || new U(); + } + const _e = { + provide: U, + deps: [[new f.Optional(), new f.SkipSelf(), U]], + useFactory: X, + }; + class $e {} + const st = new f.InjectionToken("MAT_PAGINATOR_DEFAULT_OPTIONS"), + ut = (0, _.mixinDisabled)((0, _.mixinInitialized)(class {})); + let St = (() => { + class Dt extends ut { + constructor(et, xt, Lt) { + if ( + (super(), + (this._intl = et), + (this._changeDetectorRef = xt), + (this._pageIndex = 0), + (this._length = 0), + (this._pageSizeOptions = []), + (this._hidePageSize = !1), + (this._showFirstLastButtons = !1), + (this.page = new f.EventEmitter()), + (this._intlChanges = et.changes.subscribe(() => + this._changeDetectorRef.markForCheck() + )), + Lt) + ) { + const { + pageSize: Qe, + pageSizeOptions: mt, + hidePageSize: Vt, + showFirstLastButtons: qt, + } = Lt; + null != Qe && (this._pageSize = Qe), + null != mt && (this._pageSizeOptions = mt), + null != Vt && (this._hidePageSize = Vt), + null != qt && (this._showFirstLastButtons = qt); + } + } + get pageIndex() { + return this._pageIndex; + } + set pageIndex(et) { + (this._pageIndex = Math.max((0, r.su)(et), 0)), + this._changeDetectorRef.markForCheck(); + } + get length() { + return this._length; + } + set length(et) { + (this._length = (0, r.su)(et)), + this._changeDetectorRef.markForCheck(); + } + get pageSize() { + return this._pageSize; + } + set pageSize(et) { + (this._pageSize = Math.max((0, r.su)(et), 0)), + this._updateDisplayedPageSizeOptions(); + } + get pageSizeOptions() { + return this._pageSizeOptions; + } + set pageSizeOptions(et) { + (this._pageSizeOptions = (et || []).map((xt) => (0, r.su)(xt))), + this._updateDisplayedPageSizeOptions(); + } + get hidePageSize() { + return this._hidePageSize; + } + set hidePageSize(et) { + this._hidePageSize = (0, r.Ig)(et); + } + get showFirstLastButtons() { + return this._showFirstLastButtons; + } + set showFirstLastButtons(et) { + this._showFirstLastButtons = (0, r.Ig)(et); + } + ngOnInit() { + (this._initialized = !0), + this._updateDisplayedPageSizeOptions(), + this._markInitialized(); + } + ngOnDestroy() { + this._intlChanges.unsubscribe(); + } + nextPage() { + if (!this.hasNextPage()) return; + const et = this.pageIndex; + (this.pageIndex = this.pageIndex + 1), this._emitPageEvent(et); + } + previousPage() { + if (!this.hasPreviousPage()) return; + const et = this.pageIndex; + (this.pageIndex = this.pageIndex - 1), this._emitPageEvent(et); + } + firstPage() { + if (!this.hasPreviousPage()) return; + const et = this.pageIndex; + (this.pageIndex = 0), this._emitPageEvent(et); + } + lastPage() { + if (!this.hasNextPage()) return; + const et = this.pageIndex; + (this.pageIndex = this.getNumberOfPages() - 1), + this._emitPageEvent(et); + } + hasPreviousPage() { + return this.pageIndex >= 1 && 0 != this.pageSize; + } + hasNextPage() { + const et = this.getNumberOfPages() - 1; + return this.pageIndex < et && 0 != this.pageSize; + } + getNumberOfPages() { + return this.pageSize ? Math.ceil(this.length / this.pageSize) : 0; + } + _changePageSize(et) { + const Lt = this.pageIndex; + (this.pageIndex = + Math.floor((this.pageIndex * this.pageSize) / et) || 0), + (this.pageSize = et), + this._emitPageEvent(Lt); + } + _nextButtonsDisabled() { + return this.disabled || !this.hasNextPage(); + } + _previousButtonsDisabled() { + return this.disabled || !this.hasPreviousPage(); + } + _updateDisplayedPageSizeOptions() { + !this._initialized || + (this.pageSize || + (this._pageSize = + 0 != this.pageSizeOptions.length + ? this.pageSizeOptions[0] + : 50), + (this._displayedPageSizeOptions = this.pageSizeOptions.slice()), + -1 === this._displayedPageSizeOptions.indexOf(this.pageSize) && + this._displayedPageSizeOptions.push(this.pageSize), + this._displayedPageSizeOptions.sort((et, xt) => et - xt), + this._changeDetectorRef.markForCheck()); + } + _emitPageEvent(et) { + this.page.emit({ + previousPageIndex: et, + pageIndex: this.pageIndex, + pageSize: this.pageSize, + length: this.length, + }); + } + } + return ( + (Dt.ɵfac = function (et) { + f.ɵɵinvalidFactory(); + }), + (Dt.ɵdir = f.ɵɵdefineDirective({ + type: Dt, + inputs: { + color: "color", + pageIndex: "pageIndex", + length: "length", + pageSize: "pageSize", + pageSizeOptions: "pageSizeOptions", + hidePageSize: "hidePageSize", + showFirstLastButtons: "showFirstLastButtons", + }, + outputs: { page: "page" }, + features: [f.ɵɵInheritDefinitionFeature], + })), + Dt + ); + })(), + Xt = (() => { + class Dt extends St { + constructor(et, xt, Lt) { + super(et, xt, Lt), + Lt && + null != Lt.formFieldAppearance && + (this._formFieldAppearance = Lt.formFieldAppearance); + } + } + return ( + (Dt.ɵfac = function (et) { + return new (et || Dt)( + f.ɵɵdirectiveInject(U), + f.ɵɵdirectiveInject(f.ChangeDetectorRef), + f.ɵɵdirectiveInject(st, 8) + ); + }), + (Dt.ɵcmp = f.ɵɵdefineComponent({ + type: Dt, + selectors: [["mat-paginator"]], + hostAttrs: ["role", "group", 1, "mat-paginator"], + inputs: { disabled: "disabled" }, + exportAs: ["matPaginator"], + features: [f.ɵɵInheritDefinitionFeature], + decls: 14, + vars: 14, + consts: [ + [1, "mat-paginator-outer-container"], + [1, "mat-paginator-container"], + ["class", "mat-paginator-page-size", 4, "ngIf"], + [1, "mat-paginator-range-actions"], + [1, "mat-paginator-range-label"], + [ + "mat-icon-button", + "", + "type", + "button", + "class", + "mat-paginator-navigation-first", + 3, + "matTooltip", + "matTooltipDisabled", + "matTooltipPosition", + "disabled", + "click", + 4, + "ngIf", + ], + [ + "mat-icon-button", + "", + "type", + "button", + 1, + "mat-paginator-navigation-previous", + 3, + "matTooltip", + "matTooltipDisabled", + "matTooltipPosition", + "disabled", + "click", + ], + [ + "viewBox", + "0 0 24 24", + "focusable", + "false", + 1, + "mat-paginator-icon", + ], + ["d", "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"], + [ + "mat-icon-button", + "", + "type", + "button", + 1, + "mat-paginator-navigation-next", + 3, + "matTooltip", + "matTooltipDisabled", + "matTooltipPosition", + "disabled", + "click", + ], + ["d", "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"], + [ + "mat-icon-button", + "", + "type", + "button", + "class", + "mat-paginator-navigation-last", + 3, + "matTooltip", + "matTooltipDisabled", + "matTooltipPosition", + "disabled", + "click", + 4, + "ngIf", + ], + [1, "mat-paginator-page-size"], + [1, "mat-paginator-page-size-label"], + [ + "class", + "mat-paginator-page-size-select", + 3, + "appearance", + "color", + 4, + "ngIf", + ], + ["class", "mat-paginator-page-size-value", 4, "ngIf"], + [1, "mat-paginator-page-size-select", 3, "appearance", "color"], + [3, "value", "disabled", "aria-label", "selectionChange"], + [3, "value", 4, "ngFor", "ngForOf"], + [3, "value"], + [1, "mat-paginator-page-size-value"], + [ + "mat-icon-button", + "", + "type", + "button", + 1, + "mat-paginator-navigation-first", + 3, + "matTooltip", + "matTooltipDisabled", + "matTooltipPosition", + "disabled", + "click", + ], + [ + "d", + "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z", + ], + [ + "mat-icon-button", + "", + "type", + "button", + 1, + "mat-paginator-navigation-last", + 3, + "matTooltip", + "matTooltipDisabled", + "matTooltipPosition", + "disabled", + "click", + ], + [ + "d", + "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z", + ], + ], + template: function (et, xt) { + 1 & et && + (f.ɵɵelementStart(0, "div", 0), + f.ɵɵelementStart(1, "div", 1), + f.ɵɵtemplate(2, fe, 5, 3, "div", 2), + f.ɵɵelementStart(3, "div", 3), + f.ɵɵelementStart(4, "div", 4), + f.ɵɵtext(5), + f.ɵɵelementEnd(), + f.ɵɵtemplate(6, H, 3, 5, "button", 5), + f.ɵɵelementStart(7, "button", 6), + f.ɵɵlistener("click", function () { + return xt.previousPage(); + }), + f.ɵɵnamespaceSVG(), + f.ɵɵelementStart(8, "svg", 7), + f.ɵɵelement(9, "path", 8), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(), + f.ɵɵnamespaceHTML(), + f.ɵɵelementStart(10, "button", 9), + f.ɵɵlistener("click", function () { + return xt.nextPage(); + }), + f.ɵɵnamespaceSVG(), + f.ɵɵelementStart(11, "svg", 7), + f.ɵɵelement(12, "path", 10), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(), + f.ɵɵtemplate(13, D, 3, 5, "button", 11), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(), + f.ɵɵelementEnd()), + 2 & et && + (f.ɵɵadvance(2), + f.ɵɵproperty("ngIf", !xt.hidePageSize), + f.ɵɵadvance(3), + f.ɵɵtextInterpolate1( + " ", + xt._intl.getRangeLabel( + xt.pageIndex, + xt.pageSize, + xt.length + ), + " " + ), + f.ɵɵadvance(1), + f.ɵɵproperty("ngIf", xt.showFirstLastButtons), + f.ɵɵadvance(1), + f.ɵɵproperty("matTooltip", xt._intl.previousPageLabel)( + "matTooltipDisabled", + xt._previousButtonsDisabled() + )("matTooltipPosition", "above")( + "disabled", + xt._previousButtonsDisabled() + ), + f.ɵɵattribute("aria-label", xt._intl.previousPageLabel), + f.ɵɵadvance(3), + f.ɵɵproperty("matTooltip", xt._intl.nextPageLabel)( + "matTooltipDisabled", + xt._nextButtonsDisabled() + )("matTooltipPosition", "above")( + "disabled", + xt._nextButtonsDisabled() + ), + f.ɵɵattribute("aria-label", xt._intl.nextPageLabel), + f.ɵɵadvance(3), + f.ɵɵproperty("ngIf", xt.showFirstLastButtons)); + }, + directives: [ + n.NgIf, + m.MatButton, + yt, + Tt.MatFormField, + s.MatSelect, + n.NgForOf, + _.MatOption, + ], + styles: [ + ".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + Dt + ); + })(), + tn = (() => { + class Dt {} + return ( + (Dt.ɵfac = function (et) { + return new (et || Dt)(); + }), + (Dt.ɵmod = f.ɵɵdefineNgModule({ type: Dt })), + (Dt.ɵinj = f.ɵɵdefineInjector({ + providers: [_e], + imports: [ + [ + n.CommonModule, + m.MatButtonModule, + s.MatSelectModule, + At, + _.MatCommonModule, + ], + ], + })), + Dt + ); + })(); + }, + 773: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: () => b, + MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY: () => y, + MatProgressSpinner: () => T, + MatProgressSpinnerModule: () => M, + MatSpinner: () => O, + }); + var n = p(5e3), + f = p(9808), + _ = p(508), + m = p(3191), + s = p(925), + d = p(6360); + function u(A, S) { + if ( + (1 & A && (n.ɵɵnamespaceSVG(), n.ɵɵelement(0, "circle", 3)), 2 & A) + ) { + const w = n.ɵɵnextContext(); + n.ɵɵstyleProp( + "animation-name", + "mat-progress-spinner-stroke-rotate-" + w._spinnerAnimationLabel + )("stroke-dashoffset", w._getStrokeDashOffset(), "px")( + "stroke-dasharray", + w._getStrokeCircumference(), + "px" + )("stroke-width", w._getCircleStrokeWidth(), "%"), + n.ɵɵattribute("r", w._getCircleRadius()); + } + } + function h(A, S) { + if ( + (1 & A && (n.ɵɵnamespaceSVG(), n.ɵɵelement(0, "circle", 3)), 2 & A) + ) { + const w = n.ɵɵnextContext(); + n.ɵɵstyleProp("stroke-dashoffset", w._getStrokeDashOffset(), "px")( + "stroke-dasharray", + w._getStrokeCircumference(), + "px" + )("stroke-width", w._getCircleStrokeWidth(), "%"), + n.ɵɵattribute("r", w._getCircleRadius()); + } + } + function r(A, S) { + if ( + (1 & A && (n.ɵɵnamespaceSVG(), n.ɵɵelement(0, "circle", 3)), 2 & A) + ) { + const w = n.ɵɵnextContext(); + n.ɵɵstyleProp( + "animation-name", + "mat-progress-spinner-stroke-rotate-" + w._spinnerAnimationLabel + )("stroke-dashoffset", w._getStrokeDashOffset(), "px")( + "stroke-dasharray", + w._getStrokeCircumference(), + "px" + )("stroke-width", w._getCircleStrokeWidth(), "%"), + n.ɵɵattribute("r", w._getCircleRadius()); + } + } + function o(A, S) { + if ( + (1 & A && (n.ɵɵnamespaceSVG(), n.ɵɵelement(0, "circle", 3)), 2 & A) + ) { + const w = n.ɵɵnextContext(); + n.ɵɵstyleProp("stroke-dashoffset", w._getStrokeDashOffset(), "px")( + "stroke-dasharray", + w._getStrokeCircumference(), + "px" + )("stroke-width", w._getCircleStrokeWidth(), "%"), + n.ɵɵattribute("r", w._getCircleRadius()); + } + } + const g = (0, _.mixinColor)( + class { + constructor(A) { + this._elementRef = A; + } + }, + "primary" + ), + b = new n.InjectionToken("mat-progress-spinner-default-options", { + providedIn: "root", + factory: y, + }); + function y() { + return { diameter: 100 }; + } + class T extends g { + constructor(S, w, I, C, L) { + super(S), + (this._document = I), + (this._diameter = 100), + (this._value = 0), + (this.mode = "determinate"); + const F = T._diameters; + (this._spinnerAnimationLabel = this._getSpinnerAnimationLabel()), + F.has(I.head) || F.set(I.head, new Set([100])), + (this._noopAnimations = + "NoopAnimations" === C && !!L && !L._forceAnimations), + L && + (L.diameter && (this.diameter = L.diameter), + L.strokeWidth && (this.strokeWidth = L.strokeWidth)); + } + get diameter() { + return this._diameter; + } + set diameter(S) { + (this._diameter = (0, m.su)(S)), + (this._spinnerAnimationLabel = this._getSpinnerAnimationLabel()), + this._styleRoot && this._attachStyleNode(); + } + get strokeWidth() { + return this._strokeWidth || this.diameter / 10; + } + set strokeWidth(S) { + this._strokeWidth = (0, m.su)(S); + } + get value() { + return "determinate" === this.mode ? this._value : 0; + } + set value(S) { + this._value = Math.max(0, Math.min(100, (0, m.su)(S))); + } + ngOnInit() { + const S = this._elementRef.nativeElement; + (this._styleRoot = (0, s.kV)(S) || this._document.head), + this._attachStyleNode(), + S.classList.add("mat-progress-spinner-indeterminate-animation"); + } + _getCircleRadius() { + return (this.diameter - 10) / 2; + } + _getViewBox() { + const S = 2 * this._getCircleRadius() + this.strokeWidth; + return `0 0 ${S} ${S}`; + } + _getStrokeCircumference() { + return 2 * Math.PI * this._getCircleRadius(); + } + _getStrokeDashOffset() { + return "determinate" === this.mode + ? (this._getStrokeCircumference() * (100 - this._value)) / 100 + : null; + } + _getCircleStrokeWidth() { + return (this.strokeWidth / this.diameter) * 100; + } + _attachStyleNode() { + const S = this._styleRoot, + w = this._diameter, + I = T._diameters; + let C = I.get(S); + if (!C || !C.has(w)) { + const L = this._document.createElement("style"); + L.setAttribute( + "mat-spinner-animation", + this._spinnerAnimationLabel + ), + (L.textContent = this._getAnimationText()), + S.appendChild(L), + C || ((C = new Set()), I.set(S, C)), + C.add(w); + } + } + _getAnimationText() { + const S = this._getStrokeCircumference(); + return "\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n" + .replace(/START_VALUE/g, "" + 0.95 * S) + .replace(/END_VALUE/g, "" + 0.2 * S) + .replace(/DIAMETER/g, `${this._spinnerAnimationLabel}`); + } + _getSpinnerAnimationLabel() { + return this.diameter.toString().replace(".", "_"); + } + } + (T._diameters = new WeakMap()), + (T.ɵfac = function (S) { + return new (S || T)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(s.t4), + n.ɵɵdirectiveInject(f.DOCUMENT, 8), + n.ɵɵdirectiveInject(d.ANIMATION_MODULE_TYPE, 8), + n.ɵɵdirectiveInject(b) + ); + }), + (T.ɵcmp = n.ɵɵdefineComponent({ + type: T, + selectors: [["mat-progress-spinner"]], + hostAttrs: [ + "role", + "progressbar", + "tabindex", + "-1", + 1, + "mat-progress-spinner", + ], + hostVars: 10, + hostBindings: function (S, w) { + 2 & S && + (n.ɵɵattribute( + "aria-valuemin", + "determinate" === w.mode ? 0 : null + )("aria-valuemax", "determinate" === w.mode ? 100 : null)( + "aria-valuenow", + "determinate" === w.mode ? w.value : null + )("mode", w.mode), + n.ɵɵstyleProp("width", w.diameter, "px")( + "height", + w.diameter, + "px" + ), + n.ɵɵclassProp("_mat-animation-noopable", w._noopAnimations)); + }, + inputs: { + color: "color", + diameter: "diameter", + strokeWidth: "strokeWidth", + mode: "mode", + value: "value", + }, + exportAs: ["matProgressSpinner"], + features: [n.ɵɵInheritDefinitionFeature], + decls: 3, + vars: 8, + consts: [ + [ + "preserveAspectRatio", + "xMidYMid meet", + "focusable", + "false", + "aria-hidden", + "true", + 3, + "ngSwitch", + ], + [ + "cx", + "50%", + "cy", + "50%", + 3, + "animation-name", + "stroke-dashoffset", + "stroke-dasharray", + "stroke-width", + 4, + "ngSwitchCase", + ], + [ + "cx", + "50%", + "cy", + "50%", + 3, + "stroke-dashoffset", + "stroke-dasharray", + "stroke-width", + 4, + "ngSwitchCase", + ], + ["cx", "50%", "cy", "50%"], + ], + template: function (S, w) { + 1 & S && + (n.ɵɵnamespaceSVG(), + n.ɵɵelementStart(0, "svg", 0), + n.ɵɵtemplate(1, u, 1, 9, "circle", 1), + n.ɵɵtemplate(2, h, 1, 7, "circle", 2), + n.ɵɵelementEnd()), + 2 & S && + (n.ɵɵstyleProp("width", w.diameter, "px")( + "height", + w.diameter, + "px" + ), + n.ɵɵproperty("ngSwitch", "indeterminate" === w.mode), + n.ɵɵattribute("viewBox", w._getViewBox()), + n.ɵɵadvance(1), + n.ɵɵproperty("ngSwitchCase", !0), + n.ɵɵadvance(1), + n.ɵɵproperty("ngSwitchCase", !1)); + }, + directives: [f.NgSwitch, f.NgSwitchCase], + styles: [ + ".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n", + ], + encapsulation: 2, + changeDetection: 0, + })); + let O = (() => { + class A extends T { + constructor(w, I, C, L, F) { + super(w, I, C, L, F), (this.mode = "indeterminate"); + } + } + return ( + (A.ɵfac = function (w) { + return new (w || A)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(s.t4), + n.ɵɵdirectiveInject(f.DOCUMENT, 8), + n.ɵɵdirectiveInject(d.ANIMATION_MODULE_TYPE, 8), + n.ɵɵdirectiveInject(b) + ); + }), + (A.ɵcmp = n.ɵɵdefineComponent({ + type: A, + selectors: [["mat-spinner"]], + hostAttrs: [ + "role", + "progressbar", + "mode", + "indeterminate", + 1, + "mat-spinner", + "mat-progress-spinner", + ], + hostVars: 6, + hostBindings: function (w, I) { + 2 & w && + (n.ɵɵstyleProp("width", I.diameter, "px")( + "height", + I.diameter, + "px" + ), + n.ɵɵclassProp("_mat-animation-noopable", I._noopAnimations)); + }, + inputs: { color: "color" }, + features: [n.ɵɵInheritDefinitionFeature], + decls: 3, + vars: 8, + consts: [ + [ + "preserveAspectRatio", + "xMidYMid meet", + "focusable", + "false", + "aria-hidden", + "true", + 3, + "ngSwitch", + ], + [ + "cx", + "50%", + "cy", + "50%", + 3, + "animation-name", + "stroke-dashoffset", + "stroke-dasharray", + "stroke-width", + 4, + "ngSwitchCase", + ], + [ + "cx", + "50%", + "cy", + "50%", + 3, + "stroke-dashoffset", + "stroke-dasharray", + "stroke-width", + 4, + "ngSwitchCase", + ], + ["cx", "50%", "cy", "50%"], + ], + template: function (w, I) { + 1 & w && + (n.ɵɵnamespaceSVG(), + n.ɵɵelementStart(0, "svg", 0), + n.ɵɵtemplate(1, r, 1, 9, "circle", 1), + n.ɵɵtemplate(2, o, 1, 7, "circle", 2), + n.ɵɵelementEnd()), + 2 & w && + (n.ɵɵstyleProp("width", I.diameter, "px")( + "height", + I.diameter, + "px" + ), + n.ɵɵproperty("ngSwitch", "indeterminate" === I.mode), + n.ɵɵattribute("viewBox", I._getViewBox()), + n.ɵɵadvance(1), + n.ɵɵproperty("ngSwitchCase", !0), + n.ɵɵadvance(1), + n.ɵɵproperty("ngSwitchCase", !1)); + }, + directives: [f.NgSwitch, f.NgSwitchCase], + styles: [ + ".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + A + ); + })(), + M = (() => { + class A {} + return ( + (A.ɵfac = function (w) { + return new (w || A)(); + }), + (A.ɵmod = n.ɵɵdefineNgModule({ type: A })), + (A.ɵinj = n.ɵɵdefineInjector({ + imports: [[_.MatCommonModule, f.CommonModule], _.MatCommonModule], + })), + A + ); + })(); + }, + 9814: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_RADIO_DEFAULT_OPTIONS: () => i, + MAT_RADIO_DEFAULT_OPTIONS_FACTORY: () => c, + MAT_RADIO_GROUP: () => y, + MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: () => g, + MatRadioButton: () => S, + MatRadioChange: () => b, + MatRadioGroup: () => T, + MatRadioModule: () => w, + _MatRadioButtonBase: () => A, + _MatRadioGroupBase: () => x, + }); + var n = p(5e3), + f = p(508), + _ = p(3191), + m = p(3075), + s = p(6360), + d = p(5664), + u = p(449); + const h = ["input"], + r = function (I) { + return { enterDuration: I }; + }, + o = ["*"], + i = new n.InjectionToken("mat-radio-default-options", { + providedIn: "root", + factory: c, + }); + function c() { + return { color: "accent" }; + } + let l = 0; + const g = { + provide: m.NG_VALUE_ACCESSOR, + useExisting: (0, n.forwardRef)(() => T), + multi: !0, + }; + class b { + constructor(C, L) { + (this.source = C), (this.value = L); + } + } + const y = new n.InjectionToken("MatRadioGroup"); + let x = (() => { + class I { + constructor(L) { + (this._changeDetector = L), + (this._value = null), + (this._name = "mat-radio-group-" + l++), + (this._selected = null), + (this._isInitialized = !1), + (this._labelPosition = "after"), + (this._disabled = !1), + (this._required = !1), + (this._controlValueAccessorChangeFn = () => {}), + (this.onTouched = () => {}), + (this.change = new n.EventEmitter()); + } + get name() { + return this._name; + } + set name(L) { + (this._name = L), this._updateRadioButtonNames(); + } + get labelPosition() { + return this._labelPosition; + } + set labelPosition(L) { + (this._labelPosition = "before" === L ? "before" : "after"), + this._markRadiosForCheck(); + } + get value() { + return this._value; + } + set value(L) { + this._value !== L && + ((this._value = L), + this._updateSelectedRadioFromValue(), + this._checkSelectedRadioButton()); + } + _checkSelectedRadioButton() { + this._selected && + !this._selected.checked && + (this._selected.checked = !0); + } + get selected() { + return this._selected; + } + set selected(L) { + (this._selected = L), + (this.value = L ? L.value : null), + this._checkSelectedRadioButton(); + } + get disabled() { + return this._disabled; + } + set disabled(L) { + (this._disabled = (0, _.Ig)(L)), this._markRadiosForCheck(); + } + get required() { + return this._required; + } + set required(L) { + (this._required = (0, _.Ig)(L)), this._markRadiosForCheck(); + } + ngAfterContentInit() { + this._isInitialized = !0; + } + _touch() { + this.onTouched && this.onTouched(); + } + _updateRadioButtonNames() { + this._radios && + this._radios.forEach((L) => { + (L.name = this.name), L._markForCheck(); + }); + } + _updateSelectedRadioFromValue() { + this._radios && + (null === this._selected || + this._selected.value !== this._value) && + ((this._selected = null), + this._radios.forEach((F) => { + (F.checked = this.value === F.value), + F.checked && (this._selected = F); + })); + } + _emitChangeEvent() { + this._isInitialized && + this.change.emit(new b(this._selected, this._value)); + } + _markRadiosForCheck() { + this._radios && this._radios.forEach((L) => L._markForCheck()); + } + writeValue(L) { + (this.value = L), this._changeDetector.markForCheck(); + } + registerOnChange(L) { + this._controlValueAccessorChangeFn = L; + } + registerOnTouched(L) { + this.onTouched = L; + } + setDisabledState(L) { + (this.disabled = L), this._changeDetector.markForCheck(); + } + } + return ( + (I.ɵfac = function (L) { + return new (L || I)(n.ɵɵdirectiveInject(n.ChangeDetectorRef)); + }), + (I.ɵdir = n.ɵɵdefineDirective({ + type: I, + inputs: { + color: "color", + name: "name", + labelPosition: "labelPosition", + value: "value", + selected: "selected", + disabled: "disabled", + required: "required", + }, + outputs: { change: "change" }, + })), + I + ); + })(), + T = (() => { + class I extends x {} + return ( + (I.ɵfac = (function () { + let C; + return function (F) { + return (C || (C = n.ɵɵgetInheritedFactory(I)))(F || I); + }; + })()), + (I.ɵdir = n.ɵɵdefineDirective({ + type: I, + selectors: [["mat-radio-group"]], + contentQueries: function (L, F, ie) { + if ((1 & L && n.ɵɵcontentQuery(ie, S, 5), 2 & L)) { + let Y; + n.ɵɵqueryRefresh((Y = n.ɵɵloadQuery())) && (F._radios = Y); + } + }, + hostAttrs: ["role", "radiogroup", 1, "mat-radio-group"], + exportAs: ["matRadioGroup"], + features: [ + n.ɵɵProvidersFeature([g, { provide: y, useExisting: I }]), + n.ɵɵInheritDefinitionFeature, + ], + })), + I + ); + })(); + class O { + constructor(C) { + this._elementRef = C; + } + } + const M = (0, f.mixinDisableRipple)((0, f.mixinTabIndex)(O)); + let A = (() => { + class I extends M { + constructor(L, F, ie, Y, Z, ee, $, J) { + super(F), + (this._changeDetector = ie), + (this._focusMonitor = Y), + (this._radioDispatcher = Z), + (this._providerOverride = $), + (this._uniqueId = "mat-radio-" + ++l), + (this.id = this._uniqueId), + (this.change = new n.EventEmitter()), + (this._checked = !1), + (this._value = null), + (this._removeUniqueSelectionListener = () => {}), + (this.radioGroup = L), + (this._noopAnimations = "NoopAnimations" === ee), + J && (this.tabIndex = (0, _.su)(J, 0)), + (this._removeUniqueSelectionListener = Z.listen((ne, ae) => { + ne !== this.id && ae === this.name && (this.checked = !1); + })); + } + get checked() { + return this._checked; + } + set checked(L) { + const F = (0, _.Ig)(L); + this._checked !== F && + ((this._checked = F), + F && this.radioGroup && this.radioGroup.value !== this.value + ? (this.radioGroup.selected = this) + : !F && + this.radioGroup && + this.radioGroup.value === this.value && + (this.radioGroup.selected = null), + F && this._radioDispatcher.notify(this.id, this.name), + this._changeDetector.markForCheck()); + } + get value() { + return this._value; + } + set value(L) { + this._value !== L && + ((this._value = L), + null !== this.radioGroup && + (this.checked || (this.checked = this.radioGroup.value === L), + this.checked && (this.radioGroup.selected = this))); + } + get labelPosition() { + return ( + this._labelPosition || + (this.radioGroup && this.radioGroup.labelPosition) || + "after" + ); + } + set labelPosition(L) { + this._labelPosition = L; + } + get disabled() { + return ( + this._disabled || + (null !== this.radioGroup && this.radioGroup.disabled) + ); + } + set disabled(L) { + this._setDisabled((0, _.Ig)(L)); + } + get required() { + return ( + this._required || (this.radioGroup && this.radioGroup.required) + ); + } + set required(L) { + this._required = (0, _.Ig)(L); + } + get color() { + return ( + this._color || + (this.radioGroup && this.radioGroup.color) || + (this._providerOverride && this._providerOverride.color) || + "accent" + ); + } + set color(L) { + this._color = L; + } + get inputId() { + return `${this.id || this._uniqueId}-input`; + } + focus(L, F) { + F + ? this._focusMonitor.focusVia(this._inputElement, F, L) + : this._inputElement.nativeElement.focus(L); + } + _markForCheck() { + this._changeDetector.markForCheck(); + } + ngOnInit() { + this.radioGroup && + ((this.checked = this.radioGroup.value === this._value), + this.checked && (this.radioGroup.selected = this), + (this.name = this.radioGroup.name)); + } + ngAfterViewInit() { + this._focusMonitor + .monitor(this._elementRef, !0) + .subscribe((L) => { + !L && this.radioGroup && this.radioGroup._touch(); + }); + } + ngOnDestroy() { + this._focusMonitor.stopMonitoring(this._elementRef), + this._removeUniqueSelectionListener(); + } + _emitChangeEvent() { + this.change.emit(new b(this, this._value)); + } + _isRippleDisabled() { + return this.disableRipple || this.disabled; + } + _onInputClick(L) { + L.stopPropagation(); + } + _onInputInteraction(L) { + if ((L.stopPropagation(), !this.checked && !this.disabled)) { + const F = + this.radioGroup && this.value !== this.radioGroup.value; + (this.checked = !0), + this._emitChangeEvent(), + this.radioGroup && + (this.radioGroup._controlValueAccessorChangeFn(this.value), + F && this.radioGroup._emitChangeEvent()); + } + } + _setDisabled(L) { + this._disabled !== L && + ((this._disabled = L), this._changeDetector.markForCheck()); + } + } + return ( + (I.ɵfac = function (L) { + n.ɵɵinvalidFactory(); + }), + (I.ɵdir = n.ɵɵdefineDirective({ + type: I, + viewQuery: function (L, F) { + if ((1 & L && n.ɵɵviewQuery(h, 5), 2 & L)) { + let ie; + n.ɵɵqueryRefresh((ie = n.ɵɵloadQuery())) && + (F._inputElement = ie.first); + } + }, + inputs: { + id: "id", + name: "name", + ariaLabel: ["aria-label", "ariaLabel"], + ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], + ariaDescribedby: ["aria-describedby", "ariaDescribedby"], + checked: "checked", + value: "value", + labelPosition: "labelPosition", + disabled: "disabled", + required: "required", + color: "color", + }, + outputs: { change: "change" }, + features: [n.ɵɵInheritDefinitionFeature], + })), + I + ); + })(), + S = (() => { + class I extends A { + constructor(L, F, ie, Y, Z, ee, $, J) { + super(L, F, ie, Y, Z, ee, $, J); + } + } + return ( + (I.ɵfac = function (L) { + return new (L || I)( + n.ɵɵdirectiveInject(y, 8), + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(n.ChangeDetectorRef), + n.ɵɵdirectiveInject(d.tE), + n.ɵɵdirectiveInject(u.A8), + n.ɵɵdirectiveInject(s.ANIMATION_MODULE_TYPE, 8), + n.ɵɵdirectiveInject(i, 8), + n.ɵɵinjectAttribute("tabindex") + ); + }), + (I.ɵcmp = n.ɵɵdefineComponent({ + type: I, + selectors: [["mat-radio-button"]], + hostAttrs: [1, "mat-radio-button"], + hostVars: 17, + hostBindings: function (L, F) { + 1 & L && + n.ɵɵlistener("focus", function () { + return F._inputElement.nativeElement.focus(); + }), + 2 & L && + (n.ɵɵattribute("tabindex", null)("id", F.id)( + "aria-label", + null + )("aria-labelledby", null)("aria-describedby", null), + n.ɵɵclassProp("mat-radio-checked", F.checked)( + "mat-radio-disabled", + F.disabled + )("_mat-animation-noopable", F._noopAnimations)( + "mat-primary", + "primary" === F.color + )("mat-accent", "accent" === F.color)( + "mat-warn", + "warn" === F.color + )); + }, + inputs: { disableRipple: "disableRipple", tabIndex: "tabIndex" }, + exportAs: ["matRadioButton"], + features: [n.ɵɵInheritDefinitionFeature], + ngContentSelectors: o, + decls: 13, + vars: 20, + consts: [ + [1, "mat-radio-label"], + ["label", ""], + [1, "mat-radio-container"], + [1, "mat-radio-outer-circle"], + [1, "mat-radio-inner-circle"], + [ + "type", + "radio", + 1, + "mat-radio-input", + "cdk-visually-hidden", + 3, + "id", + "checked", + "disabled", + "tabIndex", + "required", + "change", + "click", + ], + ["input", ""], + [ + "mat-ripple", + "", + 1, + "mat-radio-ripple", + "mat-focus-indicator", + 3, + "matRippleTrigger", + "matRippleDisabled", + "matRippleCentered", + "matRippleRadius", + "matRippleAnimation", + ], + [1, "mat-ripple-element", "mat-radio-persistent-ripple"], + [1, "mat-radio-label-content"], + [2, "display", "none"], + ], + template: function (L, F) { + if ( + (1 & L && + (n.ɵɵprojectionDef(), + n.ɵɵelementStart(0, "label", 0, 1), + n.ɵɵelementStart(2, "span", 2), + n.ɵɵelement(3, "span", 3), + n.ɵɵelement(4, "span", 4), + n.ɵɵelementStart(5, "input", 5, 6), + n.ɵɵlistener("change", function (Y) { + return F._onInputInteraction(Y); + })("click", function (Y) { + return F._onInputClick(Y); + }), + n.ɵɵelementEnd(), + n.ɵɵelementStart(7, "span", 7), + n.ɵɵelement(8, "span", 8), + n.ɵɵelementEnd(), + n.ɵɵelementEnd(), + n.ɵɵelementStart(9, "span", 9), + n.ɵɵelementStart(10, "span", 10), + n.ɵɵtext(11, "\xa0"), + n.ɵɵelementEnd(), + n.ɵɵprojection(12), + n.ɵɵelementEnd(), + n.ɵɵelementEnd()), + 2 & L) + ) { + const ie = n.ɵɵreference(1); + n.ɵɵattribute("for", F.inputId), + n.ɵɵadvance(5), + n.ɵɵproperty("id", F.inputId)("checked", F.checked)( + "disabled", + F.disabled + )("tabIndex", F.tabIndex)("required", F.required), + n.ɵɵattribute("name", F.name)("value", F.value)( + "aria-label", + F.ariaLabel + )("aria-labelledby", F.ariaLabelledby)( + "aria-describedby", + F.ariaDescribedby + ), + n.ɵɵadvance(2), + n.ɵɵproperty("matRippleTrigger", ie)( + "matRippleDisabled", + F._isRippleDisabled() + )("matRippleCentered", !0)("matRippleRadius", 20)( + "matRippleAnimation", + n.ɵɵpureFunction1(18, r, F._noopAnimations ? 0 : 150) + ), + n.ɵɵadvance(2), + n.ɵɵclassProp( + "mat-radio-label-before", + "before" == F.labelPosition + ); + } + }, + directives: [f.MatRipple], + styles: [ + ".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + I + ); + })(), + w = (() => { + class I {} + return ( + (I.ɵfac = function (L) { + return new (L || I)(); + }), + (I.ɵmod = n.ɵɵdefineNgModule({ type: I })), + (I.ɵinj = n.ɵɵdefineInjector({ + imports: [ + [f.MatRippleModule, f.MatCommonModule], + f.MatCommonModule, + ], + })), + I + ); + })(); + }, + 4107: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_SELECT_CONFIG: () => vt, + MAT_SELECT_SCROLL_STRATEGY: () => at, + MAT_SELECT_SCROLL_STRATEGY_PROVIDER: () => yt, + MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY: () => ft, + MAT_SELECT_TRIGGER: () => At, + MatSelect: () => Et, + MatSelectChange: () => ot, + MatSelectModule: () => Ee, + MatSelectTrigger: () => Tt, + _MatSelectBase: () => Bt, + matSelectAnimations: () => J, + }); + var n = p(1314), + f = p(9808), + _ = p(5e3), + m = p(508), + s = p(7322), + d = p(9071), + u = p(5664), + h = p(3191), + r = p(449), + o = p(1159), + i = p(3075), + c = p(8929), + l = p(8514), + g = p(6787), + b = p(1059), + y = p(7545), + x = p(2986), + T = p(2198), + O = p(4850), + M = p(5778), + A = p(7625), + S = p(1777), + w = p(226); + const I = ["trigger"], + C = ["panel"]; + function L(fe, H) { + if ( + (1 & fe && + (_.ɵɵelementStart(0, "span", 8), _.ɵɵtext(1), _.ɵɵelementEnd()), + 2 & fe) + ) { + const D = _.ɵɵnextContext(); + _.ɵɵadvance(1), _.ɵɵtextInterpolate(D.placeholder); + } + } + function F(fe, H) { + if ( + (1 & fe && + (_.ɵɵelementStart(0, "span", 12), _.ɵɵtext(1), _.ɵɵelementEnd()), + 2 & fe) + ) { + const D = _.ɵɵnextContext(2); + _.ɵɵadvance(1), _.ɵɵtextInterpolate(D.triggerValue); + } + } + function ie(fe, H) { + 1 & fe && _.ɵɵprojection(0, 0, ["*ngSwitchCase", "true"]); + } + function Y(fe, H) { + if ( + (1 & fe && + (_.ɵɵelementStart(0, "span", 9), + _.ɵɵtemplate(1, F, 2, 1, "span", 10), + _.ɵɵtemplate(2, ie, 1, 0, "ng-content", 11), + _.ɵɵelementEnd()), + 2 & fe) + ) { + const D = _.ɵɵnextContext(); + _.ɵɵproperty("ngSwitch", !!D.customTrigger), + _.ɵɵadvance(2), + _.ɵɵproperty("ngSwitchCase", !0); + } + } + function Z(fe, H) { + if (1 & fe) { + const D = _.ɵɵgetCurrentView(); + _.ɵɵelementStart(0, "div", 13), + _.ɵɵelementStart(1, "div", 14, 15), + _.ɵɵlistener("@transformPanel.done", function (X) { + return ( + _.ɵɵrestoreView(D), + _.ɵɵnextContext()._panelDoneAnimatingStream.next(X.toState) + ); + })("keydown", function (X) { + return _.ɵɵrestoreView(D), _.ɵɵnextContext()._handleKeydown(X); + }), + _.ɵɵprojection(3, 1), + _.ɵɵelementEnd(), + _.ɵɵelementEnd(); + } + if (2 & fe) { + const D = _.ɵɵnextContext(); + _.ɵɵproperty("@transformPanelWrap", void 0), + _.ɵɵadvance(1), + _.ɵɵclassMapInterpolate1( + "mat-select-panel ", + D._getPanelTheme(), + "" + ), + _.ɵɵstyleProp("transform-origin", D._transformOrigin)( + "font-size", + D._triggerFontSize, + "px" + ), + _.ɵɵproperty("ngClass", D.panelClass)( + "@transformPanel", + D.multiple ? "showing-multiple" : "showing" + ), + _.ɵɵattribute("id", D.id + "-panel")( + "aria-multiselectable", + D.multiple + )("aria-label", D.ariaLabel || null)( + "aria-labelledby", + D._getPanelAriaLabelledby() + ); + } + } + const ee = [[["mat-select-trigger"]], "*"], + $ = ["mat-select-trigger", "*"], + J = { + transformPanelWrap: (0, S.X$)("transformPanelWrap", [ + (0, S.eR)( + "* => void", + (0, S.IO)("@transformPanel", [(0, S.pV)()], { optional: !0 }) + ), + ]), + transformPanel: (0, S.X$)("transformPanel", [ + (0, S.SB)( + "void", + (0, S.oB)({ + transform: "scaleY(0.8)", + minWidth: "100%", + opacity: 0, + }) + ), + (0, S.SB)( + "showing", + (0, S.oB)({ + opacity: 1, + minWidth: "calc(100% + 32px)", + transform: "scaleY(1)", + }) + ), + (0, S.SB)( + "showing-multiple", + (0, S.oB)({ + opacity: 1, + minWidth: "calc(100% + 64px)", + transform: "scaleY(1)", + }) + ), + (0, S.eR)( + "void => *", + (0, S.jt)("120ms cubic-bezier(0, 0, 0.2, 1)") + ), + (0, S.eR)( + "* => void", + (0, S.jt)("100ms 25ms linear", (0, S.oB)({ opacity: 0 })) + ), + ]), + }; + let Oe = 0; + const at = new _.InjectionToken("mat-select-scroll-strategy"); + function ft(fe) { + return () => fe.scrollStrategies.reposition(); + } + const vt = new _.InjectionToken("MAT_SELECT_CONFIG"), + yt = { provide: at, deps: [n.aV], useFactory: ft }; + class ot { + constructor(H, D) { + (this.source = H), (this.value = D); + } + } + const _t = (0, m.mixinDisableRipple)( + (0, m.mixinTabIndex)( + (0, m.mixinDisabled)( + (0, m.mixinErrorState)( + class { + constructor(fe, H, D, U, X) { + (this._elementRef = fe), + (this._defaultErrorStateMatcher = H), + (this._parentForm = D), + (this._parentFormGroup = U), + (this.ngControl = X); + } + } + ) + ) + ) + ), + At = new _.InjectionToken("MatSelectTrigger"); + let Tt = (() => { + class fe {} + return ( + (fe.ɵfac = function (D) { + return new (D || fe)(); + }), + (fe.ɵdir = _.ɵɵdefineDirective({ + type: fe, + selectors: [["mat-select-trigger"]], + features: [ + _.ɵɵProvidersFeature([{ provide: At, useExisting: fe }]), + ], + })), + fe + ); + })(), + Bt = (() => { + class fe extends _t { + constructor(D, U, X, _e, Be, $e, st, ut, St, Xt, tn, Dt, Kt, et) { + var xt, Lt, Qe; + super(Be, _e, st, ut, Xt), + (this._viewportRuler = D), + (this._changeDetectorRef = U), + (this._ngZone = X), + (this._dir = $e), + (this._parentFormField = St), + (this._liveAnnouncer = Kt), + (this._defaultOptions = et), + (this._panelOpen = !1), + (this._compareWith = (mt, Vt) => mt === Vt), + (this._uid = "mat-select-" + Oe++), + (this._triggerAriaLabelledBy = null), + (this._destroy = new c.xQ()), + (this._onChange = () => {}), + (this._onTouched = () => {}), + (this._valueId = "mat-select-value-" + Oe++), + (this._panelDoneAnimatingStream = new c.xQ()), + (this._overlayPanelClass = + (null === (xt = this._defaultOptions) || void 0 === xt + ? void 0 + : xt.overlayPanelClass) || ""), + (this._focused = !1), + (this.controlType = "mat-select"), + (this._multiple = !1), + (this._disableOptionCentering = + null !== + (Qe = + null === (Lt = this._defaultOptions) || void 0 === Lt + ? void 0 + : Lt.disableOptionCentering) && + void 0 !== Qe && + Qe), + (this.ariaLabel = ""), + (this.optionSelectionChanges = (0, l.P)(() => { + const mt = this.options; + return mt + ? mt.changes.pipe( + (0, b.O)(mt), + (0, y.w)(() => + (0, g.T)(...mt.map((Vt) => Vt.onSelectionChange)) + ) + ) + : this._ngZone.onStable.pipe( + (0, x.q)(1), + (0, y.w)(() => this.optionSelectionChanges) + ); + })), + (this.openedChange = new _.EventEmitter()), + (this._openedStream = this.openedChange.pipe( + (0, T.h)((mt) => mt), + (0, O.U)(() => {}) + )), + (this._closedStream = this.openedChange.pipe( + (0, T.h)((mt) => !mt), + (0, O.U)(() => {}) + )), + (this.selectionChange = new _.EventEmitter()), + (this.valueChange = new _.EventEmitter()), + this.ngControl && (this.ngControl.valueAccessor = this), + null != (null == et ? void 0 : et.typeaheadDebounceInterval) && + (this._typeaheadDebounceInterval = + et.typeaheadDebounceInterval), + (this._scrollStrategyFactory = Dt), + (this._scrollStrategy = this._scrollStrategyFactory()), + (this.tabIndex = parseInt(tn) || 0), + (this.id = this.id); + } + get focused() { + return this._focused || this._panelOpen; + } + get placeholder() { + return this._placeholder; + } + set placeholder(D) { + (this._placeholder = D), this.stateChanges.next(); + } + get required() { + var D, U, X, _e; + return ( + null !== + (_e = + null !== (D = this._required) && void 0 !== D + ? D + : null === + (X = + null === (U = this.ngControl) || void 0 === U + ? void 0 + : U.control) || void 0 === X + ? void 0 + : X.hasValidator(i.Validators.required)) && + void 0 !== _e && + _e + ); + } + set required(D) { + (this._required = (0, h.Ig)(D)), this.stateChanges.next(); + } + get multiple() { + return this._multiple; + } + set multiple(D) { + this._multiple = (0, h.Ig)(D); + } + get disableOptionCentering() { + return this._disableOptionCentering; + } + set disableOptionCentering(D) { + this._disableOptionCentering = (0, h.Ig)(D); + } + get compareWith() { + return this._compareWith; + } + set compareWith(D) { + (this._compareWith = D), + this._selectionModel && this._initializeSelection(); + } + get value() { + return this._value; + } + set value(D) { + (D !== this._value || (this._multiple && Array.isArray(D))) && + (this.options && this._setSelectionByValue(D), + (this._value = D)); + } + get typeaheadDebounceInterval() { + return this._typeaheadDebounceInterval; + } + set typeaheadDebounceInterval(D) { + this._typeaheadDebounceInterval = (0, h.su)(D); + } + get id() { + return this._id; + } + set id(D) { + (this._id = D || this._uid), this.stateChanges.next(); + } + ngOnInit() { + (this._selectionModel = new r.Ov(this.multiple)), + this.stateChanges.next(), + this._panelDoneAnimatingStream + .pipe((0, M.x)(), (0, A.R)(this._destroy)) + .subscribe(() => this._panelDoneAnimating(this.panelOpen)); + } + ngAfterContentInit() { + this._initKeyManager(), + this._selectionModel.changed + .pipe((0, A.R)(this._destroy)) + .subscribe((D) => { + D.added.forEach((U) => U.select()), + D.removed.forEach((U) => U.deselect()); + }), + this.options.changes + .pipe((0, b.O)(null), (0, A.R)(this._destroy)) + .subscribe(() => { + this._resetOptions(), this._initializeSelection(); + }); + } + ngDoCheck() { + const D = this._getTriggerAriaLabelledby(); + if (D !== this._triggerAriaLabelledBy) { + const U = this._elementRef.nativeElement; + (this._triggerAriaLabelledBy = D), + D + ? U.setAttribute("aria-labelledby", D) + : U.removeAttribute("aria-labelledby"); + } + this.ngControl && this.updateErrorState(); + } + ngOnChanges(D) { + D.disabled && this.stateChanges.next(), + D.typeaheadDebounceInterval && + this._keyManager && + this._keyManager.withTypeAhead( + this._typeaheadDebounceInterval + ); + } + ngOnDestroy() { + this._destroy.next(), + this._destroy.complete(), + this.stateChanges.complete(); + } + toggle() { + this.panelOpen ? this.close() : this.open(); + } + open() { + this._canOpen() && + ((this._panelOpen = !0), + this._keyManager.withHorizontalOrientation(null), + this._highlightCorrectOption(), + this._changeDetectorRef.markForCheck()); + } + close() { + this._panelOpen && + ((this._panelOpen = !1), + this._keyManager.withHorizontalOrientation( + this._isRtl() ? "rtl" : "ltr" + ), + this._changeDetectorRef.markForCheck(), + this._onTouched()); + } + writeValue(D) { + this.value = D; + } + registerOnChange(D) { + this._onChange = D; + } + registerOnTouched(D) { + this._onTouched = D; + } + setDisabledState(D) { + (this.disabled = D), + this._changeDetectorRef.markForCheck(), + this.stateChanges.next(); + } + get panelOpen() { + return this._panelOpen; + } + get selected() { + var D, U; + return this.multiple + ? (null === (D = this._selectionModel) || void 0 === D + ? void 0 + : D.selected) || [] + : null === (U = this._selectionModel) || void 0 === U + ? void 0 + : U.selected[0]; + } + get triggerValue() { + if (this.empty) return ""; + if (this._multiple) { + const D = this._selectionModel.selected.map((U) => U.viewValue); + return this._isRtl() && D.reverse(), D.join(", "); + } + return this._selectionModel.selected[0].viewValue; + } + _isRtl() { + return !!this._dir && "rtl" === this._dir.value; + } + _handleKeydown(D) { + this.disabled || + (this.panelOpen + ? this._handleOpenKeydown(D) + : this._handleClosedKeydown(D)); + } + _handleClosedKeydown(D) { + const U = D.keyCode, + X = U === o.JH || U === o.LH || U === o.oh || U === o.SV, + _e = U === o.K5 || U === o.L_, + Be = this._keyManager; + if ( + (!Be.isTyping() && _e && !(0, o.Vb)(D)) || + ((this.multiple || D.altKey) && X) + ) + D.preventDefault(), this.open(); + else if (!this.multiple) { + const $e = this.selected; + Be.onKeydown(D); + const st = this.selected; + st && + $e !== st && + this._liveAnnouncer.announce(st.viewValue, 1e4); + } + } + _handleOpenKeydown(D) { + const U = this._keyManager, + X = D.keyCode, + _e = X === o.JH || X === o.LH, + Be = U.isTyping(); + if (_e && D.altKey) D.preventDefault(), this.close(); + else if ( + Be || + (X !== o.K5 && X !== o.L_) || + !U.activeItem || + (0, o.Vb)(D) + ) + if (!Be && this._multiple && X === o.A && D.ctrlKey) { + D.preventDefault(); + const $e = this.options.some( + (st) => !st.disabled && !st.selected + ); + this.options.forEach((st) => { + st.disabled || ($e ? st.select() : st.deselect()); + }); + } else { + const $e = U.activeItemIndex; + U.onKeydown(D), + this._multiple && + _e && + D.shiftKey && + U.activeItem && + U.activeItemIndex !== $e && + U.activeItem._selectViaInteraction(); + } + else D.preventDefault(), U.activeItem._selectViaInteraction(); + } + _onFocus() { + this.disabled || ((this._focused = !0), this.stateChanges.next()); + } + _onBlur() { + (this._focused = !1), + !this.disabled && + !this.panelOpen && + (this._onTouched(), + this._changeDetectorRef.markForCheck(), + this.stateChanges.next()); + } + _onAttached() { + this._overlayDir.positionChange + .pipe((0, x.q)(1)) + .subscribe(() => { + this._changeDetectorRef.detectChanges(), + this._positioningSettled(); + }); + } + _getPanelTheme() { + return this._parentFormField + ? `mat-${this._parentFormField.color}` + : ""; + } + get empty() { + return !this._selectionModel || this._selectionModel.isEmpty(); + } + _initializeSelection() { + Promise.resolve().then(() => { + this._setSelectionByValue( + this.ngControl ? this.ngControl.value : this._value + ), + this.stateChanges.next(); + }); + } + _setSelectionByValue(D) { + if ( + (this._selectionModel.selected.forEach((U) => + U.setInactiveStyles() + ), + this._selectionModel.clear(), + this.multiple && D) + ) + Array.isArray(D), + D.forEach((U) => this._selectValue(U)), + this._sortValues(); + else { + const U = this._selectValue(D); + U + ? this._keyManager.updateActiveItem(U) + : this.panelOpen || this._keyManager.updateActiveItem(-1); + } + this._changeDetectorRef.markForCheck(); + } + _selectValue(D) { + const U = this.options.find((X) => { + if (this._selectionModel.isSelected(X)) return !1; + try { + return null != X.value && this._compareWith(X.value, D); + } catch (_e) { + return !1; + } + }); + return U && this._selectionModel.select(U), U; + } + _initKeyManager() { + (this._keyManager = new u.s1(this.options) + .withTypeAhead(this._typeaheadDebounceInterval) + .withVerticalOrientation() + .withHorizontalOrientation(this._isRtl() ? "rtl" : "ltr") + .withHomeAndEnd() + .withAllowedModifierKeys(["shiftKey"])), + this._keyManager.tabOut + .pipe((0, A.R)(this._destroy)) + .subscribe(() => { + this.panelOpen && + (!this.multiple && + this._keyManager.activeItem && + this._keyManager.activeItem._selectViaInteraction(), + this.focus(), + this.close()); + }), + this._keyManager.change + .pipe((0, A.R)(this._destroy)) + .subscribe(() => { + this._panelOpen && this.panel + ? this._scrollOptionIntoView( + this._keyManager.activeItemIndex || 0 + ) + : !this._panelOpen && + !this.multiple && + this._keyManager.activeItem && + this._keyManager.activeItem._selectViaInteraction(); + }); + } + _resetOptions() { + const D = (0, g.T)(this.options.changes, this._destroy); + this.optionSelectionChanges.pipe((0, A.R)(D)).subscribe((U) => { + this._onSelect(U.source, U.isUserInput), + U.isUserInput && + !this.multiple && + this._panelOpen && + (this.close(), this.focus()); + }), + (0, g.T)(...this.options.map((U) => U._stateChanges)) + .pipe((0, A.R)(D)) + .subscribe(() => { + this._changeDetectorRef.markForCheck(), + this.stateChanges.next(); + }); + } + _onSelect(D, U) { + const X = this._selectionModel.isSelected(D); + null != D.value || this._multiple + ? (X !== D.selected && + (D.selected + ? this._selectionModel.select(D) + : this._selectionModel.deselect(D)), + U && this._keyManager.setActiveItem(D), + this.multiple && (this._sortValues(), U && this.focus())) + : (D.deselect(), + this._selectionModel.clear(), + null != this.value && this._propagateChanges(D.value)), + X !== this._selectionModel.isSelected(D) && + this._propagateChanges(), + this.stateChanges.next(); + } + _sortValues() { + if (this.multiple) { + const D = this.options.toArray(); + this._selectionModel.sort((U, X) => + this.sortComparator + ? this.sortComparator(U, X, D) + : D.indexOf(U) - D.indexOf(X) + ), + this.stateChanges.next(); + } + } + _propagateChanges(D) { + let U = null; + (U = this.multiple + ? this.selected.map((X) => X.value) + : this.selected + ? this.selected.value + : D), + (this._value = U), + this.valueChange.emit(U), + this._onChange(U), + this.selectionChange.emit(this._getChangeEvent(U)), + this._changeDetectorRef.markForCheck(); + } + _highlightCorrectOption() { + this._keyManager && + (this.empty + ? this._keyManager.setFirstItemActive() + : this._keyManager.setActiveItem( + this._selectionModel.selected[0] + )); + } + _canOpen() { + var D; + return ( + !this._panelOpen && + !this.disabled && + (null === (D = this.options) || void 0 === D + ? void 0 + : D.length) > 0 + ); + } + focus(D) { + this._elementRef.nativeElement.focus(D); + } + _getPanelAriaLabelledby() { + var D; + if (this.ariaLabel) return null; + const U = + null === (D = this._parentFormField) || void 0 === D + ? void 0 + : D.getLabelId(); + return this.ariaLabelledby + ? (U ? U + " " : "") + this.ariaLabelledby + : U; + } + _getAriaActiveDescendant() { + return this.panelOpen && + this._keyManager && + this._keyManager.activeItem + ? this._keyManager.activeItem.id + : null; + } + _getTriggerAriaLabelledby() { + var D; + if (this.ariaLabel) return null; + const U = + null === (D = this._parentFormField) || void 0 === D + ? void 0 + : D.getLabelId(); + let X = (U ? U + " " : "") + this._valueId; + return this.ariaLabelledby && (X += " " + this.ariaLabelledby), X; + } + _panelDoneAnimating(D) { + this.openedChange.emit(D); + } + setDescribedByIds(D) { + this._ariaDescribedby = D.join(" "); + } + onContainerClick() { + this.focus(), this.open(); + } + get shouldLabelFloat() { + return ( + this._panelOpen || + !this.empty || + (this._focused && !!this._placeholder) + ); + } + } + return ( + (fe.ɵfac = function (D) { + return new (D || fe)( + _.ɵɵdirectiveInject(d.rL), + _.ɵɵdirectiveInject(_.ChangeDetectorRef), + _.ɵɵdirectiveInject(_.NgZone), + _.ɵɵdirectiveInject(m.ErrorStateMatcher), + _.ɵɵdirectiveInject(_.ElementRef), + _.ɵɵdirectiveInject(w.Is, 8), + _.ɵɵdirectiveInject(i.NgForm, 8), + _.ɵɵdirectiveInject(i.FormGroupDirective, 8), + _.ɵɵdirectiveInject(s.MAT_FORM_FIELD, 8), + _.ɵɵdirectiveInject(i.NgControl, 10), + _.ɵɵinjectAttribute("tabindex"), + _.ɵɵdirectiveInject(at), + _.ɵɵdirectiveInject(u.Kd), + _.ɵɵdirectiveInject(vt, 8) + ); + }), + (fe.ɵdir = _.ɵɵdefineDirective({ + type: fe, + viewQuery: function (D, U) { + if ( + (1 & D && + (_.ɵɵviewQuery(I, 5), + _.ɵɵviewQuery(C, 5), + _.ɵɵviewQuery(n.pI, 5)), + 2 & D) + ) { + let X; + _.ɵɵqueryRefresh((X = _.ɵɵloadQuery())) && + (U.trigger = X.first), + _.ɵɵqueryRefresh((X = _.ɵɵloadQuery())) && + (U.panel = X.first), + _.ɵɵqueryRefresh((X = _.ɵɵloadQuery())) && + (U._overlayDir = X.first); + } + }, + inputs: { + panelClass: "panelClass", + placeholder: "placeholder", + required: "required", + multiple: "multiple", + disableOptionCentering: "disableOptionCentering", + compareWith: "compareWith", + value: "value", + ariaLabel: ["aria-label", "ariaLabel"], + ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], + errorStateMatcher: "errorStateMatcher", + typeaheadDebounceInterval: "typeaheadDebounceInterval", + sortComparator: "sortComparator", + id: "id", + }, + outputs: { + openedChange: "openedChange", + _openedStream: "opened", + _closedStream: "closed", + selectionChange: "selectionChange", + valueChange: "valueChange", + }, + features: [_.ɵɵInheritDefinitionFeature, _.ɵɵNgOnChangesFeature], + })), + fe + ); + })(), + Et = (() => { + class fe extends Bt { + constructor() { + super(...arguments), + (this._scrollTop = 0), + (this._triggerFontSize = 0), + (this._transformOrigin = "top"), + (this._offsetY = 0), + (this._positions = [ + { + originX: "start", + originY: "top", + overlayX: "start", + overlayY: "top", + }, + { + originX: "start", + originY: "bottom", + overlayX: "start", + overlayY: "bottom", + }, + ]); + } + _calculateOverlayScroll(D, U, X) { + const _e = this._getItemHeight(); + return Math.min(Math.max(0, _e * D - U + _e / 2), X); + } + ngOnInit() { + super.ngOnInit(), + this._viewportRuler + .change() + .pipe((0, A.R)(this._destroy)) + .subscribe(() => { + this.panelOpen && + ((this._triggerRect = this.trigger.nativeElement.getBoundingClientRect()), + this._changeDetectorRef.markForCheck()); + }); + } + open() { + super._canOpen() && + (super.open(), + (this._triggerRect = this.trigger.nativeElement.getBoundingClientRect()), + (this._triggerFontSize = parseInt( + getComputedStyle(this.trigger.nativeElement).fontSize || "0" + )), + this._calculateOverlayPosition(), + this._ngZone.onStable.pipe((0, x.q)(1)).subscribe(() => { + this._triggerFontSize && + this._overlayDir.overlayRef && + this._overlayDir.overlayRef.overlayElement && + (this._overlayDir.overlayRef.overlayElement.style.fontSize = `${this._triggerFontSize}px`); + })); + } + _scrollOptionIntoView(D) { + const U = (0, m._countGroupLabelsBeforeOption)( + D, + this.options, + this.optionGroups + ), + X = this._getItemHeight(); + this.panel.nativeElement.scrollTop = + 0 === D && 1 === U + ? 0 + : (0, m._getOptionScrollPosition)( + (D + U) * X, + X, + this.panel.nativeElement.scrollTop, + 256 + ); + } + _positioningSettled() { + this._calculateOverlayOffsetX(), + (this.panel.nativeElement.scrollTop = this._scrollTop); + } + _panelDoneAnimating(D) { + this.panelOpen + ? (this._scrollTop = 0) + : ((this._overlayDir.offsetX = 0), + this._changeDetectorRef.markForCheck()), + super._panelDoneAnimating(D); + } + _getChangeEvent(D) { + return new ot(this, D); + } + _calculateOverlayOffsetX() { + const D = this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(), + U = this._viewportRuler.getViewportSize(), + X = this._isRtl(), + _e = this.multiple ? 56 : 32; + let Be; + if (this.multiple) Be = 40; + else if (this.disableOptionCentering) Be = 16; + else { + let ut = this._selectionModel.selected[0] || this.options.first; + Be = ut && ut.group ? 32 : 16; + } + X || (Be *= -1); + const $e = 0 - (D.left + Be - (X ? _e : 0)), + st = D.right + Be - U.width + (X ? 0 : _e); + $e > 0 ? (Be += $e + 8) : st > 0 && (Be -= st + 8), + (this._overlayDir.offsetX = Math.round(Be)), + this._overlayDir.overlayRef.updatePosition(); + } + _calculateOverlayOffsetY(D, U, X) { + const _e = this._getItemHeight(), + Be = (_e - this._triggerRect.height) / 2, + $e = Math.floor(256 / _e); + let st; + return this.disableOptionCentering + ? 0 + : ((st = + 0 === this._scrollTop + ? D * _e + : this._scrollTop === X + ? (D - (this._getItemCount() - $e)) * _e + + (_e - ((this._getItemCount() * _e - 256) % _e)) + : U - _e / 2), + Math.round(-1 * st - Be)); + } + _checkOverlayWithinViewport(D) { + const U = this._getItemHeight(), + X = this._viewportRuler.getViewportSize(), + _e = this._triggerRect.top - 8, + Be = X.height - this._triggerRect.bottom - 8, + $e = Math.abs(this._offsetY), + ut = + Math.min(this._getItemCount() * U, 256) - + $e - + this._triggerRect.height; + ut > Be + ? this._adjustPanelUp(ut, Be) + : $e > _e + ? this._adjustPanelDown($e, _e, D) + : (this._transformOrigin = this._getOriginBasedOnOption()); + } + _adjustPanelUp(D, U) { + const X = Math.round(D - U); + (this._scrollTop -= X), + (this._offsetY -= X), + (this._transformOrigin = this._getOriginBasedOnOption()), + this._scrollTop <= 0 && + ((this._scrollTop = 0), + (this._offsetY = 0), + (this._transformOrigin = "50% bottom 0px")); + } + _adjustPanelDown(D, U, X) { + const _e = Math.round(D - U); + if ( + ((this._scrollTop += _e), + (this._offsetY += _e), + (this._transformOrigin = this._getOriginBasedOnOption()), + this._scrollTop >= X) + ) + return ( + (this._scrollTop = X), + (this._offsetY = 0), + void (this._transformOrigin = "50% top 0px") + ); + } + _calculateOverlayPosition() { + const D = this._getItemHeight(), + U = this._getItemCount(), + X = Math.min(U * D, 256), + Be = U * D - X; + let $e; + ($e = this.empty + ? 0 + : Math.max( + this.options + .toArray() + .indexOf(this._selectionModel.selected[0]), + 0 + )), + ($e += (0, m._countGroupLabelsBeforeOption)( + $e, + this.options, + this.optionGroups + )); + const st = X / 2; + (this._scrollTop = this._calculateOverlayScroll($e, st, Be)), + (this._offsetY = this._calculateOverlayOffsetY($e, st, Be)), + this._checkOverlayWithinViewport(Be); + } + _getOriginBasedOnOption() { + const D = this._getItemHeight(), + U = (D - this._triggerRect.height) / 2; + return `50% ${Math.abs(this._offsetY) - U + D / 2}px 0px`; + } + _getItemHeight() { + return 3 * this._triggerFontSize; + } + _getItemCount() { + return this.options.length + this.optionGroups.length; + } + } + return ( + (fe.ɵfac = (function () { + let H; + return function (U) { + return (H || (H = _.ɵɵgetInheritedFactory(fe)))(U || fe); + }; + })()), + (fe.ɵcmp = _.ɵɵdefineComponent({ + type: fe, + selectors: [["mat-select"]], + contentQueries: function (D, U, X) { + if ( + (1 & D && + (_.ɵɵcontentQuery(X, At, 5), + _.ɵɵcontentQuery(X, m.MatOption, 5), + _.ɵɵcontentQuery(X, m.MAT_OPTGROUP, 5)), + 2 & D) + ) { + let _e; + _.ɵɵqueryRefresh((_e = _.ɵɵloadQuery())) && + (U.customTrigger = _e.first), + _.ɵɵqueryRefresh((_e = _.ɵɵloadQuery())) && + (U.options = _e), + _.ɵɵqueryRefresh((_e = _.ɵɵloadQuery())) && + (U.optionGroups = _e); + } + }, + hostAttrs: [ + "role", + "combobox", + "aria-autocomplete", + "none", + "aria-haspopup", + "true", + 1, + "mat-select", + ], + hostVars: 20, + hostBindings: function (D, U) { + 1 & D && + _.ɵɵlistener("keydown", function (_e) { + return U._handleKeydown(_e); + })("focus", function () { + return U._onFocus(); + })("blur", function () { + return U._onBlur(); + }), + 2 & D && + (_.ɵɵattribute("id", U.id)("tabindex", U.tabIndex)( + "aria-controls", + U.panelOpen ? U.id + "-panel" : null + )("aria-expanded", U.panelOpen)( + "aria-label", + U.ariaLabel || null + )("aria-required", U.required.toString())( + "aria-disabled", + U.disabled.toString() + )("aria-invalid", U.errorState)( + "aria-describedby", + U._ariaDescribedby || null + )("aria-activedescendant", U._getAriaActiveDescendant()), + _.ɵɵclassProp("mat-select-disabled", U.disabled)( + "mat-select-invalid", + U.errorState + )("mat-select-required", U.required)( + "mat-select-empty", + U.empty + )("mat-select-multiple", U.multiple)); + }, + inputs: { + disabled: "disabled", + disableRipple: "disableRipple", + tabIndex: "tabIndex", + }, + exportAs: ["matSelect"], + features: [ + _.ɵɵProvidersFeature([ + { provide: s.MatFormFieldControl, useExisting: fe }, + { provide: m.MAT_OPTION_PARENT_COMPONENT, useExisting: fe }, + ]), + _.ɵɵInheritDefinitionFeature, + ], + ngContentSelectors: $, + decls: 9, + vars: 12, + consts: [ + ["cdk-overlay-origin", "", 1, "mat-select-trigger", 3, "click"], + ["origin", "cdkOverlayOrigin", "trigger", ""], + [1, "mat-select-value", 3, "ngSwitch"], + [ + "class", + "mat-select-placeholder mat-select-min-line", + 4, + "ngSwitchCase", + ], + [ + "class", + "mat-select-value-text", + 3, + "ngSwitch", + 4, + "ngSwitchCase", + ], + [1, "mat-select-arrow-wrapper"], + [1, "mat-select-arrow"], + [ + "cdk-connected-overlay", + "", + "cdkConnectedOverlayLockPosition", + "", + "cdkConnectedOverlayHasBackdrop", + "", + "cdkConnectedOverlayBackdropClass", + "cdk-overlay-transparent-backdrop", + 3, + "cdkConnectedOverlayPanelClass", + "cdkConnectedOverlayScrollStrategy", + "cdkConnectedOverlayOrigin", + "cdkConnectedOverlayOpen", + "cdkConnectedOverlayPositions", + "cdkConnectedOverlayMinWidth", + "cdkConnectedOverlayOffsetY", + "backdropClick", + "attach", + "detach", + ], + [1, "mat-select-placeholder", "mat-select-min-line"], + [1, "mat-select-value-text", 3, "ngSwitch"], + ["class", "mat-select-min-line", 4, "ngSwitchDefault"], + [4, "ngSwitchCase"], + [1, "mat-select-min-line"], + [1, "mat-select-panel-wrap"], + ["role", "listbox", "tabindex", "-1", 3, "ngClass", "keydown"], + ["panel", ""], + ], + template: function (D, U) { + if ( + (1 & D && + (_.ɵɵprojectionDef(ee), + _.ɵɵelementStart(0, "div", 0, 1), + _.ɵɵlistener("click", function () { + return U.toggle(); + }), + _.ɵɵelementStart(3, "div", 2), + _.ɵɵtemplate(4, L, 2, 1, "span", 3), + _.ɵɵtemplate(5, Y, 3, 2, "span", 4), + _.ɵɵelementEnd(), + _.ɵɵelementStart(6, "div", 5), + _.ɵɵelement(7, "div", 6), + _.ɵɵelementEnd(), + _.ɵɵelementEnd(), + _.ɵɵtemplate(8, Z, 4, 14, "ng-template", 7), + _.ɵɵlistener("backdropClick", function () { + return U.close(); + })("attach", function () { + return U._onAttached(); + })("detach", function () { + return U.close(); + })), + 2 & D) + ) { + const X = _.ɵɵreference(1); + _.ɵɵattribute( + "aria-owns", + U.panelOpen ? U.id + "-panel" : null + ), + _.ɵɵadvance(3), + _.ɵɵproperty("ngSwitch", U.empty), + _.ɵɵattribute("id", U._valueId), + _.ɵɵadvance(1), + _.ɵɵproperty("ngSwitchCase", !0), + _.ɵɵadvance(1), + _.ɵɵproperty("ngSwitchCase", !1), + _.ɵɵadvance(3), + _.ɵɵproperty( + "cdkConnectedOverlayPanelClass", + U._overlayPanelClass + )("cdkConnectedOverlayScrollStrategy", U._scrollStrategy)( + "cdkConnectedOverlayOrigin", + X + )("cdkConnectedOverlayOpen", U.panelOpen)( + "cdkConnectedOverlayPositions", + U._positions + )( + "cdkConnectedOverlayMinWidth", + null == U._triggerRect ? null : U._triggerRect.width + )("cdkConnectedOverlayOffsetY", U._offsetY); + } + }, + directives: [ + n.xu, + f.NgSwitch, + f.NgSwitchCase, + n.pI, + f.NgSwitchDefault, + f.NgClass, + ], + styles: [ + '.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n', + ], + encapsulation: 2, + data: { animation: [J.transformPanelWrap, J.transformPanel] }, + changeDetection: 0, + })), + fe + ); + })(), + Ee = (() => { + class fe {} + return ( + (fe.ɵfac = function (D) { + return new (D || fe)(); + }), + (fe.ɵmod = _.ɵɵdefineNgModule({ type: fe })), + (fe.ɵinj = _.ɵɵdefineInjector({ + providers: [yt], + imports: [ + [f.CommonModule, n.U8, m.MatOptionModule, m.MatCommonModule], + d.ZD, + s.MatFormFieldModule, + m.MatOptionModule, + m.MatCommonModule, + ], + })), + fe + ); + })(); + }, + 2368: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS: () => l, + MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR: () => O, + MAT_SLIDE_TOGGLE_VALUE_ACCESSOR: () => b, + MatSlideToggle: () => T, + MatSlideToggleChange: () => y, + MatSlideToggleModule: () => S, + MatSlideToggleRequiredValidator: () => M, + _MatSlideToggleRequiredValidatorModule: () => A, + }); + var n = p(7144), + f = p(5e3), + _ = p(508), + m = p(3191), + s = p(3075), + d = p(6360), + u = p(5664); + const h = ["thumbContainer"], + r = ["toggleBar"], + o = ["input"], + i = function (w) { + return { enterDuration: w }; + }, + c = ["*"], + l = new f.InjectionToken("mat-slide-toggle-default-options", { + providedIn: "root", + factory: () => ({ disableToggleValue: !1 }), + }); + let g = 0; + const b = { + provide: s.NG_VALUE_ACCESSOR, + useExisting: (0, f.forwardRef)(() => T), + multi: !0, + }; + class y { + constructor(I, C) { + (this.source = I), (this.checked = C); + } + } + const x = (0, _.mixinTabIndex)( + (0, _.mixinColor)( + (0, _.mixinDisableRipple)( + (0, _.mixinDisabled)( + class { + constructor(w) { + this._elementRef = w; + } + } + ) + ) + ) + ); + let T = (() => { + class w extends x { + constructor(C, L, F, ie, Y, Z) { + super(C), + (this._focusMonitor = L), + (this._changeDetectorRef = F), + (this.defaults = Y), + (this._onChange = (ee) => {}), + (this._onTouched = () => {}), + (this._uniqueId = "mat-slide-toggle-" + ++g), + (this._required = !1), + (this._checked = !1), + (this.name = null), + (this.id = this._uniqueId), + (this.labelPosition = "after"), + (this.ariaLabel = null), + (this.ariaLabelledby = null), + (this.change = new f.EventEmitter()), + (this.toggleChange = new f.EventEmitter()), + (this.tabIndex = parseInt(ie) || 0), + (this.color = this.defaultColor = Y.color || "accent"), + (this._noopAnimations = "NoopAnimations" === Z); + } + get required() { + return this._required; + } + set required(C) { + this._required = (0, m.Ig)(C); + } + get checked() { + return this._checked; + } + set checked(C) { + (this._checked = (0, m.Ig)(C)), + this._changeDetectorRef.markForCheck(); + } + get inputId() { + return `${this.id || this._uniqueId}-input`; + } + ngAfterContentInit() { + this._focusMonitor.monitor(this._elementRef, !0).subscribe((C) => { + C || Promise.resolve().then(() => this._onTouched()); + }); + } + ngOnDestroy() { + this._focusMonitor.stopMonitoring(this._elementRef); + } + _onChangeEvent(C) { + C.stopPropagation(), + this.toggleChange.emit(), + this.defaults.disableToggleValue + ? (this._inputElement.nativeElement.checked = this.checked) + : ((this.checked = this._inputElement.nativeElement.checked), + this._emitChangeEvent()); + } + _onInputClick(C) { + C.stopPropagation(); + } + writeValue(C) { + this.checked = !!C; + } + registerOnChange(C) { + this._onChange = C; + } + registerOnTouched(C) { + this._onTouched = C; + } + setDisabledState(C) { + (this.disabled = C), this._changeDetectorRef.markForCheck(); + } + focus(C, L) { + L + ? this._focusMonitor.focusVia(this._inputElement, L, C) + : this._inputElement.nativeElement.focus(C); + } + toggle() { + (this.checked = !this.checked), this._onChange(this.checked); + } + _emitChangeEvent() { + this._onChange(this.checked), + this.change.emit(new y(this, this.checked)); + } + _onLabelTextChange() { + this._changeDetectorRef.detectChanges(); + } + } + return ( + (w.ɵfac = function (C) { + return new (C || w)( + f.ɵɵdirectiveInject(f.ElementRef), + f.ɵɵdirectiveInject(u.tE), + f.ɵɵdirectiveInject(f.ChangeDetectorRef), + f.ɵɵinjectAttribute("tabindex"), + f.ɵɵdirectiveInject(l), + f.ɵɵdirectiveInject(d.ANIMATION_MODULE_TYPE, 8) + ); + }), + (w.ɵcmp = f.ɵɵdefineComponent({ + type: w, + selectors: [["mat-slide-toggle"]], + viewQuery: function (C, L) { + if ( + (1 & C && + (f.ɵɵviewQuery(h, 5), + f.ɵɵviewQuery(r, 5), + f.ɵɵviewQuery(o, 5)), + 2 & C) + ) { + let F; + f.ɵɵqueryRefresh((F = f.ɵɵloadQuery())) && + (L._thumbEl = F.first), + f.ɵɵqueryRefresh((F = f.ɵɵloadQuery())) && + (L._thumbBarEl = F.first), + f.ɵɵqueryRefresh((F = f.ɵɵloadQuery())) && + (L._inputElement = F.first); + } + }, + hostAttrs: [1, "mat-slide-toggle"], + hostVars: 12, + hostBindings: function (C, L) { + 2 & C && + (f.ɵɵhostProperty("id", L.id), + f.ɵɵattribute("tabindex", null)("aria-label", null)( + "aria-labelledby", + null + ), + f.ɵɵclassProp("mat-checked", L.checked)( + "mat-disabled", + L.disabled + )("mat-slide-toggle-label-before", "before" == L.labelPosition)( + "_mat-animation-noopable", + L._noopAnimations + )); + }, + inputs: { + disabled: "disabled", + disableRipple: "disableRipple", + color: "color", + tabIndex: "tabIndex", + name: "name", + id: "id", + labelPosition: "labelPosition", + ariaLabel: ["aria-label", "ariaLabel"], + ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], + ariaDescribedby: ["aria-describedby", "ariaDescribedby"], + required: "required", + checked: "checked", + }, + outputs: { change: "change", toggleChange: "toggleChange" }, + exportAs: ["matSlideToggle"], + features: [f.ɵɵProvidersFeature([b]), f.ɵɵInheritDefinitionFeature], + ngContentSelectors: c, + decls: 16, + vars: 20, + consts: [ + [1, "mat-slide-toggle-label"], + ["label", ""], + [1, "mat-slide-toggle-bar"], + ["toggleBar", ""], + [ + "type", + "checkbox", + "role", + "switch", + 1, + "mat-slide-toggle-input", + "cdk-visually-hidden", + 3, + "id", + "required", + "tabIndex", + "checked", + "disabled", + "change", + "click", + ], + ["input", ""], + [1, "mat-slide-toggle-thumb-container"], + ["thumbContainer", ""], + [1, "mat-slide-toggle-thumb"], + [ + "mat-ripple", + "", + 1, + "mat-slide-toggle-ripple", + "mat-focus-indicator", + 3, + "matRippleTrigger", + "matRippleDisabled", + "matRippleCentered", + "matRippleRadius", + "matRippleAnimation", + ], + [1, "mat-ripple-element", "mat-slide-toggle-persistent-ripple"], + [1, "mat-slide-toggle-content", 3, "cdkObserveContent"], + ["labelContent", ""], + [2, "display", "none"], + ], + template: function (C, L) { + if ( + (1 & C && + (f.ɵɵprojectionDef(), + f.ɵɵelementStart(0, "label", 0, 1), + f.ɵɵelementStart(2, "div", 2, 3), + f.ɵɵelementStart(4, "input", 4, 5), + f.ɵɵlistener("change", function (ie) { + return L._onChangeEvent(ie); + })("click", function (ie) { + return L._onInputClick(ie); + }), + f.ɵɵelementEnd(), + f.ɵɵelementStart(6, "div", 6, 7), + f.ɵɵelement(8, "div", 8), + f.ɵɵelementStart(9, "div", 9), + f.ɵɵelement(10, "div", 10), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(), + f.ɵɵelementStart(11, "span", 11, 12), + f.ɵɵlistener("cdkObserveContent", function () { + return L._onLabelTextChange(); + }), + f.ɵɵelementStart(13, "span", 13), + f.ɵɵtext(14, "\xa0"), + f.ɵɵelementEnd(), + f.ɵɵprojection(15), + f.ɵɵelementEnd(), + f.ɵɵelementEnd()), + 2 & C) + ) { + const F = f.ɵɵreference(1), + ie = f.ɵɵreference(12); + f.ɵɵattribute("for", L.inputId), + f.ɵɵadvance(2), + f.ɵɵclassProp( + "mat-slide-toggle-bar-no-side-margin", + !ie.textContent || !ie.textContent.trim() + ), + f.ɵɵadvance(2), + f.ɵɵproperty("id", L.inputId)("required", L.required)( + "tabIndex", + L.tabIndex + )("checked", L.checked)("disabled", L.disabled), + f.ɵɵattribute("name", L.name)( + "aria-checked", + L.checked.toString() + )("aria-label", L.ariaLabel)( + "aria-labelledby", + L.ariaLabelledby + )("aria-describedby", L.ariaDescribedby), + f.ɵɵadvance(5), + f.ɵɵproperty("matRippleTrigger", F)( + "matRippleDisabled", + L.disableRipple || L.disabled + )("matRippleCentered", !0)("matRippleRadius", 20)( + "matRippleAnimation", + f.ɵɵpureFunction1(18, i, L._noopAnimations ? 0 : 150) + ); + } + }, + directives: [_.MatRipple, n.wD], + styles: [ + ".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + w + ); + })(); + const O = { + provide: s.NG_VALIDATORS, + useExisting: (0, f.forwardRef)(() => M), + multi: !0, + }; + let M = (() => { + class w extends s.CheckboxRequiredValidator {} + return ( + (w.ɵfac = (function () { + let I; + return function (L) { + return (I || (I = f.ɵɵgetInheritedFactory(w)))(L || w); + }; + })()), + (w.ɵdir = f.ɵɵdefineDirective({ + type: w, + selectors: [ + ["mat-slide-toggle", "required", "", "formControlName", ""], + ["mat-slide-toggle", "required", "", "formControl", ""], + ["mat-slide-toggle", "required", "", "ngModel", ""], + ], + features: [ + f.ɵɵProvidersFeature([O]), + f.ɵɵInheritDefinitionFeature, + ], + })), + w + ); + })(), + A = (() => { + class w {} + return ( + (w.ɵfac = function (C) { + return new (C || w)(); + }), + (w.ɵmod = f.ɵɵdefineNgModule({ type: w })), + (w.ɵinj = f.ɵɵdefineInjector({})), + w + ); + })(), + S = (() => { + class w {} + return ( + (w.ɵfac = function (C) { + return new (C || w)(); + }), + (w.ɵmod = f.ɵɵdefineNgModule({ type: w })), + (w.ɵinj = f.ɵɵdefineInjector({ + imports: [ + [A, _.MatRippleModule, _.MatCommonModule, n.Q8], + A, + _.MatCommonModule, + ], + })), + w + ); + })(); + }, + 8029: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_SLIDER_VALUE_ACCESSOR: () => T, + MatSlider: () => A, + MatSliderChange: () => O, + MatSliderModule: () => L, + }); + var n = p(9808), + f = p(5e3), + _ = p(508), + m = p(3191), + s = p(1159), + d = p(3075), + u = p(6360), + h = p(925), + r = p(2654), + o = p(5664), + i = p(226); + const c = ["sliderWrapper"], + l = (0, h.i$)({ passive: !1 }), + T = { + provide: d.NG_VALUE_ACCESSOR, + useExisting: (0, f.forwardRef)(() => A), + multi: !0, + }; + class O {} + const M = (0, _.mixinTabIndex)( + (0, _.mixinColor)( + (0, _.mixinDisabled)( + class { + constructor(F) { + this._elementRef = F; + } + } + ), + "accent" + ) + ); + let A = (() => { + class F extends M { + constructor(Y, Z, ee, $, J, ne, ae, le) { + super(Y), + (this._focusMonitor = Z), + (this._changeDetectorRef = ee), + (this._dir = $), + (this._ngZone = ne), + (this._animationMode = le), + (this._invert = !1), + (this._max = 100), + (this._min = 0), + (this._step = 1), + (this._thumbLabel = !1), + (this._tickInterval = 0), + (this._value = null), + (this._vertical = !1), + (this.change = new f.EventEmitter()), + (this.input = new f.EventEmitter()), + (this.valueChange = new f.EventEmitter()), + (this.onTouched = () => {}), + (this._percent = 0), + (this._isSliding = null), + (this._isActive = !1), + (this._tickIntervalPercent = 0), + (this._sliderDimensions = null), + (this._controlValueAccessorChangeFn = () => {}), + (this._dirChangeSubscription = r.w.EMPTY), + (this._pointerDown = (Oe) => { + this.disabled || + this._isSliding || + (!S(Oe) && 0 !== Oe.button) || + this._ngZone.run(() => { + this._touchId = S(Oe) + ? (function (F, ie) { + for (let Y = 0; Y < F.touches.length; Y++) { + const Z = F.touches[Y].target; + if (ie === Z || ie.contains(Z)) + return F.touches[Y].identifier; + } + })(Oe, this._elementRef.nativeElement) + : void 0; + const Le = w(Oe, this._touchId); + if (Le) { + const Ye = this.value; + (this._isSliding = "pointer"), + (this._lastPointerEvent = Oe), + Oe.preventDefault(), + this._focusHostElement(), + this._onMouseenter(), + this._bindGlobalEvents(Oe), + this._focusHostElement(), + this._updateValueFromPosition(Le), + (this._valueOnSlideStart = Ye), + Ye != this.value && this._emitInputEvent(); + } + }); + }), + (this._pointerMove = (Oe) => { + if ("pointer" === this._isSliding) { + const Le = w(Oe, this._touchId); + if (Le) { + Oe.preventDefault(); + const Ye = this.value; + (this._lastPointerEvent = Oe), + this._updateValueFromPosition(Le), + Ye != this.value && this._emitInputEvent(); + } + } + }), + (this._pointerUp = (Oe) => { + "pointer" === this._isSliding && + (!S(Oe) || + "number" != typeof this._touchId || + I(Oe.changedTouches, this._touchId)) && + (Oe.preventDefault(), + this._removeGlobalEvents(), + (this._isSliding = null), + (this._touchId = void 0), + this._valueOnSlideStart != this.value && + !this.disabled && + this._emitChangeEvent(), + (this._valueOnSlideStart = this._lastPointerEvent = null)); + }), + (this._windowBlur = () => { + this._lastPointerEvent && + this._pointerUp(this._lastPointerEvent); + }), + (this._document = ae), + (this.tabIndex = parseInt(J) || 0), + ne.runOutsideAngular(() => { + const Oe = Y.nativeElement; + Oe.addEventListener("mousedown", this._pointerDown, l), + Oe.addEventListener("touchstart", this._pointerDown, l); + }); + } + get invert() { + return this._invert; + } + set invert(Y) { + this._invert = (0, m.Ig)(Y); + } + get max() { + return this._max; + } + set max(Y) { + (this._max = (0, m.su)(Y, this._max)), + (this._percent = this._calculatePercentage(this._value)), + this._changeDetectorRef.markForCheck(); + } + get min() { + return this._min; + } + set min(Y) { + (this._min = (0, m.su)(Y, this._min)), + (this._percent = this._calculatePercentage(this._value)), + this._changeDetectorRef.markForCheck(); + } + get step() { + return this._step; + } + set step(Y) { + (this._step = (0, m.su)(Y, this._step)), + this._step % 1 != 0 && + (this._roundToDecimal = this._step + .toString() + .split(".") + .pop().length), + this._changeDetectorRef.markForCheck(); + } + get thumbLabel() { + return this._thumbLabel; + } + set thumbLabel(Y) { + this._thumbLabel = (0, m.Ig)(Y); + } + get tickInterval() { + return this._tickInterval; + } + set tickInterval(Y) { + this._tickInterval = + "auto" === Y + ? "auto" + : "number" == typeof Y || "string" == typeof Y + ? (0, m.su)(Y, this._tickInterval) + : 0; + } + get value() { + return ( + null === this._value && (this.value = this._min), this._value + ); + } + set value(Y) { + if (Y !== this._value) { + let Z = (0, m.su)(Y, 0); + this._roundToDecimal && + Z !== this.min && + Z !== this.max && + (Z = parseFloat(Z.toFixed(this._roundToDecimal))), + (this._value = Z), + (this._percent = this._calculatePercentage(this._value)), + this._changeDetectorRef.markForCheck(); + } + } + get vertical() { + return this._vertical; + } + set vertical(Y) { + this._vertical = (0, m.Ig)(Y); + } + get displayValue() { + return this.displayWith + ? this.displayWith(this.value) + : this._roundToDecimal && this.value && this.value % 1 != 0 + ? this.value.toFixed(this._roundToDecimal) + : this.value || 0; + } + focus(Y) { + this._focusHostElement(Y); + } + blur() { + this._blurHostElement(); + } + get percent() { + return this._clamp(this._percent); + } + _shouldInvertAxis() { + return this.vertical ? !this.invert : this.invert; + } + _isMinValue() { + return 0 === this.percent; + } + _getThumbGap() { + return this.disabled + ? 7 + : this._isMinValue() && !this.thumbLabel + ? this._isActive + ? 10 + : 7 + : 0; + } + _getTrackBackgroundStyles() { + const Z = this.vertical + ? `1, ${1 - this.percent}, 1` + : 1 - this.percent + ", 1, 1"; + return { + transform: `translate${this.vertical ? "Y" : "X"}(${ + this._shouldInvertMouseCoords() ? "-" : "" + }${this._getThumbGap()}px) scale3d(${Z})`, + }; + } + _getTrackFillStyles() { + const Y = this.percent, + ee = this.vertical ? `1, ${Y}, 1` : `${Y}, 1, 1`; + return { + transform: `translate${this.vertical ? "Y" : "X"}(${ + this._shouldInvertMouseCoords() ? "" : "-" + }${this._getThumbGap()}px) scale3d(${ee})`, + display: 0 === Y ? "none" : "", + }; + } + _getTicksContainerStyles() { + return { + transform: `translate${this.vertical ? "Y" : "X"}(${ + this.vertical || "rtl" != this._getDirection() ? "-" : "" + }${(this._tickIntervalPercent / 2) * 100}%)`, + }; + } + _getTicksStyles() { + let Y = 100 * this._tickIntervalPercent, + ne = { + backgroundSize: this.vertical ? `2px ${Y}%` : `${Y}% 2px`, + transform: `translateZ(0) translate${ + this.vertical ? "Y" : "X" + }(${this.vertical || "rtl" != this._getDirection() ? "" : "-"}${ + Y / 2 + }%)${ + this.vertical || "rtl" != this._getDirection() + ? "" + : " rotate(180deg)" + }`, + }; + if (this._isMinValue() && this._getThumbGap()) { + const ae = this._shouldInvertAxis(); + let le; + (le = this.vertical + ? ae + ? "Bottom" + : "Top" + : ae + ? "Right" + : "Left"), + (ne[`padding${le}`] = `${this._getThumbGap()}px`); + } + return ne; + } + _getThumbContainerStyles() { + const Y = this._shouldInvertAxis(); + return { + transform: `translate${this.vertical ? "Y" : "X"}(-${ + 100 * + (("rtl" != this._getDirection() || this.vertical ? Y : !Y) + ? this.percent + : 1 - this.percent) + }%)`, + }; + } + _shouldInvertMouseCoords() { + const Y = this._shouldInvertAxis(); + return "rtl" != this._getDirection() || this.vertical ? Y : !Y; + } + _getDirection() { + return this._dir && "rtl" == this._dir.value ? "rtl" : "ltr"; + } + ngAfterViewInit() { + this._focusMonitor.monitor(this._elementRef, !0).subscribe((Y) => { + (this._isActive = !!Y && "keyboard" !== Y), + this._changeDetectorRef.detectChanges(); + }), + this._dir && + (this._dirChangeSubscription = this._dir.change.subscribe( + () => { + this._changeDetectorRef.markForCheck(); + } + )); + } + ngOnDestroy() { + const Y = this._elementRef.nativeElement; + Y.removeEventListener("mousedown", this._pointerDown, l), + Y.removeEventListener("touchstart", this._pointerDown, l), + (this._lastPointerEvent = null), + this._removeGlobalEvents(), + this._focusMonitor.stopMonitoring(this._elementRef), + this._dirChangeSubscription.unsubscribe(); + } + _onMouseenter() { + this.disabled || + ((this._sliderDimensions = this._getSliderDimensions()), + this._updateTickIntervalPercent()); + } + _onFocus() { + (this._sliderDimensions = this._getSliderDimensions()), + this._updateTickIntervalPercent(); + } + _onBlur() { + this.onTouched(); + } + _onKeydown(Y) { + if ( + this.disabled || + (0, s.Vb)(Y) || + (this._isSliding && "keyboard" !== this._isSliding) + ) + return; + const Z = this.value; + switch (Y.keyCode) { + case s.Ku: + this._increment(10); + break; + case s.VM: + this._increment(-10); + break; + case s.uR: + this.value = this.max; + break; + case s.Sd: + this.value = this.min; + break; + case s.oh: + this._increment("rtl" == this._getDirection() ? 1 : -1); + break; + case s.LH: + this._increment(1); + break; + case s.SV: + this._increment("rtl" == this._getDirection() ? -1 : 1); + break; + case s.JH: + this._increment(-1); + break; + default: + return; + } + Z != this.value && + (this._emitInputEvent(), this._emitChangeEvent()), + (this._isSliding = "keyboard"), + Y.preventDefault(); + } + _onKeyup() { + "keyboard" === this._isSliding && (this._isSliding = null); + } + _getWindow() { + return this._document.defaultView || window; + } + _bindGlobalEvents(Y) { + const Z = this._document, + ee = S(Y), + J = ee ? "touchend" : "mouseup"; + Z.addEventListener( + ee ? "touchmove" : "mousemove", + this._pointerMove, + l + ), + Z.addEventListener(J, this._pointerUp, l), + ee && Z.addEventListener("touchcancel", this._pointerUp, l); + const ne = this._getWindow(); + void 0 !== ne && + ne && + ne.addEventListener("blur", this._windowBlur); + } + _removeGlobalEvents() { + const Y = this._document; + Y.removeEventListener("mousemove", this._pointerMove, l), + Y.removeEventListener("mouseup", this._pointerUp, l), + Y.removeEventListener("touchmove", this._pointerMove, l), + Y.removeEventListener("touchend", this._pointerUp, l), + Y.removeEventListener("touchcancel", this._pointerUp, l); + const Z = this._getWindow(); + void 0 !== Z && + Z && + Z.removeEventListener("blur", this._windowBlur); + } + _increment(Y) { + this.value = this._clamp( + (this.value || 0) + this.step * Y, + this.min, + this.max + ); + } + _updateValueFromPosition(Y) { + if (!this._sliderDimensions) return; + let J = this._clamp( + ((this.vertical ? Y.y : Y.x) - + (this.vertical + ? this._sliderDimensions.top + : this._sliderDimensions.left)) / + (this.vertical + ? this._sliderDimensions.height + : this._sliderDimensions.width) + ); + if ((this._shouldInvertMouseCoords() && (J = 1 - J), 0 === J)) + this.value = this.min; + else if (1 === J) this.value = this.max; + else { + const ne = this._calculateValue(J), + ae = + Math.round((ne - this.min) / this.step) * this.step + + this.min; + this.value = this._clamp(ae, this.min, this.max); + } + } + _emitChangeEvent() { + this._controlValueAccessorChangeFn(this.value), + this.valueChange.emit(this.value), + this.change.emit(this._createChangeEvent()); + } + _emitInputEvent() { + this.input.emit(this._createChangeEvent()); + } + _updateTickIntervalPercent() { + if (this.tickInterval && this._sliderDimensions) + if ("auto" == this.tickInterval) { + let Y = this.vertical + ? this._sliderDimensions.height + : this._sliderDimensions.width, + $ = + Math.ceil(30 / ((Y * this.step) / (this.max - this.min))) * + this.step; + this._tickIntervalPercent = $ / Y; + } else + this._tickIntervalPercent = + (this.tickInterval * this.step) / (this.max - this.min); + } + _createChangeEvent(Y = this.value) { + let Z = new O(); + return (Z.source = this), (Z.value = Y), Z; + } + _calculatePercentage(Y) { + return ((Y || 0) - this.min) / (this.max - this.min); + } + _calculateValue(Y) { + return this.min + Y * (this.max - this.min); + } + _clamp(Y, Z = 0, ee = 1) { + return Math.max(Z, Math.min(Y, ee)); + } + _getSliderDimensions() { + return this._sliderWrapper + ? this._sliderWrapper.nativeElement.getBoundingClientRect() + : null; + } + _focusHostElement(Y) { + this._elementRef.nativeElement.focus(Y); + } + _blurHostElement() { + this._elementRef.nativeElement.blur(); + } + writeValue(Y) { + this.value = Y; + } + registerOnChange(Y) { + this._controlValueAccessorChangeFn = Y; + } + registerOnTouched(Y) { + this.onTouched = Y; + } + setDisabledState(Y) { + this.disabled = Y; + } + } + return ( + (F.ɵfac = function (Y) { + return new (Y || F)( + f.ɵɵdirectiveInject(f.ElementRef), + f.ɵɵdirectiveInject(o.tE), + f.ɵɵdirectiveInject(f.ChangeDetectorRef), + f.ɵɵdirectiveInject(i.Is, 8), + f.ɵɵinjectAttribute("tabindex"), + f.ɵɵdirectiveInject(f.NgZone), + f.ɵɵdirectiveInject(n.DOCUMENT), + f.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (F.ɵcmp = f.ɵɵdefineComponent({ + type: F, + selectors: [["mat-slider"]], + viewQuery: function (Y, Z) { + if ((1 & Y && f.ɵɵviewQuery(c, 5), 2 & Y)) { + let ee; + f.ɵɵqueryRefresh((ee = f.ɵɵloadQuery())) && + (Z._sliderWrapper = ee.first); + } + }, + hostAttrs: [ + "role", + "slider", + 1, + "mat-slider", + "mat-focus-indicator", + ], + hostVars: 29, + hostBindings: function (Y, Z) { + 1 & Y && + f.ɵɵlistener("focus", function () { + return Z._onFocus(); + })("blur", function () { + return Z._onBlur(); + })("keydown", function ($) { + return Z._onKeydown($); + })("keyup", function () { + return Z._onKeyup(); + })("mouseenter", function () { + return Z._onMouseenter(); + })("selectstart", function ($) { + return $.preventDefault(); + }), + 2 & Y && + (f.ɵɵhostProperty("tabIndex", Z.tabIndex), + f.ɵɵattribute("aria-disabled", Z.disabled)( + "aria-valuemax", + Z.max + )("aria-valuemin", Z.min)("aria-valuenow", Z.value)( + "aria-valuetext", + null == Z.valueText ? Z.displayValue : Z.valueText + )("aria-orientation", Z.vertical ? "vertical" : "horizontal"), + f.ɵɵclassProp("mat-slider-disabled", Z.disabled)( + "mat-slider-has-ticks", + Z.tickInterval + )("mat-slider-horizontal", !Z.vertical)( + "mat-slider-axis-inverted", + Z._shouldInvertAxis() + )( + "mat-slider-invert-mouse-coords", + Z._shouldInvertMouseCoords() + )("mat-slider-sliding", Z._isSliding)( + "mat-slider-thumb-label-showing", + Z.thumbLabel + )("mat-slider-vertical", Z.vertical)( + "mat-slider-min-value", + Z._isMinValue() + )( + "mat-slider-hide-last-tick", + Z.disabled || + (Z._isMinValue() && + Z._getThumbGap() && + Z._shouldInvertAxis()) + )( + "_mat-animation-noopable", + "NoopAnimations" === Z._animationMode + )); + }, + inputs: { + disabled: "disabled", + color: "color", + tabIndex: "tabIndex", + invert: "invert", + max: "max", + min: "min", + step: "step", + thumbLabel: "thumbLabel", + tickInterval: "tickInterval", + value: "value", + displayWith: "displayWith", + valueText: "valueText", + vertical: "vertical", + }, + outputs: { + change: "change", + input: "input", + valueChange: "valueChange", + }, + exportAs: ["matSlider"], + features: [f.ɵɵProvidersFeature([T]), f.ɵɵInheritDefinitionFeature], + decls: 13, + vars: 6, + consts: [ + [1, "mat-slider-wrapper"], + ["sliderWrapper", ""], + [1, "mat-slider-track-wrapper"], + [1, "mat-slider-track-background", 3, "ngStyle"], + [1, "mat-slider-track-fill", 3, "ngStyle"], + [1, "mat-slider-ticks-container", 3, "ngStyle"], + [1, "mat-slider-ticks", 3, "ngStyle"], + [1, "mat-slider-thumb-container", 3, "ngStyle"], + [1, "mat-slider-focus-ring"], + [1, "mat-slider-thumb"], + [1, "mat-slider-thumb-label"], + [1, "mat-slider-thumb-label-text"], + ], + template: function (Y, Z) { + 1 & Y && + (f.ɵɵelementStart(0, "div", 0, 1), + f.ɵɵelementStart(2, "div", 2), + f.ɵɵelement(3, "div", 3), + f.ɵɵelement(4, "div", 4), + f.ɵɵelementEnd(), + f.ɵɵelementStart(5, "div", 5), + f.ɵɵelement(6, "div", 6), + f.ɵɵelementEnd(), + f.ɵɵelementStart(7, "div", 7), + f.ɵɵelement(8, "div", 8), + f.ɵɵelement(9, "div", 9), + f.ɵɵelementStart(10, "div", 10), + f.ɵɵelementStart(11, "span", 11), + f.ɵɵtext(12), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(), + f.ɵɵelementEnd(), + f.ɵɵelementEnd()), + 2 & Y && + (f.ɵɵadvance(3), + f.ɵɵproperty("ngStyle", Z._getTrackBackgroundStyles()), + f.ɵɵadvance(1), + f.ɵɵproperty("ngStyle", Z._getTrackFillStyles()), + f.ɵɵadvance(1), + f.ɵɵproperty("ngStyle", Z._getTicksContainerStyles()), + f.ɵɵadvance(1), + f.ɵɵproperty("ngStyle", Z._getTicksStyles()), + f.ɵɵadvance(1), + f.ɵɵproperty("ngStyle", Z._getThumbContainerStyles()), + f.ɵɵadvance(5), + f.ɵɵtextInterpolate(Z.displayValue)); + }, + directives: [n.NgStyle], + styles: [ + '.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n', + ], + encapsulation: 2, + changeDetection: 0, + })), + F + ); + })(); + function S(F) { + return "t" === F.type[0]; + } + function w(F, ie) { + let Y; + return ( + (Y = S(F) + ? "number" == typeof ie + ? I(F.touches, ie) || I(F.changedTouches, ie) + : F.touches[0] || F.changedTouches[0] + : F), + Y ? { x: Y.clientX, y: Y.clientY } : void 0 + ); + } + function I(F, ie) { + for (let Y = 0; Y < F.length; Y++) + if (F[Y].identifier === ie) return F[Y]; + } + let L = (() => { + class F {} + return ( + (F.ɵfac = function (Y) { + return new (Y || F)(); + }), + (F.ɵmod = f.ɵɵdefineNgModule({ type: F })), + (F.ɵinj = f.ɵɵdefineInjector({ + imports: [[n.CommonModule, _.MatCommonModule], _.MatCommonModule], + })), + F + ); + })(); + }, + 6346: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MatCell: () => He, + MatCellDef: () => It, + MatColumnDef: () => An, + MatFooterCell: () => ct, + MatFooterCellDef: () => cn, + MatFooterRow: () => On, + MatFooterRowDef: () => Ot, + MatHeaderCell: () => lt, + MatHeaderCellDef: () => Qt, + MatHeaderRow: () => on, + MatHeaderRowDef: () => pt, + MatNoDataRow: () => ji, + MatRecycleRows: () => Me, + MatRow: () => Yn, + MatRowDef: () => un, + MatTable: () => ze, + MatTableDataSource: () => ci, + MatTableModule: () => Ti, + MatTextColumn: () => Oi, + _MatTableDataSource: () => Vi, + }); + var n = p(5e3), + f = p(3191), + _ = p(449), + m = p(9808), + s = p(8929), + d = p(5254), + u = p(591), + h = p(6498), + o = p(1086), + i = p(7625), + c = p(2986), + l = p(226), + g = p(925), + b = p(9071); + const y = [[["caption"]], [["colgroup"], ["col"]]], + x = ["caption", "colgroup, col"]; + function T(xe, Ze) { + if ( + (1 & xe && + (n.ɵɵelementStart(0, "th", 3), n.ɵɵtext(1), n.ɵɵelementEnd()), + 2 & xe) + ) { + const ue = n.ɵɵnextContext(); + n.ɵɵstyleProp("text-align", ue.justify), + n.ɵɵadvance(1), + n.ɵɵtextInterpolate1(" ", ue.headerText, " "); + } + } + function O(xe, Ze) { + if ( + (1 & xe && + (n.ɵɵelementStart(0, "td", 4), n.ɵɵtext(1), n.ɵɵelementEnd()), + 2 & xe) + ) { + const ue = Ze.$implicit, + Re = n.ɵɵnextContext(); + n.ɵɵstyleProp("text-align", Re.justify), + n.ɵɵadvance(1), + n.ɵɵtextInterpolate1(" ", Re.dataAccessor(ue, Re.name), " "); + } + } + function M(xe) { + return class extends xe { + constructor(...Ze) { + super(...Ze), (this._sticky = !1), (this._hasStickyChanged = !1); + } + get sticky() { + return this._sticky; + } + set sticky(Ze) { + const ue = this._sticky; + (this._sticky = (0, f.Ig)(Ze)), + (this._hasStickyChanged = ue !== this._sticky); + } + hasStickyChanged() { + const Ze = this._hasStickyChanged; + return (this._hasStickyChanged = !1), Ze; + } + resetStickyChanged() { + this._hasStickyChanged = !1; + } + }; + } + const A = new n.InjectionToken("CDK_TABLE"), + S = new n.InjectionToken("text-column-options"); + let w = (() => { + class xe { + constructor(ue) { + this.template = ue; + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(n.ɵɵdirectiveInject(n.TemplateRef)); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "cdkCellDef", ""]], + })), + xe + ); + })(), + I = (() => { + class xe { + constructor(ue) { + this.template = ue; + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(n.ɵɵdirectiveInject(n.TemplateRef)); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "cdkHeaderCellDef", ""]], + })), + xe + ); + })(), + C = (() => { + class xe { + constructor(ue) { + this.template = ue; + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(n.ɵɵdirectiveInject(n.TemplateRef)); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "cdkFooterCellDef", ""]], + })), + xe + ); + })(); + class L {} + const F = M(L); + let ie = (() => { + class xe extends F { + constructor(ue) { + super(), (this._table = ue), (this._stickyEnd = !1); + } + get name() { + return this._name; + } + set name(ue) { + this._setNameInput(ue); + } + get stickyEnd() { + return this._stickyEnd; + } + set stickyEnd(ue) { + const Re = this._stickyEnd; + (this._stickyEnd = (0, f.Ig)(ue)), + (this._hasStickyChanged = Re !== this._stickyEnd); + } + _updateColumnCssClassName() { + this._columnCssClassName = [ + `cdk-column-${this.cssClassFriendlyName}`, + ]; + } + _setNameInput(ue) { + ue && + ((this._name = ue), + (this.cssClassFriendlyName = ue.replace(/[^a-z0-9_-]/gi, "-")), + this._updateColumnCssClassName()); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(n.ɵɵdirectiveInject(A, 8)); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "cdkColumnDef", ""]], + contentQueries: function (ue, Re, B) { + if ( + (1 & ue && + (n.ɵɵcontentQuery(B, w, 5), + n.ɵɵcontentQuery(B, I, 5), + n.ɵɵcontentQuery(B, C, 5)), + 2 & ue) + ) { + let de; + n.ɵɵqueryRefresh((de = n.ɵɵloadQuery())) && + (Re.cell = de.first), + n.ɵɵqueryRefresh((de = n.ɵɵloadQuery())) && + (Re.headerCell = de.first), + n.ɵɵqueryRefresh((de = n.ɵɵloadQuery())) && + (Re.footerCell = de.first); + } + }, + inputs: { + sticky: "sticky", + name: ["cdkColumnDef", "name"], + stickyEnd: "stickyEnd", + }, + features: [ + n.ɵɵProvidersFeature([ + { provide: "MAT_SORT_HEADER_COLUMN_DEF", useExisting: xe }, + ]), + n.ɵɵInheritDefinitionFeature, + ], + })), + xe + ); + })(); + class Y { + constructor(Ze, ue) { + const Re = ue.nativeElement.classList; + for (const B of Ze._columnCssClassName) Re.add(B); + } + } + let Z = (() => { + class xe extends Y { + constructor(ue, Re) { + super(ue, Re); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(ie), + n.ɵɵdirectiveInject(n.ElementRef) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["cdk-header-cell"], ["th", "cdk-header-cell", ""]], + hostAttrs: ["role", "columnheader", 1, "cdk-header-cell"], + features: [n.ɵɵInheritDefinitionFeature], + })), + xe + ); + })(), + ee = (() => { + class xe extends Y { + constructor(ue, Re) { + var B; + if ( + (super(ue, Re), + 1 === + (null === (B = ue._table) || void 0 === B + ? void 0 + : B._elementRef.nativeElement.nodeType)) + ) { + const de = ue._table._elementRef.nativeElement.getAttribute( + "role" + ); + Re.nativeElement.setAttribute( + "role", + "grid" === de || "treegrid" === de ? "gridcell" : "cell" + ); + } + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(ie), + n.ɵɵdirectiveInject(n.ElementRef) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["cdk-footer-cell"], ["td", "cdk-footer-cell", ""]], + hostAttrs: [1, "cdk-footer-cell"], + features: [n.ɵɵInheritDefinitionFeature], + })), + xe + ); + })(), + $ = (() => { + class xe extends Y { + constructor(ue, Re) { + var B; + if ( + (super(ue, Re), + 1 === + (null === (B = ue._table) || void 0 === B + ? void 0 + : B._elementRef.nativeElement.nodeType)) + ) { + const de = ue._table._elementRef.nativeElement.getAttribute( + "role" + ); + Re.nativeElement.setAttribute( + "role", + "grid" === de || "treegrid" === de ? "gridcell" : "cell" + ); + } + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(ie), + n.ɵɵdirectiveInject(n.ElementRef) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["cdk-cell"], ["td", "cdk-cell", ""]], + hostAttrs: [1, "cdk-cell"], + features: [n.ɵɵInheritDefinitionFeature], + })), + xe + ); + })(); + class J { + constructor() { + (this.tasks = []), (this.endTasks = []); + } + } + const ne = new n.InjectionToken("_COALESCED_STYLE_SCHEDULER"); + let ae = (() => { + class xe { + constructor(ue) { + (this._ngZone = ue), + (this._currentSchedule = null), + (this._destroyed = new s.xQ()); + } + schedule(ue) { + this._createScheduleIfNeeded(), + this._currentSchedule.tasks.push(ue); + } + scheduleEnd(ue) { + this._createScheduleIfNeeded(), + this._currentSchedule.endTasks.push(ue); + } + ngOnDestroy() { + this._destroyed.next(), this._destroyed.complete(); + } + _createScheduleIfNeeded() { + this._currentSchedule || + ((this._currentSchedule = new J()), + this._getScheduleObservable() + .pipe((0, i.R)(this._destroyed)) + .subscribe(() => { + for ( + ; + this._currentSchedule.tasks.length || + this._currentSchedule.endTasks.length; + + ) { + const ue = this._currentSchedule; + this._currentSchedule = new J(); + for (const Re of ue.tasks) Re(); + for (const Re of ue.endTasks) Re(); + } + this._currentSchedule = null; + })); + } + _getScheduleObservable() { + return this._ngZone.isStable + ? (0, d.D)(Promise.resolve(void 0)) + : this._ngZone.onStable.pipe((0, c.q)(1)); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(n.ɵɵinject(n.NgZone)); + }), + (xe.ɵprov = n.ɵɵdefineInjectable({ token: xe, factory: xe.ɵfac })), + xe + ); + })(), + Oe = (() => { + class xe { + constructor(ue, Re) { + (this.template = ue), (this._differs = Re); + } + ngOnChanges(ue) { + if (!this._columnsDiffer) { + const Re = (ue.columns && ue.columns.currentValue) || []; + (this._columnsDiffer = this._differs.find(Re).create()), + this._columnsDiffer.diff(Re); + } + } + getColumnsDiff() { + return this._columnsDiffer.diff(this.columns); + } + extractCellTemplate(ue) { + return this instanceof Je + ? ue.headerCell.template + : this instanceof tt + ? ue.footerCell.template + : ue.cell.template; + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(n.TemplateRef), + n.ɵɵdirectiveInject(n.IterableDiffers) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + features: [n.ɵɵNgOnChangesFeature], + })), + xe + ); + })(); + class Le extends Oe {} + const Ye = M(Le); + let Je = (() => { + class xe extends Ye { + constructor(ue, Re, B) { + super(ue, Re), (this._table = B); + } + ngOnChanges(ue) { + super.ngOnChanges(ue); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(n.TemplateRef), + n.ɵɵdirectiveInject(n.IterableDiffers), + n.ɵɵdirectiveInject(A, 8) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "cdkHeaderRowDef", ""]], + inputs: { + columns: ["cdkHeaderRowDef", "columns"], + sticky: ["cdkHeaderRowDefSticky", "sticky"], + }, + features: [n.ɵɵInheritDefinitionFeature, n.ɵɵNgOnChangesFeature], + })), + xe + ); + })(); + class gt extends Oe {} + const Ue = M(gt); + let tt = (() => { + class xe extends Ue { + constructor(ue, Re, B) { + super(ue, Re), (this._table = B); + } + ngOnChanges(ue) { + super.ngOnChanges(ue); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(n.TemplateRef), + n.ɵɵdirectiveInject(n.IterableDiffers), + n.ɵɵdirectiveInject(A, 8) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "cdkFooterRowDef", ""]], + inputs: { + columns: ["cdkFooterRowDef", "columns"], + sticky: ["cdkFooterRowDefSticky", "sticky"], + }, + features: [n.ɵɵInheritDefinitionFeature, n.ɵɵNgOnChangesFeature], + })), + xe + ); + })(), + at = (() => { + class xe extends Oe { + constructor(ue, Re, B) { + super(ue, Re), (this._table = B); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(n.TemplateRef), + n.ɵɵdirectiveInject(n.IterableDiffers), + n.ɵɵdirectiveInject(A, 8) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "cdkRowDef", ""]], + inputs: { + columns: ["cdkRowDefColumns", "columns"], + when: ["cdkRowDefWhen", "when"], + }, + features: [n.ɵɵInheritDefinitionFeature], + })), + xe + ); + })(), + ft = (() => { + class xe { + constructor(ue) { + (this._viewContainer = ue), (xe.mostRecentCellOutlet = this); + } + ngOnDestroy() { + xe.mostRecentCellOutlet === this && + (xe.mostRecentCellOutlet = null); + } + } + return ( + (xe.mostRecentCellOutlet = null), + (xe.ɵfac = function (ue) { + return new (ue || xe)(n.ɵɵdirectiveInject(n.ViewContainerRef)); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "cdkCellOutlet", ""]], + })), + xe + ); + })(), + vt = (() => { + class xe {} + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(); + }), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["cdk-header-row"], ["tr", "cdk-header-row", ""]], + hostAttrs: ["role", "row", 1, "cdk-header-row"], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function (ue, Re) { + 1 & ue && n.ɵɵelementContainer(0, 0); + }, + directives: [ft], + encapsulation: 2, + })), + xe + ); + })(), + yt = (() => { + class xe {} + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(); + }), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["cdk-footer-row"], ["tr", "cdk-footer-row", ""]], + hostAttrs: ["role", "row", 1, "cdk-footer-row"], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function (ue, Re) { + 1 & ue && n.ɵɵelementContainer(0, 0); + }, + directives: [ft], + encapsulation: 2, + })), + xe + ); + })(), + ot = (() => { + class xe {} + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(); + }), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["cdk-row"], ["tr", "cdk-row", ""]], + hostAttrs: ["role", "row", 1, "cdk-row"], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function (ue, Re) { + 1 & ue && n.ɵɵelementContainer(0, 0); + }, + directives: [ft], + encapsulation: 2, + })), + xe + ); + })(), + _t = (() => { + class xe { + constructor(ue) { + (this.templateRef = ue), + (this._contentClassName = "cdk-no-data-row"); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(n.ɵɵdirectiveInject(n.TemplateRef)); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["ng-template", "cdkNoDataRow", ""]], + })), + xe + ); + })(); + const At = ["top", "bottom", "left", "right"]; + class Tt { + constructor(Ze, ue, Re, B, de = !0, Pe = !0, Xe) { + (this._isNativeHtmlTable = Ze), + (this._stickCellCss = ue), + (this.direction = Re), + (this._coalescedStyleScheduler = B), + (this._isBrowser = de), + (this._needsPositionStickyOnElement = Pe), + (this._positionListener = Xe), + (this._cachedCellWidths = []), + (this._borderCellCss = { + top: `${ue}-border-elem-top`, + bottom: `${ue}-border-elem-bottom`, + left: `${ue}-border-elem-left`, + right: `${ue}-border-elem-right`, + }); + } + clearStickyPositioning(Ze, ue) { + const Re = []; + for (const B of Ze) + if (B.nodeType === B.ELEMENT_NODE) { + Re.push(B); + for (let de = 0; de < B.children.length; de++) + Re.push(B.children[de]); + } + this._coalescedStyleScheduler.schedule(() => { + for (const B of Re) this._removeStickyStyle(B, ue); + }); + } + updateStickyColumns(Ze, ue, Re, B = !0) { + if ( + !Ze.length || + !this._isBrowser || + (!ue.some((an) => an) && !Re.some((an) => an)) + ) + return void ( + this._positionListener && + (this._positionListener.stickyColumnsUpdated({ sizes: [] }), + this._positionListener.stickyEndColumnsUpdated({ sizes: [] })) + ); + const de = Ze[0], + Pe = de.children.length, + Xe = this._getCellWidths(de, B), + Wt = this._getStickyStartColumnPositions(Xe, ue), + Ft = this._getStickyEndColumnPositions(Xe, Re), + Ht = ue.lastIndexOf(!0), + Zt = Re.indexOf(!0); + this._coalescedStyleScheduler.schedule(() => { + const an = "rtl" === this.direction, + Tn = an ? "right" : "left", + zn = an ? "left" : "right"; + for (const $n of Ze) + for (let ti = 0; ti < Pe; ti++) { + const jn = $n.children[ti]; + ue[ti] && this._addStickyStyle(jn, Tn, Wt[ti], ti === Ht), + Re[ti] && this._addStickyStyle(jn, zn, Ft[ti], ti === Zt); + } + this._positionListener && + (this._positionListener.stickyColumnsUpdated({ + sizes: + -1 === Ht + ? [] + : Xe.slice(0, Ht + 1).map(($n, ti) => (ue[ti] ? $n : null)), + }), + this._positionListener.stickyEndColumnsUpdated({ + sizes: + -1 === Zt + ? [] + : Xe.slice(Zt) + .map(($n, ti) => (Re[ti + Zt] ? $n : null)) + .reverse(), + })); + }); + } + stickRows(Ze, ue, Re) { + if (!this._isBrowser) return; + const B = "bottom" === Re ? Ze.slice().reverse() : Ze, + de = "bottom" === Re ? ue.slice().reverse() : ue, + Pe = [], + Xe = [], + Wt = []; + for (let Ht = 0, Zt = 0; Ht < B.length; Ht++) { + if (!de[Ht]) continue; + Pe[Ht] = Zt; + const an = B[Ht]; + Wt[Ht] = this._isNativeHtmlTable ? Array.from(an.children) : [an]; + const Tn = an.getBoundingClientRect().height; + (Zt += Tn), (Xe[Ht] = Tn); + } + const Ft = de.lastIndexOf(!0); + this._coalescedStyleScheduler.schedule(() => { + var Ht, Zt; + for (let an = 0; an < B.length; an++) { + if (!de[an]) continue; + const Tn = Pe[an], + zn = an === Ft; + for (const $n of Wt[an]) this._addStickyStyle($n, Re, Tn, zn); + } + "top" === Re + ? null === (Ht = this._positionListener) || + void 0 === Ht || + Ht.stickyHeaderRowsUpdated({ + sizes: Xe, + offsets: Pe, + elements: Wt, + }) + : null === (Zt = this._positionListener) || + void 0 === Zt || + Zt.stickyFooterRowsUpdated({ + sizes: Xe, + offsets: Pe, + elements: Wt, + }); + }); + } + updateStickyFooterContainer(Ze, ue) { + if (!this._isNativeHtmlTable) return; + const Re = Ze.querySelector("tfoot"); + this._coalescedStyleScheduler.schedule(() => { + ue.some((B) => !B) + ? this._removeStickyStyle(Re, ["bottom"]) + : this._addStickyStyle(Re, "bottom", 0, !1); + }); + } + _removeStickyStyle(Ze, ue) { + for (const B of ue) + (Ze.style[B] = ""), Ze.classList.remove(this._borderCellCss[B]); + At.some((B) => -1 === ue.indexOf(B) && Ze.style[B]) + ? (Ze.style.zIndex = this._getCalculatedZIndex(Ze)) + : ((Ze.style.zIndex = ""), + this._needsPositionStickyOnElement && (Ze.style.position = ""), + Ze.classList.remove(this._stickCellCss)); + } + _addStickyStyle(Ze, ue, Re, B) { + Ze.classList.add(this._stickCellCss), + B && Ze.classList.add(this._borderCellCss[ue]), + (Ze.style[ue] = `${Re}px`), + (Ze.style.zIndex = this._getCalculatedZIndex(Ze)), + this._needsPositionStickyOnElement && + (Ze.style.cssText += + "position: -webkit-sticky; position: sticky; "); + } + _getCalculatedZIndex(Ze) { + const ue = { top: 100, bottom: 10, left: 1, right: 1 }; + let Re = 0; + for (const B of At) Ze.style[B] && (Re += ue[B]); + return Re ? `${Re}` : ""; + } + _getCellWidths(Ze, ue = !0) { + if (!ue && this._cachedCellWidths.length) + return this._cachedCellWidths; + const Re = [], + B = Ze.children; + for (let de = 0; de < B.length; de++) + Re.push(B[de].getBoundingClientRect().width); + return (this._cachedCellWidths = Re), Re; + } + _getStickyStartColumnPositions(Ze, ue) { + const Re = []; + let B = 0; + for (let de = 0; de < Ze.length; de++) + ue[de] && ((Re[de] = B), (B += Ze[de])); + return Re; + } + _getStickyEndColumnPositions(Ze, ue) { + const Re = []; + let B = 0; + for (let de = Ze.length; de > 0; de--) + ue[de] && ((Re[de] = B), (B += Ze[de])); + return Re; + } + } + const _e = new n.InjectionToken("CDK_SPL"); + let $e = (() => { + class xe { + constructor(ue, Re) { + (this.viewContainer = ue), (this.elementRef = Re); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(n.ElementRef) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "rowOutlet", ""]], + })), + xe + ); + })(), + st = (() => { + class xe { + constructor(ue, Re) { + (this.viewContainer = ue), (this.elementRef = Re); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(n.ElementRef) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "headerRowOutlet", ""]], + })), + xe + ); + })(), + ut = (() => { + class xe { + constructor(ue, Re) { + (this.viewContainer = ue), (this.elementRef = Re); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(n.ElementRef) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "footerRowOutlet", ""]], + })), + xe + ); + })(), + St = (() => { + class xe { + constructor(ue, Re) { + (this.viewContainer = ue), (this.elementRef = Re); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(n.ElementRef) + ); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "noDataRowOutlet", ""]], + })), + xe + ); + })(), + Dt = (() => { + class xe { + constructor(ue, Re, B, de, Pe, Xe, Wt, Ft, Ht, Zt, an) { + (this._differs = ue), + (this._changeDetectorRef = Re), + (this._elementRef = B), + (this._dir = Pe), + (this._platform = Wt), + (this._viewRepeater = Ft), + (this._coalescedStyleScheduler = Ht), + (this._viewportRuler = Zt), + (this._stickyPositioningListener = an), + (this._onDestroy = new s.xQ()), + (this._columnDefsByName = new Map()), + (this._customColumnDefs = new Set()), + (this._customRowDefs = new Set()), + (this._customHeaderRowDefs = new Set()), + (this._customFooterRowDefs = new Set()), + (this._headerRowDefChanged = !0), + (this._footerRowDefChanged = !0), + (this._stickyColumnStylesNeedReset = !0), + (this._forceRecalculateCellWidths = !0), + (this._cachedRenderRowsMap = new Map()), + (this.stickyCssClass = "cdk-table-sticky"), + (this.needsPositionStickyOnElement = !0), + (this._isShowingNoDataRow = !1), + (this._multiTemplateDataRows = !1), + (this._fixedLayout = !1), + (this.contentChanged = new n.EventEmitter()), + (this.viewChange = new u.X({ + start: 0, + end: Number.MAX_VALUE, + })), + de || + this._elementRef.nativeElement.setAttribute("role", "table"), + (this._document = Xe), + (this._isNativeHtmlTable = + "TABLE" === this._elementRef.nativeElement.nodeName); + } + get trackBy() { + return this._trackByFn; + } + set trackBy(ue) { + this._trackByFn = ue; + } + get dataSource() { + return this._dataSource; + } + set dataSource(ue) { + this._dataSource !== ue && this._switchDataSource(ue); + } + get multiTemplateDataRows() { + return this._multiTemplateDataRows; + } + set multiTemplateDataRows(ue) { + (this._multiTemplateDataRows = (0, f.Ig)(ue)), + this._rowOutlet && + this._rowOutlet.viewContainer.length && + (this._forceRenderDataRows(), + this.updateStickyColumnStyles()); + } + get fixedLayout() { + return this._fixedLayout; + } + set fixedLayout(ue) { + (this._fixedLayout = (0, f.Ig)(ue)), + (this._forceRecalculateCellWidths = !0), + (this._stickyColumnStylesNeedReset = !0); + } + ngOnInit() { + this._setupStickyStyler(), + this._isNativeHtmlTable && this._applyNativeTableSections(), + (this._dataDiffer = this._differs + .find([]) + .create((ue, Re) => + this.trackBy ? this.trackBy(Re.dataIndex, Re.data) : Re + )), + this._viewportRuler + .change() + .pipe((0, i.R)(this._onDestroy)) + .subscribe(() => { + this._forceRecalculateCellWidths = !0; + }); + } + ngAfterContentChecked() { + this._cacheRowDefs(), this._cacheColumnDefs(); + const Re = + this._renderUpdatedColumns() || + this._headerRowDefChanged || + this._footerRowDefChanged; + (this._stickyColumnStylesNeedReset = + this._stickyColumnStylesNeedReset || Re), + (this._forceRecalculateCellWidths = Re), + this._headerRowDefChanged && + (this._forceRenderHeaderRows(), + (this._headerRowDefChanged = !1)), + this._footerRowDefChanged && + (this._forceRenderFooterRows(), + (this._footerRowDefChanged = !1)), + this.dataSource && + this._rowDefs.length > 0 && + !this._renderChangeSubscription + ? this._observeRenderChanges() + : this._stickyColumnStylesNeedReset && + this.updateStickyColumnStyles(), + this._checkStickyStates(); + } + ngOnDestroy() { + this._rowOutlet.viewContainer.clear(), + this._noDataRowOutlet.viewContainer.clear(), + this._headerRowOutlet.viewContainer.clear(), + this._footerRowOutlet.viewContainer.clear(), + this._cachedRenderRowsMap.clear(), + this._onDestroy.next(), + this._onDestroy.complete(), + (0, _.Z9)(this.dataSource) && this.dataSource.disconnect(this); + } + renderRows() { + this._renderRows = this._getAllRenderRows(); + const ue = this._dataDiffer.diff(this._renderRows); + if (!ue) + return this._updateNoDataRow(), void this.contentChanged.next(); + const Re = this._rowOutlet.viewContainer; + this._viewRepeater.applyChanges( + ue, + Re, + (B, de, Pe) => this._getEmbeddedViewArgs(B.item, Pe), + (B) => B.item.data, + (B) => { + 1 === B.operation && + B.context && + this._renderCellTemplateForItem( + B.record.item.rowDef, + B.context + ); + } + ), + this._updateRowIndexContext(), + ue.forEachIdentityChange((B) => { + Re.get(B.currentIndex).context.$implicit = B.item.data; + }), + this._updateNoDataRow(), + this.updateStickyColumnStyles(), + this.contentChanged.next(); + } + addColumnDef(ue) { + this._customColumnDefs.add(ue); + } + removeColumnDef(ue) { + this._customColumnDefs.delete(ue); + } + addRowDef(ue) { + this._customRowDefs.add(ue); + } + removeRowDef(ue) { + this._customRowDefs.delete(ue); + } + addHeaderRowDef(ue) { + this._customHeaderRowDefs.add(ue), + (this._headerRowDefChanged = !0); + } + removeHeaderRowDef(ue) { + this._customHeaderRowDefs.delete(ue), + (this._headerRowDefChanged = !0); + } + addFooterRowDef(ue) { + this._customFooterRowDefs.add(ue), + (this._footerRowDefChanged = !0); + } + removeFooterRowDef(ue) { + this._customFooterRowDefs.delete(ue), + (this._footerRowDefChanged = !0); + } + setNoDataRow(ue) { + this._customNoDataRow = ue; + } + updateStickyHeaderRowStyles() { + const ue = this._getRenderedRows(this._headerRowOutlet), + B = this._elementRef.nativeElement.querySelector("thead"); + B && (B.style.display = ue.length ? "" : "none"); + const de = this._headerRowDefs.map((Pe) => Pe.sticky); + this._stickyStyler.clearStickyPositioning(ue, ["top"]), + this._stickyStyler.stickRows(ue, de, "top"), + this._headerRowDefs.forEach((Pe) => Pe.resetStickyChanged()); + } + updateStickyFooterRowStyles() { + const ue = this._getRenderedRows(this._footerRowOutlet), + B = this._elementRef.nativeElement.querySelector("tfoot"); + B && (B.style.display = ue.length ? "" : "none"); + const de = this._footerRowDefs.map((Pe) => Pe.sticky); + this._stickyStyler.clearStickyPositioning(ue, ["bottom"]), + this._stickyStyler.stickRows(ue, de, "bottom"), + this._stickyStyler.updateStickyFooterContainer( + this._elementRef.nativeElement, + de + ), + this._footerRowDefs.forEach((Pe) => Pe.resetStickyChanged()); + } + updateStickyColumnStyles() { + const ue = this._getRenderedRows(this._headerRowOutlet), + Re = this._getRenderedRows(this._rowOutlet), + B = this._getRenderedRows(this._footerRowOutlet); + ((this._isNativeHtmlTable && !this._fixedLayout) || + this._stickyColumnStylesNeedReset) && + (this._stickyStyler.clearStickyPositioning( + [...ue, ...Re, ...B], + ["left", "right"] + ), + (this._stickyColumnStylesNeedReset = !1)), + ue.forEach((de, Pe) => { + this._addStickyColumnStyles([de], this._headerRowDefs[Pe]); + }), + this._rowDefs.forEach((de) => { + const Pe = []; + for (let Xe = 0; Xe < Re.length; Xe++) + this._renderRows[Xe].rowDef === de && Pe.push(Re[Xe]); + this._addStickyColumnStyles(Pe, de); + }), + B.forEach((de, Pe) => { + this._addStickyColumnStyles([de], this._footerRowDefs[Pe]); + }), + Array.from(this._columnDefsByName.values()).forEach((de) => + de.resetStickyChanged() + ); + } + _getAllRenderRows() { + const ue = [], + Re = this._cachedRenderRowsMap; + this._cachedRenderRowsMap = new Map(); + for (let B = 0; B < this._data.length; B++) { + let de = this._data[B]; + const Pe = this._getRenderRowsForData(de, B, Re.get(de)); + this._cachedRenderRowsMap.has(de) || + this._cachedRenderRowsMap.set(de, new WeakMap()); + for (let Xe = 0; Xe < Pe.length; Xe++) { + let Wt = Pe[Xe]; + const Ft = this._cachedRenderRowsMap.get(Wt.data); + Ft.has(Wt.rowDef) + ? Ft.get(Wt.rowDef).push(Wt) + : Ft.set(Wt.rowDef, [Wt]), + ue.push(Wt); + } + } + return ue; + } + _getRenderRowsForData(ue, Re, B) { + return this._getRowDefs(ue, Re).map((Pe) => { + const Xe = B && B.has(Pe) ? B.get(Pe) : []; + if (Xe.length) { + const Wt = Xe.shift(); + return (Wt.dataIndex = Re), Wt; + } + return { data: ue, rowDef: Pe, dataIndex: Re }; + }); + } + _cacheColumnDefs() { + this._columnDefsByName.clear(), + Kt( + this._getOwnDefs(this._contentColumnDefs), + this._customColumnDefs + ).forEach((Re) => { + this._columnDefsByName.has(Re.name), + this._columnDefsByName.set(Re.name, Re); + }); + } + _cacheRowDefs() { + (this._headerRowDefs = Kt( + this._getOwnDefs(this._contentHeaderRowDefs), + this._customHeaderRowDefs + )), + (this._footerRowDefs = Kt( + this._getOwnDefs(this._contentFooterRowDefs), + this._customFooterRowDefs + )), + (this._rowDefs = Kt( + this._getOwnDefs(this._contentRowDefs), + this._customRowDefs + )); + const ue = this._rowDefs.filter((Re) => !Re.when); + this._defaultRowDef = ue[0]; + } + _renderUpdatedColumns() { + const ue = (Pe, Xe) => Pe || !!Xe.getColumnsDiff(), + Re = this._rowDefs.reduce(ue, !1); + Re && this._forceRenderDataRows(); + const B = this._headerRowDefs.reduce(ue, !1); + B && this._forceRenderHeaderRows(); + const de = this._footerRowDefs.reduce(ue, !1); + return de && this._forceRenderFooterRows(), Re || B || de; + } + _switchDataSource(ue) { + (this._data = []), + (0, _.Z9)(this.dataSource) && this.dataSource.disconnect(this), + this._renderChangeSubscription && + (this._renderChangeSubscription.unsubscribe(), + (this._renderChangeSubscription = null)), + ue || + (this._dataDiffer && this._dataDiffer.diff([]), + this._rowOutlet.viewContainer.clear()), + (this._dataSource = ue); + } + _observeRenderChanges() { + if (!this.dataSource) return; + let ue; + (0, _.Z9)(this.dataSource) + ? (ue = this.dataSource.connect(this)) + : (function (xe) { + return ( + !!xe && + (xe instanceof h.y || + ("function" == typeof xe.lift && + "function" == typeof xe.subscribe)) + ); + })(this.dataSource) + ? (ue = this.dataSource) + : Array.isArray(this.dataSource) && + (ue = (0, o.of)(this.dataSource)), + (this._renderChangeSubscription = ue + .pipe((0, i.R)(this._onDestroy)) + .subscribe((Re) => { + (this._data = Re || []), this.renderRows(); + })); + } + _forceRenderHeaderRows() { + this._headerRowOutlet.viewContainer.length > 0 && + this._headerRowOutlet.viewContainer.clear(), + this._headerRowDefs.forEach((ue, Re) => + this._renderRow(this._headerRowOutlet, ue, Re) + ), + this.updateStickyHeaderRowStyles(); + } + _forceRenderFooterRows() { + this._footerRowOutlet.viewContainer.length > 0 && + this._footerRowOutlet.viewContainer.clear(), + this._footerRowDefs.forEach((ue, Re) => + this._renderRow(this._footerRowOutlet, ue, Re) + ), + this.updateStickyFooterRowStyles(); + } + _addStickyColumnStyles(ue, Re) { + const B = Array.from(Re.columns || []).map((Xe) => + this._columnDefsByName.get(Xe) + ), + de = B.map((Xe) => Xe.sticky), + Pe = B.map((Xe) => Xe.stickyEnd); + this._stickyStyler.updateStickyColumns( + ue, + de, + Pe, + !this._fixedLayout || this._forceRecalculateCellWidths + ); + } + _getRenderedRows(ue) { + const Re = []; + for (let B = 0; B < ue.viewContainer.length; B++) { + const de = ue.viewContainer.get(B); + Re.push(de.rootNodes[0]); + } + return Re; + } + _getRowDefs(ue, Re) { + if (1 == this._rowDefs.length) return [this._rowDefs[0]]; + let B = []; + if (this.multiTemplateDataRows) + B = this._rowDefs.filter((de) => !de.when || de.when(Re, ue)); + else { + let de = + this._rowDefs.find((Pe) => Pe.when && Pe.when(Re, ue)) || + this._defaultRowDef; + de && B.push(de); + } + return B; + } + _getEmbeddedViewArgs(ue, Re) { + return { + templateRef: ue.rowDef.template, + context: { $implicit: ue.data }, + index: Re, + }; + } + _renderRow(ue, Re, B, de = {}) { + const Pe = ue.viewContainer.createEmbeddedView( + Re.template, + de, + B + ); + return this._renderCellTemplateForItem(Re, de), Pe; + } + _renderCellTemplateForItem(ue, Re) { + for (let B of this._getCellTemplates(ue)) + ft.mostRecentCellOutlet && + ft.mostRecentCellOutlet._viewContainer.createEmbeddedView( + B, + Re + ); + this._changeDetectorRef.markForCheck(); + } + _updateRowIndexContext() { + const ue = this._rowOutlet.viewContainer; + for (let Re = 0, B = ue.length; Re < B; Re++) { + const Pe = ue.get(Re).context; + (Pe.count = B), + (Pe.first = 0 === Re), + (Pe.last = Re === B - 1), + (Pe.even = Re % 2 == 0), + (Pe.odd = !Pe.even), + this.multiTemplateDataRows + ? ((Pe.dataIndex = this._renderRows[Re].dataIndex), + (Pe.renderIndex = Re)) + : (Pe.index = this._renderRows[Re].dataIndex); + } + } + _getCellTemplates(ue) { + return ue && ue.columns + ? Array.from(ue.columns, (Re) => { + const B = this._columnDefsByName.get(Re); + return ue.extractCellTemplate(B); + }) + : []; + } + _applyNativeTableSections() { + const ue = this._document.createDocumentFragment(), + Re = [ + { tag: "thead", outlets: [this._headerRowOutlet] }, + { + tag: "tbody", + outlets: [this._rowOutlet, this._noDataRowOutlet], + }, + { tag: "tfoot", outlets: [this._footerRowOutlet] }, + ]; + for (const B of Re) { + const de = this._document.createElement(B.tag); + de.setAttribute("role", "rowgroup"); + for (const Pe of B.outlets) + de.appendChild(Pe.elementRef.nativeElement); + ue.appendChild(de); + } + this._elementRef.nativeElement.appendChild(ue); + } + _forceRenderDataRows() { + this._dataDiffer.diff([]), + this._rowOutlet.viewContainer.clear(), + this.renderRows(); + } + _checkStickyStates() { + const ue = (Re, B) => Re || B.hasStickyChanged(); + this._headerRowDefs.reduce(ue, !1) && + this.updateStickyHeaderRowStyles(), + this._footerRowDefs.reduce(ue, !1) && + this.updateStickyFooterRowStyles(), + Array.from(this._columnDefsByName.values()).reduce(ue, !1) && + ((this._stickyColumnStylesNeedReset = !0), + this.updateStickyColumnStyles()); + } + _setupStickyStyler() { + (this._stickyStyler = new Tt( + this._isNativeHtmlTable, + this.stickyCssClass, + this._dir ? this._dir.value : "ltr", + this._coalescedStyleScheduler, + this._platform.isBrowser, + this.needsPositionStickyOnElement, + this._stickyPositioningListener + )), + (this._dir ? this._dir.change : (0, o.of)()) + .pipe((0, i.R)(this._onDestroy)) + .subscribe((Re) => { + (this._stickyStyler.direction = Re), + this.updateStickyColumnStyles(); + }); + } + _getOwnDefs(ue) { + return ue.filter((Re) => !Re._table || Re._table === this); + } + _updateNoDataRow() { + const ue = this._customNoDataRow || this._noDataRow; + if (!ue) return; + const Re = 0 === this._rowOutlet.viewContainer.length; + if (Re === this._isShowingNoDataRow) return; + const B = this._noDataRowOutlet.viewContainer; + if (Re) { + const de = B.createEmbeddedView(ue.templateRef), + Pe = de.rootNodes[0]; + 1 === de.rootNodes.length && + (null == Pe ? void 0 : Pe.nodeType) === + this._document.ELEMENT_NODE && + (Pe.setAttribute("role", "row"), + Pe.classList.add(ue._contentClassName)); + } else B.clear(); + this._isShowingNoDataRow = Re; + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(n.IterableDiffers), + n.ɵɵdirectiveInject(n.ChangeDetectorRef), + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵinjectAttribute("role"), + n.ɵɵdirectiveInject(l.Is, 8), + n.ɵɵdirectiveInject(m.DOCUMENT), + n.ɵɵdirectiveInject(g.t4), + n.ɵɵdirectiveInject(_.k), + n.ɵɵdirectiveInject(ne), + n.ɵɵdirectiveInject(b.rL), + n.ɵɵdirectiveInject(_e, 12) + ); + }), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["cdk-table"], ["table", "cdk-table", ""]], + contentQueries: function (ue, Re, B) { + if ( + (1 & ue && + (n.ɵɵcontentQuery(B, _t, 5), + n.ɵɵcontentQuery(B, ie, 5), + n.ɵɵcontentQuery(B, at, 5), + n.ɵɵcontentQuery(B, Je, 5), + n.ɵɵcontentQuery(B, tt, 5)), + 2 & ue) + ) { + let de; + n.ɵɵqueryRefresh((de = n.ɵɵloadQuery())) && + (Re._noDataRow = de.first), + n.ɵɵqueryRefresh((de = n.ɵɵloadQuery())) && + (Re._contentColumnDefs = de), + n.ɵɵqueryRefresh((de = n.ɵɵloadQuery())) && + (Re._contentRowDefs = de), + n.ɵɵqueryRefresh((de = n.ɵɵloadQuery())) && + (Re._contentHeaderRowDefs = de), + n.ɵɵqueryRefresh((de = n.ɵɵloadQuery())) && + (Re._contentFooterRowDefs = de); + } + }, + viewQuery: function (ue, Re) { + if ( + (1 & ue && + (n.ɵɵviewQuery($e, 7), + n.ɵɵviewQuery(st, 7), + n.ɵɵviewQuery(ut, 7), + n.ɵɵviewQuery(St, 7)), + 2 & ue) + ) { + let B; + n.ɵɵqueryRefresh((B = n.ɵɵloadQuery())) && + (Re._rowOutlet = B.first), + n.ɵɵqueryRefresh((B = n.ɵɵloadQuery())) && + (Re._headerRowOutlet = B.first), + n.ɵɵqueryRefresh((B = n.ɵɵloadQuery())) && + (Re._footerRowOutlet = B.first), + n.ɵɵqueryRefresh((B = n.ɵɵloadQuery())) && + (Re._noDataRowOutlet = B.first); + } + }, + hostAttrs: [1, "cdk-table"], + hostVars: 2, + hostBindings: function (ue, Re) { + 2 & ue && + n.ɵɵclassProp("cdk-table-fixed-layout", Re.fixedLayout); + }, + inputs: { + trackBy: "trackBy", + dataSource: "dataSource", + multiTemplateDataRows: "multiTemplateDataRows", + fixedLayout: "fixedLayout", + }, + outputs: { contentChanged: "contentChanged" }, + exportAs: ["cdkTable"], + features: [ + n.ɵɵProvidersFeature([ + { provide: A, useExisting: xe }, + { provide: _.k, useClass: _.yy }, + { provide: ne, useClass: ae }, + { provide: _e, useValue: null }, + ]), + ], + ngContentSelectors: x, + decls: 6, + vars: 0, + consts: [ + ["headerRowOutlet", ""], + ["rowOutlet", ""], + ["noDataRowOutlet", ""], + ["footerRowOutlet", ""], + ], + template: function (ue, Re) { + 1 & ue && + (n.ɵɵprojectionDef(y), + n.ɵɵprojection(0), + n.ɵɵprojection(1, 1), + n.ɵɵelementContainer(2, 0), + n.ɵɵelementContainer(3, 1), + n.ɵɵelementContainer(4, 2), + n.ɵɵelementContainer(5, 3)); + }, + directives: [st, $e, St, ut], + styles: [".cdk-table-fixed-layout{table-layout:fixed}\n"], + encapsulation: 2, + })), + xe + ); + })(); + function Kt(xe, Ze) { + return xe.concat(Array.from(Ze)); + } + let et = (() => { + class xe { + constructor(ue, Re) { + (this._table = ue), + (this._options = Re), + (this.justify = "start"), + (this._options = Re || {}); + } + get name() { + return this._name; + } + set name(ue) { + (this._name = ue), this._syncColumnDefName(); + } + ngOnInit() { + this._syncColumnDefName(), + void 0 === this.headerText && + (this.headerText = this._createDefaultHeaderText()), + this.dataAccessor || + (this.dataAccessor = + this._options.defaultDataAccessor || ((ue, Re) => ue[Re])), + this._table && + ((this.columnDef.cell = this.cell), + (this.columnDef.headerCell = this.headerCell), + this._table.addColumnDef(this.columnDef)); + } + ngOnDestroy() { + this._table && this._table.removeColumnDef(this.columnDef); + } + _createDefaultHeaderText() { + const ue = this.name; + return this._options && this._options.defaultHeaderTextTransform + ? this._options.defaultHeaderTextTransform(ue) + : ue[0].toUpperCase() + ue.slice(1); + } + _syncColumnDefName() { + this.columnDef && (this.columnDef.name = this.name); + } + } + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)( + n.ɵɵdirectiveInject(Dt, 8), + n.ɵɵdirectiveInject(S, 8) + ); + }), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["cdk-text-column"]], + viewQuery: function (ue, Re) { + if ( + (1 & ue && + (n.ɵɵviewQuery(ie, 7), + n.ɵɵviewQuery(w, 7), + n.ɵɵviewQuery(I, 7)), + 2 & ue) + ) { + let B; + n.ɵɵqueryRefresh((B = n.ɵɵloadQuery())) && + (Re.columnDef = B.first), + n.ɵɵqueryRefresh((B = n.ɵɵloadQuery())) && + (Re.cell = B.first), + n.ɵɵqueryRefresh((B = n.ɵɵloadQuery())) && + (Re.headerCell = B.first); + } + }, + inputs: { + name: "name", + headerText: "headerText", + dataAccessor: "dataAccessor", + justify: "justify", + }, + decls: 3, + vars: 0, + consts: [ + ["cdkColumnDef", ""], + ["cdk-header-cell", "", 3, "text-align", 4, "cdkHeaderCellDef"], + ["cdk-cell", "", 3, "text-align", 4, "cdkCellDef"], + ["cdk-header-cell", ""], + ["cdk-cell", ""], + ], + template: function (ue, Re) { + 1 & ue && + (n.ɵɵelementContainerStart(0, 0), + n.ɵɵtemplate(1, T, 2, 3, "th", 1), + n.ɵɵtemplate(2, O, 2, 3, "td", 2), + n.ɵɵelementContainerEnd()); + }, + directives: [ie, I, w, Z, $], + encapsulation: 2, + })), + xe + ); + })(), + Lt = (() => { + class xe {} + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(); + }), + (xe.ɵmod = n.ɵɵdefineNgModule({ type: xe })), + (xe.ɵinj = n.ɵɵdefineInjector({ imports: [[b.Cl]] })), + xe + ); + })(); + var Qe = p(508), + mt = p(6787), + Vt = p(6053), + qt = p(4850); + const Ne = [[["caption"]], [["colgroup"], ["col"]]], + Se = ["caption", "colgroup, col"]; + function te(xe, Ze) { + if ( + (1 & xe && + (n.ɵɵelementStart(0, "th", 3), n.ɵɵtext(1), n.ɵɵelementEnd()), + 2 & xe) + ) { + const ue = n.ɵɵnextContext(); + n.ɵɵstyleProp("text-align", ue.justify), + n.ɵɵadvance(1), + n.ɵɵtextInterpolate1(" ", ue.headerText, " "); + } + } + function re(xe, Ze) { + if ( + (1 & xe && + (n.ɵɵelementStart(0, "td", 4), n.ɵɵtext(1), n.ɵɵelementEnd()), + 2 & xe) + ) { + const ue = Ze.$implicit, + Re = n.ɵɵnextContext(); + n.ɵɵstyleProp("text-align", Re.justify), + n.ɵɵadvance(1), + n.ɵɵtextInterpolate1(" ", Re.dataAccessor(ue, Re.name), " "); + } + } + let Me = (() => { + class xe {} + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(); + }), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [ + ["mat-table", "recycleRows", ""], + ["table", "mat-table", "", "recycleRows", ""], + ], + features: [ + n.ɵɵProvidersFeature([{ provide: _.k, useClass: _.eX }]), + ], + })), + xe + ); + })(), + ze = (() => { + class xe extends Dt { + constructor() { + super(...arguments), + (this.stickyCssClass = "mat-table-sticky"), + (this.needsPositionStickyOnElement = !1); + } + } + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["mat-table"], ["table", "mat-table", ""]], + hostAttrs: [1, "mat-table"], + hostVars: 2, + hostBindings: function (ue, Re) { + 2 & ue && + n.ɵɵclassProp("mat-table-fixed-layout", Re.fixedLayout); + }, + exportAs: ["matTable"], + features: [ + n.ɵɵProvidersFeature([ + { provide: _.k, useClass: _.yy }, + { provide: Dt, useExisting: xe }, + { provide: A, useExisting: xe }, + { provide: ne, useClass: ae }, + { provide: _e, useValue: null }, + ]), + n.ɵɵInheritDefinitionFeature, + ], + ngContentSelectors: Se, + decls: 6, + vars: 0, + consts: [ + ["headerRowOutlet", ""], + ["rowOutlet", ""], + ["noDataRowOutlet", ""], + ["footerRowOutlet", ""], + ], + template: function (ue, Re) { + 1 & ue && + (n.ɵɵprojectionDef(Ne), + n.ɵɵprojection(0), + n.ɵɵprojection(1, 1), + n.ɵɵelementContainer(2, 0), + n.ɵɵelementContainer(3, 1), + n.ɵɵelementContainer(4, 2), + n.ɵɵelementContainer(5, 3)); + }, + directives: [st, $e, St, ut], + styles: [ + 'mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n', + ], + encapsulation: 2, + })), + xe + ); + })(), + It = (() => { + class xe extends w {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "matCellDef", ""]], + features: [ + n.ɵɵProvidersFeature([{ provide: w, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + })), + xe + ); + })(), + Qt = (() => { + class xe extends I {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "matHeaderCellDef", ""]], + features: [ + n.ɵɵProvidersFeature([{ provide: I, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + })), + xe + ); + })(), + cn = (() => { + class xe extends C {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "matFooterCellDef", ""]], + features: [ + n.ɵɵProvidersFeature([{ provide: C, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + })), + xe + ); + })(), + An = (() => { + class xe extends ie { + get name() { + return this._name; + } + set name(ue) { + this._setNameInput(ue); + } + _updateColumnCssClassName() { + super._updateColumnCssClassName(), + this._columnCssClassName.push( + `mat-column-${this.cssClassFriendlyName}` + ); + } + } + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "matColumnDef", ""]], + inputs: { sticky: "sticky", name: ["matColumnDef", "name"] }, + features: [ + n.ɵɵProvidersFeature([ + { provide: ie, useExisting: xe }, + { provide: "MAT_SORT_HEADER_COLUMN_DEF", useExisting: xe }, + ]), + n.ɵɵInheritDefinitionFeature, + ], + })), + xe + ); + })(), + lt = (() => { + class xe extends Z {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["mat-header-cell"], ["th", "mat-header-cell", ""]], + hostAttrs: ["role", "columnheader", 1, "mat-header-cell"], + features: [n.ɵɵInheritDefinitionFeature], + })), + xe + ); + })(), + ct = (() => { + class xe extends ee {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["mat-footer-cell"], ["td", "mat-footer-cell", ""]], + hostAttrs: ["role", "gridcell", 1, "mat-footer-cell"], + features: [n.ɵɵInheritDefinitionFeature], + })), + xe + ); + })(), + He = (() => { + class xe extends $ {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["mat-cell"], ["td", "mat-cell", ""]], + hostAttrs: ["role", "gridcell", 1, "mat-cell"], + features: [n.ɵɵInheritDefinitionFeature], + })), + xe + ); + })(), + pt = (() => { + class xe extends Je {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "matHeaderRowDef", ""]], + inputs: { + columns: ["matHeaderRowDef", "columns"], + sticky: ["matHeaderRowDefSticky", "sticky"], + }, + features: [ + n.ɵɵProvidersFeature([{ provide: Je, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + })), + xe + ); + })(), + Ot = (() => { + class xe extends tt {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "matFooterRowDef", ""]], + inputs: { + columns: ["matFooterRowDef", "columns"], + sticky: ["matFooterRowDefSticky", "sticky"], + }, + features: [ + n.ɵɵProvidersFeature([{ provide: tt, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + })), + xe + ); + })(), + un = (() => { + class xe extends at {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["", "matRowDef", ""]], + inputs: { + columns: ["matRowDefColumns", "columns"], + when: ["matRowDefWhen", "when"], + }, + features: [ + n.ɵɵProvidersFeature([{ provide: at, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + })), + xe + ); + })(), + on = (() => { + class xe extends vt {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["mat-header-row"], ["tr", "mat-header-row", ""]], + hostAttrs: ["role", "row", 1, "mat-header-row"], + exportAs: ["matHeaderRow"], + features: [ + n.ɵɵProvidersFeature([{ provide: vt, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function (ue, Re) { + 1 & ue && n.ɵɵelementContainer(0, 0); + }, + directives: [ft], + encapsulation: 2, + })), + xe + ); + })(), + On = (() => { + class xe extends yt {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["mat-footer-row"], ["tr", "mat-footer-row", ""]], + hostAttrs: ["role", "row", 1, "mat-footer-row"], + exportAs: ["matFooterRow"], + features: [ + n.ɵɵProvidersFeature([{ provide: yt, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function (ue, Re) { + 1 & ue && n.ɵɵelementContainer(0, 0); + }, + directives: [ft], + encapsulation: 2, + })), + xe + ); + })(), + Yn = (() => { + class xe extends ot {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["mat-row"], ["tr", "mat-row", ""]], + hostAttrs: ["role", "row", 1, "mat-row"], + exportAs: ["matRow"], + features: [ + n.ɵɵProvidersFeature([{ provide: ot, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function (ue, Re) { + 1 & ue && n.ɵɵelementContainer(0, 0); + }, + directives: [ft], + encapsulation: 2, + })), + xe + ); + })(), + ji = (() => { + class xe extends _t { + constructor() { + super(...arguments), (this._contentClassName = "mat-no-data-row"); + } + } + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵdir = n.ɵɵdefineDirective({ + type: xe, + selectors: [["ng-template", "matNoDataRow", ""]], + features: [ + n.ɵɵProvidersFeature([{ provide: _t, useExisting: xe }]), + n.ɵɵInheritDefinitionFeature, + ], + })), + xe + ); + })(), + Oi = (() => { + class xe extends et {} + return ( + (xe.ɵfac = (function () { + let Ze; + return function (Re) { + return (Ze || (Ze = n.ɵɵgetInheritedFactory(xe)))(Re || xe); + }; + })()), + (xe.ɵcmp = n.ɵɵdefineComponent({ + type: xe, + selectors: [["mat-text-column"]], + features: [n.ɵɵInheritDefinitionFeature], + decls: 3, + vars: 0, + consts: [ + ["matColumnDef", ""], + ["mat-header-cell", "", 3, "text-align", 4, "matHeaderCellDef"], + ["mat-cell", "", 3, "text-align", 4, "matCellDef"], + ["mat-header-cell", ""], + ["mat-cell", ""], + ], + template: function (ue, Re) { + 1 & ue && + (n.ɵɵelementContainerStart(0, 0), + n.ɵɵtemplate(1, te, 2, 3, "th", 1), + n.ɵɵtemplate(2, re, 2, 3, "td", 2), + n.ɵɵelementContainerEnd()); + }, + directives: [An, Qt, It, lt, He], + encapsulation: 2, + })), + xe + ); + })(), + Ti = (() => { + class xe {} + return ( + (xe.ɵfac = function (ue) { + return new (ue || xe)(); + }), + (xe.ɵmod = n.ɵɵdefineNgModule({ type: xe })), + (xe.ɵinj = n.ɵɵdefineInjector({ + imports: [[Lt, Qe.MatCommonModule], Qe.MatCommonModule], + })), + xe + ); + })(); + class Vi extends _.o2 { + constructor(Ze = []) { + super(), + (this._renderData = new u.X([])), + (this._filter = new u.X("")), + (this._internalPageChanges = new s.xQ()), + (this._renderChangesSubscription = null), + (this.sortingDataAccessor = (ue, Re) => { + const B = ue[Re]; + if ((0, f.t6)(B)) { + const de = Number(B); + return de < 9007199254740991 ? de : B; + } + return B; + }), + (this.sortData = (ue, Re) => { + const B = Re.active, + de = Re.direction; + return B && "" != de + ? ue.sort((Pe, Xe) => { + let Wt = this.sortingDataAccessor(Pe, B), + Ft = this.sortingDataAccessor(Xe, B); + const Ht = typeof Wt, + Zt = typeof Ft; + Ht !== Zt && + ("number" === Ht && (Wt += ""), + "number" === Zt && (Ft += "")); + let an = 0; + return ( + null != Wt && null != Ft + ? Wt > Ft + ? (an = 1) + : Wt < Ft && (an = -1) + : null != Wt + ? (an = 1) + : null != Ft && (an = -1), + an * ("asc" == de ? 1 : -1) + ); + }) + : ue; + }), + (this.filterPredicate = (ue, Re) => { + const B = Object.keys(ue) + .reduce((Pe, Xe) => Pe + ue[Xe] + "\u25ec", "") + .toLowerCase(), + de = Re.trim().toLowerCase(); + return -1 != B.indexOf(de); + }), + (this._data = new u.X(Ze)), + this._updateChangeSubscription(); + } + get data() { + return this._data.value; + } + set data(Ze) { + this._data.next(Ze), + this._renderChangesSubscription || this._filterData(Ze); + } + get filter() { + return this._filter.value; + } + set filter(Ze) { + this._filter.next(Ze), + this._renderChangesSubscription || this._filterData(this.data); + } + get sort() { + return this._sort; + } + set sort(Ze) { + (this._sort = Ze), this._updateChangeSubscription(); + } + get paginator() { + return this._paginator; + } + set paginator(Ze) { + (this._paginator = Ze), this._updateChangeSubscription(); + } + _updateChangeSubscription() { + var Ze; + const ue = this._sort + ? (0, mt.T)(this._sort.sortChange, this._sort.initialized) + : (0, o.of)(null), + Re = this._paginator + ? (0, mt.T)( + this._paginator.page, + this._internalPageChanges, + this._paginator.initialized + ) + : (0, o.of)(null), + de = (0, Vt.aj)([this._data, this._filter]).pipe( + (0, qt.U)(([Wt]) => this._filterData(Wt)) + ), + Pe = (0, Vt.aj)([de, ue]).pipe( + (0, qt.U)(([Wt]) => this._orderData(Wt)) + ), + Xe = (0, Vt.aj)([Pe, Re]).pipe( + (0, qt.U)(([Wt]) => this._pageData(Wt)) + ); + null === (Ze = this._renderChangesSubscription) || + void 0 === Ze || + Ze.unsubscribe(), + (this._renderChangesSubscription = Xe.subscribe((Wt) => + this._renderData.next(Wt) + )); + } + _filterData(Ze) { + return ( + (this.filteredData = + null == this.filter || "" === this.filter + ? Ze + : Ze.filter((ue) => this.filterPredicate(ue, this.filter))), + this.paginator && this._updatePaginator(this.filteredData.length), + this.filteredData + ); + } + _orderData(Ze) { + return this.sort ? this.sortData(Ze.slice(), this.sort) : Ze; + } + _pageData(Ze) { + if (!this.paginator) return Ze; + const ue = this.paginator.pageIndex * this.paginator.pageSize; + return Ze.slice(ue, ue + this.paginator.pageSize); + } + _updatePaginator(Ze) { + Promise.resolve().then(() => { + const ue = this.paginator; + if (ue && ((ue.length = Ze), ue.pageIndex > 0)) { + const Re = Math.ceil(ue.length / ue.pageSize) - 1 || 0, + B = Math.min(ue.pageIndex, Re); + B !== ue.pageIndex && + ((ue.pageIndex = B), this._internalPageChanges.next()); + } + }); + } + connect() { + return ( + this._renderChangesSubscription || this._updateChangeSubscription(), + this._renderData + ); + } + disconnect() { + var Ze; + null === (Ze = this._renderChangesSubscription) || + void 0 === Ze || + Ze.unsubscribe(), + (this._renderChangesSubscription = null); + } + } + class ci extends Vi {} + }, + 3251: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MAT_TAB: () => yt, + MAT_TABS_CONFIG: () => H, + MAT_TAB_GROUP: () => At, + MatInkBar: () => tt, + MatTab: () => Tt, + MatTabBody: () => fe, + MatTabBodyPortal: () => Et, + MatTabChangeEvent: () => tn, + MatTabContent: () => ft, + MatTabGroup: () => et, + MatTabHeader: () => St, + MatTabLabel: () => ot, + MatTabLabelWrapper: () => U, + MatTabLink: () => Vt, + MatTabNav: () => Lt, + MatTabsModule: () => qt, + _MAT_INK_BAR_POSITIONER: () => gt, + _MatTabBodyBase: () => Ee, + _MatTabGroupBase: () => Kt, + _MatTabHeaderBase: () => ut, + _MatTabLinkBase: () => mt, + _MatTabNavBase: () => xt, + matTabsAnimations: () => Bt, + }); + var n = p(5664), + f = p(7144), + _ = p(7429), + m = p(9808), + s = p(5e3), + d = p(508), + u = p(6360), + h = p(8929), + r = p(2654), + o = p(3753), + i = p(1086), + c = p(6787), + l = p(8723), + g = p(1777), + b = p(1059), + y = p(5778), + x = p(7625), + T = p(226), + O = p(3191), + M = p(1159), + A = p(925), + S = p(9071); + function w(Ne, Se) { + 1 & Ne && s.ɵɵprojection(0); + } + const I = ["*"]; + function C(Ne, Se) {} + const L = function (Ne) { + return { animationDuration: Ne }; + }, + F = function (Ne, Se) { + return { value: Ne, params: Se }; + }, + ie = ["tabListContainer"], + Y = ["tabList"], + Z = ["tabListInner"], + ee = ["nextPaginator"], + $ = ["previousPaginator"], + J = ["tabBodyWrapper"], + ne = ["tabHeader"]; + function ae(Ne, Se) {} + function le(Ne, Se) { + if ((1 & Ne && s.ɵɵtemplate(0, ae, 0, 0, "ng-template", 9), 2 & Ne)) { + const te = s.ɵɵnextContext().$implicit; + s.ɵɵproperty("cdkPortalOutlet", te.templateLabel); + } + } + function Oe(Ne, Se) { + if ((1 & Ne && s.ɵɵtext(0), 2 & Ne)) { + const te = s.ɵɵnextContext().$implicit; + s.ɵɵtextInterpolate(te.textLabel); + } + } + function Le(Ne, Se) { + if (1 & Ne) { + const te = s.ɵɵgetCurrentView(); + s.ɵɵelementStart(0, "div", 6), + s.ɵɵlistener("click", function () { + const Me = s.ɵɵrestoreView(te), + ze = Me.$implicit, + It = Me.index, + Qt = s.ɵɵnextContext(), + cn = s.ɵɵreference(1); + return Qt._handleClick(ze, cn, It); + })("cdkFocusChange", function (Me) { + const It = s.ɵɵrestoreView(te).index; + return s.ɵɵnextContext()._tabFocusChanged(Me, It); + }), + s.ɵɵelementStart(1, "div", 7), + s.ɵɵtemplate(2, le, 1, 1, "ng-template", 8), + s.ɵɵtemplate(3, Oe, 1, 1, "ng-template", 8), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(); + } + if (2 & Ne) { + const te = Se.$implicit, + re = Se.index, + Me = s.ɵɵnextContext(); + s.ɵɵclassProp("mat-tab-label-active", Me.selectedIndex == re), + s.ɵɵproperty("id", Me._getTabLabelId(re))("disabled", te.disabled)( + "matRippleDisabled", + te.disabled || Me.disableRipple + ), + s.ɵɵattribute("tabIndex", Me._getTabIndex(te, re))( + "aria-posinset", + re + 1 + )("aria-setsize", Me._tabs.length)( + "aria-controls", + Me._getTabContentId(re) + )("aria-selected", Me.selectedIndex == re)( + "aria-label", + te.ariaLabel || null + )( + "aria-labelledby", + !te.ariaLabel && te.ariaLabelledby ? te.ariaLabelledby : null + ), + s.ɵɵadvance(2), + s.ɵɵproperty("ngIf", te.templateLabel), + s.ɵɵadvance(1), + s.ɵɵproperty("ngIf", !te.templateLabel); + } + } + function Ye(Ne, Se) { + if (1 & Ne) { + const te = s.ɵɵgetCurrentView(); + s.ɵɵelementStart(0, "mat-tab-body", 10), + s.ɵɵlistener("_onCentered", function () { + return ( + s.ɵɵrestoreView(te), + s.ɵɵnextContext()._removeTabBodyWrapperHeight() + ); + })("_onCentering", function (Me) { + return ( + s.ɵɵrestoreView(te), + s.ɵɵnextContext()._setTabBodyWrapperHeight(Me) + ); + }), + s.ɵɵelementEnd(); + } + if (2 & Ne) { + const te = Se.$implicit, + re = Se.index, + Me = s.ɵɵnextContext(); + s.ɵɵclassProp("mat-tab-body-active", Me.selectedIndex === re), + s.ɵɵproperty("id", Me._getTabContentId(re))("content", te.content)( + "position", + te.position + )("origin", te.origin)("animationDuration", Me.animationDuration), + s.ɵɵattribute( + "tabindex", + null != Me.contentTabIndex && Me.selectedIndex === re + ? Me.contentTabIndex + : null + )("aria-labelledby", Me._getTabLabelId(re)); + } + } + const Je = ["mat-tab-nav-bar", ""], + gt = new s.InjectionToken("MatInkBarPositioner", { + providedIn: "root", + factory: function () { + return (Se) => ({ + left: Se ? (Se.offsetLeft || 0) + "px" : "0", + width: Se ? (Se.offsetWidth || 0) + "px" : "0", + }); + }, + }); + let tt = (() => { + class Ne { + constructor(te, re, Me, ze) { + (this._elementRef = te), + (this._ngZone = re), + (this._inkBarPositioner = Me), + (this._animationMode = ze); + } + alignToElement(te) { + this.show(), + "undefined" != typeof requestAnimationFrame + ? this._ngZone.runOutsideAngular(() => { + requestAnimationFrame(() => this._setStyles(te)); + }) + : this._setStyles(te); + } + show() { + this._elementRef.nativeElement.style.visibility = "visible"; + } + hide() { + this._elementRef.nativeElement.style.visibility = "hidden"; + } + _setStyles(te) { + const re = this._inkBarPositioner(te), + Me = this._elementRef.nativeElement; + (Me.style.left = re.left), (Me.style.width = re.width); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(s.NgZone), + s.ɵɵdirectiveInject(gt), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + selectors: [["mat-ink-bar"]], + hostAttrs: [1, "mat-ink-bar"], + hostVars: 2, + hostBindings: function (te, re) { + 2 & te && + s.ɵɵclassProp( + "_mat-animation-noopable", + "NoopAnimations" === re._animationMode + ); + }, + })), + Ne + ); + })(); + const at = new s.InjectionToken("MatTabContent"); + let ft = (() => { + class Ne { + constructor(te) { + this.template = te; + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(s.ɵɵdirectiveInject(s.TemplateRef)); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + selectors: [["", "matTabContent", ""]], + features: [ + s.ɵɵProvidersFeature([{ provide: at, useExisting: Ne }]), + ], + })), + Ne + ); + })(); + const vt = new s.InjectionToken("MatTabLabel"), + yt = new s.InjectionToken("MAT_TAB"); + let ot = (() => { + class Ne extends _.ig { + constructor(te, re, Me) { + super(te, re), (this._closestTab = Me); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.TemplateRef), + s.ɵɵdirectiveInject(s.ViewContainerRef), + s.ɵɵdirectiveInject(yt, 8) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + selectors: [ + ["", "mat-tab-label", ""], + ["", "matTabLabel", ""], + ], + features: [ + s.ɵɵProvidersFeature([{ provide: vt, useExisting: Ne }]), + s.ɵɵInheritDefinitionFeature, + ], + })), + Ne + ); + })(); + const _t = (0, d.mixinDisabled)(class {}), + At = new s.InjectionToken("MAT_TAB_GROUP"); + let Tt = (() => { + class Ne extends _t { + constructor(te, re) { + super(), + (this._viewContainerRef = te), + (this._closestTabGroup = re), + (this.textLabel = ""), + (this._contentPortal = null), + (this._stateChanges = new h.xQ()), + (this.position = null), + (this.origin = null), + (this.isActive = !1); + } + get templateLabel() { + return this._templateLabel; + } + set templateLabel(te) { + this._setTemplateLabelInput(te); + } + get content() { + return this._contentPortal; + } + ngOnChanges(te) { + (te.hasOwnProperty("textLabel") || te.hasOwnProperty("disabled")) && + this._stateChanges.next(); + } + ngOnDestroy() { + this._stateChanges.complete(); + } + ngOnInit() { + this._contentPortal = new _.UE( + this._explicitContent || this._implicitContent, + this._viewContainerRef + ); + } + _setTemplateLabelInput(te) { + te && te._closestTab === this && (this._templateLabel = te); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ViewContainerRef), + s.ɵɵdirectiveInject(At, 8) + ); + }), + (Ne.ɵcmp = s.ɵɵdefineComponent({ + type: Ne, + selectors: [["mat-tab"]], + contentQueries: function (te, re, Me) { + if ( + (1 & te && + (s.ɵɵcontentQuery(Me, vt, 5), + s.ɵɵcontentQuery(Me, at, 7, s.TemplateRef)), + 2 & te) + ) { + let ze; + s.ɵɵqueryRefresh((ze = s.ɵɵloadQuery())) && + (re.templateLabel = ze.first), + s.ɵɵqueryRefresh((ze = s.ɵɵloadQuery())) && + (re._explicitContent = ze.first); + } + }, + viewQuery: function (te, re) { + if ((1 & te && s.ɵɵviewQuery(s.TemplateRef, 7), 2 & te)) { + let Me; + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._implicitContent = Me.first); + } + }, + inputs: { + disabled: "disabled", + textLabel: ["label", "textLabel"], + ariaLabel: ["aria-label", "ariaLabel"], + ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], + }, + exportAs: ["matTab"], + features: [ + s.ɵɵProvidersFeature([{ provide: yt, useExisting: Ne }]), + s.ɵɵInheritDefinitionFeature, + s.ɵɵNgOnChangesFeature, + ], + ngContentSelectors: I, + decls: 1, + vars: 0, + template: function (te, re) { + 1 & te && + (s.ɵɵprojectionDef(), s.ɵɵtemplate(0, w, 1, 0, "ng-template")); + }, + encapsulation: 2, + })), + Ne + ); + })(); + const Bt = { + translateTab: (0, g.X$)("translateTab", [ + (0, g.SB)( + "center, void, left-origin-center, right-origin-center", + (0, g.oB)({ transform: "none" }) + ), + (0, g.SB)( + "left", + (0, g.oB)({ + transform: "translate3d(-100%, 0, 0)", + minHeight: "1px", + }) + ), + (0, g.SB)( + "right", + (0, g.oB)({ + transform: "translate3d(100%, 0, 0)", + minHeight: "1px", + }) + ), + (0, g.eR)( + "* => left, * => right, left => center, right => center", + (0, g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)") + ), + (0, g.eR)("void => left-origin-center", [ + (0, g.oB)({ transform: "translate3d(-100%, 0, 0)" }), + (0, g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"), + ]), + (0, g.eR)("void => right-origin-center", [ + (0, g.oB)({ transform: "translate3d(100%, 0, 0)" }), + (0, g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"), + ]), + ]), + }; + let Et = (() => { + class Ne extends _.Pl { + constructor(te, re, Me, ze) { + super(te, re, ze), + (this._host = Me), + (this._centeringSub = r.w.EMPTY), + (this._leavingSub = r.w.EMPTY); + } + ngOnInit() { + super.ngOnInit(), + (this._centeringSub = this._host._beforeCentering + .pipe( + (0, b.O)(this._host._isCenterPosition(this._host._position)) + ) + .subscribe((te) => { + te && + !this.hasAttached() && + this.attach(this._host._content); + })), + (this._leavingSub = this._host._afterLeavingCenter.subscribe( + () => { + this.detach(); + } + )); + } + ngOnDestroy() { + super.ngOnDestroy(), + this._centeringSub.unsubscribe(), + this._leavingSub.unsubscribe(); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ComponentFactoryResolver), + s.ɵɵdirectiveInject(s.ViewContainerRef), + s.ɵɵdirectiveInject((0, s.forwardRef)(() => fe)), + s.ɵɵdirectiveInject(m.DOCUMENT) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + selectors: [["", "matTabBodyHost", ""]], + features: [s.ɵɵInheritDefinitionFeature], + })), + Ne + ); + })(), + Ee = (() => { + class Ne { + constructor(te, re, Me) { + (this._elementRef = te), + (this._dir = re), + (this._dirChangeSubscription = r.w.EMPTY), + (this._translateTabComplete = new h.xQ()), + (this._onCentering = new s.EventEmitter()), + (this._beforeCentering = new s.EventEmitter()), + (this._afterLeavingCenter = new s.EventEmitter()), + (this._onCentered = new s.EventEmitter(!0)), + (this.animationDuration = "500ms"), + re && + (this._dirChangeSubscription = re.change.subscribe((ze) => { + this._computePositionAnimationState(ze), Me.markForCheck(); + })), + this._translateTabComplete + .pipe( + (0, y.x)( + (ze, It) => + ze.fromState === It.fromState && + ze.toState === It.toState + ) + ) + .subscribe((ze) => { + this._isCenterPosition(ze.toState) && + this._isCenterPosition(this._position) && + this._onCentered.emit(), + this._isCenterPosition(ze.fromState) && + !this._isCenterPosition(this._position) && + this._afterLeavingCenter.emit(); + }); + } + set position(te) { + (this._positionIndex = te), this._computePositionAnimationState(); + } + ngOnInit() { + "center" == this._position && + null != this.origin && + (this._position = this._computePositionFromOrigin(this.origin)); + } + ngOnDestroy() { + this._dirChangeSubscription.unsubscribe(), + this._translateTabComplete.complete(); + } + _onTranslateTabStarted(te) { + const re = this._isCenterPosition(te.toState); + this._beforeCentering.emit(re), + re && + this._onCentering.emit( + this._elementRef.nativeElement.clientHeight + ); + } + _getLayoutDirection() { + return this._dir && "rtl" === this._dir.value ? "rtl" : "ltr"; + } + _isCenterPosition(te) { + return ( + "center" == te || + "left-origin-center" == te || + "right-origin-center" == te + ); + } + _computePositionAnimationState(te = this._getLayoutDirection()) { + this._position = + this._positionIndex < 0 + ? "ltr" == te + ? "left" + : "right" + : this._positionIndex > 0 + ? "ltr" == te + ? "right" + : "left" + : "center"; + } + _computePositionFromOrigin(te) { + const re = this._getLayoutDirection(); + return ("ltr" == re && te <= 0) || ("rtl" == re && te > 0) + ? "left-origin-center" + : "right-origin-center"; + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(T.Is, 8), + s.ɵɵdirectiveInject(s.ChangeDetectorRef) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + inputs: { + _content: ["content", "_content"], + origin: "origin", + animationDuration: "animationDuration", + position: "position", + }, + outputs: { + _onCentering: "_onCentering", + _beforeCentering: "_beforeCentering", + _afterLeavingCenter: "_afterLeavingCenter", + _onCentered: "_onCentered", + }, + })), + Ne + ); + })(), + fe = (() => { + class Ne extends Ee { + constructor(te, re, Me) { + super(te, re, Me); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(T.Is, 8), + s.ɵɵdirectiveInject(s.ChangeDetectorRef) + ); + }), + (Ne.ɵcmp = s.ɵɵdefineComponent({ + type: Ne, + selectors: [["mat-tab-body"]], + viewQuery: function (te, re) { + if ((1 & te && s.ɵɵviewQuery(_.Pl, 5), 2 & te)) { + let Me; + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._portalHost = Me.first); + } + }, + hostAttrs: [1, "mat-tab-body"], + features: [s.ɵɵInheritDefinitionFeature], + decls: 3, + vars: 6, + consts: [ + ["cdkScrollable", "", 1, "mat-tab-body-content"], + ["content", ""], + ["matTabBodyHost", ""], + ], + template: function (te, re) { + 1 & te && + (s.ɵɵelementStart(0, "div", 0, 1), + s.ɵɵlistener("@translateTab.start", function (ze) { + return re._onTranslateTabStarted(ze); + })("@translateTab.done", function (ze) { + return re._translateTabComplete.next(ze); + }), + s.ɵɵtemplate(2, C, 0, 0, "ng-template", 2), + s.ɵɵelementEnd()), + 2 & te && + s.ɵɵproperty( + "@translateTab", + s.ɵɵpureFunction2( + 3, + F, + re._position, + s.ɵɵpureFunction1(1, L, re.animationDuration) + ) + ); + }, + directives: [Et], + styles: [ + ".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n", + ], + encapsulation: 2, + data: { animation: [Bt.translateTab] }, + })), + Ne + ); + })(); + const H = new s.InjectionToken("MAT_TABS_CONFIG"), + D = (0, d.mixinDisabled)(class {}); + let U = (() => { + class Ne extends D { + constructor(te) { + super(), (this.elementRef = te); + } + focus() { + this.elementRef.nativeElement.focus(); + } + getOffsetLeft() { + return this.elementRef.nativeElement.offsetLeft; + } + getOffsetWidth() { + return this.elementRef.nativeElement.offsetWidth; + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(s.ɵɵdirectiveInject(s.ElementRef)); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + selectors: [["", "matTabLabelWrapper", ""]], + hostVars: 3, + hostBindings: function (te, re) { + 2 & te && + (s.ɵɵattribute("aria-disabled", !!re.disabled), + s.ɵɵclassProp("mat-tab-disabled", re.disabled)); + }, + inputs: { disabled: "disabled" }, + features: [s.ɵɵInheritDefinitionFeature], + })), + Ne + ); + })(); + const X = (0, A.i$)({ passive: !0 }); + let st = (() => { + class Ne { + constructor(te, re, Me, ze, It, Qt, cn) { + (this._elementRef = te), + (this._changeDetectorRef = re), + (this._viewportRuler = Me), + (this._dir = ze), + (this._ngZone = It), + (this._platform = Qt), + (this._animationMode = cn), + (this._scrollDistance = 0), + (this._selectedIndexChanged = !1), + (this._destroyed = new h.xQ()), + (this._showPaginationControls = !1), + (this._disableScrollAfter = !0), + (this._disableScrollBefore = !0), + (this._stopScrolling = new h.xQ()), + (this.disablePagination = !1), + (this._selectedIndex = 0), + (this.selectFocusedIndex = new s.EventEmitter()), + (this.indexFocused = new s.EventEmitter()), + It.runOutsideAngular(() => { + (0, o.R)(te.nativeElement, "mouseleave") + .pipe((0, x.R)(this._destroyed)) + .subscribe(() => { + this._stopInterval(); + }); + }); + } + get selectedIndex() { + return this._selectedIndex; + } + set selectedIndex(te) { + (te = (0, O.su)(te)), + this._selectedIndex != te && + ((this._selectedIndexChanged = !0), + (this._selectedIndex = te), + this._keyManager && this._keyManager.updateActiveItem(te)); + } + ngAfterViewInit() { + (0, o.R)(this._previousPaginator.nativeElement, "touchstart", X) + .pipe((0, x.R)(this._destroyed)) + .subscribe(() => { + this._handlePaginatorPress("before"); + }), + (0, o.R)(this._nextPaginator.nativeElement, "touchstart", X) + .pipe((0, x.R)(this._destroyed)) + .subscribe(() => { + this._handlePaginatorPress("after"); + }); + } + ngAfterContentInit() { + const te = this._dir ? this._dir.change : (0, i.of)("ltr"), + re = this._viewportRuler.change(150), + Me = () => { + this.updatePagination(), this._alignInkBarToSelectedTab(); + }; + (this._keyManager = new n.Em(this._items) + .withHorizontalOrientation(this._getLayoutDirection()) + .withHomeAndEnd() + .withWrap()), + this._keyManager.updateActiveItem(this._selectedIndex), + "undefined" != typeof requestAnimationFrame + ? requestAnimationFrame(Me) + : Me(), + (0, c.T)(te, re, this._items.changes) + .pipe((0, x.R)(this._destroyed)) + .subscribe(() => { + this._ngZone.run(() => Promise.resolve().then(Me)), + this._keyManager.withHorizontalOrientation( + this._getLayoutDirection() + ); + }), + this._keyManager.change + .pipe((0, x.R)(this._destroyed)) + .subscribe((ze) => { + this.indexFocused.emit(ze), this._setTabFocus(ze); + }); + } + ngAfterContentChecked() { + this._tabLabelCount != this._items.length && + (this.updatePagination(), + (this._tabLabelCount = this._items.length), + this._changeDetectorRef.markForCheck()), + this._selectedIndexChanged && + (this._scrollToLabel(this._selectedIndex), + this._checkScrollingControls(), + this._alignInkBarToSelectedTab(), + (this._selectedIndexChanged = !1), + this._changeDetectorRef.markForCheck()), + this._scrollDistanceChanged && + (this._updateTabScrollPosition(), + (this._scrollDistanceChanged = !1), + this._changeDetectorRef.markForCheck()); + } + ngOnDestroy() { + this._destroyed.next(), + this._destroyed.complete(), + this._stopScrolling.complete(); + } + _handleKeydown(te) { + if (!(0, M.Vb)(te)) + switch (te.keyCode) { + case M.K5: + case M.L_: + this.focusIndex !== this.selectedIndex && + (this.selectFocusedIndex.emit(this.focusIndex), + this._itemSelected(te)); + break; + default: + this._keyManager.onKeydown(te); + } + } + _onContentChanges() { + const te = this._elementRef.nativeElement.textContent; + te !== this._currentTextContent && + ((this._currentTextContent = te || ""), + this._ngZone.run(() => { + this.updatePagination(), + this._alignInkBarToSelectedTab(), + this._changeDetectorRef.markForCheck(); + })); + } + updatePagination() { + this._checkPaginationEnabled(), + this._checkScrollingControls(), + this._updateTabScrollPosition(); + } + get focusIndex() { + return this._keyManager ? this._keyManager.activeItemIndex : 0; + } + set focusIndex(te) { + !this._isValidIndex(te) || + this.focusIndex === te || + !this._keyManager || + this._keyManager.setActiveItem(te); + } + _isValidIndex(te) { + if (!this._items) return !0; + const re = this._items ? this._items.toArray()[te] : null; + return !!re && !re.disabled; + } + _setTabFocus(te) { + if ( + (this._showPaginationControls && this._scrollToLabel(te), + this._items && this._items.length) + ) { + this._items.toArray()[te].focus(); + const re = this._tabListContainer.nativeElement; + re.scrollLeft = + "ltr" == this._getLayoutDirection() + ? 0 + : re.scrollWidth - re.offsetWidth; + } + } + _getLayoutDirection() { + return this._dir && "rtl" === this._dir.value ? "rtl" : "ltr"; + } + _updateTabScrollPosition() { + if (this.disablePagination) return; + const te = this.scrollDistance, + re = "ltr" === this._getLayoutDirection() ? -te : te; + (this._tabList.nativeElement.style.transform = `translateX(${Math.round( + re + )}px)`), + (this._platform.TRIDENT || this._platform.EDGE) && + (this._tabListContainer.nativeElement.scrollLeft = 0); + } + get scrollDistance() { + return this._scrollDistance; + } + set scrollDistance(te) { + this._scrollTo(te); + } + _scrollHeader(te) { + return this._scrollTo( + this._scrollDistance + + (("before" == te ? -1 : 1) * + this._tabListContainer.nativeElement.offsetWidth) / + 3 + ); + } + _handlePaginatorClick(te) { + this._stopInterval(), this._scrollHeader(te); + } + _scrollToLabel(te) { + if (this.disablePagination) return; + const re = this._items ? this._items.toArray()[te] : null; + if (!re) return; + const Me = this._tabListContainer.nativeElement.offsetWidth, + { + offsetLeft: ze, + offsetWidth: It, + } = re.elementRef.nativeElement; + let Qt, cn; + "ltr" == this._getLayoutDirection() + ? ((Qt = ze), (cn = Qt + It)) + : ((cn = this._tabListInner.nativeElement.offsetWidth - ze), + (Qt = cn - It)); + const An = this.scrollDistance, + lt = this.scrollDistance + Me; + Qt < An + ? (this.scrollDistance -= An - Qt + 60) + : cn > lt && (this.scrollDistance += cn - lt + 60); + } + _checkPaginationEnabled() { + if (this.disablePagination) this._showPaginationControls = !1; + else { + const te = + this._tabListInner.nativeElement.scrollWidth > + this._elementRef.nativeElement.offsetWidth; + te || (this.scrollDistance = 0), + te !== this._showPaginationControls && + this._changeDetectorRef.markForCheck(), + (this._showPaginationControls = te); + } + } + _checkScrollingControls() { + this.disablePagination + ? (this._disableScrollAfter = this._disableScrollBefore = !0) + : ((this._disableScrollBefore = 0 == this.scrollDistance), + (this._disableScrollAfter = + this.scrollDistance == this._getMaxScrollDistance()), + this._changeDetectorRef.markForCheck()); + } + _getMaxScrollDistance() { + return ( + this._tabListInner.nativeElement.scrollWidth - + this._tabListContainer.nativeElement.offsetWidth || 0 + ); + } + _alignInkBarToSelectedTab() { + const te = + this._items && this._items.length + ? this._items.toArray()[this.selectedIndex] + : null, + re = te ? te.elementRef.nativeElement : null; + re ? this._inkBar.alignToElement(re) : this._inkBar.hide(); + } + _stopInterval() { + this._stopScrolling.next(); + } + _handlePaginatorPress(te, re) { + (re && null != re.button && 0 !== re.button) || + (this._stopInterval(), + (0, l.H)(650, 100) + .pipe( + (0, x.R)((0, c.T)(this._stopScrolling, this._destroyed)) + ) + .subscribe(() => { + const { + maxScrollDistance: Me, + distance: ze, + } = this._scrollHeader(te); + (0 === ze || ze >= Me) && this._stopInterval(); + })); + } + _scrollTo(te) { + if (this.disablePagination) + return { maxScrollDistance: 0, distance: 0 }; + const re = this._getMaxScrollDistance(); + return ( + (this._scrollDistance = Math.max(0, Math.min(re, te))), + (this._scrollDistanceChanged = !0), + this._checkScrollingControls(), + { maxScrollDistance: re, distance: this._scrollDistance } + ); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(S.rL), + s.ɵɵdirectiveInject(T.Is, 8), + s.ɵɵdirectiveInject(s.NgZone), + s.ɵɵdirectiveInject(A.t4), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + inputs: { disablePagination: "disablePagination" }, + })), + Ne + ); + })(), + ut = (() => { + class Ne extends st { + constructor(te, re, Me, ze, It, Qt, cn) { + super(te, re, Me, ze, It, Qt, cn), (this._disableRipple = !1); + } + get disableRipple() { + return this._disableRipple; + } + set disableRipple(te) { + this._disableRipple = (0, O.Ig)(te); + } + _itemSelected(te) { + te.preventDefault(); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(S.rL), + s.ɵɵdirectiveInject(T.Is, 8), + s.ɵɵdirectiveInject(s.NgZone), + s.ɵɵdirectiveInject(A.t4), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + inputs: { disableRipple: "disableRipple" }, + features: [s.ɵɵInheritDefinitionFeature], + })), + Ne + ); + })(), + St = (() => { + class Ne extends ut { + constructor(te, re, Me, ze, It, Qt, cn) { + super(te, re, Me, ze, It, Qt, cn); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(S.rL), + s.ɵɵdirectiveInject(T.Is, 8), + s.ɵɵdirectiveInject(s.NgZone), + s.ɵɵdirectiveInject(A.t4), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵcmp = s.ɵɵdefineComponent({ + type: Ne, + selectors: [["mat-tab-header"]], + contentQueries: function (te, re, Me) { + if ((1 & te && s.ɵɵcontentQuery(Me, U, 4), 2 & te)) { + let ze; + s.ɵɵqueryRefresh((ze = s.ɵɵloadQuery())) && (re._items = ze); + } + }, + viewQuery: function (te, re) { + if ( + (1 & te && + (s.ɵɵviewQuery(tt, 7), + s.ɵɵviewQuery(ie, 7), + s.ɵɵviewQuery(Y, 7), + s.ɵɵviewQuery(Z, 7), + s.ɵɵviewQuery(ee, 5), + s.ɵɵviewQuery($, 5)), + 2 & te) + ) { + let Me; + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._inkBar = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._tabListContainer = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._tabList = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._tabListInner = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._nextPaginator = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._previousPaginator = Me.first); + } + }, + hostAttrs: [1, "mat-tab-header"], + hostVars: 4, + hostBindings: function (te, re) { + 2 & te && + s.ɵɵclassProp( + "mat-tab-header-pagination-controls-enabled", + re._showPaginationControls + )("mat-tab-header-rtl", "rtl" == re._getLayoutDirection()); + }, + inputs: { selectedIndex: "selectedIndex" }, + outputs: { + selectFocusedIndex: "selectFocusedIndex", + indexFocused: "indexFocused", + }, + features: [s.ɵɵInheritDefinitionFeature], + ngContentSelectors: I, + decls: 14, + vars: 8, + consts: [ + [ + "aria-hidden", + "true", + "mat-ripple", + "", + 1, + "mat-tab-header-pagination", + "mat-tab-header-pagination-before", + "mat-elevation-z4", + 3, + "matRippleDisabled", + "click", + "mousedown", + "touchend", + ], + ["previousPaginator", ""], + [1, "mat-tab-header-pagination-chevron"], + [1, "mat-tab-label-container", 3, "keydown"], + ["tabListContainer", ""], + ["role", "tablist", 1, "mat-tab-list", 3, "cdkObserveContent"], + ["tabList", ""], + [1, "mat-tab-labels"], + ["tabListInner", ""], + [ + "aria-hidden", + "true", + "mat-ripple", + "", + 1, + "mat-tab-header-pagination", + "mat-tab-header-pagination-after", + "mat-elevation-z4", + 3, + "matRippleDisabled", + "mousedown", + "click", + "touchend", + ], + ["nextPaginator", ""], + ], + template: function (te, re) { + 1 & te && + (s.ɵɵprojectionDef(), + s.ɵɵelementStart(0, "div", 0, 1), + s.ɵɵlistener("click", function () { + return re._handlePaginatorClick("before"); + })("mousedown", function (ze) { + return re._handlePaginatorPress("before", ze); + })("touchend", function () { + return re._stopInterval(); + }), + s.ɵɵelement(2, "div", 2), + s.ɵɵelementEnd(), + s.ɵɵelementStart(3, "div", 3, 4), + s.ɵɵlistener("keydown", function (ze) { + return re._handleKeydown(ze); + }), + s.ɵɵelementStart(5, "div", 5, 6), + s.ɵɵlistener("cdkObserveContent", function () { + return re._onContentChanges(); + }), + s.ɵɵelementStart(7, "div", 7, 8), + s.ɵɵprojection(9), + s.ɵɵelementEnd(), + s.ɵɵelement(10, "mat-ink-bar"), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵelementStart(11, "div", 9, 10), + s.ɵɵlistener("mousedown", function (ze) { + return re._handlePaginatorPress("after", ze); + })("click", function () { + return re._handlePaginatorClick("after"); + })("touchend", function () { + return re._stopInterval(); + }), + s.ɵɵelement(13, "div", 2), + s.ɵɵelementEnd()), + 2 & te && + (s.ɵɵclassProp( + "mat-tab-header-pagination-disabled", + re._disableScrollBefore + ), + s.ɵɵproperty( + "matRippleDisabled", + re._disableScrollBefore || re.disableRipple + ), + s.ɵɵadvance(5), + s.ɵɵclassProp( + "_mat-animation-noopable", + "NoopAnimations" === re._animationMode + ), + s.ɵɵadvance(6), + s.ɵɵclassProp( + "mat-tab-header-pagination-disabled", + re._disableScrollAfter + ), + s.ɵɵproperty( + "matRippleDisabled", + re._disableScrollAfter || re.disableRipple + )); + }, + directives: [d.MatRipple, f.wD, tt], + styles: [ + ".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n", + ], + encapsulation: 2, + })), + Ne + ); + })(), + Xt = 0; + class tn {} + const Dt = (0, d.mixinColor)( + (0, d.mixinDisableRipple)( + class { + constructor(Ne) { + this._elementRef = Ne; + } + } + ), + "primary" + ); + let Kt = (() => { + class Ne extends Dt { + constructor(te, re, Me, ze) { + var It; + super(te), + (this._changeDetectorRef = re), + (this._animationMode = ze), + (this._tabs = new s.QueryList()), + (this._indexToSelect = 0), + (this._tabBodyWrapperHeight = 0), + (this._tabsSubscription = r.w.EMPTY), + (this._tabLabelSubscription = r.w.EMPTY), + (this._selectedIndex = null), + (this.headerPosition = "above"), + (this.selectedIndexChange = new s.EventEmitter()), + (this.focusChange = new s.EventEmitter()), + (this.animationDone = new s.EventEmitter()), + (this.selectedTabChange = new s.EventEmitter(!0)), + (this._groupId = Xt++), + (this.animationDuration = + Me && Me.animationDuration ? Me.animationDuration : "500ms"), + (this.disablePagination = + !(!Me || null == Me.disablePagination) && + Me.disablePagination), + (this.dynamicHeight = + !(!Me || null == Me.dynamicHeight) && Me.dynamicHeight), + (this.contentTabIndex = + null !== (It = null == Me ? void 0 : Me.contentTabIndex) && + void 0 !== It + ? It + : null); + } + get dynamicHeight() { + return this._dynamicHeight; + } + set dynamicHeight(te) { + this._dynamicHeight = (0, O.Ig)(te); + } + get selectedIndex() { + return this._selectedIndex; + } + set selectedIndex(te) { + this._indexToSelect = (0, O.su)(te, null); + } + get animationDuration() { + return this._animationDuration; + } + set animationDuration(te) { + this._animationDuration = /^\d+$/.test(te + "") ? te + "ms" : te; + } + get contentTabIndex() { + return this._contentTabIndex; + } + set contentTabIndex(te) { + this._contentTabIndex = (0, O.su)(te, null); + } + get backgroundColor() { + return this._backgroundColor; + } + set backgroundColor(te) { + const re = this._elementRef.nativeElement; + re.classList.remove(`mat-background-${this.backgroundColor}`), + te && re.classList.add(`mat-background-${te}`), + (this._backgroundColor = te); + } + ngAfterContentChecked() { + const te = (this._indexToSelect = this._clampTabIndex( + this._indexToSelect + )); + if (this._selectedIndex != te) { + const re = null == this._selectedIndex; + if (!re) { + this.selectedTabChange.emit(this._createChangeEvent(te)); + const Me = this._tabBodyWrapper.nativeElement; + Me.style.minHeight = Me.clientHeight + "px"; + } + Promise.resolve().then(() => { + this._tabs.forEach((Me, ze) => (Me.isActive = ze === te)), + re || + (this.selectedIndexChange.emit(te), + (this._tabBodyWrapper.nativeElement.style.minHeight = + "")); + }); + } + this._tabs.forEach((re, Me) => { + (re.position = Me - te), + null != this._selectedIndex && + 0 == re.position && + !re.origin && + (re.origin = te - this._selectedIndex); + }), + this._selectedIndex !== te && + ((this._selectedIndex = te), + this._changeDetectorRef.markForCheck()); + } + ngAfterContentInit() { + this._subscribeToAllTabChanges(), + this._subscribeToTabLabels(), + (this._tabsSubscription = this._tabs.changes.subscribe(() => { + if ( + this._clampTabIndex(this._indexToSelect) === + this._selectedIndex + ) { + const re = this._tabs.toArray(); + for (let Me = 0; Me < re.length; Me++) + if (re[Me].isActive) { + this._indexToSelect = this._selectedIndex = Me; + break; + } + } + this._changeDetectorRef.markForCheck(); + })); + } + _subscribeToAllTabChanges() { + this._allTabs.changes + .pipe((0, b.O)(this._allTabs)) + .subscribe((te) => { + this._tabs.reset( + te.filter( + (re) => + re._closestTabGroup === this || !re._closestTabGroup + ) + ), + this._tabs.notifyOnChanges(); + }); + } + ngOnDestroy() { + this._tabs.destroy(), + this._tabsSubscription.unsubscribe(), + this._tabLabelSubscription.unsubscribe(); + } + realignInkBar() { + this._tabHeader && this._tabHeader._alignInkBarToSelectedTab(); + } + focusTab(te) { + const re = this._tabHeader; + re && (re.focusIndex = te); + } + _focusChanged(te) { + this.focusChange.emit(this._createChangeEvent(te)); + } + _createChangeEvent(te) { + const re = new tn(); + return ( + (re.index = te), + this._tabs && + this._tabs.length && + (re.tab = this._tabs.toArray()[te]), + re + ); + } + _subscribeToTabLabels() { + this._tabLabelSubscription && + this._tabLabelSubscription.unsubscribe(), + (this._tabLabelSubscription = (0, c.T)( + ...this._tabs.map((te) => te._stateChanges) + ).subscribe(() => this._changeDetectorRef.markForCheck())); + } + _clampTabIndex(te) { + return Math.min(this._tabs.length - 1, Math.max(te || 0, 0)); + } + _getTabLabelId(te) { + return `mat-tab-label-${this._groupId}-${te}`; + } + _getTabContentId(te) { + return `mat-tab-content-${this._groupId}-${te}`; + } + _setTabBodyWrapperHeight(te) { + if (!this._dynamicHeight || !this._tabBodyWrapperHeight) return; + const re = this._tabBodyWrapper.nativeElement; + (re.style.height = this._tabBodyWrapperHeight + "px"), + this._tabBodyWrapper.nativeElement.offsetHeight && + (re.style.height = te + "px"); + } + _removeTabBodyWrapperHeight() { + const te = this._tabBodyWrapper.nativeElement; + (this._tabBodyWrapperHeight = te.clientHeight), + (te.style.height = ""), + this.animationDone.emit(); + } + _handleClick(te, re, Me) { + te.disabled || (this.selectedIndex = re.focusIndex = Me); + } + _getTabIndex(te, re) { + return te.disabled ? null : this.selectedIndex === re ? 0 : -1; + } + _tabFocusChanged(te, re) { + te && + "mouse" !== te && + "touch" !== te && + (this._tabHeader.focusIndex = re); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(H, 8), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + inputs: { + dynamicHeight: "dynamicHeight", + selectedIndex: "selectedIndex", + headerPosition: "headerPosition", + animationDuration: "animationDuration", + contentTabIndex: "contentTabIndex", + disablePagination: "disablePagination", + backgroundColor: "backgroundColor", + }, + outputs: { + selectedIndexChange: "selectedIndexChange", + focusChange: "focusChange", + animationDone: "animationDone", + selectedTabChange: "selectedTabChange", + }, + features: [s.ɵɵInheritDefinitionFeature], + })), + Ne + ); + })(), + et = (() => { + class Ne extends Kt { + constructor(te, re, Me, ze) { + super(te, re, Me, ze); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(H, 8), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵcmp = s.ɵɵdefineComponent({ + type: Ne, + selectors: [["mat-tab-group"]], + contentQueries: function (te, re, Me) { + if ((1 & te && s.ɵɵcontentQuery(Me, Tt, 5), 2 & te)) { + let ze; + s.ɵɵqueryRefresh((ze = s.ɵɵloadQuery())) && + (re._allTabs = ze); + } + }, + viewQuery: function (te, re) { + if ( + (1 & te && (s.ɵɵviewQuery(J, 5), s.ɵɵviewQuery(ne, 5)), + 2 & te) + ) { + let Me; + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._tabBodyWrapper = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._tabHeader = Me.first); + } + }, + hostAttrs: [1, "mat-tab-group"], + hostVars: 4, + hostBindings: function (te, re) { + 2 & te && + s.ɵɵclassProp( + "mat-tab-group-dynamic-height", + re.dynamicHeight + )( + "mat-tab-group-inverted-header", + "below" === re.headerPosition + ); + }, + inputs: { color: "color", disableRipple: "disableRipple" }, + exportAs: ["matTabGroup"], + features: [ + s.ɵɵProvidersFeature([{ provide: At, useExisting: Ne }]), + s.ɵɵInheritDefinitionFeature, + ], + decls: 6, + vars: 7, + consts: [ + [ + 3, + "selectedIndex", + "disableRipple", + "disablePagination", + "indexFocused", + "selectFocusedIndex", + ], + ["tabHeader", ""], + [ + "class", + "mat-tab-label mat-focus-indicator", + "role", + "tab", + "matTabLabelWrapper", + "", + "mat-ripple", + "", + "cdkMonitorElementFocus", + "", + 3, + "id", + "mat-tab-label-active", + "disabled", + "matRippleDisabled", + "click", + "cdkFocusChange", + 4, + "ngFor", + "ngForOf", + ], + [1, "mat-tab-body-wrapper"], + ["tabBodyWrapper", ""], + [ + "role", + "tabpanel", + 3, + "id", + "mat-tab-body-active", + "content", + "position", + "origin", + "animationDuration", + "_onCentered", + "_onCentering", + 4, + "ngFor", + "ngForOf", + ], + [ + "role", + "tab", + "matTabLabelWrapper", + "", + "mat-ripple", + "", + "cdkMonitorElementFocus", + "", + 1, + "mat-tab-label", + "mat-focus-indicator", + 3, + "id", + "disabled", + "matRippleDisabled", + "click", + "cdkFocusChange", + ], + [1, "mat-tab-label-content"], + [3, "ngIf"], + [3, "cdkPortalOutlet"], + [ + "role", + "tabpanel", + 3, + "id", + "content", + "position", + "origin", + "animationDuration", + "_onCentered", + "_onCentering", + ], + ], + template: function (te, re) { + 1 & te && + (s.ɵɵelementStart(0, "mat-tab-header", 0, 1), + s.ɵɵlistener("indexFocused", function (ze) { + return re._focusChanged(ze); + })("selectFocusedIndex", function (ze) { + return (re.selectedIndex = ze); + }), + s.ɵɵtemplate(2, Le, 4, 14, "div", 2), + s.ɵɵelementEnd(), + s.ɵɵelementStart(3, "div", 3, 4), + s.ɵɵtemplate(5, Ye, 1, 9, "mat-tab-body", 5), + s.ɵɵelementEnd()), + 2 & te && + (s.ɵɵproperty("selectedIndex", re.selectedIndex || 0)( + "disableRipple", + re.disableRipple + )("disablePagination", re.disablePagination), + s.ɵɵadvance(2), + s.ɵɵproperty("ngForOf", re._tabs), + s.ɵɵadvance(1), + s.ɵɵclassProp( + "_mat-animation-noopable", + "NoopAnimations" === re._animationMode + ), + s.ɵɵadvance(2), + s.ɵɵproperty("ngForOf", re._tabs)); + }, + directives: [ + St, + m.NgForOf, + U, + d.MatRipple, + n.kH, + m.NgIf, + _.Pl, + fe, + ], + styles: [ + ".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n", + ], + encapsulation: 2, + })), + Ne + ); + })(), + xt = (() => { + class Ne extends st { + constructor(te, re, Me, ze, It, Qt, cn) { + super(te, ze, It, re, Me, Qt, cn), + (this._disableRipple = !1), + (this.color = "primary"); + } + get backgroundColor() { + return this._backgroundColor; + } + set backgroundColor(te) { + const re = this._elementRef.nativeElement.classList; + re.remove(`mat-background-${this.backgroundColor}`), + te && re.add(`mat-background-${te}`), + (this._backgroundColor = te); + } + get disableRipple() { + return this._disableRipple; + } + set disableRipple(te) { + this._disableRipple = (0, O.Ig)(te); + } + _itemSelected() {} + ngAfterContentInit() { + this._items.changes + .pipe((0, b.O)(null), (0, x.R)(this._destroyed)) + .subscribe(() => { + this.updateActiveLink(); + }), + super.ngAfterContentInit(); + } + updateActiveLink() { + if (!this._items) return; + const te = this._items.toArray(); + for (let re = 0; re < te.length; re++) + if (te[re].active) + return ( + (this.selectedIndex = re), + void this._changeDetectorRef.markForCheck() + ); + (this.selectedIndex = -1), this._inkBar.hide(); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(T.Is, 8), + s.ɵɵdirectiveInject(s.NgZone), + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(S.rL), + s.ɵɵdirectiveInject(A.t4), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + inputs: { + backgroundColor: "backgroundColor", + disableRipple: "disableRipple", + color: "color", + }, + features: [s.ɵɵInheritDefinitionFeature], + })), + Ne + ); + })(), + Lt = (() => { + class Ne extends xt { + constructor(te, re, Me, ze, It, Qt, cn) { + super(te, re, Me, ze, It, Qt, cn); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(T.Is, 8), + s.ɵɵdirectiveInject(s.NgZone), + s.ɵɵdirectiveInject(s.ChangeDetectorRef), + s.ɵɵdirectiveInject(S.rL), + s.ɵɵdirectiveInject(A.t4), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵcmp = s.ɵɵdefineComponent({ + type: Ne, + selectors: [["", "mat-tab-nav-bar", ""]], + contentQueries: function (te, re, Me) { + if ((1 & te && s.ɵɵcontentQuery(Me, Vt, 5), 2 & te)) { + let ze; + s.ɵɵqueryRefresh((ze = s.ɵɵloadQuery())) && (re._items = ze); + } + }, + viewQuery: function (te, re) { + if ( + (1 & te && + (s.ɵɵviewQuery(tt, 7), + s.ɵɵviewQuery(ie, 7), + s.ɵɵviewQuery(Y, 7), + s.ɵɵviewQuery(Z, 7), + s.ɵɵviewQuery(ee, 5), + s.ɵɵviewQuery($, 5)), + 2 & te) + ) { + let Me; + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._inkBar = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._tabListContainer = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._tabList = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._tabListInner = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._nextPaginator = Me.first), + s.ɵɵqueryRefresh((Me = s.ɵɵloadQuery())) && + (re._previousPaginator = Me.first); + } + }, + hostAttrs: [1, "mat-tab-nav-bar", "mat-tab-header"], + hostVars: 10, + hostBindings: function (te, re) { + 2 & te && + s.ɵɵclassProp( + "mat-tab-header-pagination-controls-enabled", + re._showPaginationControls + )("mat-tab-header-rtl", "rtl" == re._getLayoutDirection())( + "mat-primary", + "warn" !== re.color && "accent" !== re.color + )("mat-accent", "accent" === re.color)( + "mat-warn", + "warn" === re.color + ); + }, + inputs: { color: "color" }, + exportAs: ["matTabNavBar", "matTabNav"], + features: [s.ɵɵInheritDefinitionFeature], + attrs: Je, + ngContentSelectors: I, + decls: 14, + vars: 8, + consts: [ + [ + "aria-hidden", + "true", + "mat-ripple", + "", + 1, + "mat-tab-header-pagination", + "mat-tab-header-pagination-before", + "mat-elevation-z4", + 3, + "matRippleDisabled", + "click", + "mousedown", + "touchend", + ], + ["previousPaginator", ""], + [1, "mat-tab-header-pagination-chevron"], + [1, "mat-tab-link-container", 3, "keydown"], + ["tabListContainer", ""], + [1, "mat-tab-list", 3, "cdkObserveContent"], + ["tabList", ""], + [1, "mat-tab-links"], + ["tabListInner", ""], + [ + "aria-hidden", + "true", + "mat-ripple", + "", + 1, + "mat-tab-header-pagination", + "mat-tab-header-pagination-after", + "mat-elevation-z4", + 3, + "matRippleDisabled", + "mousedown", + "click", + "touchend", + ], + ["nextPaginator", ""], + ], + template: function (te, re) { + 1 & te && + (s.ɵɵprojectionDef(), + s.ɵɵelementStart(0, "div", 0, 1), + s.ɵɵlistener("click", function () { + return re._handlePaginatorClick("before"); + })("mousedown", function (ze) { + return re._handlePaginatorPress("before", ze); + })("touchend", function () { + return re._stopInterval(); + }), + s.ɵɵelement(2, "div", 2), + s.ɵɵelementEnd(), + s.ɵɵelementStart(3, "div", 3, 4), + s.ɵɵlistener("keydown", function (ze) { + return re._handleKeydown(ze); + }), + s.ɵɵelementStart(5, "div", 5, 6), + s.ɵɵlistener("cdkObserveContent", function () { + return re._onContentChanges(); + }), + s.ɵɵelementStart(7, "div", 7, 8), + s.ɵɵprojection(9), + s.ɵɵelementEnd(), + s.ɵɵelement(10, "mat-ink-bar"), + s.ɵɵelementEnd(), + s.ɵɵelementEnd(), + s.ɵɵelementStart(11, "div", 9, 10), + s.ɵɵlistener("mousedown", function (ze) { + return re._handlePaginatorPress("after", ze); + })("click", function () { + return re._handlePaginatorClick("after"); + })("touchend", function () { + return re._stopInterval(); + }), + s.ɵɵelement(13, "div", 2), + s.ɵɵelementEnd()), + 2 & te && + (s.ɵɵclassProp( + "mat-tab-header-pagination-disabled", + re._disableScrollBefore + ), + s.ɵɵproperty( + "matRippleDisabled", + re._disableScrollBefore || re.disableRipple + ), + s.ɵɵadvance(5), + s.ɵɵclassProp( + "_mat-animation-noopable", + "NoopAnimations" === re._animationMode + ), + s.ɵɵadvance(6), + s.ɵɵclassProp( + "mat-tab-header-pagination-disabled", + re._disableScrollAfter + ), + s.ɵɵproperty( + "matRippleDisabled", + re._disableScrollAfter || re.disableRipple + )); + }, + directives: [d.MatRipple, f.wD, tt], + styles: [ + ".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n", + ], + encapsulation: 2, + })), + Ne + ); + })(); + const Qe = (0, d.mixinTabIndex)( + (0, d.mixinDisableRipple)((0, d.mixinDisabled)(class {})) + ); + let mt = (() => { + class Ne extends Qe { + constructor(te, re, Me, ze, It, Qt) { + super(), + (this._tabNavBar = te), + (this.elementRef = re), + (this._focusMonitor = It), + (this._isActive = !1), + (this.rippleConfig = Me || {}), + (this.tabIndex = parseInt(ze) || 0), + "NoopAnimations" === Qt && + (this.rippleConfig.animation = { + enterDuration: 0, + exitDuration: 0, + }); + } + get active() { + return this._isActive; + } + set active(te) { + const re = (0, O.Ig)(te); + re !== this._isActive && + ((this._isActive = re), this._tabNavBar.updateActiveLink()); + } + get rippleDisabled() { + return ( + this.disabled || + this.disableRipple || + this._tabNavBar.disableRipple || + !!this.rippleConfig.disabled + ); + } + focus() { + this.elementRef.nativeElement.focus(); + } + ngAfterViewInit() { + this._focusMonitor.monitor(this.elementRef); + } + ngOnDestroy() { + this._focusMonitor.stopMonitoring(this.elementRef); + } + _handleFocus() { + this._tabNavBar.focusIndex = this._tabNavBar._items + .toArray() + .indexOf(this); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(xt), + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(d.MAT_RIPPLE_GLOBAL_OPTIONS, 8), + s.ɵɵinjectAttribute("tabindex"), + s.ɵɵdirectiveInject(n.tE), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + inputs: { active: "active" }, + features: [s.ɵɵInheritDefinitionFeature], + })), + Ne + ); + })(), + Vt = (() => { + class Ne extends mt { + constructor(te, re, Me, ze, It, Qt, cn, An) { + super(te, re, It, Qt, cn, An), + (this._tabLinkRipple = new d.RippleRenderer(this, Me, re, ze)), + this._tabLinkRipple.setupTriggerEvents(re.nativeElement); + } + ngOnDestroy() { + super.ngOnDestroy(), this._tabLinkRipple._removeTriggerEvents(); + } + } + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)( + s.ɵɵdirectiveInject(Lt), + s.ɵɵdirectiveInject(s.ElementRef), + s.ɵɵdirectiveInject(s.NgZone), + s.ɵɵdirectiveInject(A.t4), + s.ɵɵdirectiveInject(d.MAT_RIPPLE_GLOBAL_OPTIONS, 8), + s.ɵɵinjectAttribute("tabindex"), + s.ɵɵdirectiveInject(n.tE), + s.ɵɵdirectiveInject(u.ANIMATION_MODULE_TYPE, 8) + ); + }), + (Ne.ɵdir = s.ɵɵdefineDirective({ + type: Ne, + selectors: [ + ["", "mat-tab-link", ""], + ["", "matTabLink", ""], + ], + hostAttrs: [1, "mat-tab-link", "mat-focus-indicator"], + hostVars: 7, + hostBindings: function (te, re) { + 1 & te && + s.ɵɵlistener("focus", function () { + return re._handleFocus(); + }), + 2 & te && + (s.ɵɵattribute("aria-current", re.active ? "page" : null)( + "aria-disabled", + re.disabled + )("tabIndex", re.tabIndex), + s.ɵɵclassProp("mat-tab-disabled", re.disabled)( + "mat-tab-label-active", + re.active + )); + }, + inputs: { + disabled: "disabled", + disableRipple: "disableRipple", + tabIndex: "tabIndex", + }, + exportAs: ["matTabLink"], + features: [s.ɵɵInheritDefinitionFeature], + })), + Ne + ); + })(), + qt = (() => { + class Ne {} + return ( + (Ne.ɵfac = function (te) { + return new (te || Ne)(); + }), + (Ne.ɵmod = s.ɵɵdefineNgModule({ type: Ne })), + (Ne.ɵinj = s.ɵɵdefineInjector({ + imports: [ + [ + m.CommonModule, + d.MatCommonModule, + _.eL, + d.MatRippleModule, + f.Q8, + n.rt, + ], + d.MatCommonModule, + ], + })), + Ne + ); + })(); + }, + 4594: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + MatToolbar: () => r, + MatToolbarModule: () => i, + MatToolbarRow: () => h, + throwToolbarMixedModesError: () => o, + }); + var n = p(5e3), + f = p(508), + _ = p(9808), + m = p(925); + const s = ["*", [["mat-toolbar-row"]]], + d = ["*", "mat-toolbar-row"], + u = (0, f.mixinColor)( + class { + constructor(c) { + this._elementRef = c; + } + } + ); + let h = (() => { + class c {} + return ( + (c.ɵfac = function (g) { + return new (g || c)(); + }), + (c.ɵdir = n.ɵɵdefineDirective({ + type: c, + selectors: [["mat-toolbar-row"]], + hostAttrs: [1, "mat-toolbar-row"], + exportAs: ["matToolbarRow"], + })), + c + ); + })(), + r = (() => { + class c extends u { + constructor(g, b, y) { + super(g), (this._platform = b), (this._document = y); + } + ngAfterViewInit() { + this._platform.isBrowser && + (this._checkToolbarMixedModes(), + this._toolbarRows.changes.subscribe(() => + this._checkToolbarMixedModes() + )); + } + _checkToolbarMixedModes() {} + } + return ( + (c.ɵfac = function (g) { + return new (g || c)( + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(m.t4), + n.ɵɵdirectiveInject(_.DOCUMENT) + ); + }), + (c.ɵcmp = n.ɵɵdefineComponent({ + type: c, + selectors: [["mat-toolbar"]], + contentQueries: function (g, b, y) { + if ((1 & g && n.ɵɵcontentQuery(y, h, 5), 2 & g)) { + let x; + n.ɵɵqueryRefresh((x = n.ɵɵloadQuery())) && + (b._toolbarRows = x); + } + }, + hostAttrs: [1, "mat-toolbar"], + hostVars: 4, + hostBindings: function (g, b) { + 2 & g && + n.ɵɵclassProp( + "mat-toolbar-multiple-rows", + b._toolbarRows.length > 0 + )("mat-toolbar-single-row", 0 === b._toolbarRows.length); + }, + inputs: { color: "color" }, + exportAs: ["matToolbar"], + features: [n.ɵɵInheritDefinitionFeature], + ngContentSelectors: d, + decls: 2, + vars: 0, + template: function (g, b) { + 1 & g && + (n.ɵɵprojectionDef(s), + n.ɵɵprojection(0), + n.ɵɵprojection(1, 1)); + }, + styles: [ + ".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n", + ], + encapsulation: 2, + changeDetection: 0, + })), + c + ); + })(); + function o() { + throw Error( + "MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row." + ); + } + let i = (() => { + class c {} + return ( + (c.ɵfac = function (g) { + return new (g || c)(); + }), + (c.ɵmod = n.ɵɵdefineNgModule({ type: c })), + (c.ɵinj = n.ɵɵdefineInjector({ + imports: [[f.MatCommonModule], f.MatCommonModule], + })), + c + ); + })(); + }, + 6360: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + ANIMATION_MODULE_TYPE: () => rr, + BrowserAnimationsModule: () => ds, + NoopAnimationsModule: () => Bs, + ɵAnimationRenderer: () => di, + ɵAnimationRendererFactory: () => In, + ɵBrowserAnimationBuilder: () => k, + ɵBrowserAnimationFactory: () => V, + ɵInjectableAnimationEngine: () => Ei, + }); + var n = p(5e3), + f = p(2313), + _ = p(1777); + function m() { + return "undefined" != typeof window && void 0 !== window.document; + } + function s() { + return ( + "undefined" != typeof process && + "[object process]" === {}.toString.call(process) + ); + } + function d(we) { + switch (we.length) { + case 0: + return new _.ZN(); + case 1: + return we[0]; + default: + return new _.ZE(we); + } + } + function u(we, N, G, pe, Ae = {}, We = {}) { + const rt = [], + dt = []; + let Rt = -1, + Gt = null; + if ( + (pe.forEach((rn) => { + const pn = rn.offset, + Pn = pn == Rt, + Ln = (Pn && Gt) || {}; + Object.keys(rn).forEach((_n) => { + let Bn = _n, + Kn = rn[_n]; + if ("offset" !== _n) + switch (((Bn = N.normalizePropertyName(Bn, rt)), Kn)) { + case _.k1: + Kn = Ae[_n]; + break; + case _.l3: + Kn = We[_n]; + break; + default: + Kn = N.normalizeStyleValue(_n, Bn, Kn, rt); + } + Ln[Bn] = Kn; + }), + Pn || dt.push(Ln), + (Gt = Ln), + (Rt = pn); + }), + rt.length) + ) { + const rn = "\n - "; + throw new Error( + `Unable to animate due to the following errors:${rn}${rt.join(rn)}` + ); + } + return dt; + } + function h(we, N, G, pe) { + switch (N) { + case "start": + we.onStart(() => pe(G && r(G, "start", we))); + break; + case "done": + we.onDone(() => pe(G && r(G, "done", we))); + break; + case "destroy": + we.onDestroy(() => pe(G && r(G, "destroy", we))); + } + } + function r(we, N, G) { + const pe = G.totalTime, + We = o( + we.element, + we.triggerName, + we.fromState, + we.toState, + N || we.phaseName, + null == pe ? we.totalTime : pe, + !!G.disabled + ), + rt = we._data; + return null != rt && (We._data = rt), We; + } + function o(we, N, G, pe, Ae = "", We = 0, rt) { + return { + element: we, + triggerName: N, + fromState: G, + toState: pe, + phaseName: Ae, + totalTime: We, + disabled: !!rt, + }; + } + function i(we, N, G) { + let pe; + return ( + we instanceof Map + ? ((pe = we.get(N)), pe || we.set(N, (pe = G))) + : ((pe = we[N]), pe || (pe = we[N] = G)), + pe + ); + } + function c(we) { + const N = we.indexOf(":"); + return [we.substring(1, N), we.substr(N + 1)]; + } + let l = (we, N) => !1, + g = (we, N, G) => []; + (s() || "undefined" != typeof Element) && + ((l = m() + ? (we, N) => { + for (; N && N !== document.documentElement; ) { + if (N === we) return !0; + N = N.parentNode || N.host; + } + return !1; + } + : (we, N) => we.contains(N)), + (g = (we, N, G) => { + let pe = []; + if (G) { + const Ae = we.querySelectorAll(N); + for (let We = 0; We < Ae.length; We++) pe.push(Ae[We]); + } else { + const Ae = we.querySelector(N); + Ae && pe.push(Ae); + } + return pe; + })); + let x = null, + T = !1; + function O(we) { + x || + ((x = ("undefined" != typeof document ? document.body : null) || {}), + (T = !!x.style && "WebkitAppearance" in x.style)); + let N = !0; + return ( + x.style && + !(function (we) { + return "ebkit" == we.substring(1, 6); + })(we) && + ((N = we in x.style), + !N && + T && + (N = + "Webkit" + we.charAt(0).toUpperCase() + we.substr(1) in + x.style)), + N + ); + } + const A = l, + S = g; + function w(we) { + const N = {}; + return ( + Object.keys(we).forEach((G) => { + const pe = G.replace(/([a-z])([A-Z])/g, "$1-$2"); + N[pe] = we[G]; + }), + N + ); + } + let I = (() => { + class we { + validateStyleProperty(G) { + return O(G); + } + matchesElement(G, pe) { + return !1; + } + containsElement(G, pe) { + return A(G, pe); + } + query(G, pe, Ae) { + return S(G, pe, Ae); + } + computeStyle(G, pe, Ae) { + return Ae || ""; + } + animate(G, pe, Ae, We, rt, dt = [], Rt) { + return new _.ZN(Ae, We); + } + } + return ( + (we.ɵfac = function (G) { + return new (G || we)(); + }), + (we.ɵprov = n.ɵɵdefineInjectable({ token: we, factory: we.ɵfac })), + we + ); + })(), + C = (() => { + class we {} + return (we.NOOP = new I()), we; + })(); + const Y = "ng-enter", + Z = "ng-leave", + ee = "ng-trigger", + $ = ".ng-trigger", + J = "ng-animating", + ne = ".ng-animating"; + function ae(we) { + if ("number" == typeof we) return we; + const N = we.match(/^(-?[\.\d]+)(m?s)/); + return !N || N.length < 2 ? 0 : le(parseFloat(N[1]), N[2]); + } + function le(we, N) { + return "s" === N ? 1e3 * we : we; + } + function Oe(we, N, G) { + return we.hasOwnProperty("duration") + ? we + : (function (we, N, G) { + let Ae, + We = 0, + rt = ""; + if ("string" == typeof we) { + const dt = we.match( + /^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i + ); + if (null === dt) + return ( + N.push(`The provided timing value "${we}" is invalid.`), + { duration: 0, delay: 0, easing: "" } + ); + Ae = le(parseFloat(dt[1]), dt[2]); + const Rt = dt[3]; + null != Rt && (We = le(parseFloat(Rt), dt[4])); + const Gt = dt[5]; + Gt && (rt = Gt); + } else Ae = we; + if (!G) { + let dt = !1, + Rt = N.length; + Ae < 0 && + (N.push( + "Duration values below 0 are not allowed for this animation step." + ), + (dt = !0)), + We < 0 && + (N.push( + "Delay values below 0 are not allowed for this animation step." + ), + (dt = !0)), + dt && + N.splice( + Rt, + 0, + `The provided timing value "${we}" is invalid.` + ); + } + return { duration: Ae, delay: We, easing: rt }; + })(we, N, G); + } + function Ye(we, N = {}) { + return ( + Object.keys(we).forEach((G) => { + N[G] = we[G]; + }), + N + ); + } + function gt(we, N, G = {}) { + if (N) for (let pe in we) G[pe] = we[pe]; + else Ye(we, G); + return G; + } + function Ue(we, N, G) { + return G ? N + ":" + G + ";" : ""; + } + function tt(we) { + let N = ""; + for (let G = 0; G < we.style.length; G++) { + const pe = we.style.item(G); + N += Ue(0, pe, we.style.getPropertyValue(pe)); + } + for (const G in we.style) + we.style.hasOwnProperty(G) && + !G.startsWith("_") && + (N += Ue(0, Ee(G), we.style[G])); + we.setAttribute("style", N); + } + function at(we, N, G) { + we.style && + (Object.keys(N).forEach((pe) => { + const Ae = Et(pe); + G && !G.hasOwnProperty(pe) && (G[pe] = we.style[Ae]), + (we.style[Ae] = N[pe]); + }), + s() && tt(we)); + } + function ft(we, N) { + we.style && + (Object.keys(N).forEach((G) => { + const pe = Et(G); + we.style[pe] = ""; + }), + s() && tt(we)); + } + function vt(we) { + return Array.isArray(we) + ? 1 == we.length + ? we[0] + : (0, _.vP)(we) + : we; + } + const ot = new RegExp("{{\\s*(.+?)\\s*}}", "g"); + function _t(we) { + let N = []; + if ("string" == typeof we) { + let G; + for (; (G = ot.exec(we)); ) N.push(G[1]); + ot.lastIndex = 0; + } + return N; + } + function At(we, N, G) { + const pe = we.toString(), + Ae = pe.replace(ot, (We, rt) => { + let dt = N[rt]; + return ( + N.hasOwnProperty(rt) || + (G.push(`Please provide a value for the animation param ${rt}`), + (dt = "")), + dt.toString() + ); + }); + return Ae == pe ? we : Ae; + } + function Tt(we) { + const N = []; + let G = we.next(); + for (; !G.done; ) N.push(G.value), (G = we.next()); + return N; + } + const Bt = /-+([a-z0-9])/g; + function Et(we) { + return we.replace(Bt, (...N) => N[1].toUpperCase()); + } + function Ee(we) { + return we.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(); + } + function fe(we, N) { + return 0 === we || 0 === N; + } + function H(we, N, G) { + const pe = Object.keys(G); + if (pe.length && N.length) { + let We = N[0], + rt = []; + if ( + (pe.forEach((dt) => { + We.hasOwnProperty(dt) || rt.push(dt), (We[dt] = G[dt]); + }), + rt.length) + ) + for (var Ae = 1; Ae < N.length; Ae++) { + let dt = N[Ae]; + rt.forEach(function (Rt) { + dt[Rt] = U(we, Rt); + }); + } + } + return N; + } + function D(we, N, G) { + switch (N.type) { + case 7: + return we.visitTrigger(N, G); + case 0: + return we.visitState(N, G); + case 1: + return we.visitTransition(N, G); + case 2: + return we.visitSequence(N, G); + case 3: + return we.visitGroup(N, G); + case 4: + return we.visitAnimate(N, G); + case 5: + return we.visitKeyframes(N, G); + case 6: + return we.visitStyle(N, G); + case 8: + return we.visitReference(N, G); + case 9: + return we.visitAnimateChild(N, G); + case 10: + return we.visitAnimateRef(N, G); + case 11: + return we.visitQuery(N, G); + case 12: + return we.visitStagger(N, G); + default: + throw new Error( + `Unable to resolve animation metadata node #${N.type}` + ); + } + } + function U(we, N) { + return window.getComputedStyle(we)[N]; + } + const X = "*"; + function _e(we, N) { + const G = []; + return ( + "string" == typeof we + ? we.split(/\s*,\s*/).forEach((pe) => + (function (we, N, G) { + if (":" == we[0]) { + const Rt = (function (we, N) { + switch (we) { + case ":enter": + return "void => *"; + case ":leave": + return "* => void"; + case ":increment": + return (G, pe) => parseFloat(pe) > parseFloat(G); + case ":decrement": + return (G, pe) => parseFloat(pe) < parseFloat(G); + default: + return ( + N.push( + `The transition alias value "${we}" is not supported` + ), + "* => *" + ); + } + })(we, G); + if ("function" == typeof Rt) return void N.push(Rt); + we = Rt; + } + const pe = we.match( + /^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/ + ); + if (null == pe || pe.length < 4) + return ( + G.push( + `The provided transition expression "${we}" is not supported` + ), + N + ); + const Ae = pe[1], + We = pe[2], + rt = pe[3]; + N.push(St(Ae, rt)); + "<" == We[0] && !(Ae == X && rt == X) && N.push(St(rt, Ae)); + })(pe, G, N) + ) + : G.push(we), + G + ); + } + const st = new Set(["true", "1"]), + ut = new Set(["false", "0"]); + function St(we, N) { + const G = st.has(we) || ut.has(we), + pe = st.has(N) || ut.has(N); + return (Ae, We) => { + let rt = we == X || we == Ae, + dt = N == X || N == We; + return ( + !rt && + G && + "boolean" == typeof Ae && + (rt = Ae ? st.has(we) : ut.has(we)), + !dt && + pe && + "boolean" == typeof We && + (dt = We ? st.has(N) : ut.has(N)), + rt && dt + ); + }; + } + const tn = new RegExp("s*:selfs*,?", "g"); + function Dt(we, N, G) { + return new et(we).build(N, G); + } + class et { + constructor(N) { + this._driver = N; + } + build(N, G) { + const pe = new Qe(G); + return this._resetContextStyleTimingState(pe), D(this, vt(N), pe); + } + _resetContextStyleTimingState(N) { + (N.currentQuerySelector = ""), + (N.collectedStyles = {}), + (N.collectedStyles[""] = {}), + (N.currentTime = 0); + } + visitTrigger(N, G) { + let pe = (G.queryCount = 0), + Ae = (G.depCount = 0); + const We = [], + rt = []; + return ( + "@" == N.name.charAt(0) && + G.errors.push( + "animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))" + ), + N.definitions.forEach((dt) => { + if ((this._resetContextStyleTimingState(G), 0 == dt.type)) { + const Rt = dt, + Gt = Rt.name; + Gt.toString() + .split(/\s*,\s*/) + .forEach((rn) => { + (Rt.name = rn), We.push(this.visitState(Rt, G)); + }), + (Rt.name = Gt); + } else if (1 == dt.type) { + const Rt = this.visitTransition(dt, G); + (pe += Rt.queryCount), (Ae += Rt.depCount), rt.push(Rt); + } else + G.errors.push( + "only state() and transition() definitions can sit inside of a trigger()" + ); + }), + { + type: 7, + name: N.name, + states: We, + transitions: rt, + queryCount: pe, + depCount: Ae, + options: null, + } + ); + } + visitState(N, G) { + const pe = this.visitStyle(N.styles, G), + Ae = (N.options && N.options.params) || null; + if (pe.containsDynamicStyles) { + const We = new Set(), + rt = Ae || {}; + if ( + (pe.styles.forEach((dt) => { + if (Vt(dt)) { + const Rt = dt; + Object.keys(Rt).forEach((Gt) => { + _t(Rt[Gt]).forEach((rn) => { + rt.hasOwnProperty(rn) || We.add(rn); + }); + }); + } + }), + We.size) + ) { + const dt = Tt(We.values()); + G.errors.push( + `state("${ + N.name + }", ...) must define default values for all the following style substitutions: ${dt.join( + ", " + )}` + ); + } + } + return { + type: 0, + name: N.name, + style: pe, + options: Ae ? { params: Ae } : null, + }; + } + visitTransition(N, G) { + (G.queryCount = 0), (G.depCount = 0); + const pe = D(this, vt(N.animation), G); + return { + type: 1, + matchers: _e(N.expr, G.errors), + animation: pe, + queryCount: G.queryCount, + depCount: G.depCount, + options: Ne(N.options), + }; + } + visitSequence(N, G) { + return { + type: 2, + steps: N.steps.map((pe) => D(this, pe, G)), + options: Ne(N.options), + }; + } + visitGroup(N, G) { + const pe = G.currentTime; + let Ae = 0; + const We = N.steps.map((rt) => { + G.currentTime = pe; + const dt = D(this, rt, G); + return (Ae = Math.max(Ae, G.currentTime)), dt; + }); + return ( + (G.currentTime = Ae), { type: 3, steps: We, options: Ne(N.options) } + ); + } + visitAnimate(N, G) { + const pe = (function (we, N) { + let G = null; + if (we.hasOwnProperty("duration")) G = we; + else if ("number" == typeof we) + return Se(Oe(we, N).duration, 0, ""); + const pe = we; + if ( + pe + .split(/\s+/) + .some((We) => "{" == We.charAt(0) && "{" == We.charAt(1)) + ) { + const We = Se(0, 0, ""); + return (We.dynamic = !0), (We.strValue = pe), We; + } + return (G = G || Oe(pe, N)), Se(G.duration, G.delay, G.easing); + })(N.timings, G.errors); + G.currentAnimateTimings = pe; + let Ae, + We = N.styles ? N.styles : (0, _.oB)({}); + if (5 == We.type) Ae = this.visitKeyframes(We, G); + else { + let rt = N.styles, + dt = !1; + if (!rt) { + dt = !0; + const Gt = {}; + pe.easing && (Gt.easing = pe.easing), (rt = (0, _.oB)(Gt)); + } + G.currentTime += pe.duration + pe.delay; + const Rt = this.visitStyle(rt, G); + (Rt.isEmptyStep = dt), (Ae = Rt); + } + return ( + (G.currentAnimateTimings = null), + { type: 4, timings: pe, style: Ae, options: null } + ); + } + visitStyle(N, G) { + const pe = this._makeStyleAst(N, G); + return this._validateStyleAst(pe, G), pe; + } + _makeStyleAst(N, G) { + const pe = []; + Array.isArray(N.styles) + ? N.styles.forEach((rt) => { + "string" == typeof rt + ? rt == _.l3 + ? pe.push(rt) + : G.errors.push( + `The provided style string value ${rt} is not allowed.` + ) + : pe.push(rt); + }) + : pe.push(N.styles); + let Ae = !1, + We = null; + return ( + pe.forEach((rt) => { + if (Vt(rt)) { + const dt = rt, + Rt = dt.easing; + if ((Rt && ((We = Rt), delete dt.easing), !Ae)) + for (let Gt in dt) + if (dt[Gt].toString().indexOf("{{") >= 0) { + Ae = !0; + break; + } + } + }), + { + type: 6, + styles: pe, + easing: We, + offset: N.offset, + containsDynamicStyles: Ae, + options: null, + } + ); + } + _validateStyleAst(N, G) { + const pe = G.currentAnimateTimings; + let Ae = G.currentTime, + We = G.currentTime; + pe && We > 0 && (We -= pe.duration + pe.delay), + N.styles.forEach((rt) => { + "string" != typeof rt && + Object.keys(rt).forEach((dt) => { + if (!this._driver.validateStyleProperty(dt)) + return void G.errors.push( + `The provided animation property "${dt}" is not a supported CSS property for animations` + ); + const Rt = G.collectedStyles[G.currentQuerySelector], + Gt = Rt[dt]; + let rn = !0; + Gt && + (We != Ae && + We >= Gt.startTime && + Ae <= Gt.endTime && + (G.errors.push( + `The CSS property "${dt}" that exists between the times of "${Gt.startTime}ms" and "${Gt.endTime}ms" is also being animated in a parallel animation between the times of "${We}ms" and "${Ae}ms"` + ), + (rn = !1)), + (We = Gt.startTime)), + rn && (Rt[dt] = { startTime: We, endTime: Ae }), + G.options && + (function (we, N, G) { + const pe = N.params || {}, + Ae = _t(we); + Ae.length && + Ae.forEach((We) => { + pe.hasOwnProperty(We) || + G.push( + `Unable to resolve the local animation param ${We} in the given list of values` + ); + }); + })(rt[dt], G.options, G.errors); + }); + }); + } + visitKeyframes(N, G) { + const pe = { type: 5, styles: [], options: null }; + if (!G.currentAnimateTimings) + return ( + G.errors.push( + "keyframes() must be placed inside of a call to animate()" + ), + pe + ); + let We = 0; + const rt = []; + let dt = !1, + Rt = !1, + Gt = 0; + const rn = N.steps.map((_i) => { + const xi = this._makeStyleAst(_i, G); + let sr = + null != xi.offset + ? xi.offset + : (function (we) { + if ("string" == typeof we) return null; + let N = null; + if (Array.isArray(we)) + we.forEach((G) => { + if (Vt(G) && G.hasOwnProperty("offset")) { + const pe = G; + (N = parseFloat(pe.offset)), delete pe.offset; + } + }); + else if (Vt(we) && we.hasOwnProperty("offset")) { + const G = we; + (N = parseFloat(G.offset)), delete G.offset; + } + return N; + })(xi.styles), + Qi = 0; + return ( + null != sr && (We++, (Qi = xi.offset = sr)), + (Rt = Rt || Qi < 0 || Qi > 1), + (dt = dt || Qi < Gt), + (Gt = Qi), + rt.push(Qi), + xi + ); + }); + Rt && + G.errors.push( + "Please ensure that all keyframe offsets are between 0 and 1" + ), + dt && + G.errors.push( + "Please ensure that all keyframe offsets are in order" + ); + const pn = N.steps.length; + let Pn = 0; + We > 0 && We < pn + ? G.errors.push( + "Not all style() steps within the declared keyframes() contain offsets" + ) + : 0 == We && (Pn = 1 / (pn - 1)); + const Ln = pn - 1, + _n = G.currentTime, + Bn = G.currentAnimateTimings, + Kn = Bn.duration; + return ( + rn.forEach((_i, xi) => { + const sr = Pn > 0 ? (xi == Ln ? 1 : Pn * xi) : rt[xi], + Qi = sr * Kn; + (G.currentTime = _n + Bn.delay + Qi), + (Bn.duration = Qi), + this._validateStyleAst(_i, G), + (_i.offset = sr), + pe.styles.push(_i); + }), + pe + ); + } + visitReference(N, G) { + return { + type: 8, + animation: D(this, vt(N.animation), G), + options: Ne(N.options), + }; + } + visitAnimateChild(N, G) { + return G.depCount++, { type: 9, options: Ne(N.options) }; + } + visitAnimateRef(N, G) { + return { + type: 10, + animation: this.visitReference(N.animation, G), + options: Ne(N.options), + }; + } + visitQuery(N, G) { + const pe = G.currentQuerySelector, + Ae = N.options || {}; + G.queryCount++, (G.currentQuery = N); + const [We, rt] = (function (we) { + const N = !!we.split(/\s*,\s*/).find((G) => ":self" == G); + return ( + N && (we = we.replace(tn, "")), + (we = we + .replace(/@\*/g, $) + .replace(/@\w+/g, (G) => $ + "-" + G.substr(1)) + .replace(/:animating/g, ne)), + [we, N] + ); + })(N.selector); + (G.currentQuerySelector = pe.length ? pe + " " + We : We), + i(G.collectedStyles, G.currentQuerySelector, {}); + const dt = D(this, vt(N.animation), G); + return ( + (G.currentQuery = null), + (G.currentQuerySelector = pe), + { + type: 11, + selector: We, + limit: Ae.limit || 0, + optional: !!Ae.optional, + includeSelf: rt, + animation: dt, + originalSelector: N.selector, + options: Ne(N.options), + } + ); + } + visitStagger(N, G) { + G.currentQuery || + G.errors.push("stagger() can only be used inside of query()"); + const pe = + "full" === N.timings + ? { duration: 0, delay: 0, easing: "full" } + : Oe(N.timings, G.errors, !0); + return { + type: 12, + animation: D(this, vt(N.animation), G), + timings: pe, + options: null, + }; + } + } + class Qe { + constructor(N) { + (this.errors = N), + (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 Vt(we) { + return !Array.isArray(we) && "object" == typeof we; + } + function Ne(we) { + return ( + we + ? (we = Ye(we)).params && + (we.params = (function (we) { + return we ? Ye(we) : null; + })(we.params)) + : (we = {}), + we + ); + } + function Se(we, N, G) { + return { duration: we, delay: N, easing: G }; + } + function te(we, N, G, pe, Ae, We, rt = null, dt = !1) { + return { + type: 1, + element: we, + keyframes: N, + preStyleProps: G, + postStyleProps: pe, + duration: Ae, + delay: We, + totalTime: Ae + We, + easing: rt, + subTimeline: dt, + }; + } + class re { + constructor() { + this._map = new Map(); + } + get(N) { + return this._map.get(N) || []; + } + append(N, G) { + let pe = this._map.get(N); + pe || this._map.set(N, (pe = [])), pe.push(...G); + } + has(N) { + return this._map.has(N); + } + clear() { + this._map.clear(); + } + } + const It = new RegExp(":enter", "g"), + cn = new RegExp(":leave", "g"); + function An(we, N, G, pe, Ae, We = {}, rt = {}, dt, Rt, Gt = []) { + return new lt().buildKeyframes(we, N, G, pe, Ae, We, rt, dt, Rt, Gt); + } + class lt { + buildKeyframes(N, G, pe, Ae, We, rt, dt, Rt, Gt, rn = []) { + Gt = Gt || new re(); + const pn = new He(N, G, Gt, Ae, We, rn, []); + (pn.options = Rt), + pn.currentTimeline.setStyles([rt], null, pn.errors, Rt), + D(this, pe, pn); + const Pn = pn.timelines.filter((Ln) => Ln.containsAnimation()); + if (Pn.length && Object.keys(dt).length) { + const Ln = Pn[Pn.length - 1]; + Ln.allowOnlyTimelineStyles() || + Ln.setStyles([dt], null, pn.errors, Rt); + } + return Pn.length + ? Pn.map((Ln) => Ln.buildKeyframes()) + : [te(G, [], [], [], 0, 0, "", !1)]; + } + visitTrigger(N, G) {} + visitState(N, G) {} + visitTransition(N, G) {} + visitAnimateChild(N, G) { + const pe = G.subInstructions.get(G.element); + if (pe) { + const Ae = G.createSubContext(N.options), + We = G.currentTimeline.currentTime, + rt = this._visitSubInstructions(pe, Ae, Ae.options); + We != rt && G.transformIntoNewTimeline(rt); + } + G.previousNode = N; + } + visitAnimateRef(N, G) { + const pe = G.createSubContext(N.options); + pe.transformIntoNewTimeline(), + this.visitReference(N.animation, pe), + G.transformIntoNewTimeline(pe.currentTimeline.currentTime), + (G.previousNode = N); + } + _visitSubInstructions(N, G, pe) { + let We = G.currentTimeline.currentTime; + const rt = null != pe.duration ? ae(pe.duration) : null, + dt = null != pe.delay ? ae(pe.delay) : null; + return ( + 0 !== rt && + N.forEach((Rt) => { + const Gt = G.appendInstructionToTimeline(Rt, rt, dt); + We = Math.max(We, Gt.duration + Gt.delay); + }), + We + ); + } + visitReference(N, G) { + G.updateOptions(N.options, !0), + D(this, N.animation, G), + (G.previousNode = N); + } + visitSequence(N, G) { + const pe = G.subContextCount; + let Ae = G; + const We = N.options; + if ( + We && + (We.params || We.delay) && + ((Ae = G.createSubContext(We)), + Ae.transformIntoNewTimeline(), + null != We.delay) + ) { + 6 == Ae.previousNode.type && + (Ae.currentTimeline.snapshotCurrentStyles(), + (Ae.previousNode = ct)); + const rt = ae(We.delay); + Ae.delayNextStep(rt); + } + N.steps.length && + (N.steps.forEach((rt) => D(this, rt, Ae)), + Ae.currentTimeline.applyStylesToKeyframe(), + Ae.subContextCount > pe && Ae.transformIntoNewTimeline()), + (G.previousNode = N); + } + visitGroup(N, G) { + const pe = []; + let Ae = G.currentTimeline.currentTime; + const We = N.options && N.options.delay ? ae(N.options.delay) : 0; + N.steps.forEach((rt) => { + const dt = G.createSubContext(N.options); + We && dt.delayNextStep(We), + D(this, rt, dt), + (Ae = Math.max(Ae, dt.currentTimeline.currentTime)), + pe.push(dt.currentTimeline); + }), + pe.forEach((rt) => + G.currentTimeline.mergeTimelineCollectedStyles(rt) + ), + G.transformIntoNewTimeline(Ae), + (G.previousNode = N); + } + _visitTiming(N, G) { + if (N.dynamic) { + const pe = N.strValue; + return Oe(G.params ? At(pe, G.params, G.errors) : pe, G.errors); + } + return { duration: N.duration, delay: N.delay, easing: N.easing }; + } + visitAnimate(N, G) { + const pe = (G.currentAnimateTimings = this._visitTiming( + N.timings, + G + )), + Ae = G.currentTimeline; + pe.delay && (G.incrementTime(pe.delay), Ae.snapshotCurrentStyles()); + const We = N.style; + 5 == We.type + ? this.visitKeyframes(We, G) + : (G.incrementTime(pe.duration), + this.visitStyle(We, G), + Ae.applyStylesToKeyframe()), + (G.currentAnimateTimings = null), + (G.previousNode = N); + } + visitStyle(N, G) { + const pe = G.currentTimeline, + Ae = G.currentAnimateTimings; + !Ae && pe.getCurrentStyleProperties().length && pe.forwardFrame(); + const We = (Ae && Ae.easing) || N.easing; + N.isEmptyStep + ? pe.applyEmptyStep(We) + : pe.setStyles(N.styles, We, G.errors, G.options), + (G.previousNode = N); + } + visitKeyframes(N, G) { + const pe = G.currentAnimateTimings, + Ae = G.currentTimeline.duration, + We = pe.duration, + dt = G.createSubContext().currentTimeline; + (dt.easing = pe.easing), + N.styles.forEach((Rt) => { + dt.forwardTime((Rt.offset || 0) * We), + dt.setStyles(Rt.styles, Rt.easing, G.errors, G.options), + dt.applyStylesToKeyframe(); + }), + G.currentTimeline.mergeTimelineCollectedStyles(dt), + G.transformIntoNewTimeline(Ae + We), + (G.previousNode = N); + } + visitQuery(N, G) { + const pe = G.currentTimeline.currentTime, + Ae = N.options || {}, + We = Ae.delay ? ae(Ae.delay) : 0; + We && + (6 === G.previousNode.type || + (0 == pe && + G.currentTimeline.getCurrentStyleProperties().length)) && + (G.currentTimeline.snapshotCurrentStyles(), (G.previousNode = ct)); + let rt = pe; + const dt = G.invokeQuery( + N.selector, + N.originalSelector, + N.limit, + N.includeSelf, + !!Ae.optional, + G.errors + ); + G.currentQueryTotal = dt.length; + let Rt = null; + dt.forEach((Gt, rn) => { + G.currentQueryIndex = rn; + const pn = G.createSubContext(N.options, Gt); + We && pn.delayNextStep(We), + Gt === G.element && (Rt = pn.currentTimeline), + D(this, N.animation, pn), + pn.currentTimeline.applyStylesToKeyframe(), + (rt = Math.max(rt, pn.currentTimeline.currentTime)); + }), + (G.currentQueryIndex = 0), + (G.currentQueryTotal = 0), + G.transformIntoNewTimeline(rt), + Rt && + (G.currentTimeline.mergeTimelineCollectedStyles(Rt), + G.currentTimeline.snapshotCurrentStyles()), + (G.previousNode = N); + } + visitStagger(N, G) { + const pe = G.parentContext, + Ae = G.currentTimeline, + We = N.timings, + rt = Math.abs(We.duration), + dt = rt * (G.currentQueryTotal - 1); + let Rt = rt * G.currentQueryIndex; + switch (We.duration < 0 ? "reverse" : We.easing) { + case "reverse": + Rt = dt - Rt; + break; + case "full": + Rt = pe.currentStaggerTime; + } + const rn = G.currentTimeline; + Rt && rn.delayNextStep(Rt); + const pn = rn.currentTime; + D(this, N.animation, G), + (G.previousNode = N), + (pe.currentStaggerTime = + Ae.currentTime - + pn + + (Ae.startTime - pe.currentTimeline.startTime)); + } + } + const ct = {}; + class He { + constructor(N, G, pe, Ae, We, rt, dt, Rt) { + (this._driver = N), + (this.element = G), + (this.subInstructions = pe), + (this._enterClassName = Ae), + (this._leaveClassName = We), + (this.errors = rt), + (this.timelines = dt), + (this.parentContext = null), + (this.currentAnimateTimings = null), + (this.previousNode = ct), + (this.subContextCount = 0), + (this.options = {}), + (this.currentQueryIndex = 0), + (this.currentQueryTotal = 0), + (this.currentStaggerTime = 0), + (this.currentTimeline = Rt || new pt(this._driver, G, 0)), + dt.push(this.currentTimeline); + } + get params() { + return this.options.params; + } + updateOptions(N, G) { + if (!N) return; + const pe = N; + let Ae = this.options; + null != pe.duration && (Ae.duration = ae(pe.duration)), + null != pe.delay && (Ae.delay = ae(pe.delay)); + const We = pe.params; + if (We) { + let rt = Ae.params; + rt || (rt = this.options.params = {}), + Object.keys(We).forEach((dt) => { + (!G || !rt.hasOwnProperty(dt)) && + (rt[dt] = At(We[dt], rt, this.errors)); + }); + } + } + _copyOptions() { + const N = {}; + if (this.options) { + const G = this.options.params; + if (G) { + const pe = (N.params = {}); + Object.keys(G).forEach((Ae) => { + pe[Ae] = G[Ae]; + }); + } + } + return N; + } + createSubContext(N = null, G, pe) { + const Ae = G || this.element, + We = new He( + this._driver, + Ae, + this.subInstructions, + this._enterClassName, + this._leaveClassName, + this.errors, + this.timelines, + this.currentTimeline.fork(Ae, pe || 0) + ); + return ( + (We.previousNode = this.previousNode), + (We.currentAnimateTimings = this.currentAnimateTimings), + (We.options = this._copyOptions()), + We.updateOptions(N), + (We.currentQueryIndex = this.currentQueryIndex), + (We.currentQueryTotal = this.currentQueryTotal), + (We.parentContext = this), + this.subContextCount++, + We + ); + } + transformIntoNewTimeline(N) { + return ( + (this.previousNode = ct), + (this.currentTimeline = this.currentTimeline.fork(this.element, N)), + this.timelines.push(this.currentTimeline), + this.currentTimeline + ); + } + appendInstructionToTimeline(N, G, pe) { + const Ae = { + duration: null != G ? G : N.duration, + delay: + this.currentTimeline.currentTime + + (null != pe ? pe : 0) + + N.delay, + easing: "", + }, + We = new Ot( + this._driver, + N.element, + N.keyframes, + N.preStyleProps, + N.postStyleProps, + Ae, + N.stretchStartingKeyframe + ); + return this.timelines.push(We), Ae; + } + incrementTime(N) { + this.currentTimeline.forwardTime(this.currentTimeline.duration + N); + } + delayNextStep(N) { + N > 0 && this.currentTimeline.delayNextStep(N); + } + invokeQuery(N, G, pe, Ae, We, rt) { + let dt = []; + if ((Ae && dt.push(this.element), N.length > 0)) { + N = (N = N.replace(It, "." + this._enterClassName)).replace( + cn, + "." + this._leaveClassName + ); + let Gt = this._driver.query(this.element, N, 1 != pe); + 0 !== pe && + (Gt = + pe < 0 ? Gt.slice(Gt.length + pe, Gt.length) : Gt.slice(0, pe)), + dt.push(...Gt); + } + return ( + !We && + 0 == dt.length && + rt.push( + `\`query("${G}")\` returned zero elements. (Use \`query("${G}", { optional: true })\` if you wish to allow this.)` + ), + dt + ); + } + } + class pt { + constructor(N, G, pe, Ae) { + (this._driver = N), + (this.element = G), + (this.startTime = pe), + (this._elementTimelineStylesLookup = Ae), + (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( + G + )), + this._globalTimelineStyles || + ((this._globalTimelineStyles = this._localTimelineStyles), + this._elementTimelineStylesLookup.set( + G, + 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(N) { + const G = + 1 == this._keyframes.size && + Object.keys(this._pendingStyles).length; + this.duration || G + ? (this.forwardTime(this.currentTime + N), + G && this.snapshotCurrentStyles()) + : (this.startTime += N); + } + fork(N, G) { + return ( + this.applyStylesToKeyframe(), + new pt( + this._driver, + N, + G || 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 += 1), this._loadKeyframe(); + } + forwardTime(N) { + this.applyStylesToKeyframe(), + (this.duration = N), + this._loadKeyframe(); + } + _updateStyle(N, G) { + (this._localTimelineStyles[N] = G), + (this._globalTimelineStyles[N] = G), + (this._styleSummary[N] = { time: this.currentTime, value: G }); + } + allowOnlyTimelineStyles() { + return this._currentEmptyStepKeyframe !== this._currentKeyframe; + } + applyEmptyStep(N) { + N && (this._previousKeyframe.easing = N), + Object.keys(this._globalTimelineStyles).forEach((G) => { + (this._backFill[G] = this._globalTimelineStyles[G] || _.l3), + (this._currentKeyframe[G] = _.l3); + }), + (this._currentEmptyStepKeyframe = this._currentKeyframe); + } + setStyles(N, G, pe, Ae) { + G && (this._previousKeyframe.easing = G); + const We = (Ae && Ae.params) || {}, + rt = (function (we, N) { + const G = {}; + let pe; + return ( + we.forEach((Ae) => { + "*" === Ae + ? ((pe = pe || Object.keys(N)), + pe.forEach((We) => { + G[We] = _.l3; + })) + : gt(Ae, !1, G); + }), + G + ); + })(N, this._globalTimelineStyles); + Object.keys(rt).forEach((dt) => { + const Rt = At(rt[dt], We, pe); + (this._pendingStyles[dt] = Rt), + this._localTimelineStyles.hasOwnProperty(dt) || + (this._backFill[dt] = this._globalTimelineStyles.hasOwnProperty( + dt + ) + ? this._globalTimelineStyles[dt] + : _.l3), + this._updateStyle(dt, Rt); + }); + } + applyStylesToKeyframe() { + const N = this._pendingStyles, + G = Object.keys(N); + 0 != G.length && + ((this._pendingStyles = {}), + G.forEach((pe) => { + this._currentKeyframe[pe] = N[pe]; + }), + Object.keys(this._localTimelineStyles).forEach((pe) => { + this._currentKeyframe.hasOwnProperty(pe) || + (this._currentKeyframe[pe] = this._localTimelineStyles[pe]); + })); + } + snapshotCurrentStyles() { + Object.keys(this._localTimelineStyles).forEach((N) => { + const G = this._localTimelineStyles[N]; + (this._pendingStyles[N] = G), this._updateStyle(N, G); + }); + } + getFinalKeyframe() { + return this._keyframes.get(this.duration); + } + get properties() { + const N = []; + for (let G in this._currentKeyframe) N.push(G); + return N; + } + mergeTimelineCollectedStyles(N) { + Object.keys(N._styleSummary).forEach((G) => { + const pe = this._styleSummary[G], + Ae = N._styleSummary[G]; + (!pe || Ae.time > pe.time) && this._updateStyle(G, Ae.value); + }); + } + buildKeyframes() { + this.applyStylesToKeyframe(); + const N = new Set(), + G = new Set(), + pe = 1 === this._keyframes.size && 0 === this.duration; + let Ae = []; + this._keyframes.forEach((dt, Rt) => { + const Gt = gt(dt, !0); + Object.keys(Gt).forEach((rn) => { + const pn = Gt[rn]; + pn == _.k1 ? N.add(rn) : pn == _.l3 && G.add(rn); + }), + pe || (Gt.offset = Rt / this.duration), + Ae.push(Gt); + }); + const We = N.size ? Tt(N.values()) : [], + rt = G.size ? Tt(G.values()) : []; + if (pe) { + const dt = Ae[0], + Rt = Ye(dt); + (dt.offset = 0), (Rt.offset = 1), (Ae = [dt, Rt]); + } + return te( + this.element, + Ae, + We, + rt, + this.duration, + this.startTime, + this.easing, + !1 + ); + } + } + class Ot extends pt { + constructor(N, G, pe, Ae, We, rt, dt = !1) { + super(N, G, rt.delay), + (this.keyframes = pe), + (this.preStyleProps = Ae), + (this.postStyleProps = We), + (this._stretchStartingKeyframe = dt), + (this.timings = { + duration: rt.duration, + delay: rt.delay, + easing: rt.easing, + }); + } + containsAnimation() { + return this.keyframes.length > 1; + } + buildKeyframes() { + let N = this.keyframes, + { delay: G, duration: pe, easing: Ae } = this.timings; + if (this._stretchStartingKeyframe && G) { + const We = [], + rt = pe + G, + dt = G / rt, + Rt = gt(N[0], !1); + (Rt.offset = 0), We.push(Rt); + const Gt = gt(N[0], !1); + (Gt.offset = un(dt)), We.push(Gt); + const rn = N.length - 1; + for (let pn = 1; pn <= rn; pn++) { + let Pn = gt(N[pn], !1); + (Pn.offset = un((G + Pn.offset * pe) / rt)), We.push(Pn); + } + (pe = rt), (G = 0), (Ae = ""), (N = We); + } + return te( + this.element, + N, + this.preStyleProps, + this.postStyleProps, + pe, + G, + Ae, + !0 + ); + } + } + function un(we, N = 3) { + const G = Math.pow(10, N - 1); + return Math.round(we * G) / G; + } + class Yn {} + class Oi extends Yn { + normalizePropertyName(N, G) { + return Et(N); + } + normalizeStyleValue(N, G, pe, Ae) { + let We = ""; + const rt = pe.toString().trim(); + if (Ni[G] && 0 !== pe && "0" !== pe) + if ("number" == typeof pe) We = "px"; + else { + const dt = pe.match(/^[+-]?[\d\.]+([a-z]*)$/); + dt && + 0 == dt[1].length && + Ae.push(`Please provide a CSS unit value for ${N}:${pe}`); + } + return rt + We; + } + } + const Ni = (() => + (function (we) { + const N = {}; + return we.forEach((G) => (N[G] = !0)), N; + })( + "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 qn(we, N, G, pe, Ae, We, rt, dt, Rt, Gt, rn, pn, Pn) { + return { + type: 0, + element: we, + triggerName: N, + isRemovalTransition: Ae, + fromState: G, + fromStyles: We, + toState: pe, + toStyles: rt, + timelines: dt, + queriedElements: Rt, + preStyleProps: Gt, + postStyleProps: rn, + totalTime: pn, + errors: Pn, + }; + } + const Vi = {}; + class ci { + constructor(N, G, pe) { + (this._triggerName = N), (this.ast = G), (this._stateStyles = pe); + } + match(N, G, pe, Ae) { + return (function (we, N, G, pe, Ae) { + return we.some((We) => We(N, G, pe, Ae)); + })(this.ast.matchers, N, G, pe, Ae); + } + buildStyles(N, G, pe) { + const Ae = this._stateStyles["*"], + We = this._stateStyles[N], + rt = Ae ? Ae.buildStyles(G, pe) : {}; + return We ? We.buildStyles(G, pe) : rt; + } + build(N, G, pe, Ae, We, rt, dt, Rt, Gt, rn) { + const pn = [], + Pn = (this.ast.options && this.ast.options.params) || Vi, + _n = this.buildStyles(pe, (dt && dt.params) || Vi, pn), + Bn = (Rt && Rt.params) || Vi, + Kn = this.buildStyles(Ae, Bn, pn), + _i = new Set(), + xi = new Map(), + sr = new Map(), + Qi = "void" === Ae, + Nr = { params: Object.assign(Object.assign({}, Pn), Bn) }, + fr = rn + ? [] + : An(N, G, this.ast.animation, We, rt, _n, Kn, Nr, Gt, pn); + let Xi = 0; + if ( + (fr.forEach((zi) => { + Xi = Math.max(zi.duration + zi.delay, Xi); + }), + pn.length) + ) + return qn( + G, + this._triggerName, + pe, + Ae, + Qi, + _n, + Kn, + [], + [], + xi, + sr, + Xi, + pn + ); + fr.forEach((zi) => { + const Pr = zi.element, + ys = i(xi, Pr, {}); + zi.preStyleProps.forEach((Ur) => (ys[Ur] = !0)); + const Yi = i(sr, Pr, {}); + zi.postStyleProps.forEach((Ur) => (Yi[Ur] = !0)), + Pr !== G && _i.add(Pr); + }); + const gr = Tt(_i.values()); + return qn( + G, + this._triggerName, + pe, + Ae, + Qi, + _n, + Kn, + fr, + gr, + xi, + sr, + Xi + ); + } + } + class Ze { + constructor(N, G, pe) { + (this.styles = N), (this.defaultParams = G), (this.normalizer = pe); + } + buildStyles(N, G) { + const pe = {}, + Ae = Ye(this.defaultParams); + return ( + Object.keys(N).forEach((We) => { + const rt = N[We]; + null != rt && (Ae[We] = rt); + }), + this.styles.styles.forEach((We) => { + if ("string" != typeof We) { + const rt = We; + Object.keys(rt).forEach((dt) => { + let Rt = rt[dt]; + Rt.length > 1 && (Rt = At(Rt, Ae, G)); + const Gt = this.normalizer.normalizePropertyName(dt, G); + (Rt = this.normalizer.normalizeStyleValue(dt, Gt, Rt, G)), + (pe[Gt] = Rt); + }); + } + }), + pe + ); + } + } + class Re { + constructor(N, G, pe) { + (this.name = N), + (this.ast = G), + (this._normalizer = pe), + (this.transitionFactories = []), + (this.states = {}), + G.states.forEach((Ae) => { + this.states[Ae.name] = new Ze( + Ae.style, + (Ae.options && Ae.options.params) || {}, + pe + ); + }), + de(this.states, "true", "1"), + de(this.states, "false", "0"), + G.transitions.forEach((Ae) => { + this.transitionFactories.push(new ci(N, Ae, this.states)); + }), + (this.fallbackTransition = (function (we, N, G) { + return new ci( + we, + { + type: 1, + animation: { type: 2, steps: [], options: null }, + matchers: [(rt, dt) => !0], + options: null, + queryCount: 0, + depCount: 0, + }, + N + ); + })(N, this.states)); + } + get containsQueries() { + return this.ast.queryCount > 0; + } + matchTransition(N, G, pe, Ae) { + return ( + this.transitionFactories.find((rt) => rt.match(N, G, pe, Ae)) || + null + ); + } + matchStyles(N, G, pe) { + return this.fallbackTransition.buildStyles(N, G, pe); + } + } + function de(we, N, G) { + we.hasOwnProperty(N) + ? we.hasOwnProperty(G) || (we[G] = we[N]) + : we.hasOwnProperty(G) && (we[N] = we[G]); + } + const Pe = new re(); + class Xe { + constructor(N, G, pe) { + (this.bodyNode = N), + (this._driver = G), + (this._normalizer = pe), + (this._animations = {}), + (this._playersById = {}), + (this.players = []); + } + register(N, G) { + const pe = [], + Ae = Dt(this._driver, G, pe); + if (pe.length) + throw new Error( + `Unable to build the animation due to the following errors: ${pe.join( + "\n" + )}` + ); + this._animations[N] = Ae; + } + _buildPlayer(N, G, pe) { + const Ae = N.element, + We = u(0, this._normalizer, 0, N.keyframes, G, pe); + return this._driver.animate( + Ae, + We, + N.duration, + N.delay, + N.easing, + [], + !0 + ); + } + create(N, G, pe = {}) { + const Ae = [], + We = this._animations[N]; + let rt; + const dt = new Map(); + if ( + (We + ? ((rt = An(this._driver, G, We, Y, Z, {}, {}, pe, Pe, Ae)), + rt.forEach((rn) => { + const pn = i(dt, rn.element, {}); + rn.postStyleProps.forEach((Pn) => (pn[Pn] = null)); + })) + : (Ae.push( + "The requested animation doesn't exist or has already been destroyed" + ), + (rt = [])), + Ae.length) + ) + throw new Error( + `Unable to create the animation due to the following errors: ${Ae.join( + "\n" + )}` + ); + dt.forEach((rn, pn) => { + Object.keys(rn).forEach((Pn) => { + rn[Pn] = this._driver.computeStyle(pn, Pn, _.l3); + }); + }); + const Gt = d( + rt.map((rn) => { + const pn = dt.get(rn.element); + return this._buildPlayer(rn, {}, pn); + }) + ); + return ( + (this._playersById[N] = Gt), + Gt.onDestroy(() => this.destroy(N)), + this.players.push(Gt), + Gt + ); + } + destroy(N) { + const G = this._getPlayer(N); + G.destroy(), delete this._playersById[N]; + const pe = this.players.indexOf(G); + pe >= 0 && this.players.splice(pe, 1); + } + _getPlayer(N) { + const G = this._playersById[N]; + if (!G) + throw new Error( + `Unable to find the timeline player referenced by ${N}` + ); + return G; + } + listen(N, G, pe, Ae) { + const We = o(G, "", "", ""); + return h(this._getPlayer(N), pe, We, Ae), () => {}; + } + command(N, G, pe, Ae) { + if ("register" == pe) return void this.register(N, Ae[0]); + if ("create" == pe) return void this.create(N, G, Ae[0] || {}); + const We = this._getPlayer(N); + switch (pe) { + case "play": + We.play(); + break; + case "pause": + We.pause(); + break; + case "reset": + We.reset(); + break; + case "restart": + We.restart(); + break; + case "finish": + We.finish(); + break; + case "init": + We.init(); + break; + case "setPosition": + We.setPosition(parseFloat(Ae[0])); + break; + case "destroy": + this.destroy(N); + } + } + } + const Wt = "ng-animate-queued", + Ht = "ng-animate-disabled", + zn = [], + $n = { + namespaceId: "", + setForRemoval: !1, + setForMove: !1, + hasAnimation: !1, + removedBeforeQueried: !1, + }, + ti = { + namespaceId: "", + setForMove: !1, + setForRemoval: !1, + hasAnimation: !1, + removedBeforeQueried: !0, + }, + jn = "__ng_removed"; + class Qn { + constructor(N, G = "") { + this.namespaceId = G; + const pe = N && N.hasOwnProperty("value"); + if ( + ((this.value = null != (we = pe ? N.value : N) ? we : null), pe) + ) { + const We = Ye(N); + delete We.value, (this.options = We); + } else this.options = {}; + var we; + this.options.params || (this.options.params = {}); + } + get params() { + return this.options.params; + } + absorbOptions(N) { + const G = N.params; + if (G) { + const pe = this.options.params; + Object.keys(G).forEach((Ae) => { + null == pe[Ae] && (pe[Ae] = G[Ae]); + }); + } + } + } + const kn = "void", + Mi = new Qn(kn); + class Zi { + constructor(N, G, pe) { + (this.id = N), + (this.hostElement = G), + (this._engine = pe), + (this.players = []), + (this._triggers = {}), + (this._queue = []), + (this._elementListeners = new Map()), + (this._hostClassName = "ng-tns-" + N), + Fn(G, this._hostClassName); + } + listen(N, G, pe, Ae) { + if (!this._triggers.hasOwnProperty(G)) + throw new Error( + `Unable to listen on the animation trigger event "${pe}" because the animation trigger "${G}" doesn't exist!` + ); + if (null == pe || 0 == pe.length) + throw new Error( + `Unable to listen on the animation trigger "${G}" because the provided event is undefined!` + ); + if ("start" != (we = pe) && "done" != we) + throw new Error( + `The provided animation trigger event "${pe}" for the animation trigger "${G}" is not supported!` + ); + var we; + const We = i(this._elementListeners, N, []), + rt = { name: G, phase: pe, callback: Ae }; + We.push(rt); + const dt = i(this._engine.statesByElement, N, {}); + return ( + dt.hasOwnProperty(G) || + (Fn(N, ee), Fn(N, ee + "-" + G), (dt[G] = Mi)), + () => { + this._engine.afterFlush(() => { + const Rt = We.indexOf(rt); + Rt >= 0 && We.splice(Rt, 1), this._triggers[G] || delete dt[G]; + }); + } + ); + } + register(N, G) { + return !this._triggers[N] && ((this._triggers[N] = G), !0); + } + _getTrigger(N) { + const G = this._triggers[N]; + if (!G) + throw new Error( + `The provided animation trigger "${N}" has not been registered!` + ); + return G; + } + trigger(N, G, pe, Ae = !0) { + const We = this._getTrigger(G), + rt = new pi(this.id, G, N); + let dt = this._engine.statesByElement.get(N); + dt || + (Fn(N, ee), + Fn(N, ee + "-" + G), + this._engine.statesByElement.set(N, (dt = {}))); + let Rt = dt[G]; + const Gt = new Qn(pe, this.id); + if ( + (!(pe && pe.hasOwnProperty("value")) && + Rt && + Gt.absorbOptions(Rt.options), + (dt[G] = Gt), + Rt || (Rt = Mi), + Gt.value !== kn && Rt.value === Gt.value) + ) { + if ( + !(function (we, N) { + const G = Object.keys(we), + pe = Object.keys(N); + if (G.length != pe.length) return !1; + for (let Ae = 0; Ae < G.length; Ae++) { + const We = G[Ae]; + if (!N.hasOwnProperty(We) || we[We] !== N[We]) return !1; + } + return !0; + })(Rt.params, Gt.params) + ) { + const Bn = [], + Kn = We.matchStyles(Rt.value, Rt.params, Bn), + _i = We.matchStyles(Gt.value, Gt.params, Bn); + Bn.length + ? this._engine.reportError(Bn) + : this._engine.afterFlush(() => { + ft(N, Kn), at(N, _i); + }); + } + return; + } + const Pn = i(this._engine.playersByElement, N, []); + Pn.forEach((Bn) => { + Bn.namespaceId == this.id && + Bn.triggerName == G && + Bn.queued && + Bn.destroy(); + }); + let Ln = We.matchTransition(Rt.value, Gt.value, N, Gt.params), + _n = !1; + if (!Ln) { + if (!Ae) return; + (Ln = We.fallbackTransition), (_n = !0); + } + return ( + this._engine.totalQueuedPlayers++, + this._queue.push({ + element: N, + triggerName: G, + transition: Ln, + fromState: Rt, + toState: Gt, + player: rt, + isFallbackTransition: _n, + }), + _n || + (Fn(N, Wt), + rt.onStart(() => { + $i(N, Wt); + })), + rt.onDone(() => { + let Bn = this.players.indexOf(rt); + Bn >= 0 && this.players.splice(Bn, 1); + const Kn = this._engine.playersByElement.get(N); + if (Kn) { + let _i = Kn.indexOf(rt); + _i >= 0 && Kn.splice(_i, 1); + } + }), + this.players.push(rt), + Pn.push(rt), + rt + ); + } + deregister(N) { + delete this._triggers[N], + this._engine.statesByElement.forEach((G, pe) => { + delete G[N]; + }), + this._elementListeners.forEach((G, pe) => { + this._elementListeners.set( + pe, + G.filter((Ae) => Ae.name != N) + ); + }); + } + clearElementCache(N) { + this._engine.statesByElement.delete(N), + this._elementListeners.delete(N); + const G = this._engine.playersByElement.get(N); + G && + (G.forEach((pe) => pe.destroy()), + this._engine.playersByElement.delete(N)); + } + _signalRemovalForInnerTriggers(N, G) { + const pe = this._engine.driver.query(N, $, !0); + pe.forEach((Ae) => { + if (Ae[jn]) return; + const We = this._engine.fetchNamespacesByElement(Ae); + We.size + ? We.forEach((rt) => rt.triggerLeaveAnimation(Ae, G, !1, !0)) + : this.clearElementCache(Ae); + }), + this._engine.afterFlushAnimationsDone(() => + pe.forEach((Ae) => this.clearElementCache(Ae)) + ); + } + triggerLeaveAnimation(N, G, pe, Ae) { + const We = this._engine.statesByElement.get(N); + if (We) { + const rt = []; + if ( + (Object.keys(We).forEach((dt) => { + if (this._triggers[dt]) { + const Rt = this.trigger(N, dt, kn, Ae); + Rt && rt.push(Rt); + } + }), + rt.length) + ) + return ( + this._engine.markElementAsRemoved(this.id, N, !0, G), + pe && d(rt).onDone(() => this._engine.processLeaveNode(N)), + !0 + ); + } + return !1; + } + prepareLeaveAnimationListeners(N) { + const G = this._elementListeners.get(N), + pe = this._engine.statesByElement.get(N); + if (G && pe) { + const Ae = new Set(); + G.forEach((We) => { + const rt = We.name; + if (Ae.has(rt)) return; + Ae.add(rt); + const Rt = this._triggers[rt].fallbackTransition, + Gt = pe[rt] || Mi, + rn = new Qn(kn), + pn = new pi(this.id, rt, N); + this._engine.totalQueuedPlayers++, + this._queue.push({ + element: N, + triggerName: rt, + transition: Rt, + fromState: Gt, + toState: rn, + player: pn, + isFallbackTransition: !0, + }); + }); + } + } + removeNode(N, G) { + const pe = this._engine; + if ( + (N.childElementCount && this._signalRemovalForInnerTriggers(N, G), + this.triggerLeaveAnimation(N, G, !0)) + ) + return; + let Ae = !1; + if (pe.totalAnimations) { + const We = pe.players.length + ? pe.playersByQueriedElement.get(N) + : []; + if (We && We.length) Ae = !0; + else { + let rt = N; + for (; (rt = rt.parentNode); ) + if (pe.statesByElement.get(rt)) { + Ae = !0; + break; + } + } + } + if ((this.prepareLeaveAnimationListeners(N), Ae)) + pe.markElementAsRemoved(this.id, N, !1, G); + else { + const We = N[jn]; + (!We || We === $n) && + (pe.afterFlush(() => this.clearElementCache(N)), + pe.destroyInnerAnimations(N), + pe._onRemovalComplete(N, G)); + } + } + insertNode(N, G) { + Fn(N, this._hostClassName); + } + drainQueuedTransitions(N) { + const G = []; + return ( + this._queue.forEach((pe) => { + const Ae = pe.player; + if (Ae.destroyed) return; + const We = pe.element, + rt = this._elementListeners.get(We); + rt && + rt.forEach((dt) => { + if (dt.name == pe.triggerName) { + const Rt = o( + We, + pe.triggerName, + pe.fromState.value, + pe.toState.value + ); + (Rt._data = N), h(pe.player, dt.phase, Rt, dt.callback); + } + }), + Ae.markedForDestroy + ? this._engine.afterFlush(() => { + Ae.destroy(); + }) + : G.push(pe); + }), + (this._queue = []), + G.sort((pe, Ae) => { + const We = pe.transition.ast.depCount, + rt = Ae.transition.ast.depCount; + return 0 == We || 0 == rt + ? We - rt + : this._engine.driver.containsElement(pe.element, Ae.element) + ? 1 + : -1; + }) + ); + } + destroy(N) { + this.players.forEach((G) => G.destroy()), + this._signalRemovalForInnerTriggers(this.hostElement, N); + } + elementContainsData(N) { + let G = !1; + return ( + this._elementListeners.has(N) && (G = !0), + (G = !!this._queue.find((pe) => pe.element === N) || G), + G + ); + } + } + class Xn { + constructor(N, G, pe) { + (this.bodyNode = N), + (this.driver = G), + (this._normalizer = pe), + (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 = (Ae, We) => {}); + } + _onRemovalComplete(N, G) { + this.onRemovalComplete(N, G); + } + get queuedPlayers() { + const N = []; + return ( + this._namespaceList.forEach((G) => { + G.players.forEach((pe) => { + pe.queued && N.push(pe); + }); + }), + N + ); + } + createNamespace(N, G) { + const pe = new Zi(N, G, this); + return ( + this.bodyNode && this.driver.containsElement(this.bodyNode, G) + ? this._balanceNamespaceList(pe, G) + : (this.newHostElements.set(G, pe), this.collectEnterElement(G)), + (this._namespaceLookup[N] = pe) + ); + } + _balanceNamespaceList(N, G) { + const pe = this._namespaceList.length - 1; + if (pe >= 0) { + let Ae = !1; + for (let We = pe; We >= 0; We--) + if ( + this.driver.containsElement( + this._namespaceList[We].hostElement, + G + ) + ) { + this._namespaceList.splice(We + 1, 0, N), (Ae = !0); + break; + } + Ae || this._namespaceList.splice(0, 0, N); + } else this._namespaceList.push(N); + return this.namespacesByHostElement.set(G, N), N; + } + register(N, G) { + let pe = this._namespaceLookup[N]; + return pe || (pe = this.createNamespace(N, G)), pe; + } + registerTrigger(N, G, pe) { + let Ae = this._namespaceLookup[N]; + Ae && Ae.register(G, pe) && this.totalAnimations++; + } + destroy(N, G) { + if (!N) return; + const pe = this._fetchNamespace(N); + this.afterFlush(() => { + this.namespacesByHostElement.delete(pe.hostElement), + delete this._namespaceLookup[N]; + const Ae = this._namespaceList.indexOf(pe); + Ae >= 0 && this._namespaceList.splice(Ae, 1); + }), + this.afterFlushAnimationsDone(() => pe.destroy(G)); + } + _fetchNamespace(N) { + return this._namespaceLookup[N]; + } + fetchNamespacesByElement(N) { + const G = new Set(), + pe = this.statesByElement.get(N); + if (pe) { + const Ae = Object.keys(pe); + for (let We = 0; We < Ae.length; We++) { + const rt = pe[Ae[We]].namespaceId; + if (rt) { + const dt = this._fetchNamespace(rt); + dt && G.add(dt); + } + } + } + return G; + } + trigger(N, G, pe, Ae) { + if (tr(G)) { + const We = this._fetchNamespace(N); + if (We) return We.trigger(G, pe, Ae), !0; + } + return !1; + } + insertNode(N, G, pe, Ae) { + if (!tr(G)) return; + const We = G[jn]; + if (We && We.setForRemoval) { + (We.setForRemoval = !1), (We.setForMove = !0); + const rt = this.collectedLeaveElements.indexOf(G); + rt >= 0 && this.collectedLeaveElements.splice(rt, 1); + } + if (N) { + const rt = this._fetchNamespace(N); + rt && rt.insertNode(G, pe); + } + Ae && this.collectEnterElement(G); + } + collectEnterElement(N) { + this.collectedEnterElements.push(N); + } + markElementAsDisabled(N, G) { + G + ? this.disabledNodes.has(N) || + (this.disabledNodes.add(N), Fn(N, Ht)) + : this.disabledNodes.has(N) && + (this.disabledNodes.delete(N), $i(N, Ht)); + } + removeNode(N, G, pe, Ae) { + if (tr(G)) { + const We = N ? this._fetchNamespace(N) : null; + if ( + (We + ? We.removeNode(G, Ae) + : this.markElementAsRemoved(N, G, !1, Ae), + pe) + ) { + const rt = this.namespacesByHostElement.get(G); + rt && rt.id !== N && rt.removeNode(G, Ae); + } + } else this._onRemovalComplete(G, Ae); + } + markElementAsRemoved(N, G, pe, Ae) { + this.collectedLeaveElements.push(G), + (G[jn] = { + namespaceId: N, + setForRemoval: Ae, + hasAnimation: pe, + removedBeforeQueried: !1, + }); + } + listen(N, G, pe, Ae, We) { + return tr(G) + ? this._fetchNamespace(N).listen(G, pe, Ae, We) + : () => {}; + } + _buildInstruction(N, G, pe, Ae, We) { + return N.transition.build( + this.driver, + N.element, + N.fromState.value, + N.toState.value, + pe, + Ae, + N.fromState.options, + N.toState.options, + G, + We + ); + } + destroyInnerAnimations(N) { + let G = this.driver.query(N, $, !0); + G.forEach((pe) => this.destroyActiveAnimationsForElement(pe)), + 0 != this.playersByQueriedElement.size && + ((G = this.driver.query(N, ne, !0)), + G.forEach((pe) => + this.finishActiveQueriedAnimationOnElement(pe) + )); + } + destroyActiveAnimationsForElement(N) { + const G = this.playersByElement.get(N); + G && + G.forEach((pe) => { + pe.queued ? (pe.markedForDestroy = !0) : pe.destroy(); + }); + } + finishActiveQueriedAnimationOnElement(N) { + const G = this.playersByQueriedElement.get(N); + G && G.forEach((pe) => pe.finish()); + } + whenRenderingDone() { + return new Promise((N) => { + if (this.players.length) return d(this.players).onDone(() => N()); + N(); + }); + } + processLeaveNode(N) { + var G; + const pe = N[jn]; + if (pe && pe.setForRemoval) { + if (((N[jn] = $n), pe.namespaceId)) { + this.destroyInnerAnimations(N); + const Ae = this._fetchNamespace(pe.namespaceId); + Ae && Ae.clearElementCache(N); + } + this._onRemovalComplete(N, pe.setForRemoval); + } + (null === (G = N.classList) || void 0 === G + ? void 0 + : G.contains(Ht)) && this.markElementAsDisabled(N, !1), + this.driver.query(N, ".ng-animate-disabled", !0).forEach((Ae) => { + this.markElementAsDisabled(Ae, !1); + }); + } + flush(N = -1) { + let G = []; + if ( + (this.newHostElements.size && + (this.newHostElements.forEach((pe, Ae) => + this._balanceNamespaceList(pe, Ae) + ), + this.newHostElements.clear()), + this.totalAnimations && this.collectedEnterElements.length) + ) + for (let pe = 0; pe < this.collectedEnterElements.length; pe++) + Fn(this.collectedEnterElements[pe], "ng-star-inserted"); + if ( + this._namespaceList.length && + (this.totalQueuedPlayers || this.collectedLeaveElements.length) + ) { + const pe = []; + try { + G = this._flushAnimations(pe, N); + } finally { + for (let Ae = 0; Ae < pe.length; Ae++) pe[Ae](); + } + } else + for (let pe = 0; pe < this.collectedLeaveElements.length; pe++) + this.processLeaveNode(this.collectedLeaveElements[pe]); + if ( + ((this.totalQueuedPlayers = 0), + (this.collectedEnterElements.length = 0), + (this.collectedLeaveElements.length = 0), + this._flushFns.forEach((pe) => pe()), + (this._flushFns = []), + this._whenQuietFns.length) + ) { + const pe = this._whenQuietFns; + (this._whenQuietFns = []), + G.length + ? d(G).onDone(() => { + pe.forEach((Ae) => Ae()); + }) + : pe.forEach((Ae) => Ae()); + } + } + reportError(N) { + throw new Error( + `Unable to process animations due to the following failed trigger transitions\n ${N.join( + "\n" + )}` + ); + } + _flushAnimations(N, G) { + const pe = new re(), + Ae = [], + We = new Map(), + rt = [], + dt = new Map(), + Rt = new Map(), + Gt = new Map(), + rn = new Set(); + this.disabledNodes.forEach((mn) => { + rn.add(mn); + const Mn = this.driver.query(mn, ".ng-animate-queued", !0); + for (let En = 0; En < Mn.length; En++) rn.add(Mn[En]); + }); + const pn = this.bodyNode, + Pn = Array.from(this.statesByElement.keys()), + Ln = oi(Pn, this.collectedEnterElements), + _n = new Map(); + let Bn = 0; + Ln.forEach((mn, Mn) => { + const En = Y + Bn++; + _n.set(Mn, En), mn.forEach((li) => Fn(li, En)); + }); + const Kn = [], + _i = new Set(), + xi = new Set(); + for (let mn = 0; mn < this.collectedLeaveElements.length; mn++) { + const Mn = this.collectedLeaveElements[mn], + En = Mn[jn]; + En && + En.setForRemoval && + (Kn.push(Mn), + _i.add(Mn), + En.hasAnimation + ? this.driver + .query(Mn, ".ng-star-inserted", !0) + .forEach((li) => _i.add(li)) + : xi.add(Mn)); + } + const sr = new Map(), + Qi = oi(Pn, Array.from(_i)); + Qi.forEach((mn, Mn) => { + const En = Z + Bn++; + sr.set(Mn, En), mn.forEach((li) => Fn(li, En)); + }), + N.push(() => { + Ln.forEach((mn, Mn) => { + const En = _n.get(Mn); + mn.forEach((li) => $i(li, En)); + }), + Qi.forEach((mn, Mn) => { + const En = sr.get(Mn); + mn.forEach((li) => $i(li, En)); + }), + Kn.forEach((mn) => { + this.processLeaveNode(mn); + }); + }); + const Nr = [], + fr = []; + for (let mn = this._namespaceList.length - 1; mn >= 0; mn--) + this._namespaceList[mn].drainQueuedTransitions(G).forEach((En) => { + const li = En.player, + ii = En.element; + if ((Nr.push(li), this.collectedEnterElements.length)) { + const or = ii[jn]; + if (or && or.setForMove) return void li.destroy(); + } + const Hi = !pn || !this.driver.containsElement(pn, ii), + Zn = sr.get(ii), + dr = _n.get(ii), + Si = this._buildInstruction(En, pe, dr, Zn, Hi); + if (Si.errors && Si.errors.length) return void fr.push(Si); + if (Hi) + return ( + li.onStart(() => ft(ii, Si.fromStyles)), + li.onDestroy(() => at(ii, Si.toStyles)), + void Ae.push(li) + ); + if (En.isFallbackTransition) + return ( + li.onStart(() => ft(ii, Si.fromStyles)), + li.onDestroy(() => at(ii, Si.toStyles)), + void Ae.push(li) + ); + const Es = []; + Si.timelines.forEach((or) => { + (or.stretchStartingKeyframe = !0), + this.disabledNodes.has(or.element) || Es.push(or); + }), + (Si.timelines = Es), + pe.append(ii, Si.timelines), + rt.push({ instruction: Si, player: li, element: ii }), + Si.queriedElements.forEach((or) => i(dt, or, []).push(li)), + Si.preStyleProps.forEach((or, ar) => { + const Ir = Object.keys(or); + if (Ir.length) { + let _r = Rt.get(ar); + _r || Rt.set(ar, (_r = new Set())), + Ir.forEach((ts) => _r.add(ts)); + } + }), + Si.postStyleProps.forEach((or, ar) => { + const Ir = Object.keys(or); + let _r = Gt.get(ar); + _r || Gt.set(ar, (_r = new Set())), + Ir.forEach((ts) => _r.add(ts)); + }); + }); + if (fr.length) { + const mn = []; + fr.forEach((Mn) => { + mn.push(`@${Mn.triggerName} has failed due to:\n`), + Mn.errors.forEach((En) => mn.push(`- ${En}\n`)); + }), + Nr.forEach((Mn) => Mn.destroy()), + this.reportError(mn); + } + const Xi = new Map(), + gr = new Map(); + rt.forEach((mn) => { + const Mn = mn.element; + pe.has(Mn) && + (gr.set(Mn, Mn), + this._beforeAnimationBuild( + mn.player.namespaceId, + mn.instruction, + Xi + )); + }), + Ae.forEach((mn) => { + const Mn = mn.element; + this._getPreviousPlayers( + Mn, + !1, + mn.namespaceId, + mn.triggerName, + null + ).forEach((li) => { + i(Xi, Mn, []).push(li), li.destroy(); + }); + }); + const zi = Kn.filter((mn) => yn(mn, Rt, Gt)), + Pr = new Map(); + qi(Pr, this.driver, xi, Gt, _.l3).forEach((mn) => { + yn(mn, Rt, Gt) && zi.push(mn); + }); + const Yi = new Map(); + Ln.forEach((mn, Mn) => { + qi(Yi, this.driver, new Set(mn), Rt, _.k1); + }), + zi.forEach((mn) => { + const Mn = Pr.get(mn), + En = Yi.get(mn); + Pr.set(mn, Object.assign(Object.assign({}, Mn), En)); + }); + const Ur = [], + bs = [], + Cs = {}; + rt.forEach((mn) => { + const { element: Mn, player: En, instruction: li } = mn; + if (pe.has(Mn)) { + if (rn.has(Mn)) + return ( + En.onDestroy(() => at(Mn, li.toStyles)), + (En.disabled = !0), + En.overrideTotalTime(li.totalTime), + void Ae.push(En) + ); + let ii = Cs; + if (gr.size > 1) { + let Zn = Mn; + const dr = []; + for (; (Zn = Zn.parentNode); ) { + const Si = gr.get(Zn); + if (Si) { + ii = Si; + break; + } + dr.push(Zn); + } + dr.forEach((Si) => gr.set(Si, ii)); + } + const Hi = this._buildAnimation( + En.namespaceId, + li, + Xi, + We, + Yi, + Pr + ); + if ((En.setRealPlayer(Hi), ii === Cs)) Ur.push(En); + else { + const Zn = this.playersByElement.get(ii); + Zn && Zn.length && (En.parentPlayer = d(Zn)), Ae.push(En); + } + } else + ft(Mn, li.fromStyles), + En.onDestroy(() => at(Mn, li.toStyles)), + bs.push(En), + rn.has(Mn) && Ae.push(En); + }), + bs.forEach((mn) => { + const Mn = We.get(mn.element); + if (Mn && Mn.length) { + const En = d(Mn); + mn.setRealPlayer(En); + } + }), + Ae.forEach((mn) => { + mn.parentPlayer + ? mn.syncPlayerEvents(mn.parentPlayer) + : mn.destroy(); + }); + for (let mn = 0; mn < Kn.length; mn++) { + const Mn = Kn[mn], + En = Mn[jn]; + if (($i(Mn, Z), En && En.hasAnimation)) continue; + let li = []; + if (dt.size) { + let Hi = dt.get(Mn); + Hi && Hi.length && li.push(...Hi); + let Zn = this.driver.query(Mn, ne, !0); + for (let dr = 0; dr < Zn.length; dr++) { + let Si = dt.get(Zn[dr]); + Si && Si.length && li.push(...Si); + } + } + const ii = li.filter((Hi) => !Hi.destroyed); + ii.length ? mi(this, Mn, ii) : this.processLeaveNode(Mn); + } + return ( + (Kn.length = 0), + Ur.forEach((mn) => { + this.players.push(mn), + mn.onDone(() => { + mn.destroy(); + const Mn = this.players.indexOf(mn); + this.players.splice(Mn, 1); + }), + mn.play(); + }), + Ur + ); + } + elementContainsData(N, G) { + let pe = !1; + const Ae = G[jn]; + return ( + Ae && Ae.setForRemoval && (pe = !0), + this.playersByElement.has(G) && (pe = !0), + this.playersByQueriedElement.has(G) && (pe = !0), + this.statesByElement.has(G) && (pe = !0), + this._fetchNamespace(N).elementContainsData(G) || pe + ); + } + afterFlush(N) { + this._flushFns.push(N); + } + afterFlushAnimationsDone(N) { + this._whenQuietFns.push(N); + } + _getPreviousPlayers(N, G, pe, Ae, We) { + let rt = []; + if (G) { + const dt = this.playersByQueriedElement.get(N); + dt && (rt = dt); + } else { + const dt = this.playersByElement.get(N); + if (dt) { + const Rt = !We || We == kn; + dt.forEach((Gt) => { + Gt.queued || (!Rt && Gt.triggerName != Ae) || rt.push(Gt); + }); + } + } + return ( + (pe || Ae) && + (rt = rt.filter( + (dt) => + !( + (pe && pe != dt.namespaceId) || + (Ae && Ae != dt.triggerName) + ) + )), + rt + ); + } + _beforeAnimationBuild(N, G, pe) { + const We = G.element, + rt = G.isRemovalTransition ? void 0 : N, + dt = G.isRemovalTransition ? void 0 : G.triggerName; + for (const Rt of G.timelines) { + const Gt = Rt.element, + rn = Gt !== We, + pn = i(pe, Gt, []); + this._getPreviousPlayers(Gt, rn, rt, dt, G.toState).forEach( + (Ln) => { + const _n = Ln.getRealPlayer(); + _n.beforeDestroy && _n.beforeDestroy(), + Ln.destroy(), + pn.push(Ln); + } + ); + } + ft(We, G.fromStyles); + } + _buildAnimation(N, G, pe, Ae, We, rt) { + const dt = G.triggerName, + Rt = G.element, + Gt = [], + rn = new Set(), + pn = new Set(), + Pn = G.timelines.map((_n) => { + const Bn = _n.element; + rn.add(Bn); + const Kn = Bn[jn]; + if (Kn && Kn.removedBeforeQueried) + return new _.ZN(_n.duration, _n.delay); + const _i = Bn !== Rt, + xi = (function (we) { + const N = []; + return ur(we, N), N; + })((pe.get(Bn) || zn).map((Xi) => Xi.getRealPlayer())).filter( + (Xi) => !!Xi.element && Xi.element === Bn + ), + sr = We.get(Bn), + Qi = rt.get(Bn), + Nr = u(0, this._normalizer, 0, _n.keyframes, sr, Qi), + fr = this._buildPlayer(_n, Nr, xi); + if ((_n.subTimeline && Ae && pn.add(Bn), _i)) { + const Xi = new pi(N, dt, Bn); + Xi.setRealPlayer(fr), Gt.push(Xi); + } + return fr; + }); + Gt.forEach((_n) => { + i(this.playersByQueriedElement, _n.element, []).push(_n), + _n.onDone(() => + (function (we, N, G) { + let pe; + if (we instanceof Map) { + if (((pe = we.get(N)), pe)) { + if (pe.length) { + const Ae = pe.indexOf(G); + pe.splice(Ae, 1); + } + 0 == pe.length && we.delete(N); + } + } else if (((pe = we[N]), pe)) { + if (pe.length) { + const Ae = pe.indexOf(G); + pe.splice(Ae, 1); + } + 0 == pe.length && delete we[N]; + } + return pe; + })(this.playersByQueriedElement, _n.element, _n) + ); + }), + rn.forEach((_n) => Fn(_n, J)); + const Ln = d(Pn); + return ( + Ln.onDestroy(() => { + rn.forEach((_n) => $i(_n, J)), at(Rt, G.toStyles); + }), + pn.forEach((_n) => { + i(Ae, _n, []).push(Ln); + }), + Ln + ); + } + _buildPlayer(N, G, pe) { + return G.length > 0 + ? this.driver.animate( + N.element, + G, + N.duration, + N.delay, + N.easing, + pe + ) + : new _.ZN(N.duration, N.delay); + } + } + class pi { + constructor(N, G, pe) { + (this.namespaceId = N), + (this.triggerName = G), + (this.element = pe), + (this._player = new _.ZN()), + (this._containsRealPlayer = !1), + (this._queuedCallbacks = {}), + (this.destroyed = !1), + (this.markedForDestroy = !1), + (this.disabled = !1), + (this.queued = !0), + (this.totalTime = 0); + } + setRealPlayer(N) { + this._containsRealPlayer || + ((this._player = N), + Object.keys(this._queuedCallbacks).forEach((G) => { + this._queuedCallbacks[G].forEach((pe) => h(N, G, void 0, pe)); + }), + (this._queuedCallbacks = {}), + (this._containsRealPlayer = !0), + this.overrideTotalTime(N.totalTime), + (this.queued = !1)); + } + getRealPlayer() { + return this._player; + } + overrideTotalTime(N) { + this.totalTime = N; + } + syncPlayerEvents(N) { + const G = this._player; + G.triggerCallback && N.onStart(() => G.triggerCallback("start")), + N.onDone(() => this.finish()), + N.onDestroy(() => this.destroy()); + } + _queueEvent(N, G) { + i(this._queuedCallbacks, N, []).push(G); + } + onDone(N) { + this.queued && this._queueEvent("done", N), this._player.onDone(N); + } + onStart(N) { + this.queued && this._queueEvent("start", N), this._player.onStart(N); + } + onDestroy(N) { + this.queued && this._queueEvent("destroy", N), + this._player.onDestroy(N); + } + 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(N) { + this.queued || this._player.setPosition(N); + } + getPosition() { + return this.queued ? 0 : this._player.getPosition(); + } + triggerCallback(N) { + const G = this._player; + G.triggerCallback && G.triggerCallback(N); + } + } + function tr(we) { + return we && 1 === we.nodeType; + } + function Rn(we, N) { + const G = we.style.display; + return (we.style.display = null != N ? N : "none"), G; + } + function qi(we, N, G, pe, Ae) { + const We = []; + G.forEach((Rt) => We.push(Rn(Rt))); + const rt = []; + pe.forEach((Rt, Gt) => { + const rn = {}; + Rt.forEach((pn) => { + const Pn = (rn[pn] = N.computeStyle(Gt, pn, Ae)); + (!Pn || 0 == Pn.length) && ((Gt[jn] = ti), rt.push(Gt)); + }), + we.set(Gt, rn); + }); + let dt = 0; + return G.forEach((Rt) => Rn(Rt, We[dt++])), rt; + } + function oi(we, N) { + const G = new Map(); + if ((we.forEach((dt) => G.set(dt, [])), 0 == N.length)) return G; + const Ae = new Set(N), + We = new Map(); + function rt(dt) { + if (!dt) return 1; + let Rt = We.get(dt); + if (Rt) return Rt; + const Gt = dt.parentNode; + return ( + (Rt = G.has(Gt) ? Gt : Ae.has(Gt) ? 1 : rt(Gt)), We.set(dt, Rt), Rt + ); + } + return ( + N.forEach((dt) => { + const Rt = rt(dt); + 1 !== Rt && G.get(Rt).push(dt); + }), + G + ); + } + function Fn(we, N) { + var G; + null === (G = we.classList) || void 0 === G || G.add(N); + } + function $i(we, N) { + var G; + null === (G = we.classList) || void 0 === G || G.remove(N); + } + function mi(we, N, G) { + d(G).onDone(() => we.processLeaveNode(N)); + } + function ur(we, N) { + for (let G = 0; G < we.length; G++) { + const pe = we[G]; + pe instanceof _.ZE ? ur(pe.players, N) : N.push(pe); + } + } + function yn(we, N, G) { + const pe = G.get(we); + if (!pe) return !1; + let Ae = N.get(we); + return ( + Ae ? pe.forEach((We) => Ae.add(We)) : N.set(we, pe), G.delete(we), !0 + ); + } + class Sn { + constructor(N, G, pe) { + (this.bodyNode = N), + (this._driver = G), + (this._normalizer = pe), + (this._triggerCache = {}), + (this.onRemovalComplete = (Ae, We) => {}), + (this._transitionEngine = new Xn(N, G, pe)), + (this._timelineEngine = new Xe(N, G, pe)), + (this._transitionEngine.onRemovalComplete = (Ae, We) => + this.onRemovalComplete(Ae, We)); + } + registerTrigger(N, G, pe, Ae, We) { + const rt = N + "-" + Ae; + let dt = this._triggerCache[rt]; + if (!dt) { + const Rt = [], + Gt = Dt(this._driver, We, Rt); + if (Rt.length) + throw new Error( + `The animation trigger "${Ae}" has failed to build due to the following errors:\n - ${Rt.join( + "\n - " + )}` + ); + (dt = (function (we, N, G) { + return new Re(we, N, G); + })(Ae, Gt, this._normalizer)), + (this._triggerCache[rt] = dt); + } + this._transitionEngine.registerTrigger(G, Ae, dt); + } + register(N, G) { + this._transitionEngine.register(N, G); + } + destroy(N, G) { + this._transitionEngine.destroy(N, G); + } + onInsert(N, G, pe, Ae) { + this._transitionEngine.insertNode(N, G, pe, Ae); + } + onRemove(N, G, pe, Ae) { + this._transitionEngine.removeNode(N, G, Ae || !1, pe); + } + disableAnimations(N, G) { + this._transitionEngine.markElementAsDisabled(N, G); + } + process(N, G, pe, Ae) { + if ("@" == pe.charAt(0)) { + const [We, rt] = c(pe); + this._timelineEngine.command(We, G, rt, Ae); + } else this._transitionEngine.trigger(N, G, pe, Ae); + } + listen(N, G, pe, Ae, We) { + if ("@" == pe.charAt(0)) { + const [rt, dt] = c(pe); + return this._timelineEngine.listen(rt, G, dt, We); + } + return this._transitionEngine.listen(N, G, pe, Ae, We); + } + flush(N = -1) { + this._transitionEngine.flush(N); + } + get players() { + return this._transitionEngine.players.concat( + this._timelineEngine.players + ); + } + whenRenderingDone() { + return this._transitionEngine.whenRenderingDone(); + } + } + function Wn(we, N) { + let G = null, + pe = null; + return ( + Array.isArray(N) && N.length + ? ((G = Li(N[0])), N.length > 1 && (pe = Li(N[N.length - 1]))) + : N && (G = Li(N)), + G || pe ? new Ri(we, G, pe) : null + ); + } + let Ri = (() => { + class we { + constructor(G, pe, Ae) { + (this._element = G), + (this._startStyles = pe), + (this._endStyles = Ae), + (this._state = 0); + let We = we.initialStylesByElement.get(G); + We || we.initialStylesByElement.set(G, (We = {})), + (this._initialStyles = We); + } + start() { + this._state < 1 && + (this._startStyles && + at(this._element, this._startStyles, this._initialStyles), + (this._state = 1)); + } + finish() { + this.start(), + this._state < 2 && + (at(this._element, this._initialStyles), + this._endStyles && + (at(this._element, this._endStyles), + (this._endStyles = null)), + (this._state = 1)); + } + destroy() { + this.finish(), + this._state < 3 && + (we.initialStylesByElement.delete(this._element), + this._startStyles && + (ft(this._element, this._startStyles), + (this._endStyles = null)), + this._endStyles && + (ft(this._element, this._endStyles), + (this._endStyles = null)), + at(this._element, this._initialStyles), + (this._state = 3)); + } + } + return (we.initialStylesByElement = new WeakMap()), we; + })(); + function Li(we) { + let N = null; + const G = Object.keys(we); + for (let pe = 0; pe < G.length; pe++) { + const Ae = G[pe]; + as(Ae) && ((N = N || {}), (N[Ae] = we[Ae])); + } + return N; + } + function as(we) { + return "display" === we || "position" === we; + } + const nr = "animation", + Or = "animationend"; + class cr { + constructor(N, G, pe, Ae, We, rt, dt) { + (this._element = N), + (this._name = G), + (this._duration = pe), + (this._delay = Ae), + (this._easing = We), + (this._fillMode = rt), + (this._onDoneFn = dt), + (this._finished = !1), + (this._destroyed = !1), + (this._startTime = 0), + (this._position = 0), + (this._eventFn = (Rt) => this._handleCallback(Rt)); + } + apply() { + (function (we, N) { + const G = Hr(we, "").trim(); + let pe = 0; + G.length && + ((function (we, N) { + let G = 0; + for (let pe = 0; pe < we.length; pe++) + "," === we.charAt(pe) && G++; + return G; + })(G) + 1, + (N = `${G}, ${N}`)), + mr(we, "", N); + })( + this._element, + `${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}` + ), + Sr(this._element, this._eventFn, !1), + (this._startTime = Date.now()); + } + pause() { + $r(this._element, this._name, "paused"); + } + resume() { + $r(this._element, this._name, "running"); + } + setPosition(N) { + const G = ir(this._element, this._name); + (this._position = N * this._duration), + mr(this._element, "Delay", `-${this._position}ms`, G); + } + getPosition() { + return this._position; + } + _handleCallback(N) { + const G = N._ngTestManualTimestamp || Date.now(), + pe = 1e3 * parseFloat(N.elapsedTime.toFixed(3)); + N.animationName == this._name && + Math.max(G - this._startTime, 0) >= this._delay && + pe >= this._duration && + this.finish(); + } + finish() { + this._finished || + ((this._finished = !0), + this._onDoneFn(), + Sr(this._element, this._eventFn, !0)); + } + destroy() { + this._destroyed || + ((this._destroyed = !0), + this.finish(), + (function (we, N) { + const pe = Hr(we, "").split(","), + Ae = Cr(pe, N); + Ae >= 0 && (pe.splice(Ae, 1), mr(we, "", pe.join(","))); + })(this._element, this._name)); + } + } + function $r(we, N, G) { + mr(we, "PlayState", G, ir(we, N)); + } + function ir(we, N) { + const G = Hr(we, ""); + return G.indexOf(",") > 0 ? Cr(G.split(","), N) : Cr([G], N); + } + function Cr(we, N) { + for (let G = 0; G < we.length; G++) if (we[G].indexOf(N) >= 0) return G; + return -1; + } + function Sr(we, N, G) { + G ? we.removeEventListener(Or, N) : we.addEventListener(Or, N); + } + function mr(we, N, G, pe) { + const Ae = nr + N; + if (null != pe) { + const We = we.style[Ae]; + if (We.length) { + const rt = We.split(","); + (rt[pe] = G), (G = rt.join(",")); + } + } + we.style[Ae] = G; + } + function Hr(we, N) { + return we.style[nr + N] || ""; + } + class Rr { + constructor(N, G, pe, Ae, We, rt, dt, Rt) { + (this.element = N), + (this.keyframes = G), + (this.animationName = pe), + (this._duration = Ae), + (this._delay = We), + (this._finalStyles = dt), + (this._specialStyles = Rt), + (this._onDoneFns = []), + (this._onStartFns = []), + (this._onDestroyFns = []), + (this.currentSnapshot = {}), + (this._state = 0), + (this.easing = rt || "linear"), + (this.totalTime = Ae + We), + this._buildStyler(); + } + onStart(N) { + this._onStartFns.push(N); + } + onDone(N) { + this._onDoneFns.push(N); + } + onDestroy(N) { + this._onDestroyFns.push(N); + } + destroy() { + this.init(), + !(this._state >= 4) && + ((this._state = 4), + this._styler.destroy(), + this._flushStartFns(), + this._flushDoneFns(), + this._specialStyles && this._specialStyles.destroy(), + this._onDestroyFns.forEach((N) => N()), + (this._onDestroyFns = [])); + } + _flushDoneFns() { + this._onDoneFns.forEach((N) => N()), (this._onDoneFns = []); + } + _flushStartFns() { + this._onStartFns.forEach((N) => N()), (this._onStartFns = []); + } + finish() { + this.init(), + !(this._state >= 3) && + ((this._state = 3), + this._styler.finish(), + this._flushStartFns(), + this._specialStyles && this._specialStyles.finish(), + this._flushDoneFns()); + } + setPosition(N) { + this._styler.setPosition(N); + } + 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._state = 0), + this._styler.destroy(), + this._buildStyler(), + this._styler.apply(); + } + _buildStyler() { + this._styler = new cr( + this.element, + this.animationName, + this._duration, + this._delay, + this.easing, + "forwards", + () => this.finish() + ); + } + triggerCallback(N) { + const G = "start" == N ? this._onStartFns : this._onDoneFns; + G.forEach((pe) => pe()), (G.length = 0); + } + beforeDestroy() { + this.init(); + const N = {}; + if (this.hasStarted()) { + const G = this._state >= 3; + Object.keys(this._finalStyles).forEach((pe) => { + "offset" != pe && + (N[pe] = G ? this._finalStyles[pe] : U(this.element, pe)); + }); + } + this.currentSnapshot = N; + } + } + class Dr extends _.ZN { + constructor(N, G) { + super(), + (this.element = N), + (this._startingStyles = {}), + (this.__initialized = !1), + (this._styles = w(G)); + } + init() { + this.__initialized || + !this._startingStyles || + ((this.__initialized = !0), + Object.keys(this._styles).forEach((N) => { + this._startingStyles[N] = this.element.style[N]; + }), + super.init()); + } + play() { + !this._startingStyles || + (this.init(), + Object.keys(this._styles).forEach((N) => + this.element.style.setProperty(N, this._styles[N]) + ), + super.play()); + } + destroy() { + !this._startingStyles || + (Object.keys(this._startingStyles).forEach((N) => { + const G = this._startingStyles[N]; + G + ? this.element.style.setProperty(N, G) + : this.element.style.removeProperty(N); + }), + (this._startingStyles = null), + super.destroy()); + } + } + class Fr { + constructor() { + this._count = 0; + } + validateStyleProperty(N) { + return O(N); + } + matchesElement(N, G) { + return !1; + } + containsElement(N, G) { + return A(N, G); + } + query(N, G, pe) { + return S(N, G, pe); + } + computeStyle(N, G, pe) { + return window.getComputedStyle(N)[G]; + } + buildKeyframeElement(N, G, pe) { + pe = pe.map((dt) => w(dt)); + let Ae = `@keyframes ${G} {\n`, + We = ""; + pe.forEach((dt) => { + We = " "; + const Rt = parseFloat(dt.offset); + (Ae += `${We}${100 * Rt}% {\n`), + (We += " "), + Object.keys(dt).forEach((Gt) => { + const rn = dt[Gt]; + switch (Gt) { + case "offset": + return; + case "easing": + return void ( + rn && (Ae += `${We}animation-timing-function: ${rn};\n`) + ); + default: + return void (Ae += `${We}${Gt}: ${rn};\n`); + } + }), + (Ae += `${We}}\n`); + }), + (Ae += "}\n"); + const rt = document.createElement("style"); + return (rt.textContent = Ae), rt; + } + animate(N, G, pe, Ae, We, rt = [], dt) { + const Rt = rt.filter((Kn) => Kn instanceof Rr), + Gt = {}; + fe(pe, Ae) && + Rt.forEach((Kn) => { + let _i = Kn.currentSnapshot; + Object.keys(_i).forEach((xi) => (Gt[xi] = _i[xi])); + }); + const rn = (function (we) { + let N = {}; + return ( + we && + (Array.isArray(we) ? we : [we]).forEach((pe) => { + Object.keys(pe).forEach((Ae) => { + "offset" == Ae || "easing" == Ae || (N[Ae] = pe[Ae]); + }); + }), + N + ); + })((G = H(N, G, Gt))); + if (0 == pe) return new Dr(N, rn); + const pn = "gen_css_kf_" + this._count++, + Pn = this.buildKeyframeElement(N, pn, G); + (function (we) { + var N; + const G = + null === (N = we.getRootNode) || void 0 === N + ? void 0 + : N.call(we); + return "undefined" != typeof ShadowRoot && G instanceof ShadowRoot + ? G + : document.head; + })(N).appendChild(Pn); + const _n = Wn(N, G), + Bn = new Rr(N, G, pn, pe, Ae, We, rn, _n); + return ( + Bn.onDestroy(() => { + var we; + (we = Pn).parentNode.removeChild(we); + }), + Bn + ); + } + } + class si { + constructor(N, G, pe, Ae) { + (this.element = N), + (this.keyframes = G), + (this.options = pe), + (this._specialStyles = Ae), + (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 = pe.duration), + (this._delay = pe.delay || 0), + (this.time = this._duration + this._delay); + } + _onFinish() { + this._finished || + ((this._finished = !0), + this._onDoneFns.forEach((N) => N()), + (this._onDoneFns = [])); + } + init() { + this._buildPlayer(), this._preparePlayerBeforeStart(); + } + _buildPlayer() { + if (this._initialized) return; + this._initialized = !0; + const N = this.keyframes; + (this.domPlayer = this._triggerWebAnimation( + this.element, + N, + this.options + )), + (this._finalKeyframe = N.length ? N[N.length - 1] : {}), + this.domPlayer.addEventListener("finish", () => this._onFinish()); + } + _preparePlayerBeforeStart() { + this._delay ? this._resetDomPlayerState() : this.domPlayer.pause(); + } + _triggerWebAnimation(N, G, pe) { + return N.animate(G, pe); + } + onStart(N) { + this._onStartFns.push(N); + } + onDone(N) { + this._onDoneFns.push(N); + } + onDestroy(N) { + this._onDestroyFns.push(N); + } + play() { + this._buildPlayer(), + this.hasStarted() || + (this._onStartFns.forEach((N) => N()), + (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((N) => N()), + (this._onDestroyFns = [])); + } + setPosition(N) { + void 0 === this.domPlayer && this.init(), + (this.domPlayer.currentTime = N * this.time); + } + getPosition() { + return this.domPlayer.currentTime / this.time; + } + get totalTime() { + return this._delay + this._duration; + } + beforeDestroy() { + const N = {}; + if (this.hasStarted()) { + const G = this._finalKeyframe; + Object.keys(G).forEach((pe) => { + "offset" != pe && + (N[pe] = this._finished ? G[pe] : U(this.element, pe)); + }); + } + this.currentSnapshot = N; + } + triggerCallback(N) { + const G = "start" == N ? this._onStartFns : this._onDoneFns; + G.forEach((pe) => pe()), (G.length = 0); + } + } + class zr { + constructor() { + (this._isNativeImpl = /\{\s*\[native\s+code\]\s*\}/.test( + be().toString() + )), + (this._cssKeyframesDriver = new Fr()); + } + validateStyleProperty(N) { + return O(N); + } + matchesElement(N, G) { + return !1; + } + containsElement(N, G) { + return A(N, G); + } + query(N, G, pe) { + return S(N, G, pe); + } + computeStyle(N, G, pe) { + return window.getComputedStyle(N)[G]; + } + overrideWebAnimationsSupport(N) { + this._isNativeImpl = N; + } + animate(N, G, pe, Ae, We, rt = [], dt) { + if (!dt && !this._isNativeImpl) + return this._cssKeyframesDriver.animate(N, G, pe, Ae, We, rt); + const rn = { + duration: pe, + delay: Ae, + fill: 0 == Ae ? "both" : "forwards", + }; + We && (rn.easing = We); + const pn = {}, + Pn = rt.filter((_n) => _n instanceof si); + fe(pe, Ae) && + Pn.forEach((_n) => { + let Bn = _n.currentSnapshot; + Object.keys(Bn).forEach((Kn) => (pn[Kn] = Bn[Kn])); + }); + const Ln = Wn(N, (G = H(N, (G = G.map((_n) => gt(_n, !1))), pn))); + return new si(N, G, rn, Ln); + } + } + function be() { + return (m() && Element.prototype.animate) || {}; + } + var Q = p(9808); + let k = (() => { + class we extends _._j { + constructor(G, pe) { + super(), + (this._nextAnimationId = 0), + (this._renderer = G.createRenderer(pe.body, { + id: "0", + encapsulation: n.ViewEncapsulation.None, + styles: [], + data: { animation: [] }, + })); + } + build(G) { + const pe = this._nextAnimationId.toString(); + this._nextAnimationId++; + const Ae = Array.isArray(G) ? (0, _.vP)(G) : G; + return ( + nt(this._renderer, null, pe, "register", [Ae]), + new V(pe, this._renderer) + ); + } + } + return ( + (we.ɵfac = function (G) { + return new (G || we)( + n.ɵɵinject(n.RendererFactory2), + n.ɵɵinject(Q.DOCUMENT) + ); + }), + (we.ɵprov = n.ɵɵdefineInjectable({ token: we, factory: we.ɵfac })), + we + ); + })(); + class V extends _.LC { + constructor(N, G) { + super(), (this._id = N), (this._renderer = G); + } + create(N, G) { + return new ve(this._id, N, G || {}, this._renderer); + } + } + class ve { + constructor(N, G, pe, Ae) { + (this.id = N), + (this.element = G), + (this._renderer = Ae), + (this.parentPlayer = null), + (this._started = !1), + (this.totalTime = 0), + this._command("create", pe); + } + _listen(N, G) { + return this._renderer.listen(this.element, `@@${this.id}:${N}`, G); + } + _command(N, ...G) { + return nt(this._renderer, this.element, this.id, N, G); + } + onDone(N) { + this._listen("done", N); + } + onStart(N) { + this._listen("start", N); + } + onDestroy(N) { + this._listen("destroy", N); + } + 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"), (this._started = !1); + } + setPosition(N) { + this._command("setPosition", N); + } + getPosition() { + var N, G; + return null !== + (G = + null === (N = this._renderer.engine.players[+this.id]) || + void 0 === N + ? void 0 + : N.getPosition()) && void 0 !== G + ? G + : 0; + } + } + function nt(we, N, G, pe, Ae) { + return we.setProperty(N, `@@${G}:${pe}`, Ae); + } + const nn = "@.disabled"; + let In = (() => { + class we { + constructor(G, pe, Ae) { + (this.delegate = G), + (this.engine = pe), + (this._zone = Ae), + (this._currentId = 0), + (this._microtaskId = 1), + (this._animationCallbacksBuffer = []), + (this._rendererCache = new Map()), + (this._cdRecurDepth = 0), + (this.promise = Promise.resolve(0)), + (pe.onRemovalComplete = (We, rt) => { + const dt = null == rt ? void 0 : rt.parentNode(We); + dt && rt.removeChild(dt, We); + }); + } + createRenderer(G, pe) { + const We = this.delegate.createRenderer(G, pe); + if (!(G && pe && pe.data && pe.data.animation)) { + let rn = this._rendererCache.get(We); + return ( + rn || + ((rn = new ni("", We, this.engine)), + this._rendererCache.set(We, rn)), + rn + ); + } + const rt = pe.id, + dt = pe.id + "-" + this._currentId; + this._currentId++, this.engine.register(dt, G); + const Rt = (rn) => { + Array.isArray(rn) + ? rn.forEach(Rt) + : this.engine.registerTrigger(rt, dt, G, rn.name, rn); + }; + return ( + pe.data.animation.forEach(Rt), new di(this, dt, We, this.engine) + ); + } + begin() { + this._cdRecurDepth++, this.delegate.begin && this.delegate.begin(); + } + _scheduleCountTask() { + this.promise.then(() => { + this._microtaskId++; + }); + } + scheduleListenerCallback(G, pe, Ae) { + G >= 0 && G < this._microtaskId + ? this._zone.run(() => pe(Ae)) + : (0 == this._animationCallbacksBuffer.length && + Promise.resolve(null).then(() => { + this._zone.run(() => { + this._animationCallbacksBuffer.forEach((We) => { + const [rt, dt] = We; + rt(dt); + }), + (this._animationCallbacksBuffer = []); + }); + }), + this._animationCallbacksBuffer.push([pe, Ae])); + } + 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(); + } + } + return ( + (we.ɵfac = function (G) { + return new (G || we)( + n.ɵɵinject(n.RendererFactory2), + n.ɵɵinject(Sn), + n.ɵɵinject(n.NgZone) + ); + }), + (we.ɵprov = n.ɵɵdefineInjectable({ token: we, factory: we.ɵfac })), + we + ); + })(); + class ni { + constructor(N, G, pe) { + (this.namespaceId = N), + (this.delegate = G), + (this.engine = pe), + (this.destroyNode = this.delegate.destroyNode + ? (Ae) => G.destroyNode(Ae) + : null); + } + get data() { + return this.delegate.data; + } + destroy() { + this.engine.destroy(this.namespaceId, this.delegate), + this.delegate.destroy(); + } + createElement(N, G) { + return this.delegate.createElement(N, G); + } + createComment(N) { + return this.delegate.createComment(N); + } + createText(N) { + return this.delegate.createText(N); + } + appendChild(N, G) { + this.delegate.appendChild(N, G), + this.engine.onInsert(this.namespaceId, G, N, !1); + } + insertBefore(N, G, pe, Ae = !0) { + this.delegate.insertBefore(N, G, pe), + this.engine.onInsert(this.namespaceId, G, N, Ae); + } + removeChild(N, G, pe) { + this.engine.onRemove(this.namespaceId, G, this.delegate, pe); + } + selectRootElement(N, G) { + return this.delegate.selectRootElement(N, G); + } + parentNode(N) { + return this.delegate.parentNode(N); + } + nextSibling(N) { + return this.delegate.nextSibling(N); + } + setAttribute(N, G, pe, Ae) { + this.delegate.setAttribute(N, G, pe, Ae); + } + removeAttribute(N, G, pe) { + this.delegate.removeAttribute(N, G, pe); + } + addClass(N, G) { + this.delegate.addClass(N, G); + } + removeClass(N, G) { + this.delegate.removeClass(N, G); + } + setStyle(N, G, pe, Ae) { + this.delegate.setStyle(N, G, pe, Ae); + } + removeStyle(N, G, pe) { + this.delegate.removeStyle(N, G, pe); + } + setProperty(N, G, pe) { + "@" == G.charAt(0) && G == nn + ? this.disableAnimations(N, !!pe) + : this.delegate.setProperty(N, G, pe); + } + setValue(N, G) { + this.delegate.setValue(N, G); + } + listen(N, G, pe) { + return this.delegate.listen(N, G, pe); + } + disableAnimations(N, G) { + this.engine.disableAnimations(N, G); + } + } + class di extends ni { + constructor(N, G, pe, Ae) { + super(G, pe, Ae), (this.factory = N), (this.namespaceId = G); + } + setProperty(N, G, pe) { + "@" == G.charAt(0) + ? "." == G.charAt(1) && G == nn + ? this.disableAnimations(N, (pe = void 0 === pe || !!pe)) + : this.engine.process(this.namespaceId, N, G.substr(1), pe) + : this.delegate.setProperty(N, G, pe); + } + listen(N, G, pe) { + if ("@" == G.charAt(0)) { + const Ae = (function (we) { + switch (we) { + case "body": + return document.body; + case "document": + return document; + case "window": + return window; + default: + return we; + } + })(N); + let We = G.substr(1), + rt = ""; + return ( + "@" != We.charAt(0) && + ([We, rt] = (function (we) { + const N = we.indexOf("."); + return [we.substring(0, N), we.substr(N + 1)]; + })(We)), + this.engine.listen(this.namespaceId, Ae, We, rt, (dt) => { + this.factory.scheduleListenerCallback(dt._data || -1, pe, dt); + }) + ); + } + return this.delegate.listen(N, G, pe); + } + } + let Ei = (() => { + class we extends Sn { + constructor(G, pe, Ae) { + super(G.body, pe, Ae); + } + ngOnDestroy() { + this.flush(); + } + } + return ( + (we.ɵfac = function (G) { + return new (G || we)( + n.ɵɵinject(Q.DOCUMENT), + n.ɵɵinject(C), + n.ɵɵinject(Yn) + ); + }), + (we.ɵprov = n.ɵɵdefineInjectable({ token: we, factory: we.ɵfac })), + we + ); + })(); + const rr = new n.InjectionToken("AnimationModuleType"), + xr = [ + { provide: _._j, useClass: k }, + { + provide: Yn, + useFactory: function () { + return new Oi(); + }, + }, + { provide: Sn, useClass: Ei }, + { + provide: n.RendererFactory2, + useFactory: function (we, N, G) { + return new In(we, N, G); + }, + deps: [f.ɵDomRendererFactory2, Sn, n.NgZone], + }, + ], + cs = [ + { + provide: C, + useFactory: function () { + return "function" == typeof be() ? new zr() : new Fr(); + }, + }, + { provide: rr, useValue: "BrowserAnimations" }, + ...xr, + ], + es = [ + { provide: C, useClass: I }, + { provide: rr, useValue: "NoopAnimations" }, + ...xr, + ]; + let ds = (() => { + class we { + static withConfig(G) { + return { ngModule: we, providers: G.disableAnimations ? es : cs }; + } + } + return ( + (we.ɵfac = function (G) { + return new (G || we)(); + }), + (we.ɵmod = n.ɵɵdefineNgModule({ type: we })), + (we.ɵinj = n.ɵɵdefineInjector({ + providers: cs, + imports: [f.BrowserModule], + })), + we + ); + })(), + Bs = (() => { + class we {} + return ( + (we.ɵfac = function (G) { + return new (G || we)(); + }), + (we.ɵmod = n.ɵɵdefineNgModule({ type: we })), + (we.ɵinj = n.ɵɵdefineInjector({ + providers: es, + imports: [f.BrowserModule], + })), + we + ); + })(); + }, + 2313: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + ɵgetDOM: () => n.ɵgetDOM, + BrowserModule: () => Tt, + BrowserTransferStateModule: () => mt, + By: () => Vt, + DomSanitizer: () => It, + EVENT_MANAGER_PLUGINS: () => g, + EventManager: () => b, + HAMMER_GESTURE_CONFIG: () => Se, + HAMMER_LOADER: () => te, + HammerGestureConfig: () => re, + HammerModule: () => ze, + Meta: () => Et, + Title: () => H, + TransferState: () => Lt, + VERSION: () => An, + disableDebugTools: () => Dt, + enableDebugTools: () => tn, + makeStateKey: () => xt, + platformBrowser: () => _t, + ɵBrowserDomAdapter: () => m, + ɵBrowserGetTestability: () => c, + ɵDomEventsPlugin: () => Oe, + ɵDomRendererFactory2: () => ee, + ɵDomSanitizerImpl: () => cn, + ɵDomSharedStylesHost: () => T, + ɵHammerGesturesPlugin: () => Me, + ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS: () => ot, + ɵKeyEventsPlugin: () => tt, + ɵNAMESPACE_URIS: () => M, + ɵSharedStylesHost: () => x, + ɵTRANSITION_ID: () => r, + ɵescapeHtml: () => Kt, + ɵflattenStyles: () => ie, + ɵinitDomAdapter: () => ft, + ɵshimContentAttribute: () => L, + ɵshimHostAttribute: () => F, + }); + var n = p(9808), + f = p(5e3); + class _ extends n.ɵDomAdapter { + constructor() { + super(...arguments), (this.supportsDOMEvents = !0); + } + } + class m extends _ { + static makeCurrent() { + (0, n.ɵsetRootDomAdapter)(new m()); + } + onAndCancel(ct, He, pt) { + return ( + ct.addEventListener(He, pt, !1), + () => { + ct.removeEventListener(He, pt, !1); + } + ); + } + dispatchEvent(ct, He) { + ct.dispatchEvent(He); + } + remove(ct) { + ct.parentNode && ct.parentNode.removeChild(ct); + } + createElement(ct, He) { + return (He = He || this.getDefaultDocument()).createElement(ct); + } + createHtmlDocument() { + return document.implementation.createHTMLDocument("fakeTitle"); + } + getDefaultDocument() { + return document; + } + isElementNode(ct) { + return ct.nodeType === Node.ELEMENT_NODE; + } + isShadowRoot(ct) { + return ct instanceof DocumentFragment; + } + getGlobalEventTarget(ct, He) { + return "window" === He + ? window + : "document" === He + ? ct + : "body" === He + ? ct.body + : null; + } + getBaseHref(ct) { + const He = + ((s = s || document.querySelector("base")), + s ? s.getAttribute("href") : null); + return null == He + ? null + : (function (lt) { + (u = u || document.createElement("a")), + u.setAttribute("href", lt); + const ct = u.pathname; + return "/" === ct.charAt(0) ? ct : `/${ct}`; + })(He); + } + resetBaseElement() { + s = null; + } + getUserAgent() { + return window.navigator.userAgent; + } + getCookie(ct) { + return (0, n.ɵparseCookieValue)(document.cookie, ct); + } + } + let u, + s = null; + const r = new f.InjectionToken("TRANSITION_ID"), + i = [ + { + provide: f.APP_INITIALIZER, + useFactory: function (lt, ct, He) { + return () => { + He.get(f.ApplicationInitStatus).donePromise.then(() => { + const pt = (0, n.ɵgetDOM)(), + Ot = ct.querySelectorAll(`style[ng-transition="${lt}"]`); + for (let un = 0; un < Ot.length; un++) pt.remove(Ot[un]); + }); + }; + }, + deps: [r, n.DOCUMENT, f.Injector], + multi: !0, + }, + ]; + class c { + static init() { + (0, f.setTestabilityGetter)(new c()); + } + addToWindow(ct) { + (f.ɵglobal.getAngularTestability = (pt, Ot = !0) => { + const un = ct.findTestabilityInTree(pt, Ot); + if (null == un) + throw new Error("Could not find testability for element."); + return un; + }), + (f.ɵglobal.getAllAngularTestabilities = () => + ct.getAllTestabilities()), + (f.ɵglobal.getAllAngularRootElements = () => + ct.getAllRootElements()), + f.ɵglobal.frameworkStabilizers || + (f.ɵglobal.frameworkStabilizers = []), + f.ɵglobal.frameworkStabilizers.push((pt) => { + const Ot = f.ɵglobal.getAllAngularTestabilities(); + let un = Ot.length, + on = !1; + const On = function (Yn) { + (on = on || Yn), un--, 0 == un && pt(on); + }; + Ot.forEach(function (Yn) { + Yn.whenStable(On); + }); + }); + } + findTestabilityInTree(ct, He, pt) { + if (null == He) return null; + const Ot = ct.getTestability(He); + return null != Ot + ? Ot + : pt + ? (0, n.ɵgetDOM)().isShadowRoot(He) + ? this.findTestabilityInTree(ct, He.host, !0) + : this.findTestabilityInTree(ct, He.parentElement, !0) + : null; + } + } + let l = (() => { + class lt { + build() { + return new XMLHttpRequest(); + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(); + const g = new f.InjectionToken("EventManagerPlugins"); + let b = (() => { + class lt { + constructor(He, pt) { + (this._zone = pt), + (this._eventNameToPlugin = new Map()), + He.forEach((Ot) => (Ot.manager = this)), + (this._plugins = He.slice().reverse()); + } + addEventListener(He, pt, Ot) { + return this._findPluginFor(pt).addEventListener(He, pt, Ot); + } + addGlobalEventListener(He, pt, Ot) { + return this._findPluginFor(pt).addGlobalEventListener(He, pt, Ot); + } + getZone() { + return this._zone; + } + _findPluginFor(He) { + const pt = this._eventNameToPlugin.get(He); + if (pt) return pt; + const Ot = this._plugins; + for (let un = 0; un < Ot.length; un++) { + const on = Ot[un]; + if (on.supports(He)) + return this._eventNameToPlugin.set(He, on), on; + } + throw new Error(`No event manager plugin found for event ${He}`); + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(f.ɵɵinject(g), f.ɵɵinject(f.NgZone)); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(); + class y { + constructor(ct) { + this._doc = ct; + } + addGlobalEventListener(ct, He, pt) { + const Ot = (0, n.ɵgetDOM)().getGlobalEventTarget(this._doc, ct); + if (!Ot) + throw new Error(`Unsupported event target ${Ot} for event ${He}`); + return this.addEventListener(Ot, He, pt); + } + } + let x = (() => { + class lt { + constructor() { + this._stylesSet = new Set(); + } + addStyles(He) { + const pt = new Set(); + He.forEach((Ot) => { + this._stylesSet.has(Ot) || + (this._stylesSet.add(Ot), pt.add(Ot)); + }), + this.onStylesAdded(pt); + } + onStylesAdded(He) {} + getAllStyles() { + return Array.from(this._stylesSet); + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(), + T = (() => { + class lt extends x { + constructor(He) { + super(), + (this._doc = He), + (this._hostNodes = new Map()), + this._hostNodes.set(He.head, []); + } + _addStylesToHost(He, pt, Ot) { + He.forEach((un) => { + const on = this._doc.createElement("style"); + (on.textContent = un), Ot.push(pt.appendChild(on)); + }); + } + addHost(He) { + const pt = []; + this._addStylesToHost(this._stylesSet, He, pt), + this._hostNodes.set(He, pt); + } + removeHost(He) { + const pt = this._hostNodes.get(He); + pt && pt.forEach(O), this._hostNodes.delete(He); + } + onStylesAdded(He) { + this._hostNodes.forEach((pt, Ot) => { + this._addStylesToHost(He, Ot, pt); + }); + } + ngOnDestroy() { + this._hostNodes.forEach((He) => He.forEach(O)); + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(f.ɵɵinject(n.DOCUMENT)); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(); + function O(lt) { + (0, n.ɵgetDOM)().remove(lt); + } + const M = { + 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/", + }, + A = /%COMP%/g, + w = "%COMP%", + I = `_nghost-${w}`, + C = `_ngcontent-${w}`; + function L(lt) { + return C.replace(A, lt); + } + function F(lt) { + return I.replace(A, lt); + } + function ie(lt, ct, He) { + for (let pt = 0; pt < ct.length; pt++) { + let Ot = ct[pt]; + Array.isArray(Ot) + ? ie(lt, Ot, He) + : ((Ot = Ot.replace(A, lt)), He.push(Ot)); + } + return He; + } + function Y(lt) { + return (ct) => { + if ("__ngUnwrap__" === ct) return lt; + !1 === lt(ct) && (ct.preventDefault(), (ct.returnValue = !1)); + }; + } + let ee = (() => { + class lt { + constructor(He, pt, Ot) { + (this.eventManager = He), + (this.sharedStylesHost = pt), + (this.appId = Ot), + (this.rendererByCompId = new Map()), + (this.defaultRenderer = new $(He)); + } + createRenderer(He, pt) { + if (!He || !pt) return this.defaultRenderer; + switch (pt.encapsulation) { + case f.ViewEncapsulation.Emulated: { + let Ot = this.rendererByCompId.get(pt.id); + return ( + Ot || + ((Ot = new ae( + this.eventManager, + this.sharedStylesHost, + pt, + this.appId + )), + this.rendererByCompId.set(pt.id, Ot)), + Ot.applyToHost(He), + Ot + ); + } + case 1: + case f.ViewEncapsulation.ShadowDom: + return new le(this.eventManager, this.sharedStylesHost, He, pt); + default: + if (!this.rendererByCompId.has(pt.id)) { + const Ot = ie(pt.id, pt.styles, []); + this.sharedStylesHost.addStyles(Ot), + this.rendererByCompId.set(pt.id, this.defaultRenderer); + } + return this.defaultRenderer; + } + } + begin() {} + end() {} + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)( + f.ɵɵinject(b), + f.ɵɵinject(T), + f.ɵɵinject(f.APP_ID) + ); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(); + class $ { + constructor(ct) { + (this.eventManager = ct), + (this.data = Object.create(null)), + (this.destroyNode = null); + } + destroy() {} + createElement(ct, He) { + return He + ? document.createElementNS(M[He] || He, ct) + : document.createElement(ct); + } + createComment(ct) { + return document.createComment(ct); + } + createText(ct) { + return document.createTextNode(ct); + } + appendChild(ct, He) { + ct.appendChild(He); + } + insertBefore(ct, He, pt) { + ct && ct.insertBefore(He, pt); + } + removeChild(ct, He) { + ct && ct.removeChild(He); + } + selectRootElement(ct, He) { + let pt = "string" == typeof ct ? document.querySelector(ct) : ct; + if (!pt) + throw new Error(`The selector "${ct}" did not match any elements`); + return He || (pt.textContent = ""), pt; + } + parentNode(ct) { + return ct.parentNode; + } + nextSibling(ct) { + return ct.nextSibling; + } + setAttribute(ct, He, pt, Ot) { + if (Ot) { + He = Ot + ":" + He; + const un = M[Ot]; + un ? ct.setAttributeNS(un, He, pt) : ct.setAttribute(He, pt); + } else ct.setAttribute(He, pt); + } + removeAttribute(ct, He, pt) { + if (pt) { + const Ot = M[pt]; + Ot + ? ct.removeAttributeNS(Ot, He) + : ct.removeAttribute(`${pt}:${He}`); + } else ct.removeAttribute(He); + } + addClass(ct, He) { + ct.classList.add(He); + } + removeClass(ct, He) { + ct.classList.remove(He); + } + setStyle(ct, He, pt, Ot) { + Ot & + (f.RendererStyleFlags2.DashCase | f.RendererStyleFlags2.Important) + ? ct.style.setProperty( + He, + pt, + Ot & f.RendererStyleFlags2.Important ? "important" : "" + ) + : (ct.style[He] = pt); + } + removeStyle(ct, He, pt) { + pt & f.RendererStyleFlags2.DashCase + ? ct.style.removeProperty(He) + : (ct.style[He] = ""); + } + setProperty(ct, He, pt) { + ct[He] = pt; + } + setValue(ct, He) { + ct.nodeValue = He; + } + listen(ct, He, pt) { + return "string" == typeof ct + ? this.eventManager.addGlobalEventListener(ct, He, Y(pt)) + : this.eventManager.addEventListener(ct, He, Y(pt)); + } + } + class ae extends $ { + constructor(ct, He, pt, Ot) { + super(ct), (this.component = pt); + const un = ie(Ot + "-" + pt.id, pt.styles, []); + He.addStyles(un), + (this.contentAttr = L(Ot + "-" + pt.id)), + (this.hostAttr = F(Ot + "-" + pt.id)); + } + applyToHost(ct) { + super.setAttribute(ct, this.hostAttr, ""); + } + createElement(ct, He) { + const pt = super.createElement(ct, He); + return super.setAttribute(pt, this.contentAttr, ""), pt; + } + } + class le extends $ { + constructor(ct, He, pt, Ot) { + super(ct), + (this.sharedStylesHost = He), + (this.hostEl = pt), + (this.shadowRoot = pt.attachShadow({ mode: "open" })), + this.sharedStylesHost.addHost(this.shadowRoot); + const un = ie(Ot.id, Ot.styles, []); + for (let on = 0; on < un.length; on++) { + const On = document.createElement("style"); + (On.textContent = un[on]), this.shadowRoot.appendChild(On); + } + } + nodeOrShadowRoot(ct) { + return ct === this.hostEl ? this.shadowRoot : ct; + } + destroy() { + this.sharedStylesHost.removeHost(this.shadowRoot); + } + appendChild(ct, He) { + return super.appendChild(this.nodeOrShadowRoot(ct), He); + } + insertBefore(ct, He, pt) { + return super.insertBefore(this.nodeOrShadowRoot(ct), He, pt); + } + removeChild(ct, He) { + return super.removeChild(this.nodeOrShadowRoot(ct), He); + } + parentNode(ct) { + return this.nodeOrShadowRoot( + super.parentNode(this.nodeOrShadowRoot(ct)) + ); + } + } + let Oe = (() => { + class lt extends y { + constructor(He) { + super(He); + } + supports(He) { + return !0; + } + addEventListener(He, pt, Ot) { + return ( + He.addEventListener(pt, Ot, !1), + () => this.removeEventListener(He, pt, Ot) + ); + } + removeEventListener(He, pt, Ot) { + return He.removeEventListener(pt, Ot); + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(f.ɵɵinject(n.DOCUMENT)); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(); + const Le = ["alt", "control", "meta", "shift"], + Je = { + "\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", + }, + gt = { + 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", + }, + Ue = { + alt: (lt) => lt.altKey, + control: (lt) => lt.ctrlKey, + meta: (lt) => lt.metaKey, + shift: (lt) => lt.shiftKey, + }; + let tt = (() => { + class lt extends y { + constructor(He) { + super(He); + } + supports(He) { + return null != lt.parseEventName(He); + } + addEventListener(He, pt, Ot) { + const un = lt.parseEventName(pt), + on = lt.eventCallback(un.fullKey, Ot, this.manager.getZone()); + return this.manager + .getZone() + .runOutsideAngular(() => + (0, n.ɵgetDOM)().onAndCancel(He, un.domEventName, on) + ); + } + static parseEventName(He) { + const pt = He.toLowerCase().split("."), + Ot = pt.shift(); + if (0 === pt.length || ("keydown" !== Ot && "keyup" !== Ot)) + return null; + const un = lt._normalizeKey(pt.pop()); + let on = ""; + if ( + (Le.forEach((Yn) => { + const ji = pt.indexOf(Yn); + ji > -1 && (pt.splice(ji, 1), (on += Yn + ".")); + }), + (on += un), + 0 != pt.length || 0 === un.length) + ) + return null; + const On = {}; + return (On.domEventName = Ot), (On.fullKey = on), On; + } + static getEventFullKey(He) { + let pt = "", + Ot = (function (lt) { + let ct = lt.key; + if (null == ct) { + if (((ct = lt.keyIdentifier), null == ct)) + return "Unidentified"; + ct.startsWith("U+") && + ((ct = String.fromCharCode(parseInt(ct.substring(2), 16))), + 3 === lt.location && + gt.hasOwnProperty(ct) && + (ct = gt[ct])); + } + return Je[ct] || ct; + })(He); + return ( + (Ot = Ot.toLowerCase()), + " " === Ot ? (Ot = "space") : "." === Ot && (Ot = "dot"), + Le.forEach((un) => { + un != Ot && Ue[un](He) && (pt += un + "."); + }), + (pt += Ot), + pt + ); + } + static eventCallback(He, pt, Ot) { + return (un) => { + lt.getEventFullKey(un) === He && Ot.runGuarded(() => pt(un)); + }; + } + static _normalizeKey(He) { + return "esc" === He ? "escape" : He; + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(f.ɵɵinject(n.DOCUMENT)); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(); + function ft() { + m.makeCurrent(), c.init(); + } + const ot = [ + { provide: f.PLATFORM_ID, useValue: n.ɵPLATFORM_BROWSER_ID }, + { provide: f.PLATFORM_INITIALIZER, useValue: ft, multi: !0 }, + { + provide: n.DOCUMENT, + useFactory: function () { + return (0, f.ɵsetDocument)(document), document; + }, + deps: [], + }, + ], + _t = (0, f.createPlatformFactory)(f.platformCore, "browser", ot), + At = [ + { provide: f.ɵINJECTOR_SCOPE, useValue: "root" }, + { + provide: f.ErrorHandler, + useFactory: function () { + return new f.ErrorHandler(); + }, + deps: [], + }, + { + provide: g, + useClass: Oe, + multi: !0, + deps: [n.DOCUMENT, f.NgZone, f.PLATFORM_ID], + }, + { provide: g, useClass: tt, multi: !0, deps: [n.DOCUMENT] }, + { provide: ee, useClass: ee, deps: [b, T, f.APP_ID] }, + { provide: f.RendererFactory2, useExisting: ee }, + { provide: x, useExisting: T }, + { provide: T, useClass: T, deps: [n.DOCUMENT] }, + { provide: f.Testability, useClass: f.Testability, deps: [f.NgZone] }, + { provide: b, useClass: b, deps: [g, f.NgZone] }, + { provide: n.XhrFactory, useClass: l, deps: [] }, + ]; + let Tt = (() => { + class lt { + constructor(He) { + if (He) + 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(He) { + return { + ngModule: lt, + providers: [ + { provide: f.APP_ID, useValue: He.appId }, + { provide: r, useExisting: f.APP_ID }, + i, + ], + }; + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(f.ɵɵinject(lt, 12)); + }), + (lt.ɵmod = f.ɵɵdefineNgModule({ type: lt })), + (lt.ɵinj = f.ɵɵdefineInjector({ + providers: At, + imports: [n.CommonModule, f.ApplicationModule], + })), + lt + ); + })(), + Et = (() => { + class lt { + constructor(He) { + (this._doc = He), (this._dom = (0, n.ɵgetDOM)()); + } + addTag(He, pt = !1) { + return He ? this._getOrCreateElement(He, pt) : null; + } + addTags(He, pt = !1) { + return He + ? He.reduce( + (Ot, un) => ( + un && Ot.push(this._getOrCreateElement(un, pt)), Ot + ), + [] + ) + : []; + } + getTag(He) { + return (He && this._doc.querySelector(`meta[${He}]`)) || null; + } + getTags(He) { + if (!He) return []; + const pt = this._doc.querySelectorAll(`meta[${He}]`); + return pt ? [].slice.call(pt) : []; + } + updateTag(He, pt) { + if (!He) return null; + pt = pt || this._parseSelector(He); + const Ot = this.getTag(pt); + return Ot + ? this._setMetaElementAttributes(He, Ot) + : this._getOrCreateElement(He, !0); + } + removeTag(He) { + this.removeTagElement(this.getTag(He)); + } + removeTagElement(He) { + He && this._dom.remove(He); + } + _getOrCreateElement(He, pt = !1) { + if (!pt) { + const on = this._parseSelector(He), + On = this.getTags(on).filter((Yn) => + this._containsAttributes(He, Yn) + )[0]; + if (void 0 !== On) return On; + } + const Ot = this._dom.createElement("meta"); + return ( + this._setMetaElementAttributes(He, Ot), + this._doc.getElementsByTagName("head")[0].appendChild(Ot), + Ot + ); + } + _setMetaElementAttributes(He, pt) { + return ( + Object.keys(He).forEach((Ot) => + pt.setAttribute(this._getMetaKeyMap(Ot), He[Ot]) + ), + pt + ); + } + _parseSelector(He) { + const pt = He.name ? "name" : "property"; + return `${pt}="${He[pt]}"`; + } + _containsAttributes(He, pt) { + return Object.keys(He).every( + (Ot) => pt.getAttribute(this._getMetaKeyMap(Ot)) === He[Ot] + ); + } + _getMetaKeyMap(He) { + return Ee[He] || He; + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(f.ɵɵinject(n.DOCUMENT)); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ + token: lt, + factory: function (He) { + let pt = null; + return ( + (pt = He ? new He() : new Et((0, f.ɵɵinject)(n.DOCUMENT))), pt + ); + }, + providedIn: "root", + })), + lt + ); + })(); + const Ee = { httpEquiv: "http-equiv" }; + let H = (() => { + class lt { + constructor(He) { + this._doc = He; + } + getTitle() { + return this._doc.title; + } + setTitle(He) { + this._doc.title = He || ""; + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(f.ɵɵinject(n.DOCUMENT)); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ + token: lt, + factory: function (He) { + let pt = null; + return ( + (pt = He ? new He() : new H((0, f.ɵɵinject)(n.DOCUMENT))), pt + ); + }, + providedIn: "root", + })), + lt + ); + })(); + function Be(lt, ct) { + ("undefined" != typeof COMPILED && COMPILED) || + ((f.ɵglobal.ng = f.ɵglobal.ng || {})[lt] = ct); + } + const $e = ("undefined" != typeof window && window) || {}; + class st { + constructor(ct, He) { + (this.msPerTick = ct), (this.numTicks = He); + } + } + class ut { + constructor(ct) { + this.appRef = ct.injector.get(f.ApplicationRef); + } + timeChangeDetection(ct) { + const He = ct && ct.record, + pt = "Change Detection", + Ot = null != $e.console.profile; + He && Ot && $e.console.profile(pt); + const un = St(); + let on = 0; + for (; on < 5 || St() - un < 500; ) this.appRef.tick(), on++; + const On = St(); + He && Ot && $e.console.profileEnd(pt); + const Yn = (On - un) / on; + return ( + $e.console.log(`ran ${on} change detection cycles`), + $e.console.log(`${Yn.toFixed(2)} ms per check`), + new st(Yn, on) + ); + } + } + function St() { + return $e.performance && $e.performance.now + ? $e.performance.now() + : new Date().getTime(); + } + const Xt = "profiler"; + function tn(lt) { + return Be(Xt, new ut(lt)), lt; + } + function Dt() { + Be(Xt, null); + } + function Kt(lt) { + const ct = { + "&": "&a;", + '"': "&q;", + "'": "&s;", + "<": "&l;", + ">": "&g;", + }; + return lt.replace(/[&"'<>]/g, (He) => ct[He]); + } + function xt(lt) { + return lt; + } + let Lt = (() => { + class lt { + constructor() { + (this.store = {}), (this.onSerializeCallbacks = {}); + } + static init(He) { + const pt = new lt(); + return (pt.store = He), pt; + } + get(He, pt) { + return void 0 !== this.store[He] ? this.store[He] : pt; + } + set(He, pt) { + this.store[He] = pt; + } + remove(He) { + delete this.store[He]; + } + hasKey(He) { + return this.store.hasOwnProperty(He); + } + onSerialize(He, pt) { + this.onSerializeCallbacks[He] = pt; + } + toJson() { + for (const He in this.onSerializeCallbacks) + if (this.onSerializeCallbacks.hasOwnProperty(He)) + try { + this.store[He] = this.onSerializeCallbacks[He](); + } catch (pt) { + console.warn("Exception in onSerialize callback: ", pt); + } + return JSON.stringify(this.store); + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(); + function Qe(lt, ct) { + const He = lt.getElementById(ct + "-state"); + let pt = {}; + if (He && He.textContent) + try { + pt = JSON.parse( + (function (lt) { + const ct = { + "&a;": "&", + "&q;": '"', + "&s;": "'", + "&l;": "<", + "&g;": ">", + }; + return lt.replace(/&[^;]+;/g, (He) => ct[He]); + })(He.textContent) + ); + } catch (Ot) { + console.warn( + "Exception while restoring TransferState for app " + ct, + Ot + ); + } + return Lt.init(pt); + } + let mt = (() => { + class lt {} + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(); + }), + (lt.ɵmod = f.ɵɵdefineNgModule({ type: lt })), + (lt.ɵinj = f.ɵɵdefineInjector({ + providers: [ + { provide: Lt, useFactory: Qe, deps: [n.DOCUMENT, f.APP_ID] }, + ], + })), + lt + ); + })(); + class Vt { + static all() { + return () => !0; + } + static css(ct) { + return (He) => + null != He.nativeElement && + (function (lt, ct) { + return ( + !!(0, n.ɵgetDOM)().isElementNode(lt) && + ((lt.matches && lt.matches(ct)) || + (lt.msMatchesSelector && lt.msMatchesSelector(ct)) || + (lt.webkitMatchesSelector && lt.webkitMatchesSelector(ct))) + ); + })(He.nativeElement, ct); + } + static directive(ct) { + return (He) => -1 !== He.providerTokens.indexOf(ct); + } + } + const Ne = { + 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, + doubletap: !0, + }, + Se = new f.InjectionToken("HammerGestureConfig"), + te = new f.InjectionToken("HammerLoader"); + let re = (() => { + class lt { + constructor() { + (this.events = []), (this.overrides = {}); + } + buildHammer(He) { + const pt = new Hammer(He, this.options); + pt.get("pinch").set({ enable: !0 }), + pt.get("rotate").set({ enable: !0 }); + for (const Ot in this.overrides) + pt.get(Ot).set(this.overrides[Ot]); + return pt; + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(), + Me = (() => { + class lt extends y { + constructor(He, pt, Ot, un) { + super(He), + (this._config = pt), + (this.console = Ot), + (this.loader = un), + (this._loaderPromise = null); + } + supports(He) { + return !( + (!Ne.hasOwnProperty(He.toLowerCase()) && + !this.isCustomEvent(He)) || + (!window.Hammer && !this.loader) + ); + } + addEventListener(He, pt, Ot) { + const un = this.manager.getZone(); + if (((pt = pt.toLowerCase()), !window.Hammer && this.loader)) { + this._loaderPromise = this._loaderPromise || this.loader(); + let on = !1, + On = () => { + on = !0; + }; + return ( + this._loaderPromise + .then(() => { + window.Hammer + ? on || (On = this.addEventListener(He, pt, Ot)) + : (On = () => {}); + }) + .catch(() => { + On = () => {}; + }), + () => { + On(); + } + ); + } + return un.runOutsideAngular(() => { + const on = this._config.buildHammer(He), + On = function (Yn) { + un.runGuarded(function () { + Ot(Yn); + }); + }; + return ( + on.on(pt, On), + () => { + on.off(pt, On), + "function" == typeof on.destroy && on.destroy(); + } + ); + }); + } + isCustomEvent(He) { + return this._config.events.indexOf(He) > -1; + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)( + f.ɵɵinject(n.DOCUMENT), + f.ɵɵinject(Se), + f.ɵɵinject(f.ɵConsole), + f.ɵɵinject(te, 8) + ); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ token: lt, factory: lt.ɵfac })), + lt + ); + })(), + ze = (() => { + class lt {} + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(); + }), + (lt.ɵmod = f.ɵɵdefineNgModule({ type: lt })), + (lt.ɵinj = f.ɵɵdefineInjector({ + providers: [ + { + provide: g, + useClass: Me, + multi: !0, + deps: [n.DOCUMENT, Se, f.ɵConsole, [new f.Optional(), te]], + }, + { provide: Se, useClass: re, deps: [] }, + ], + })), + lt + ); + })(), + It = (() => { + class lt {} + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ + token: lt, + factory: function (He) { + let pt = null; + return (pt = He ? new (He || lt)() : f.ɵɵinject(cn)), pt; + }, + providedIn: "root", + })), + lt + ); + })(), + cn = (() => { + class lt extends It { + constructor(He) { + super(), (this._doc = He); + } + sanitize(He, pt) { + if (null == pt) return null; + switch (He) { + case f.SecurityContext.NONE: + return pt; + case f.SecurityContext.HTML: + return (0, f.ɵallowSanitizationBypassAndThrow)(pt, "HTML") + ? (0, f.ɵunwrapSafeValue)(pt) + : (0, f.ɵ_sanitizeHtml)(this._doc, String(pt)).toString(); + case f.SecurityContext.STYLE: + return (0, f.ɵallowSanitizationBypassAndThrow)(pt, "Style") + ? (0, f.ɵunwrapSafeValue)(pt) + : pt; + case f.SecurityContext.SCRIPT: + if ((0, f.ɵallowSanitizationBypassAndThrow)(pt, "Script")) + return (0, f.ɵunwrapSafeValue)(pt); + throw new Error("unsafe value used in a script context"); + case f.SecurityContext.URL: + return ( + (0, f.ɵgetSanitizationBypassType)(pt), + (0, f.ɵallowSanitizationBypassAndThrow)(pt, "URL") + ? (0, f.ɵunwrapSafeValue)(pt) + : (0, f.ɵ_sanitizeUrl)(String(pt)) + ); + case f.SecurityContext.RESOURCE_URL: + if ( + (0, f.ɵallowSanitizationBypassAndThrow)(pt, "ResourceURL") + ) + return (0, f.ɵunwrapSafeValue)(pt); + throw new Error( + "unsafe value used in a resource URL context (see https://g.co/ng/security#xss)" + ); + default: + throw new Error( + `Unexpected SecurityContext ${He} (see https://g.co/ng/security#xss)` + ); + } + } + bypassSecurityTrustHtml(He) { + return (0, f.ɵbypassSanitizationTrustHtml)(He); + } + bypassSecurityTrustStyle(He) { + return (0, f.ɵbypassSanitizationTrustStyle)(He); + } + bypassSecurityTrustScript(He) { + return (0, f.ɵbypassSanitizationTrustScript)(He); + } + bypassSecurityTrustUrl(He) { + return (0, f.ɵbypassSanitizationTrustUrl)(He); + } + bypassSecurityTrustResourceUrl(He) { + return (0, f.ɵbypassSanitizationTrustResourceUrl)(He); + } + } + return ( + (lt.ɵfac = function (He) { + return new (He || lt)(f.ɵɵinject(n.DOCUMENT)); + }), + (lt.ɵprov = f.ɵɵdefineInjectable({ + token: lt, + factory: function (He) { + let pt = null; + return ( + (pt = He + ? new He() + : (function (lt) { + return new cn(lt.get(n.DOCUMENT)); + })(f.ɵɵinject(f.Injector))), + pt + ); + }, + providedIn: "root", + })), + lt + ); + })(); + const An = new f.Version("13.1.1"); + }, + 4202: (ye, j, p) => { + "use strict"; + p.r(j), + p.d(j, { + ActivatedRoute: () => B, + ActivatedRouteSnapshot: () => Xe, + ActivationEnd: () => ft, + ActivationStart: () => at, + BaseRouteReuseStrategy: () => Xi, + ChildActivationEnd: () => tt, + ChildActivationStart: () => Ue, + ChildrenOutletContexts: () => hr, + DefaultUrlSerializer: () => te, + GuardsCheckEnd: () => Oe, + GuardsCheckStart: () => le, + NavigationCancel: () => J, + NavigationEnd: () => $, + NavigationError: () => ne, + NavigationStart: () => ee, + NoPreloading: () => ar, + OutletContext: () => $r, + PRIMARY_OUTLET: () => yt, + PreloadAllModules: () => or, + PreloadingStrategy: () => ws, + ROUTER_CONFIGURATION: () => Br, + ROUTER_INITIALIZER: () => ln, + ROUTES: () => zi, + ResolveEnd: () => Ye, + ResolveStart: () => Le, + RouteConfigLoadEnd: () => gt, + RouteConfigLoadStart: () => Je, + RouteReuseStrategy: () => fr, + Router: () => En, + RouterEvent: () => Z, + RouterLink: () => Hi, + RouterLinkActive: () => Si, + RouterLinkWithHref: () => Zn, + RouterModule: () => rs, + RouterOutlet: () => qr, + RouterPreloader: () => Ir, + RouterState: () => Ze, + RouterStateSnapshot: () => Wt, + RoutesRecognized: () => ae, + Scroll: () => vt, + UrlHandlingStrategy: () => ys, + UrlSegment: () => mt, + UrlSegmentGroup: () => Qe, + UrlSerializer: () => Se, + UrlTree: () => Lt, + VERSION: () => Ki, + convertToParamMap: () => _t, + provideRoutes: () => Ss, + ɵEmptyOutletComponent: () => Cr, + ɵROUTER_PROVIDERS: () => qs, + ɵassignExtraOptionsToRouter: () => z, + ɵflatten: () => D, + }); + var n = p(5e3), + f = p(5254), + _ = p(1086), + m = p(591), + s = p(6053), + d = p(6498), + u = p(4450), + h = p(1961), + r = p(8514), + o = p(8896), + i = p(1762), + c = p(8929), + l = p(4850), + g = p(7545), + b = p(2986), + y = p(1059), + x = p(2014), + T = p(2198), + O = p(7221), + M = p(1406), + A = p(8127), + S = p(7224), + w = p(1709), + I = p(2868), + C = p(2821), + L = p(4327), + F = p(537), + ie = p(9146), + Y = p(9808); + class Z { + constructor(oe, q) { + (this.id = oe), (this.url = q); + } + } + class ee extends Z { + constructor(oe, q, Ce = "imperative", Te = null) { + super(oe, q), + (this.navigationTrigger = Ce), + (this.restoredState = Te); + } + toString() { + return `NavigationStart(id: ${this.id}, url: '${this.url}')`; + } + } + class $ extends Z { + constructor(oe, q, Ce) { + super(oe, q), (this.urlAfterRedirects = Ce); + } + toString() { + return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`; + } + } + class J extends Z { + constructor(oe, q, Ce) { + super(oe, q), (this.reason = Ce); + } + toString() { + return `NavigationCancel(id: ${this.id}, url: '${this.url}')`; + } + } + class ne extends Z { + constructor(oe, q, Ce) { + super(oe, q), (this.error = Ce); + } + toString() { + return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`; + } + } + class ae extends Z { + constructor(oe, q, Ce, Te) { + super(oe, q), (this.urlAfterRedirects = Ce), (this.state = Te); + } + toString() { + return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`; + } + } + class le extends Z { + constructor(oe, q, Ce, Te) { + super(oe, q), (this.urlAfterRedirects = Ce), (this.state = Te); + } + toString() { + return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`; + } + } + class Oe extends Z { + constructor(oe, q, Ce, Te, Ve) { + super(oe, q), + (this.urlAfterRedirects = Ce), + (this.state = Te), + (this.shouldActivate = Ve); + } + toString() { + return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`; + } + } + class Le extends Z { + constructor(oe, q, Ce, Te) { + super(oe, q), (this.urlAfterRedirects = Ce), (this.state = Te); + } + toString() { + return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`; + } + } + class Ye extends Z { + constructor(oe, q, Ce, Te) { + super(oe, q), (this.urlAfterRedirects = Ce), (this.state = Te); + } + toString() { + return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`; + } + } + class Je { + constructor(oe) { + this.route = oe; + } + toString() { + return `RouteConfigLoadStart(path: ${this.route.path})`; + } + } + class gt { + constructor(oe) { + this.route = oe; + } + toString() { + return `RouteConfigLoadEnd(path: ${this.route.path})`; + } + } + class Ue { + constructor(oe) { + this.snapshot = oe; + } + toString() { + return `ChildActivationStart(path: '${ + (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || "" + }')`; + } + } + class tt { + constructor(oe) { + this.snapshot = oe; + } + toString() { + return `ChildActivationEnd(path: '${ + (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || "" + }')`; + } + } + class at { + constructor(oe) { + this.snapshot = oe; + } + toString() { + return `ActivationStart(path: '${ + (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || "" + }')`; + } + } + class ft { + constructor(oe) { + this.snapshot = oe; + } + toString() { + return `ActivationEnd(path: '${ + (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || "" + }')`; + } + } + class vt { + constructor(oe, q, Ce) { + (this.routerEvent = oe), (this.position = q), (this.anchor = Ce); + } + toString() { + return `Scroll(anchor: '${this.anchor}', position: '${ + this.position ? `${this.position[0]}, ${this.position[1]}` : null + }')`; + } + } + const yt = "primary"; + class ot { + constructor(oe) { + this.params = oe || {}; + } + has(oe) { + return Object.prototype.hasOwnProperty.call(this.params, oe); + } + get(oe) { + if (this.has(oe)) { + const q = this.params[oe]; + return Array.isArray(q) ? q[0] : q; + } + return null; + } + getAll(oe) { + if (this.has(oe)) { + const q = this.params[oe]; + return Array.isArray(q) ? q : [q]; + } + return []; + } + get keys() { + return Object.keys(this.params); + } + } + function _t(me) { + return new ot(me); + } + const At = "ngNavigationCancelingError"; + function Tt(me) { + const oe = Error("NavigationCancelingError: " + me); + return (oe[At] = !0), oe; + } + function Et(me, oe, q) { + const Ce = q.path.split("/"); + if ( + Ce.length > me.length || + ("full" === q.pathMatch && + (oe.hasChildren() || Ce.length < me.length)) + ) + return null; + const Te = {}; + for (let Ve = 0; Ve < Ce.length; Ve++) { + const it = Ce[Ve], + bt = me[Ve]; + if (it.startsWith(":")) Te[it.substring(1)] = bt; + else if (it !== bt.path) return null; + } + return { consumed: me.slice(0, Ce.length), posParams: Te }; + } + function fe(me, oe) { + const q = me ? Object.keys(me) : void 0, + Ce = oe ? Object.keys(oe) : void 0; + if (!q || !Ce || q.length != Ce.length) return !1; + let Te; + for (let Ve = 0; Ve < q.length; Ve++) + if (((Te = q[Ve]), !H(me[Te], oe[Te]))) return !1; + return !0; + } + function H(me, oe) { + if (Array.isArray(me) && Array.isArray(oe)) { + if (me.length !== oe.length) return !1; + const q = [...me].sort(), + Ce = [...oe].sort(); + return q.every((Te, Ve) => Ce[Ve] === Te); + } + return me === oe; + } + function D(me) { + return Array.prototype.concat.apply([], me); + } + function U(me) { + return me.length > 0 ? me[me.length - 1] : null; + } + function _e(me, oe) { + for (const q in me) me.hasOwnProperty(q) && oe(me[q], q); + } + function Be(me) { + return (0, n.ɵisObservable)(me) + ? me + : (0, n.ɵisPromise)(me) + ? (0, f.D)(Promise.resolve(me)) + : (0, _.of)(me); + } + const st = { + exact: function tn(me, oe, q) { + if ( + !qt(me.segments, oe.segments) || + !xt(me.segments, oe.segments, q) || + me.numberOfChildren !== oe.numberOfChildren + ) + return !1; + for (const Ce in oe.children) + if (!me.children[Ce] || !tn(me.children[Ce], oe.children[Ce], q)) + return !1; + return !0; + }, + subset: Kt, + }, + ut = { + exact: function (me, oe) { + return fe(me, oe); + }, + subset: function (me, oe) { + return ( + Object.keys(oe).length <= Object.keys(me).length && + Object.keys(oe).every((q) => H(me[q], oe[q])) + ); + }, + ignored: () => !0, + }; + function St(me, oe, q) { + return ( + st[q.paths](me.root, oe.root, q.matrixParams) && + ut[q.queryParams](me.queryParams, oe.queryParams) && + !("exact" === q.fragment && me.fragment !== oe.fragment) + ); + } + function Kt(me, oe, q) { + return et(me, oe, oe.segments, q); + } + function et(me, oe, q, Ce) { + if (me.segments.length > q.length) { + const Te = me.segments.slice(0, q.length); + return !(!qt(Te, q) || oe.hasChildren() || !xt(Te, q, Ce)); + } + if (me.segments.length === q.length) { + if (!qt(me.segments, q) || !xt(me.segments, q, Ce)) return !1; + for (const Te in oe.children) + if (!me.children[Te] || !Kt(me.children[Te], oe.children[Te], Ce)) + return !1; + return !0; + } + { + const Te = q.slice(0, me.segments.length), + Ve = q.slice(me.segments.length); + return ( + !!( + qt(me.segments, Te) && + xt(me.segments, Te, Ce) && + me.children[yt] + ) && et(me.children[yt], oe, Ve, Ce) + ); + } + } + function xt(me, oe, q) { + return oe.every((Ce, Te) => ut[q](me[Te].parameters, Ce.parameters)); + } + class Lt { + constructor(oe, q, Ce) { + (this.root = oe), (this.queryParams = q), (this.fragment = Ce); + } + get queryParamMap() { + return ( + this._queryParamMap || (this._queryParamMap = _t(this.queryParams)), + this._queryParamMap + ); + } + toString() { + return re.serialize(this); + } + } + class Qe { + constructor(oe, q) { + (this.segments = oe), + (this.children = q), + (this.parent = null), + _e(q, (Ce, Te) => (Ce.parent = this)); + } + hasChildren() { + return this.numberOfChildren > 0; + } + get numberOfChildren() { + return Object.keys(this.children).length; + } + toString() { + return Me(this); + } + } + class mt { + constructor(oe, q) { + (this.path = oe), (this.parameters = q); + } + get parameterMap() { + return ( + this._parameterMap || (this._parameterMap = _t(this.parameters)), + this._parameterMap + ); + } + toString() { + return He(this); + } + } + function qt(me, oe) { + return ( + me.length === oe.length && me.every((q, Ce) => q.path === oe[Ce].path) + ); + } + class Se {} + class te { + parse(oe) { + const q = new Ni(oe); + return new Lt( + q.parseRootSegment(), + q.parseQueryParams(), + q.parseFragment() + ); + } + serialize(oe) { + const q = `/${ze(oe.root, !0)}`, + Ce = (function (me) { + const oe = Object.keys(me) + .map((q) => { + const Ce = me[q]; + return Array.isArray(Ce) + ? Ce.map((Te) => `${Qt(q)}=${Qt(Te)}`).join("&") + : `${Qt(q)}=${Qt(Ce)}`; + }) + .filter((q) => !!q); + return oe.length ? `?${oe.join("&")}` : ""; + })(oe.queryParams); + var me; + return `${q}${Ce}${ + "string" == typeof oe.fragment + ? `#${((me = oe.fragment), encodeURI(me))}` + : "" + }`; + } + } + const re = new te(); + function Me(me) { + return me.segments.map((oe) => He(oe)).join("/"); + } + function ze(me, oe) { + if (!me.hasChildren()) return Me(me); + if (oe) { + const q = me.children[yt] ? ze(me.children[yt], !1) : "", + Ce = []; + return ( + _e(me.children, (Te, Ve) => { + Ve !== yt && Ce.push(`${Ve}:${ze(Te, !1)}`); + }), + Ce.length > 0 ? `${q}(${Ce.join("//")})` : q + ); + } + { + const q = (function (me, oe) { + let q = []; + return ( + _e(me.children, (Ce, Te) => { + Te === yt && (q = q.concat(oe(Ce, Te))); + }), + _e(me.children, (Ce, Te) => { + Te !== yt && (q = q.concat(oe(Ce, Te))); + }), + q + ); + })(me, (Ce, Te) => + Te === yt ? [ze(me.children[yt], !1)] : [`${Te}:${ze(Ce, !1)}`] + ); + return 1 === Object.keys(me.children).length && + null != me.children[yt] + ? `${Me(me)}/${q[0]}` + : `${Me(me)}/(${q.join("//")})`; + } + } + function It(me) { + return encodeURIComponent(me) + .replace(/%40/g, "@") + .replace(/%3A/gi, ":") + .replace(/%24/g, "$") + .replace(/%2C/gi, ","); + } + function Qt(me) { + return It(me).replace(/%3B/gi, ";"); + } + function An(me) { + return It(me) + .replace(/\(/g, "%28") + .replace(/\)/g, "%29") + .replace(/%26/gi, "&"); + } + function lt(me) { + return decodeURIComponent(me); + } + function ct(me) { + return lt(me.replace(/\+/g, "%20")); + } + function He(me) { + return `${An(me.path)}${(function (me) { + return Object.keys(me) + .map((oe) => `;${An(oe)}=${An(me[oe])}`) + .join(""); + })(me.parameters)}`; + } + const un = /^[^\/()?;=#]+/; + function on(me) { + const oe = me.match(un); + return oe ? oe[0] : ""; + } + const On = /^[^=?&#]+/, + ji = /^[^&#]+/; + class Ni { + constructor(oe) { + (this.url = oe), (this.remaining = oe); + } + parseRootSegment() { + return ( + this.consumeOptional("/"), + "" === this.remaining || + this.peekStartsWith("?") || + this.peekStartsWith("#") + ? new Qe([], {}) + : new Qe([], this.parseChildren()) + ); + } + parseQueryParams() { + const oe = {}; + if (this.consumeOptional("?")) + do { + this.parseQueryParam(oe); + } while (this.consumeOptional("&")); + return oe; + } + parseFragment() { + return this.consumeOptional("#") + ? decodeURIComponent(this.remaining) + : null; + } + parseChildren() { + if ("" === this.remaining) return {}; + this.consumeOptional("/"); + const oe = []; + for ( + this.peekStartsWith("(") || oe.push(this.parseSegment()); + this.peekStartsWith("/") && + !this.peekStartsWith("//") && + !this.peekStartsWith("/("); + + ) + this.capture("/"), oe.push(this.parseSegment()); + let q = {}; + this.peekStartsWith("/(") && + (this.capture("/"), (q = this.parseParens(!0))); + let Ce = {}; + return ( + this.peekStartsWith("(") && (Ce = this.parseParens(!1)), + (oe.length > 0 || Object.keys(q).length > 0) && + (Ce[yt] = new Qe(oe, q)), + Ce + ); + } + parseSegment() { + const oe = on(this.remaining); + if ("" === oe && this.peekStartsWith(";")) + throw new Error( + `Empty path url segment cannot have parameters: '${this.remaining}'.` + ); + return this.capture(oe), new mt(lt(oe), this.parseMatrixParams()); + } + parseMatrixParams() { + const oe = {}; + for (; this.consumeOptional(";"); ) this.parseParam(oe); + return oe; + } + parseParam(oe) { + const q = on(this.remaining); + if (!q) return; + this.capture(q); + let Ce = ""; + if (this.consumeOptional("=")) { + const Te = on(this.remaining); + Te && ((Ce = Te), this.capture(Ce)); + } + oe[lt(q)] = lt(Ce); + } + parseQueryParam(oe) { + const q = (function (me) { + const oe = me.match(On); + return oe ? oe[0] : ""; + })(this.remaining); + if (!q) return; + this.capture(q); + let Ce = ""; + if (this.consumeOptional("=")) { + const it = (function (me) { + const oe = me.match(ji); + return oe ? oe[0] : ""; + })(this.remaining); + it && ((Ce = it), this.capture(Ce)); + } + const Te = ct(q), + Ve = ct(Ce); + if (oe.hasOwnProperty(Te)) { + let it = oe[Te]; + Array.isArray(it) || ((it = [it]), (oe[Te] = it)), it.push(Ve); + } else oe[Te] = Ve; + } + parseParens(oe) { + const q = {}; + for ( + this.capture("("); + !this.consumeOptional(")") && this.remaining.length > 0; + + ) { + const Ce = on(this.remaining), + Te = this.remaining[Ce.length]; + if ("/" !== Te && ")" !== Te && ";" !== Te) + throw new Error(`Cannot parse url '${this.url}'`); + let Ve; + Ce.indexOf(":") > -1 + ? ((Ve = Ce.substr(0, Ce.indexOf(":"))), + this.capture(Ve), + this.capture(":")) + : oe && (Ve = yt); + const it = this.parseChildren(); + (q[Ve] = 1 === Object.keys(it).length ? it[yt] : new Qe([], it)), + this.consumeOptional("//"); + } + return q; + } + peekStartsWith(oe) { + return this.remaining.startsWith(oe); + } + consumeOptional(oe) { + return ( + !!this.peekStartsWith(oe) && + ((this.remaining = this.remaining.substring(oe.length)), !0) + ); + } + capture(oe) { + if (!this.consumeOptional(oe)) throw new Error(`Expected "${oe}".`); + } + } + class Ti { + constructor(oe) { + this._root = oe; + } + get root() { + return this._root.value; + } + parent(oe) { + const q = this.pathFromRoot(oe); + return q.length > 1 ? q[q.length - 2] : null; + } + children(oe) { + const q = qn(oe, this._root); + return q ? q.children.map((Ce) => Ce.value) : []; + } + firstChild(oe) { + const q = qn(oe, this._root); + return q && q.children.length > 0 ? q.children[0].value : null; + } + siblings(oe) { + const q = Vi(oe, this._root); + return q.length < 2 + ? [] + : q[q.length - 2].children + .map((Te) => Te.value) + .filter((Te) => Te !== oe); + } + pathFromRoot(oe) { + return Vi(oe, this._root).map((q) => q.value); + } + } + function qn(me, oe) { + if (me === oe.value) return oe; + for (const q of oe.children) { + const Ce = qn(me, q); + if (Ce) return Ce; + } + return null; + } + function Vi(me, oe) { + if (me === oe.value) return [oe]; + for (const q of oe.children) { + const Ce = Vi(me, q); + if (Ce.length) return Ce.unshift(oe), Ce; + } + return []; + } + class ci { + constructor(oe, q) { + (this.value = oe), (this.children = q); + } + toString() { + return `TreeNode(${this.value})`; + } + } + function xe(me) { + const oe = {}; + return me && me.children.forEach((q) => (oe[q.value.outlet] = q)), oe; + } + class Ze extends Ti { + constructor(oe, q) { + super(oe), (this.snapshot = q), Ft(this, oe); + } + toString() { + return this.snapshot.toString(); + } + } + function ue(me, oe) { + const q = (function (me, oe) { + const it = new Xe( + [], + {}, + {}, + "", + {}, + yt, + oe, + null, + me.root, + -1, + {} + ); + return new Wt("", new ci(it, [])); + })(me, oe), + Ce = new m.X([new mt("", {})]), + Te = new m.X({}), + Ve = new m.X({}), + it = new m.X({}), + bt = new m.X(""), + zt = new B(Ce, Te, it, bt, Ve, yt, oe, q.root); + return (zt.snapshot = q.root), new Ze(new ci(zt, []), q); + } + class B { + constructor(oe, q, Ce, Te, Ve, it, bt, zt) { + (this.url = oe), + (this.params = q), + (this.queryParams = Ce), + (this.fragment = Te), + (this.data = Ve), + (this.outlet = it), + (this.component = bt), + (this._futureSnapshot = zt); + } + get routeConfig() { + return this._futureSnapshot.routeConfig; + } + get root() { + return this._routerState.root; + } + get parent() { + return this._routerState.parent(this); + } + get firstChild() { + return this._routerState.firstChild(this); + } + get children() { + return this._routerState.children(this); + } + get pathFromRoot() { + return this._routerState.pathFromRoot(this); + } + get paramMap() { + return ( + this._paramMap || + (this._paramMap = this.params.pipe((0, l.U)((oe) => _t(oe)))), + this._paramMap + ); + } + get queryParamMap() { + return ( + this._queryParamMap || + (this._queryParamMap = this.queryParams.pipe( + (0, l.U)((oe) => _t(oe)) + )), + this._queryParamMap + ); + } + toString() { + return this.snapshot + ? this.snapshot.toString() + : `Future(${this._futureSnapshot})`; + } + } + function de(me, oe = "emptyOnly") { + const q = me.pathFromRoot; + let Ce = 0; + if ("always" !== oe) + for (Ce = q.length - 1; Ce >= 1; ) { + const Te = q[Ce], + Ve = q[Ce - 1]; + if (Te.routeConfig && "" === Te.routeConfig.path) Ce--; + else { + if (Ve.component) break; + Ce--; + } + } + return (function (me) { + return me.reduce( + (oe, q) => ({ + params: Object.assign(Object.assign({}, oe.params), q.params), + data: Object.assign(Object.assign({}, oe.data), q.data), + resolve: Object.assign( + Object.assign({}, oe.resolve), + q._resolvedData + ), + }), + { params: {}, data: {}, resolve: {} } + ); + })(q.slice(Ce)); + } + class Xe { + constructor(oe, q, Ce, Te, Ve, it, bt, zt, vn, fi, Dn) { + (this.url = oe), + (this.params = q), + (this.queryParams = Ce), + (this.fragment = Te), + (this.data = Ve), + (this.outlet = it), + (this.component = bt), + (this.routeConfig = zt), + (this._urlSegment = vn), + (this._lastPathIndex = fi), + (this._resolve = Dn); + } + get root() { + return this._routerState.root; + } + get parent() { + return this._routerState.parent(this); + } + get firstChild() { + return this._routerState.firstChild(this); + } + get children() { + return this._routerState.children(this); + } + get pathFromRoot() { + return this._routerState.pathFromRoot(this); + } + get paramMap() { + return ( + this._paramMap || (this._paramMap = _t(this.params)), this._paramMap + ); + } + get queryParamMap() { + return ( + this._queryParamMap || (this._queryParamMap = _t(this.queryParams)), + this._queryParamMap + ); + } + toString() { + return `Route(url:'${this.url + .map((Ce) => Ce.toString()) + .join("/")}', path:'${ + this.routeConfig ? this.routeConfig.path : "" + }')`; + } + } + class Wt extends Ti { + constructor(oe, q) { + super(q), (this.url = oe), Ft(this, q); + } + toString() { + return Ht(this._root); + } + } + function Ft(me, oe) { + (oe.value._routerState = me), oe.children.forEach((q) => Ft(me, q)); + } + function Ht(me) { + const oe = + me.children.length > 0 + ? ` { ${me.children.map(Ht).join(", ")} } ` + : ""; + return `${me.value}${oe}`; + } + function Zt(me) { + if (me.snapshot) { + const oe = me.snapshot, + q = me._futureSnapshot; + (me.snapshot = q), + fe(oe.queryParams, q.queryParams) || + me.queryParams.next(q.queryParams), + oe.fragment !== q.fragment && me.fragment.next(q.fragment), + fe(oe.params, q.params) || me.params.next(q.params), + (function (me, oe) { + if (me.length !== oe.length) return !1; + for (let q = 0; q < me.length; ++q) + if (!fe(me[q], oe[q])) return !1; + return !0; + })(oe.url, q.url) || me.url.next(q.url), + fe(oe.data, q.data) || me.data.next(q.data); + } else + (me.snapshot = me._futureSnapshot), + me.data.next(me._futureSnapshot.data); + } + function an(me, oe) { + const q = + fe(me.params, oe.params) && + (function (me, oe) { + return ( + qt(me, oe) && + me.every((q, Ce) => fe(q.parameters, oe[Ce].parameters)) + ); + })(me.url, oe.url); + return ( + q && + !(!me.parent != !oe.parent) && + (!me.parent || an(me.parent, oe.parent)) + ); + } + function zn(me, oe, q) { + if (q && me.shouldReuseRoute(oe.value, q.value.snapshot)) { + const Ce = q.value; + Ce._futureSnapshot = oe.value; + const Te = (function (me, oe, q) { + return oe.children.map((Ce) => { + for (const Te of q.children) + if (me.shouldReuseRoute(Ce.value, Te.value.snapshot)) + return zn(me, Ce, Te); + return zn(me, Ce); + }); + })(me, oe, q); + return new ci(Ce, Te); + } + { + if (me.shouldAttach(oe.value)) { + const Ve = me.retrieve(oe.value); + if (null !== Ve) { + const it = Ve.route; + return ( + (it.value._futureSnapshot = oe.value), + (it.children = oe.children.map((bt) => zn(me, bt))), + it + ); + } + } + const Ce = (function (me) { + return new B( + new m.X(me.url), + new m.X(me.params), + new m.X(me.queryParams), + new m.X(me.fragment), + new m.X(me.data), + me.outlet, + me.component, + me + ); + })(oe.value), + Te = oe.children.map((Ve) => zn(me, Ve)); + return new ci(Ce, Te); + } + } + function Qn(me) { + return ( + "object" == typeof me && null != me && !me.outlets && !me.segmentPath + ); + } + function kn(me) { + return "object" == typeof me && null != me && me.outlets; + } + function Mi(me, oe, q, Ce, Te) { + let Ve = {}; + return ( + Ce && + _e(Ce, (it, bt) => { + Ve[bt] = Array.isArray(it) ? it.map((zt) => `${zt}`) : `${it}`; + }), + new Lt(q.root === me ? oe : Zi(q.root, me, oe), Ve, Te) + ); + } + function Zi(me, oe, q) { + const Ce = {}; + return ( + _e(me.children, (Te, Ve) => { + Ce[Ve] = Te === oe ? q : Zi(Te, oe, q); + }), + new Qe(me.segments, Ce) + ); + } + class Xn { + constructor(oe, q, Ce) { + if ( + ((this.isAbsolute = oe), + (this.numberOfDoubleDots = q), + (this.commands = Ce), + oe && Ce.length > 0 && Qn(Ce[0])) + ) + throw new Error("Root segment cannot have matrix parameters"); + const Te = Ce.find(kn); + if (Te && Te !== U(Ce)) + throw new Error("{outlets:{}} has to be the last command"); + } + toRoot() { + return ( + this.isAbsolute && + 1 === this.commands.length && + "/" == this.commands[0] + ); + } + } + class Gi { + constructor(oe, q, Ce) { + (this.segmentGroup = oe), + (this.processChildren = q), + (this.index = Ce); + } + } + function Rn(me, oe, q) { + if ( + (me || (me = new Qe([], {})), + 0 === me.segments.length && me.hasChildren()) + ) + return qi(me, oe, q); + const Ce = (function (me, oe, q) { + let Ce = 0, + Te = oe; + const Ve = { match: !1, pathIndex: 0, commandIndex: 0 }; + for (; Te < me.segments.length; ) { + if (Ce >= q.length) return Ve; + const it = me.segments[Te], + bt = q[Ce]; + if (kn(bt)) break; + const zt = `${bt}`, + vn = Ce < q.length - 1 ? q[Ce + 1] : null; + if (Te > 0 && void 0 === zt) break; + if (zt && vn && "object" == typeof vn && void 0 === vn.outlets) { + if (!Gn(zt, vn, it)) return Ve; + Ce += 2; + } else { + if (!Gn(zt, {}, it)) return Ve; + Ce++; + } + Te++; + } + return { match: !0, pathIndex: Te, commandIndex: Ce }; + })(me, oe, q), + Te = q.slice(Ce.commandIndex); + if (Ce.match && Ce.pathIndex < me.segments.length) { + const Ve = new Qe(me.segments.slice(0, Ce.pathIndex), {}); + return ( + (Ve.children[yt] = new Qe( + me.segments.slice(Ce.pathIndex), + me.children + )), + qi(Ve, 0, Te) + ); + } + return Ce.match && 0 === Te.length + ? new Qe(me.segments, {}) + : Ce.match && !me.hasChildren() + ? Fn(me, oe, q) + : Ce.match + ? qi(me, 0, Te) + : Fn(me, oe, q); + } + function qi(me, oe, q) { + if (0 === q.length) return new Qe(me.segments, {}); + { + const Ce = (function (me) { + return kn(me[0]) ? me[0].outlets : { [yt]: me }; + })(q), + Te = {}; + return ( + _e(Ce, (Ve, it) => { + "string" == typeof Ve && (Ve = [Ve]), + null !== Ve && (Te[it] = Rn(me.children[it], oe, Ve)); + }), + _e(me.children, (Ve, it) => { + void 0 === Ce[it] && (Te[it] = Ve); + }), + new Qe(me.segments, Te) + ); + } + } + function Fn(me, oe, q) { + const Ce = me.segments.slice(0, oe); + let Te = 0; + for (; Te < q.length; ) { + const Ve = q[Te]; + if (kn(Ve)) { + const zt = $i(Ve.outlets); + return new Qe(Ce, zt); + } + if (0 === Te && Qn(q[0])) { + Ce.push(new mt(me.segments[oe].path, mi(q[0]))), Te++; + continue; + } + const it = kn(Ve) ? Ve.outlets[yt] : `${Ve}`, + bt = Te < q.length - 1 ? q[Te + 1] : null; + it && bt && Qn(bt) + ? (Ce.push(new mt(it, mi(bt))), (Te += 2)) + : (Ce.push(new mt(it, {})), Te++); + } + return new Qe(Ce, {}); + } + function $i(me) { + const oe = {}; + return ( + _e(me, (q, Ce) => { + "string" == typeof q && (q = [q]), + null !== q && (oe[Ce] = Fn(new Qe([], {}), 0, q)); + }), + oe + ); + } + function mi(me) { + const oe = {}; + return _e(me, (q, Ce) => (oe[Ce] = `${q}`)), oe; + } + function Gn(me, oe, q) { + return me == q.path && fe(oe, q.parameters); + } + class gn { + constructor(oe, q, Ce, Te) { + (this.routeReuseStrategy = oe), + (this.futureState = q), + (this.currState = Ce), + (this.forwardEvent = Te); + } + activate(oe) { + const q = this.futureState._root, + Ce = this.currState ? this.currState._root : null; + this.deactivateChildRoutes(q, Ce, oe), + Zt(this.futureState.root), + this.activateChildRoutes(q, Ce, oe); + } + deactivateChildRoutes(oe, q, Ce) { + const Te = xe(q); + oe.children.forEach((Ve) => { + const it = Ve.value.outlet; + this.deactivateRoutes(Ve, Te[it], Ce), delete Te[it]; + }), + _e(Te, (Ve, it) => { + this.deactivateRouteAndItsChildren(Ve, Ce); + }); + } + deactivateRoutes(oe, q, Ce) { + const Te = oe.value, + Ve = q ? q.value : null; + if (Te === Ve) + if (Te.component) { + const it = Ce.getContext(Te.outlet); + it && this.deactivateChildRoutes(oe, q, it.children); + } else this.deactivateChildRoutes(oe, q, Ce); + else Ve && this.deactivateRouteAndItsChildren(q, Ce); + } + deactivateRouteAndItsChildren(oe, q) { + oe.value.component && + this.routeReuseStrategy.shouldDetach(oe.value.snapshot) + ? this.detachAndStoreRouteSubtree(oe, q) + : this.deactivateRouteAndOutlet(oe, q); + } + detachAndStoreRouteSubtree(oe, q) { + const Ce = q.getContext(oe.value.outlet), + Te = Ce && oe.value.component ? Ce.children : q, + Ve = xe(oe); + for (const it of Object.keys(Ve)) + this.deactivateRouteAndItsChildren(Ve[it], Te); + if (Ce && Ce.outlet) { + const it = Ce.outlet.detach(), + bt = Ce.children.onOutletDeactivated(); + this.routeReuseStrategy.store(oe.value.snapshot, { + componentRef: it, + route: oe, + contexts: bt, + }); + } + } + deactivateRouteAndOutlet(oe, q) { + const Ce = q.getContext(oe.value.outlet), + Te = Ce && oe.value.component ? Ce.children : q, + Ve = xe(oe); + for (const it of Object.keys(Ve)) + this.deactivateRouteAndItsChildren(Ve[it], Te); + Ce && + Ce.outlet && + (Ce.outlet.deactivate(), + Ce.children.onOutletDeactivated(), + (Ce.attachRef = null), + (Ce.resolver = null), + (Ce.route = null)); + } + activateChildRoutes(oe, q, Ce) { + const Te = xe(q); + oe.children.forEach((Ve) => { + this.activateRoutes(Ve, Te[Ve.value.outlet], Ce), + this.forwardEvent(new ft(Ve.value.snapshot)); + }), + oe.children.length && this.forwardEvent(new tt(oe.value.snapshot)); + } + activateRoutes(oe, q, Ce) { + const Te = oe.value, + Ve = q ? q.value : null; + if ((Zt(Te), Te === Ve)) + if (Te.component) { + const it = Ce.getOrCreateContext(Te.outlet); + this.activateChildRoutes(oe, q, it.children); + } else this.activateChildRoutes(oe, q, Ce); + else if (Te.component) { + const it = Ce.getOrCreateContext(Te.outlet); + if (this.routeReuseStrategy.shouldAttach(Te.snapshot)) { + const bt = this.routeReuseStrategy.retrieve(Te.snapshot); + this.routeReuseStrategy.store(Te.snapshot, null), + it.children.onOutletReAttached(bt.contexts), + (it.attachRef = bt.componentRef), + (it.route = bt.route.value), + it.outlet && it.outlet.attach(bt.componentRef, bt.route.value), + Zt(bt.route.value), + this.activateChildRoutes(oe, null, it.children); + } else { + const bt = (function (me) { + for (let oe = me.parent; oe; oe = oe.parent) { + const q = oe.routeConfig; + if (q && q._loadedConfig) return q._loadedConfig; + if (q && q.component) return null; + } + return null; + })(Te.snapshot), + zt = bt ? bt.module.componentFactoryResolver : null; + (it.attachRef = null), + (it.route = Te), + (it.resolver = zt), + it.outlet && it.outlet.activateWith(Te, zt), + this.activateChildRoutes(oe, null, it.children); + } + } else this.activateChildRoutes(oe, null, Ce); + } + } + class Sn { + constructor(oe, q) { + (this.routes = oe), (this.module = q); + } + } + function Wn(me) { + return "function" == typeof me; + } + function Li(me) { + return me instanceof Lt; + } + const Mr = Symbol("INITIAL_VALUE"); + function cr() { + return (0, g.w)((me) => + (0, s.aj)(me.map((oe) => oe.pipe((0, b.q)(1), (0, y.O)(Mr)))).pipe( + (0, x.R)((oe, q) => { + let Ce = !1; + return q.reduce( + (Te, Ve, it) => + Te !== Mr + ? Te + : (Ve === Mr && (Ce = !0), + Ce || (!1 !== Ve && it !== q.length - 1 && !Li(Ve)) + ? Te + : Ve), + oe + ); + }, Mr), + (0, T.h)((oe) => oe !== Mr), + (0, l.U)((oe) => (Li(oe) ? oe : !0 === oe)), + (0, b.q)(1) + ) + ); + } + class $r { + constructor() { + (this.outlet = null), + (this.route = null), + (this.resolver = null), + (this.children = new hr()), + (this.attachRef = null); + } + } + class hr { + constructor() { + this.contexts = new Map(); + } + onChildOutletCreated(oe, q) { + const Ce = this.getOrCreateContext(oe); + (Ce.outlet = q), this.contexts.set(oe, Ce); + } + onChildOutletDestroyed(oe) { + const q = this.getContext(oe); + q && ((q.outlet = null), (q.attachRef = null)); + } + onOutletDeactivated() { + const oe = this.contexts; + return (this.contexts = new Map()), oe; + } + onOutletReAttached(oe) { + this.contexts = oe; + } + getOrCreateContext(oe) { + let q = this.getContext(oe); + return q || ((q = new $r()), this.contexts.set(oe, q)), q; + } + getContext(oe) { + return this.contexts.get(oe) || null; + } + } + let qr = (() => { + class me { + constructor(q, Ce, Te, Ve, it) { + (this.parentContexts = q), + (this.location = Ce), + (this.resolver = Te), + (this.changeDetector = it), + (this.activated = null), + (this._activatedRoute = null), + (this.activateEvents = new n.EventEmitter()), + (this.deactivateEvents = new n.EventEmitter()), + (this.attachEvents = new n.EventEmitter()), + (this.detachEvents = new n.EventEmitter()), + (this.name = Ve || yt), + q.onChildOutletCreated(this.name, this); + } + ngOnDestroy() { + this.parentContexts.onChildOutletDestroyed(this.name); + } + ngOnInit() { + if (!this.activated) { + const q = this.parentContexts.getContext(this.name); + q && + q.route && + (q.attachRef + ? this.attach(q.attachRef, q.route) + : this.activateWith(q.route, q.resolver || null)); + } + } + get isActivated() { + return !!this.activated; + } + get component() { + if (!this.activated) throw new Error("Outlet is not activated"); + return this.activated.instance; + } + get activatedRoute() { + if (!this.activated) throw new Error("Outlet is not activated"); + return this._activatedRoute; + } + get activatedRouteData() { + return this._activatedRoute + ? this._activatedRoute.snapshot.data + : {}; + } + detach() { + if (!this.activated) throw new Error("Outlet is not activated"); + this.location.detach(); + const q = this.activated; + return ( + (this.activated = null), + (this._activatedRoute = null), + this.detachEvents.emit(q.instance), + q + ); + } + attach(q, Ce) { + (this.activated = q), + (this._activatedRoute = Ce), + this.location.insert(q.hostView), + this.attachEvents.emit(q.instance); + } + deactivate() { + if (this.activated) { + const q = this.component; + this.activated.destroy(), + (this.activated = null), + (this._activatedRoute = null), + this.deactivateEvents.emit(q); + } + } + activateWith(q, Ce) { + if (this.isActivated) + throw new Error("Cannot activate an already activated outlet"); + this._activatedRoute = q; + const it = (Ce = Ce || this.resolver).resolveComponentFactory( + q._futureSnapshot.routeConfig.component + ), + bt = this.parentContexts.getOrCreateContext(this.name).children, + zt = new ir(q, bt, this.location.injector); + (this.activated = this.location.createComponent( + it, + this.location.length, + zt + )), + this.changeDetector.markForCheck(), + this.activateEvents.emit(this.activated.instance); + } + } + return ( + (me.ɵfac = function (q) { + return new (q || me)( + n.ɵɵdirectiveInject(hr), + n.ɵɵdirectiveInject(n.ViewContainerRef), + n.ɵɵdirectiveInject(n.ComponentFactoryResolver), + n.ɵɵinjectAttribute("name"), + n.ɵɵdirectiveInject(n.ChangeDetectorRef) + ); + }), + (me.ɵdir = n.ɵɵdefineDirective({ + type: me, + selectors: [["router-outlet"]], + outputs: { + activateEvents: "activate", + deactivateEvents: "deactivate", + attachEvents: "attach", + detachEvents: "detach", + }, + exportAs: ["outlet"], + })), + me + ); + })(); + class ir { + constructor(oe, q, Ce) { + (this.route = oe), (this.childContexts = q), (this.parent = Ce); + } + get(oe, q) { + return oe === B + ? this.route + : oe === hr + ? this.childContexts + : this.parent.get(oe, q); + } + } + let Cr = (() => { + class me {} + return ( + (me.ɵfac = function (q) { + return new (q || me)(); + }), + (me.ɵcmp = n.ɵɵdefineComponent({ + type: me, + selectors: [["ng-component"]], + decls: 1, + vars: 0, + template: function (q, Ce) { + 1 & q && n.ɵɵelement(0, "router-outlet"); + }, + directives: [qr], + encapsulation: 2, + })), + me + ); + })(); + function Sr(me, oe = "") { + for (let q = 0; q < me.length; q++) { + const Ce = me[q]; + mr(Ce, Hr(oe, Ce)); + } + } + function mr(me, oe) { + me.children && Sr(me.children, oe); + } + function Hr(me, oe) { + return oe + ? me || oe.path + ? me && !oe.path + ? `${me}/` + : !me && oe.path + ? oe.path + : `${me}/${oe.path}` + : "" + : me; + } + function jr(me) { + const oe = me.children && me.children.map(jr), + q = oe + ? Object.assign(Object.assign({}, me), { children: oe }) + : Object.assign({}, me); + return ( + !q.component && + (oe || q.loadChildren) && + q.outlet && + q.outlet !== yt && + (q.component = Cr), + q + ); + } + function Wi(me) { + return me.outlet || yt; + } + function Wr(me, oe) { + const q = me.filter((Ce) => Wi(Ce) === oe); + return q.push(...me.filter((Ce) => Wi(Ce) !== oe)), q; + } + const Rr = { + matched: !1, + consumedSegments: [], + lastChild: 0, + parameters: {}, + positionalParamSegments: {}, + }; + function Dr(me, oe, q) { + var Ce; + if ("" === oe.path) + return "full" === oe.pathMatch && (me.hasChildren() || q.length > 0) + ? Object.assign({}, Rr) + : { + matched: !0, + consumedSegments: [], + lastChild: 0, + parameters: {}, + positionalParamSegments: {}, + }; + const Ve = (oe.matcher || Et)(q, me, oe); + if (!Ve) return Object.assign({}, Rr); + const it = {}; + _e(Ve.posParams, (zt, vn) => { + it[vn] = zt.path; + }); + const bt = + Ve.consumed.length > 0 + ? Object.assign( + Object.assign({}, it), + Ve.consumed[Ve.consumed.length - 1].parameters + ) + : it; + return { + matched: !0, + consumedSegments: Ve.consumed, + lastChild: Ve.consumed.length, + parameters: bt, + positionalParamSegments: + null !== (Ce = Ve.posParams) && void 0 !== Ce ? Ce : {}, + }; + } + function Lr(me, oe, q, Ce, Te = "corrected") { + if ( + q.length > 0 && + (function (me, oe, q) { + return q.some((Ce) => Jr(me, oe, Ce) && Wi(Ce) !== yt); + })(me, q, Ce) + ) { + const it = new Qe( + oe, + (function (me, oe, q, Ce) { + const Te = {}; + (Te[yt] = Ce), + (Ce._sourceSegment = me), + (Ce._segmentIndexShift = oe.length); + for (const Ve of q) + if ("" === Ve.path && Wi(Ve) !== yt) { + const it = new Qe([], {}); + (it._sourceSegment = me), + (it._segmentIndexShift = oe.length), + (Te[Wi(Ve)] = it); + } + return Te; + })(me, oe, Ce, new Qe(q, me.children)) + ); + return ( + (it._sourceSegment = me), + (it._segmentIndexShift = oe.length), + { segmentGroup: it, slicedSegments: [] } + ); + } + if ( + 0 === q.length && + (function (me, oe, q) { + return q.some((Ce) => Jr(me, oe, Ce)); + })(me, q, Ce) + ) { + const it = new Qe( + me.segments, + (function (me, oe, q, Ce, Te, Ve) { + const it = {}; + for (const bt of Ce) + if (Jr(me, q, bt) && !Te[Wi(bt)]) { + const zt = new Qe([], {}); + (zt._sourceSegment = me), + (zt._segmentIndexShift = + "legacy" === Ve ? me.segments.length : oe.length), + (it[Wi(bt)] = zt); + } + return Object.assign(Object.assign({}, Te), it); + })(me, oe, q, Ce, me.children, Te) + ); + return ( + (it._sourceSegment = me), + (it._segmentIndexShift = oe.length), + { segmentGroup: it, slicedSegments: q } + ); + } + const Ve = new Qe(me.segments, me.children); + return ( + (Ve._sourceSegment = me), + (Ve._segmentIndexShift = oe.length), + { segmentGroup: Ve, slicedSegments: q } + ); + } + function Jr(me, oe, q) { + return ( + (!(me.hasChildren() || oe.length > 0) || "full" !== q.pathMatch) && + "" === q.path + ); + } + function Tr(me, oe, q, Ce) { + return ( + !!(Wi(me) === Ce || (Ce !== yt && Jr(oe, q, me))) && + ("**" === me.path || Dr(oe, me, q).matched) + ); + } + function us(me, oe, q) { + return 0 === oe.length && !me.children[q]; + } + class si { + constructor(oe) { + this.segmentGroup = oe || null; + } + } + class zr { + constructor(oe) { + this.urlTree = oe; + } + } + function Er(me) { + return new d.y((oe) => oe.error(new si(me))); + } + function be(me) { + return new d.y((oe) => oe.error(new zr(me))); + } + function Q(me) { + return new d.y((oe) => + oe.error( + new Error( + `Only absolute redirects can have named outlets. redirectTo: '${me}'` + ) + ) + ); + } + class ve { + constructor(oe, q, Ce, Te, Ve) { + (this.configLoader = q), + (this.urlSerializer = Ce), + (this.urlTree = Te), + (this.config = Ve), + (this.allowRedirects = !0), + (this.ngModule = oe.get(n.NgModuleRef)); + } + apply() { + const oe = Lr(this.urlTree.root, [], [], this.config).segmentGroup, + q = new Qe(oe.segments, oe.children); + return this.expandSegmentGroup(this.ngModule, this.config, q, yt) + .pipe( + (0, l.U)((Ve) => + this.createUrlTree( + Nt(Ve), + this.urlTree.queryParams, + this.urlTree.fragment + ) + ) + ) + .pipe( + (0, O.K)((Ve) => { + if (Ve instanceof zr) + return (this.allowRedirects = !1), this.match(Ve.urlTree); + throw Ve instanceof si ? this.noMatchError(Ve) : Ve; + }) + ); + } + match(oe) { + return this.expandSegmentGroup( + this.ngModule, + this.config, + oe.root, + yt + ) + .pipe( + (0, l.U)((Te) => + this.createUrlTree(Nt(Te), oe.queryParams, oe.fragment) + ) + ) + .pipe( + (0, O.K)((Te) => { + throw Te instanceof si ? this.noMatchError(Te) : Te; + }) + ); + } + noMatchError(oe) { + return new Error( + `Cannot match any routes. URL Segment: '${oe.segmentGroup}'` + ); + } + createUrlTree(oe, q, Ce) { + const Te = oe.segments.length > 0 ? new Qe([], { [yt]: oe }) : oe; + return new Lt(Te, q, Ce); + } + expandSegmentGroup(oe, q, Ce, Te) { + return 0 === Ce.segments.length && Ce.hasChildren() + ? this.expandChildren(oe, q, Ce).pipe( + (0, l.U)((Ve) => new Qe([], Ve)) + ) + : this.expandSegment(oe, Ce, q, Ce.segments, Te, !0); + } + expandChildren(oe, q, Ce) { + const Te = []; + for (const Ve of Object.keys(Ce.children)) + "primary" === Ve ? Te.unshift(Ve) : Te.push(Ve); + return (0, f.D)(Te).pipe( + (0, M.b)((Ve) => { + const it = Ce.children[Ve], + bt = Wr(q, Ve); + return this.expandSegmentGroup(oe, bt, it, Ve).pipe( + (0, l.U)((zt) => ({ segment: zt, outlet: Ve })) + ); + }), + (0, x.R)((Ve, it) => ((Ve[it.outlet] = it.segment), Ve), {}), + (0, A.Z)() + ); + } + expandSegment(oe, q, Ce, Te, Ve, it) { + return (0, f.D)(Ce).pipe( + (0, M.b)((bt) => + this.expandSegmentAgainstRoute(oe, q, Ce, bt, Te, Ve, it).pipe( + (0, O.K)((vn) => { + if (vn instanceof si) return (0, _.of)(null); + throw vn; + }) + ) + ), + (0, S.P)((bt) => !!bt), + (0, O.K)((bt, zt) => { + if (bt instanceof u.K || "EmptyError" === bt.name) { + if (us(q, Te, Ve)) return (0, _.of)(new Qe([], {})); + throw new si(q); + } + throw bt; + }) + ); + } + expandSegmentAgainstRoute(oe, q, Ce, Te, Ve, it, bt) { + return Tr(Te, q, Ve, it) + ? void 0 === Te.redirectTo + ? this.matchSegmentAgainstRoute(oe, q, Te, Ve, it) + : bt && this.allowRedirects + ? this.expandSegmentAgainstRouteUsingRedirect( + oe, + q, + Ce, + Te, + Ve, + it + ) + : Er(q) + : Er(q); + } + expandSegmentAgainstRouteUsingRedirect(oe, q, Ce, Te, Ve, it) { + return "**" === Te.path + ? this.expandWildCardWithParamsAgainstRouteUsingRedirect( + oe, + Ce, + Te, + it + ) + : this.expandRegularSegmentAgainstRouteUsingRedirect( + oe, + q, + Ce, + Te, + Ve, + it + ); + } + expandWildCardWithParamsAgainstRouteUsingRedirect(oe, q, Ce, Te) { + const Ve = this.applyRedirectCommands([], Ce.redirectTo, {}); + return Ce.redirectTo.startsWith("/") + ? be(Ve) + : this.lineralizeSegments(Ce, Ve).pipe( + (0, w.zg)((it) => { + const bt = new Qe(it, {}); + return this.expandSegment(oe, bt, q, it, Te, !1); + }) + ); + } + expandRegularSegmentAgainstRouteUsingRedirect(oe, q, Ce, Te, Ve, it) { + const { + matched: bt, + consumedSegments: zt, + lastChild: vn, + positionalParamSegments: fi, + } = Dr(q, Te, Ve); + if (!bt) return Er(q); + const Dn = this.applyRedirectCommands(zt, Te.redirectTo, fi); + return Te.redirectTo.startsWith("/") + ? be(Dn) + : this.lineralizeSegments(Te, Dn).pipe( + (0, w.zg)((vi) => + this.expandSegment(oe, q, Ce, vi.concat(Ve.slice(vn)), it, !1) + ) + ); + } + matchSegmentAgainstRoute(oe, q, Ce, Te, Ve) { + if ("**" === Ce.path) + return Ce.loadChildren + ? (Ce._loadedConfig + ? (0, _.of)(Ce._loadedConfig) + : this.configLoader.load(oe.injector, Ce) + ).pipe( + (0, l.U)((vi) => ((Ce._loadedConfig = vi), new Qe(Te, {}))) + ) + : (0, _.of)(new Qe(Te, {})); + const { matched: it, consumedSegments: bt, lastChild: zt } = Dr( + q, + Ce, + Te + ); + if (!it) return Er(q); + const vn = Te.slice(zt); + return this.getChildConfig(oe, Ce, Te).pipe( + (0, w.zg)((Dn) => { + const vi = Dn.module, + Di = Dn.routes, + { segmentGroup: hs, slicedSegments: Gr } = Lr(q, bt, vn, Di), + fs = new Qe(hs.segments, hs.children); + if (0 === Gr.length && fs.hasChildren()) + return this.expandChildren(vi, Di, fs).pipe( + (0, l.U)((Rs) => new Qe(bt, Rs)) + ); + if (0 === Di.length && 0 === Gr.length) + return (0, _.of)(new Qe(bt, {})); + const ps = Wi(Ce) === Ve; + return this.expandSegment(vi, fs, Di, Gr, ps ? yt : Ve, !0).pipe( + (0, l.U)((ss) => new Qe(bt.concat(ss.segments), ss.children)) + ); + }) + ); + } + getChildConfig(oe, q, Ce) { + return q.children + ? (0, _.of)(new Sn(q.children, oe)) + : q.loadChildren + ? void 0 !== q._loadedConfig + ? (0, _.of)(q._loadedConfig) + : this.runCanLoadGuards(oe.injector, q, Ce).pipe( + (0, w.zg)((Te) => { + return Te + ? this.configLoader + .load(oe.injector, q) + .pipe((0, l.U)((Ve) => ((q._loadedConfig = Ve), Ve))) + : ((me = q), + new d.y((oe) => + oe.error( + Tt( + `Cannot load children because the guard of the route "path: '${me.path}'" returned false` + ) + ) + )); + var me; + }) + ) + : (0, _.of)(new Sn([], oe)); + } + runCanLoadGuards(oe, q, Ce) { + const Te = q.canLoad; + if (!Te || 0 === Te.length) return (0, _.of)(!0); + const Ve = Te.map((it) => { + const bt = oe.get(it); + let zt; + if ((me = bt) && Wn(me.canLoad)) zt = bt.canLoad(q, Ce); + else { + if (!Wn(bt)) throw new Error("Invalid CanLoad guard"); + zt = bt(q, Ce); + } + var me; + return Be(zt); + }); + return (0, _.of)(Ve).pipe( + cr(), + (0, I.b)((it) => { + if (!Li(it)) return; + const bt = Tt( + `Redirecting to "${this.urlSerializer.serialize(it)}"` + ); + throw ((bt.url = it), bt); + }), + (0, l.U)((it) => !0 === it) + ); + } + lineralizeSegments(oe, q) { + let Ce = [], + Te = q.root; + for (;;) { + if (((Ce = Ce.concat(Te.segments)), 0 === Te.numberOfChildren)) + return (0, _.of)(Ce); + if (Te.numberOfChildren > 1 || !Te.children[yt]) + return Q(oe.redirectTo); + Te = Te.children[yt]; + } + } + applyRedirectCommands(oe, q, Ce) { + return this.applyRedirectCreatreUrlTree( + q, + this.urlSerializer.parse(q), + oe, + Ce + ); + } + applyRedirectCreatreUrlTree(oe, q, Ce, Te) { + const Ve = this.createSegmentGroup(oe, q.root, Ce, Te); + return new Lt( + Ve, + this.createQueryParams(q.queryParams, this.urlTree.queryParams), + q.fragment + ); + } + createQueryParams(oe, q) { + const Ce = {}; + return ( + _e(oe, (Te, Ve) => { + if ("string" == typeof Te && Te.startsWith(":")) { + const bt = Te.substring(1); + Ce[Ve] = q[bt]; + } else Ce[Ve] = Te; + }), + Ce + ); + } + createSegmentGroup(oe, q, Ce, Te) { + const Ve = this.createSegments(oe, q.segments, Ce, Te); + let it = {}; + return ( + _e(q.children, (bt, zt) => { + it[zt] = this.createSegmentGroup(oe, bt, Ce, Te); + }), + new Qe(Ve, it) + ); + } + createSegments(oe, q, Ce, Te) { + return q.map((Ve) => + Ve.path.startsWith(":") + ? this.findPosParam(oe, Ve, Te) + : this.findOrReturn(Ve, Ce) + ); + } + findPosParam(oe, q, Ce) { + const Te = Ce[q.path.substring(1)]; + if (!Te) + throw new Error( + `Cannot redirect to '${oe}'. Cannot find '${q.path}'.` + ); + return Te; + } + findOrReturn(oe, q) { + let Ce = 0; + for (const Te of q) { + if (Te.path === oe.path) return q.splice(Ce), Te; + Ce++; + } + return oe; + } + } + function Nt(me) { + const oe = {}; + for (const Ce of Object.keys(me.children)) { + const Ve = Nt(me.children[Ce]); + (Ve.segments.length > 0 || Ve.hasChildren()) && (oe[Ce] = Ve); + } + return (function (me) { + if (1 === me.numberOfChildren && me.children[yt]) { + const oe = me.children[yt]; + return new Qe(me.segments.concat(oe.segments), oe.children); + } + return me; + })(new Qe(me.segments, oe)); + } + class In { + constructor(oe) { + (this.path = oe), (this.route = this.path[this.path.length - 1]); + } + } + class ni { + constructor(oe, q) { + (this.component = oe), (this.route = q); + } + } + function di(me, oe, q) { + const Ce = me._root; + return ki(Ce, oe ? oe._root : null, q, [Ce.value]); + } + function hi(me, oe, q) { + const Ce = (function (me) { + if (!me) return null; + for (let oe = me.parent; oe; oe = oe.parent) { + const q = oe.routeConfig; + if (q && q._loadedConfig) return q._loadedConfig; + } + return null; + })(oe); + return (Ce ? Ce.module.injector : q).get(me); + } + function ki( + me, + oe, + q, + Ce, + Te = { canDeactivateChecks: [], canActivateChecks: [] } + ) { + const Ve = xe(oe); + return ( + me.children.forEach((it) => { + (function ( + me, + oe, + q, + Ce, + Te = { canDeactivateChecks: [], canActivateChecks: [] } + ) { + const Ve = me.value, + it = oe ? oe.value : null, + bt = q ? q.getContext(me.value.outlet) : null; + if (it && Ve.routeConfig === it.routeConfig) { + const zt = (function (me, oe, q) { + if ("function" == typeof q) return q(me, oe); + switch (q) { + case "pathParamsChange": + return !qt(me.url, oe.url); + case "pathParamsOrQueryParamsChange": + return ( + !qt(me.url, oe.url) || + !fe(me.queryParams, oe.queryParams) + ); + case "always": + return !0; + case "paramsOrQueryParamsChange": + return !an(me, oe) || !fe(me.queryParams, oe.queryParams); + default: + return !an(me, oe); + } + })(it, Ve, Ve.routeConfig.runGuardsAndResolvers); + zt + ? Te.canActivateChecks.push(new In(Ce)) + : ((Ve.data = it.data), + (Ve._resolvedData = it._resolvedData)), + ki( + me, + oe, + Ve.component ? (bt ? bt.children : null) : q, + Ce, + Te + ), + zt && + bt && + bt.outlet && + bt.outlet.isActivated && + Te.canDeactivateChecks.push( + new ni(bt.outlet.component, it) + ); + } else + it && rr(oe, bt, Te), + Te.canActivateChecks.push(new In(Ce)), + ki( + me, + null, + Ve.component ? (bt ? bt.children : null) : q, + Ce, + Te + ); + })(it, Ve[it.value.outlet], q, Ce.concat([it.value]), Te), + delete Ve[it.value.outlet]; + }), + _e(Ve, (it, bt) => rr(it, q.getContext(bt), Te)), + Te + ); + } + function rr(me, oe, q) { + const Ce = xe(me), + Te = me.value; + _e(Ce, (Ve, it) => { + rr( + Ve, + Te.component ? (oe ? oe.children.getContext(it) : null) : oe, + q + ); + }), + q.canDeactivateChecks.push( + new ni( + Te.component && oe && oe.outlet && oe.outlet.isActivated + ? oe.outlet.component + : null, + Te + ) + ); + } + class pe {} + function Ae(me) { + return new d.y((oe) => oe.error(me)); + } + class rt { + constructor(oe, q, Ce, Te, Ve, it) { + (this.rootComponentType = oe), + (this.config = q), + (this.urlTree = Ce), + (this.url = Te), + (this.paramsInheritanceStrategy = Ve), + (this.relativeLinkResolution = it); + } + recognize() { + const oe = Lr( + this.urlTree.root, + [], + [], + this.config.filter((it) => void 0 === it.redirectTo), + this.relativeLinkResolution + ).segmentGroup, + q = this.processSegmentGroup(this.config, oe, yt); + if (null === q) return null; + const Ce = new Xe( + [], + Object.freeze({}), + Object.freeze(Object.assign({}, this.urlTree.queryParams)), + this.urlTree.fragment, + {}, + yt, + this.rootComponentType, + null, + this.urlTree.root, + -1, + {} + ), + Te = new ci(Ce, q), + Ve = new Wt(this.url, Te); + return this.inheritParamsAndData(Ve._root), Ve; + } + inheritParamsAndData(oe) { + const q = oe.value, + Ce = de(q, this.paramsInheritanceStrategy); + (q.params = Object.freeze(Ce.params)), + (q.data = Object.freeze(Ce.data)), + oe.children.forEach((Te) => this.inheritParamsAndData(Te)); + } + processSegmentGroup(oe, q, Ce) { + return 0 === q.segments.length && q.hasChildren() + ? this.processChildren(oe, q) + : this.processSegment(oe, q, q.segments, Ce); + } + processChildren(oe, q) { + const Ce = []; + for (const Ve of Object.keys(q.children)) { + const it = q.children[Ve], + bt = Wr(oe, Ve), + zt = this.processSegmentGroup(bt, it, Ve); + if (null === zt) return null; + Ce.push(...zt); + } + const Te = rn(Ce); + return ( + Te.sort((oe, q) => + oe.value.outlet === yt + ? -1 + : q.value.outlet === yt + ? 1 + : oe.value.outlet.localeCompare(q.value.outlet) + ), + Te + ); + } + processSegment(oe, q, Ce, Te) { + for (const Ve of oe) { + const it = this.processSegmentAgainstRoute(Ve, q, Ce, Te); + if (null !== it) return it; + } + return us(q, Ce, Te) ? [] : null; + } + processSegmentAgainstRoute(oe, q, Ce, Te) { + if (oe.redirectTo || !Tr(oe, q, Ce, Te)) return null; + let Ve, + it = [], + bt = []; + if ("**" === oe.path) { + const Di = Ce.length > 0 ? U(Ce).parameters : {}; + Ve = new Xe( + Ce, + Di, + Object.freeze(Object.assign({}, this.urlTree.queryParams)), + this.urlTree.fragment, + _n(oe), + Wi(oe), + oe.component, + oe, + Pn(q), + Ln(q) + Ce.length, + Bn(oe) + ); + } else { + const Di = Dr(q, oe, Ce); + if (!Di.matched) return null; + (it = Di.consumedSegments), + (bt = Ce.slice(Di.lastChild)), + (Ve = new Xe( + it, + Di.parameters, + Object.freeze(Object.assign({}, this.urlTree.queryParams)), + this.urlTree.fragment, + _n(oe), + Wi(oe), + oe.component, + oe, + Pn(q), + Ln(q) + it.length, + Bn(oe) + )); + } + const zt = (me = oe).children + ? me.children + : me.loadChildren + ? me._loadedConfig.routes + : [], + { segmentGroup: vn, slicedSegments: fi } = Lr( + q, + it, + bt, + zt.filter((Di) => void 0 === Di.redirectTo), + this.relativeLinkResolution + ); + var me; + if (0 === fi.length && vn.hasChildren()) { + const Di = this.processChildren(zt, vn); + return null === Di ? null : [new ci(Ve, Di)]; + } + if (0 === zt.length && 0 === fi.length) return [new ci(Ve, [])]; + const Dn = Wi(oe) === Te, + vi = this.processSegment(zt, vn, fi, Dn ? yt : Te); + return null === vi ? null : [new ci(Ve, vi)]; + } + } + function Gt(me) { + const oe = me.value.routeConfig; + return oe && "" === oe.path && void 0 === oe.redirectTo; + } + function rn(me) { + const oe = [], + q = new Set(); + for (const Ce of me) { + if (!Gt(Ce)) { + oe.push(Ce); + continue; + } + const Te = oe.find( + (Ve) => Ce.value.routeConfig === Ve.value.routeConfig + ); + void 0 !== Te + ? (Te.children.push(...Ce.children), q.add(Te)) + : oe.push(Ce); + } + for (const Ce of q) { + const Te = rn(Ce.children); + oe.push(new ci(Ce.value, Te)); + } + return oe.filter((Ce) => !q.has(Ce)); + } + function Pn(me) { + let oe = me; + for (; oe._sourceSegment; ) oe = oe._sourceSegment; + return oe; + } + function Ln(me) { + let oe = me, + q = oe._segmentIndexShift ? oe._segmentIndexShift : 0; + for (; oe._sourceSegment; ) + (oe = oe._sourceSegment), + (q += oe._segmentIndexShift ? oe._segmentIndexShift : 0); + return q - 1; + } + function _n(me) { + return me.data || {}; + } + function Bn(me) { + return me.resolve || {}; + } + function Nr(me) { + return (0, g.w)((oe) => { + const q = me(oe); + return q ? (0, f.D)(q).pipe((0, l.U)(() => oe)) : (0, _.of)(oe); + }); + } + class fr {} + class Xi { + shouldDetach(oe) { + return !1; + } + store(oe, q) {} + shouldAttach(oe) { + return !1; + } + retrieve(oe) { + return null; + } + shouldReuseRoute(oe, q) { + return oe.routeConfig === q.routeConfig; + } + } + class gr extends Xi {} + const zi = new n.InjectionToken("ROUTES"); + class Pr { + constructor(oe, q, Ce, Te) { + (this.injector = oe), + (this.compiler = q), + (this.onLoadStartListener = Ce), + (this.onLoadEndListener = Te); + } + load(oe, q) { + if (q._loader$) return q._loader$; + this.onLoadStartListener && this.onLoadStartListener(q); + const Te = this.loadModuleFactory(q.loadChildren).pipe( + (0, l.U)((Ve) => { + this.onLoadEndListener && this.onLoadEndListener(q); + const it = Ve.create(oe); + return new Sn( + D( + it.injector.get( + zi, + void 0, + n.InjectFlags.Self | n.InjectFlags.Optional + ) + ).map(jr), + it + ); + }), + (0, O.K)((Ve) => { + throw ((q._loader$ = void 0), Ve); + }) + ); + return ( + (q._loader$ = new i.c(Te, () => new c.xQ()).pipe((0, L.x)())), + q._loader$ + ); + } + loadModuleFactory(oe) { + return Be(oe()).pipe( + (0, w.zg)((q) => + q instanceof n.NgModuleFactory + ? (0, _.of)(q) + : (0, f.D)(this.compiler.compileModuleAsync(q)) + ) + ); + } + } + class ys {} + class Yi { + shouldProcessUrl(oe) { + return !0; + } + extract(oe) { + return oe; + } + merge(oe, q) { + return oe; + } + } + function Ur(me) { + throw me; + } + function bs(me, oe, q) { + return oe.parse("/"); + } + function Cs(me, oe) { + return (0, _.of)(null); + } + const mn = { + paths: "exact", + fragment: "ignored", + matrixParams: "ignored", + queryParams: "exact", + }, + Mn = { + paths: "subset", + fragment: "ignored", + matrixParams: "ignored", + queryParams: "subset", + }; + let En = (() => { + class me { + constructor(q, Ce, Te, Ve, it, bt, zt) { + (this.rootComponentType = q), + (this.urlSerializer = Ce), + (this.rootContexts = Te), + (this.location = Ve), + (this.config = zt), + (this.lastSuccessfulNavigation = null), + (this.currentNavigation = null), + (this.disposed = !1), + (this.navigationId = 0), + (this.currentPageId = 0), + (this.isNgZoneEnabled = !1), + (this.events = new c.xQ()), + (this.errorHandler = Ur), + (this.malformedUriErrorHandler = bs), + (this.navigated = !1), + (this.lastSuccessfulId = -1), + (this.hooks = { + beforePreactivation: Cs, + afterPreactivation: Cs, + }), + (this.urlHandlingStrategy = new Yi()), + (this.routeReuseStrategy = new gr()), + (this.onSameUrlNavigation = "ignore"), + (this.paramsInheritanceStrategy = "emptyOnly"), + (this.urlUpdateStrategy = "deferred"), + (this.relativeLinkResolution = "corrected"), + (this.canceledNavigationResolution = "replace"), + (this.ngModule = it.get(n.NgModuleRef)), + (this.console = it.get(n.ɵConsole)); + const Dn = it.get(n.NgZone); + (this.isNgZoneEnabled = + Dn instanceof n.NgZone && n.NgZone.isInAngularZone()), + this.resetConfig(zt), + (this.currentUrlTree = new Lt(new Qe([], {}), {}, null)), + (this.rawUrlTree = this.currentUrlTree), + (this.browserUrlTree = this.currentUrlTree), + (this.configLoader = new Pr( + it, + bt, + (vi) => this.triggerEvent(new Je(vi)), + (vi) => this.triggerEvent(new gt(vi)) + )), + (this.routerState = ue( + this.currentUrlTree, + this.rootComponentType + )), + (this.transitions = new m.X({ + id: 0, + targetPageId: 0, + currentUrlTree: this.currentUrlTree, + currentRawUrl: this.currentUrlTree, + extractedUrl: this.urlHandlingStrategy.extract( + this.currentUrlTree + ), + urlAfterRedirects: this.urlHandlingStrategy.extract( + this.currentUrlTree + ), + rawUrl: this.currentUrlTree, + extras: {}, + resolve: null, + reject: null, + promise: Promise.resolve(!0), + source: "imperative", + restoredState: null, + currentSnapshot: this.routerState.snapshot, + targetSnapshot: null, + currentRouterState: this.routerState, + targetRouterState: null, + guards: { canActivateChecks: [], canDeactivateChecks: [] }, + guardsResult: null, + })), + (this.navigations = this.setupNavigations(this.transitions)), + this.processNavigations(); + } + get browserPageId() { + var q; + return null === (q = this.location.getState()) || void 0 === q + ? void 0 + : q.ɵrouterPageId; + } + setupNavigations(q) { + const Ce = this.events; + return q.pipe( + (0, T.h)((Te) => 0 !== Te.id), + (0, l.U)((Te) => + Object.assign(Object.assign({}, Te), { + extractedUrl: this.urlHandlingStrategy.extract(Te.rawUrl), + }) + ), + (0, g.w)((Te) => { + let Ve = !1, + it = !1; + return (0, _.of)(Te).pipe( + (0, I.b)((bt) => { + this.currentNavigation = { + id: bt.id, + initialUrl: bt.currentRawUrl, + extractedUrl: bt.extractedUrl, + trigger: bt.source, + extras: bt.extras, + previousNavigation: this.lastSuccessfulNavigation + ? Object.assign( + Object.assign({}, this.lastSuccessfulNavigation), + { previousNavigation: null } + ) + : null, + }; + }), + (0, g.w)((bt) => { + const zt = this.browserUrlTree.toString(), + vn = + !this.navigated || + bt.extractedUrl.toString() !== zt || + zt !== this.currentUrlTree.toString(); + if ( + ("reload" === this.onSameUrlNavigation || vn) && + this.urlHandlingStrategy.shouldProcessUrl(bt.rawUrl) + ) + return ( + ii(bt.source) && + (this.browserUrlTree = bt.extractedUrl), + (0, _.of)(bt).pipe( + (0, g.w)((Dn) => { + const vi = this.transitions.getValue(); + return ( + Ce.next( + new ee( + Dn.id, + this.serializeUrl(Dn.extractedUrl), + Dn.source, + Dn.restoredState + ) + ), + vi !== this.transitions.getValue() + ? o.E + : Promise.resolve(Dn) + ); + }), + (function (me, oe, q, Ce) { + return (0, g.w)((Te) => + (function (me, oe, q, Ce, Te) { + return new ve(me, oe, q, Ce, Te).apply(); + })(me, oe, q, Te.extractedUrl, Ce).pipe( + (0, l.U)((Ve) => + Object.assign(Object.assign({}, Te), { + urlAfterRedirects: Ve, + }) + ) + ) + ); + })( + this.ngModule.injector, + this.configLoader, + this.urlSerializer, + this.config + ), + (0, I.b)((Dn) => { + this.currentNavigation = Object.assign( + Object.assign({}, this.currentNavigation), + { finalUrl: Dn.urlAfterRedirects } + ); + }), + (function (me, oe, q, Ce, Te) { + return (0, w.zg)((Ve) => + (function ( + me, + oe, + q, + Ce, + Te = "emptyOnly", + Ve = "legacy" + ) { + try { + const it = new rt( + me, + oe, + q, + Ce, + Te, + Ve + ).recognize(); + return null === it + ? Ae(new pe()) + : (0, _.of)(it); + } catch (it) { + return Ae(it); + } + })( + me, + oe, + Ve.urlAfterRedirects, + q(Ve.urlAfterRedirects), + Ce, + Te + ).pipe( + (0, l.U)((it) => + Object.assign(Object.assign({}, Ve), { + targetSnapshot: it, + }) + ) + ) + ); + })( + this.rootComponentType, + this.config, + (Dn) => this.serializeUrl(Dn), + this.paramsInheritanceStrategy, + this.relativeLinkResolution + ), + (0, I.b)((Dn) => { + if ("eager" === this.urlUpdateStrategy) { + if (!Dn.extras.skipLocationChange) { + const Di = this.urlHandlingStrategy.merge( + Dn.urlAfterRedirects, + Dn.rawUrl + ); + this.setBrowserUrl(Di, Dn); + } + this.browserUrlTree = Dn.urlAfterRedirects; + } + const vi = new ae( + Dn.id, + this.serializeUrl(Dn.extractedUrl), + this.serializeUrl(Dn.urlAfterRedirects), + Dn.targetSnapshot + ); + Ce.next(vi); + }) + ) + ); + if ( + vn && + this.rawUrlTree && + this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree) + ) { + const { + id: vi, + extractedUrl: Di, + source: hs, + restoredState: Gr, + extras: fs, + } = bt, + ps = new ee(vi, this.serializeUrl(Di), hs, Gr); + Ce.next(ps); + const eo = ue(Di, this.rootComponentType).snapshot; + return (0, _.of)( + Object.assign(Object.assign({}, bt), { + targetSnapshot: eo, + urlAfterRedirects: Di, + extras: Object.assign(Object.assign({}, fs), { + skipLocationChange: !1, + replaceUrl: !1, + }), + }) + ); + } + return (this.rawUrlTree = bt.rawUrl), bt.resolve(null), o.E; + }), + Nr((bt) => { + const { + targetSnapshot: zt, + id: vn, + extractedUrl: fi, + rawUrl: Dn, + extras: { skipLocationChange: vi, replaceUrl: Di }, + } = bt; + return this.hooks.beforePreactivation(zt, { + navigationId: vn, + appliedUrlTree: fi, + rawUrlTree: Dn, + skipLocationChange: !!vi, + replaceUrl: !!Di, + }); + }), + (0, I.b)((bt) => { + const zt = new le( + bt.id, + this.serializeUrl(bt.extractedUrl), + this.serializeUrl(bt.urlAfterRedirects), + bt.targetSnapshot + ); + this.triggerEvent(zt); + }), + (0, l.U)((bt) => + Object.assign(Object.assign({}, bt), { + guards: di( + bt.targetSnapshot, + bt.currentSnapshot, + this.rootContexts + ), + }) + ), + (function (me, oe) { + return (0, w.zg)((q) => { + const { + targetSnapshot: Ce, + currentSnapshot: Te, + guards: { + canActivateChecks: Ve, + canDeactivateChecks: it, + }, + } = q; + return 0 === it.length && 0 === Ve.length + ? (0, _.of)( + Object.assign(Object.assign({}, q), { + guardsResult: !0, + }) + ) + : (function (me, oe, q, Ce) { + return (0, f.D)(me).pipe( + (0, w.zg)((Te) => + (function (me, oe, q, Ce, Te) { + const Ve = + oe && oe.routeConfig + ? oe.routeConfig.canDeactivate + : null; + if (!Ve || 0 === Ve.length) + return (0, _.of)(!0); + const it = Ve.map((bt) => { + const zt = hi(bt, oe, Te); + let vn; + if ( + (function (me) { + return me && Wn(me.canDeactivate); + })(zt) + ) + vn = Be(zt.canDeactivate(me, oe, q, Ce)); + else { + if (!Wn(zt)) + throw new Error( + "Invalid CanDeactivate guard" + ); + vn = Be(zt(me, oe, q, Ce)); + } + return vn.pipe((0, S.P)()); + }); + return (0, _.of)(it).pipe(cr()); + })(Te.component, Te.route, q, oe, Ce) + ), + (0, S.P)((Te) => !0 !== Te, !0) + ); + })(it, Ce, Te, me).pipe( + (0, w.zg)((bt) => + bt && + (function (me) { + return "boolean" == typeof me; + })(bt) + ? (function (me, oe, q, Ce) { + return (0, f.D)(oe).pipe( + (0, M.b)((Te) => + (0, h.z)( + (function (me, oe) { + return ( + null !== me && + oe && + oe(new Ue(me)), + (0, _.of)(!0) + ); + })(Te.route.parent, Ce), + (function (me, oe) { + return ( + null !== me && + oe && + oe(new at(me)), + (0, _.of)(!0) + ); + })(Te.route, Ce), + (function (me, oe, q) { + const Ce = oe[oe.length - 1], + Ve = oe + .slice(0, oe.length - 1) + .reverse() + .map((it) => + (function (me) { + const oe = me.routeConfig + ? me.routeConfig + .canActivateChild + : null; + return oe && 0 !== oe.length + ? { node: me, guards: oe } + : null; + })(it) + ) + .filter((it) => null !== it) + .map((it) => + (0, r.P)(() => { + const bt = it.guards.map( + (zt) => { + const vn = hi( + zt, + it.node, + q + ); + let fi; + if ( + (function (me) { + return ( + me && + Wn( + me.canActivateChild + ) + ); + })(vn) + ) + fi = Be( + vn.canActivateChild( + Ce, + me + ) + ); + else { + if (!Wn(vn)) + throw new Error( + "Invalid CanActivateChild guard" + ); + fi = Be(vn(Ce, me)); + } + return fi.pipe( + (0, S.P)() + ); + } + ); + return (0, _.of)(bt).pipe( + cr() + ); + }) + ); + return (0, _.of)(Ve).pipe(cr()); + })(me, Te.path, q), + (function (me, oe, q) { + const Ce = oe.routeConfig + ? oe.routeConfig.canActivate + : null; + if (!Ce || 0 === Ce.length) + return (0, _.of)(!0); + const Te = Ce.map((Ve) => + (0, r.P)(() => { + const it = hi(Ve, oe, q); + let bt; + if ( + (function (me) { + return ( + me && Wn(me.canActivate) + ); + })(it) + ) + bt = Be( + it.canActivate(oe, me) + ); + else { + if (!Wn(it)) + throw new Error( + "Invalid CanActivate guard" + ); + bt = Be(it(oe, me)); + } + return bt.pipe((0, S.P)()); + }) + ); + return (0, _.of)(Te).pipe(cr()); + })(me, Te.route, q) + ) + ), + (0, S.P)((Te) => !0 !== Te, !0) + ); + })(Ce, Ve, me, oe) + : (0, _.of)(bt) + ), + (0, l.U)((bt) => + Object.assign(Object.assign({}, q), { + guardsResult: bt, + }) + ) + ); + }); + })(this.ngModule.injector, (bt) => this.triggerEvent(bt)), + (0, I.b)((bt) => { + if (Li(bt.guardsResult)) { + const vn = Tt( + `Redirecting to "${this.serializeUrl(bt.guardsResult)}"` + ); + throw ((vn.url = bt.guardsResult), vn); + } + const zt = new Oe( + bt.id, + this.serializeUrl(bt.extractedUrl), + this.serializeUrl(bt.urlAfterRedirects), + bt.targetSnapshot, + !!bt.guardsResult + ); + this.triggerEvent(zt); + }), + (0, T.h)( + (bt) => + !!bt.guardsResult || + (this.restoreHistory(bt), + this.cancelNavigationTransition(bt, ""), + !1) + ), + Nr((bt) => { + if (bt.guards.canActivateChecks.length) + return (0, _.of)(bt).pipe( + (0, I.b)((zt) => { + const vn = new Le( + zt.id, + this.serializeUrl(zt.extractedUrl), + this.serializeUrl(zt.urlAfterRedirects), + zt.targetSnapshot + ); + this.triggerEvent(vn); + }), + (0, g.w)((zt) => { + let vn = !1; + return (0, _.of)(zt).pipe( + (function (me, oe) { + return (0, w.zg)((q) => { + const { + targetSnapshot: Ce, + guards: { canActivateChecks: Te }, + } = q; + if (!Te.length) return (0, _.of)(q); + let Ve = 0; + return (0, f.D)(Te).pipe( + (0, M.b)((it) => + (function (me, oe, q, Ce) { + return (function (me, oe, q, Ce) { + const Te = Object.keys(me); + if (0 === Te.length) + return (0, _.of)({}); + const Ve = {}; + return (0, f.D)(Te).pipe( + (0, w.zg)((it) => + (function (me, oe, q, Ce) { + const Te = hi(me, oe, Ce); + return Be( + Te.resolve + ? Te.resolve(oe, q) + : Te(oe, q) + ); + })(me[it], oe, q, Ce).pipe( + (0, I.b)((bt) => { + Ve[it] = bt; + }) + ) + ), + (0, C.h)(1), + (0, w.zg)(() => + Object.keys(Ve).length === Te.length + ? (0, _.of)(Ve) + : o.E + ) + ); + })(me._resolve, me, oe, Ce).pipe( + (0, l.U)( + (Ve) => ( + (me._resolvedData = Ve), + (me.data = Object.assign( + Object.assign({}, me.data), + de(me, q).resolve + )), + null + ) + ) + ); + })(it.route, Ce, me, oe) + ), + (0, I.b)(() => Ve++), + (0, C.h)(1), + (0, w.zg)((it) => + Ve === Te.length ? (0, _.of)(q) : o.E + ) + ); + }); + })( + this.paramsInheritanceStrategy, + this.ngModule.injector + ), + (0, I.b)({ + next: () => (vn = !0), + complete: () => { + vn || + (this.restoreHistory(zt), + this.cancelNavigationTransition( + zt, + "At least one route resolver didn't emit any value." + )); + }, + }) + ); + }), + (0, I.b)((zt) => { + const vn = new Ye( + zt.id, + this.serializeUrl(zt.extractedUrl), + this.serializeUrl(zt.urlAfterRedirects), + zt.targetSnapshot + ); + this.triggerEvent(vn); + }) + ); + }), + Nr((bt) => { + const { + targetSnapshot: zt, + id: vn, + extractedUrl: fi, + rawUrl: Dn, + extras: { skipLocationChange: vi, replaceUrl: Di }, + } = bt; + return this.hooks.afterPreactivation(zt, { + navigationId: vn, + appliedUrlTree: fi, + rawUrlTree: Dn, + skipLocationChange: !!vi, + replaceUrl: !!Di, + }); + }), + (0, l.U)((bt) => { + const zt = (function (me, oe, q) { + const Ce = zn(me, oe._root, q ? q._root : void 0); + return new Ze(Ce, oe); + })( + this.routeReuseStrategy, + bt.targetSnapshot, + bt.currentRouterState + ); + return Object.assign(Object.assign({}, bt), { + targetRouterState: zt, + }); + }), + (0, I.b)((bt) => { + (this.currentUrlTree = bt.urlAfterRedirects), + (this.rawUrlTree = this.urlHandlingStrategy.merge( + bt.urlAfterRedirects, + bt.rawUrl + )), + (this.routerState = bt.targetRouterState), + "deferred" === this.urlUpdateStrategy && + (bt.extras.skipLocationChange || + this.setBrowserUrl(this.rawUrlTree, bt), + (this.browserUrlTree = bt.urlAfterRedirects)); + }), + ((me, oe, q) => + (0, l.U)( + (Ce) => ( + new gn( + oe, + Ce.targetRouterState, + Ce.currentRouterState, + q + ).activate(me), + Ce + ) + ))(this.rootContexts, this.routeReuseStrategy, (bt) => + this.triggerEvent(bt) + ), + (0, I.b)({ + next() { + Ve = !0; + }, + complete() { + Ve = !0; + }, + }), + (0, F.x)(() => { + var bt; + Ve || + it || + this.cancelNavigationTransition( + Te, + `Navigation ID ${Te.id} is not equal to the current navigation id ${this.navigationId}` + ), + (null === (bt = this.currentNavigation) || void 0 === bt + ? void 0 + : bt.id) === Te.id && (this.currentNavigation = null); + }), + (0, O.K)((bt) => { + if ( + ((it = !0), + (function (me) { + return me && me[At]; + })(bt)) + ) { + const zt = Li(bt.url); + zt || + ((this.navigated = !0), this.restoreHistory(Te, !0)); + const vn = new J( + Te.id, + this.serializeUrl(Te.extractedUrl), + bt.message + ); + Ce.next(vn), + zt + ? setTimeout(() => { + const fi = this.urlHandlingStrategy.merge( + bt.url, + this.rawUrlTree + ), + Dn = { + skipLocationChange: + Te.extras.skipLocationChange, + replaceUrl: + "eager" === this.urlUpdateStrategy || + ii(Te.source), + }; + this.scheduleNavigation( + fi, + "imperative", + null, + Dn, + { + resolve: Te.resolve, + reject: Te.reject, + promise: Te.promise, + } + ); + }, 0) + : Te.resolve(!1); + } else { + this.restoreHistory(Te, !0); + const zt = new ne( + Te.id, + this.serializeUrl(Te.extractedUrl), + bt + ); + Ce.next(zt); + try { + Te.resolve(this.errorHandler(bt)); + } catch (vn) { + Te.reject(vn); + } + } + return o.E; + }) + ); + }) + ); + } + resetRootComponentType(q) { + (this.rootComponentType = q), + (this.routerState.root.component = this.rootComponentType); + } + setTransition(q) { + this.transitions.next( + Object.assign(Object.assign({}, this.transitions.value), q) + ); + } + initialNavigation() { + this.setUpLocationChangeListener(), + 0 === this.navigationId && + this.navigateByUrl(this.location.path(!0), { replaceUrl: !0 }); + } + setUpLocationChangeListener() { + this.locationSubscription || + (this.locationSubscription = this.location.subscribe((q) => { + const Ce = "popstate" === q.type ? "popstate" : "hashchange"; + "popstate" === Ce && + setTimeout(() => { + var Te; + const Ve = { replaceUrl: !0 }, + it = ( + null === (Te = q.state) || void 0 === Te + ? void 0 + : Te.navigationId + ) + ? q.state + : null; + if (it) { + const zt = Object.assign({}, it); + delete zt.navigationId, + delete zt.ɵrouterPageId, + 0 !== Object.keys(zt).length && (Ve.state = zt); + } + const bt = this.parseUrl(q.url); + this.scheduleNavigation(bt, Ce, it, Ve); + }, 0); + })); + } + get url() { + return this.serializeUrl(this.currentUrlTree); + } + getCurrentNavigation() { + return this.currentNavigation; + } + triggerEvent(q) { + this.events.next(q); + } + resetConfig(q) { + Sr(q), + (this.config = q.map(jr)), + (this.navigated = !1), + (this.lastSuccessfulId = -1); + } + ngOnDestroy() { + this.dispose(); + } + dispose() { + this.transitions.complete(), + this.locationSubscription && + (this.locationSubscription.unsubscribe(), + (this.locationSubscription = void 0)), + (this.disposed = !0); + } + createUrlTree(q, Ce = {}) { + const { + relativeTo: Te, + queryParams: Ve, + fragment: it, + queryParamsHandling: bt, + preserveFragment: zt, + } = Ce, + vn = Te || this.routerState.root, + fi = zt ? this.currentUrlTree.fragment : it; + let Dn = null; + switch (bt) { + case "merge": + Dn = Object.assign( + Object.assign({}, this.currentUrlTree.queryParams), + Ve + ); + break; + case "preserve": + Dn = this.currentUrlTree.queryParams; + break; + default: + Dn = Ve || null; + } + return ( + null !== Dn && (Dn = this.removeEmptyProps(Dn)), + (function (me, oe, q, Ce, Te) { + if (0 === q.length) return Mi(oe.root, oe.root, oe, Ce, Te); + const Ve = (function (me) { + if ( + "string" == typeof me[0] && + 1 === me.length && + "/" === me[0] + ) + return new Xn(!0, 0, me); + let oe = 0, + q = !1; + const Ce = me.reduce((Te, Ve, it) => { + if ("object" == typeof Ve && null != Ve) { + if (Ve.outlets) { + const bt = {}; + return ( + _e(Ve.outlets, (zt, vn) => { + bt[vn] = "string" == typeof zt ? zt.split("/") : zt; + }), + [...Te, { outlets: bt }] + ); + } + if (Ve.segmentPath) return [...Te, Ve.segmentPath]; + } + return "string" != typeof Ve + ? [...Te, Ve] + : 0 === it + ? (Ve.split("/").forEach((bt, zt) => { + (0 == zt && "." === bt) || + (0 == zt && "" === bt + ? (q = !0) + : ".." === bt + ? oe++ + : "" != bt && Te.push(bt)); + }), + Te) + : [...Te, Ve]; + }, []); + return new Xn(q, oe, Ce); + })(q); + if (Ve.toRoot()) return Mi(oe.root, new Qe([], {}), oe, Ce, Te); + const it = (function (me, oe, q) { + if (me.isAbsolute) return new Gi(oe.root, !0, 0); + if (-1 === q.snapshot._lastPathIndex) { + const Ve = q.snapshot._urlSegment; + return new Gi(Ve, Ve === oe.root, 0); + } + const Ce = Qn(me.commands[0]) ? 0 : 1; + return (function (me, oe, q) { + let Ce = me, + Te = oe, + Ve = q; + for (; Ve > Te; ) { + if (((Ve -= Te), (Ce = Ce.parent), !Ce)) + throw new Error("Invalid number of '../'"); + Te = Ce.segments.length; + } + return new Gi(Ce, !1, Te - Ve); + })( + q.snapshot._urlSegment, + q.snapshot._lastPathIndex + Ce, + me.numberOfDoubleDots + ); + })(Ve, oe, me), + bt = it.processChildren + ? qi(it.segmentGroup, it.index, Ve.commands) + : Rn(it.segmentGroup, it.index, Ve.commands); + return Mi(it.segmentGroup, bt, oe, Ce, Te); + })(vn, this.currentUrlTree, q, Dn, null != fi ? fi : null) + ); + } + navigateByUrl(q, Ce = { skipLocationChange: !1 }) { + const Te = Li(q) ? q : this.parseUrl(q), + Ve = this.urlHandlingStrategy.merge(Te, this.rawUrlTree); + return this.scheduleNavigation(Ve, "imperative", null, Ce); + } + navigate(q, Ce = { skipLocationChange: !1 }) { + return ( + (function (me) { + for (let oe = 0; oe < me.length; oe++) { + const q = me[oe]; + if (null == q) + throw new Error( + `The requested path contains ${q} segment at index ${oe}` + ); + } + })(q), + this.navigateByUrl(this.createUrlTree(q, Ce), Ce) + ); + } + serializeUrl(q) { + return this.urlSerializer.serialize(q); + } + parseUrl(q) { + let Ce; + try { + Ce = this.urlSerializer.parse(q); + } catch (Te) { + Ce = this.malformedUriErrorHandler(Te, this.urlSerializer, q); + } + return Ce; + } + isActive(q, Ce) { + let Te; + if ( + ((Te = + !0 === Ce + ? Object.assign({}, mn) + : !1 === Ce + ? Object.assign({}, Mn) + : Ce), + Li(q)) + ) + return St(this.currentUrlTree, q, Te); + const Ve = this.parseUrl(q); + return St(this.currentUrlTree, Ve, Te); + } + removeEmptyProps(q) { + return Object.keys(q).reduce((Ce, Te) => { + const Ve = q[Te]; + return null != Ve && (Ce[Te] = Ve), Ce; + }, {}); + } + processNavigations() { + this.navigations.subscribe( + (q) => { + (this.navigated = !0), + (this.lastSuccessfulId = q.id), + (this.currentPageId = q.targetPageId), + this.events.next( + new $( + q.id, + this.serializeUrl(q.extractedUrl), + this.serializeUrl(this.currentUrlTree) + ) + ), + (this.lastSuccessfulNavigation = this.currentNavigation), + q.resolve(!0); + }, + (q) => { + this.console.warn(`Unhandled Navigation Error: ${q}`); + } + ); + } + scheduleNavigation(q, Ce, Te, Ve, it) { + var bt, zt, vn; + if (this.disposed) return Promise.resolve(!1); + const fi = this.transitions.value, + Dn = ii(Ce) && fi && !ii(fi.source), + vi = fi.rawUrl.toString() === q.toString(), + Di = + fi.id === + (null === (bt = this.currentNavigation) || void 0 === bt + ? void 0 + : bt.id); + if (Dn && vi && Di) return Promise.resolve(!0); + let Gr, fs, ps; + it + ? ((Gr = it.resolve), (fs = it.reject), (ps = it.promise)) + : (ps = new Promise((Rs, ua) => { + (Gr = Rs), (fs = ua); + })); + const eo = ++this.navigationId; + let ss; + return ( + "computed" === this.canceledNavigationResolution + ? (0 === this.currentPageId && (Te = this.location.getState()), + (ss = + Te && Te.ɵrouterPageId + ? Te.ɵrouterPageId + : Ve.replaceUrl || Ve.skipLocationChange + ? null !== (zt = this.browserPageId) && void 0 !== zt + ? zt + : 0 + : (null !== (vn = this.browserPageId) && void 0 !== vn + ? vn + : 0) + 1)) + : (ss = 0), + this.setTransition({ + id: eo, + targetPageId: ss, + source: Ce, + restoredState: Te, + currentUrlTree: this.currentUrlTree, + currentRawUrl: this.rawUrlTree, + rawUrl: q, + extras: Ve, + resolve: Gr, + reject: fs, + promise: ps, + currentSnapshot: this.routerState.snapshot, + currentRouterState: this.routerState, + }), + ps.catch((Rs) => Promise.reject(Rs)) + ); + } + setBrowserUrl(q, Ce) { + const Te = this.urlSerializer.serialize(q), + Ve = Object.assign( + Object.assign({}, Ce.extras.state), + this.generateNgRouterState(Ce.id, Ce.targetPageId) + ); + this.location.isCurrentPathEqualTo(Te) || Ce.extras.replaceUrl + ? this.location.replaceState(Te, "", Ve) + : this.location.go(Te, "", Ve); + } + restoreHistory(q, Ce = !1) { + var Te, Ve; + if ("computed" === this.canceledNavigationResolution) { + const it = this.currentPageId - q.targetPageId; + ("popstate" !== q.source && + "eager" !== this.urlUpdateStrategy && + this.currentUrlTree !== + (null === (Te = this.currentNavigation) || void 0 === Te + ? void 0 + : Te.finalUrl)) || + 0 === it + ? this.currentUrlTree === + (null === (Ve = this.currentNavigation) || void 0 === Ve + ? void 0 + : Ve.finalUrl) && + 0 === it && + (this.resetState(q), + (this.browserUrlTree = q.currentUrlTree), + this.resetUrlToCurrentUrlTree()) + : this.location.historyGo(it); + } else + "replace" === this.canceledNavigationResolution && + (Ce && this.resetState(q), this.resetUrlToCurrentUrlTree()); + } + resetState(q) { + (this.routerState = q.currentRouterState), + (this.currentUrlTree = q.currentUrlTree), + (this.rawUrlTree = this.urlHandlingStrategy.merge( + this.currentUrlTree, + q.rawUrl + )); + } + resetUrlToCurrentUrlTree() { + this.location.replaceState( + this.urlSerializer.serialize(this.rawUrlTree), + "", + this.generateNgRouterState( + this.lastSuccessfulId, + this.currentPageId + ) + ); + } + cancelNavigationTransition(q, Ce) { + const Te = new J(q.id, this.serializeUrl(q.extractedUrl), Ce); + this.triggerEvent(Te), q.resolve(!1); + } + generateNgRouterState(q, Ce) { + return "computed" === this.canceledNavigationResolution + ? { navigationId: q, ɵrouterPageId: Ce } + : { navigationId: q }; + } + } + return ( + (me.ɵfac = function (q) { + n.ɵɵinvalidFactory(); + }), + (me.ɵprov = n.ɵɵdefineInjectable({ token: me, factory: me.ɵfac })), + me + ); + })(); + function ii(me) { + return "imperative" !== me; + } + let Hi = (() => { + class me { + constructor(q, Ce, Te, Ve, it) { + (this.router = q), + (this.route = Ce), + (this.tabIndexAttribute = Te), + (this.renderer = Ve), + (this.el = it), + (this.commands = null), + (this.onChanges = new c.xQ()), + this.setTabIndexIfNotOnNativeEl("0"); + } + setTabIndexIfNotOnNativeEl(q) { + if (null != this.tabIndexAttribute) return; + const Ce = this.renderer, + Te = this.el.nativeElement; + null !== q + ? Ce.setAttribute(Te, "tabindex", q) + : Ce.removeAttribute(Te, "tabindex"); + } + ngOnChanges(q) { + this.onChanges.next(this); + } + set routerLink(q) { + null != q + ? ((this.commands = Array.isArray(q) ? q : [q]), + this.setTabIndexIfNotOnNativeEl("0")) + : ((this.commands = null), + this.setTabIndexIfNotOnNativeEl(null)); + } + onClick() { + if (null === this.urlTree) return !0; + const q = { + skipLocationChange: dr(this.skipLocationChange), + replaceUrl: dr(this.replaceUrl), + state: this.state, + }; + return this.router.navigateByUrl(this.urlTree, q), !0; + } + get urlTree() { + return null === this.commands + ? null + : this.router.createUrlTree(this.commands, { + relativeTo: + void 0 !== this.relativeTo ? this.relativeTo : this.route, + queryParams: this.queryParams, + fragment: this.fragment, + queryParamsHandling: this.queryParamsHandling, + preserveFragment: dr(this.preserveFragment), + }); + } + } + return ( + (me.ɵfac = function (q) { + return new (q || me)( + n.ɵɵdirectiveInject(En), + n.ɵɵdirectiveInject(B), + n.ɵɵinjectAttribute("tabindex"), + n.ɵɵdirectiveInject(n.Renderer2), + n.ɵɵdirectiveInject(n.ElementRef) + ); + }), + (me.ɵdir = n.ɵɵdefineDirective({ + type: me, + selectors: [["", "routerLink", "", 5, "a", 5, "area"]], + hostBindings: function (q, Ce) { + 1 & q && + n.ɵɵlistener("click", function () { + return Ce.onClick(); + }); + }, + inputs: { + queryParams: "queryParams", + fragment: "fragment", + queryParamsHandling: "queryParamsHandling", + preserveFragment: "preserveFragment", + skipLocationChange: "skipLocationChange", + replaceUrl: "replaceUrl", + state: "state", + relativeTo: "relativeTo", + routerLink: "routerLink", + }, + features: [n.ɵɵNgOnChangesFeature], + })), + me + ); + })(), + Zn = (() => { + class me { + constructor(q, Ce, Te) { + (this.router = q), + (this.route = Ce), + (this.locationStrategy = Te), + (this.commands = null), + (this.href = null), + (this.onChanges = new c.xQ()), + (this.subscription = q.events.subscribe((Ve) => { + Ve instanceof $ && this.updateTargetUrlAndHref(); + })); + } + set routerLink(q) { + this.commands = null != q ? (Array.isArray(q) ? q : [q]) : null; + } + ngOnChanges(q) { + this.updateTargetUrlAndHref(), this.onChanges.next(this); + } + ngOnDestroy() { + this.subscription.unsubscribe(); + } + onClick(q, Ce, Te, Ve, it) { + if ( + 0 !== q || + Ce || + Te || + Ve || + it || + ("string" == typeof this.target && "_self" != this.target) || + null === this.urlTree + ) + return !0; + const bt = { + skipLocationChange: dr(this.skipLocationChange), + replaceUrl: dr(this.replaceUrl), + state: this.state, + }; + return this.router.navigateByUrl(this.urlTree, bt), !1; + } + updateTargetUrlAndHref() { + this.href = + null !== this.urlTree + ? this.locationStrategy.prepareExternalUrl( + this.router.serializeUrl(this.urlTree) + ) + : null; + } + get urlTree() { + return null === this.commands + ? null + : this.router.createUrlTree(this.commands, { + relativeTo: + void 0 !== this.relativeTo ? this.relativeTo : this.route, + queryParams: this.queryParams, + fragment: this.fragment, + queryParamsHandling: this.queryParamsHandling, + preserveFragment: dr(this.preserveFragment), + }); + } + } + return ( + (me.ɵfac = function (q) { + return new (q || me)( + n.ɵɵdirectiveInject(En), + n.ɵɵdirectiveInject(B), + n.ɵɵdirectiveInject(Y.LocationStrategy) + ); + }), + (me.ɵdir = n.ɵɵdefineDirective({ + type: me, + selectors: [ + ["a", "routerLink", ""], + ["area", "routerLink", ""], + ], + hostVars: 2, + hostBindings: function (q, Ce) { + 1 & q && + n.ɵɵlistener("click", function (Ve) { + return Ce.onClick( + Ve.button, + Ve.ctrlKey, + Ve.shiftKey, + Ve.altKey, + Ve.metaKey + ); + }), + 2 & q && + n.ɵɵattribute("target", Ce.target)( + "href", + Ce.href, + n.ɵɵsanitizeUrl + ); + }, + inputs: { + target: "target", + queryParams: "queryParams", + fragment: "fragment", + queryParamsHandling: "queryParamsHandling", + preserveFragment: "preserveFragment", + skipLocationChange: "skipLocationChange", + replaceUrl: "replaceUrl", + state: "state", + relativeTo: "relativeTo", + routerLink: "routerLink", + }, + features: [n.ɵɵNgOnChangesFeature], + })), + me + ); + })(); + function dr(me) { + return "" === me || !!me; + } + let Si = (() => { + class me { + constructor(q, Ce, Te, Ve, it, bt) { + (this.router = q), + (this.element = Ce), + (this.renderer = Te), + (this.cdr = Ve), + (this.link = it), + (this.linkWithHref = bt), + (this.classes = []), + (this.isActive = !1), + (this.routerLinkActiveOptions = { exact: !1 }), + (this.isActiveChange = new n.EventEmitter()), + (this.routerEventsSubscription = q.events.subscribe((zt) => { + zt instanceof $ && this.update(); + })); + } + ngAfterContentInit() { + (0, _.of)( + this.links.changes, + this.linksWithHrefs.changes, + (0, _.of)(null) + ) + .pipe((0, ie.J)()) + .subscribe((q) => { + this.update(), this.subscribeToEachLinkOnChanges(); + }); + } + subscribeToEachLinkOnChanges() { + var q; + null === (q = this.linkInputChangesSubscription) || + void 0 === q || + q.unsubscribe(); + const Ce = [ + ...this.links.toArray(), + ...this.linksWithHrefs.toArray(), + this.link, + this.linkWithHref, + ] + .filter((Te) => !!Te) + .map((Te) => Te.onChanges); + this.linkInputChangesSubscription = (0, f.D)(Ce) + .pipe((0, ie.J)()) + .subscribe((Te) => { + this.isActive !== this.isLinkActive(this.router)(Te) && + this.update(); + }); + } + set routerLinkActive(q) { + const Ce = Array.isArray(q) ? q : q.split(" "); + this.classes = Ce.filter((Te) => !!Te); + } + ngOnChanges(q) { + this.update(); + } + ngOnDestroy() { + var q; + this.routerEventsSubscription.unsubscribe(), + null === (q = this.linkInputChangesSubscription) || + void 0 === q || + q.unsubscribe(); + } + update() { + !this.links || + !this.linksWithHrefs || + !this.router.navigated || + Promise.resolve().then(() => { + const q = this.hasActiveLinks(); + this.isActive !== q && + ((this.isActive = q), + this.cdr.markForCheck(), + this.classes.forEach((Ce) => { + q + ? this.renderer.addClass(this.element.nativeElement, Ce) + : this.renderer.removeClass( + this.element.nativeElement, + Ce + ); + }), + this.isActiveChange.emit(q)); + }); + } + isLinkActive(q) { + const Ce = (function (me) { + return !!me.paths; + })(this.routerLinkActiveOptions) + ? this.routerLinkActiveOptions + : this.routerLinkActiveOptions.exact || !1; + return (Te) => !!Te.urlTree && q.isActive(Te.urlTree, Ce); + } + hasActiveLinks() { + const q = this.isLinkActive(this.router); + return ( + (this.link && q(this.link)) || + (this.linkWithHref && q(this.linkWithHref)) || + this.links.some(q) || + this.linksWithHrefs.some(q) + ); + } + } + return ( + (me.ɵfac = function (q) { + return new (q || me)( + n.ɵɵdirectiveInject(En), + n.ɵɵdirectiveInject(n.ElementRef), + n.ɵɵdirectiveInject(n.Renderer2), + n.ɵɵdirectiveInject(n.ChangeDetectorRef), + n.ɵɵdirectiveInject(Hi, 8), + n.ɵɵdirectiveInject(Zn, 8) + ); + }), + (me.ɵdir = n.ɵɵdefineDirective({ + type: me, + selectors: [["", "routerLinkActive", ""]], + contentQueries: function (q, Ce, Te) { + if ( + (1 & q && + (n.ɵɵcontentQuery(Te, Hi, 5), n.ɵɵcontentQuery(Te, Zn, 5)), + 2 & q) + ) { + let Ve; + n.ɵɵqueryRefresh((Ve = n.ɵɵloadQuery())) && (Ce.links = Ve), + n.ɵɵqueryRefresh((Ve = n.ɵɵloadQuery())) && + (Ce.linksWithHrefs = Ve); + } + }, + inputs: { + routerLinkActiveOptions: "routerLinkActiveOptions", + routerLinkActive: "routerLinkActive", + }, + outputs: { isActiveChange: "isActiveChange" }, + exportAs: ["routerLinkActive"], + features: [n.ɵɵNgOnChangesFeature], + })), + me + ); + })(); + class ws {} + class or { + preload(oe, q) { + return q().pipe((0, O.K)(() => (0, _.of)(null))); + } + } + class ar { + preload(oe, q) { + return (0, _.of)(null); + } + } + let Ir = (() => { + class me { + constructor(q, Ce, Te, Ve) { + (this.router = q), + (this.injector = Te), + (this.preloadingStrategy = Ve), + (this.loader = new Pr( + Te, + Ce, + (zt) => q.triggerEvent(new Je(zt)), + (zt) => q.triggerEvent(new gt(zt)) + )); + } + setUpPreloading() { + this.subscription = this.router.events + .pipe( + (0, T.h)((q) => q instanceof $), + (0, M.b)(() => this.preload()) + ) + .subscribe(() => {}); + } + preload() { + const q = this.injector.get(n.NgModuleRef); + return this.processRoutes(q, this.router.config); + } + ngOnDestroy() { + this.subscription && this.subscription.unsubscribe(); + } + processRoutes(q, Ce) { + const Te = []; + for (const Ve of Ce) + if (Ve.loadChildren && !Ve.canLoad && Ve._loadedConfig) { + const it = Ve._loadedConfig; + Te.push(this.processRoutes(it.module, it.routes)); + } else + Ve.loadChildren && !Ve.canLoad + ? Te.push(this.preloadConfig(q, Ve)) + : Ve.children && + Te.push(this.processRoutes(q, Ve.children)); + return (0, f.D)(Te).pipe( + (0, ie.J)(), + (0, l.U)((Ve) => {}) + ); + } + preloadConfig(q, Ce) { + return this.preloadingStrategy.preload(Ce, () => + (Ce._loadedConfig + ? (0, _.of)(Ce._loadedConfig) + : this.loader.load(q.injector, Ce) + ).pipe( + (0, w.zg)( + (Ve) => ( + (Ce._loadedConfig = Ve), + this.processRoutes(Ve.module, Ve.routes) + ) + ) + ) + ); + } + } + return ( + (me.ɵfac = function (q) { + return new (q || me)( + n.ɵɵinject(En), + n.ɵɵinject(n.Compiler), + n.ɵɵinject(n.Injector), + n.ɵɵinject(ws) + ); + }), + (me.ɵprov = n.ɵɵdefineInjectable({ token: me, factory: me.ɵfac })), + me + ); + })(), + _r = (() => { + class me { + constructor(q, Ce, Te = {}) { + (this.router = q), + (this.viewportScroller = Ce), + (this.options = Te), + (this.lastId = 0), + (this.lastSource = "imperative"), + (this.restoredId = 0), + (this.store = {}), + (Te.scrollPositionRestoration = + Te.scrollPositionRestoration || "disabled"), + (Te.anchorScrolling = Te.anchorScrolling || "disabled"); + } + init() { + "disabled" !== this.options.scrollPositionRestoration && + this.viewportScroller.setHistoryScrollRestoration("manual"), + (this.routerEventsSubscription = this.createScrollEvents()), + (this.scrollEventsSubscription = this.consumeScrollEvents()); + } + createScrollEvents() { + return this.router.events.subscribe((q) => { + q instanceof ee + ? ((this.store[ + this.lastId + ] = this.viewportScroller.getScrollPosition()), + (this.lastSource = q.navigationTrigger), + (this.restoredId = q.restoredState + ? q.restoredState.navigationId + : 0)) + : q instanceof $ && + ((this.lastId = q.id), + this.scheduleScrollEvent( + q, + this.router.parseUrl(q.urlAfterRedirects).fragment + )); + }); + } + consumeScrollEvents() { + return this.router.events.subscribe((q) => { + q instanceof vt && + (q.position + ? "top" === this.options.scrollPositionRestoration + ? this.viewportScroller.scrollToPosition([0, 0]) + : "enabled" === this.options.scrollPositionRestoration && + this.viewportScroller.scrollToPosition(q.position) + : q.anchor && "enabled" === this.options.anchorScrolling + ? this.viewportScroller.scrollToAnchor(q.anchor) + : "disabled" !== this.options.scrollPositionRestoration && + this.viewportScroller.scrollToPosition([0, 0])); + }); + } + scheduleScrollEvent(q, Ce) { + this.router.triggerEvent( + new vt( + q, + "popstate" === this.lastSource + ? this.store[this.restoredId] + : null, + Ce + ) + ); + } + ngOnDestroy() { + this.routerEventsSubscription && + this.routerEventsSubscription.unsubscribe(), + this.scrollEventsSubscription && + this.scrollEventsSubscription.unsubscribe(); + } + } + return ( + (me.ɵfac = function (q) { + n.ɵɵinvalidFactory(); + }), + (me.ɵprov = n.ɵɵdefineInjectable({ token: me, factory: me.ɵfac })), + me + ); + })(); + const Br = new n.InjectionToken("ROUTER_CONFIGURATION"), + Vs = new n.InjectionToken("ROUTER_FORROOT_GUARD"), + qs = [ + Y.Location, + { provide: Se, useClass: te }, + { + provide: En, + useFactory: function (me, oe, q, Ce, Te, Ve, it = {}, bt, zt) { + const vn = new En(null, me, oe, q, Ce, Te, D(Ve)); + return ( + bt && (vn.urlHandlingStrategy = bt), + zt && (vn.routeReuseStrategy = zt), + z(it, vn), + it.enableTracing && + vn.events.subscribe((fi) => { + var Dn, vi; + null === (Dn = console.group) || + void 0 === Dn || + Dn.call(console, `Router Event: ${fi.constructor.name}`), + console.log(fi.toString()), + console.log(fi), + null === (vi = console.groupEnd) || + void 0 === vi || + vi.call(console); + }), + vn + ); + }, + deps: [ + Se, + hr, + Y.Location, + n.Injector, + n.Compiler, + zi, + Br, + [ys, new n.Optional()], + [fr, new n.Optional()], + ], + }, + hr, + { + provide: B, + useFactory: function (me) { + return me.routerState.root; + }, + deps: [En], + }, + Ir, + ar, + or, + { provide: Br, useValue: { enableTracing: !1 } }, + ]; + function ns() { + return new n.NgProbeToken("Router", En); + } + let rs = (() => { + class me { + constructor(q, Ce) {} + static forRoot(q, Ce) { + return { + ngModule: me, + providers: [ + qs, + Ss(q), + { + provide: Vs, + useFactory: Ms, + deps: [[En, new n.Optional(), new n.SkipSelf()]], + }, + { provide: Br, useValue: Ce || {} }, + { + provide: Y.LocationStrategy, + useFactory: Js, + deps: [ + Y.PlatformLocation, + [new n.Inject(Y.APP_BASE_HREF), new n.Optional()], + Br, + ], + }, + { + provide: _r, + useFactory: $s, + deps: [En, Y.ViewportScroller, Br], + }, + { + provide: ws, + useExisting: + Ce && Ce.preloadingStrategy ? Ce.preloadingStrategy : ar, + }, + { provide: n.NgProbeToken, multi: !0, useFactory: ns }, + [ + je, + { + provide: n.APP_INITIALIZER, + multi: !0, + useFactory: Mt, + deps: [je], + }, + { provide: ln, useFactory: jt, deps: [je] }, + { + provide: n.APP_BOOTSTRAP_LISTENER, + multi: !0, + useExisting: ln, + }, + ], + ], + }; + } + static forChild(q) { + return { ngModule: me, providers: [Ss(q)] }; + } + } + return ( + (me.ɵfac = function (q) { + return new (q || me)(n.ɵɵinject(Vs, 8), n.ɵɵinject(En, 8)); + }), + (me.ɵmod = n.ɵɵdefineNgModule({ type: me })), + (me.ɵinj = n.ɵɵdefineInjector({})), + me + ); + })(); + function $s(me, oe, q) { + return ( + q.scrollOffset && oe.setOffset(q.scrollOffset), new _r(me, oe, q) + ); + } + function Js(me, oe, q = {}) { + return q.useHash + ? new Y.HashLocationStrategy(me, oe) + : new Y.PathLocationStrategy(me, oe); + } + function Ms(me) { + return "guarded"; + } + function Ss(me) { + return [ + { provide: n.ANALYZE_FOR_ENTRY_COMPONENTS, multi: !0, useValue: me }, + { provide: zi, multi: !0, useValue: me }, + ]; + } + function z(me, oe) { + me.errorHandler && (oe.errorHandler = me.errorHandler), + me.malformedUriErrorHandler && + (oe.malformedUriErrorHandler = me.malformedUriErrorHandler), + me.onSameUrlNavigation && + (oe.onSameUrlNavigation = me.onSameUrlNavigation), + me.paramsInheritanceStrategy && + (oe.paramsInheritanceStrategy = me.paramsInheritanceStrategy), + me.relativeLinkResolution && + (oe.relativeLinkResolution = me.relativeLinkResolution), + me.urlUpdateStrategy && (oe.urlUpdateStrategy = me.urlUpdateStrategy), + me.canceledNavigationResolution && + (oe.canceledNavigationResolution = me.canceledNavigationResolution); + } + let je = (() => { + class me { + constructor(q) { + (this.injector = q), + (this.initNavigation = !1), + (this.destroyed = !1), + (this.resultOfPreactivationDone = new c.xQ()); + } + appInitializer() { + return this.injector + .get(Y.LOCATION_INITIALIZED, Promise.resolve(null)) + .then(() => { + if (this.destroyed) return Promise.resolve(!0); + let Ce = null; + const Te = new Promise((bt) => (Ce = bt)), + Ve = this.injector.get(En), + it = this.injector.get(Br); + return ( + "disabled" === it.initialNavigation + ? (Ve.setUpLocationChangeListener(), Ce(!0)) + : "enabled" === it.initialNavigation || + "enabledBlocking" === it.initialNavigation + ? ((Ve.hooks.afterPreactivation = () => + this.initNavigation + ? (0, _.of)(null) + : ((this.initNavigation = !0), + Ce(!0), + this.resultOfPreactivationDone)), + Ve.initialNavigation()) + : Ce(!0), + Te + ); + }); + } + bootstrapListener(q) { + const Ce = this.injector.get(Br), + Te = this.injector.get(Ir), + Ve = this.injector.get(_r), + it = this.injector.get(En), + bt = this.injector.get(n.ApplicationRef); + q === bt.components[0] && + (("enabledNonBlocking" === Ce.initialNavigation || + void 0 === Ce.initialNavigation) && + it.initialNavigation(), + Te.setUpPreloading(), + Ve.init(), + it.resetRootComponentType(bt.componentTypes[0]), + this.resultOfPreactivationDone.next(null), + this.resultOfPreactivationDone.complete()); + } + ngOnDestroy() { + this.destroyed = !0; + } + } + return ( + (me.ɵfac = function (q) { + return new (q || me)(n.ɵɵinject(n.Injector)); + }), + (me.ɵprov = n.ɵɵdefineInjectable({ token: me, factory: me.ɵfac })), + me + ); + })(); + function Mt(me) { + return me.appInitializer.bind(me); + } + function jt(me) { + return me.bootstrapListener.bind(me); + } + const ln = new n.InjectionToken("Router Initializer"), + Ki = new n.Version("13.1.1"); + }, + 6114: ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + "use strict"; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + AUTH_CONFIG: () => AUTH_CONFIG, + AbstractValidationHandler: () => AbstractValidationHandler, + AuthConfig: () => AuthConfig, + DateTimeProvider: () => DateTimeProvider, + DefaultHashHandler: () => DefaultHashHandler, + DefaultOAuthInterceptor: () => DefaultOAuthInterceptor, + HashHandler: () => HashHandler, + JwksValidationHandler: () => JwksValidationHandler, + LoginOptions: () => LoginOptions, + MemoryStorage: () => MemoryStorage, + NullValidationHandler: () => NullValidationHandler, + OAuthErrorEvent: () => OAuthErrorEvent, + OAuthEvent: () => OAuthEvent, + OAuthInfoEvent: () => OAuthInfoEvent, + OAuthLogger: () => OAuthLogger, + OAuthModule: () => OAuthModule, + OAuthModuleConfig: () => OAuthModuleConfig, + OAuthNoopResourceServerErrorHandler: () => + OAuthNoopResourceServerErrorHandler, + OAuthResourceServerConfig: () => OAuthResourceServerConfig, + OAuthResourceServerErrorHandler: () => + OAuthResourceServerErrorHandler, + OAuthService: () => OAuthService, + OAuthStorage: () => OAuthStorage, + OAuthSuccessEvent: () => OAuthSuccessEvent, + ReceivedTokens: () => ReceivedTokens, + SystemDateTimeProvider: () => SystemDateTimeProvider, + UrlHelperService: () => UrlHelperService, + ValidationHandler: () => ValidationHandler, + }); + var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5e3), + _angular_common__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__( + 9808 + ), + _angular_common_http__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__( + 520 + ), + tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(655), + rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8929), + rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1086), + rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(5254), + rxjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(1946), + rxjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(1737), + rxjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(6053), + rxjs__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(6787), + rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2198), + rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2868), + rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13), + rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(943), + rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__( + 7545 + ), + rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__( + 4850 + ), + rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__( + 7224 + ), + rxjs_operators__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__( + 7221 + ), + rxjs_operators__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(7e3), + rxjs_operators__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__( + 2986 + ), + rxjs_operators__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__( + 1709 + ), + fast_sha256__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1302); + class DateTimeProvider {} + let SystemDateTimeProvider = (() => { + class ye extends DateTimeProvider { + now() { + return Date.now(); + } + new() { + return new Date(); + } + } + return ( + (ye.ɵfac = (function () { + let j; + return function (n) { + return ( + j || + (j = _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵgetInheritedFactory( + ye + )) + )(n || ye); + }; + })()), + (ye.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵdefineInjectable( + { token: ye, factory: ye.ɵfac } + )), + ye + ); + })(); + class LoginOptions { + constructor() { + (this.disableNonceCheck = !1), (this.preventClearHashAfterLogin = !1); + } + } + class OAuthLogger {} + class OAuthStorage {} + let MemoryStorage = (() => { + class ye { + constructor() { + this.data = new Map(); + } + getItem(p) { + return this.data.get(p); + } + removeItem(p) { + this.data.delete(p); + } + setItem(p, n) { + this.data.set(p, n); + } + } + return ( + (ye.ɵfac = function (p) { + return new (p || ye)(); + }), + (ye.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵdefineInjectable( + { token: ye, factory: ye.ɵfac } + )), + ye + ); + })(); + class ReceivedTokens {} + class OAuthEvent { + constructor(j) { + this.type = j; + } + } + class OAuthSuccessEvent extends OAuthEvent { + constructor(j, p = null) { + super(j), (this.info = p); + } + } + class OAuthInfoEvent extends OAuthEvent { + constructor(j, p = null) { + super(j), (this.info = p); + } + } + class OAuthErrorEvent extends OAuthEvent { + constructor(j, p, n = null) { + super(j), (this.reason = p), (this.params = n); + } + } + function b64DecodeUnicode(ye) { + const j = ye.replace(/\-/g, "+").replace(/\_/g, "/"); + return decodeURIComponent( + atob(j) + .split("") + .map(function (p) { + return "%" + ("00" + p.charCodeAt(0).toString(16)).slice(-2); + }) + .join("") + ); + } + function base64UrlEncode(ye) { + return btoa(ye) + .replace(/\+/g, "-") + .replace(/\//g, "_") + .replace(/=/g, ""); + } + class AuthConfig { + constructor(j) { + (this.clientId = ""), + (this.redirectUri = ""), + (this.postLogoutRedirectUri = ""), + (this.redirectUriAsPostLogoutRedirectUriFallback = !0), + (this.loginUrl = ""), + (this.scope = "openid profile"), + (this.resource = ""), + (this.rngUrl = ""), + (this.oidc = !0), + (this.requestAccessToken = !0), + (this.options = null), + (this.issuer = ""), + (this.logoutUrl = ""), + (this.clearHashAfterLogin = !0), + (this.tokenEndpoint = null), + (this.revocationEndpoint = null), + (this.customTokenParameters = []), + (this.userinfoEndpoint = null), + (this.responseType = ""), + (this.showDebugInformation = !1), + (this.silentRefreshRedirectUri = ""), + (this.silentRefreshMessagePrefix = ""), + (this.silentRefreshShowIFrame = !1), + (this.siletRefreshTimeout = 2e4), + (this.silentRefreshTimeout = 2e4), + (this.dummyClientSecret = null), + (this.requireHttps = "remoteOnly"), + (this.strictDiscoveryDocumentValidation = !0), + (this.jwks = null), + (this.customQueryParams = null), + (this.silentRefreshIFrameName = + "angular-oauth-oidc-silent-refresh-iframe"), + (this.timeoutFactor = 0.75), + (this.sessionChecksEnabled = !1), + (this.sessionCheckIntervall = 3e3), + (this.sessionCheckIFrameUrl = null), + (this.sessionCheckIFrameName = + "angular-oauth-oidc-check-session-iframe"), + (this.disableAtHashCheck = !1), + (this.skipSubjectCheck = !1), + (this.useIdTokenHintForSilentRefresh = !1), + (this.skipIssuerCheck = !1), + (this.nonceStateSeparator = ";"), + (this.useHttpBasicAuth = !1), + (this.waitForTokenInMsec = 0), + (this.disablePKCE = !1), + (this.preserveRequestedRoute = !1), + (this.openUri = (p) => { + location.href = p; + }), + j && Object.assign(this, j); + } + } + class WebHttpUrlEncodingCodec { + encodeKey(j) { + return encodeURIComponent(j); + } + encodeValue(j) { + return encodeURIComponent(j); + } + decodeKey(j) { + return decodeURIComponent(j); + } + decodeValue(j) { + return decodeURIComponent(j); + } + } + class ValidationHandler {} + class AbstractValidationHandler { + validateAtHash(j) { + return (0, tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)( + this, + void 0, + void 0, + function* () { + let p = this.inferHashAlgorithm(j.idTokenHeader), + n = yield this.calcHash(j.accessToken, p), + _ = base64UrlEncode(n.substr(0, n.length / 2)), + m = j.idTokenClaims.at_hash.replace(/=/g, ""); + return ( + _ !== m && + (console.error("exptected at_hash: " + _), + console.error("actual at_hash: " + m)), + _ === m + ); + } + ); + } + inferHashAlgorithm(j) { + let p = j.alg; + if (!p.match(/^.S[0-9]{3}$/)) + throw new Error("Algorithm not supported: " + p); + return "sha-" + p.substr(2); + } + } + let UrlHelperService = (() => { + class ye { + getHashFragmentParams(p) { + let n = p || window.location.hash; + if (((n = decodeURIComponent(n)), 0 !== n.indexOf("#"))) return {}; + const f = n.indexOf("?"); + return (n = n.substr(f > -1 ? f + 1 : 1)), this.parseQueryString(n); + } + parseQueryString(p) { + const n = {}; + let f, _, m, s, d, u, h; + if (null === p) return n; + f = p.split("&"); + for (let r = 0; r < f.length; r++) + (_ = f[r]), + (m = _.indexOf("=")), + -1 === m + ? ((s = _), (d = null)) + : ((s = _.substr(0, m)), (d = _.substr(m + 1))), + (u = decodeURIComponent(s)), + (h = decodeURIComponent(d)), + "/" === u.substr(0, 1) && (u = u.substr(1)), + (n[u] = h); + return n; + } + } + return ( + (ye.ɵfac = function (p) { + return new (p || ye)(); + }), + (ye.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵdefineInjectable( + { token: ye, factory: ye.ɵfac } + )), + ye + ); + })(); + function factory() { + var ERROR = "input is invalid type", + WINDOW = "object" == typeof window, + root = WINDOW ? window : {}; + root.JS_SHA256_NO_WINDOW && (WINDOW = !1); + var WEB_WORKER = !WINDOW && "object" == typeof self, + NODE_JS = + !root.JS_SHA256_NO_NODE_JS && + "object" == typeof process && + process.versions && + process.versions.node; + NODE_JS ? (root = global) : WEB_WORKER && (root = self); + var COMMON_JS = + !root.JS_SHA256_NO_COMMON_JS && + "object" == typeof module && + module.exports, + AMD = "function" == typeof define && define.amd, + ARRAY_BUFFER = + !root.JS_SHA256_NO_ARRAY_BUFFER && + "undefined" != typeof ArrayBuffer; + const HEX_CHARS = "0123456789abcdef".split(""), + EXTRA = [-2147483648, 8388608, 32768, 128], + SHIFT = [24, 16, 8, 0], + K = [ + 1116352408, + 1899447441, + 3049323471, + 3921009573, + 961987163, + 1508970993, + 2453635748, + 2870763221, + 3624381080, + 310598401, + 607225278, + 1426881987, + 1925078388, + 2162078206, + 2614888103, + 3248222580, + 3835390401, + 4022224774, + 264347078, + 604807628, + 770255983, + 1249150122, + 1555081692, + 1996064986, + 2554220882, + 2821834349, + 2952996808, + 3210313671, + 3336571891, + 3584528711, + 113926993, + 338241895, + 666307205, + 773529912, + 1294757372, + 1396182291, + 1695183700, + 1986661051, + 2177026350, + 2456956037, + 2730485921, + 2820302411, + 3259730800, + 3345764771, + 3516065817, + 3600352804, + 4094571909, + 275423344, + 430227734, + 506948616, + 659060556, + 883997877, + 958139571, + 1322822218, + 1537002063, + 1747873779, + 1955562222, + 2024104815, + 2227730452, + 2361852424, + 2428436474, + 2756734187, + 3204031479, + 3329325298, + ], + OUTPUT_TYPES = ["hex", "array", "digest", "arrayBuffer"]; + var blocks = []; + (root.JS_SHA256_NO_NODE_JS || !Array.isArray) && + (Array.isArray = function (ye) { + return "[object Array]" === Object.prototype.toString.call(ye); + }), + ARRAY_BUFFER && + (root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && + (ArrayBuffer.isView = function (ye) { + return ( + "object" == typeof ye && + ye.buffer && + ye.buffer.constructor === ArrayBuffer + ); + }); + var createOutputMethod = function (ye, j) { + return function (p) { + return new Sha256(j, !0).update(p)[ye](); + }; + }, + createMethod = function (ye) { + var j = createOutputMethod("hex", ye); + NODE_JS && (j = nodeWrap(j, ye)), + (j.create = function () { + return new Sha256(ye); + }), + (j.update = function (f) { + return j.create().update(f); + }); + for (var p = 0; p < OUTPUT_TYPES.length; ++p) { + var n = OUTPUT_TYPES[p]; + j[n] = createOutputMethod(n, ye); + } + return j; + }, + nodeWrap = function (method, is224) { + var crypto = eval("require('crypto')"), + Buffer = eval("require('buffer').Buffer"), + algorithm = is224 ? "sha224" : "sha256", + nodeMethod = function (ye) { + if ("string" == typeof ye) + return crypto + .createHash(algorithm) + .update(ye, "utf8") + .digest("hex"); + if (null == ye) throw new Error(ERROR); + return ( + ye.constructor === ArrayBuffer && (ye = new Uint8Array(ye)), + Array.isArray(ye) || + ArrayBuffer.isView(ye) || + ye.constructor === Buffer + ? crypto + .createHash(algorithm) + .update(new Buffer(ye)) + .digest("hex") + : method(ye) + ); + }; + return nodeMethod; + }, + createHmacOutputMethod = function (ye, j) { + return function (p, n) { + return new HmacSha256(p, j, !0).update(n)[ye](); + }; + }, + createHmacMethod = function (ye) { + var j = createHmacOutputMethod("hex", ye); + (j.create = function (f) { + return new HmacSha256(f, ye); + }), + (j.update = function (f, _) { + return j.create(f).update(_); + }); + for (var p = 0; p < OUTPUT_TYPES.length; ++p) { + var n = OUTPUT_TYPES[p]; + j[n] = createHmacOutputMethod(n, ye); + } + return j; + }; + function Sha256(ye, j) { + j + ? ((blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0), + (this.blocks = blocks)) + : (this.blocks = [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ]), + ye + ? ((this.h0 = 3238371032), + (this.h1 = 914150663), + (this.h2 = 812702999), + (this.h3 = 4144912697), + (this.h4 = 4290775857), + (this.h5 = 1750603025), + (this.h6 = 1694076839), + (this.h7 = 3204075428)) + : ((this.h0 = 1779033703), + (this.h1 = 3144134277), + (this.h2 = 1013904242), + (this.h3 = 2773480762), + (this.h4 = 1359893119), + (this.h5 = 2600822924), + (this.h6 = 528734635), + (this.h7 = 1541459225)), + (this.block = this.start = this.bytes = this.hBytes = 0), + (this.finalized = this.hashed = !1), + (this.first = !0), + (this.is224 = ye); + } + function HmacSha256(ye, j, p) { + var n, + f = typeof ye; + if ("string" === f) { + var d, + _ = [], + m = ye.length, + s = 0; + for (n = 0; n < m; ++n) + (d = ye.charCodeAt(n)) < 128 + ? (_[s++] = d) + : d < 2048 + ? ((_[s++] = 192 | (d >> 6)), (_[s++] = 128 | (63 & d))) + : d < 55296 || d >= 57344 + ? ((_[s++] = 224 | (d >> 12)), + (_[s++] = 128 | ((d >> 6) & 63)), + (_[s++] = 128 | (63 & d))) + : ((d = + 65536 + (((1023 & d) << 10) | (1023 & ye.charCodeAt(++n)))), + (_[s++] = 240 | (d >> 18)), + (_[s++] = 128 | ((d >> 12) & 63)), + (_[s++] = 128 | ((d >> 6) & 63)), + (_[s++] = 128 | (63 & d))); + ye = _; + } else { + if ("object" !== f) throw new Error(ERROR); + if (null === ye) throw new Error(ERROR); + if (ARRAY_BUFFER && ye.constructor === ArrayBuffer) + ye = new Uint8Array(ye); + else if ( + !(Array.isArray(ye) || (ARRAY_BUFFER && ArrayBuffer.isView(ye))) + ) + throw new Error(ERROR); + } + ye.length > 64 && (ye = new Sha256(j, !0).update(ye).array()); + var u = [], + h = []; + for (n = 0; n < 64; ++n) { + var r = ye[n] || 0; + (u[n] = 92 ^ r), (h[n] = 54 ^ r); + } + Sha256.call(this, j, p), + this.update(h), + (this.oKeyPad = u), + (this.inner = !0), + (this.sharedMemory = p); + } + (Sha256.prototype.update = function (ye) { + if (!this.finalized) { + var j, + p = typeof ye; + if ("string" !== p) { + if ("object" !== p) throw new Error(ERROR); + if (null === ye) throw new Error(ERROR); + if (ARRAY_BUFFER && ye.constructor === ArrayBuffer) + ye = new Uint8Array(ye); + else if ( + !(Array.isArray(ye) || (ARRAY_BUFFER && ArrayBuffer.isView(ye))) + ) + throw new Error(ERROR); + j = !0; + } + for (var n, _, f = 0, m = ye.length, s = this.blocks; f < m; ) { + if ( + (this.hashed && + ((this.hashed = !1), + (s[0] = this.block), + (s[16] = s[1] = s[2] = s[3] = s[4] = s[5] = s[6] = s[7] = s[8] = s[9] = s[10] = s[11] = s[12] = s[13] = s[14] = s[15] = 0)), + j) + ) + for (_ = this.start; f < m && _ < 64; ++f) + s[_ >> 2] |= ye[f] << SHIFT[3 & _++]; + else + for (_ = this.start; f < m && _ < 64; ++f) + (n = ye.charCodeAt(f)) < 128 + ? (s[_ >> 2] |= n << SHIFT[3 & _++]) + : n < 2048 + ? ((s[_ >> 2] |= (192 | (n >> 6)) << SHIFT[3 & _++]), + (s[_ >> 2] |= (128 | (63 & n)) << SHIFT[3 & _++])) + : n < 55296 || n >= 57344 + ? ((s[_ >> 2] |= (224 | (n >> 12)) << SHIFT[3 & _++]), + (s[_ >> 2] |= (128 | ((n >> 6) & 63)) << SHIFT[3 & _++]), + (s[_ >> 2] |= (128 | (63 & n)) << SHIFT[3 & _++])) + : ((n = + 65536 + + (((1023 & n) << 10) | (1023 & ye.charCodeAt(++f)))), + (s[_ >> 2] |= (240 | (n >> 18)) << SHIFT[3 & _++]), + (s[_ >> 2] |= (128 | ((n >> 12) & 63)) << SHIFT[3 & _++]), + (s[_ >> 2] |= (128 | ((n >> 6) & 63)) << SHIFT[3 & _++]), + (s[_ >> 2] |= (128 | (63 & n)) << SHIFT[3 & _++])); + (this.lastByteIndex = _), + (this.bytes += _ - this.start), + _ >= 64 + ? ((this.block = s[16]), + (this.start = _ - 64), + this.hash(), + (this.hashed = !0)) + : (this.start = _); + } + return ( + this.bytes > 4294967295 && + ((this.hBytes += (this.bytes / 4294967296) << 0), + (this.bytes = this.bytes % 4294967296)), + this + ); + } + }), + (Sha256.prototype.finalize = function () { + if (!this.finalized) { + this.finalized = !0; + var ye = this.blocks, + j = this.lastByteIndex; + (ye[16] = this.block), + (ye[j >> 2] |= EXTRA[3 & j]), + (this.block = ye[16]), + j >= 56 && + (this.hashed || this.hash(), + (ye[0] = this.block), + (ye[16] = ye[1] = ye[2] = ye[3] = ye[4] = ye[5] = ye[6] = ye[7] = ye[8] = ye[9] = ye[10] = ye[11] = ye[12] = ye[13] = ye[14] = ye[15] = 0)), + (ye[14] = (this.hBytes << 3) | (this.bytes >>> 29)), + (ye[15] = this.bytes << 3), + this.hash(); + } + }), + (Sha256.prototype.hash = function () { + var u, + i, + g, + b, + y, + x, + ye = this.h0, + j = this.h1, + p = this.h2, + n = this.h3, + f = this.h4, + _ = this.h5, + m = this.h6, + s = this.h7, + d = this.blocks; + for (u = 16; u < 64; ++u) + d[u] = + (d[u - 16] + + ((((i = d[u - 15]) >>> 7) | (i << 25)) ^ + ((i >>> 18) | (i << 14)) ^ + (i >>> 3)) + + d[u - 7] + + ((((i = d[u - 2]) >>> 17) | (i << 15)) ^ + ((i >>> 19) | (i << 13)) ^ + (i >>> 10))) << + 0; + for (x = j & p, u = 0; u < 64; u += 4) + this.first + ? (this.is224 + ? ((g = 300032), + (s = ((i = d[0] - 1413257819) - 150054599) << 0), + (n = (i + 24177077) << 0)) + : ((g = 704751109), + (s = ((i = d[0] - 210244248) - 1521486534) << 0), + (n = (i + 143694565) << 0)), + (this.first = !1)) + : ((s = + (n + + (i = + s + + (((f >>> 6) | (f << 26)) ^ + ((f >>> 11) | (f << 21)) ^ + ((f >>> 25) | (f << 7))) + + ((f & _) ^ (~f & m)) + + K[u] + + d[u])) << + 0), + (n = + (i + + ((((ye >>> 2) | (ye << 30)) ^ + ((ye >>> 13) | (ye << 19)) ^ + ((ye >>> 22) | (ye << 10))) + + ((g = ye & j) ^ (ye & p) ^ x))) << + 0)), + (m = + (p + + (i = + m + + (((s >>> 6) | (s << 26)) ^ + ((s >>> 11) | (s << 21)) ^ + ((s >>> 25) | (s << 7))) + + ((s & f) ^ (~s & _)) + + K[u + 1] + + d[u + 1])) << + 0), + (p = + (i + + ((((n >>> 2) | (n << 30)) ^ + ((n >>> 13) | (n << 19)) ^ + ((n >>> 22) | (n << 10))) + + ((b = n & ye) ^ (n & j) ^ g))) << + 0), + (_ = + (j + + (i = + _ + + (((m >>> 6) | (m << 26)) ^ + ((m >>> 11) | (m << 21)) ^ + ((m >>> 25) | (m << 7))) + + ((m & s) ^ (~m & f)) + + K[u + 2] + + d[u + 2])) << + 0), + (j = + (i + + ((((p >>> 2) | (p << 30)) ^ + ((p >>> 13) | (p << 19)) ^ + ((p >>> 22) | (p << 10))) + + ((y = p & n) ^ (p & ye) ^ b))) << + 0), + (f = + (ye + + (i = + f + + (((_ >>> 6) | (_ << 26)) ^ + ((_ >>> 11) | (_ << 21)) ^ + ((_ >>> 25) | (_ << 7))) + + ((_ & m) ^ (~_ & s)) + + K[u + 3] + + d[u + 3])) << + 0), + (ye = + (i + + ((((j >>> 2) | (j << 30)) ^ + ((j >>> 13) | (j << 19)) ^ + ((j >>> 22) | (j << 10))) + + ((x = j & p) ^ (j & n) ^ y))) << + 0); + (this.h0 = (this.h0 + ye) << 0), + (this.h1 = (this.h1 + j) << 0), + (this.h2 = (this.h2 + p) << 0), + (this.h3 = (this.h3 + n) << 0), + (this.h4 = (this.h4 + f) << 0), + (this.h5 = (this.h5 + _) << 0), + (this.h6 = (this.h6 + m) << 0), + (this.h7 = (this.h7 + s) << 0); + }), + (Sha256.prototype.hex = function () { + this.finalize(); + var ye = this.h0, + j = this.h1, + p = this.h2, + n = this.h3, + f = this.h4, + _ = this.h5, + m = this.h6, + s = this.h7, + d = + HEX_CHARS[(ye >> 28) & 15] + + HEX_CHARS[(ye >> 24) & 15] + + HEX_CHARS[(ye >> 20) & 15] + + HEX_CHARS[(ye >> 16) & 15] + + HEX_CHARS[(ye >> 12) & 15] + + HEX_CHARS[(ye >> 8) & 15] + + HEX_CHARS[(ye >> 4) & 15] + + HEX_CHARS[15 & ye] + + HEX_CHARS[(j >> 28) & 15] + + HEX_CHARS[(j >> 24) & 15] + + HEX_CHARS[(j >> 20) & 15] + + HEX_CHARS[(j >> 16) & 15] + + HEX_CHARS[(j >> 12) & 15] + + HEX_CHARS[(j >> 8) & 15] + + HEX_CHARS[(j >> 4) & 15] + + HEX_CHARS[15 & j] + + HEX_CHARS[(p >> 28) & 15] + + HEX_CHARS[(p >> 24) & 15] + + HEX_CHARS[(p >> 20) & 15] + + HEX_CHARS[(p >> 16) & 15] + + HEX_CHARS[(p >> 12) & 15] + + HEX_CHARS[(p >> 8) & 15] + + HEX_CHARS[(p >> 4) & 15] + + HEX_CHARS[15 & p] + + HEX_CHARS[(n >> 28) & 15] + + HEX_CHARS[(n >> 24) & 15] + + HEX_CHARS[(n >> 20) & 15] + + HEX_CHARS[(n >> 16) & 15] + + HEX_CHARS[(n >> 12) & 15] + + HEX_CHARS[(n >> 8) & 15] + + HEX_CHARS[(n >> 4) & 15] + + HEX_CHARS[15 & n] + + HEX_CHARS[(f >> 28) & 15] + + HEX_CHARS[(f >> 24) & 15] + + HEX_CHARS[(f >> 20) & 15] + + HEX_CHARS[(f >> 16) & 15] + + HEX_CHARS[(f >> 12) & 15] + + HEX_CHARS[(f >> 8) & 15] + + HEX_CHARS[(f >> 4) & 15] + + HEX_CHARS[15 & f] + + HEX_CHARS[(_ >> 28) & 15] + + HEX_CHARS[(_ >> 24) & 15] + + HEX_CHARS[(_ >> 20) & 15] + + HEX_CHARS[(_ >> 16) & 15] + + HEX_CHARS[(_ >> 12) & 15] + + HEX_CHARS[(_ >> 8) & 15] + + HEX_CHARS[(_ >> 4) & 15] + + HEX_CHARS[15 & _] + + HEX_CHARS[(m >> 28) & 15] + + HEX_CHARS[(m >> 24) & 15] + + HEX_CHARS[(m >> 20) & 15] + + HEX_CHARS[(m >> 16) & 15] + + HEX_CHARS[(m >> 12) & 15] + + HEX_CHARS[(m >> 8) & 15] + + HEX_CHARS[(m >> 4) & 15] + + HEX_CHARS[15 & m]; + return ( + this.is224 || + (d += + HEX_CHARS[(s >> 28) & 15] + + HEX_CHARS[(s >> 24) & 15] + + HEX_CHARS[(s >> 20) & 15] + + HEX_CHARS[(s >> 16) & 15] + + HEX_CHARS[(s >> 12) & 15] + + HEX_CHARS[(s >> 8) & 15] + + HEX_CHARS[(s >> 4) & 15] + + HEX_CHARS[15 & s]), + d + ); + }), + (Sha256.prototype.toString = Sha256.prototype.hex), + (Sha256.prototype.digest = function () { + this.finalize(); + var ye = this.h0, + j = this.h1, + p = this.h2, + n = this.h3, + f = this.h4, + _ = this.h5, + m = this.h6, + s = this.h7, + d = [ + (ye >> 24) & 255, + (ye >> 16) & 255, + (ye >> 8) & 255, + 255 & ye, + (j >> 24) & 255, + (j >> 16) & 255, + (j >> 8) & 255, + 255 & j, + (p >> 24) & 255, + (p >> 16) & 255, + (p >> 8) & 255, + 255 & p, + (n >> 24) & 255, + (n >> 16) & 255, + (n >> 8) & 255, + 255 & n, + (f >> 24) & 255, + (f >> 16) & 255, + (f >> 8) & 255, + 255 & f, + (_ >> 24) & 255, + (_ >> 16) & 255, + (_ >> 8) & 255, + 255 & _, + (m >> 24) & 255, + (m >> 16) & 255, + (m >> 8) & 255, + 255 & m, + ]; + return ( + this.is224 || + d.push( + (s >> 24) & 255, + (s >> 16) & 255, + (s >> 8) & 255, + 255 & s + ), + d + ); + }), + (Sha256.prototype.array = Sha256.prototype.digest), + (Sha256.prototype.arrayBuffer = function () { + this.finalize(); + var ye = new ArrayBuffer(this.is224 ? 28 : 32), + j = new DataView(ye); + return ( + j.setUint32(0, this.h0), + j.setUint32(4, this.h1), + j.setUint32(8, this.h2), + j.setUint32(12, this.h3), + j.setUint32(16, this.h4), + j.setUint32(20, this.h5), + j.setUint32(24, this.h6), + this.is224 || j.setUint32(28, this.h7), + ye + ); + }), + (HmacSha256.prototype = new Sha256()), + (HmacSha256.prototype.finalize = function () { + if ((Sha256.prototype.finalize.call(this), this.inner)) { + this.inner = !1; + var ye = this.array(); + Sha256.call(this, this.is224, this.sharedMemory), + this.update(this.oKeyPad), + this.update(ye), + Sha256.prototype.finalize.call(this); + } + }); + var exports = createMethod(); + return ( + (exports.sha256 = exports), + (exports.sha224 = createMethod(!0)), + (exports.sha256.hmac = createHmacMethod()), + (exports.sha224.hmac = createHmacMethod(!0)), + exports + ); + } + const sha256 = factory(); + class HashHandler {} + function decodeUTF8(ye) { + if ("string" != typeof ye) throw new TypeError("expected string"); + var j, + p = ye, + n = new Uint8Array(p.length); + for (j = 0; j < p.length; j++) n[j] = p.charCodeAt(j); + return n; + } + function encodeUTF8(ye) { + var j, + p = []; + for (j = 0; j < ye.length; j++) p.push(String.fromCharCode(ye[j])); + return p.join(""); + } + let DefaultHashHandler = (() => { + class ye { + calcHash(p, n) { + return (0, tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)( + this, + void 0, + void 0, + function* () { + return encodeUTF8( + fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)) + ); + } + ); + } + toHashString2(p) { + let n = ""; + for (let f of p) n += String.fromCharCode(f); + return n; + } + toHashString(p) { + const n = new Uint8Array(p); + let f = ""; + for (let _ of n) f += String.fromCharCode(_); + return f; + } + } + return ( + (ye.ɵfac = function (p) { + return new (p || ye)(); + }), + (ye.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵdefineInjectable( + { token: ye, factory: ye.ɵfac } + )), + ye + ); + })(), + OAuthService = (() => { + class ye extends AuthConfig { + constructor(p, n, f, _, m, s, d, u, h, r) { + var o; + super(), + (this.ngZone = p), + (this.http = n), + (this.config = m), + (this.urlHelper = s), + (this.logger = d), + (this.crypto = u), + (this.dateTimeService = r), + (this.discoveryDocumentLoaded = !1), + (this.state = ""), + (this.eventsSubject = new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ()), + (this.discoveryDocumentLoadedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ()), + (this.grantTypesSupported = []), + (this.inImplicitFlow = !1), + (this.saveNoncesInLocalStorage = !1), + this.debug("angular-oauth2-oidc v10"), + (this.document = h), + m || (m = {}), + (this.discoveryDocumentLoaded$ = this.discoveryDocumentLoadedSubject.asObservable()), + (this.events = this.eventsSubject.asObservable()), + _ && (this.tokenValidationHandler = _), + m && this.configure(m); + try { + f + ? this.setStorage(f) + : "undefined" != typeof sessionStorage && + this.setStorage(sessionStorage); + } catch (i) { + console.error( + "No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.", + i + ); + } + if (this.checkLocalStorageAccessable()) { + const i = + null === (o = null == window ? void 0 : window.navigator) || + void 0 === o + ? void 0 + : o.userAgent; + ((null == i ? void 0 : i.includes("MSIE ")) || + (null == i ? void 0 : i.includes("Trident"))) && + (this.saveNoncesInLocalStorage = !0); + } + this.setupRefreshTimer(); + } + checkLocalStorageAccessable() { + if ("undefined" == typeof window) return !1; + const p = "test"; + try { + return ( + void 0 !== window.localStorage && + (localStorage.setItem(p, p), localStorage.removeItem(p), !0) + ); + } catch (n) { + return !1; + } + } + configure(p) { + Object.assign(this, new AuthConfig(), p), + (this.config = Object.assign({}, new AuthConfig(), p)), + this.sessionChecksEnabled && this.setupSessionCheck(), + this.configChanged(); + } + configChanged() { + this.setupRefreshTimer(); + } + restartSessionChecksIfStillLoggedIn() { + this.hasValidIdToken() && this.initSessionCheck(); + } + restartRefreshTimerIfStillLoggedIn() { + this.setupExpirationTimers(); + } + setupSessionCheck() { + this.events + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (p) => "token_received" === p.type + ) + ) + .subscribe((p) => { + this.initSessionCheck(); + }); + } + setupAutomaticSilentRefresh(p = {}, n, f = !0) { + let _ = !0; + this.clearAutomaticRefreshTimer(), + (this.automaticRefreshSubscription = this.events + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)((m) => { + "token_received" === m.type + ? (_ = !0) + : "logout" === m.type && (_ = !1); + }), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (m) => + "token_expires" === m.type && + (null == n || "any" === n || m.info === n) + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3) + ) + .subscribe((m) => { + _ && + this.refreshInternal(p, f).catch((s) => { + this.debug("Automatic silent refresh did not work"); + }); + })), + this.restartRefreshTimerIfStillLoggedIn(); + } + refreshInternal(p, n) { + return this.useSilentRefresh || "code" !== this.responseType + ? this.silentRefresh(p, n) + : this.refreshToken(); + } + loadDiscoveryDocumentAndTryLogin(p = null) { + return this.loadDiscoveryDocument().then((n) => this.tryLogin(p)); + } + loadDiscoveryDocumentAndLogin(p = null) { + return this.loadDiscoveryDocumentAndTryLogin((p = p || {})).then( + (n) => + !(!this.hasValidIdToken() || !this.hasValidAccessToken()) || + (this.initLoginFlow( + "string" == typeof p.state ? p.state : "" + ), + !1) + ); + } + debug(...p) { + this.showDebugInformation && + this.logger.debug.apply(this.logger, p); + } + validateUrlFromDiscoveryDocument(p) { + const n = [], + f = this.validateUrlForHttps(p), + _ = this.validateUrlAgainstIssuer(p); + return ( + f || + n.push( + "https for all urls required. Also for urls received by discovery." + ), + _ || + n.push( + "Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation." + ), + n + ); + } + validateUrlForHttps(p) { + if (!p) return !0; + const n = p.toLowerCase(); + return ( + !( + !1 !== this.requireHttps && + ((!n.match(/^http:\/\/localhost($|[:\/])/) && + !n.match(/^http:\/\/localhost($|[:\/])/)) || + "remoteOnly" !== this.requireHttps) + ) || n.startsWith("https://") + ); + } + assertUrlNotNullAndCorrectProtocol(p, n) { + if (!p) throw new Error(`'${n}' should not be null`); + if (!this.validateUrlForHttps(p)) + throw new Error( + `'${n}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).` + ); + } + validateUrlAgainstIssuer(p) { + return ( + !this.strictDiscoveryDocumentValidation || + !p || + p.toLowerCase().startsWith(this.issuer.toLowerCase()) + ); + } + setupRefreshTimer() { + "undefined" != typeof window + ? ((this.hasValidIdToken() || this.hasValidAccessToken()) && + (this.clearAccessTokenTimer(), + this.clearIdTokenTimer(), + this.setupExpirationTimers()), + this.tokenReceivedSubscription && + this.tokenReceivedSubscription.unsubscribe(), + (this.tokenReceivedSubscription = this.events + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (p) => "token_received" === p.type + ) + ) + .subscribe((p) => { + this.clearAccessTokenTimer(), + this.clearIdTokenTimer(), + this.setupExpirationTimers(); + }))) + : this.debug("timer not supported on this plattform"); + } + setupExpirationTimers() { + this.hasValidAccessToken() && this.setupAccessTokenTimer(), + this.hasValidIdToken() && this.setupIdTokenTimer(); + } + setupAccessTokenTimer() { + const p = this.getAccessTokenExpiration(), + n = this.getAccessTokenStoredAt(), + f = this.calcTimeout(n, p); + this.ngZone.runOutsideAngular(() => { + this.accessTokenTimeoutSubscription = (0, + rxjs__WEBPACK_IMPORTED_MODULE_7__.of)( + new OAuthInfoEvent("token_expires", "access_token") + ) + .pipe((0, rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)) + .subscribe((_) => { + this.ngZone.run(() => { + this.eventsSubject.next(_); + }); + }); + }); + } + setupIdTokenTimer() { + const p = this.getIdTokenExpiration(), + n = this.getIdTokenStoredAt(), + f = this.calcTimeout(n, p); + this.ngZone.runOutsideAngular(() => { + this.idTokenTimeoutSubscription = (0, + rxjs__WEBPACK_IMPORTED_MODULE_7__.of)( + new OAuthInfoEvent("token_expires", "id_token") + ) + .pipe((0, rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)) + .subscribe((_) => { + this.ngZone.run(() => { + this.eventsSubject.next(_); + }); + }); + }); + } + stopAutomaticRefresh() { + this.clearAccessTokenTimer(), + this.clearIdTokenTimer(), + this.clearAutomaticRefreshTimer(); + } + clearAccessTokenTimer() { + this.accessTokenTimeoutSubscription && + this.accessTokenTimeoutSubscription.unsubscribe(); + } + clearIdTokenTimer() { + this.idTokenTimeoutSubscription && + this.idTokenTimeoutSubscription.unsubscribe(); + } + clearAutomaticRefreshTimer() { + this.automaticRefreshSubscription && + this.automaticRefreshSubscription.unsubscribe(); + } + calcTimeout(p, n) { + const f = this.dateTimeService.now(); + return Math.max(0, (n - p) * this.timeoutFactor - (f - p)); + } + setStorage(p) { + (this._storage = p), this.configChanged(); + } + loadDiscoveryDocument(p = null) { + return new Promise((n, f) => { + p || + ((p = this.issuer || "").endsWith("/") || (p += "/"), + (p += ".well-known/openid-configuration")), + this.validateUrlForHttps(p) + ? this.http.get(p).subscribe( + (_) => { + if (!this.validateDiscoveryDocument(_)) + return ( + this.eventsSubject.next( + new OAuthErrorEvent( + "discovery_document_validation_error", + null + ) + ), + void f("discovery_document_validation_error") + ); + (this.loginUrl = _.authorization_endpoint), + (this.logoutUrl = + _.end_session_endpoint || this.logoutUrl), + (this.grantTypesSupported = + _.grant_types_supported), + (this.issuer = _.issuer), + (this.tokenEndpoint = _.token_endpoint), + (this.userinfoEndpoint = + _.userinfo_endpoint || this.userinfoEndpoint), + (this.jwksUri = _.jwks_uri), + (this.sessionCheckIFrameUrl = + _.check_session_iframe || + this.sessionCheckIFrameUrl), + (this.discoveryDocumentLoaded = !0), + this.discoveryDocumentLoadedSubject.next(_), + (this.revocationEndpoint = + _.revocation_endpoint || this.revocationEndpoint), + this.sessionChecksEnabled && + this.restartSessionChecksIfStillLoggedIn(), + this.loadJwks() + .then((m) => { + const d = new OAuthSuccessEvent( + "discovery_document_loaded", + { discoveryDocument: _, jwks: m } + ); + this.eventsSubject.next(d), n(d); + }) + .catch((m) => { + this.eventsSubject.next( + new OAuthErrorEvent( + "discovery_document_load_error", + m + ) + ), + f(m); + }); + }, + (_) => { + this.logger.error( + "error loading discovery document", + _ + ), + this.eventsSubject.next( + new OAuthErrorEvent( + "discovery_document_load_error", + _ + ) + ), + f(_); + } + ) + : f( + "issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS)." + ); + }); + } + loadJwks() { + return new Promise((p, n) => { + this.jwksUri + ? this.http.get(this.jwksUri).subscribe( + (f) => { + (this.jwks = f), + this.eventsSubject.next( + new OAuthSuccessEvent("discovery_document_loaded") + ), + p(f); + }, + (f) => { + this.logger.error("error loading jwks", f), + this.eventsSubject.next( + new OAuthErrorEvent("jwks_load_error", f) + ), + n(f); + } + ) + : p(null); + }); + } + validateDiscoveryDocument(p) { + let n; + return this.skipIssuerCheck || p.issuer === this.issuer + ? ((n = this.validateUrlFromDiscoveryDocument( + p.authorization_endpoint + )), + n.length > 0 + ? (this.logger.error( + "error validating authorization_endpoint in discovery document", + n + ), + !1) + : ((n = this.validateUrlFromDiscoveryDocument( + p.end_session_endpoint + )), + n.length > 0 + ? (this.logger.error( + "error validating end_session_endpoint in discovery document", + n + ), + !1) + : ((n = this.validateUrlFromDiscoveryDocument( + p.token_endpoint + )), + n.length > 0 && + this.logger.error( + "error validating token_endpoint in discovery document", + n + ), + (n = this.validateUrlFromDiscoveryDocument( + p.revocation_endpoint + )), + n.length > 0 && + this.logger.error( + "error validating revocation_endpoint in discovery document", + n + ), + (n = this.validateUrlFromDiscoveryDocument( + p.userinfo_endpoint + )), + n.length > 0 + ? (this.logger.error( + "error validating userinfo_endpoint in discovery document", + n + ), + !1) + : ((n = this.validateUrlFromDiscoveryDocument( + p.jwks_uri + )), + n.length > 0 + ? (this.logger.error( + "error validating jwks_uri in discovery document", + n + ), + !1) + : (this.sessionChecksEnabled && + !p.check_session_iframe && + this.logger.warn( + "sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field" + ), + !0))))) + : (this.logger.error( + "invalid issuer in discovery document", + "expected: " + this.issuer, + "current: " + p.issuer + ), + !1); + } + fetchTokenUsingPasswordFlowAndLoadUserProfile( + p, + n, + f = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders() + ) { + return this.fetchTokenUsingPasswordFlow(p, n, f).then(() => + this.loadUserProfile() + ); + } + loadUserProfile() { + if (!this.hasValidAccessToken()) + throw new Error( + "Can not load User Profile without access_token" + ); + if (!this.validateUrlForHttps(this.userinfoEndpoint)) + throw new Error( + "userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS)." + ); + return new Promise((p, n) => { + const f = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders().set( + "Authorization", + "Bearer " + this.getAccessToken() + ); + this.http + .get(this.userinfoEndpoint, { + headers: f, + observe: "response", + responseType: "text", + }) + .subscribe( + (_) => { + if ( + (this.debug("userinfo received", JSON.stringify(_)), + _.headers + .get("content-type") + .startsWith("application/json")) + ) { + let m = JSON.parse(_.body); + const s = this.getIdentityClaims() || {}; + if ( + !this.skipSubjectCheck && + this.oidc && + (!s.sub || m.sub !== s.sub) + ) + return void n( + "if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false" + ); + (m = Object.assign({}, s, m)), + this._storage.setItem( + "id_token_claims_obj", + JSON.stringify(m) + ), + this.eventsSubject.next( + new OAuthSuccessEvent("user_profile_loaded") + ), + p({ info: m }); + } else + this.debug( + "userinfo is not JSON, treating it as JWE/JWS" + ), + this.eventsSubject.next( + new OAuthSuccessEvent("user_profile_loaded") + ), + p(JSON.parse(_.body)); + }, + (_) => { + this.logger.error("error loading user info", _), + this.eventsSubject.next( + new OAuthErrorEvent("user_profile_load_error", _) + ), + n(_); + } + ); + }); + } + fetchTokenUsingPasswordFlow( + p, + n, + f = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders() + ) { + return this.fetchTokenUsingGrant( + "password", + { username: p, password: n }, + f + ); + } + fetchTokenUsingGrant( + p, + n, + f = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders() + ) { + this.assertUrlNotNullAndCorrectProtocol( + this.tokenEndpoint, + "tokenEndpoint" + ); + let _ = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams( + { encoder: new WebHttpUrlEncodingCodec() } + ) + .set("grant_type", p) + .set("scope", this.scope); + if (this.useHttpBasicAuth) { + const m = btoa(`${this.clientId}:${this.dummyClientSecret}`); + f = f.set("Authorization", "Basic " + m); + } + if ( + (this.useHttpBasicAuth || + (_ = _.set("client_id", this.clientId)), + !this.useHttpBasicAuth && + this.dummyClientSecret && + (_ = _.set("client_secret", this.dummyClientSecret)), + this.customQueryParams) + ) + for (const m of Object.getOwnPropertyNames( + this.customQueryParams + )) + _ = _.set(m, this.customQueryParams[m]); + for (const m of Object.keys(n)) _ = _.set(m, n[m]); + return ( + (f = f.set( + "Content-Type", + "application/x-www-form-urlencoded" + )), + new Promise((m, s) => { + this.http + .post(this.tokenEndpoint, _, { headers: f }) + .subscribe( + (d) => { + this.debug("tokenResponse", d), + this.storeAccessTokenResponse( + d.access_token, + d.refresh_token, + d.expires_in || + this.fallbackAccessTokenExpirationTimeInSec, + d.scope, + this.extractRecognizedCustomParameters(d) + ), + this.oidc && + d.id_token && + this.processIdToken( + d.id_token, + d.access_token + ).then((u) => { + this.storeIdToken(u), m(d); + }), + this.eventsSubject.next( + new OAuthSuccessEvent("token_received") + ), + m(d); + }, + (d) => { + this.logger.error( + "Error performing ${grantType} flow", + d + ), + this.eventsSubject.next( + new OAuthErrorEvent("token_error", d) + ), + s(d); + } + ); + }) + ); + } + refreshToken() { + return ( + this.assertUrlNotNullAndCorrectProtocol( + this.tokenEndpoint, + "tokenEndpoint" + ), + new Promise((p, n) => { + let f = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams( + { encoder: new WebHttpUrlEncodingCodec() } + ) + .set("grant_type", "refresh_token") + .set("scope", this.scope) + .set( + "refresh_token", + this._storage.getItem("refresh_token") + ), + _ = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders().set( + "Content-Type", + "application/x-www-form-urlencoded" + ); + if (this.useHttpBasicAuth) { + const m = btoa( + `${this.clientId}:${this.dummyClientSecret}` + ); + _ = _.set("Authorization", "Basic " + m); + } + if ( + (this.useHttpBasicAuth || + (f = f.set("client_id", this.clientId)), + !this.useHttpBasicAuth && + this.dummyClientSecret && + (f = f.set("client_secret", this.dummyClientSecret)), + this.customQueryParams) + ) + for (const m of Object.getOwnPropertyNames( + this.customQueryParams + )) + f = f.set(m, this.customQueryParams[m]); + this.http + .post(this.tokenEndpoint, f, { headers: _ }) + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)((m) => + m.id_token + ? (0, rxjs__WEBPACK_IMPORTED_MODULE_11__.D)( + this.processIdToken( + m.id_token, + m.access_token, + !0 + ) + ).pipe( + (0, + rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)( + (s) => this.storeIdToken(s) + ), + (0, + rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)( + (s) => m + ) + ) + : (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(m) + ) + ) + .subscribe( + (m) => { + this.debug("refresh tokenResponse", m), + this.storeAccessTokenResponse( + m.access_token, + m.refresh_token, + m.expires_in || + this.fallbackAccessTokenExpirationTimeInSec, + m.scope, + this.extractRecognizedCustomParameters(m) + ), + this.eventsSubject.next( + new OAuthSuccessEvent("token_received") + ), + this.eventsSubject.next( + new OAuthSuccessEvent("token_refreshed") + ), + p(m); + }, + (m) => { + this.logger.error("Error refreshing token", m), + this.eventsSubject.next( + new OAuthErrorEvent("token_refresh_error", m) + ), + n(m); + } + ); + }) + ); + } + removeSilentRefreshEventListener() { + this.silentRefreshPostMessageEventListener && + (window.removeEventListener( + "message", + this.silentRefreshPostMessageEventListener + ), + (this.silentRefreshPostMessageEventListener = null)); + } + setupSilentRefreshEventListener() { + this.removeSilentRefreshEventListener(), + (this.silentRefreshPostMessageEventListener = (p) => { + const n = this.processMessageEventMessage(p); + this.tryLogin({ + customHashFragment: n, + preventClearHashAfterLogin: !0, + customRedirectUri: + this.silentRefreshRedirectUri || this.redirectUri, + }).catch((f) => + this.debug("tryLogin during silent refresh failed", f) + ); + }), + window.addEventListener( + "message", + this.silentRefreshPostMessageEventListener + ); + } + silentRefresh(p = {}, n = !0) { + const f = this.getIdentityClaims() || {}; + if ( + (this.useIdTokenHintForSilentRefresh && + this.hasValidIdToken() && + (p.id_token_hint = this.getIdToken()), + !this.validateUrlForHttps(this.loginUrl)) + ) + throw new Error( + "loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS)." + ); + if (void 0 === this.document) + throw new Error( + "silent refresh is not supported on this platform" + ); + const _ = this.document.getElementById( + this.silentRefreshIFrameName + ); + _ && this.document.body.removeChild(_), + (this.silentRefreshSubject = f.sub); + const m = this.document.createElement("iframe"); + (m.id = this.silentRefreshIFrameName), + this.setupSilentRefreshEventListener(), + this.createLoginUrl( + null, + null, + this.silentRefreshRedirectUri || this.redirectUri, + n, + p + ).then((r) => { + m.setAttribute("src", r), + this.silentRefreshShowIFrame || (m.style.display = "none"), + this.document.body.appendChild(m); + }); + const d = this.events.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (r) => r instanceof OAuthErrorEvent + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)() + ), + u = this.events.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (r) => "token_received" === r.type + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)() + ), + h = (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.of)( + new OAuthErrorEvent("silent_refresh_timeout", null) + ).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)( + this.silentRefreshTimeout + ) + ); + return (0, rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([d, u, h]) + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)((r) => { + if (r instanceof OAuthErrorEvent) + throw ( + ("silent_refresh_timeout" === r.type || + (r = new OAuthErrorEvent("silent_refresh_error", r)), + this.eventsSubject.next(r), + r) + ); + return ( + "token_received" === r.type && + ((r = new OAuthSuccessEvent("silently_refreshed")), + this.eventsSubject.next(r)), + r + ); + }) + ) + .toPromise(); + } + initImplicitFlowInPopup(p) { + return this.initLoginFlowInPopup(p); + } + initLoginFlowInPopup(p) { + return ( + (p = p || {}), + this.createLoginUrl( + null, + null, + this.silentRefreshRedirectUri, + !1, + { display: "popup" } + ).then( + (n) => + new Promise((f, _) => { + let d, + s = null; + p.windowRef + ? p.windowRef && + !p.windowRef.closed && + ((s = p.windowRef), (s.location.href = n)) + : (s = window.open( + n, + "ngx-oauth2-oidc-login", + this.calculatePopupFeatures(p) + )); + const u = (c) => { + this.tryLogin({ + customHashFragment: c, + preventClearHashAfterLogin: !0, + customRedirectUri: this.silentRefreshRedirectUri, + }).then( + () => { + r(), f(!0); + }, + (l) => { + r(), _(l); + } + ); + }; + s + ? (d = window.setInterval(() => { + (!s || s.closed) && + (r(), _(new OAuthErrorEvent("popup_closed", {}))); + }, 500)) + : _(new OAuthErrorEvent("popup_blocked", {})); + const r = () => { + window.clearInterval(d), + window.removeEventListener("storage", i), + window.removeEventListener("message", o), + null !== s && s.close(), + (s = null); + }, + o = (c) => { + const l = this.processMessageEventMessage(c); + l && null !== l + ? (window.removeEventListener("storage", i), u(l)) + : console.log("false event firing"); + }, + i = (c) => { + "auth_hash" === c.key && + (window.removeEventListener("message", o), + u(c.newValue)); + }; + window.addEventListener("message", o), + window.addEventListener("storage", i); + }) + ) + ); + } + calculatePopupFeatures(p) { + const n = p.height || 470, + f = p.width || 500, + _ = window.screenLeft + (window.outerWidth - f) / 2; + return `location=no,toolbar=no,width=${f},height=${n},top=${ + window.screenTop + (window.outerHeight - n) / 2 + },left=${_}`; + } + processMessageEventMessage(p) { + let n = "#"; + if ( + (this.silentRefreshMessagePrefix && + (n += this.silentRefreshMessagePrefix), + !p || !p.data || "string" != typeof p.data) + ) + return; + const f = p.data; + return f.startsWith(n) ? "#" + f.substr(n.length) : void 0; + } + canPerformSessionCheck() { + return ( + !!this.sessionChecksEnabled && + (this.sessionCheckIFrameUrl + ? this.getSessionState() + ? void 0 !== this.document + : (console.warn( + "sessionChecksEnabled is activated but there is no session_state" + ), + !1) + : (console.warn( + "sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl" + ), + !1)) + ); + } + setupSessionCheckEventListener() { + this.removeSessionCheckEventListener(), + (this.sessionCheckEventListener = (p) => { + const n = p.origin.toLowerCase(), + f = this.issuer.toLowerCase(); + if ( + (this.debug("sessionCheckEventListener"), f.startsWith(n)) + ) { + switch (p.data) { + case "unchanged": + this.ngZone.run(() => { + this.handleSessionUnchanged(); + }); + break; + case "changed": + this.ngZone.run(() => { + this.handleSessionChange(); + }); + break; + case "error": + this.ngZone.run(() => { + this.handleSessionError(); + }); + } + this.debug("got info from session check inframe", p); + } else + this.debug( + "sessionCheckEventListener", + "wrong origin", + n, + "expected", + f, + "event", + p + ); + }), + this.ngZone.runOutsideAngular(() => { + window.addEventListener( + "message", + this.sessionCheckEventListener + ); + }); + } + handleSessionUnchanged() { + this.debug("session check", "session unchanged"), + this.eventsSubject.next( + new OAuthInfoEvent("session_unchanged") + ); + } + handleSessionChange() { + this.eventsSubject.next(new OAuthInfoEvent("session_changed")), + this.stopSessionCheckTimer(), + this.useSilentRefresh || "code" !== this.responseType + ? this.silentRefreshRedirectUri + ? (this.silentRefresh().catch((p) => + this.debug( + "silent refresh failed after session changed" + ) + ), + this.waitForSilentRefreshAfterSessionChange()) + : (this.eventsSubject.next( + new OAuthInfoEvent("session_terminated") + ), + this.logOut(!0)) + : this.refreshToken() + .then((p) => { + this.debug("token refresh after session change worked"); + }) + .catch((p) => { + this.debug( + "token refresh did not work after session changed" + ), + this.eventsSubject.next( + new OAuthInfoEvent("session_terminated") + ), + this.logOut(!0); + }); + } + waitForSilentRefreshAfterSessionChange() { + this.events + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (p) => + "silently_refreshed" === p.type || + "silent_refresh_timeout" === p.type || + "silent_refresh_error" === p.type + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)() + ) + .subscribe((p) => { + "silently_refreshed" !== p.type && + (this.debug( + "silent refresh did not work after session changed" + ), + this.eventsSubject.next( + new OAuthInfoEvent("session_terminated") + ), + this.logOut(!0)); + }); + } + handleSessionError() { + this.stopSessionCheckTimer(), + this.eventsSubject.next(new OAuthInfoEvent("session_error")); + } + removeSessionCheckEventListener() { + this.sessionCheckEventListener && + (window.removeEventListener( + "message", + this.sessionCheckEventListener + ), + (this.sessionCheckEventListener = null)); + } + initSessionCheck() { + if (!this.canPerformSessionCheck()) return; + const p = this.document.getElementById( + this.sessionCheckIFrameName + ); + p && this.document.body.removeChild(p); + const n = this.document.createElement("iframe"); + (n.id = this.sessionCheckIFrameName), + this.setupSessionCheckEventListener(), + n.setAttribute("src", this.sessionCheckIFrameUrl), + (n.style.display = "none"), + this.document.body.appendChild(n), + this.startSessionCheckTimer(); + } + startSessionCheckTimer() { + this.stopSessionCheckTimer(), + this.ngZone.runOutsideAngular(() => { + this.sessionCheckTimer = setInterval( + this.checkSession.bind(this), + this.sessionCheckIntervall + ); + }); + } + stopSessionCheckTimer() { + this.sessionCheckTimer && + (clearInterval(this.sessionCheckTimer), + (this.sessionCheckTimer = null)); + } + checkSession() { + const p = this.document.getElementById( + this.sessionCheckIFrameName + ); + p || + this.logger.warn( + "checkSession did not find iframe", + this.sessionCheckIFrameName + ); + const n = this.getSessionState(); + n || this.stopSessionCheckTimer(), + p.contentWindow.postMessage( + this.clientId + " " + n, + this.issuer + ); + } + createLoginUrl(p = "", n = "", f = "", _ = !1, m = {}) { + return (0, tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)( + this, + void 0, + void 0, + function* () { + const s = this; + let d; + d = f || this.redirectUri; + const u = yield this.createAndSaveNonce(); + if ( + ((p = p + ? u + + this.config.nonceStateSeparator + + encodeURIComponent(p) + : u), + !this.requestAccessToken && !this.oidc) + ) + throw new Error( + "Either requestAccessToken or oidc or both must be true" + ); + this.responseType = this.config.responseType + ? this.config.responseType + : this.oidc && this.requestAccessToken + ? "id_token token" + : this.oidc && !this.requestAccessToken + ? "id_token" + : "token"; + const h = s.loginUrl.indexOf("?") > -1 ? "&" : "?"; + let r = s.scope; + this.oidc && + !r.match(/(^|\s)openid($|\s)/) && + (r = "openid " + r); + let o = + s.loginUrl + + h + + "response_type=" + + encodeURIComponent(s.responseType) + + "&client_id=" + + encodeURIComponent(s.clientId) + + "&state=" + + encodeURIComponent(p) + + "&redirect_uri=" + + encodeURIComponent(d) + + "&scope=" + + encodeURIComponent(r); + if (this.responseType.includes("code") && !this.disablePKCE) { + const [ + i, + c, + ] = yield this.createChallangeVerifierPairForPKCE(); + this.saveNoncesInLocalStorage && + void 0 !== window.localStorage + ? localStorage.setItem("PKCE_verifier", c) + : this._storage.setItem("PKCE_verifier", c), + (o += "&code_challenge=" + i), + (o += "&code_challenge_method=S256"); + } + n && (o += "&login_hint=" + encodeURIComponent(n)), + s.resource && + (o += "&resource=" + encodeURIComponent(s.resource)), + s.oidc && (o += "&nonce=" + encodeURIComponent(u)), + _ && (o += "&prompt=none"); + for (const i of Object.keys(m)) + o += + "&" + + encodeURIComponent(i) + + "=" + + encodeURIComponent(m[i]); + if (this.customQueryParams) + for (const i of Object.getOwnPropertyNames( + this.customQueryParams + )) + o += + "&" + + i + + "=" + + encodeURIComponent(this.customQueryParams[i]); + return o; + } + ); + } + initImplicitFlowInternal(p = "", n = "") { + if (this.inImplicitFlow) return; + if ( + ((this.inImplicitFlow = !0), + !this.validateUrlForHttps(this.loginUrl)) + ) + throw new Error( + "loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS)." + ); + let f = {}, + _ = null; + "string" == typeof n ? (_ = n) : "object" == typeof n && (f = n), + this.createLoginUrl(p, _, null, !1, f) + .then(this.config.openUri) + .catch((m) => { + console.error("Error in initImplicitFlow", m), + (this.inImplicitFlow = !1); + }); + } + initImplicitFlow(p = "", n = "") { + "" !== this.loginUrl + ? this.initImplicitFlowInternal(p, n) + : this.events + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (f) => "discovery_document_loaded" === f.type + ) + ) + .subscribe((f) => this.initImplicitFlowInternal(p, n)); + } + resetImplicitFlow() { + this.inImplicitFlow = !1; + } + callOnTokenReceivedIfExists(p) { + const n = this; + if (p.onTokenReceived) { + const f = { + idClaims: n.getIdentityClaims(), + idToken: n.getIdToken(), + accessToken: n.getAccessToken(), + state: n.state, + }; + p.onTokenReceived(f); + } + } + storeAccessTokenResponse(p, n, f, _, m) { + if ( + (this._storage.setItem("access_token", p), + _ && !Array.isArray(_) + ? this._storage.setItem( + "granted_scopes", + JSON.stringify(_.split(" ")) + ) + : _ && + Array.isArray(_) && + this._storage.setItem("granted_scopes", JSON.stringify(_)), + this._storage.setItem( + "access_token_stored_at", + "" + this.dateTimeService.now() + ), + f) + ) { + const s = 1e3 * f, + u = this.dateTimeService.new().getTime() + s; + this._storage.setItem("expires_at", "" + u); + } + n && this._storage.setItem("refresh_token", n), + m && + m.forEach((s, d) => { + this._storage.setItem(d, s); + }); + } + tryLogin(p = null) { + return "code" === this.config.responseType + ? this.tryLoginCodeFlow(p).then((n) => !0) + : this.tryLoginImplicitFlow(p); + } + parseQueryString(p) { + return p && 0 !== p.length + ? ("?" === p.charAt(0) && (p = p.substr(1)), + this.urlHelper.parseQueryString(p)) + : {}; + } + tryLoginCodeFlow(p = null) { + return (0, tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)( + this, + void 0, + void 0, + function* () { + const n = (p = p || {}).customHashFragment + ? p.customHashFragment.substring(1) + : window.location.search, + f = this.getCodePartsFromUrl(n), + _ = f.code, + m = f.state, + s = f.session_state; + if (!p.preventClearHashAfterLogin) { + const h = + location.origin + + location.pathname + + location.search + .replace(/code=[^&\$]*/, "") + .replace(/scope=[^&\$]*/, "") + .replace(/state=[^&\$]*/, "") + .replace(/session_state=[^&\$]*/, "") + .replace(/^\?&/, "?") + .replace(/&$/, "") + .replace(/^\?$/, "") + .replace(/&+/g, "&") + .replace(/\?&/, "?") + .replace(/\?$/, "") + + location.hash; + history.replaceState(null, window.name, h); + } + let [d, u] = this.parseState(m); + if (((this.state = u), f.error)) { + this.debug("error trying to login"), + this.handleLoginError(p, f); + const h = new OAuthErrorEvent("code_error", {}, f); + return this.eventsSubject.next(h), Promise.reject(h); + } + if (!p.disableNonceCheck) { + if (!d) return this.saveRequestedRoute(), Promise.resolve(); + if (!p.disableOAuth2StateCheck && !this.validateNonce(d)) { + const r = new OAuthErrorEvent( + "invalid_nonce_in_state", + null + ); + return this.eventsSubject.next(r), Promise.reject(r); + } + return ( + this.storeSessionState(s), + _ && + (yield this.getTokenFromCode(_, p), + this.restoreRequestedRoute()), + Promise.resolve() + ); + } + return Promise.reject(); + } + ); + } + saveRequestedRoute() { + this.config.preserveRequestedRoute && + this._storage.setItem( + "requested_route", + window.location.pathname + window.location.search + ); + } + restoreRequestedRoute() { + const p = this._storage.getItem("requested_route"); + p && history.replaceState(null, "", window.location.origin + p); + } + getCodePartsFromUrl(p) { + return p && 0 !== p.length + ? ("?" === p.charAt(0) && (p = p.substr(1)), + this.urlHelper.parseQueryString(p)) + : this.urlHelper.getHashFragmentParams(); + } + getTokenFromCode(p, n) { + let f = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams( + { encoder: new WebHttpUrlEncodingCodec() } + ) + .set("grant_type", "authorization_code") + .set("code", p) + .set("redirect_uri", n.customRedirectUri || this.redirectUri); + if (!this.disablePKCE) { + let _; + (_ = + this.saveNoncesInLocalStorage && + void 0 !== window.localStorage + ? localStorage.getItem("PKCE_verifier") + : this._storage.getItem("PKCE_verifier")), + _ + ? (f = f.set("code_verifier", _)) + : console.warn("No PKCE verifier found in oauth storage!"); + } + return this.fetchAndProcessToken(f, n); + } + fetchAndProcessToken(p, n) { + (n = n || {}), + this.assertUrlNotNullAndCorrectProtocol( + this.tokenEndpoint, + "tokenEndpoint" + ); + let f = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders().set( + "Content-Type", + "application/x-www-form-urlencoded" + ); + if (this.useHttpBasicAuth) { + const _ = btoa(`${this.clientId}:${this.dummyClientSecret}`); + f = f.set("Authorization", "Basic " + _); + } + return ( + this.useHttpBasicAuth || + (p = p.set("client_id", this.clientId)), + !this.useHttpBasicAuth && + this.dummyClientSecret && + (p = p.set("client_secret", this.dummyClientSecret)), + new Promise((_, m) => { + if (this.customQueryParams) + for (let s of Object.getOwnPropertyNames( + this.customQueryParams + )) + p = p.set(s, this.customQueryParams[s]); + this.http + .post(this.tokenEndpoint, p, { headers: f }) + .subscribe( + (s) => { + this.debug("refresh tokenResponse", s), + this.storeAccessTokenResponse( + s.access_token, + s.refresh_token, + s.expires_in || + this.fallbackAccessTokenExpirationTimeInSec, + s.scope, + this.extractRecognizedCustomParameters(s) + ), + this.oidc && s.id_token + ? this.processIdToken( + s.id_token, + s.access_token, + n.disableNonceCheck + ) + .then((d) => { + this.storeIdToken(d), + this.eventsSubject.next( + new OAuthSuccessEvent("token_received") + ), + this.eventsSubject.next( + new OAuthSuccessEvent("token_refreshed") + ), + _(s); + }) + .catch((d) => { + this.eventsSubject.next( + new OAuthErrorEvent( + "token_validation_error", + d + ) + ), + console.error("Error validating tokens"), + console.error(d), + m(d); + }) + : (this.eventsSubject.next( + new OAuthSuccessEvent("token_received") + ), + this.eventsSubject.next( + new OAuthSuccessEvent("token_refreshed") + ), + _(s)); + }, + (s) => { + console.error("Error getting token", s), + this.eventsSubject.next( + new OAuthErrorEvent("token_refresh_error", s) + ), + m(s); + } + ); + }) + ); + } + tryLoginImplicitFlow(p = null) { + let n; + (n = (p = p || {}).customHashFragment + ? this.urlHelper.getHashFragmentParams(p.customHashFragment) + : this.urlHelper.getHashFragmentParams()), + this.debug("parsed url", n); + const f = n.state; + let [_, m] = this.parseState(f); + if (((this.state = m), n.error)) { + this.debug("error trying to login"), + this.handleLoginError(p, n); + const r = new OAuthErrorEvent("token_error", {}, n); + return this.eventsSubject.next(r), Promise.reject(r); + } + const s = n.access_token, + d = n.id_token, + u = n.session_state, + h = n.scope; + if (!this.requestAccessToken && !this.oidc) + return Promise.reject( + "Either requestAccessToken or oidc (or both) must be true." + ); + if ( + (this.requestAccessToken && !s) || + (this.requestAccessToken && !p.disableOAuth2StateCheck && !f) || + (this.oidc && !d) + ) + return Promise.resolve(!1); + if ( + (this.sessionChecksEnabled && + !u && + this.logger.warn( + "session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim" + ), + this.requestAccessToken && + !p.disableNonceCheck && + !this.validateNonce(_)) + ) { + const o = new OAuthErrorEvent("invalid_nonce_in_state", null); + return this.eventsSubject.next(o), Promise.reject(o); + } + return ( + this.requestAccessToken && + this.storeAccessTokenResponse( + s, + null, + n.expires_in || this.fallbackAccessTokenExpirationTimeInSec, + h + ), + this.oidc + ? this.processIdToken(d, s, p.disableNonceCheck) + .then((r) => + p.validationHandler + ? p + .validationHandler({ + accessToken: s, + idClaims: r.idTokenClaims, + idToken: r.idToken, + state: f, + }) + .then((o) => r) + : r + ) + .then( + (r) => ( + this.storeIdToken(r), + this.storeSessionState(u), + this.clearHashAfterLogin && + !p.preventClearHashAfterLogin && + this.clearLocationHash(), + this.eventsSubject.next( + new OAuthSuccessEvent("token_received") + ), + this.callOnTokenReceivedIfExists(p), + (this.inImplicitFlow = !1), + !0 + ) + ) + .catch( + (r) => ( + this.eventsSubject.next( + new OAuthErrorEvent("token_validation_error", r) + ), + this.logger.error("Error validating tokens"), + this.logger.error(r), + Promise.reject(r) + ) + ) + : (this.eventsSubject.next( + new OAuthSuccessEvent("token_received") + ), + this.clearHashAfterLogin && + !p.preventClearHashAfterLogin && + this.clearLocationHash(), + this.callOnTokenReceivedIfExists(p), + Promise.resolve(!0)) + ); + } + parseState(p) { + let n = p, + f = ""; + if (p) { + const _ = p.indexOf(this.config.nonceStateSeparator); + _ > -1 && + ((n = p.substr(0, _)), + (f = p.substr(_ + this.config.nonceStateSeparator.length))); + } + return [n, f]; + } + validateNonce(p) { + let n; + return ( + (n = + this.saveNoncesInLocalStorage && + void 0 !== window.localStorage + ? localStorage.getItem("nonce") + : this._storage.getItem("nonce")), + n === p || + (console.error( + "Validating access_token failed, wrong state/nonce.", + n, + p + ), + !1) + ); + } + storeIdToken(p) { + this._storage.setItem("id_token", p.idToken), + this._storage.setItem( + "id_token_claims_obj", + p.idTokenClaimsJson + ), + this._storage.setItem( + "id_token_expires_at", + "" + p.idTokenExpiresAt + ), + this._storage.setItem( + "id_token_stored_at", + "" + this.dateTimeService.now() + ); + } + storeSessionState(p) { + this._storage.setItem("session_state", p); + } + getSessionState() { + return this._storage.getItem("session_state"); + } + handleLoginError(p, n) { + p.onLoginError && p.onLoginError(n), + this.clearHashAfterLogin && + !p.preventClearHashAfterLogin && + this.clearLocationHash(); + } + getClockSkewInMsec(p = 6e5) { + return this.clockSkewInSec ? 1e3 * this.clockSkewInSec : p; + } + processIdToken(p, n, f = !1) { + const _ = p.split("."), + s = b64DecodeUnicode(this.padBase64(_[0])), + d = JSON.parse(s), + h = b64DecodeUnicode(this.padBase64(_[1])), + r = JSON.parse(h); + let o; + if ( + ((o = + this.saveNoncesInLocalStorage && + void 0 !== window.localStorage + ? localStorage.getItem("nonce") + : this._storage.getItem("nonce")), + Array.isArray(r.aud)) + ) { + if (r.aud.every((y) => y !== this.clientId)) { + const y = "Wrong audience: " + r.aud.join(","); + return this.logger.warn(y), Promise.reject(y); + } + } else if (r.aud !== this.clientId) { + const y = "Wrong audience: " + r.aud; + return this.logger.warn(y), Promise.reject(y); + } + if (!r.sub) { + const y = "No sub claim in id_token"; + return this.logger.warn(y), Promise.reject(y); + } + if ( + this.sessionChecksEnabled && + this.silentRefreshSubject && + this.silentRefreshSubject !== r.sub + ) { + const y = `After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${r.sub}`; + return this.logger.warn(y), Promise.reject(y); + } + if (!r.iat) { + const y = "No iat claim in id_token"; + return this.logger.warn(y), Promise.reject(y); + } + if (!this.skipIssuerCheck && r.iss !== this.issuer) { + const y = "Wrong issuer: " + r.iss; + return this.logger.warn(y), Promise.reject(y); + } + if (!f && r.nonce !== o) { + const y = "Wrong nonce: " + r.nonce; + return this.logger.warn(y), Promise.reject(y); + } + if ( + (this.hasOwnProperty("responseType") && + ("code" === this.responseType || + "id_token" === this.responseType) && + (this.disableAtHashCheck = !0), + !this.disableAtHashCheck && + this.requestAccessToken && + !r.at_hash) + ) { + const y = "An at_hash is needed!"; + return this.logger.warn(y), Promise.reject(y); + } + const i = this.dateTimeService.now(), + c = 1e3 * r.iat, + l = 1e3 * r.exp, + g = this.getClockSkewInMsec(); + if (c - g >= i || l + g <= i) { + const y = "Token has expired"; + return ( + console.error(y), + console.error({ now: i, issuedAtMSec: c, expiresAtMSec: l }), + Promise.reject(y) + ); + } + const b = { + accessToken: n, + idToken: p, + jwks: this.jwks, + idTokenClaims: r, + idTokenHeader: d, + loadKeys: () => this.loadJwks(), + }; + return this.disableAtHashCheck + ? this.checkSignature(b).then((y) => ({ + idToken: p, + idTokenClaims: r, + idTokenClaimsJson: h, + idTokenHeader: d, + idTokenHeaderJson: s, + idTokenExpiresAt: l, + })) + : this.checkAtHash(b).then((y) => { + if ( + !this.disableAtHashCheck && + this.requestAccessToken && + !y + ) { + const x = "Wrong at_hash"; + return this.logger.warn(x), Promise.reject(x); + } + return this.checkSignature(b).then((x) => { + const O = { + idToken: p, + idTokenClaims: r, + idTokenClaimsJson: h, + idTokenHeader: d, + idTokenHeaderJson: s, + idTokenExpiresAt: l, + }; + return this.disableAtHashCheck + ? O + : this.checkAtHash(b).then((M) => { + if (this.requestAccessToken && !M) { + const A = "Wrong at_hash"; + return this.logger.warn(A), Promise.reject(A); + } + return O; + }); + }); + }); + } + getIdentityClaims() { + const p = this._storage.getItem("id_token_claims_obj"); + return p ? JSON.parse(p) : null; + } + getGrantedScopes() { + const p = this._storage.getItem("granted_scopes"); + return p ? JSON.parse(p) : null; + } + getIdToken() { + return this._storage ? this._storage.getItem("id_token") : null; + } + padBase64(p) { + for (; p.length % 4 != 0; ) p += "="; + return p; + } + getAccessToken() { + return this._storage + ? this._storage.getItem("access_token") + : null; + } + getRefreshToken() { + return this._storage + ? this._storage.getItem("refresh_token") + : null; + } + getAccessTokenExpiration() { + return this._storage.getItem("expires_at") + ? parseInt(this._storage.getItem("expires_at"), 10) + : null; + } + getAccessTokenStoredAt() { + return parseInt( + this._storage.getItem("access_token_stored_at"), + 10 + ); + } + getIdTokenStoredAt() { + return parseInt(this._storage.getItem("id_token_stored_at"), 10); + } + getIdTokenExpiration() { + return this._storage.getItem("id_token_expires_at") + ? parseInt(this._storage.getItem("id_token_expires_at"), 10) + : null; + } + hasValidAccessToken() { + if (this.getAccessToken()) { + const p = this._storage.getItem("expires_at"), + n = this.dateTimeService.new(); + return !( + p && parseInt(p, 10) < n.getTime() - this.getClockSkewInMsec() + ); + } + return !1; + } + hasValidIdToken() { + if (this.getIdToken()) { + const p = this._storage.getItem("id_token_expires_at"), + n = this.dateTimeService.new(); + return !( + p && parseInt(p, 10) < n.getTime() - this.getClockSkewInMsec() + ); + } + return !1; + } + getCustomTokenResponseProperty(p) { + return this._storage && + this.config.customTokenParameters && + this.config.customTokenParameters.indexOf(p) >= 0 && + null !== this._storage.getItem(p) + ? JSON.parse(this._storage.getItem(p)) + : null; + } + authorizationHeader() { + return "Bearer " + this.getAccessToken(); + } + logOut(p = {}, n = "") { + let f = !1; + "boolean" == typeof p && ((f = p), (p = {})); + const _ = this.getIdToken(); + if ( + (this._storage.removeItem("access_token"), + this._storage.removeItem("id_token"), + this._storage.removeItem("refresh_token"), + this.saveNoncesInLocalStorage + ? (localStorage.removeItem("nonce"), + localStorage.removeItem("PKCE_verifier")) + : (this._storage.removeItem("nonce"), + this._storage.removeItem("PKCE_verifier")), + this._storage.removeItem("expires_at"), + this._storage.removeItem("id_token_claims_obj"), + this._storage.removeItem("id_token_expires_at"), + this._storage.removeItem("id_token_stored_at"), + this._storage.removeItem("access_token_stored_at"), + this._storage.removeItem("granted_scopes"), + this._storage.removeItem("session_state"), + this.config.customTokenParameters && + this.config.customTokenParameters.forEach((s) => + this._storage.removeItem(s) + ), + (this.silentRefreshSubject = null), + this.eventsSubject.next(new OAuthInfoEvent("logout")), + !this.logoutUrl || f || (!_ && !this.postLogoutRedirectUri)) + ) + return; + let m; + if (!this.validateUrlForHttps(this.logoutUrl)) + throw new Error( + "logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS)." + ); + if (this.logoutUrl.indexOf("{{") > -1) + m = this.logoutUrl + .replace(/\{\{id_token\}\}/, encodeURIComponent(_)) + .replace( + /\{\{client_id\}\}/, + encodeURIComponent(this.clientId) + ); + else { + let s = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams( + { encoder: new WebHttpUrlEncodingCodec() } + ); + _ && (s = s.set("id_token_hint", _)); + const d = + this.postLogoutRedirectUri || + (this.redirectUriAsPostLogoutRedirectUriFallback && + this.redirectUri) || + ""; + d && + ((s = s.set("post_logout_redirect_uri", d)), + n && (s = s.set("state", n))); + for (let u in p) s = s.set(u, p[u]); + m = + this.logoutUrl + + (this.logoutUrl.indexOf("?") > -1 ? "&" : "?") + + s.toString(); + } + this.config.openUri(m); + } + createAndSaveNonce() { + const p = this; + return this.createNonce().then(function (n) { + return ( + p.saveNoncesInLocalStorage && void 0 !== window.localStorage + ? localStorage.setItem("nonce", n) + : p._storage.setItem("nonce", n), + n + ); + }); + } + ngOnDestroy() { + this.clearAccessTokenTimer(), + this.clearIdTokenTimer(), + this.removeSilentRefreshEventListener(); + const p = this.document.getElementById( + this.silentRefreshIFrameName + ); + p && p.remove(), + this.stopSessionCheckTimer(), + this.removeSessionCheckEventListener(); + const n = this.document.getElementById( + this.sessionCheckIFrameName + ); + n && n.remove(); + } + createNonce() { + return new Promise((p) => { + if (this.rngUrl) + throw new Error( + "createNonce with rng-web-api has not been implemented so far" + ); + const n = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~"; + let f = 45, + _ = ""; + const m = + "undefined" == typeof self + ? null + : self.crypto || self.msCrypto; + if (m) { + let s = new Uint8Array(f); + m.getRandomValues(s), + s.map || (s.map = Array.prototype.map), + (s = s.map((d) => n.charCodeAt(d % n.length))), + (_ = String.fromCharCode.apply(null, s)); + } else for (; 0 < f--; ) _ += n[(Math.random() * n.length) | 0]; + p(base64UrlEncode(_)); + }); + } + checkAtHash(p) { + return (0, tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)( + this, + void 0, + void 0, + function* () { + return this.tokenValidationHandler + ? this.tokenValidationHandler.validateAtHash(p) + : (this.logger.warn( + "No tokenValidationHandler configured. Cannot check at_hash." + ), + !0); + } + ); + } + checkSignature(p) { + return this.tokenValidationHandler + ? this.tokenValidationHandler.validateSignature(p) + : (this.logger.warn( + "No tokenValidationHandler configured. Cannot check signature." + ), + Promise.resolve(null)); + } + initLoginFlow(p = "", n = {}) { + return "code" === this.responseType + ? this.initCodeFlow(p, n) + : this.initImplicitFlow(p, n); + } + initCodeFlow(p = "", n = {}) { + "" !== this.loginUrl + ? this.initCodeFlowInternal(p, n) + : this.events + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (f) => "discovery_document_loaded" === f.type + ) + ) + .subscribe((f) => this.initCodeFlowInternal(p, n)); + } + initCodeFlowInternal(p = "", n = {}) { + if (!this.validateUrlForHttps(this.loginUrl)) + throw new Error( + "loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS)." + ); + let f = {}, + _ = null; + "string" == typeof n ? (_ = n) : "object" == typeof n && (f = n), + this.createLoginUrl(p, _, null, !1, f) + .then(this.config.openUri) + .catch((m) => { + console.error("Error in initAuthorizationCodeFlow"), + console.error(m); + }); + } + createChallangeVerifierPairForPKCE() { + return (0, tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)( + this, + void 0, + void 0, + function* () { + if (!this.crypto) + throw new Error( + "PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?" + ); + const p = yield this.createNonce(); + return [ + base64UrlEncode(yield this.crypto.calcHash(p, "sha-256")), + p, + ]; + } + ); + } + extractRecognizedCustomParameters(p) { + let n = new Map(); + return ( + this.config.customTokenParameters && + this.config.customTokenParameters.forEach((f) => { + p[f] && n.set(f, JSON.stringify(p[f])); + }), + n + ); + } + revokeTokenAndLogout(p = {}, n = !1) { + let f = this.revocationEndpoint, + _ = this.getAccessToken(), + m = this.getRefreshToken(); + if (!_) return; + let s = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams( + { encoder: new WebHttpUrlEncodingCodec() } + ), + d = new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders().set( + "Content-Type", + "application/x-www-form-urlencoded" + ); + if (this.useHttpBasicAuth) { + const u = btoa(`${this.clientId}:${this.dummyClientSecret}`); + d = d.set("Authorization", "Basic " + u); + } + if ( + (this.useHttpBasicAuth || + (s = s.set("client_id", this.clientId)), + !this.useHttpBasicAuth && + this.dummyClientSecret && + (s = s.set("client_secret", this.dummyClientSecret)), + this.customQueryParams) + ) + for (const u of Object.getOwnPropertyNames( + this.customQueryParams + )) + s = s.set(u, this.customQueryParams[u]); + return new Promise((u, h) => { + let r, o; + if (_) { + let i = s + .set("token", _) + .set("token_type_hint", "access_token"); + r = this.http.post(f, i, { headers: d }); + } else r = (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null); + if (m) { + let i = s + .set("token", m) + .set("token_type_hint", "refresh_token"); + o = this.http.post(f, i, { headers: d }); + } else o = (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null); + n && + ((r = r.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)((i) => + 0 === i.status + ? (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null) + : (0, rxjs__WEBPACK_IMPORTED_MODULE_16__._)(i) + ) + )), + (o = o.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)((i) => + 0 === i.status + ? (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null) + : (0, rxjs__WEBPACK_IMPORTED_MODULE_16__._)(i) + ) + ))), + (0, rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([r, o]).subscribe( + (i) => { + this.logOut(p), + u(i), + this.logger.info("Token successfully revoked"); + }, + (i) => { + this.logger.error("Error revoking token", i), + this.eventsSubject.next( + new OAuthErrorEvent("token_revoke_error", i) + ), + h(i); + } + ); + }); + } + clearLocationHash() { + "" != location.hash && (location.hash = ""); + } + } + return ( + (ye.ɵfac = function (p) { + return new (p || ye)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpClient + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + OAuthStorage, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + ValidationHandler, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + AuthConfig, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + UrlHelperService + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + OAuthLogger + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + HashHandler, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + _angular_common__WEBPACK_IMPORTED_MODULE_18__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + DateTimeProvider + ) + ); + }), + (ye.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵdefineInjectable( + { token: ye, factory: ye.ɵfac } + )), + ye + ); + })(); + class OAuthModuleConfig {} + class OAuthResourceServerConfig {} + class OAuthResourceServerErrorHandler {} + class OAuthNoopResourceServerErrorHandler { + handleError(j) { + return (0, rxjs__WEBPACK_IMPORTED_MODULE_16__._)(j); + } + } + let DefaultOAuthInterceptor = (() => { + class ye { + constructor(p, n, f) { + (this.oAuthService = p), + (this.errorHandler = n), + (this.moduleConfig = f); + } + checkUrl(p) { + return this.moduleConfig.resourceServer.customUrlValidation + ? this.moduleConfig.resourceServer.customUrlValidation(p) + : !this.moduleConfig.resourceServer.allowedUrls || + !!this.moduleConfig.resourceServer.allowedUrls.find((n) => + p.toLowerCase().startsWith(n.toLowerCase()) + ); + } + intercept(p, n) { + const f = p.url.toLowerCase(); + return this.moduleConfig && + this.moduleConfig.resourceServer && + this.checkUrl(f) + ? this.moduleConfig.resourceServer.sendAccessToken + ? (0, rxjs__WEBPACK_IMPORTED_MODULE_19__.T)( + (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.of)( + this.oAuthService.getAccessToken() + ).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (m) => !!m + ) + ), + this.oAuthService.events.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)( + (m) => "token_received" === m.type + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)( + this.oAuthService.waitForTokenInMsec || 0 + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)((m) => + (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null) + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)((m) => + this.oAuthService.getAccessToken() + ) + ) + ).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)( + (m) => { + if (m) { + const d = p.headers.set( + "Authorization", + "Bearer " + m + ); + p = p.clone({ headers: d }); + } + return n + .handle(p) + .pipe( + (0, + rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)( + (s) => this.errorHandler.handleError(s) + ) + ); + } + ) + ) + : n + .handle(p) + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)((m) => + this.errorHandler.handleError(m) + ) + ) + : n.handle(p); + } + } + return ( + (ye.ɵfac = function (p) { + return new (p || ye)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject(OAuthService), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + OAuthResourceServerErrorHandler + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵinject( + OAuthModuleConfig, + 8 + ) + ); + }), + (ye.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵdefineInjectable( + { token: ye, factory: ye.ɵfac } + )), + ye + ); + })(); + class NullValidationHandler { + validateSignature(j) { + return Promise.resolve(null); + } + validateAtHash(j) { + return Promise.resolve(!0); + } + } + function createDefaultLogger() { + return console; + } + function createDefaultStorage() { + return "undefined" != typeof sessionStorage + ? sessionStorage + : new MemoryStorage(); + } + let OAuthModule = (() => { + class ye { + static forRoot(p = null, n = NullValidationHandler) { + return { + ngModule: ye, + providers: [ + OAuthService, + UrlHelperService, + { provide: OAuthLogger, useFactory: createDefaultLogger }, + { provide: OAuthStorage, useFactory: createDefaultStorage }, + { provide: ValidationHandler, useClass: n }, + { provide: HashHandler, useClass: DefaultHashHandler }, + { + provide: OAuthResourceServerErrorHandler, + useClass: OAuthNoopResourceServerErrorHandler, + }, + { provide: OAuthModuleConfig, useValue: p }, + { + provide: + _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HTTP_INTERCEPTORS, + useClass: DefaultOAuthInterceptor, + multi: !0, + }, + { provide: DateTimeProvider, useClass: SystemDateTimeProvider }, + ], + }; + } + } + return ( + (ye.ɵfac = function (p) { + return new (p || ye)(); + }), + (ye.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵdefineNgModule( + { type: ye } + )), + (ye.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__.ɵɵdefineInjector( + { + imports: [ + [_angular_common__WEBPACK_IMPORTED_MODULE_18__.CommonModule], + ], + } + )), + ye + ); + })(); + const err = + "PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n"; + class JwksValidationHandler extends NullValidationHandler { + constructor() { + super(), console.error(err); + } + } + const AUTH_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken( + "AUTH_CONFIG" + ); + }, + 4956: (ye, j, p) => { + "use strict"; + function s(P) { + let Ie = P.length; + for (; --Ie >= 0; ) P[Ie] = 0; + } + p.r(j), + p.d(j, { + Deflate: () => Co, + Inflate: () => Xa, + constants: () => Yr, + default: () => ma, + deflate: () => ho, + deflateRaw: () => fa, + gzip: () => Qa, + inflate: () => Wl, + inflateRaw: () => zl, + ungzip: () => pa, + }); + const I = new Uint8Array([ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 3, + 3, + 3, + 3, + 4, + 4, + 4, + 4, + 5, + 5, + 5, + 5, + 0, + ]), + C = new Uint8Array([ + 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, + ]), + L = new Uint8Array([ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 7, + ]), + F = new Uint8Array([ + 16, + 17, + 18, + 0, + 8, + 7, + 9, + 6, + 10, + 5, + 11, + 4, + 12, + 3, + 13, + 2, + 14, + 1, + 15, + ]), + Y = new Array(576); + s(Y); + const Z = new Array(60); + s(Z); + const ee = new Array(512); + s(ee); + const $ = new Array(256); + s($); + const J = new Array(29); + s(J); + const ne = new Array(30); + function ae(P, Ie, he, Ge, Fe) { + (this.static_tree = P), + (this.extra_bits = Ie), + (this.extra_base = he), + (this.elems = Ge), + (this.max_length = Fe), + (this.has_stree = P && P.length); + } + let le, Oe, Le; + function Ye(P, Ie) { + (this.dyn_tree = P), (this.max_code = 0), (this.stat_desc = Ie); + } + s(ne); + const Je = (P) => (P < 256 ? ee[P] : ee[256 + (P >>> 7)]), + gt = (P, Ie) => { + (P.pending_buf[P.pending++] = 255 & Ie), + (P.pending_buf[P.pending++] = (Ie >>> 8) & 255); + }, + Ue = (P, Ie, he) => { + P.bi_valid > 16 - he + ? ((P.bi_buf |= (Ie << P.bi_valid) & 65535), + gt(P, P.bi_buf), + (P.bi_buf = Ie >> (16 - P.bi_valid)), + (P.bi_valid += he - 16)) + : ((P.bi_buf |= (Ie << P.bi_valid) & 65535), (P.bi_valid += he)); + }, + tt = (P, Ie, he) => { + Ue(P, he[2 * Ie], he[2 * Ie + 1]); + }, + at = (P, Ie) => { + let he = 0; + do { + (he |= 1 & P), (P >>>= 1), (he <<= 1); + } while (--Ie > 0); + return he >>> 1; + }, + yt = (P, Ie, he) => { + const Ge = new Array(16); + let ht, + Ut, + Fe = 0; + for (ht = 1; ht <= 15; ht++) Ge[ht] = Fe = (Fe + he[ht - 1]) << 1; + for (Ut = 0; Ut <= Ie; Ut++) { + let kt = P[2 * Ut + 1]; + 0 !== kt && (P[2 * Ut] = at(Ge[kt]++, kt)); + } + }, + _t = (P) => { + let Ie; + for (Ie = 0; Ie < 286; Ie++) P.dyn_ltree[2 * Ie] = 0; + for (Ie = 0; Ie < 30; Ie++) P.dyn_dtree[2 * Ie] = 0; + for (Ie = 0; Ie < 19; Ie++) P.bl_tree[2 * Ie] = 0; + (P.dyn_ltree[512] = 1), + (P.opt_len = P.static_len = 0), + (P.last_lit = P.matches = 0); + }, + At = (P) => { + P.bi_valid > 8 + ? gt(P, P.bi_buf) + : P.bi_valid > 0 && (P.pending_buf[P.pending++] = P.bi_buf), + (P.bi_buf = 0), + (P.bi_valid = 0); + }, + Bt = (P, Ie, he, Ge) => { + const Fe = 2 * Ie, + ht = 2 * he; + return P[Fe] < P[ht] || (P[Fe] === P[ht] && Ge[Ie] <= Ge[he]); + }, + Et = (P, Ie, he) => { + const Ge = P.heap[he]; + let Fe = he << 1; + for ( + ; + Fe <= P.heap_len && + (Fe < P.heap_len && + Bt(Ie, P.heap[Fe + 1], P.heap[Fe], P.depth) && + Fe++, + !Bt(Ie, Ge, P.heap[Fe], P.depth)); + + ) + (P.heap[he] = P.heap[Fe]), (he = Fe), (Fe <<= 1); + P.heap[he] = Ge; + }, + Ee = (P, Ie, he) => { + let Ge, + Fe, + Ut, + kt, + ht = 0; + if (0 !== P.last_lit) + do { + (Ge = + (P.pending_buf[P.d_buf + 2 * ht] << 8) | + P.pending_buf[P.d_buf + 2 * ht + 1]), + (Fe = P.pending_buf[P.l_buf + ht]), + ht++, + 0 === Ge + ? tt(P, Fe, Ie) + : ((Ut = $[Fe]), + tt(P, Ut + 256 + 1, Ie), + (kt = I[Ut]), + 0 !== kt && ((Fe -= J[Ut]), Ue(P, Fe, kt)), + Ge--, + (Ut = Je(Ge)), + tt(P, Ut, he), + (kt = C[Ut]), + 0 !== kt && ((Ge -= ne[Ut]), Ue(P, Ge, kt))); + } while (ht < P.last_lit); + tt(P, 256, Ie); + }, + fe = (P, Ie) => { + const he = Ie.dyn_tree, + Ge = Ie.stat_desc.static_tree, + Fe = Ie.stat_desc.has_stree, + ht = Ie.stat_desc.elems; + let Ut, + kt, + wt, + bn = -1; + for (P.heap_len = 0, P.heap_max = 573, Ut = 0; Ut < ht; Ut++) + 0 !== he[2 * Ut] + ? ((P.heap[++P.heap_len] = bn = Ut), (P.depth[Ut] = 0)) + : (he[2 * Ut + 1] = 0); + for (; P.heap_len < 2; ) + (wt = P.heap[++P.heap_len] = bn < 2 ? ++bn : 0), + (he[2 * wt] = 1), + (P.depth[wt] = 0), + P.opt_len--, + Fe && (P.static_len -= Ge[2 * wt + 1]); + for (Ie.max_code = bn, Ut = P.heap_len >> 1; Ut >= 1; Ut--) + Et(P, he, Ut); + wt = ht; + do { + (Ut = P.heap[1]), + (P.heap[1] = P.heap[P.heap_len--]), + Et(P, he, 1), + (kt = P.heap[1]), + (P.heap[--P.heap_max] = Ut), + (P.heap[--P.heap_max] = kt), + (he[2 * wt] = he[2 * Ut] + he[2 * kt]), + (P.depth[wt] = + (P.depth[Ut] >= P.depth[kt] ? P.depth[Ut] : P.depth[kt]) + 1), + (he[2 * Ut + 1] = he[2 * kt + 1] = wt), + (P.heap[1] = wt++), + Et(P, he, 1); + } while (P.heap_len >= 2); + (P.heap[--P.heap_max] = P.heap[1]), + ((P, Ie) => { + const he = Ie.dyn_tree, + Ge = Ie.max_code, + Fe = Ie.stat_desc.static_tree, + ht = Ie.stat_desc.has_stree, + Ut = Ie.stat_desc.extra_bits, + kt = Ie.stat_desc.extra_base, + bn = Ie.stat_desc.max_length; + let wt, + $t, + Ii, + hn, + en, + Nn, + er = 0; + for (hn = 0; hn <= 15; hn++) P.bl_count[hn] = 0; + for ( + he[2 * P.heap[P.heap_max] + 1] = 0, wt = P.heap_max + 1; + wt < 573; + wt++ + ) + ($t = P.heap[wt]), + (hn = he[2 * he[2 * $t + 1] + 1] + 1), + hn > bn && ((hn = bn), er++), + (he[2 * $t + 1] = hn), + !($t > Ge) && + (P.bl_count[hn]++, + (en = 0), + $t >= kt && (en = Ut[$t - kt]), + (Nn = he[2 * $t]), + (P.opt_len += Nn * (hn + en)), + ht && (P.static_len += Nn * (Fe[2 * $t + 1] + en))); + if (0 !== er) { + do { + for (hn = bn - 1; 0 === P.bl_count[hn]; ) hn--; + P.bl_count[hn]--, + (P.bl_count[hn + 1] += 2), + P.bl_count[bn]--, + (er -= 2); + } while (er > 0); + for (hn = bn; 0 !== hn; hn--) + for ($t = P.bl_count[hn]; 0 !== $t; ) + (Ii = P.heap[--wt]), + !(Ii > Ge) && + (he[2 * Ii + 1] !== hn && + ((P.opt_len += (hn - he[2 * Ii + 1]) * he[2 * Ii]), + (he[2 * Ii + 1] = hn)), + $t--); + } + })(P, Ie), + yt(he, bn, P.bl_count); + }, + H = (P, Ie, he) => { + let Ge, + ht, + Fe = -1, + Ut = Ie[1], + kt = 0, + bn = 7, + wt = 4; + for ( + 0 === Ut && ((bn = 138), (wt = 3)), + Ie[2 * (he + 1) + 1] = 65535, + Ge = 0; + Ge <= he; + Ge++ + ) + (ht = Ut), + (Ut = Ie[2 * (Ge + 1) + 1]), + !(++kt < bn && ht === Ut) && + (kt < wt + ? (P.bl_tree[2 * ht] += kt) + : 0 !== ht + ? (ht !== Fe && P.bl_tree[2 * ht]++, P.bl_tree[32]++) + : kt <= 10 + ? P.bl_tree[34]++ + : P.bl_tree[36]++, + (kt = 0), + (Fe = ht), + 0 === Ut + ? ((bn = 138), (wt = 3)) + : ht === Ut + ? ((bn = 6), (wt = 3)) + : ((bn = 7), (wt = 4))); + }, + D = (P, Ie, he) => { + let Ge, + ht, + Fe = -1, + Ut = Ie[1], + kt = 0, + bn = 7, + wt = 4; + for (0 === Ut && ((bn = 138), (wt = 3)), Ge = 0; Ge <= he; Ge++) + if ( + ((ht = Ut), + (Ut = Ie[2 * (Ge + 1) + 1]), + !(++kt < bn && ht === Ut)) + ) { + if (kt < wt) + do { + tt(P, ht, P.bl_tree); + } while (0 != --kt); + else + 0 !== ht + ? (ht !== Fe && (tt(P, ht, P.bl_tree), kt--), + tt(P, 16, P.bl_tree), + Ue(P, kt - 3, 2)) + : kt <= 10 + ? (tt(P, 17, P.bl_tree), Ue(P, kt - 3, 3)) + : (tt(P, 18, P.bl_tree), Ue(P, kt - 11, 7)); + (kt = 0), + (Fe = ht), + 0 === Ut + ? ((bn = 138), (wt = 3)) + : ht === Ut + ? ((bn = 6), (wt = 3)) + : ((bn = 7), (wt = 4)); + } + }; + let Be = !1; + const st = (P, Ie, he, Ge) => { + Ue(P, 0 + (Ge ? 1 : 0), 3), + ((P, Ie, he, Ge) => { + At(P), + gt(P, he), + gt(P, ~he), + P.pending_buf.set(P.window.subarray(Ie, Ie + he), P.pending), + (P.pending += he); + })(P, Ie, he); + }; + var Lt = { + _tr_init: (P) => { + Be || + ((() => { + let P, Ie, he, Ge, Fe; + const ht = new Array(16); + for (he = 0, Ge = 0; Ge < 28; Ge++) + for (J[Ge] = he, P = 0; P < 1 << I[Ge]; P++) $[he++] = Ge; + for ($[he - 1] = Ge, Fe = 0, Ge = 0; Ge < 16; Ge++) + for (ne[Ge] = Fe, P = 0; P < 1 << C[Ge]; P++) ee[Fe++] = Ge; + for (Fe >>= 7; Ge < 30; Ge++) + for (ne[Ge] = Fe << 7, P = 0; P < 1 << (C[Ge] - 7); P++) + ee[256 + Fe++] = Ge; + for (Ie = 0; Ie <= 15; Ie++) ht[Ie] = 0; + for (P = 0; P <= 143; ) (Y[2 * P + 1] = 8), P++, ht[8]++; + for (; P <= 255; ) (Y[2 * P + 1] = 9), P++, ht[9]++; + for (; P <= 279; ) (Y[2 * P + 1] = 7), P++, ht[7]++; + for (; P <= 287; ) (Y[2 * P + 1] = 8), P++, ht[8]++; + for (yt(Y, 287, ht), P = 0; P < 30; P++) + (Z[2 * P + 1] = 5), (Z[2 * P] = at(P, 5)); + (le = new ae(Y, I, 257, 286, 15)), + (Oe = new ae(Z, C, 0, 30, 15)), + (Le = new ae(new Array(0), L, 0, 19, 7)); + })(), + (Be = !0)), + (P.l_desc = new Ye(P.dyn_ltree, le)), + (P.d_desc = new Ye(P.dyn_dtree, Oe)), + (P.bl_desc = new Ye(P.bl_tree, Le)), + (P.bi_buf = 0), + (P.bi_valid = 0), + _t(P); + }, + _tr_stored_block: st, + _tr_flush_block: (P, Ie, he, Ge) => { + let Fe, + ht, + Ut = 0; + P.level > 0 + ? (2 === P.strm.data_type && + (P.strm.data_type = ((P) => { + let he, + Ie = 4093624447; + for (he = 0; he <= 31; he++, Ie >>>= 1) + if (1 & Ie && 0 !== P.dyn_ltree[2 * he]) return 0; + if ( + 0 !== P.dyn_ltree[18] || + 0 !== P.dyn_ltree[20] || + 0 !== P.dyn_ltree[26] + ) + return 1; + for (he = 32; he < 256; he++) + if (0 !== P.dyn_ltree[2 * he]) return 1; + return 0; + })(P)), + fe(P, P.l_desc), + fe(P, P.d_desc), + (Ut = ((P) => { + let Ie; + for ( + H(P, P.dyn_ltree, P.l_desc.max_code), + H(P, P.dyn_dtree, P.d_desc.max_code), + fe(P, P.bl_desc), + Ie = 18; + Ie >= 3 && 0 === P.bl_tree[2 * F[Ie] + 1]; + Ie-- + ); + return (P.opt_len += 3 * (Ie + 1) + 5 + 5 + 4), Ie; + })(P)), + (Fe = (P.opt_len + 3 + 7) >>> 3), + (ht = (P.static_len + 3 + 7) >>> 3), + ht <= Fe && (Fe = ht)) + : (Fe = ht = he + 5), + he + 4 <= Fe && -1 !== Ie + ? st(P, Ie, he, Ge) + : 4 === P.strategy || ht === Fe + ? (Ue(P, 2 + (Ge ? 1 : 0), 3), Ee(P, Y, Z)) + : (Ue(P, 4 + (Ge ? 1 : 0), 3), + ((P, Ie, he, Ge) => { + let Fe; + for ( + Ue(P, Ie - 257, 5), + Ue(P, he - 1, 5), + Ue(P, Ge - 4, 4), + Fe = 0; + Fe < Ge; + Fe++ + ) + Ue(P, P.bl_tree[2 * F[Fe] + 1], 3); + D(P, P.dyn_ltree, Ie - 1), D(P, P.dyn_dtree, he - 1); + })(P, P.l_desc.max_code + 1, P.d_desc.max_code + 1, Ut + 1), + Ee(P, P.dyn_ltree, P.dyn_dtree)), + _t(P), + Ge && At(P); + }, + _tr_tally: (P, Ie, he) => ( + (P.pending_buf[P.d_buf + 2 * P.last_lit] = (Ie >>> 8) & 255), + (P.pending_buf[P.d_buf + 2 * P.last_lit + 1] = 255 & Ie), + (P.pending_buf[P.l_buf + P.last_lit] = 255 & he), + P.last_lit++, + 0 === Ie + ? P.dyn_ltree[2 * he]++ + : (P.matches++, + Ie--, + P.dyn_ltree[2 * ($[he] + 256 + 1)]++, + P.dyn_dtree[2 * Je(Ie)]++), + P.last_lit === P.lit_bufsize - 1 + ), + _tr_align: (P) => { + Ue(P, 2, 3), + tt(P, 256, Y), + ((P) => { + 16 === P.bi_valid + ? (gt(P, P.bi_buf), (P.bi_buf = 0), (P.bi_valid = 0)) + : P.bi_valid >= 8 && + ((P.pending_buf[P.pending++] = 255 & P.bi_buf), + (P.bi_buf >>= 8), + (P.bi_valid -= 8)); + })(P); + }, + }, + mt = (P, Ie, he, Ge) => { + let Fe = (65535 & P) | 0, + ht = ((P >>> 16) & 65535) | 0, + Ut = 0; + for (; 0 !== he; ) { + (Ut = he > 2e3 ? 2e3 : he), (he -= Ut); + do { + (Fe = (Fe + Ie[Ge++]) | 0), (ht = (ht + Fe) | 0); + } while (--Ut); + (Fe %= 65521), (ht %= 65521); + } + return Fe | (ht << 16) | 0; + }; + const qt = new Uint32Array( + (() => { + let P, + Ie = []; + for (var he = 0; he < 256; he++) { + P = he; + for (var Ge = 0; Ge < 8; Ge++) + P = 1 & P ? 3988292384 ^ (P >>> 1) : P >>> 1; + Ie[he] = P; + } + return Ie; + })() + ); + var Se = (P, Ie, he, Ge) => { + const Fe = qt, + ht = Ge + he; + P ^= -1; + for (let Ut = Ge; Ut < ht; Ut++) + P = (P >>> 8) ^ Fe[255 & (P ^ Ie[Ut])]; + return -1 ^ P; + }, + te = { + 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", + }, + re = { + 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_MEM_ERROR: -4, + 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, + }; + const { + _tr_init: Me, + _tr_stored_block: ze, + _tr_flush_block: It, + _tr_tally: Qt, + _tr_align: cn, + } = Lt, + { + Z_NO_FLUSH: An, + Z_PARTIAL_FLUSH: lt, + Z_FULL_FLUSH: ct, + Z_FINISH: He, + Z_BLOCK: pt, + Z_OK: Ot, + Z_STREAM_END: un, + Z_STREAM_ERROR: on, + Z_DATA_ERROR: On, + Z_BUF_ERROR: Yn, + Z_DEFAULT_COMPRESSION: ji, + Z_FILTERED: Oi, + Z_HUFFMAN_ONLY: Ni, + Z_RLE: Ti, + Z_FIXED: qn, + Z_DEFAULT_STRATEGY: Vi, + Z_UNKNOWN: ci, + Z_DEFLATED: xe, + } = re, + Tn = 262, + bi = (P, Ie) => ((P.msg = te[Ie]), Ie), + Rn = (P) => (P << 1) - (P > 4 ? 9 : 0), + qi = (P) => { + let Ie = P.length; + for (; --Ie >= 0; ) P[Ie] = 0; + }; + let Fn = (P, Ie, he) => ((Ie << P.hash_shift) ^ he) & P.hash_mask; + const $i = (P) => { + const Ie = P.state; + let he = Ie.pending; + he > P.avail_out && (he = P.avail_out), + 0 !== he && + (P.output.set( + Ie.pending_buf.subarray(Ie.pending_out, Ie.pending_out + he), + P.next_out + ), + (P.next_out += he), + (Ie.pending_out += he), + (P.total_out += he), + (P.avail_out -= he), + (Ie.pending -= he), + 0 === Ie.pending && (Ie.pending_out = 0)); + }, + mi = (P, Ie) => { + It( + P, + P.block_start >= 0 ? P.block_start : -1, + P.strstart - P.block_start, + Ie + ), + (P.block_start = P.strstart), + $i(P.strm); + }, + Gn = (P, Ie) => { + P.pending_buf[P.pending++] = Ie; + }, + ur = (P, Ie) => { + (P.pending_buf[P.pending++] = (Ie >>> 8) & 255), + (P.pending_buf[P.pending++] = 255 & Ie); + }, + gn = (P, Ie, he, Ge) => { + let Fe = P.avail_in; + return ( + Fe > Ge && (Fe = Ge), + 0 === Fe + ? 0 + : ((P.avail_in -= Fe), + Ie.set(P.input.subarray(P.next_in, P.next_in + Fe), he), + 1 === P.state.wrap + ? (P.adler = mt(P.adler, Ie, Fe, he)) + : 2 === P.state.wrap && (P.adler = Se(P.adler, Ie, Fe, he)), + (P.next_in += Fe), + (P.total_in += Fe), + Fe) + ); + }, + yn = (P, Ie) => { + let Fe, + ht, + he = P.max_chain_length, + Ge = P.strstart, + Ut = P.prev_length, + kt = P.nice_match; + const bn = + P.strstart > P.w_size - Tn ? P.strstart - (P.w_size - Tn) : 0, + wt = P.window, + $t = P.w_mask, + Ii = P.prev, + hn = P.strstart + 258; + let en = wt[Ge + Ut - 1], + Nn = wt[Ge + Ut]; + P.prev_length >= P.good_match && (he >>= 2), + kt > P.lookahead && (kt = P.lookahead); + do { + if ( + ((Fe = Ie), + wt[Fe + Ut] === Nn && + wt[Fe + Ut - 1] === en && + wt[Fe] === wt[Ge] && + wt[++Fe] === wt[Ge + 1]) + ) { + (Ge += 2), Fe++; + do {} while ( + wt[++Ge] === wt[++Fe] && + wt[++Ge] === wt[++Fe] && + wt[++Ge] === wt[++Fe] && + wt[++Ge] === wt[++Fe] && + wt[++Ge] === wt[++Fe] && + wt[++Ge] === wt[++Fe] && + wt[++Ge] === wt[++Fe] && + wt[++Ge] === wt[++Fe] && + Ge < hn + ); + if (((ht = 258 - (hn - Ge)), (Ge = hn - 258), ht > Ut)) { + if (((P.match_start = Ie), (Ut = ht), ht >= kt)) break; + (en = wt[Ge + Ut - 1]), (Nn = wt[Ge + Ut]); + } + } + } while ((Ie = Ii[Ie & $t]) > bn && 0 != --he); + return Ut <= P.lookahead ? Ut : P.lookahead; + }, + Sn = (P) => { + const Ie = P.w_size; + let he, Ge, Fe, ht, Ut; + do { + if ( + ((ht = P.window_size - P.lookahead - P.strstart), + P.strstart >= Ie + (Ie - Tn)) + ) { + P.window.set(P.window.subarray(Ie, Ie + Ie), 0), + (P.match_start -= Ie), + (P.strstart -= Ie), + (P.block_start -= Ie), + (Ge = P.hash_size), + (he = Ge); + do { + (Fe = P.head[--he]), (P.head[he] = Fe >= Ie ? Fe - Ie : 0); + } while (--Ge); + (Ge = Ie), (he = Ge); + do { + (Fe = P.prev[--he]), (P.prev[he] = Fe >= Ie ? Fe - Ie : 0); + } while (--Ge); + ht += Ie; + } + if (0 === P.strm.avail_in) break; + if ( + ((Ge = gn(P.strm, P.window, P.strstart + P.lookahead, ht)), + (P.lookahead += Ge), + P.lookahead + P.insert >= 3) + ) + for ( + Ut = P.strstart - P.insert, + P.ins_h = P.window[Ut], + P.ins_h = Fn(P, P.ins_h, P.window[Ut + 1]); + P.insert && + ((P.ins_h = Fn(P, P.ins_h, P.window[Ut + 3 - 1])), + (P.prev[Ut & P.w_mask] = P.head[P.ins_h]), + (P.head[P.ins_h] = Ut), + Ut++, + P.insert--, + !(P.lookahead + P.insert < 3)); + + ); + } while (P.lookahead < Tn && 0 !== P.strm.avail_in); + }, + Ri = (P, Ie) => { + let he, Ge; + for (;;) { + if (P.lookahead < Tn) { + if ((Sn(P), P.lookahead < Tn && Ie === An)) return 1; + if (0 === P.lookahead) break; + } + if ( + ((he = 0), + P.lookahead >= 3 && + ((P.ins_h = Fn(P, P.ins_h, P.window[P.strstart + 3 - 1])), + (he = P.prev[P.strstart & P.w_mask] = P.head[P.ins_h]), + (P.head[P.ins_h] = P.strstart)), + 0 !== he && + P.strstart - he <= P.w_size - Tn && + (P.match_length = yn(P, he)), + P.match_length >= 3) + ) + if ( + ((Ge = Qt(P, P.strstart - P.match_start, P.match_length - 3)), + (P.lookahead -= P.match_length), + P.match_length <= P.max_lazy_match && P.lookahead >= 3) + ) { + P.match_length--; + do { + P.strstart++, + (P.ins_h = Fn(P, P.ins_h, P.window[P.strstart + 3 - 1])), + (he = P.prev[P.strstart & P.w_mask] = P.head[P.ins_h]), + (P.head[P.ins_h] = P.strstart); + } while (0 != --P.match_length); + P.strstart++; + } else + (P.strstart += P.match_length), + (P.match_length = 0), + (P.ins_h = P.window[P.strstart]), + (P.ins_h = Fn(P, P.ins_h, P.window[P.strstart + 1])); + else + (Ge = Qt(P, 0, P.window[P.strstart])), + P.lookahead--, + P.strstart++; + if (Ge && (mi(P, !1), 0 === P.strm.avail_out)) return 1; + } + return ( + (P.insert = P.strstart < 2 ? P.strstart : 2), + Ie === He + ? (mi(P, !0), 0 === P.strm.avail_out ? 3 : 4) + : P.last_lit && (mi(P, !1), 0 === P.strm.avail_out) + ? 1 + : 2 + ); + }, + Li = (P, Ie) => { + let he, Ge, Fe; + for (;;) { + if (P.lookahead < Tn) { + if ((Sn(P), P.lookahead < Tn && Ie === An)) return 1; + if (0 === P.lookahead) break; + } + if ( + ((he = 0), + P.lookahead >= 3 && + ((P.ins_h = Fn(P, P.ins_h, P.window[P.strstart + 3 - 1])), + (he = P.prev[P.strstart & P.w_mask] = P.head[P.ins_h]), + (P.head[P.ins_h] = P.strstart)), + (P.prev_length = P.match_length), + (P.prev_match = P.match_start), + (P.match_length = 2), + 0 !== he && + P.prev_length < P.max_lazy_match && + P.strstart - he <= P.w_size - Tn && + ((P.match_length = yn(P, he)), + P.match_length <= 5 && + (P.strategy === Oi || + (3 === P.match_length && + P.strstart - P.match_start > 4096)) && + (P.match_length = 2)), + P.prev_length >= 3 && P.match_length <= P.prev_length) + ) { + (Fe = P.strstart + P.lookahead - 3), + (Ge = Qt(P, P.strstart - 1 - P.prev_match, P.prev_length - 3)), + (P.lookahead -= P.prev_length - 1), + (P.prev_length -= 2); + do { + ++P.strstart <= Fe && + ((P.ins_h = Fn(P, P.ins_h, P.window[P.strstart + 3 - 1])), + (he = P.prev[P.strstart & P.w_mask] = P.head[P.ins_h]), + (P.head[P.ins_h] = P.strstart)); + } while (0 != --P.prev_length); + if ( + ((P.match_available = 0), + (P.match_length = 2), + P.strstart++, + Ge && (mi(P, !1), 0 === P.strm.avail_out)) + ) + return 1; + } else if (P.match_available) { + if ( + ((Ge = Qt(P, 0, P.window[P.strstart - 1])), + Ge && mi(P, !1), + P.strstart++, + P.lookahead--, + 0 === P.strm.avail_out) + ) + return 1; + } else (P.match_available = 1), P.strstart++, P.lookahead--; + } + return ( + P.match_available && + ((Ge = Qt(P, 0, P.window[P.strstart - 1])), + (P.match_available = 0)), + (P.insert = P.strstart < 2 ? P.strstart : 2), + Ie === He + ? (mi(P, !0), 0 === P.strm.avail_out ? 3 : 4) + : P.last_lit && (mi(P, !1), 0 === P.strm.avail_out) + ? 1 + : 2 + ); + }; + function nr(P, Ie, he, Ge, Fe) { + (this.good_length = P), + (this.max_lazy = Ie), + (this.nice_length = he), + (this.max_chain = Ge), + (this.func = Fe); + } + const Or = [ + new nr(0, 0, 0, 0, (P, Ie) => { + let he = 65535; + for ( + he > P.pending_buf_size - 5 && (he = P.pending_buf_size - 5); + ; + + ) { + if (P.lookahead <= 1) { + if ((Sn(P), 0 === P.lookahead && Ie === An)) return 1; + if (0 === P.lookahead) break; + } + (P.strstart += P.lookahead), (P.lookahead = 0); + const Ge = P.block_start + he; + if ( + ((0 === P.strstart || P.strstart >= Ge) && + ((P.lookahead = P.strstart - Ge), + (P.strstart = Ge), + mi(P, !1), + 0 === P.strm.avail_out)) || + (P.strstart - P.block_start >= P.w_size - Tn && + (mi(P, !1), 0 === P.strm.avail_out)) + ) + return 1; + } + return ( + (P.insert = 0), + Ie === He + ? (mi(P, !0), 0 === P.strm.avail_out ? 3 : 4) + : (P.strstart > P.block_start && mi(P, !1), 1) + ); + }), + new nr(4, 4, 8, 4, Ri), + new nr(4, 5, 16, 8, Ri), + new nr(4, 6, 32, 32, Ri), + new nr(4, 4, 16, 16, Li), + new nr(8, 16, 32, 32, Li), + new nr(8, 16, 128, 128, Li), + new nr(8, 32, 128, 256, Li), + new nr(32, 128, 258, 1024, Li), + new nr(32, 258, 258, 4096, Li), + ]; + function cr() { + (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 = xe), + (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 Uint16Array(1146)), + (this.dyn_dtree = new Uint16Array(122)), + (this.bl_tree = new Uint16Array(78)), + qi(this.dyn_ltree), + qi(this.dyn_dtree), + qi(this.bl_tree), + (this.l_desc = null), + (this.d_desc = null), + (this.bl_desc = null), + (this.bl_count = new Uint16Array(16)), + (this.heap = new Uint16Array(573)), + qi(this.heap), + (this.heap_len = 0), + (this.heap_max = 0), + (this.depth = new Uint16Array(573)), + qi(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); + } + const $r = (P) => { + if (!P || !P.state) return bi(P, on); + (P.total_in = P.total_out = 0), (P.data_type = ci); + const Ie = P.state; + return ( + (Ie.pending = 0), + (Ie.pending_out = 0), + Ie.wrap < 0 && (Ie.wrap = -Ie.wrap), + (Ie.status = Ie.wrap ? 42 : 113), + (P.adler = 2 === Ie.wrap ? 0 : 1), + (Ie.last_flush = An), + Me(Ie), + Ot + ); + }, + hr = (P) => { + const Ie = $r(P); + return ( + Ie === Ot && + ((P) => { + (P.window_size = 2 * P.w_size), + qi(P.head), + (P.max_lazy_match = Or[P.level].max_lazy), + (P.good_match = Or[P.level].good_length), + (P.nice_match = Or[P.level].nice_length), + (P.max_chain_length = Or[P.level].max_chain), + (P.strstart = 0), + (P.block_start = 0), + (P.lookahead = 0), + (P.insert = 0), + (P.match_length = P.prev_length = 2), + (P.match_available = 0), + (P.ins_h = 0); + })(P.state), + Ie + ); + }, + ir = (P, Ie, he, Ge, Fe, ht) => { + if (!P) return on; + let Ut = 1; + if ( + (Ie === ji && (Ie = 6), + Ge < 0 ? ((Ut = 0), (Ge = -Ge)) : Ge > 15 && ((Ut = 2), (Ge -= 16)), + Fe < 1 || + Fe > 9 || + he !== xe || + Ge < 8 || + Ge > 15 || + Ie < 0 || + Ie > 9 || + ht < 0 || + ht > qn) + ) + return bi(P, on); + 8 === Ge && (Ge = 9); + const kt = new cr(); + return ( + (P.state = kt), + (kt.strm = P), + (kt.wrap = Ut), + (kt.gzhead = null), + (kt.w_bits = Ge), + (kt.w_size = 1 << kt.w_bits), + (kt.w_mask = kt.w_size - 1), + (kt.hash_bits = Fe + 7), + (kt.hash_size = 1 << kt.hash_bits), + (kt.hash_mask = kt.hash_size - 1), + (kt.hash_shift = ~~((kt.hash_bits + 3 - 1) / 3)), + (kt.window = new Uint8Array(2 * kt.w_size)), + (kt.head = new Uint16Array(kt.hash_size)), + (kt.prev = new Uint16Array(kt.w_size)), + (kt.lit_bufsize = 1 << (Fe + 6)), + (kt.pending_buf_size = 4 * kt.lit_bufsize), + (kt.pending_buf = new Uint8Array(kt.pending_buf_size)), + (kt.d_buf = 1 * kt.lit_bufsize), + (kt.l_buf = 3 * kt.lit_bufsize), + (kt.level = Ie), + (kt.strategy = ht), + (kt.method = he), + hr(P) + ); + }; + var kr_deflateInit2 = ir, + kr_deflateSetHeader = (P, Ie) => + P && P.state && 2 === P.state.wrap ? ((P.state.gzhead = Ie), Ot) : on, + kr_deflate = (P, Ie) => { + let he, Ge; + if (!P || !P.state || Ie > pt || Ie < 0) return P ? bi(P, on) : on; + const Fe = P.state; + if ( + !P.output || + (!P.input && 0 !== P.avail_in) || + (666 === Fe.status && Ie !== He) + ) + return bi(P, 0 === P.avail_out ? Yn : on); + Fe.strm = P; + const ht = Fe.last_flush; + if (((Fe.last_flush = Ie), 42 === Fe.status)) + if (2 === Fe.wrap) + (P.adler = 0), + Gn(Fe, 31), + Gn(Fe, 139), + Gn(Fe, 8), + Fe.gzhead + ? (Gn( + Fe, + (Fe.gzhead.text ? 1 : 0) + + (Fe.gzhead.hcrc ? 2 : 0) + + (Fe.gzhead.extra ? 4 : 0) + + (Fe.gzhead.name ? 8 : 0) + + (Fe.gzhead.comment ? 16 : 0) + ), + Gn(Fe, 255 & Fe.gzhead.time), + Gn(Fe, (Fe.gzhead.time >> 8) & 255), + Gn(Fe, (Fe.gzhead.time >> 16) & 255), + Gn(Fe, (Fe.gzhead.time >> 24) & 255), + Gn( + Fe, + 9 === Fe.level + ? 2 + : Fe.strategy >= Ni || Fe.level < 2 + ? 4 + : 0 + ), + Gn(Fe, 255 & Fe.gzhead.os), + Fe.gzhead.extra && + Fe.gzhead.extra.length && + (Gn(Fe, 255 & Fe.gzhead.extra.length), + Gn(Fe, (Fe.gzhead.extra.length >> 8) & 255)), + Fe.gzhead.hcrc && + (P.adler = Se(P.adler, Fe.pending_buf, Fe.pending, 0)), + (Fe.gzindex = 0), + (Fe.status = 69)) + : (Gn(Fe, 0), + Gn(Fe, 0), + Gn(Fe, 0), + Gn(Fe, 0), + Gn(Fe, 0), + Gn( + Fe, + 9 === Fe.level + ? 2 + : Fe.strategy >= Ni || Fe.level < 2 + ? 4 + : 0 + ), + Gn(Fe, 3), + (Fe.status = 113)); + else { + let Ut = (xe + ((Fe.w_bits - 8) << 4)) << 8, + kt = -1; + (kt = + Fe.strategy >= Ni || Fe.level < 2 + ? 0 + : Fe.level < 6 + ? 1 + : 6 === Fe.level + ? 2 + : 3), + (Ut |= kt << 6), + 0 !== Fe.strstart && (Ut |= 32), + (Ut += 31 - (Ut % 31)), + (Fe.status = 113), + ur(Fe, Ut), + 0 !== Fe.strstart && + (ur(Fe, P.adler >>> 16), ur(Fe, 65535 & P.adler)), + (P.adler = 1); + } + if (69 === Fe.status) + if (Fe.gzhead.extra) { + for ( + he = Fe.pending; + Fe.gzindex < (65535 & Fe.gzhead.extra.length) && + (Fe.pending !== Fe.pending_buf_size || + (Fe.gzhead.hcrc && + Fe.pending > he && + (P.adler = Se( + P.adler, + Fe.pending_buf, + Fe.pending - he, + he + )), + $i(P), + (he = Fe.pending), + Fe.pending !== Fe.pending_buf_size)); + + ) + Gn(Fe, 255 & Fe.gzhead.extra[Fe.gzindex]), Fe.gzindex++; + Fe.gzhead.hcrc && + Fe.pending > he && + (P.adler = Se(P.adler, Fe.pending_buf, Fe.pending - he, he)), + Fe.gzindex === Fe.gzhead.extra.length && + ((Fe.gzindex = 0), (Fe.status = 73)); + } else Fe.status = 73; + if (73 === Fe.status) + if (Fe.gzhead.name) { + he = Fe.pending; + do { + if ( + Fe.pending === Fe.pending_buf_size && + (Fe.gzhead.hcrc && + Fe.pending > he && + (P.adler = Se( + P.adler, + Fe.pending_buf, + Fe.pending - he, + he + )), + $i(P), + (he = Fe.pending), + Fe.pending === Fe.pending_buf_size) + ) { + Ge = 1; + break; + } + (Ge = + Fe.gzindex < Fe.gzhead.name.length + ? 255 & Fe.gzhead.name.charCodeAt(Fe.gzindex++) + : 0), + Gn(Fe, Ge); + } while (0 !== Ge); + Fe.gzhead.hcrc && + Fe.pending > he && + (P.adler = Se(P.adler, Fe.pending_buf, Fe.pending - he, he)), + 0 === Ge && ((Fe.gzindex = 0), (Fe.status = 91)); + } else Fe.status = 91; + if (91 === Fe.status) + if (Fe.gzhead.comment) { + he = Fe.pending; + do { + if ( + Fe.pending === Fe.pending_buf_size && + (Fe.gzhead.hcrc && + Fe.pending > he && + (P.adler = Se( + P.adler, + Fe.pending_buf, + Fe.pending - he, + he + )), + $i(P), + (he = Fe.pending), + Fe.pending === Fe.pending_buf_size) + ) { + Ge = 1; + break; + } + (Ge = + Fe.gzindex < Fe.gzhead.comment.length + ? 255 & Fe.gzhead.comment.charCodeAt(Fe.gzindex++) + : 0), + Gn(Fe, Ge); + } while (0 !== Ge); + Fe.gzhead.hcrc && + Fe.pending > he && + (P.adler = Se(P.adler, Fe.pending_buf, Fe.pending - he, he)), + 0 === Ge && (Fe.status = 103); + } else Fe.status = 103; + if ( + (103 === Fe.status && + (Fe.gzhead.hcrc + ? (Fe.pending + 2 > Fe.pending_buf_size && $i(P), + Fe.pending + 2 <= Fe.pending_buf_size && + (Gn(Fe, 255 & P.adler), + Gn(Fe, (P.adler >> 8) & 255), + (P.adler = 0), + (Fe.status = 113))) + : (Fe.status = 113)), + 0 !== Fe.pending) + ) { + if (($i(P), 0 === P.avail_out)) return (Fe.last_flush = -1), Ot; + } else if (0 === P.avail_in && Rn(Ie) <= Rn(ht) && Ie !== He) + return bi(P, Yn); + if (666 === Fe.status && 0 !== P.avail_in) return bi(P, Yn); + if ( + 0 !== P.avail_in || + 0 !== Fe.lookahead || + (Ie !== An && 666 !== Fe.status) + ) { + let Ut = + Fe.strategy === Ni + ? ((P, Ie) => { + let he; + for (;;) { + if (0 === P.lookahead && (Sn(P), 0 === P.lookahead)) { + if (Ie === An) return 1; + break; + } + if ( + ((P.match_length = 0), + (he = Qt(P, 0, P.window[P.strstart])), + P.lookahead--, + P.strstart++, + he && (mi(P, !1), 0 === P.strm.avail_out)) + ) + return 1; + } + return ( + (P.insert = 0), + Ie === He + ? (mi(P, !0), 0 === P.strm.avail_out ? 3 : 4) + : P.last_lit && (mi(P, !1), 0 === P.strm.avail_out) + ? 1 + : 2 + ); + })(Fe, Ie) + : Fe.strategy === Ti + ? ((P, Ie) => { + let he, Ge, Fe, ht; + const Ut = P.window; + for (;;) { + if (P.lookahead <= 258) { + if ((Sn(P), P.lookahead <= 258 && Ie === An)) return 1; + if (0 === P.lookahead) break; + } + if ( + ((P.match_length = 0), + P.lookahead >= 3 && + P.strstart > 0 && + ((Fe = P.strstart - 1), + (Ge = Ut[Fe]), + Ge === Ut[++Fe] && + Ge === Ut[++Fe] && + Ge === Ut[++Fe])) + ) { + ht = P.strstart + 258; + do {} while ( + Ge === Ut[++Fe] && + Ge === Ut[++Fe] && + Ge === Ut[++Fe] && + Ge === Ut[++Fe] && + Ge === Ut[++Fe] && + Ge === Ut[++Fe] && + Ge === Ut[++Fe] && + Ge === Ut[++Fe] && + Fe < ht + ); + (P.match_length = 258 - (ht - Fe)), + P.match_length > P.lookahead && + (P.match_length = P.lookahead); + } + if ( + (P.match_length >= 3 + ? ((he = Qt(P, 1, P.match_length - 3)), + (P.lookahead -= P.match_length), + (P.strstart += P.match_length), + (P.match_length = 0)) + : ((he = Qt(P, 0, P.window[P.strstart])), + P.lookahead--, + P.strstart++), + he && (mi(P, !1), 0 === P.strm.avail_out)) + ) + return 1; + } + return ( + (P.insert = 0), + Ie === He + ? (mi(P, !0), 0 === P.strm.avail_out ? 3 : 4) + : P.last_lit && (mi(P, !1), 0 === P.strm.avail_out) + ? 1 + : 2 + ); + })(Fe, Ie) + : Or[Fe.level].func(Fe, Ie); + if ( + ((3 === Ut || 4 === Ut) && (Fe.status = 666), + 1 === Ut || 3 === Ut) + ) + return 0 === P.avail_out && (Fe.last_flush = -1), Ot; + if ( + 2 === Ut && + (Ie === lt + ? cn(Fe) + : Ie !== pt && + (ze(Fe, 0, 0, !1), + Ie === ct && + (qi(Fe.head), + 0 === Fe.lookahead && + ((Fe.strstart = 0), + (Fe.block_start = 0), + (Fe.insert = 0)))), + $i(P), + 0 === P.avail_out) + ) + return (Fe.last_flush = -1), Ot; + } + return Ie !== He + ? Ot + : Fe.wrap <= 0 + ? un + : (2 === Fe.wrap + ? (Gn(Fe, 255 & P.adler), + Gn(Fe, (P.adler >> 8) & 255), + Gn(Fe, (P.adler >> 16) & 255), + Gn(Fe, (P.adler >> 24) & 255), + Gn(Fe, 255 & P.total_in), + Gn(Fe, (P.total_in >> 8) & 255), + Gn(Fe, (P.total_in >> 16) & 255), + Gn(Fe, (P.total_in >> 24) & 255)) + : (ur(Fe, P.adler >>> 16), ur(Fe, 65535 & P.adler)), + $i(P), + Fe.wrap > 0 && (Fe.wrap = -Fe.wrap), + 0 !== Fe.pending ? Ot : un); + }, + kr_deflateEnd = (P) => { + if (!P || !P.state) return on; + const Ie = P.state.status; + return 42 !== Ie && + 69 !== Ie && + 73 !== Ie && + 91 !== Ie && + 103 !== Ie && + 113 !== Ie && + 666 !== Ie + ? bi(P, on) + : ((P.state = null), 113 === Ie ? bi(P, On) : Ot); + }, + kr_deflateSetDictionary = (P, Ie) => { + let he = Ie.length; + if (!P || !P.state) return on; + const Ge = P.state, + Fe = Ge.wrap; + if (2 === Fe || (1 === Fe && 42 !== Ge.status) || Ge.lookahead) + return on; + if ( + (1 === Fe && (P.adler = mt(P.adler, Ie, he, 0)), + (Ge.wrap = 0), + he >= Ge.w_size) + ) { + 0 === Fe && + (qi(Ge.head), + (Ge.strstart = 0), + (Ge.block_start = 0), + (Ge.insert = 0)); + let bn = new Uint8Array(Ge.w_size); + bn.set(Ie.subarray(he - Ge.w_size, he), 0), + (Ie = bn), + (he = Ge.w_size); + } + const ht = P.avail_in, + Ut = P.next_in, + kt = P.input; + for ( + P.avail_in = he, P.next_in = 0, P.input = Ie, Sn(Ge); + Ge.lookahead >= 3; + + ) { + let bn = Ge.strstart, + wt = Ge.lookahead - 2; + do { + (Ge.ins_h = Fn(Ge, Ge.ins_h, Ge.window[bn + 3 - 1])), + (Ge.prev[bn & Ge.w_mask] = Ge.head[Ge.ins_h]), + (Ge.head[Ge.ins_h] = bn), + bn++; + } while (--wt); + (Ge.strstart = bn), (Ge.lookahead = 2), Sn(Ge); + } + return ( + (Ge.strstart += Ge.lookahead), + (Ge.block_start = Ge.strstart), + (Ge.insert = Ge.lookahead), + (Ge.lookahead = 0), + (Ge.match_length = Ge.prev_length = 2), + (Ge.match_available = 0), + (P.next_in = Ut), + (P.input = kt), + (P.avail_in = ht), + (Ge.wrap = Fe), + Ot + ); + }; + const Jr = (P, Ie) => Object.prototype.hasOwnProperty.call(P, Ie); + var si_assign = function (P) { + const Ie = Array.prototype.slice.call(arguments, 1); + for (; Ie.length; ) { + const he = Ie.shift(); + if (he) { + if ("object" != typeof he) + throw new TypeError(he + "must be non-object"); + for (const Ge in he) Jr(he, Ge) && (P[Ge] = he[Ge]); + } + } + return P; + }, + si_flattenChunks = (P) => { + let Ie = 0; + for (let Ge = 0, Fe = P.length; Ge < Fe; Ge++) Ie += P[Ge].length; + const he = new Uint8Array(Ie); + for (let Ge = 0, Fe = 0, ht = P.length; Ge < ht; Ge++) { + let Ut = P[Ge]; + he.set(Ut, Fe), (Fe += Ut.length); + } + return he; + }; + let zr = !0; + try { + String.fromCharCode.apply(null, new Uint8Array(1)); + } catch (P) { + zr = !1; + } + const Er = new Uint8Array(256); + for (let P = 0; P < 256; P++) + Er[P] = + P >= 252 + ? 6 + : P >= 248 + ? 5 + : P >= 240 + ? 4 + : P >= 224 + ? 3 + : P >= 192 + ? 2 + : 1; + Er[254] = Er[254] = 1; + var ve_string2buf = (P) => { + if ("function" == typeof TextEncoder && TextEncoder.prototype.encode) + return new TextEncoder().encode(P); + let Ie, + he, + Ge, + Fe, + ht, + Ut = P.length, + kt = 0; + for (Fe = 0; Fe < Ut; Fe++) + (he = P.charCodeAt(Fe)), + 55296 == (64512 & he) && + Fe + 1 < Ut && + ((Ge = P.charCodeAt(Fe + 1)), + 56320 == (64512 & Ge) && + ((he = 65536 + ((he - 55296) << 10) + (Ge - 56320)), Fe++)), + (kt += he < 128 ? 1 : he < 2048 ? 2 : he < 65536 ? 3 : 4); + for (Ie = new Uint8Array(kt), ht = 0, Fe = 0; ht < kt; Fe++) + (he = P.charCodeAt(Fe)), + 55296 == (64512 & he) && + Fe + 1 < Ut && + ((Ge = P.charCodeAt(Fe + 1)), + 56320 == (64512 & Ge) && + ((he = 65536 + ((he - 55296) << 10) + (Ge - 56320)), Fe++)), + he < 128 + ? (Ie[ht++] = he) + : he < 2048 + ? ((Ie[ht++] = 192 | (he >>> 6)), (Ie[ht++] = 128 | (63 & he))) + : he < 65536 + ? ((Ie[ht++] = 224 | (he >>> 12)), + (Ie[ht++] = 128 | ((he >>> 6) & 63)), + (Ie[ht++] = 128 | (63 & he))) + : ((Ie[ht++] = 240 | (he >>> 18)), + (Ie[ht++] = 128 | ((he >>> 12) & 63)), + (Ie[ht++] = 128 | ((he >>> 6) & 63)), + (Ie[ht++] = 128 | (63 & he))); + return Ie; + }, + ve_buf2string = (P, Ie) => { + const he = Ie || P.length; + if ("function" == typeof TextDecoder && TextDecoder.prototype.decode) + return new TextDecoder().decode(P.subarray(0, Ie)); + let Ge, Fe; + const ht = new Array(2 * he); + for (Fe = 0, Ge = 0; Ge < he; ) { + let Ut = P[Ge++]; + if (Ut < 128) { + ht[Fe++] = Ut; + continue; + } + let kt = Er[Ut]; + if (kt > 4) (ht[Fe++] = 65533), (Ge += kt - 1); + else { + for (Ut &= 2 === kt ? 31 : 3 === kt ? 15 : 7; kt > 1 && Ge < he; ) + (Ut = (Ut << 6) | (63 & P[Ge++])), kt--; + kt > 1 + ? (ht[Fe++] = 65533) + : Ut < 65536 + ? (ht[Fe++] = Ut) + : ((Ut -= 65536), + (ht[Fe++] = 55296 | ((Ut >> 10) & 1023)), + (ht[Fe++] = 56320 | (1023 & Ut))); + } + } + return ((P, Ie) => { + if (Ie < 65534 && P.subarray && zr) + return String.fromCharCode.apply( + null, + P.length === Ie ? P : P.subarray(0, Ie) + ); + let he = ""; + for (let Ge = 0; Ge < Ie; Ge++) he += String.fromCharCode(P[Ge]); + return he; + })(ht, Fe); + }, + ve_utf8border = (P, Ie) => { + (Ie = Ie || P.length) > P.length && (Ie = P.length); + let he = Ie - 1; + for (; he >= 0 && 128 == (192 & P[he]); ) he--; + return he < 0 || 0 === he ? Ie : he + Er[P[he]] > Ie ? he : Ie; + }, + Nt = 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); + }; + const nn = Object.prototype.toString, + { + Z_NO_FLUSH: In, + Z_SYNC_FLUSH: ni, + Z_FULL_FLUSH: di, + Z_FINISH: ai, + Z_OK: hi, + Z_STREAM_END: Ei, + Z_DEFAULT_COMPRESSION: ki, + Z_DEFAULT_STRATEGY: xn, + Z_DEFLATED: Kr, + } = re; + function rr(P) { + this.options = si_assign( + { + level: ki, + method: Kr, + chunkSize: 16384, + windowBits: 15, + memLevel: 8, + strategy: xn, + }, + P || {} + ); + let Ie = this.options; + Ie.raw && Ie.windowBits > 0 + ? (Ie.windowBits = -Ie.windowBits) + : Ie.gzip && + Ie.windowBits > 0 && + Ie.windowBits < 16 && + (Ie.windowBits += 16), + (this.err = 0), + (this.msg = ""), + (this.ended = !1), + (this.chunks = []), + (this.strm = new Nt()), + (this.strm.avail_out = 0); + let he = kr_deflateInit2( + this.strm, + Ie.level, + Ie.method, + Ie.windowBits, + Ie.memLevel, + Ie.strategy + ); + if (he !== hi) throw new Error(te[he]); + if ( + (Ie.header && kr_deflateSetHeader(this.strm, Ie.header), + Ie.dictionary) + ) { + let Ge; + if ( + ((Ge = + "string" == typeof Ie.dictionary + ? ve_string2buf(Ie.dictionary) + : "[object ArrayBuffer]" === nn.call(Ie.dictionary) + ? new Uint8Array(Ie.dictionary) + : Ie.dictionary), + (he = kr_deflateSetDictionary(this.strm, Ge)), + he !== hi) + ) + throw new Error(te[he]); + this._dict_set = !0; + } + } + function xr(P, Ie) { + const he = new rr(Ie); + if ((he.push(P, !0), he.err)) throw he.msg || te[he.err]; + return he.result; + } + (rr.prototype.push = function (P, Ie) { + const he = this.strm, + Ge = this.options.chunkSize; + let Fe, ht; + if (this.ended) return !1; + for ( + ht = Ie === ~~Ie ? Ie : !0 === Ie ? ai : In, + he.input = + "string" == typeof P + ? ve_string2buf(P) + : "[object ArrayBuffer]" === nn.call(P) + ? new Uint8Array(P) + : P, + he.next_in = 0, + he.avail_in = he.input.length; + ; + + ) + if ( + (0 === he.avail_out && + ((he.output = new Uint8Array(Ge)), + (he.next_out = 0), + (he.avail_out = Ge)), + (ht === ni || ht === di) && he.avail_out <= 6) + ) + this.onData(he.output.subarray(0, he.next_out)), (he.avail_out = 0); + else { + if (((Fe = kr_deflate(he, ht)), Fe === Ei)) + return ( + he.next_out > 0 && + this.onData(he.output.subarray(0, he.next_out)), + (Fe = kr_deflateEnd(this.strm)), + this.onEnd(Fe), + (this.ended = !0), + Fe === hi + ); + if (0 !== he.avail_out) { + if (ht > 0 && he.next_out > 0) + this.onData(he.output.subarray(0, he.next_out)), + (he.avail_out = 0); + else if (0 === he.avail_in) break; + } else this.onData(he.output); + } + return !0; + }), + (rr.prototype.onData = function (P) { + this.chunks.push(P); + }), + (rr.prototype.onEnd = function (P) { + P === hi && (this.result = si_flattenChunks(this.chunks)), + (this.chunks = []), + (this.err = P), + (this.msg = this.strm.msg); + }); + var pe = { + Deflate: rr, + deflate: xr, + deflateRaw: function (P, Ie) { + return ((Ie = Ie || {}).raw = !0), xr(P, Ie); + }, + gzip: function (P, Ie) { + return ((Ie = Ie || {}).gzip = !0), xr(P, Ie); + }, + constants: re, + }, + rt = function (Ie, he) { + let Ge, + Fe, + ht, + Ut, + kt, + bn, + wt, + $t, + Ii, + hn, + en, + Nn, + er, + Ci, + ui, + Ai, + gi, + fn, + wi, + wr, + Cn, + Pi, + Fi, + ri; + const Jn = Ie.state; + (Ge = Ie.next_in), + (Fi = Ie.input), + (Fe = Ge + (Ie.avail_in - 5)), + (ht = Ie.next_out), + (ri = Ie.output), + (Ut = ht - (he - Ie.avail_out)), + (kt = ht + (Ie.avail_out - 257)), + (bn = Jn.dmax), + (wt = Jn.wsize), + ($t = Jn.whave), + (Ii = Jn.wnext), + (hn = Jn.window), + (en = Jn.hold), + (Nn = Jn.bits), + (er = Jn.lencode), + (Ci = Jn.distcode), + (ui = (1 << Jn.lenbits) - 1), + (Ai = (1 << Jn.distbits) - 1); + e: do { + Nn < 15 && + ((en += Fi[Ge++] << Nn), + (Nn += 8), + (en += Fi[Ge++] << Nn), + (Nn += 8)), + (gi = er[en & ui]); + t: for (;;) { + if ( + ((fn = gi >>> 24), + (en >>>= fn), + (Nn -= fn), + (fn = (gi >>> 16) & 255), + 0 === fn) + ) + ri[ht++] = 65535 & gi; + else { + if (!(16 & fn)) { + if (0 == (64 & fn)) { + gi = er[(65535 & gi) + (en & ((1 << fn) - 1))]; + continue t; + } + if (32 & fn) { + Jn.mode = 12; + break e; + } + (Ie.msg = "invalid literal/length code"), (Jn.mode = 30); + break e; + } + (wi = 65535 & gi), + (fn &= 15), + fn && + (Nn < fn && ((en += Fi[Ge++] << Nn), (Nn += 8)), + (wi += en & ((1 << fn) - 1)), + (en >>>= fn), + (Nn -= fn)), + Nn < 15 && + ((en += Fi[Ge++] << Nn), + (Nn += 8), + (en += Fi[Ge++] << Nn), + (Nn += 8)), + (gi = Ci[en & Ai]); + n: for (;;) { + if ( + ((fn = gi >>> 24), + (en >>>= fn), + (Nn -= fn), + (fn = (gi >>> 16) & 255), + !(16 & fn)) + ) { + if (0 == (64 & fn)) { + gi = Ci[(65535 & gi) + (en & ((1 << fn) - 1))]; + continue n; + } + (Ie.msg = "invalid distance code"), (Jn.mode = 30); + break e; + } + if ( + ((wr = 65535 & gi), + (fn &= 15), + Nn < fn && + ((en += Fi[Ge++] << Nn), + (Nn += 8), + Nn < fn && ((en += Fi[Ge++] << Nn), (Nn += 8))), + (wr += en & ((1 << fn) - 1)), + wr > bn) + ) { + (Ie.msg = "invalid distance too far back"), (Jn.mode = 30); + break e; + } + if (((en >>>= fn), (Nn -= fn), (fn = ht - Ut), wr > fn)) { + if (((fn = wr - fn), fn > $t && Jn.sane)) { + (Ie.msg = "invalid distance too far back"), + (Jn.mode = 30); + break e; + } + if (((Cn = 0), (Pi = hn), 0 === Ii)) { + if (((Cn += wt - fn), fn < wi)) { + wi -= fn; + do { + ri[ht++] = hn[Cn++]; + } while (--fn); + (Cn = ht - wr), (Pi = ri); + } + } else if (Ii < fn) { + if (((Cn += wt + Ii - fn), (fn -= Ii), fn < wi)) { + wi -= fn; + do { + ri[ht++] = hn[Cn++]; + } while (--fn); + if (((Cn = 0), Ii < wi)) { + (fn = Ii), (wi -= fn); + do { + ri[ht++] = hn[Cn++]; + } while (--fn); + (Cn = ht - wr), (Pi = ri); + } + } + } else if (((Cn += Ii - fn), fn < wi)) { + wi -= fn; + do { + ri[ht++] = hn[Cn++]; + } while (--fn); + (Cn = ht - wr), (Pi = ri); + } + for (; wi > 2; ) + (ri[ht++] = Pi[Cn++]), + (ri[ht++] = Pi[Cn++]), + (ri[ht++] = Pi[Cn++]), + (wi -= 3); + wi && + ((ri[ht++] = Pi[Cn++]), wi > 1 && (ri[ht++] = Pi[Cn++])); + } else { + Cn = ht - wr; + do { + (ri[ht++] = ri[Cn++]), + (ri[ht++] = ri[Cn++]), + (ri[ht++] = ri[Cn++]), + (wi -= 3); + } while (wi > 2); + wi && + ((ri[ht++] = ri[Cn++]), wi > 1 && (ri[ht++] = ri[Cn++])); + } + break; + } + } + break; + } + } while (Ge < Fe && ht < kt); + (wi = Nn >> 3), + (Ge -= wi), + (Nn -= wi << 3), + (en &= (1 << Nn) - 1), + (Ie.next_in = Ge), + (Ie.next_out = ht), + (Ie.avail_in = Ge < Fe ? Fe - Ge + 5 : 5 - (Ge - Fe)), + (Ie.avail_out = ht < kt ? kt - ht + 257 : 257 - (ht - kt)), + (Jn.hold = en), + (Jn.bits = Nn); + }; + const Ln = new Uint16Array([ + 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, + ]), + _n = new Uint8Array([ + 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, + ]), + Bn = new Uint16Array([ + 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, + ]), + Kn = new Uint8Array([ + 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, + ]); + var xi = (P, Ie, he, Ge, Fe, ht, Ut, kt) => { + const bn = kt.bits; + let gi, + fn, + wi, + wr, + Cn, + ri, + wt = 0, + $t = 0, + Ii = 0, + hn = 0, + en = 0, + Nn = 0, + er = 0, + Ci = 0, + ui = 0, + Ai = 0, + Pi = null, + Fi = 0; + const Jn = new Uint16Array(16), + no = new Uint16Array(16); + let fo, + Is, + io, + Ro = null, + Za = 0; + for (wt = 0; wt <= 15; wt++) Jn[wt] = 0; + for ($t = 0; $t < Ge; $t++) Jn[Ie[he + $t]]++; + for (en = bn, hn = 15; hn >= 1 && 0 === Jn[hn]; hn--); + if ((en > hn && (en = hn), 0 === hn)) + return (Fe[ht++] = 20971520), (Fe[ht++] = 20971520), (kt.bits = 1), 0; + for (Ii = 1; Ii < hn && 0 === Jn[Ii]; Ii++); + for (en < Ii && (en = Ii), Ci = 1, wt = 1; wt <= 15; wt++) + if (((Ci <<= 1), (Ci -= Jn[wt]), Ci < 0)) return -1; + if (Ci > 0 && (0 === P || 1 !== hn)) return -1; + for (no[1] = 0, wt = 1; wt < 15; wt++) no[wt + 1] = no[wt] + Jn[wt]; + for ($t = 0; $t < Ge; $t++) + 0 !== Ie[he + $t] && (Ut[no[Ie[he + $t]]++] = $t); + if ( + (0 === P + ? ((Pi = Ro = Ut), (ri = 19)) + : 1 === P + ? ((Pi = Ln), (Fi -= 257), (Ro = _n), (Za -= 257), (ri = 256)) + : ((Pi = Bn), (Ro = Kn), (ri = -1)), + (Ai = 0), + ($t = 0), + (wt = Ii), + (Cn = ht), + (Nn = en), + (er = 0), + (wi = -1), + (ui = 1 << en), + (wr = ui - 1), + (1 === P && ui > 852) || (2 === P && ui > 592)) + ) + return 1; + for (;;) { + (fo = wt - er), + Ut[$t] < ri + ? ((Is = 0), (io = Ut[$t])) + : Ut[$t] > ri + ? ((Is = Ro[Za + Ut[$t]]), (io = Pi[Fi + Ut[$t]])) + : ((Is = 96), (io = 0)), + (gi = 1 << (wt - er)), + (fn = 1 << Nn), + (Ii = fn); + do { + (fn -= gi), + (Fe[Cn + (Ai >> er) + fn] = (fo << 24) | (Is << 16) | io | 0); + } while (0 !== fn); + for (gi = 1 << (wt - 1); Ai & gi; ) gi >>= 1; + if ( + (0 !== gi ? ((Ai &= gi - 1), (Ai += gi)) : (Ai = 0), + $t++, + 0 == --Jn[wt]) + ) { + if (wt === hn) break; + wt = Ie[he + Ut[$t]]; + } + if (wt > en && (Ai & wr) !== wi) { + for ( + 0 === er && (er = en), Cn += Ii, Nn = wt - er, Ci = 1 << Nn; + Nn + er < hn && ((Ci -= Jn[Nn + er]), !(Ci <= 0)); + + ) + Nn++, (Ci <<= 1); + if ( + ((ui += 1 << Nn), (1 === P && ui > 852) || (2 === P && ui > 592)) + ) + return 1; + (wi = Ai & wr), (Fe[wi] = (en << 24) | (Nn << 16) | (Cn - ht) | 0); + } + } + return ( + 0 !== Ai && (Fe[Cn + Ai] = ((wt - er) << 24) | (64 << 16) | 0), + (kt.bits = en), + 0 + ); + }; + const { + Z_FINISH: fr, + Z_BLOCK: Xi, + Z_TREES: gr, + Z_OK: zi, + Z_STREAM_END: Pr, + Z_NEED_DICT: ys, + Z_STREAM_ERROR: Yi, + Z_DATA_ERROR: Ur, + Z_MEM_ERROR: bs, + Z_BUF_ERROR: Cs, + Z_DEFLATED: mn, + } = re, + Ce = (P) => + ((P >>> 24) & 255) + + ((P >>> 8) & 65280) + + ((65280 & P) << 8) + + ((255 & P) << 24); + function Te() { + (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 Uint16Array(320)), + (this.work = new Uint16Array(288)), + (this.lendyn = null), + (this.distdyn = null), + (this.sane = 0), + (this.back = 0), + (this.was = 0); + } + const Ve = (P) => { + if (!P || !P.state) return Yi; + const Ie = P.state; + return ( + (P.total_in = P.total_out = Ie.total = 0), + (P.msg = ""), + Ie.wrap && (P.adler = 1 & Ie.wrap), + (Ie.mode = 1), + (Ie.last = 0), + (Ie.havedict = 0), + (Ie.dmax = 32768), + (Ie.head = null), + (Ie.hold = 0), + (Ie.bits = 0), + (Ie.lencode = Ie.lendyn = new Int32Array(852)), + (Ie.distcode = Ie.distdyn = new Int32Array(592)), + (Ie.sane = 1), + (Ie.back = -1), + zi + ); + }, + it = (P) => { + if (!P || !P.state) return Yi; + const Ie = P.state; + return (Ie.wsize = 0), (Ie.whave = 0), (Ie.wnext = 0), Ve(P); + }, + bt = (P, Ie) => { + let he; + if (!P || !P.state) return Yi; + const Ge = P.state; + return ( + Ie < 0 + ? ((he = 0), (Ie = -Ie)) + : ((he = 1 + (Ie >> 4)), Ie < 48 && (Ie &= 15)), + Ie && (Ie < 8 || Ie > 15) + ? Yi + : (null !== Ge.window && Ge.wbits !== Ie && (Ge.window = null), + (Ge.wrap = he), + (Ge.wbits = Ie), + it(P)) + ); + }, + zt = (P, Ie) => { + if (!P) return Yi; + const he = new Te(); + (P.state = he), (he.window = null); + const Ge = bt(P, Ie); + return Ge !== zi && (P.state = null), Ge; + }; + let Dn, + vi, + fi = !0; + const Di = (P) => { + if (fi) { + (Dn = new Int32Array(512)), (vi = new Int32Array(32)); + let Ie = 0; + for (; Ie < 144; ) P.lens[Ie++] = 8; + for (; Ie < 256; ) P.lens[Ie++] = 9; + for (; Ie < 280; ) P.lens[Ie++] = 7; + for (; Ie < 288; ) P.lens[Ie++] = 8; + for ( + xi(1, P.lens, 0, 288, Dn, 0, P.work, { bits: 9 }), Ie = 0; + Ie < 32; + + ) + P.lens[Ie++] = 5; + xi(2, P.lens, 0, 32, vi, 0, P.work, { bits: 5 }), (fi = !1); + } + (P.lencode = Dn), + (P.lenbits = 9), + (P.distcode = vi), + (P.distbits = 5); + }, + hs = (P, Ie, he, Ge) => { + let Fe; + const ht = P.state; + return ( + null === ht.window && + ((ht.wsize = 1 << ht.wbits), + (ht.wnext = 0), + (ht.whave = 0), + (ht.window = new Uint8Array(ht.wsize))), + Ge >= ht.wsize + ? (ht.window.set(Ie.subarray(he - ht.wsize, he), 0), + (ht.wnext = 0), + (ht.whave = ht.wsize)) + : ((Fe = ht.wsize - ht.wnext), + Fe > Ge && (Fe = Ge), + ht.window.set(Ie.subarray(he - Ge, he - Ge + Fe), ht.wnext), + (Ge -= Fe) + ? (ht.window.set(Ie.subarray(he - Ge, he), 0), + (ht.wnext = Ge), + (ht.whave = ht.wsize)) + : ((ht.wnext += Fe), + ht.wnext === ht.wsize && (ht.wnext = 0), + ht.whave < ht.wsize && (ht.whave += Fe))), + 0 + ); + }; + var Ds_inflateReset = it, + Ds_inflateInit2 = zt, + Ds_inflate = (P, Ie) => { + let he, + Ge, + Fe, + ht, + Ut, + kt, + bn, + wt, + $t, + Ii, + hn, + en, + Nn, + er, + ui, + Ai, + gi, + fn, + wi, + wr, + Cn, + Pi, + Ci = 0; + const Fi = new Uint8Array(4); + let ri, Jn; + const no = new Uint8Array([ + 16, + 17, + 18, + 0, + 8, + 7, + 9, + 6, + 10, + 5, + 11, + 4, + 12, + 3, + 13, + 2, + 14, + 1, + 15, + ]); + if (!P || !P.state || !P.output || (!P.input && 0 !== P.avail_in)) + return Yi; + (he = P.state), + 12 === he.mode && (he.mode = 13), + (Ut = P.next_out), + (Fe = P.output), + (bn = P.avail_out), + (ht = P.next_in), + (Ge = P.input), + (kt = P.avail_in), + (wt = he.hold), + ($t = he.bits), + (Ii = kt), + (hn = bn), + (Pi = zi); + e: for (;;) + switch (he.mode) { + case 1: + if (0 === he.wrap) { + he.mode = 13; + break; + } + for (; $t < 16; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if (2 & he.wrap && 35615 === wt) { + (he.check = 0), + (Fi[0] = 255 & wt), + (Fi[1] = (wt >>> 8) & 255), + (he.check = Se(he.check, Fi, 2, 0)), + (wt = 0), + ($t = 0), + (he.mode = 2); + break; + } + if ( + ((he.flags = 0), + he.head && (he.head.done = !1), + !(1 & he.wrap) || (((255 & wt) << 8) + (wt >> 8)) % 31) + ) { + (P.msg = "incorrect header check"), (he.mode = 30); + break; + } + if ((15 & wt) !== mn) { + (P.msg = "unknown compression method"), (he.mode = 30); + break; + } + if ( + ((wt >>>= 4), ($t -= 4), (Cn = 8 + (15 & wt)), 0 === he.wbits) + ) + he.wbits = Cn; + else if (Cn > he.wbits) { + (P.msg = "invalid window size"), (he.mode = 30); + break; + } + (he.dmax = 1 << he.wbits), + (P.adler = he.check = 1), + (he.mode = 512 & wt ? 10 : 12), + (wt = 0), + ($t = 0); + break; + case 2: + for (; $t < 16; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if (((he.flags = wt), (255 & he.flags) !== mn)) { + (P.msg = "unknown compression method"), (he.mode = 30); + break; + } + if (57344 & he.flags) { + (P.msg = "unknown header flags set"), (he.mode = 30); + break; + } + he.head && (he.head.text = (wt >> 8) & 1), + 512 & he.flags && + ((Fi[0] = 255 & wt), + (Fi[1] = (wt >>> 8) & 255), + (he.check = Se(he.check, Fi, 2, 0))), + (wt = 0), + ($t = 0), + (he.mode = 3); + case 3: + for (; $t < 32; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + he.head && (he.head.time = wt), + 512 & he.flags && + ((Fi[0] = 255 & wt), + (Fi[1] = (wt >>> 8) & 255), + (Fi[2] = (wt >>> 16) & 255), + (Fi[3] = (wt >>> 24) & 255), + (he.check = Se(he.check, Fi, 4, 0))), + (wt = 0), + ($t = 0), + (he.mode = 4); + case 4: + for (; $t < 16; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + he.head && + ((he.head.xflags = 255 & wt), (he.head.os = wt >> 8)), + 512 & he.flags && + ((Fi[0] = 255 & wt), + (Fi[1] = (wt >>> 8) & 255), + (he.check = Se(he.check, Fi, 2, 0))), + (wt = 0), + ($t = 0), + (he.mode = 5); + case 5: + if (1024 & he.flags) { + for (; $t < 16; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + (he.length = wt), + he.head && (he.head.extra_len = wt), + 512 & he.flags && + ((Fi[0] = 255 & wt), + (Fi[1] = (wt >>> 8) & 255), + (he.check = Se(he.check, Fi, 2, 0))), + (wt = 0), + ($t = 0); + } else he.head && (he.head.extra = null); + he.mode = 6; + case 6: + if ( + 1024 & he.flags && + ((en = he.length), + en > kt && (en = kt), + en && + (he.head && + ((Cn = he.head.extra_len - he.length), + he.head.extra || + (he.head.extra = new Uint8Array(he.head.extra_len)), + he.head.extra.set(Ge.subarray(ht, ht + en), Cn)), + 512 & he.flags && (he.check = Se(he.check, Ge, en, ht)), + (kt -= en), + (ht += en), + (he.length -= en)), + he.length) + ) + break e; + (he.length = 0), (he.mode = 7); + case 7: + if (2048 & he.flags) { + if (0 === kt) break e; + en = 0; + do { + (Cn = Ge[ht + en++]), + he.head && + Cn && + he.length < 65536 && + (he.head.name += String.fromCharCode(Cn)); + } while (Cn && en < kt); + if ( + (512 & he.flags && (he.check = Se(he.check, Ge, en, ht)), + (kt -= en), + (ht += en), + Cn) + ) + break e; + } else he.head && (he.head.name = null); + (he.length = 0), (he.mode = 8); + case 8: + if (4096 & he.flags) { + if (0 === kt) break e; + en = 0; + do { + (Cn = Ge[ht + en++]), + he.head && + Cn && + he.length < 65536 && + (he.head.comment += String.fromCharCode(Cn)); + } while (Cn && en < kt); + if ( + (512 & he.flags && (he.check = Se(he.check, Ge, en, ht)), + (kt -= en), + (ht += en), + Cn) + ) + break e; + } else he.head && (he.head.comment = null); + he.mode = 9; + case 9: + if (512 & he.flags) { + for (; $t < 16; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if (wt !== (65535 & he.check)) { + (P.msg = "header crc mismatch"), (he.mode = 30); + break; + } + (wt = 0), ($t = 0); + } + he.head && + ((he.head.hcrc = (he.flags >> 9) & 1), (he.head.done = !0)), + (P.adler = he.check = 0), + (he.mode = 12); + break; + case 10: + for (; $t < 32; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + (P.adler = he.check = Ce(wt)), + (wt = 0), + ($t = 0), + (he.mode = 11); + case 11: + if (0 === he.havedict) + return ( + (P.next_out = Ut), + (P.avail_out = bn), + (P.next_in = ht), + (P.avail_in = kt), + (he.hold = wt), + (he.bits = $t), + ys + ); + (P.adler = he.check = 1), (he.mode = 12); + case 12: + if (Ie === Xi || Ie === gr) break e; + case 13: + if (he.last) { + (wt >>>= 7 & $t), ($t -= 7 & $t), (he.mode = 27); + break; + } + for (; $t < 3; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + switch (((he.last = 1 & wt), (wt >>>= 1), ($t -= 1), 3 & wt)) { + case 0: + he.mode = 14; + break; + case 1: + if ((Di(he), (he.mode = 20), Ie === gr)) { + (wt >>>= 2), ($t -= 2); + break e; + } + break; + case 2: + he.mode = 17; + break; + case 3: + (P.msg = "invalid block type"), (he.mode = 30); + } + (wt >>>= 2), ($t -= 2); + break; + case 14: + for (wt >>>= 7 & $t, $t -= 7 & $t; $t < 32; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if ((65535 & wt) != ((wt >>> 16) ^ 65535)) { + (P.msg = "invalid stored block lengths"), (he.mode = 30); + break; + } + if ( + ((he.length = 65535 & wt), + (wt = 0), + ($t = 0), + (he.mode = 15), + Ie === gr) + ) + break e; + case 15: + he.mode = 16; + case 16: + if (((en = he.length), en)) { + if ((en > kt && (en = kt), en > bn && (en = bn), 0 === en)) + break e; + Fe.set(Ge.subarray(ht, ht + en), Ut), + (kt -= en), + (ht += en), + (bn -= en), + (Ut += en), + (he.length -= en); + break; + } + he.mode = 12; + break; + case 17: + for (; $t < 14; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if ( + ((he.nlen = 257 + (31 & wt)), + (wt >>>= 5), + ($t -= 5), + (he.ndist = 1 + (31 & wt)), + (wt >>>= 5), + ($t -= 5), + (he.ncode = 4 + (15 & wt)), + (wt >>>= 4), + ($t -= 4), + he.nlen > 286 || he.ndist > 30) + ) { + (P.msg = "too many length or distance symbols"), + (he.mode = 30); + break; + } + (he.have = 0), (he.mode = 18); + case 18: + for (; he.have < he.ncode; ) { + for (; $t < 3; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + (he.lens[no[he.have++]] = 7 & wt), (wt >>>= 3), ($t -= 3); + } + for (; he.have < 19; ) he.lens[no[he.have++]] = 0; + if ( + ((he.lencode = he.lendyn), + (he.lenbits = 7), + (ri = { bits: he.lenbits }), + (Pi = xi(0, he.lens, 0, 19, he.lencode, 0, he.work, ri)), + (he.lenbits = ri.bits), + Pi) + ) { + (P.msg = "invalid code lengths set"), (he.mode = 30); + break; + } + (he.have = 0), (he.mode = 19); + case 19: + for (; he.have < he.nlen + he.ndist; ) { + for ( + ; + (Ci = he.lencode[wt & ((1 << he.lenbits) - 1)]), + (ui = Ci >>> 24), + (Ai = (Ci >>> 16) & 255), + (gi = 65535 & Ci), + !(ui <= $t); + + ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if (gi < 16) + (wt >>>= ui), ($t -= ui), (he.lens[he.have++] = gi); + else { + if (16 === gi) { + for (Jn = ui + 2; $t < Jn; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if (((wt >>>= ui), ($t -= ui), 0 === he.have)) { + (P.msg = "invalid bit length repeat"), (he.mode = 30); + break; + } + (Cn = he.lens[he.have - 1]), + (en = 3 + (3 & wt)), + (wt >>>= 2), + ($t -= 2); + } else if (17 === gi) { + for (Jn = ui + 3; $t < Jn; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + (wt >>>= ui), + ($t -= ui), + (Cn = 0), + (en = 3 + (7 & wt)), + (wt >>>= 3), + ($t -= 3); + } else { + for (Jn = ui + 7; $t < Jn; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + (wt >>>= ui), + ($t -= ui), + (Cn = 0), + (en = 11 + (127 & wt)), + (wt >>>= 7), + ($t -= 7); + } + if (he.have + en > he.nlen + he.ndist) { + (P.msg = "invalid bit length repeat"), (he.mode = 30); + break; + } + for (; en--; ) he.lens[he.have++] = Cn; + } + } + if (30 === he.mode) break; + if (0 === he.lens[256]) { + (P.msg = "invalid code -- missing end-of-block"), + (he.mode = 30); + break; + } + if ( + ((he.lenbits = 9), + (ri = { bits: he.lenbits }), + (Pi = xi(1, he.lens, 0, he.nlen, he.lencode, 0, he.work, ri)), + (he.lenbits = ri.bits), + Pi) + ) { + (P.msg = "invalid literal/lengths set"), (he.mode = 30); + break; + } + if ( + ((he.distbits = 6), + (he.distcode = he.distdyn), + (ri = { bits: he.distbits }), + (Pi = xi( + 2, + he.lens, + he.nlen, + he.ndist, + he.distcode, + 0, + he.work, + ri + )), + (he.distbits = ri.bits), + Pi) + ) { + (P.msg = "invalid distances set"), (he.mode = 30); + break; + } + if (((he.mode = 20), Ie === gr)) break e; + case 20: + he.mode = 21; + case 21: + if (kt >= 6 && bn >= 258) { + (P.next_out = Ut), + (P.avail_out = bn), + (P.next_in = ht), + (P.avail_in = kt), + (he.hold = wt), + (he.bits = $t), + rt(P, hn), + (Ut = P.next_out), + (Fe = P.output), + (bn = P.avail_out), + (ht = P.next_in), + (Ge = P.input), + (kt = P.avail_in), + (wt = he.hold), + ($t = he.bits), + 12 === he.mode && (he.back = -1); + break; + } + for ( + he.back = 0; + (Ci = he.lencode[wt & ((1 << he.lenbits) - 1)]), + (ui = Ci >>> 24), + (Ai = (Ci >>> 16) & 255), + (gi = 65535 & Ci), + !(ui <= $t); + + ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if (Ai && 0 == (240 & Ai)) { + for ( + fn = ui, wi = Ai, wr = gi; + (Ci = + he.lencode[wr + ((wt & ((1 << (fn + wi)) - 1)) >> fn)]), + (ui = Ci >>> 24), + (Ai = (Ci >>> 16) & 255), + (gi = 65535 & Ci), + !(fn + ui <= $t); + + ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + (wt >>>= fn), ($t -= fn), (he.back += fn); + } + if ( + ((wt >>>= ui), + ($t -= ui), + (he.back += ui), + (he.length = gi), + 0 === Ai) + ) { + he.mode = 26; + break; + } + if (32 & Ai) { + (he.back = -1), (he.mode = 12); + break; + } + if (64 & Ai) { + (P.msg = "invalid literal/length code"), (he.mode = 30); + break; + } + (he.extra = 15 & Ai), (he.mode = 22); + case 22: + if (he.extra) { + for (Jn = he.extra; $t < Jn; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + (he.length += wt & ((1 << he.extra) - 1)), + (wt >>>= he.extra), + ($t -= he.extra), + (he.back += he.extra); + } + (he.was = he.length), (he.mode = 23); + case 23: + for ( + ; + (Ci = he.distcode[wt & ((1 << he.distbits) - 1)]), + (ui = Ci >>> 24), + (Ai = (Ci >>> 16) & 255), + (gi = 65535 & Ci), + !(ui <= $t); + + ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if (0 == (240 & Ai)) { + for ( + fn = ui, wi = Ai, wr = gi; + (Ci = + he.distcode[wr + ((wt & ((1 << (fn + wi)) - 1)) >> fn)]), + (ui = Ci >>> 24), + (Ai = (Ci >>> 16) & 255), + (gi = 65535 & Ci), + !(fn + ui <= $t); + + ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + (wt >>>= fn), ($t -= fn), (he.back += fn); + } + if (((wt >>>= ui), ($t -= ui), (he.back += ui), 64 & Ai)) { + (P.msg = "invalid distance code"), (he.mode = 30); + break; + } + (he.offset = gi), (he.extra = 15 & Ai), (he.mode = 24); + case 24: + if (he.extra) { + for (Jn = he.extra; $t < Jn; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + (he.offset += wt & ((1 << he.extra) - 1)), + (wt >>>= he.extra), + ($t -= he.extra), + (he.back += he.extra); + } + if (he.offset > he.dmax) { + (P.msg = "invalid distance too far back"), (he.mode = 30); + break; + } + he.mode = 25; + case 25: + if (0 === bn) break e; + if (((en = hn - bn), he.offset > en)) { + if (((en = he.offset - en), en > he.whave && he.sane)) { + (P.msg = "invalid distance too far back"), (he.mode = 30); + break; + } + en > he.wnext + ? ((en -= he.wnext), (Nn = he.wsize - en)) + : (Nn = he.wnext - en), + en > he.length && (en = he.length), + (er = he.window); + } else (er = Fe), (Nn = Ut - he.offset), (en = he.length); + en > bn && (en = bn), (bn -= en), (he.length -= en); + do { + Fe[Ut++] = er[Nn++]; + } while (--en); + 0 === he.length && (he.mode = 21); + break; + case 26: + if (0 === bn) break e; + (Fe[Ut++] = he.length), bn--, (he.mode = 21); + break; + case 27: + if (he.wrap) { + for (; $t < 32; ) { + if (0 === kt) break e; + kt--, (wt |= Ge[ht++] << $t), ($t += 8); + } + if ( + ((hn -= bn), + (P.total_out += hn), + (he.total += hn), + hn && + (P.adler = he.check = he.flags + ? Se(he.check, Fe, hn, Ut - hn) + : mt(he.check, Fe, hn, Ut - hn)), + (hn = bn), + (he.flags ? wt : Ce(wt)) !== he.check) + ) { + (P.msg = "incorrect data check"), (he.mode = 30); + break; + } + (wt = 0), ($t = 0); + } + he.mode = 28; + case 28: + if (he.wrap && he.flags) { + for (; $t < 32; ) { + if (0 === kt) break e; + kt--, (wt += Ge[ht++] << $t), ($t += 8); + } + if (wt !== (4294967295 & he.total)) { + (P.msg = "incorrect length check"), (he.mode = 30); + break; + } + (wt = 0), ($t = 0); + } + he.mode = 29; + case 29: + Pi = Pr; + break e; + case 30: + Pi = Ur; + break e; + case 31: + return bs; + default: + return Yi; + } + return ( + (P.next_out = Ut), + (P.avail_out = bn), + (P.next_in = ht), + (P.avail_in = kt), + (he.hold = wt), + (he.bits = $t), + (he.wsize || + (hn !== P.avail_out && + he.mode < 30 && + (he.mode < 27 || Ie !== fr))) && + hs(P, P.output, P.next_out, hn - P.avail_out), + (Ii -= P.avail_in), + (hn -= P.avail_out), + (P.total_in += Ii), + (P.total_out += hn), + (he.total += hn), + he.wrap && + hn && + (P.adler = he.check = he.flags + ? Se(he.check, Fe, hn, P.next_out - hn) + : mt(he.check, Fe, hn, P.next_out - hn)), + (P.data_type = + he.bits + + (he.last ? 64 : 0) + + (12 === he.mode ? 128 : 0) + + (20 === he.mode || 15 === he.mode ? 256 : 0)), + ((0 === Ii && 0 === hn) || Ie === fr) && Pi === zi && (Pi = Cs), + Pi + ); + }, + Ds_inflateEnd = (P) => { + if (!P || !P.state) return Yi; + let Ie = P.state; + return Ie.window && (Ie.window = null), (P.state = null), zi; + }, + Ds_inflateGetHeader = (P, Ie) => { + if (!P || !P.state) return Yi; + const he = P.state; + return 0 == (2 & he.wrap) ? Yi : ((he.head = Ie), (Ie.done = !1), zi); + }, + Ds_inflateSetDictionary = (P, Ie) => { + const he = Ie.length; + let Ge, Fe, ht; + return P && + P.state && + ((Ge = P.state), 0 === Ge.wrap || 11 === Ge.mode) + ? 11 === Ge.mode && + ((Fe = 1), (Fe = mt(Fe, Ie, he, 0)), Fe !== Ge.check) + ? Ur + : ((ht = hs(P, Ie, he, he)), + ht ? ((Ge.mode = 31), bs) : ((Ge.havedict = 1), zi)) + : Yi; + }, + da = 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); + }; + const to = Object.prototype.toString, + { + Z_NO_FLUSH: uo, + Z_FINISH: co, + Z_OK: Ts, + Z_STREAM_END: _o, + Z_NEED_DICT: Hs, + Z_STREAM_ERROR: js, + Z_DATA_ERROR: ha, + Z_MEM_ERROR: lr, + } = re; + function vo(P) { + this.options = si_assign( + { chunkSize: 65536, windowBits: 15, to: "" }, + P || {} + ); + const Ie = this.options; + Ie.raw && + Ie.windowBits >= 0 && + Ie.windowBits < 16 && + ((Ie.windowBits = -Ie.windowBits), + 0 === Ie.windowBits && (Ie.windowBits = -15)), + Ie.windowBits >= 0 && + Ie.windowBits < 16 && + !(P && P.windowBits) && + (Ie.windowBits += 32), + Ie.windowBits > 15 && + Ie.windowBits < 48 && + 0 == (15 & Ie.windowBits) && + (Ie.windowBits |= 15), + (this.err = 0), + (this.msg = ""), + (this.ended = !1), + (this.chunks = []), + (this.strm = new Nt()), + (this.strm.avail_out = 0); + let he = Ds_inflateInit2(this.strm, Ie.windowBits); + if (he !== Ts) throw new Error(te[he]); + if ( + ((this.header = new da()), + Ds_inflateGetHeader(this.strm, this.header), + Ie.dictionary && + ("string" == typeof Ie.dictionary + ? (Ie.dictionary = ve_string2buf(Ie.dictionary)) + : "[object ArrayBuffer]" === to.call(Ie.dictionary) && + (Ie.dictionary = new Uint8Array(Ie.dictionary)), + Ie.raw && + ((he = Ds_inflateSetDictionary(this.strm, Ie.dictionary)), + he !== Ts))) + ) + throw new Error(te[he]); + } + function Ao(P, Ie) { + const he = new vo(Ie); + if ((he.push(P), he.err)) throw he.msg || te[he.err]; + return he.result; + } + (vo.prototype.push = function (P, Ie) { + const he = this.strm, + Ge = this.options.chunkSize, + Fe = this.options.dictionary; + let ht, Ut, kt; + if (this.ended) return !1; + for ( + Ut = Ie === ~~Ie ? Ie : !0 === Ie ? co : uo, + he.input = + "[object ArrayBuffer]" === to.call(P) ? new Uint8Array(P) : P, + he.next_in = 0, + he.avail_in = he.input.length; + ; + + ) { + for ( + 0 === he.avail_out && + ((he.output = new Uint8Array(Ge)), + (he.next_out = 0), + (he.avail_out = Ge)), + ht = Ds_inflate(he, Ut), + ht === Hs && + Fe && + ((ht = Ds_inflateSetDictionary(he, Fe)), + ht === Ts ? (ht = Ds_inflate(he, Ut)) : ht === ha && (ht = Hs)); + he.avail_in > 0 && + ht === _o && + he.state.wrap > 0 && + 0 !== P[he.next_in]; + + ) + Ds_inflateReset(he), (ht = Ds_inflate(he, Ut)); + switch (ht) { + case js: + case ha: + case Hs: + case lr: + return this.onEnd(ht), (this.ended = !0), !1; + } + if ( + ((kt = he.avail_out), + he.next_out && (0 === he.avail_out || ht === _o)) + ) + if ("string" === this.options.to) { + let bn = ve_utf8border(he.output, he.next_out), + wt = he.next_out - bn, + $t = ve_buf2string(he.output, bn); + (he.next_out = wt), + (he.avail_out = Ge - wt), + wt && he.output.set(he.output.subarray(bn, bn + wt), 0), + this.onData($t); + } else + this.onData( + he.output.length === he.next_out + ? he.output + : he.output.subarray(0, he.next_out) + ); + if (ht !== Ts || 0 !== kt) { + if (ht === _o) + return ( + (ht = Ds_inflateEnd(this.strm)), + this.onEnd(ht), + (this.ended = !0), + !0 + ); + if (0 === he.avail_in) break; + } + } + return !0; + }), + (vo.prototype.onData = function (P) { + this.chunks.push(P); + }), + (vo.prototype.onEnd = function (P) { + P === Ts && + (this.result = + "string" === this.options.to + ? this.chunks.join("") + : si_flattenChunks(this.chunks)), + (this.chunks = []), + (this.err = P), + (this.msg = this.strm.msg); + }); + var Gd = { + Inflate: vo, + inflate: Ao, + inflateRaw: function (P, Ie) { + return ((Ie = Ie || {}).raw = !0), Ao(P, Ie); + }, + ungzip: Ao, + constants: re, + }; + const { Deflate: yr, deflate: Oo, deflateRaw: bo, gzip: Yd } = pe, + { Inflate: jl, inflate: os, inflateRaw: xs, ungzip: Ya } = Gd; + var Co = yr, + ho = Oo, + fa = bo, + Qa = Yd, + Xa = jl, + Wl = os, + zl = xs, + pa = Ya, + Yr = re, + ma = { + Deflate: yr, + deflate: Oo, + deflateRaw: bo, + gzip: Yd, + Inflate: jl, + inflate: os, + inflateRaw: xs, + ungzip: Ya, + constants: re, + }; + }, + 8210: (ye) => { + "use strict"; + ye.exports = JSON.parse( + '{"license":"The following data (prefixes and units) was generated by the UCUM LHC code from the UCUM data and selected LOINC combinations of UCUM units. The license for the UCUM LHC code (demo and library code as well as the combined units) is located at https://github.com/lhncbc/ucum-lhc/blob/LICENSE.md.","prefixes":{"config":["code_","ciCode_","name_","printSymbol_","value_","exp_"],"data":[["E","EX","exa","E",1000000000000000000,"18"],["G","GA","giga","G",1000000000,"9"],["Gi","GIB","gibi","Gi",1073741824,null],["Ki","KIB","kibi","Ki",1024,null],["M","MA","mega","M",1000000,"6"],["Mi","MIB","mebi","Mi",1048576,null],["P","PT","peta","P",1000000000000000,"15"],["T","TR","tera","T",1000000000000,"12"],["Ti","TIB","tebi","Ti",1099511627776,null],["Y","YA","yotta","Y",1e+24,"24"],["Z","ZA","zetta","Z",1e+21,"21"],["a","A","atto","a",1e-18,"-18"],["c","C","centi","c",0.01,"-2"],["d","D","deci","d",0.1,"-1"],["da","DA","deka","da",10,"1"],["f","F","femto","f",1e-15,"-15"],["h","H","hecto","h",100,"2"],["k","K","kilo","k",1000,"3"],["m","M","milli","m",0.001,"-3"],["n","N","nano","n",1e-9,"-9"],["p","P","pico","p",1e-12,"-12"],["u","U","micro","\u03bc",0.000001,"-6"],["y","YO","yocto","y",1.0000000000000001e-24,"-24"],["z","ZO","zepto","z",1e-21,"-21"]]},"units":{"config":["isBase_","name_","csCode_","ciCode_","property_","magnitude_",["dim_","dimVec_"],"printSymbol_","class_","isMetric_","variable_","cnv_","cnvPfx_","isSpecial_","isArbitrary_","moleExp_","synonyms_","source_","loincProperty_","category_","guidance_","csUnitString_","ciUnitString_","baseFactorStr_","baseFactor_","defError_"],"data":[[true,"meter","m","M","length",1,[1,0,0,0,0,0,0],"m",null,false,"L",null,1,false,false,0,"meters; metres; distance","UCUM","Len","Clinical","unit of length = 1.09361 yards",null,null,null,null,false],[true,"second - time","s","S","time",1,[0,1,0,0,0,0,0],"s",null,false,"T",null,1,false,false,0,"seconds","UCUM","Time","Clinical","",null,null,null,null,false],[true,"gram","g","G","mass",1,[0,0,1,0,0,0,0],"g",null,false,"M",null,1,false,false,0,"grams; gm","UCUM","Mass","Clinical","",null,null,null,null,false],[true,"radian","rad","RAD","plane angle",1,[0,0,0,1,0,0,0],"rad",null,false,"A",null,1,false,false,0,"radians","UCUM","Angle","Clinical","unit of angular measure where 1 radian = 1/2\u03c0 turn = 57.296 degrees. ",null,null,null,null,false],[true,"degree Kelvin","K","K","temperature",1,[0,0,0,0,1,0,0],"K",null,false,"C",null,1,false,false,0,"Kelvin; degrees","UCUM","Temp","Clinical","absolute, thermodynamic temperature scale ",null,null,null,null,false],[true,"coulomb","C","C","electric charge",1,[0,0,0,0,0,1,0],"C",null,false,"Q",null,1,false,false,0,"coulombs","UCUM","","Clinical","defined as amount of 1 electron charge = 6.2415093\xd710^18 e, and equivalent to 1 Ampere-second",null,null,null,null,false],[true,"candela","cd","CD","luminous intensity",1,[0,0,0,0,0,0,1],"cd",null,false,"F",null,1,false,false,0,"candelas","UCUM","","Clinical","SI base unit of luminous intensity",null,null,null,null,false],[false,"the number ten for arbitrary powers","10*","10*","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10^; 10 to the arbitrary powers","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number ten for arbitrary powers","10^","10^","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10*; 10 to the arbitrary power","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number pi","[pi]","[PI]","number",3.141592653589793,[0,0,0,0,0,0,0],"\u03c0","dimless",false,null,null,1,false,false,0,"\u03c0","UCUM","","Constant","a mathematical constant; the ratio of a circle\'s circumference to its diameter \u2248 3.14159","1","1","3.1415926535897932384626433832795028841971693993751058209749445923",3.141592653589793,false],[false,"","%","%","fraction",0.01,[0,0,0,0,0,0,0],"%","dimless",false,null,null,1,false,false,0,"percents","UCUM","FR; NFR; MFR; CFR; SFR Rto; etc. ","Clinical","","10*-2","10*-2","1",1,false],[false,"parts per thousand","[ppth]","[PPTH]","fraction",0.001,[0,0,0,0,0,0,0],"ppth","dimless",false,null,null,1,false,false,0,"ppth; 10^-3","UCUM","MCnc; MCnt","Clinical","[ppth] is often used in solution concentrations as 1 g/L or 1 g/kg.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-3","10*-3","1",1,false],[false,"parts per million","[ppm]","[PPM]","fraction",0.000001,[0,0,0,0,0,0,0],"ppm","dimless",false,null,null,1,false,false,0,"ppm; 10^-6","UCUM","MCnt; MCnc; SFr","Clinical","[ppm] is often used in solution concentrations as 1 mg/L or 1 mg/kg. Also used to express mole fractions as 1 mmol/mol.\\n\\n[ppm] is also used in nuclear magnetic resonance (NMR) to represent chemical shift - the difference of a measured frequency in parts per million from the reference frequency.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-6","10*-6","1",1,false],[false,"parts per billion","[ppb]","[PPB]","fraction",1e-9,[0,0,0,0,0,0,0],"ppb","dimless",false,null,null,1,false,false,0,"ppb; 10^-9","UCUM","MCnt; MCnc; SFr","Clinical","[ppb] is often used in solution concentrations as 1 ug/L or 1 ug/kg. Also used to express mole fractions as 1 umol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-9","10*-9","1",1,false],[false,"parts per trillion","[pptr]","[PPTR]","fraction",1e-12,[0,0,0,0,0,0,0],"pptr","dimless",false,null,null,1,false,false,0,"pptr; 10^-12","UCUM","MCnt; MCnc; SFr","Clinical","[pptr] is often used in solution concentrations as 1 ng/L or 1 ng/kg. Also used to express mole fractions as 1 nmol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-12","10*-12","1",1,false],[false,"mole","mol","MOL","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"mol","si",true,null,null,1,false,false,1,"moles","UCUM","Sub","Clinical","Measure the number of molecules ","10*23","10*23","6.0221367",6.0221367,false],[false,"steradian - solid angle","sr","SR","solid angle",1,[0,0,0,2,0,0,0],"sr","si",true,null,null,1,false,false,0,"square radian; rad2; rad^2","UCUM","Angle","Clinical","unit of solid angle in three-dimensional geometry analagous to radian; used in photometry which measures the perceived brightness of object by human eye (e.g. radiant intensity = watt/steradian)","rad2","RAD2","1",1,false],[false,"hertz","Hz","HZ","frequency",1,[0,-1,0,0,0,0,0],"Hz","si",true,null,null,1,false,false,0,"Herz; frequency; frequencies","UCUM","Freq; Num","Clinical","equal to one cycle per second","s-1","S-1","1",1,false],[false,"newton","N","N","force",1000,[1,-2,1,0,0,0,0],"N","si",true,null,null,1,false,false,0,"Newtons","UCUM","Force","Clinical","unit of force with base units kg.m/s2","kg.m/s2","KG.M/S2","1",1,false],[false,"pascal","Pa","PAL","pressure",1000,[-1,-2,1,0,0,0,0],"Pa","si",true,null,null,1,false,false,0,"pascals","UCUM","Pres","Clinical","standard unit of pressure equal to 1 newton per square meter (N/m2)","N/m2","N/M2","1",1,false],[false,"joule","J","J","energy",1000,[2,-2,1,0,0,0,0],"J","si",true,null,null,1,false,false,0,"joules","UCUM","Enrg","Clinical","unit of energy defined as the work required to move an object 1 m with a force of 1 N (N.m) or an electric charge of 1 C through 1 V (C.V), or to produce 1 W for 1 s (W.s) ","N.m","N.M","1",1,false],[false,"watt","W","W","power",1000,[2,-3,1,0,0,0,0],"W","si",true,null,null,1,false,false,0,"watts","UCUM","EngRat","Clinical","unit of power equal to 1 Joule per second (J/s) = kg\u22c5m2\u22c5s\u22123","J/s","J/S","1",1,false],[false,"Ampere","A","A","electric current",1,[0,-1,0,0,0,1,0],"A","si",true,null,null,1,false,false,0,"Amperes","UCUM","ElpotRat","Clinical","unit of electric current equal to flow rate of electrons equal to 16.2415\xd710^18 elementary charges moving past a boundary in one second or 1 Coulomb/second","C/s","C/S","1",1,false],[false,"volt","V","V","electric potential",1000,[2,-2,1,0,0,-1,0],"V","si",true,null,null,1,false,false,0,"volts","UCUM","Elpot","Clinical","unit of electric potential (voltage) = 1 Joule per Coulomb (J/C)","J/C","J/C","1",1,false],[false,"farad","F","F","electric capacitance",0.001,[-2,2,-1,0,0,2,0],"F","si",true,null,null,1,false,false,0,"farads; electric capacitance","UCUM","","Clinical","CGS unit of electric capacitance with base units C/V (Coulomb per Volt)","C/V","C/V","1",1,false],[false,"ohm","Ohm","OHM","electric resistance",1000,[2,-1,1,0,0,-2,0],"\u03a9","si",true,null,null,1,false,false,0,"\u03a9; resistance; ohms","UCUM","","Clinical","unit of electrical resistance with units of Volt per Ampere","V/A","V/A","1",1,false],[false,"siemens","S","SIE","electric conductance",0.001,[-2,1,-1,0,0,2,0],"S","si",true,null,null,1,false,false,0,"Reciprocal ohm; mho; \u03a9\u22121; conductance","UCUM","","Clinical","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","Ohm-1","OHM-1","1",1,false],[false,"weber","Wb","WB","magnetic flux",1000,[2,-1,1,0,0,-1,0],"Wb","si",true,null,null,1,false,false,0,"magnetic flux; webers","UCUM","","Clinical","unit of magnetic flux equal to Volt second","V.s","V.S","1",1,false],[false,"degree Celsius","Cel","CEL","temperature",1,[0,0,0,0,1,0,0],"\xb0C","si",true,null,"Cel",1,true,false,0,"\xb0C; degrees","UCUM","Temp","Clinical","","K",null,null,1,false],[false,"tesla","T","T","magnetic flux density",1000,[0,-1,1,0,0,-1,0],"T","si",true,null,null,1,false,false,0,"Teslas; magnetic field","UCUM","","Clinical","SI unit of magnetic field strength for magnetic field B equal to 1 Weber/square meter = 1 kg/(s2*A)","Wb/m2","WB/M2","1",1,false],[false,"henry","H","H","inductance",1000,[2,0,1,0,0,-2,0],"H","si",true,null,null,1,false,false,0,"henries; inductance","UCUM","","Clinical","unit of electrical inductance; usually expressed in millihenrys (mH) or microhenrys (uH).","Wb/A","WB/A","1",1,false],[false,"lumen","lm","LM","luminous flux",1,[0,0,0,2,0,0,1],"lm","si",true,null,null,1,false,false,0,"luminous flux; lumens","UCUM","","Clinical","unit of luminous flux defined as 1 lm = 1 cd\u22c5sr (candela times sphere)","cd.sr","CD.SR","1",1,false],[false,"lux","lx","LX","illuminance",1,[-2,0,0,2,0,0,1],"lx","si",true,null,null,1,false,false,0,"illuminance; luxes","UCUM","","Clinical","unit of illuminance equal to one lumen per square meter. ","lm/m2","LM/M2","1",1,false],[false,"becquerel","Bq","BQ","radioactivity",1,[0,-1,0,0,0,0,0],"Bq","si",true,null,null,1,false,false,0,"activity; radiation; becquerels","UCUM","","Clinical","measure of the atomic radiation rate with units s^-1","s-1","S-1","1",1,false],[false,"gray","Gy","GY","energy dose",1,[2,-2,0,0,0,0,0],"Gy","si",true,null,null,1,false,false,0,"absorbed doses; ionizing radiation doses; kerma; grays","UCUM","EngCnt","Clinical","unit of ionizing radiation dose with base units of 1 joule of radiation energy per kilogram of matter","J/kg","J/KG","1",1,false],[false,"sievert","Sv","SV","dose equivalent",1,[2,-2,0,0,0,0,0],"Sv","si",true,null,null,1,false,false,0,"sieverts; radiation dose quantities; equivalent doses; effective dose; operational dose; committed dose","UCUM","","Clinical","SI unit for radiation dose equivalent equal to 1 Joule/kilogram.","J/kg","J/KG","1",1,false],[false,"degree - plane angle","deg","DEG","plane angle",0.017453292519943295,[0,0,0,1,0,0,0],"\xb0","iso1000",false,null,null,1,false,false,0,"\xb0; degree of arc; arc degree; arcdegree; angle","UCUM","Angle","Clinical","one degree is equivalent to \u03c0/180 radians.","[pi].rad/360","[PI].RAD/360","2",2,false],[false,"gon","gon","GON","plane angle",0.015707963267948967,[0,0,0,1,0,0,0],"\u25a1g","iso1000",false,null,null,1,false,false,0,"gon (grade); gons","UCUM","Angle","Nonclinical","unit of plane angle measurement equal to 1/400 circle","deg","DEG","0.9",0.9,false],[false,"arc minute","\'","\'","plane angle",0.0002908882086657216,[0,0,0,1,0,0,0],"\'","iso1000",false,null,null,1,false,false,0,"arcminutes; arcmin; arc minutes; arc mins","UCUM","Angle","Clinical","equal to 1/60 degree; used in optometry and opthamology (e.g. visual acuity tests)","deg/60","DEG/60","1",1,false],[false,"arc second","\'\'","\'\'","plane angle",0.00000484813681109536,[0,0,0,1,0,0,0],"\'\'","iso1000",false,null,null,1,false,false,0,"arcseconds; arcsecs","UCUM","Angle","Clinical","equal to 1/60 arcminute = 1/3600 degree; used in optometry and opthamology (e.g. visual acuity tests)","\'/60","\'/60","1",1,false],[false,"Liters","l","L","volume",0.001,[3,0,0,0,0,0,0],"l","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","dm3","DM3","1",1,false],[false,"Liters","L","L","volume",0.001,[3,0,0,0,0,0,0],"L","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","l",null,"1",1,false],[false,"are","ar","AR","area",100,[2,0,0,0,0,0,0],"a","iso1000",true,null,null,1,false,false,0,"100 m2; 100 m^2; 100 square meter; meters squared; metres","UCUM","Area","Clinical","metric base unit for area defined as 100 m^2","m2","M2","100",100,false],[false,"minute","min","MIN","time",60,[0,1,0,0,0,0,0],"min","iso1000",false,null,null,1,false,false,0,"minutes","UCUM","Time","Clinical","","s","S","60",60,false],[false,"hour","h","HR","time",3600,[0,1,0,0,0,0,0],"h","iso1000",false,null,null,1,false,false,0,"hours; hrs; age","UCUM","Time","Clinical","","min","MIN","60",60,false],[false,"day","d","D","time",86400,[0,1,0,0,0,0,0],"d","iso1000",false,null,null,1,false,false,0,"days; age; dy; 24 hours; 24 hrs","UCUM","Time","Clinical","","h","HR","24",24,false],[false,"tropical year","a_t","ANN_T","time",31556925.216,[0,1,0,0,0,0,0],"at","iso1000",false,null,null,1,false,false,0,"solar years; a tropical; years","UCUM","Time","Clinical","has an average of 365.242181 days but is constantly changing.","d","D","365.24219",365.24219,false],[false,"mean Julian year","a_j","ANN_J","time",31557600,[0,1,0,0,0,0,0],"aj","iso1000",false,null,null,1,false,false,0,"mean Julian yr; a julian; years","UCUM","Time","Clinical","has an average of 365.25 days, and in everyday use, has been replaced by the Gregorian year. However, this unit is used in astronomy to calculate light year. ","d","D","365.25",365.25,false],[false,"mean Gregorian year","a_g","ANN_G","time",31556952,[0,1,0,0,0,0,0],"ag","iso1000",false,null,null,1,false,false,0,"mean Gregorian yr; a gregorian; years","UCUM","Time","Clinical","has an average of 365.2425 days and is the most internationally used civil calendar.","d","D","365.2425",365.2425,false],[false,"year","a","ANN","time",31557600,[0,1,0,0,0,0,0],"a","iso1000",false,null,null,1,false,false,0,"years; a; yr, yrs; annum","UCUM","Time","Clinical","","a_j","ANN_J","1",1,false],[false,"week","wk","WK","time",604800,[0,1,0,0,0,0,0],"wk","iso1000",false,null,null,1,false,false,0,"weeks; wks","UCUM","Time","Clinical","","d","D","7",7,false],[false,"synodal month","mo_s","MO_S","time",2551442.976,[0,1,0,0,0,0,0],"mos","iso1000",false,null,null,1,false,false,0,"Moon; synodic month; lunar month; mo-s; mo s; months; moons","UCUM","Time","Nonclinical","has an average of 29.53 days per month, unit used in astronomy","d","D","29.53059",29.53059,false],[false,"mean Julian month","mo_j","MO_J","time",2629800,[0,1,0,0,0,0,0],"moj","iso1000",false,null,null,1,false,false,0,"mo-julian; mo Julian; months","UCUM","Time","Clinical","has an average of 30.435 days per month","a_j/12","ANN_J/12","1",1,false],[false,"mean Gregorian month","mo_g","MO_G","time",2629746,[0,1,0,0,0,0,0],"mog","iso1000",false,null,null,1,false,false,0,"months; month-gregorian; mo-gregorian","UCUM","Time","Clinical","has an average 30.436875 days per month and is from the most internationally used civil calendar.","a_g/12","ANN_G/12","1",1,false],[false,"month","mo","MO","time",2629800,[0,1,0,0,0,0,0],"mo","iso1000",false,null,null,1,false,false,0,"months; duration","UCUM","Time","Clinical","based on Julian calendar which has an average of 30.435 days per month (this unit is used in astronomy but not in everyday life - see mo_g)","mo_j","MO_J","1",1,false],[false,"metric ton","t","TNE","mass",1000000,[0,0,1,0,0,0,0],"t","iso1000",true,null,null,1,false,false,0,"tonnes; megagrams; tons","UCUM","Mass","Nonclinical","equal to 1000 kg used in the US (recognized by NIST as metric ton), and internationally (recognized as tonne)","kg","KG","1e3",1000,false],[false,"bar","bar","BAR","pressure",100000000,[-1,-2,1,0,0,0,0],"bar","iso1000",true,null,null,1,false,false,0,"bars","UCUM","Pres","Nonclinical","unit of pressure equal to 10^5 Pascals, primarily used by meteorologists and in weather forecasting","Pa","PAL","1e5",100000,false],[false,"unified atomic mass unit","u","AMU","mass",1.6605402e-24,[0,0,1,0,0,0,0],"u","iso1000",true,null,null,1,false,false,0,"unified atomic mass units; amu; Dalton; Da","UCUM","Mass","Clinical","the mass of 1/12 of an unbound Carbon-12 atom nuclide equal to 1.6606x10^-27 kg ","g","G","1.6605402e-24",1.6605402e-24,false],[false,"astronomic unit","AU","ASU","length",149597870691,[1,0,0,0,0,0,0],"AU","iso1000",false,null,null,1,false,false,0,"AU; units","UCUM","Len","Clinical","unit of length used in astronomy for measuring distance in Solar system","Mm","MAM","149597.870691",149597.870691,false],[false,"parsec","pc","PRS","length",30856780000000000,[1,0,0,0,0,0,0],"pc","iso1000",true,null,null,1,false,false,0,"parsecs","UCUM","Len","Clinical","unit of length equal to 3.26 light years, nad used to measure large distances to objects outside our Solar System","m","M","3.085678e16",30856780000000000,false],[false,"velocity of light in a vacuum","[c]","[C]","velocity",299792458,[1,-1,0,0,0,0,0],"c","const",true,null,null,1,false,false,0,"speed of light","UCUM","Vel","Constant","equal to 299792458 m/s (approximately 3 x 10^8 m/s)","m/s","M/S","299792458",299792458,false],[false,"Planck constant","[h]","[H]","action",6.6260755e-31,[2,-1,1,0,0,0,0],"h","const",true,null,null,1,false,false,0,"Planck\'s constant","UCUM","","Constant","constant = 6.62607004 \xd7 10-34 m2.kg/s; defined as quantum of action","J.s","J.S","6.6260755e-34",6.6260755e-34,false],[false,"Boltzmann constant","[k]","[K]","(unclassified)",1.380658e-20,[2,-2,1,0,-1,0,0],"k","const",true,null,null,1,false,false,0,"k; kB","UCUM","","Constant","physical constant relating energy at the individual particle level with temperature = 1.38064852 \xd710^\u221223 J/K","J/K","J/K","1.380658e-23",1.380658e-23,false],[false,"permittivity of vacuum - electric","[eps_0]","[EPS_0]","electric permittivity",8.854187817000001e-15,[-3,2,-1,0,0,2,0],"\u03b50","const",true,null,null,1,false,false,0,"\u03b50; Electric Constant; vacuum permittivity; permittivity of free space ","UCUM","","Constant","approximately equal to 8.854\u2009\xd7 10^\u221212 F/m (farads per meter)","F/m","F/M","8.854187817e-12",8.854187817e-12,false],[false,"permeability of vacuum - magnetic","[mu_0]","[MU_0]","magnetic permeability",0.0012566370614359172,[1,0,1,0,0,-2,0],"\u03bc0","const",true,null,null,1,false,false,0,"\u03bc0; vacuum permeability; permeability of free space; magnetic constant","UCUM","","Constant","equal to 4\u03c0\xd710^\u22127 N/A2 (Newtons per square ampere) \u2248 1.2566\xd710^\u22126 H/m (Henry per meter)","N/A2","4.[PI].10*-7.N/A2","1",0.0000012566370614359173,false],[false,"elementary charge","[e]","[E]","electric charge",1.60217733e-19,[0,0,0,0,0,1,0],"e","const",true,null,null,1,false,false,0,"e; q; electric charges","UCUM","","Constant","the magnitude of the electric charge carried by a single electron or proton \u2248 1.60217\xd710^-19 Coulombs","C","C","1.60217733e-19",1.60217733e-19,false],[false,"electronvolt","eV","EV","energy",1.60217733e-16,[2,-2,1,0,0,0,0],"eV","iso1000",true,null,null,1,false,false,0,"Electron Volts; electronvolts","UCUM","Eng","Clinical","unit of kinetic energy = 1 V * 1.602\xd710^\u221219 C = 1.6\xd710\u221219 Joules","[e].V","[E].V","1",1,false],[false,"electron mass","[m_e]","[M_E]","mass",9.1093897e-28,[0,0,1,0,0,0,0],"me","const",true,null,null,1,false,false,0,"electron rest mass; me","UCUM","Mass","Constant","approximately equal to 9.10938356 \xd7 10-31 kg; defined as the mass of a stationary electron","g","g","9.1093897e-28",9.1093897e-28,false],[false,"proton mass","[m_p]","[M_P]","mass",1.6726231e-24,[0,0,1,0,0,0,0],"mp","const",true,null,null,1,false,false,0,"mp; masses","UCUM","Mass","Constant","approximately equal to 1.672622\xd710\u221227 kg","g","g","1.6726231e-24",1.6726231e-24,false],[false,"Newtonian constant of gravitation","[G]","[GC]","(unclassified)",6.67259e-14,[3,-2,-1,0,0,0,0],"G","const",true,null,null,1,false,false,0,"G; gravitational constant; Newton\'s constant","UCUM","","Constant","gravitational constant = 6.674\xd710\u221211 N\u22c5m2/kg2","m3.kg-1.s-2","M3.KG-1.S-2","6.67259e-11",6.67259e-11,false],[false,"standard acceleration of free fall","[g]","[G]","acceleration",9.80665,[1,-2,0,0,0,0,0],"gn","const",true,null,null,1,false,false,0,"standard gravity; g; \u02610; \u0261n","UCUM","Accel","Constant","defined by standard = 9.80665 m/s2","m/s2","M/S2","980665e-5",9.80665,false],[false,"Torr","Torr","Torr","pressure",133322,[-1,-2,1,0,0,0,0],"Torr","const",false,null,null,1,false,false,0,"torrs","UCUM","Pres","Clinical","1 torr = 1 mmHg; unit used to measure blood pressure","Pa","PAL","133.322",133.322,false],[false,"standard atmosphere","atm","ATM","pressure",101325000,[-1,-2,1,0,0,0,0],"atm","const",false,null,null,1,false,false,0,"reference pressure; atmos; std atmosphere","UCUM","Pres","Clinical","defined as being precisely equal to 101,325 Pa","Pa","PAL","101325",101325,false],[false,"light-year","[ly]","[LY]","length",9460730472580800,[1,0,0,0,0,0,0],"l.y.","const",true,null,null,1,false,false,0,"light years; ly","UCUM","Len","Constant","unit of astronomal distance = 5.88\xd710^12 mi","[c].a_j","[C].ANN_J","1",1,false],[false,"gram-force","gf","GF","force",9.80665,[1,-2,1,0,0,0,0],"gf","const",true,null,null,1,false,false,0,"Newtons; gram forces","UCUM","Force","Clinical","May be specific to unit related to cardiac output","g.[g]","G.[G]","1",1,false],[false,"Kayser","Ky","KY","lineic number",100,[-1,0,0,0,0,0,0],"K","cgs",true,null,null,1,false,false,0,"wavenumbers; kaysers","UCUM","InvLen","Clinical","unit of wavelength equal to cm^-1","cm-1","CM-1","1",1,false],[false,"Gal","Gal","GL","acceleration",0.01,[1,-2,0,0,0,0,0],"Gal","cgs",true,null,null,1,false,false,0,"galileos; Gals","UCUM","Accel","Clinical","unit of acceleration used in gravimetry; equivalent to cm/s2 ","cm/s2","CM/S2","1",1,false],[false,"dyne","dyn","DYN","force",0.01,[1,-2,1,0,0,0,0],"dyn","cgs",true,null,null,1,false,false,0,"dynes","UCUM","Force","Clinical","unit of force equal to 10^-5 Newtons","g.cm/s2","G.CM/S2","1",1,false],[false,"erg","erg","ERG","energy",0.0001,[2,-2,1,0,0,0,0],"erg","cgs",true,null,null,1,false,false,0,"10^-7 Joules, 10-7 Joules; 100 nJ; 100 nanoJoules; 1 dyne cm; 1 g.cm2/s2","UCUM","Eng","Clinical","unit of energy = 1 dyne centimeter = 10^-7 Joules","dyn.cm","DYN.CM","1",1,false],[false,"Poise","P","P","dynamic viscosity",100,[-1,-1,1,0,0,0,0],"P","cgs",true,null,null,1,false,false,0,"dynamic viscosity; poises","UCUM","Visc","Clinical","unit of dynamic viscosity where 1 Poise = 1/10 Pascal second","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"Biot","Bi","BI","electric current",10,[0,-1,0,0,0,1,0],"Bi","cgs",true,null,null,1,false,false,0,"Bi; abamperes; abA","UCUM","ElpotRat","Clinical","equal to 10 amperes","A","A","10",10,false],[false,"Stokes","St","ST","kinematic viscosity",0.0001,[2,-1,0,0,0,0,0],"St","cgs",true,null,null,1,false,false,0,"kinematic viscosity","UCUM","Visc","Clinical","unit of kimematic viscosity with units cm2/s","cm2/s","CM2/S","1",1,false],[false,"Maxwell","Mx","MX","flux of magnetic induction",0.00001,[2,-1,1,0,0,-1,0],"Mx","cgs",true,null,null,1,false,false,0,"magnetix flux; Maxwells","UCUM","","Clinical","unit of magnetic flux","Wb","WB","1e-8",1e-8,false],[false,"Gauss","G","GS","magnetic flux density",0.1,[0,-1,1,0,0,-1,0],"Gs","cgs",true,null,null,1,false,false,0,"magnetic fields; magnetic flux density; induction; B","UCUM","magnetic","Clinical","CGS unit of magnetic flux density, known as magnetic field B; defined as one maxwell unit per square centimeter (see Oersted for CGS unit for H field)","T","T","1e-4",0.0001,false],[false,"Oersted","Oe","OE","magnetic field intensity",79.57747154594767,[-1,-1,0,0,0,1,0],"Oe","cgs",true,null,null,1,false,false,0,"H magnetic B field; Oersteds","UCUM","","Clinical","CGS unit of the auxiliary magnetic field H defined as 1 dyne per unit pole = 1000/4\u03c0 amperes per meter (see Gauss for CGS unit for B field)","A/m","/[PI].A/M","250",79.57747154594767,false],[false,"Gilbert","Gb","GB","magnetic tension",0.7957747154594768,[0,-1,0,0,0,1,0],"Gb","cgs",true,null,null,1,false,false,0,"Gi; magnetomotive force; Gilberts","UCUM","","Clinical","unit of magnetomotive force (magnetic potential)","Oe.cm","OE.CM","1",1,false],[false,"stilb","sb","SB","lum. intensity density",10000,[-2,0,0,0,0,0,1],"sb","cgs",true,null,null,1,false,false,0,"stilbs","UCUM","","Obsolete","unit of luminance; equal to and replaced by unit candela per square centimeter (cd/cm2)","cd/cm2","CD/CM2","1",1,false],[false,"Lambert","Lmb","LMB","brightness",3183.098861837907,[-2,0,0,0,0,0,1],"L","cgs",true,null,null,1,false,false,0,"luminance; lamberts","UCUM","","Clinical","unit of luminance defined as 1 lambert = 1/ \u03c0 candela per square meter","cd/cm2/[pi]","CD/CM2/[PI]","1",1,false],[false,"phot","ph","PHT","illuminance",0.0001,[-2,0,0,2,0,0,1],"ph","cgs",true,null,null,1,false,false,0,"phots","UCUM","","Clinical","CGS photometric unit of illuminance, or luminous flux through an area equal to 10000 lumens per square meter = 10000 lux","lx","LX","1e-4",0.0001,false],[false,"Curie","Ci","CI","radioactivity",37000000000,[0,-1,0,0,0,0,0],"Ci","cgs",true,null,null,1,false,false,0,"curies","UCUM","","Obsolete","unit for measuring atomic disintegration rate; replaced by the Bequerel (Bq) unit","Bq","BQ","37e9",37000000000,false],[false,"Roentgen","R","ROE","ion dose",2.58e-7,[0,0,-1,0,0,1,0],"R","cgs",true,null,null,1,false,false,0,"r\xf6ntgen; Roentgens","UCUM","","Clinical","unit of exposure of X-rays and gamma rays in air; unit used primarily in the US but strongly discouraged by NIST","C/kg","C/KG","2.58e-4",0.000258,false],[false,"radiation absorbed dose","RAD","[RAD]","energy dose",0.01,[2,-2,0,0,0,0,0],"RAD","cgs",true,null,null,1,false,false,0,"doses","UCUM","","Clinical","unit of radiation absorbed dose used primarily in the US with base units 100 ergs per gram of material. Also see the SI unit Gray (Gy).","erg/g","ERG/G","100",100,false],[false,"radiation equivalent man","REM","[REM]","dose equivalent",0.01,[2,-2,0,0,0,0,0],"REM","cgs",true,null,null,1,false,false,0,"Roentgen Equivalent in Man; rems; dose equivalents","UCUM","","Clinical","unit of equivalent dose which measures the effect of radiation on humans equal to 0.01 sievert. Used primarily in the US. Also see SI unit Sievert (Sv)","RAD","[RAD]","1",1,false],[false,"inch","[in_i]","[IN_I]","length",0.025400000000000002,[1,0,0,0,0,0,0],"in","intcust",false,null,null,1,false,false,0,"inches; in; international inch; body height","UCUM","Len","Clinical","standard unit for inch in the US and internationally","cm","CM","254e-2",2.54,false],[false,"foot","[ft_i]","[FT_I]","length",0.3048,[1,0,0,0,0,0,0],"ft","intcust",false,null,null,1,false,false,0,"ft; fts; foot; international foot; feet; international feet; height","UCUM","Len","Clinical","unit used in the US and internationally","[in_i]","[IN_I]","12",12,false],[false,"yard","[yd_i]","[YD_I]","length",0.9144000000000001,[1,0,0,0,0,0,0],"yd","intcust",false,null,null,1,false,false,0,"international yards; yds; distance","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","3",3,false],[false,"mile","[mi_i]","[MI_I]","length",1609.344,[1,0,0,0,0,0,0],"mi","intcust",false,null,null,1,false,false,0,"international miles; mi I; statute mile","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","5280",5280,false],[false,"fathom","[fth_i]","[FTH_I]","depth of water",1.8288000000000002,[1,0,0,0,0,0,0],"fth","intcust",false,null,null,1,false,false,0,"international fathoms","UCUM","Len","Nonclinical","unit used in the US and internationally to measure depth of water; same length as the US fathom","[ft_i]","[FT_I]","6",6,false],[false,"nautical mile","[nmi_i]","[NMI_I]","length",1852,[1,0,0,0,0,0,0],"n.mi","intcust",false,null,null,1,false,false,0,"nautical mile; nautical miles; international nautical mile; international nautical miles; nm; n.m.; nmi","UCUM","Len","Nonclinical","standard unit used in the US and internationally","m","M","1852",1852,false],[false,"knot","[kn_i]","[KN_I]","velocity",0.5144444444444445,[1,-1,0,0,0,0,0],"knot","intcust",false,null,null,1,false,false,0,"kn; kt; international knots","UCUM","Vel","Nonclinical","defined as equal to one nautical mile (1.852 km) per hour","[nmi_i]/h","[NMI_I]/H","1",1,false],[false,"square inch","[sin_i]","[SIN_I]","area",0.0006451600000000001,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in2; in^2; inches squared; sq inch; inches squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[in_i]2","[IN_I]2","1",1,false],[false,"square foot","[sft_i]","[SFT_I]","area",0.09290304,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft2; ft^2; ft squared; sq ft; feet; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[ft_i]2","[FT_I]2","1",1,false],[false,"square yard","[syd_i]","[SYD_I]","area",0.8361273600000002,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"yd2; yd^2; sq. yds; yards squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[yd_i]2","[YD_I]2","1",1,false],[false,"cubic inch","[cin_i]","[CIN_I]","volume",0.000016387064000000003,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in3; in^3; in*3; inches^3; inches*3; cu. in; cu in; cubic inches; inches cubed; cin","UCUM","Vol","Clinical","standard unit used in the US and internationally","[in_i]3","[IN_I]3","1",1,false],[false,"cubic foot","[cft_i]","[CFT_I]","volume",0.028316846592000004,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft3; ft^3; ft*3; cu. ft; cubic feet; cubed; [ft_i]3; international","UCUM","Vol","Clinical","","[ft_i]3","[FT_I]3","1",1,false],[false,"cubic yard","[cyd_i]","[CYD_I]","volume",0.7645548579840002,[3,0,0,0,0,0,0],"cu.yd","intcust",false,null,null,1,false,false,0,"cubic yards; cubic yds; cu yards; CYs; yards^3; yd^3; yds^3; yd3; yds3","UCUM","Vol","Nonclinical","standard unit used in the US and internationally","[yd_i]3","[YD_I]3","1",1,false],[false,"board foot","[bf_i]","[BF_I]","volume",0.002359737216,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"BDFT; FBM; BF; board feet; international","UCUM","Vol","Nonclinical","unit of volume used to measure lumber","[in_i]3","[IN_I]3","144",144,false],[false,"cord","[cr_i]","[CR_I]","volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"crd I; international cords","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3","[ft_i]3","[FT_I]3","128",128,false],[false,"mil","[mil_i]","[MIL_I]","length",0.000025400000000000004,[1,0,0,0,0,0,0],"mil","intcust",false,null,null,1,false,false,0,"thou, thousandth; mils; international","UCUM","Len","Clinical","equal to 0.001 international inch","[in_i]","[IN_I]","1e-3",0.001,false],[false,"circular mil","[cml_i]","[CML_I]","area",5.067074790974979e-10,[2,0,0,0,0,0,0],"circ.mil","intcust",false,null,null,1,false,false,0,"circular mils; cml I; international","UCUM","Area","Clinical","","[pi]/4.[mil_i]2","[PI]/4.[MIL_I]2","1",1,false],[false,"hand","[hd_i]","[HD_I]","height of horses",0.10160000000000001,[1,0,0,0,0,0,0],"hd","intcust",false,null,null,1,false,false,0,"hands; international","UCUM","Len","Nonclinical","used to measure horse height","[in_i]","[IN_I]","4",4,false],[false,"foot - US","[ft_us]","[FT_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],"ftus","us-lengths",false,null,null,1,false,false,0,"US foot; foot US; us ft; ft us; height; visual distance; feet","UCUM","Len","Obsolete","Better to use [ft_i] which refers to the length used worldwide, including in the US; [ft_us] may be confused with land survey units. ","m/3937","M/3937","1200",1200,false],[false,"yard - US","[yd_us]","[YD_US]","length",0.9144018288036575,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US yards; us yds; distance","UCUM","Len; Nrat","Obsolete","Better to use [yd_i] which refers to the length used worldwide, including in the US; [yd_us] refers to unit used in land surveys in the US","[ft_us]","[FT_US]","3",3,false],[false,"inch - US","[in_us]","[IN_US]","length",0.0254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US inches; in us; us in; inch US","UCUM","Len","Obsolete","Better to use [in_i] which refers to the length used worldwide, including in the US","[ft_us]/12","[FT_US]/12","1",1,false],[false,"rod - US","[rd_us]","[RD_US]","length",5.029210058420117,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US rod; US rods; rd US; US rd","UCUM","Len","Obsolete","","[ft_us]","[FT_US]","16.5",16.5,false],[false,"Gunter\'s chain - US","[ch_us]","[CH_US]","length",20.116840233680467,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"surveyor\'s chain; Surveyor\'s chain USA; Gunter\u2019s measurement; surveyor\u2019s measurement; Gunter\'s Chain USA","UCUM","Len","Obsolete","historical unit used for land survey used only in the US","[rd_us]","[RD_US]","4",4,false],[false,"link for Gunter\'s chain - US","[lk_us]","[LK_US]","length",0.20116840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Links for Gunter\'s Chain USA","UCUM","Len","Obsolete","","[ch_us]/100","[CH_US]/100","1",1,false],[false,"Ramden\'s chain - US","[rch_us]","[RCH_US]","length",30.480060960121918,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Ramsden\'s chain; engineer\'s chains","UCUM","Len","Obsolete","distance measuring device used for\xa0land survey","[ft_us]","[FT_US]","100",100,false],[false,"link for Ramden\'s chain - US","[rlk_us]","[RLK_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"links for Ramsden\'s chain","UCUM","Len","Obsolete","","[rch_us]/100","[RCH_US]/100","1",1,false],[false,"fathom - US","[fth_us]","[FTH_US]","length",1.828803657607315,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US fathoms; fathom USA; fth us","UCUM","Len","Obsolete","same length as the international fathom - better to use international fathom ([fth_i])","[ft_us]","[FT_US]","6",6,false],[false,"furlong - US","[fur_us]","[FUR_US]","length",201.16840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US furlongs; fur us","UCUM","Len","Nonclinical","distance unit in horse racing","[rd_us]","[RD_US]","40",40,false],[false,"mile - US","[mi_us]","[MI_US]","length",1609.3472186944373,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"U.S. Survey Miles; US statute miles; survey mi; US mi; distance","UCUM","Len","Nonclinical","Better to use [mi_i] which refers to the length used worldwide, including in the US","[fur_us]","[FUR_US]","8",8,false],[false,"acre - US","[acr_us]","[ACR_US]","area",4046.872609874252,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Acre USA Survey; Acre USA; survey acres","UCUM","Area","Nonclinical","an older unit based on pre 1959 US statute lengths that is still sometimes used in the US only for land survey purposes. ","[rd_us]2","[RD_US]2","160",160,false],[false,"square rod - US","[srd_us]","[SRD_US]","area",25.292953811714074,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"rod2; rod^2; sq. rod; rods squared","UCUM","Area","Nonclinical","Used only in the US to measure land area, based on US statute land survey length units","[rd_us]2","[RD_US]2","1",1,false],[false,"square mile - US","[smi_us]","[SMI_US]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"mi2; mi^2; sq mi; miles squared","UCUM","Area","Nonclinical","historical unit used only in the US for land survey purposes (based on the US survey mile), not the internationally recognized [mi_i]","[mi_us]2","[MI_US]2","1",1,false],[false,"section","[sct]","[SCT]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"sct; sections","UCUM","Area","Nonclinical","tract of land approximately equal to 1 mile square containing 640 acres","[mi_us]2","[MI_US]2","1",1,false],[false,"township","[twp]","[TWP]","area",93239944.93150276,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"twp; townships","UCUM","Area","Nonclinical","land measurement equal to 6 mile square","[sct]","[SCT]","36",36,false],[false,"mil - US","[mil_us]","[MIL_US]","length",0.0000254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"thou, thousandth; mils","UCUM","Len","Obsolete","better to use [mil_i] which is based on the internationally recognized inch","[in_us]","[IN_US]","1e-3",0.001,false],[false,"inch - British","[in_br]","[IN_BR]","length",0.025399980000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial inches; imp in; br in; british inches","UCUM","Len","Obsolete","","cm","CM","2.539998",2.539998,false],[false,"foot - British","[ft_br]","[FT_BR]","length",0.30479976000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British Foot; Imperial Foot; feet; imp fts; br fts","UCUM","Len","Obsolete","","[in_br]","[IN_BR]","12",12,false],[false,"rod - British","[rd_br]","[RD_BR]","length",5.02919604,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British rods; br rd","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","16.5",16.5,false],[false,"Gunter\'s chain - British","[ch_br]","[CH_BR]","length",20.11678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Gunter\'s Chain British; Gunters Chain British; Surveyor\'s Chain British","UCUM","Len","Obsolete","historical unit used for land survey used only in Great Britain","[rd_br]","[RD_BR]","4",4,false],[false,"link for Gunter\'s chain - British","[lk_br]","[LK_BR]","length",0.2011678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Links for Gunter\'s Chain British","UCUM","Len","Obsolete","","[ch_br]/100","[CH_BR]/100","1",1,false],[false,"fathom - British","[fth_br]","[FTH_BR]","length",1.82879856,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British fathoms; imperial fathoms; br fth; imp fth","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6",6,false],[false,"pace - British","[pc_br]","[PC_BR]","length",0.7619994000000001,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British paces; br pc","UCUM","Len","Nonclinical","traditional unit of length equal to 152.4 centimeters, or 1.52 meter. ","[ft_br]","[FT_BR]","2.5",2.5,false],[false,"yard - British","[yd_br]","[YD_BR]","length",0.91439928,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British yards; Br yds; distance","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","3",3,false],[false,"mile - British","[mi_br]","[MI_BR]","length",1609.3427328000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial miles; British miles; English statute miles; imp mi, br mi","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","5280",5280,false],[false,"nautical mile - British","[nmi_br]","[NMI_BR]","length",1853.1825408000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British nautical miles; Imperial nautical miles; Admiralty miles; n.m. br; imp nm","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6080",6080,false],[false,"knot - British","[kn_br]","[KN_BR]","velocity",0.5147729280000001,[1,-1,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British knots; kn br; kt","UCUM","Vel","Obsolete","based on obsolete British nautical mile ","[nmi_br]/h","[NMI_BR]/H","1",1,false],[false,"acre","[acr_br]","[ACR_BR]","area",4046.850049400269,[2,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Imperial acres; British; a; ac; ar; acr","UCUM","Area","Nonclinical","the standard unit for acre used in the US and internationally","[yd_br]2","[YD_BR]2","4840",4840,false],[false,"gallon - US","[gal_us]","[GAL_US]","fluid volume",0.0037854117840000006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gallons; US liquid gallon; gal us; Queen Anne\'s wine gallon","UCUM","Vol","Nonclinical","only gallon unit used in the US; [gal_us] is only used in some other countries in South American and Africa to measure gasoline volume","[in_i]3","[IN_I]3","231",231,false],[false,"barrel - US","[bbl_us]","[BBL_US]","fluid volume",0.158987294928,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"bbl","UCUM","Vol","Nonclinical","[bbl_us] is the standard unit for oil barrel, which is a unit only used in the US to measure the volume oil. ","[gal_us]","[GAL_US]","42",42,false],[false,"quart - US","[qt_us]","[QT_US]","fluid volume",0.0009463529460000001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US quarts; us qts","UCUM","Vol","Clinical","Used only in the US","[gal_us]/4","[GAL_US]/4","1",1,false],[false,"pint - US","[pt_us]","[PT_US]","fluid volume",0.00047317647300000007,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pints; pint US; liquid pint; pt us; us pt","UCUM","Vol","Clinical","Used only in the US","[qt_us]/2","[QT_US]/2","1",1,false],[false,"gill - US","[gil_us]","[GIL_US]","fluid volume",0.00011829411825000002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gills; gil us","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in the US","[pt_us]/4","[PT_US]/4","1",1,false],[false,"fluid ounce - US","[foz_us]","[FOZ_US]","fluid volume",0.000029573529562500005,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"US fluid ounces; fl ozs; FO; fl. oz.; foz us","UCUM","Vol","Clinical","unit used only in the US","[gil_us]/4","[GIL_US]/4","1",1,false],[false,"fluid dram - US","[fdr_us]","[FDR_US]","fluid volume",0.0000036966911953125006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US fluid drams; fdr us","UCUM","Vol","Nonclinical","equal to 1/8 US fluid ounce = 3.69 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_us]/8","[FOZ_US]/8","1",1,false],[false,"minim - US","[min_us]","[MIN_US]","fluid volume",6.1611519921875e-8,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"min US; US min; \u264f US","UCUM","Vol","Obsolete","","[fdr_us]/60","[FDR_US]/60","1",1,false],[false,"cord - US","[crd_us]","[CRD_US]","fluid volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US cord; US cords; crd us; us crd","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3 (the same as international cord [cr_i])","[ft_i]3","[FT_I]3","128",128,false],[false,"bushel - US","[bu_us]","[BU_US]","dry volume",0.03523907016688001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US bushels; US bsh; US bu","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[in_i]3","[IN_I]3","2150.42",2150.42,false],[false,"gallon - historical","[gal_wi]","[GAL_WI]","dry volume",0.004404883770860001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Corn Gallon British; Dry Gallon US; Gallons Historical; Grain Gallon British; Winchester Corn Gallon; historical winchester gallons; wi gal","UCUM","Vol","Obsolete","historical unit of dry volume no longer used","[bu_us]/8","[BU_US]/8","1",1,false],[false,"peck - US","[pk_us]","[PK_US]","dry volume",0.008809767541720002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pecks; US pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[bu_us]/4","[BU_US]/4","1",1,false],[false,"dry quart - US","[dqt_us]","[DQT_US]","dry volume",0.0011012209427150002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry quarts; dry quart US; US dry quart; dry qt; us dry qt; dqt; dqt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[pk_us]/8","[PK_US]/8","1",1,false],[false,"dry pint - US","[dpt_us]","[DPT_US]","dry volume",0.0005506104713575001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry pints; dry pint US; US dry pint; dry pt; dpt; dpt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[dqt_us]/2","[DQT_US]/2","1",1,false],[false,"tablespoon - US","[tbs_us]","[TBS_US]","volume",0.000014786764781250002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Tbs; tbsp; tbs us; US tablespoons","UCUM","Vol","Clinical","unit defined as 0.5 US fluid ounces or 3 teaspoons - used only in the US. See [tbs_m] for the unit used internationally and in the US for nutrional labelling. ","[foz_us]/2","[FOZ_US]/2","1",1,false],[false,"teaspoon - US","[tsp_us]","[TSP_US]","volume",0.0000049289215937500005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; US teaspoons","UCUM","Vol","Nonclinical","unit defined as 1/6 US fluid ounces - used only in the US. See [tsp_m] for the unit used internationally and in the US for nutrional labelling. ","[tbs_us]/3","[TBS_US]/3","1",1,false],[false,"cup - US customary","[cup_us]","[CUP_US]","volume",0.00023658823650000004,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup us; us cups","UCUM","Vol","Nonclinical","Unit defined as 1/2 US pint or 16 US tablespoons \u2248 236.59 mL, which is not the standard unit defined by the FDA of 240 mL - see [cup_m] (metric cup)","[tbs_us]","[TBS_US]","16",16,false],[false,"fluid ounce - metric","[foz_m]","[FOZ_M]","fluid volume",0.000029999999999999997,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"metric fluid ounces; fozs m; fl ozs m","UCUM","Vol","Clinical","unit used only in the US for nutritional labelling, as set by the FDA","mL","ML","30",30,false],[false,"cup - US legal","[cup_m]","[CUP_M]","volume",0.00023999999999999998,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup m; metric cups","UCUM","Vol","Clinical","standard unit equal to 240 mL used in the US for nutritional labelling, as defined by the FDA. Note that this is different from the US customary cup (236.59 mL) and the metric cup used in Commonwealth nations (250 mL).","mL","ML","240",240,false],[false,"teaspoon - metric","[tsp_m]","[TSP_M]","volume",0.0000049999999999999996,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; metric teaspoons","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","5",5,false],[false,"tablespoon - metric","[tbs_m]","[TBS_M]","volume",0.000014999999999999999,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"metric tablespoons; Tbs; tbsp; T; tbs m","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","15",15,false],[false,"gallon- British","[gal_br]","[GAL_BR]","volume",0.004546090000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gallons, UK gallons; British gallons; br gal; imp gal","UCUM","Vol","Nonclinical","Used only in Great Britain and other Commonwealth countries","l","L","4.54609",4.54609,false],[false,"peck - British","[pk_br]","[PK_BR]","volume",0.009092180000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial pecks; British pecks; br pk; imp pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[gal_br]","[GAL_BR]","2",2,false],[false,"bushel - British","[bu_br]","[BU_BR]","volume",0.03636872000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British bushels; imperial; br bsh; br bu; imp","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[pk_br]","[PK_BR]","4",4,false],[false,"quart - British","[qt_br]","[QT_BR]","volume",0.0011365225000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British quarts; imperial quarts; br qts","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gal_br]/4","[GAL_BR]/4","1",1,false],[false,"pint - British","[pt_br]","[PT_BR]","volume",0.0005682612500000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British pints; imperial pints; pt br; br pt; imp pt; pt imp","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[qt_br]/2","[QT_BR]/2","1",1,false],[false,"gill - British","[gil_br]","[GIL_BR]","volume",0.00014206531250000003,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gills; British gills; imp gill, br gill","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in Great Britain","[pt_br]/4","[PT_BR]/4","1",1,false],[false,"fluid ounce - British","[foz_br]","[FOZ_BR]","volume",0.000028413062500000005,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid ounces; Imperial fluid ounces; br fozs; imp fozs; br fl ozs","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gil_br]/5","[GIL_BR]/5","1",1,false],[false,"fluid dram - British","[fdr_br]","[FDR_BR]","volume",0.0000035516328125000006,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid drams; fdr br","UCUM","Vol","Nonclinical","equal to 1/8 Imperial fluid ounce = 3.55 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_br]/8","[FOZ_BR]/8","1",1,false],[false,"minim - British","[min_br]","[MIN_BR]","volume",5.919388020833334e-8,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"min br; br min; \u264f br","UCUM","Vol","Obsolete","","[fdr_br]/60","[FDR_BR]/60","1",1,false],[false,"grain","[gr]","[GR]","mass",0.06479891,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"gr; grains","UCUM","Mass","Nonclinical","an apothecary measure of mass rarely used today","mg","MG","64.79891",64.79891,false],[false,"pound","[lb_av]","[LB_AV]","mass",453.59237,[0,0,1,0,0,0,0],"lb","avoirdupois",false,null,null,1,false,false,0,"avoirdupois pounds, international pounds; av lbs; pounds","UCUM","Mass","Clinical","standard unit used in the US and internationally","[gr]","[GR]","7000",7000,false],[false,"pound force - US","[lbf_av]","[LBF_AV]","force",4448.2216152605,[1,-2,1,0,0,0,0],"lbf","const",false,null,null,1,false,false,0,"lbfs; US lbf; US pound forces","UCUM","Force","Clinical","only rarely needed in health care - see [lb_av] which is the more common unit to express weight","[lb_av].[g]","[LB_AV].[G]","1",1,false],[false,"ounce","[oz_av]","[OZ_AV]","mass",28.349523125,[0,0,1,0,0,0,0],"oz","avoirdupois",false,null,null,1,false,false,0,"ounces; international ounces; avoirdupois ounces; av ozs","UCUM","Mass","Clinical","standard unit used in the US and internationally","[lb_av]/16","[LB_AV]/16","1",1,false],[false,"Dram mass unit","[dr_av]","[DR_AV]","mass",1.7718451953125,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"Dram; drams avoirdupois; avoidupois dram; international dram","UCUM","Mass","Clinical","unit from the avoirdupois system, which is used in the US and internationally","[oz_av]/16","[OZ_AV]/16","1",1,false],[false,"short hundredweight","[scwt_av]","[SCWT_AV]","mass",45359.237,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"hundredweights; s cwt; scwt; avoirdupois","UCUM","Mass","Nonclinical","Used only in the US to equal 100 pounds","[lb_av]","[LB_AV]","100",100,false],[false,"long hundredweight","[lcwt_av]","[LCWT_AV]","mass",50802.345440000005,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial hundredweights; imp cwt; lcwt; avoirdupois","UCUM","Mass","Obsolete","","[lb_av]","[LB_AV]","112",112,false],[false,"short ton - US","[ston_av]","[STON_AV]","mass",907184.74,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"ton; US tons; avoirdupois tons","UCUM","Mass","Clinical","Used only in the US","[scwt_av]","[SCWT_AV]","20",20,false],[false,"long ton - British","[lton_av]","[LTON_AV]","mass",1016046.9088000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial tons; weight tons; British long tons; long ton avoirdupois","UCUM","Mass","Nonclinical","Used only in Great Britain and other Commonwealth countries","[lcwt_av]","[LCWT_AV]","20",20,false],[false,"stone - British","[stone_av]","[STONE_AV]","mass",6350.293180000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"British stones; avoirdupois","UCUM","Mass","Nonclinical","Used primarily in the UK and Ireland to measure body weight","[lb_av]","[LB_AV]","14",14,false],[false,"pennyweight - troy","[pwt_tr]","[PWT_TR]","mass",1.5551738400000001,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"dwt; denarius weights","UCUM","Mass","Obsolete","historical unit used to measure mass and cost of precious metals","[gr]","[GR]","24",24,false],[false,"ounce - troy","[oz_tr]","[OZ_TR]","mass",31.103476800000003,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy ounces; tr ozs","UCUM","Mass","Nonclinical","unit of mass for precious metals and gemstones only","[pwt_tr]","[PWT_TR]","20",20,false],[false,"pound - troy","[lb_tr]","[LB_TR]","mass",373.2417216,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy pounds; tr lbs","UCUM","Mass","Nonclinical","only used for weighing precious metals","[oz_tr]","[OZ_TR]","12",12,false],[false,"scruple","[sc_ap]","[SC_AP]","mass",1.2959782,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"scruples; sc ap","UCUM","Mass","Obsolete","","[gr]","[GR]","20",20,false],[false,"dram - apothecary","[dr_ap]","[DR_AP]","mass",3.8879346,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"\u0292; drachm; apothecaries drams; dr ap; dram ap","UCUM","Mass","Nonclinical","unit still used in the US occasionally to measure amount of drugs in pharmacies","[sc_ap]","[SC_AP]","3",3,false],[false,"ounce - apothecary","[oz_ap]","[OZ_AP]","mass",31.1034768,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary ounces; oz ap; ap ozs; ozs ap","UCUM","Mass","Obsolete","","[dr_ap]","[DR_AP]","8",8,false],[false,"pound - apothecary","[lb_ap]","[LB_AP]","mass",373.2417216,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary pounds; apothecaries pounds; ap lb; lb ap; ap lbs; lbs ap","UCUM","Mass","Obsolete","","[oz_ap]","[OZ_AP]","12",12,false],[false,"ounce - metric","[oz_m]","[OZ_M]","mass",28,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"metric ounces; m ozs","UCUM","Mass","Clinical","see [oz_av] (the avoirdupois ounce) for the standard ounce used internationally; [oz_m] is equal to 28 grams and is based on the apothecaries\' system of mass units which is used in some US pharmacies. ","g","g","28",28,false],[false,"line","[lne]","[LNE]","length",0.002116666666666667,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"British lines; br L; L; l","UCUM","Len","Obsolete","","[in_i]/12","[IN_I]/12","1",1,false],[false,"point (typography)","[pnt]","[PNT]","length",0.0003527777777777778,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"DTP points; desktop publishing point; pt; pnt","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[lne]/6","[LNE]/6","1",1,false],[false,"pica (typography)","[pca]","[PCA]","length",0.004233333333333334,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt]","[PNT]","12",12,false],[false,"Printer\'s point (typography)","[pnt_pr]","[PNT_PR]","length",0.00035145980000000004,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pnt pr","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[in_i]","[IN_I]","0.013837",0.013837,false],[false,"Printer\'s pica (typography)","[pca_pr]","[PCA_PR]","length",0.004217517600000001,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pca pr; Printer\'s picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt_pr]","[PNT_PR]","12",12,false],[false,"pied","[pied]","[PIED]","length",0.3248,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pieds du roi; Paris foot; royal; French; feet","UCUM","Len","Obsolete","","cm","CM","32.48",32.48,false],[false,"pouce","[pouce]","[POUCE]","length",0.027066666666666666,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"historical French inches; French royal inches","UCUM","Len","Obsolete","","[pied]/12","[PIED]/12","1",1,false],[false,"ligne","[ligne]","[LIGNE]","length",0.0022555555555555554,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Paris lines; lignes","UCUM","Len","Obsolete","","[pouce]/12","[POUCE]/12","1",1,false],[false,"didot","[didot]","[DIDOT]","length",0.0003759259259259259,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot point; dd; Didots Point; didots; points","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[ligne]/6","[LIGNE]/6","1",1,false],[false,"cicero","[cicero]","[CICERO]","length",0.004511111111111111,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot\'s pica; ciceros; picas","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[didot]","[DIDOT]","12",12,false],[false,"degrees Fahrenheit","[degF]","[DEGF]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"\xb0F","heat",false,null,"degF",1,true,false,0,"\xb0F; deg F","UCUM","Temp","Clinical","","K",null,null,0.5555555555555556,false],[false,"degrees Rankine","[degR]","[degR]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"\xb0R","heat",false,null,null,1,false,false,0,"\xb0R; \xb0Ra; Rankine","UCUM","Temp","Obsolete","Replaced by Kelvin","K/9","K/9","5",5,false],[false,"degrees R\xe9aumur","[degRe]","[degRe]","temperature",1.25,[0,0,0,0,1,0,0],"\xb0R\xe9","heat",false,null,"degRe",1,true,false,0,"\xb0R\xe9, \xb0Re, \xb0r; R\xe9aumur; degree Reaumur; Reaumur","UCUM","Temp","Obsolete","replaced by Celsius","K",null,null,1.25,false],[false,"calorie at 15\xb0C","cal_[15]","CAL_[15]","energy",4185.8,[2,-2,1,0,0,0,0],"cal15\xb0C","heat",true,null,null,1,false,false,0,"calorie 15 C; cals 15 C; calories at 15 C","UCUM","Enrg","Nonclinical","equal to 4.1855 joules; calorie most often used in engineering","J","J","4.18580",4.1858,false],[false,"calorie at 20\xb0C","cal_[20]","CAL_[20]","energy",4181.9,[2,-2,1,0,0,0,0],"cal20\xb0C","heat",true,null,null,1,false,false,0,"calorie 20 C; cal 20 C; calories at 20 C","UCUM","Enrg","Clinical","equal to 4.18190 joules. ","J","J","4.18190",4.1819,false],[false,"mean calorie","cal_m","CAL_M","energy",4190.0199999999995,[2,-2,1,0,0,0,0],"calm","heat",true,null,null,1,false,false,0,"mean cals; mean calories","UCUM","Enrg","Clinical","equal to 4.19002 joules. ","J","J","4.19002",4.19002,false],[false,"international table calorie","cal_IT","CAL_IT","energy",4186.8,[2,-2,1,0,0,0,0],"calIT","heat",true,null,null,1,false,false,0,"calories IT; IT cals; international steam table calories","UCUM","Enrg","Nonclinical","used in engineering steam tables and defined as 1/860 international watt-hour; equal to 4.1868 joules","J","J","4.1868",4.1868,false],[false,"thermochemical calorie","cal_th","CAL_TH","energy",4184,[2,-2,1,0,0,0,0],"calth","heat",true,null,null,1,false,false,0,"thermochemical calories; th cals","UCUM","Enrg","Clinical","equal to 4.184 joules; used as the unit in medicine and biochemistry (equal to cal)","J","J","4.184",4.184,false],[false,"calorie","cal","CAL","energy",4184,[2,-2,1,0,0,0,0],"cal","heat",true,null,null,1,false,false,0,"gram calories; small calories","UCUM","Enrg","Clinical","equal to 4.184 joules (the same value as the thermochemical calorie, which is the most common calorie used in medicine and biochemistry)","cal_th","CAL_TH","1",1,false],[false,"nutrition label Calories","[Cal]","[CAL]","energy",4184000,[2,-2,1,0,0,0,0],"Cal","heat",false,null,null,1,false,false,0,"food calories; Cal; kcal","UCUM","Eng","Clinical","","kcal_th","KCAL_TH","1",1,false],[false,"British thermal unit at 39\xb0F","[Btu_39]","[BTU_39]","energy",1059670,[2,-2,1,0,0,0,0],"Btu39\xb0F","heat",false,null,null,1,false,false,0,"BTU 39F; BTU 39 F; B.T.U. 39 F; B.Th.U. 39 F; BThU 39 F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05967 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05967",1.05967,false],[false,"British thermal unit at 59\xb0F","[Btu_59]","[BTU_59]","energy",1054800,[2,-2,1,0,0,0,0],"Btu59\xb0F","heat",false,null,null,1,false,false,0,"BTU 59 F; BTU 59F; B.T.U. 59 F; B.Th.U. 59 F; BThU 59F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05480 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05480",1.0548,false],[false,"British thermal unit at 60\xb0F","[Btu_60]","[BTU_60]","energy",1054680,[2,-2,1,0,0,0,0],"Btu60\xb0F","heat",false,null,null,1,false,false,0,"BTU 60 F; BTU 60F; B.T.U. 60 F; B.Th.U. 60 F; BThU 60 F; British thermal units 60 F","UCUM","Eng","Nonclinical","equal to 1.05468 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05468",1.05468,false],[false,"mean British thermal unit","[Btu_m]","[BTU_M]","energy",1055870,[2,-2,1,0,0,0,0],"Btum","heat",false,null,null,1,false,false,0,"BTU mean; B.T.U. mean; B.Th.U. mean; BThU mean; British thermal units mean; ","UCUM","Eng","Nonclinical","equal to 1.05587 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05587",1.05587,false],[false,"international table British thermal unit","[Btu_IT]","[BTU_IT]","energy",1055055.85262,[2,-2,1,0,0,0,0],"BtuIT","heat",false,null,null,1,false,false,0,"BTU IT; B.T.U. IT; B.Th.U. IT; BThU IT; British thermal units IT","UCUM","Eng","Nonclinical","equal to 1.055 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05505585262",1.05505585262,false],[false,"thermochemical British thermal unit","[Btu_th]","[BTU_TH]","energy",1054350,[2,-2,1,0,0,0,0],"Btuth","heat",false,null,null,1,false,false,0,"BTU Th; B.T.U. Th; B.Th.U. Th; BThU Th; thermochemical British thermal units","UCUM","Eng","Nonclinical","equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.054350",1.05435,false],[false,"British thermal unit","[Btu]","[BTU]","energy",1054350,[2,-2,1,0,0,0,0],"btu","heat",false,null,null,1,false,false,0,"BTU; B.T.U. ; B.Th.U.; BThU; British thermal units","UCUM","Eng","Nonclinical","equal to the thermochemical British thermal unit equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","[Btu_th]","[BTU_TH]","1",1,false],[false,"horsepower - mechanical","[HP]","[HP]","power",745699.8715822703,[2,-3,1,0,0,0,0],null,"heat",false,null,null,1,false,false,0,"imperial horsepowers","UCUM","EngRat","Nonclinical","refers to mechanical horsepower, which is unit used to measure engine power primarily in the US. ","[ft_i].[lbf_av]/s","[FT_I].[LBF_AV]/S","550",550,false],[false,"tex","tex","TEX","linear mass density (of textile thread)",0.001,[-1,0,1,0,0,0,0],"tex","heat",true,null,null,1,false,false,0,"linear mass density; texes","UCUM","","Clinical","unit of linear mass density for fibers equal to gram per 1000 meters","g/km","G/KM","1",1,false],[false,"Denier (linear mass density)","[den]","[DEN]","linear mass density (of textile thread)",0.0001111111111111111,[-1,0,1,0,0,0,0],"den","heat",false,null,null,1,false,false,0,"den; deniers","UCUM","","Nonclinical","equal to the mass in grams per 9000 meters of the fiber (1 denier = 1 strand of silk)","g/9/km","G/9/KM","1",1,false],[false,"meter of water column","m[H2O]","M[H2O]","pressure",9806650,[-1,-2,1,0,0,0,0],"m\xa0HO2","clinical",true,null,null,1,false,false,0,"mH2O; m H2O; meters of water column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"meter of mercury column","m[Hg]","M[HG]","pressure",133322000,[-1,-2,1,0,0,0,0],"m\xa0Hg","clinical",true,null,null,1,false,false,0,"mHg; m Hg; meters of mercury column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","133.3220",133.322,false],[false,"inch of water column","[in_i\'H2O]","[IN_I\'H2O]","pressure",249088.91000000003,[-1,-2,1,0,0,0,0],"in\xa0HO2","clinical",false,null,null,1,false,false,0,"inches WC; inAq; in H2O; inch of water gauge; iwg; pressure","UCUM","Pres","Clinical","unit of pressure, especially in respiratory and ventilation care","m[H2O].[in_i]/m","M[H2O].[IN_I]/M","1",1,false],[false,"inch of mercury column","[in_i\'Hg]","[IN_I\'HG]","pressure",3386378.8000000003,[-1,-2,1,0,0,0,0],"in\xa0Hg","clinical",false,null,null,1,false,false,0,"inHg; in Hg; pressure; inches","UCUM","Pres","Clinical","unit of pressure used in US to measure barometric pressure and occasionally blood pressure (see mm[Hg] for unit used internationally)","m[Hg].[in_i]/m","M[HG].[IN_I]/M","1",1,false],[false,"peripheral vascular resistance unit","[PRU]","[PRU]","fluid resistance",133322000000,[-4,-1,1,0,0,0,0],"P.R.U.","clinical",false,null,null,1,false,false,0,"peripheral vascular resistance units; peripheral resistance unit; peripheral resistance units; PRU","UCUM","FldResist","Clinical","used to assess blood flow in the capillaries; equal to 1 mmH.min/mL = 133.3 Pa\xb7min/mL","mm[Hg].s/ml","MM[HG].S/ML","1",1,false],[false,"Wood unit","[wood\'U]","[WOOD\'U]","fluid resistance",7999320000,[-4,-1,1,0,0,0,0],"Wood U.","clinical",false,null,null,1,false,false,0,"hybrid reference units; HRU; mmHg.min/L; vascular resistance","UCUM","Pres","Clinical","simplified unit of measurement for for measuring pulmonary vascular resistance that uses pressure; equal to mmHg.min/L","mm[Hg].min/L","MM[HG].MIN/L","1",1,false],[false,"diopter (lens)","[diop]","[DIOP]","refraction of a lens",1,[1,0,0,0,0,0,0],"dpt","clinical",false,null,"inv",1,false,false,0,"diopters; diop; dioptre; dpt; refractive power","UCUM","InvLen","Clinical","unit of optical power of lens represented by inverse meters (m^-1)","m","/M","1",1,false],[false,"prism diopter (magnifying power)","[p\'diop]","[P\'DIOP]","refraction of a prism",1,[0,0,0,1,0,0,0],"PD","clinical",false,null,"tanTimes100",1,true,false,0,"diopters; dioptres; p diops; pdiop; dpt; pdptr; \u0394; cm/m; centimeter per meter; centimetre; metre","UCUM","Angle","Clinical","unit for prism correction in eyeglass prescriptions","rad",null,null,1,false],[false,"percent of slope","%[slope]","%[SLOPE]","slope",0.017453292519943295,[0,0,0,1,0,0,0],"%","clinical",false,null,"100tan",1,true,false,0,"% slope; %slope; percents slopes","UCUM","VelFr; ElpotRatFr; VelRtoFr; AccelFr","Clinical","","deg",null,null,1,false],[false,"mesh","[mesh_i]","[MESH_I]","lineic number",0.025400000000000002,[1,0,0,0,0,0,0],null,"clinical",false,null,"inv",1,false,false,0,"meshes","UCUM","NLen (lineic number)","Clinical","traditional unit of length defined as the number of strands or particles per inch","[in_i]","/[IN_I]","1",1,false],[false,"French (catheter gauge) ","[Ch]","[CH]","gauge of catheters",0.0003333333333333333,[1,0,0,0,0,0,0],"Ch","clinical",false,null,null,1,false,false,0,"Charri\xe8res, French scales; French gauges; Fr, Fg, Ga, FR, Ch","UCUM","Len; Circ; Diam","Clinical","","mm/3","MM/3","1",1,false],[false,"drop - metric (1/20 mL)","[drp]","[DRP]","volume",5e-8,[3,0,0,0,0,0,0],"drp","clinical",false,null,null,1,false,false,0,"drop dosing units; metric drops; gtt","UCUM","Vol","Clinical","standard unit used in the US and internationally for clinical medicine but note that although [drp] is defined as 1/20 milliliter, in practice, drop sizes will vary due to external factors","ml/20","ML/20","1",1,false],[false,"Hounsfield unit","[hnsf\'U]","[HNSF\'U]","x-ray attenuation",1,[0,0,0,0,0,0,0],"HF","clinical",false,null,null,1,false,false,0,"HU; units","UCUM","","Clinical","used to measure X-ray attenuation, especially in CT scans.","1","1","1",1,false],[false,"Metabolic Equivalent of Task ","[MET]","[MET]","metabolic cost of physical activity",5.833333333333334e-11,[3,-1,-1,0,0,0,0],"MET","clinical",false,null,null,1,false,false,0,"metabolic equivalents","UCUM","RelEngRat","Clinical","unit used to measure rate of energy expenditure per power in treadmill and other functional tests","mL/min/kg","ML/MIN/KG","3.5",3.5,false],[false,"homeopathic potency of decimal series (retired)","[hp\'_X]","[HP\'_X]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,"hpX",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of centesimal series (retired)","[hp\'_C]","[HP\'_C]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,"hpC",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of millesimal series (retired)","[hp\'_M]","[HP\'_M]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,"hpM",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of quintamillesimal series (retired)","[hp\'_Q]","[HP\'_Q]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,"hpQ",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of decimal hahnemannian series","[hp_X]","[HP_X]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal hahnemannian series","[hp_C]","[HP_C]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal hahnemannian series","[hp_M]","[HP_M]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal hahnemannian series","[hp_Q]","[HP_Q]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of decimal korsakovian series","[kp_X]","[KP_X]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal korsakovian series","[kp_C]","[KP_C]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal korsakovian series","[kp_M]","[KP_M]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal korsakovian series","[kp_Q]","[KP_Q]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"equivalent","eq","EQ","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"eq","chemical",true,null,null,1,false,false,1,"equivalents","UCUM","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"osmole","osm","OSM","amount of substance (dissolved particles)",6.0221367e+23,[0,0,0,0,0,0,0],"osm","chemical",true,null,null,1,false,false,1,"osmoles; osmols","UCUM","Osmol","Clinical","the number of moles of solute that contribute to the osmotic pressure of a solution","mol","MOL","1",1,false],[false,"pH","[pH]","[PH]","acidity",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"pH","chemical",false,null,"pH",1,true,false,0,"pH scale","UCUM","LogCnc","Clinical","Log concentration of H+","mol/l",null,null,1,false],[false,"gram percent","g%","G%","mass concentration",10000,[-3,0,1,0,0,0,0],"g%","chemical",true,null,null,1,false,false,0,"gram %; gram%; grams per deciliter; g/dL; gm per dL; gram percents","UCUM","MCnc","Clinical","equivalent to unit gram per deciliter (g/dL), a unit often used in medical tests to represent solution concentrations","g/dl","G/DL","1",1,false],[false,"Svedberg unit","[S]","[S]","sedimentation coefficient",1e-13,[0,1,0,0,0,0,0],"S","chemical",false,null,null,1,false,false,0,"Sv; 10^-13 seconds; 100 fs; 100 femtoseconds","UCUM","Time","Clinical","unit of time used in measuring particle\'s sedimentation rate, usually after centrifugation. ","s","10*-13.S","1",1e-13,false],[false,"high power field (microscope)","[HPF]","[HPF]","view area in microscope",1,[0,0,0,0,0,0,0],"HPF","chemical",false,null,null,1,false,false,0,"HPF","UCUM","Area","Clinical","area visible under the maximum magnification power of the objective in microscopy (usually 400x)\\n","1","1","1",1,false],[false,"low power field (microscope)","[LPF]","[LPF]","view area in microscope",1,[0,0,0,0,0,0,0],"LPF","chemical",false,null,null,1,false,false,0,"LPF; fields","UCUM","Area","Clinical","area visible under the low magnification of the objective in microscopy (usually 100 x)\\n","1","1","100",100,false],[false,"katal","kat","KAT","catalytic activity",6.0221367e+23,[0,-1,0,0,0,0,0],"kat","chemical",true,null,null,1,false,false,1,"mol/secs; moles per second; mol*sec-1; mol*s-1; mol.s-1; katals; catalytic activity; enzymatic; enzyme units; activities","UCUM","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"enzyme unit","U","U","catalytic activity",10036894500000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"micromoles per minute; umol/min; umol per minute; umol min-1; enzymatic activity; enzyme activity","UCUM","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"international unit - arbitrary","[iU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"IU","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","1",1,false],[false,"international unit - arbitrary","[IU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"i.U.","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"arbitary unit","[arb\'U]","[ARB\'U]","arbitrary",1,[0,0,0,0,0,0,0],"arb. U","chemical",false,null,null,1,false,true,0,"arbitary units; arb units; arbU","UCUM","Arb","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"United States Pharmacopeia unit","[USP\'U]","[USP\'U]","arbitrary",1,[0,0,0,0,0,0,0],"U.S.P.","chemical",false,null,null,1,false,true,0,"USP U; USP\'U","UCUM","Arb","Clinical","a dose unit to express potency of drugs and vitamins defined by the United States Pharmacopoeia; usually 1 USP = 1 IU","1","1","1",1,false],[false,"GPL unit","[GPL\'U]","[GPL\'U]","biologic activity of anticardiolipin IgG",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"GPL Units; GPL U; IgG anticardiolipin units; IgG Phospholipid","UCUM","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"MPL unit","[MPL\'U]","[MPL\'U]","biologic activity of anticardiolipin IgM",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"MPL units; MPL U; MPL\'U; IgM anticardiolipin units; IgM Phospholipid Units ","UCUM","ACnc","Clinical","units for antiphospholipid test","1","1","1",1,false],[false,"APL unit","[APL\'U]","[APL\'U]","biologic activity of anticardiolipin IgA",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"APL units; APL U; IgA anticardiolipin; IgA Phospholipid; biologic activity of","UCUM","AMass; ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"Bethesda unit","[beth\'U]","[BETH\'U]","biologic activity of factor VIII inhibitor",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"BU","UCUM","ACnc","Clinical","measures of blood coagulation inhibitior for many blood factors","1","1","1",1,false],[false,"anti factor Xa unit","[anti\'Xa\'U]","[ANTI\'XA\'U]","biologic activity of factor Xa inhibitor (heparin)",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","ACnc","Clinical","[anti\'Xa\'U] unit is equivalent to and can be converted to IU/mL. ","1","1","1",1,false],[false,"Todd unit","[todd\'U]","[TODD\'U]","biologic activity antistreptolysin O",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","InvThres; RtoThres","Clinical","the unit for the results of the testing for antistreptolysin O (ASO)","1","1","1",1,false],[false,"Dye unit","[dye\'U]","[DYE\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","CCnc","Obsolete","equivalent to the Somogyi unit, which is an enzyme unit for amylase but better to use U, the standard enzyme unit for measuring catalytic activity","1","1","1",1,false],[false,"Somogyi unit","[smgy\'U]","[SMGY\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Somogyi units; smgy U","UCUM","CAct","Clinical","measures the enzymatic activity of amylase in blood serum - better to use base units mg/mL ","1","1","1",1,false],[false,"Bodansky unit","[bdsk\'U]","[BDSK\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"","UCUM","ACnc","Obsolete","Enzyme unit specific to alkaline phosphatase - better to use standard enzyme unit of U","1","1","1",1,false],[false,"King-Armstrong unit","[ka\'U]","[KA\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"King-Armstrong Units; King units","UCUM","AMass","Obsolete","enzyme units for acid phosphatase - better to use enzyme unit [U]","1","1","1",1,false],[false,"Kunkel unit","[knk\'U]","[KNK\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"Mac Lagan unit","[mclg\'U]","[MCLG\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"galactose index; galactose tolerance test; thymol turbidity test unit; mclg U; units; indexes","UCUM","ACnc","Obsolete","unit for liver tests - previously used in thymol turbidity tests for liver disease diagnoses, and now is sometimes referred to in the oral galactose tolerance test","1","1","1",1,false],[false,"tuberculin unit","[tb\'U]","[TB\'U]","biologic activity of tuberculin",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"TU; units","UCUM","Arb","Clinical","amount of tuberculin antigen -usually in reference to a TB skin test ","1","1","1",1,false],[false,"50% cell culture infectious dose","[CCID_50]","[CCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"CCID50","chemical",false,null,null,1,false,true,0,"CCID50; 50% cell culture infective doses","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% tissue culture infectious dose","[TCID_50]","[TCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"TCID50","chemical",false,null,null,1,false,true,0,"TCID50; 50% tissue culture infective dose","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% embryo infectious dose","[EID_50]","[EID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"EID50","chemical",false,null,null,1,false,true,0,"EID50; 50% embryo infective doses; EID50 Egg Infective Dosage","UCUM","thresNum","Clinical","","1","1","1",1,false],[false,"plaque forming units","[PFU]","[PFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"PFU","chemical",false,null,null,1,false,true,0,"PFU","UCUM","ACnc","Clinical","tests usually report unit as number of PFU per unit volume","1","1","1",1,false],[false,"focus forming units (cells)","[FFU]","[FFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"FFU","chemical",false,null,null,1,false,true,0,"FFU","UCUM","EntNum","Clinical","","1","1","1",1,false],[false,"colony forming units","[CFU]","[CFU]","amount of a proliferating organism",1,[0,0,0,0,0,0,0],"CFU","chemical",false,null,null,1,false,true,0,"CFU","UCUM","Num","Clinical","","1","1","1",1,false],[false,"index of reactivity (allergen)","[IR]","[IR]","amount of an allergen callibrated through in-vivo testing using the Stallergenes\xae method.",1,[0,0,0,0,0,0,0],"IR","chemical",false,null,null,1,false,true,0,"IR; indexes","UCUM","Acnc","Clinical","amount of an allergen callibrated through in-vivo testing using the Stallergenes method. Usually reported in tests as IR/mL","1","1","1",1,false],[false,"bioequivalent allergen unit","[BAU]","[BAU]","amount of an allergen callibrated through in-vivo testing based on the ID50EAL method of (intradermal dilution for 50mm sum of erythema diameters",1,[0,0,0,0,0,0,0],"BAU","chemical",false,null,null,1,false,true,0,"BAU; Bioequivalent Allergy Units; bioequivalent allergen units","UCUM","Arb","Clinical","","1","1","1",1,false],[false,"allergy unit","[AU]","[AU]","procedure defined amount of an allergen using some reference standard",1,[0,0,0,0,0,0,0],"AU","chemical",false,null,null,1,false,true,0,"allergy units; allergen units; AU","UCUM","Arb","Clinical","Most standard test allergy units are reported as [IU] or as %. ","1","1","1",1,false],[false,"allergen unit for Ambrosia artemisiifolia","[Amb\'a\'1\'U]","[AMB\'A\'1\'U]","procedure defined amount of the major allergen of ragweed.",1,[0,0,0,0,0,0,0],"Amb a 1 U","chemical",false,null,null,1,false,true,0,"Amb a 1 unit; Antigen E; AgE U; allergen units","UCUM","Arb","Clinical","Amb a 1 is the major allergen in short ragweed, and can be converted Bioequivalent allergen units (BAU) where 350 Amb a 1 U/mL = 100,000 BAU/mL","1","1","1",1,false],[false,"protein nitrogen unit (allergen testing)","[PNU]","[PNU]","procedure defined amount of a protein substance",1,[0,0,0,0,0,0,0],"PNU","chemical",false,null,null,1,false,true,0,"protein nitrogen units; PNU","UCUM","Mass","Clinical","defined as 0.01 ug of phosphotungstic acid-precipitable protein nitrogen. Being replaced by bioequivalent allergy units (BAU).","1","1","1",1,false],[false,"Limit of flocculation","[Lf]","[LF]","procedure defined amount of an antigen substance",1,[0,0,0,0,0,0,0],"Lf","chemical",false,null,null,1,false,true,0,"Lf doses","UCUM","Arb","Clinical","the antigen content forming 1:1 ratio against 1 unit of antitoxin","1","1","1",1,false],[false,"D-antigen unit (polio)","[D\'ag\'U]","[D\'AG\'U]","procedure defined amount of a poliomyelitis d-antigen substance",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"DAgU; units","UCUM","Acnc","Clinical","unit of potency of poliovirus vaccine used for poliomyelitis prevention reported as D antigen units/mL. The unit is poliovirus type-specific.","1","1","1",1,false],[false,"fibrinogen equivalent units","[FEU]","[FEU]","amount of fibrinogen broken down into the measured d-dimers",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"FEU","UCUM","MCnc","Clinical","Note both the FEU and DDU units are used to report D-dimer measurements. 1 DDU = 1/2 FFU","1","1","1",1,false],[false,"ELISA unit","[ELU]","[ELU]","arbitrary ELISA unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Enzyme-Linked Immunosorbent Assay Units; ELU; EL. U","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"Ehrlich units (urobilinogen)","[EU]","[EU]","Ehrlich unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"EU/dL; mg{urobilinogen}/dL","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"neper","Np","NEP","level",1,[0,0,0,0,0,0,0],"Np","levels",true,null,"ln",1,true,false,0,"nepers","UCUM","LogRto","Clinical","logarithmic unit for ratios of measurements of physical field and power quantities, such as gain and loss of electronic signals","1",null,null,1,false],[false,"bel","B","B","level",1,[0,0,0,0,0,0,0],"B","levels",true,null,"lg",1,true,false,0,"bels","UCUM","LogRto","Clinical","Logarithm of the ratio of power- or field-type quantities; usually expressed in decibels ","1",null,null,1,false],[false,"bel sound pressure","B[SPL]","B[SPL]","pressure level",0.02,[-1,-2,1,0,0,0,0],"B(SPL)","levels",true,null,"lgTimes2",1,true,false,0,"bel SPL; B SPL; sound pressure bels","UCUM","LogRto","Clinical","used to measure sound level in acoustics","Pa",null,null,0.00002,false],[false,"bel volt","B[V]","B[V]","electric potential level",1000,[2,-2,1,0,0,-1,0],"B(V)","levels",true,null,"lgTimes2",1,true,false,0,"bel V; B V; volts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","V",null,null,1,false],[false,"bel millivolt","B[mV]","B[MV]","electric potential level",1,[2,-2,1,0,0,-1,0],"B(mV)","levels",true,null,"lgTimes2",1,true,false,0,"bel mV; B mV; millivolt bels; 10^-3V bels; 10*-3V ","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","mV",null,null,1,false],[false,"bel microvolt","B[uV]","B[UV]","electric potential level",0.001,[2,-2,1,0,0,-1,0],"B(\u03bcV)","levels",true,null,"lgTimes2",1,true,false,0,"bel uV; B uV; microvolts bels; 10^-6V bel; 10*-6V bel","UCUM","LogRto","Clinical","used to express power gain in electrical circuits","uV",null,null,1,false],[false,"bel 10 nanovolt","B[10.nV]","B[10.NV]","electric potential level",0.000010000000000000003,[2,-2,1,0,0,-1,0],"B(10 nV)","levels",true,null,"lgTimes2",1,true,false,0,"bel 10 nV; B 10 nV; 10 nanovolts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","nV",null,null,10,false],[false,"bel watt","B[W]","B[W]","power level",1000,[2,-3,1,0,0,0,0],"B(W)","levels",true,null,"lg",1,true,false,0,"bel W; b W; b Watt; Watts bels","UCUM","LogRto","Clinical","used to express power","W",null,null,1,false],[false,"bel kilowatt","B[kW]","B[KW]","power level",1000000,[2,-3,1,0,0,0,0],"B(kW)","levels",true,null,"lg",1,true,false,0,"bel kW; B kW; kilowatt bel; kW bel; kW B","UCUM","LogRto","Clinical","used to express power","kW",null,null,1,false],[false,"stere","st","STR","volume",1,[3,0,0,0,0,0,0],"st","misc",true,null,null,1,false,false,0,"st\xe8re; m3; cubic meter; m^3; meters cubed; metre","UCUM","Vol","Nonclinical","equal to one cubic meter, usually used for measuring firewoord","m3","M3","1",1,false],[false,"\xc5ngstr\xf6m","Ao","AO","length",1.0000000000000002e-10,[1,0,0,0,0,0,0],"\xc5","misc",false,null,null,1,false,false,0,"\xc5; Angstroms; Ao; \xc5ngstr\xf6ms","UCUM","Len","Clinical","equal to 10^-10 meters; used to express wave lengths and atom scaled differences ","nm","NM","0.1",0.1,false],[false,"barn","b","BRN","action area",9.999999999999999e-29,[2,0,0,0,0,0,0],"b","misc",false,null,null,1,false,false,0,"barns","UCUM","Area","Clinical","used in high-energy physics to express cross-sectional areas","fm2","FM2","100",100,false],[false,"technical atmosphere","att","ATT","pressure",98066499.99999999,[-1,-2,1,0,0,0,0],"at","misc",false,null,null,1,false,false,0,"at; tech atm; tech atmosphere; kgf/cm2; atms; atmospheres","UCUM","Pres","Obsolete","non-SI unit of pressure equal to one kilogram-force per square centimeter","kgf/cm2","KGF/CM2","1",1,false],[false,"mho","mho","MHO","electric conductance",0.001,[-2,1,-1,0,0,2,0],"mho","misc",true,null,null,1,false,false,0,"siemens; ohm reciprocals; \u03a9^\u22121; \u03a9-1 ","UCUM","","Obsolete","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","S","S","1",1,false],[false,"pound per square inch","[psi]","[PSI]","pressure",6894757.293168359,[-1,-2,1,0,0,0,0],"psi","misc",false,null,null,1,false,false,0,"psi; lb/in2; lb per in2","UCUM","Pres","Clinical","","[lbf_av]/[in_i]2","[LBF_AV]/[IN_I]2","1",1,false],[false,"circle - plane angle","circ","CIRC","plane angle",6.283185307179586,[0,0,0,1,0,0,0],"circ","misc",false,null,null,1,false,false,0,"angles; circles","UCUM","Angle","Clinical","","[pi].rad","[PI].RAD","2",2,false],[false,"spere - solid angle","sph","SPH","solid angle",12.566370614359172,[0,0,0,2,0,0,0],"sph","misc",false,null,null,1,false,false,0,"speres","UCUM","Angle","Clinical","equal to the solid angle of an entire sphere = 4\u03c0sr (sr = steradian) ","[pi].sr","[PI].SR","4",4,false],[false,"metric carat","[car_m]","[CAR_M]","mass",0.2,[0,0,1,0,0,0,0],"ctm","misc",false,null,null,1,false,false,0,"carats; ct; car m","UCUM","Mass","Nonclinical","unit of mass for gemstones","g","G","2e-1",0.2,false],[false,"carat of gold alloys","[car_Au]","[CAR_AU]","mass fraction",0.041666666666666664,[0,0,0,0,0,0,0],"ctAu","misc",false,null,null,1,false,false,0,"karats; k; kt; car au; carats","UCUM","MFr","Nonclinical","unit of purity for gold alloys","/24","/24","1",1,false],[false,"Smoot","[smoot]","[SMOOT]","length",1.7018000000000002,[1,0,0,0,0,0,0],null,"misc",false,null,null,1,false,false,0,"","UCUM","Len","Nonclinical","prank unit of length from MIT","[in_i]","[IN_I]","67",67,false],[false,"meter per square seconds per square root of hertz","[m/s2/Hz^(1/2)]","[M/S2/HZ^(1/2)]","amplitude spectral density",1,[2,-3,0,0,0,0,0],null,"misc",false,null,"sqrt",1,true,false,0,"m/s2/(Hz^.5); m/s2/(Hz^(1/2)); m per s2 per Hz^1/2","UCUM","","Constant","measures amplitude spectral density, and is equal to the square root of power spectral density\\n ","m2/s4/Hz",null,null,1,false],[false,"bit - logarithmic","bit_s","BIT_S","amount of information",1,[0,0,0,0,0,0,0],"bits","infotech",false,null,"ld",1,true,false,0,"bit-s; bit s; bit logarithmic","UCUM","LogA","Nonclinical","defined as the log base 2 of the number of distinct signals; cannot practically be used to express more than 1000 bits\\n\\nIn information theory, the definition of the amount of self-information and information entropy is often expressed with the binary logarithm (log base 2)","1",null,null,1,false],[false,"bit","bit","BIT","amount of information",1,[0,0,0,0,0,0,0],"bit","infotech",true,null,null,1,false,false,0,"bits","UCUM","","Nonclinical","dimensionless information unit of 1 used in computing and digital communications","1","1","1",1,false],[false,"byte","By","BY","amount of information",8,[0,0,0,0,0,0,0],"B","infotech",true,null,null,1,false,false,0,"bytes","UCUM","","Nonclinical","equal to 8 bits","bit","bit","8",8,false],[false,"baud","Bd","BD","signal transmission rate",1,[0,1,0,0,0,0,0],"Bd","infotech",true,null,"inv",1,false,false,0,"Bd; bauds","UCUM","Freq","Nonclinical","unit to express rate in symbols per second or pulses per second. ","s","/s","1",1,false],[false,"per twelve hour","/(12.h)","/HR","",0.000023148148148148147,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"per 12 hours; 12hrs; 12 hrs; /12hrs","LOINC","Rat","Clinical","",null,null,null,null,false],[false,"per arbitrary unit","/[arb\'U]","/[ARB\'U]","",1,[0,0,0,0,0,0,0],"/arb/ U",null,false,null,null,1,false,true,0,"/arbU","LOINC","InvA ","Clinical","",null,null,null,null,false],[false,"per high power field","/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"/HPF; per HPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per international unit","/[IU]","/[IU]","",1,[0,0,0,0,0,0,0],"/i/U.",null,false,null,null,1,false,true,0,"international units; /IU; per IU","LOINC","InvA","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)",null,null,null,null,false],[false,"per low power field","/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"/LPF; per LPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per 10 billion ","/10*10","/10*10","",1e-10,[0,0,0,0,0,0,0],"/1010<.sup>",null,false,null,null,1,false,false,0,"/10^10; per 10*10","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per trillion ","/10*12","/10*12","",1e-12,[0,0,0,0,0,0,0],"/1012<.sup>",null,false,null,null,1,false,false,0,"/10^12; per 10*12","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per thousand","/10*3","/10*3","",0.001,[0,0,0,0,0,0,0],"/103<.sup>",null,false,null,null,1,false,false,0,"/10^3; per 10*3","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per million","/10*6","/10*6","",0.000001,[0,0,0,0,0,0,0],"/106<.sup>",null,false,null,null,1,false,false,0,"/10^6; per 10*6;","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per billion","/10*9","/10*9","",1e-9,[0,0,0,0,0,0,0],"/109<.sup>",null,false,null,null,1,false,false,0,"/10^9; per 10*9","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100","/100","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"per hundred; 10^2; 10*2","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100 cells","/100{cells}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 cells; /100cells; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 neutrophils","/100{neutrophils}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 neutrophils; /100neutrophils; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 spermatozoa","/100{spermatozoa}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 spermatozoa; /100spermatozoa; per hundred","LOINC","NFr","Clinical","",null,null,null,null,false],[false,"per 100 white blood cells","/100{WBCs}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 WBCs; /100WBCs; per hundred","LOINC","Ratio; NFr","Clinical","",null,null,null,null,false],[false,"per year","/a","/ANN","",3.168808781402895e-8,[0,-1,0,0,0,0,0],"/a",null,false,null,null,1,false,false,0,"/Years; /yrs; yearly","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per centimeter of water","/cm[H2O]","/CM[H2O]","",0.000010197162129779282,[1,2,-1,0,0,0,0],"/cm\xa0HO2<.r>",null,false,null,null,1,false,false,0,"/cmH2O; /cm H2O; centimeters; centimetres","LOINC","InvPress","Clinical","",null,null,null,null,false],[false,"per day","/d","/D","",0.000011574074074074073,[0,-1,0,0,0,0,0],"/d",null,false,null,null,1,false,false,0,"/dy; per day","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per deciliter","/dL","/DL","",10000,[-3,0,0,0,0,0,0],"/dL",null,false,null,null,1,false,false,0,"per dL; /deciliter; decilitre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per gram","/g","/G","",1,[0,0,-1,0,0,0,0],"/g",null,false,null,null,1,false,false,0,"/gm; /gram; per g","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per hour","/h","/HR","",0.0002777777777777778,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"/hr; /hour; per hr","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per kilogram","/kg","/KG","",0.001,[0,0,-1,0,0,0,0],"/kg",null,false,null,null,1,false,false,0,"per kg; per kilogram","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per liter","/L","/L","",1000,[-3,0,0,0,0,0,0],"/L",null,false,null,null,1,false,false,0,"/liter; litre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per square meter","/m2","/M2","",1,[-2,0,0,0,0,0,0],"/m2<.sup>",null,false,null,null,1,false,false,0,"/m^2; /m*2; /sq. m; per square meter; meter squared; metre","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per cubic meter","/m3","/M3","",1,[-3,0,0,0,0,0,0],"/m3<.sup>",null,false,null,null,1,false,false,0,"/m^3; /m*3; /cu. m; per cubic meter; meter cubed; per m3; metre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per milligram","/mg","/MG","",1000,[0,0,-1,0,0,0,0],"/mg",null,false,null,null,1,false,false,0,"/milligram; per mg","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per minute","/min","/MIN","",0.016666666666666666,[0,-1,0,0,0,0,0],"/min",null,false,null,null,1,false,false,0,"/minute; per mins; breaths beats per minute","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per milliliter","/mL","/ML","",1000000,[-3,0,0,0,0,0,0],"/mL",null,false,null,null,1,false,false,0,"/milliliter; per mL; millilitre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per millimeter","/mm","/MM","",1000,[-1,0,0,0,0,0,0],"/mm",null,false,null,null,1,false,false,0,"/millimeter; per mm; millimetre","LOINC","InvLen","Clinical","",null,null,null,null,false],[false,"per month","/mo","/MO","",3.802570537683474e-7,[0,-1,0,0,0,0,0],"/mo",null,false,null,null,1,false,false,0,"/month; per mo; monthly; month","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per second","/s","/S","",1,[0,-1,0,0,0,0,0],"/s",null,false,null,null,1,false,false,0,"/second; /sec; per sec; frequency; Hertz; Herz; Hz; becquerels; Bq; s-1; s^-1","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per enzyme unit","/U","/U","",9.963241120049633e-17,[0,1,0,0,0,0,0],"/U",null,false,null,null,1,false,false,-1,"/enzyme units; per U","LOINC","InvC; NCat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"per microliter","/uL","/UL","",999999999.9999999,[-3,0,0,0,0,0,0],"/\u03bcL",null,false,null,null,1,false,false,0,"/microliter; microlitre; /mcl; per uL","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"per week","/wk","/WK","",0.0000016534391534391535,[0,-1,0,0,0,0,0],"/wk",null,false,null,null,1,false,false,0,"/week; per wk; weekly, weeks","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"APL unit per milliliter","[APL\'U]/mL","[APL\'U]/ML","biologic activity of anticardiolipin IgA",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"APL/mL; APL\'U/mL; APL U/mL; APL/milliliter; IgA anticardiolipin units per milliliter; IgA Phospholipid Units; millilitre; biologic activity of","LOINC","ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"arbitrary unit per milliliter","[arb\'U]/mL","[ARB\'U]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(arb. U)/mL","chemical",false,null,null,1,false,true,0,"arb\'U/mL; arbU/mL; arb U/mL; arbitrary units per milliliter; millilitre","LOINC","ACnc","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"colony forming units per liter","[CFU]/L","[CFU]/L","amount of a proliferating organism",1000,[-3,0,0,0,0,0,0],"CFU/L","chemical",false,null,null,1,false,true,0,"CFU per Liter; CFU/L","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"colony forming units per milliliter","[CFU]/mL","[CFU]/ML","amount of a proliferating organism",1000000,[-3,0,0,0,0,0,0],"CFU/mL","chemical",false,null,null,1,false,true,0,"CFU per mL; CFU/mL","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"foot per foot - US","[ft_us]/[ft_us]","[FT_US]/[FT_US]","length",1,[0,0,0,0,0,0,0],"(ftus)/(ftus)","us-lengths",false,null,null,1,false,false,0,"ft/ft; ft per ft; feet per feet; visual acuity","","LenRto","Clinical","distance ratio to measure 20:20 vision","m/3937","M/3937","1200",1200,false],[false,"GPL unit per milliliter","[GPL\'U]/mL","[GPL\'U]/ML","biologic activity of anticardiolipin IgG",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"GPL U/mL; GPL\'U/mL; GPL/mL; GPL U per mL; IgG Phospholipid Units per milliliters; IgG anticardiolipin units; millilitres ","LOINC","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"international unit per 2 hour","[IU]/(2.h)","[IU]/HR","arbitrary",0.0001388888888888889,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/2hrs; IU/2 hours; IU per 2 hrs; international units per 2 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per 24 hour","[IU]/(24.h)","[IU]/HR","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/24hr; IU/24 hours; IU per 24 hrs; international units per 24 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per day","[IU]/d","[IU]/D","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/d","chemical",true,null,null,1,false,true,0,"IU/dy; IU/days; IU per dys; international units per day","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per deciliter","[IU]/dL","[IU]/DL","arbitrary",10000,[-3,0,0,0,0,0,0],"(i.U.)/dL","chemical",true,null,null,1,false,true,0,"IU/dL; IU per dL; international units per deciliters; decilitres","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per gram","[IU]/g","[IU]/G","arbitrary",1,[0,0,-1,0,0,0,0],"(i.U.)/g","chemical",true,null,null,1,false,true,0,"IU/gm; IU/gram; IU per gm; IU per g; international units per gram","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per hour","[IU]/h","[IU]/HR","arbitrary",0.0002777777777777778,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/hrs; IU per hours; international units per hour","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram","[IU]/kg","[IU]/KG","arbitrary",0.001,[0,0,-1,0,0,0,0],"(i.U.)/kg","chemical",true,null,null,1,false,true,0,"IU/kg; IU/kilogram; IU per kg; units","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram per day","[IU]/kg/d","[IU]/KG/D","arbitrary",1.1574074074074074e-8,[0,-1,-1,0,0,0,0],"(i.U.)/kg/d","chemical",true,null,null,1,false,true,0,"IU/kg/dy; IU/kg/day; IU/kilogram/day; IU per kg per day; units","LOINC","ACntRat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per liter","[IU]/L","[IU]/L","arbitrary",1000,[-3,0,0,0,0,0,0],"(i.U.)/L","chemical",true,null,null,1,false,true,0,"IU/L; IU/liter; IU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per minute","[IU]/min","[IU]/MIN","arbitrary",0.016666666666666666,[0,-1,0,0,0,0,0],"(i.U.)/min","chemical",true,null,null,1,false,true,0,"IU/min; IU/minute; IU per minute; international units","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per milliliter","[IU]/mL","[IU]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(i.U.)/mL","chemical",true,null,null,1,false,true,0,"IU/mL; IU per mL; international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"MPL unit per milliliter","[MPL\'U]/mL","[MPL\'U]/ML","biologic activity of anticardiolipin IgM",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"MPL/mL; MPL U/mL; MPL\'U/mL; IgM anticardiolipin units; IgM Phospholipid Units; millilitre ","LOINC","ACnc","Clinical","units for antiphospholipid test\\n","1","1","1",1,false],[false,"number per high power field","{#}/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"#/HPF; # per HPF; number/HPF; numbers per high power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"number per low power field","{#}/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"#/LPF; # per LPF; number/LPF; numbers per low power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"IgA antiphosphatidylserine unit ","{APS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"APS Unit; Phosphatidylserine Antibody IgA Units","LOINC","ACnc","Clinical","unit for antiphospholipid test",null,null,null,null,false],[false,"EIA index","{EIA_index}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"enzyme immunoassay index","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"kaolin clotting time","{KCT\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"KCT","LOINC","Time","Clinical","sensitive\xa0test to detect\xa0lupus anticoagulants; measured in seconds",null,null,null,null,false],[false,"IgM antiphosphatidylserine unit","{MPS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"Phosphatidylserine Antibody IgM Measurement ","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"trillion per liter","10*12/L","(10*12)/L","number",1000000000000000,[-3,0,0,0,0,0,0],"(1012)/L","dimless",false,null,null,1,false,false,0,"10^12/L; 10*12 per Liter; trillion per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^3 (used for cell count)","10*3","10*3","number",1000,[0,0,0,0,0,0,0],"103","dimless",false,null,null,1,false,false,0,"10^3; thousand","LOINC","Num","Clinical","usually used for counting entities (e.g. blood cells) per volume","1","1","10",10,false],[false,"thousand per liter","10*3/L","(10*3)/L","number",1000000,[-3,0,0,0,0,0,0],"(103)/L","dimless",false,null,null,1,false,false,0,"10^3/L; 10*3 per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per milliliter","10*3/mL","(10*3)/ML","number",1000000000,[-3,0,0,0,0,0,0],"(103)/mL","dimless",false,null,null,1,false,false,0,"10^3/mL; 10*3 per mL; thousand per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per microliter","10*3/uL","(10*3)/UL","number",999999999999.9999,[-3,0,0,0,0,0,0],"(103)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^3/uL; 10*3 per uL; thousand per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 thousand per microliter","10*4/uL","(10*4)/UL","number",10000000000000,[-3,0,0,0,0,0,0],"(104)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^4/uL; 10*4 per uL; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^5 ","10*5","10*5","number",100000,[0,0,0,0,0,0,0],"105","dimless",false,null,null,1,false,false,0,"one hundred thousand","LOINC","Num","Clinical","","1","1","10",10,false],[false,"10^6","10*6","10*6","number",1000000,[0,0,0,0,0,0,0],"106","dimless",false,null,null,1,false,false,0,"","LOINC","Num","Clinical","","1","1","10",10,false],[false,"million colony forming unit per liter","10*6.[CFU]/L","(10*6).[CFU]/L","number",1000000000,[-3,0,0,0,0,0,0],"(106).CFU/L","dimless",false,null,null,1,false,true,0,"10*6 CFU/L; 10^6 CFU/L; 10^6CFU; 10^6 CFU per liter; million colony forming units; litre","LOINC","ACnc","Clinical","","1","1","10",10,false],[false,"million international unit","10*6.[IU]","(10*6).[IU]","number",1000000,[0,0,0,0,0,0,0],"(106).(i.U.)","dimless",false,null,null,1,false,true,0,"10*6 IU; 10^6 IU; international units","LOINC","arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","10",10,false],[false,"million per 24 hour","10*6/(24.h)","(10*6)/HR","number",11.574074074074074,[0,-1,0,0,0,0,0],"(106)/h","dimless",false,null,null,1,false,false,0,"10*6/24hrs; 10^6/24 hrs; 10*6 per 24 hrs; 10^6 per 24 hours","LOINC","NRat","Clinical","","1","1","10",10,false],[false,"million per kilogram","10*6/kg","(10*6)/KG","number",1000,[0,0,-1,0,0,0,0],"(106)/kg","dimless",false,null,null,1,false,false,0,"10^6/kg; 10*6 per kg; 10*6 per kilogram; millions","LOINC","NCnt","Clinical","","1","1","10",10,false],[false,"million per liter","10*6/L","(10*6)/L","number",1000000000,[-3,0,0,0,0,0,0],"(106)/L","dimless",false,null,null,1,false,false,0,"10^6/L; 10*6 per Liter; 10^6 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per milliliter","10*6/mL","(10*6)/ML","number",1000000000000,[-3,0,0,0,0,0,0],"(106)/mL","dimless",false,null,null,1,false,false,0,"10^6/mL; 10*6 per mL; 10*6 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per microliter","10*6/uL","(10*6)/UL","number",1000000000000000,[-3,0,0,0,0,0,0],"(106)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^6/uL; 10^6 per uL; 10^6/mcl; 10^6 per mcl; 10^6 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^8","10*8","10*8","number",100000000,[0,0,0,0,0,0,0],"108","dimless",false,null,null,1,false,false,0,"100 million; one hundred million; 10^8","LOINC","Num","Clinical","","1","1","10",10,false],[false,"billion per liter","10*9/L","(10*9)/L","number",1000000000000,[-3,0,0,0,0,0,0],"(109)/L","dimless",false,null,null,1,false,false,0,"10^9/L; 10*9 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per milliliter","10*9/mL","(10*9)/ML","number",1000000000000000,[-3,0,0,0,0,0,0],"(109)/mL","dimless",false,null,null,1,false,false,0,"10^9/mL; 10*9 per mL; 10^9 per mL; 10*9 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per microliter","10*9/uL","(10*9)/UL","number",1000000000000000000,[-3,0,0,0,0,0,0],"(109)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^9/uL; 10^9 per uL; 10^9/mcl; 10^9 per mcl; 10*9 per uL; 10*9 per mcl; 10*9/mcl; 10^9 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 liter per minute per square meter","10.L/(min.m2)","L/(MIN.M2)","",0.00016666666666666666,[1,-1,0,0,0,0,0],"L/(min.(m2))",null,false,null,null,1,false,false,0,"10 liters per minutes per square meter; 10 L per min per m2; m^2; 10 L/(min*m2); 10L/(min*m^2); litres; sq. meter; metre; meters squared","LOINC","ArVRat","Clinical","",null,null,null,null,false],[false,"10 liter per minute","10.L/min","L/MIN","",0.00016666666666666666,[3,-1,0,0,0,0,0],"L/min",null,false,null,null,1,false,false,0,"10 liters per minute; 10 L per min; 10L; 10 L/min; litre","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"10 micronewton second per centimeter to the fifth power per square meter","10.uN.s/(cm5.m2)","(UN.S)/(CM5.M2)","",100000000,[-6,-1,1,0,0,0,0],"(\u03bcN.s)/(cm5).(m2)",null,false,null,null,1,false,false,0,"dyne seconds per centimeter5 and square meter; dyn.s/(cm5.m2); dyn.s/cm5/m2; cm^5; m^2","LOINC","","Clinical","unit to measure systemic vascular resistance per body surface area",null,null,null,null,false],[false,"24 hour","24.h","HR","",86400,[0,1,0,0,0,0,0],"h",null,false,null,null,1,false,false,0,"24hrs; 24 hrs; 24 hours; days; dy","LOINC","Time","Clinical","",null,null,null,null,false],[false,"ampere per meter","A/m","A/M","electric current",1,[-1,-1,0,0,0,1,0],"A/m","si",true,null,null,1,false,false,0,"A/m; amp/meter; magnetic field strength; H; B; amperes per meter; metre","LOINC","","Clinical","unit of magnetic field strength","C/s","C/S","1",1,false],[true,"centigram","cg","CG","mass",0.01,[0,0,1,0,0,0,0],"cg",null,false,"M",null,1,false,false,0,"centigrams; cg; cgm","LOINC","Mass","Clinical","",null,null,null,null,false],[false,"centiliter","cL","CL","volume",0.00001,[3,0,0,0,0,0,0],"cL","iso1000",true,null,null,1,false,false,0,"centiliters; centilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"centimeter","cm","CM","length",0.01,[1,0,0,0,0,0,0],"cm",null,false,"L",null,1,false,false,0,"centimeters; centimetres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"centimeter of water","cm[H2O]","CM[H2O]","pressure",98066.5,[-1,-2,1,0,0,0,0],"cm\xa0HO2","clinical",true,null,null,1,false,false,0,"cm H2O; cmH2O; centimetres; pressure","LOINC","Pres","Clinical","unit of pressure mostly applies to blood pressure","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per liter per second","cm[H2O]/L/s","(CM[H2O]/L)/S","pressure",98066500,[-4,-3,1,0,0,0,0],"(cm\xa0HO2)/L/s","clinical",true,null,null,1,false,false,0,"cm[H2O]/(L/s); cm[H2O].s/L; cm H2O/L/sec; cmH2O/L/sec; cmH2O/Liter; cmH2O per L per secs; centimeters of water per liters per second; centimetres; litres; cm[H2O]/(L/s)","LOINC","PresRat","Clinical","unit used to measure mean pulmonary resistance","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per second per meter","cm[H2O]/s/m","(CM[H2O]/S)/M","pressure",98066.5,[-2,-3,1,0,0,0,0],"(cm\xa0HO2)/s/m","clinical",true,null,null,1,false,false,0,"cm[H2O]/(s.m); cm H2O/s/m; cmH2O; cmH2O/sec/m; cmH2O per secs per meters; centimeters of water per seconds per meter; centimetres; metre","LOINC","PresRat","Clinical","unit used to measure pulmonary pressure time product","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of mercury","cm[Hg]","CM[HG]","pressure",1333220,[-1,-2,1,0,0,0,0],"cm\xa0Hg","clinical",true,null,null,1,false,false,0,"centimeters of mercury; centimetres; cmHg; cm Hg","LOINC","Pres","Clinical","unit of pressure where 1 cmHg = 10 torr","kPa","KPAL","133.3220",133.322,false],[true,"square centimeter","cm2","CM2","length",0.0001,[2,0,0,0,0,0,0],"cm2",null,false,"L",null,1,false,false,0,"cm^2; sq cm; centimeters squared; square centimeters; centimetre; area","LOINC","Area","Clinical","",null,null,null,null,false],[true,"square centimeter per second","cm2/s","CM2/S","length",0.0001,[2,-1,0,0,0,0,0],"(cm2)/s",null,false,"L",null,1,false,false,0,"cm^2/sec; square centimeters per second; sq cm per sec; cm2; centimeters squared; centimetres","LOINC","AreaRat","Clinical","",null,null,null,null,false],[false,"centipoise","cP","CP","dynamic viscosity",1,[-1,-1,1,0,0,0,0],"cP","cgs",true,null,null,1,false,false,0,"cps; centiposes","LOINC","Visc","Clinical","unit of dynamic viscosity in the CGS system with base units: 10^\u22123 Pa.s = 1 mPa\xb7.s (1 millipascal second)","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"centistoke","cSt","CST","kinematic viscosity",0.0000010000000000000002,[2,-1,0,0,0,0,0],"cSt","cgs",true,null,null,1,false,false,0,"centistokes","LOINC","Visc","Clinical","unit for kinematic viscosity with base units of mm^2/s (square millimeter per second)","cm2/s","CM2/S","1",1,false],[false,"dekaliter per minute","daL/min","DAL/MIN","volume",0.00016666666666666666,[3,-1,0,0,0,0,0],"daL/min","iso1000",true,null,null,1,false,false,0,"dekalitres; dekaliters per minute; per min","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"dekaliter per minute per square meter","daL/min/m2","(DAL/MIN)/M2","volume",0.00016666666666666666,[1,-1,0,0,0,0,0],"(daL/min)/(m2)","iso1000",true,null,null,1,false,false,0,"daL/min/m^2; daL/minute/m2; sq. meter; dekaliters per minutes per square meter; meter squared; dekalitres; metre","LOINC","ArVRat","Clinical","The area usually is the body surface area used to normalize cardiovascular measures for patient\'s size","l",null,"1",1,false],[false,"decibel","dB","DB","level",1,[0,0,0,0,0,0,0],"dB","levels",true,null,"lg",0.1,true,false,0,"decibels","LOINC","LogRto","Clinical","unit most commonly used in acoustics as unit of sound pressure level. (also see B[SPL] or bel sound pressure level). ","1",null,null,1,false],[false,"degree per second","deg/s","DEG/S","plane angle",0.017453292519943295,[0,-1,0,1,0,0,0],"\xb0/s","iso1000",false,null,null,1,false,false,0,"deg/sec; deg per sec; \xb0/sec; twist rate; angular speed; rotational speed","LOINC","ARat","Clinical","unit of angular (rotational) speed used to express turning rate","[pi].rad/360","[PI].RAD/360","2",2,false],[true,"decigram","dg","DG","mass",0.1,[0,0,1,0,0,0,0],"dg",null,false,"M",null,1,false,false,0,"decigrams; dgm; 0.1 grams; 1/10 gm","LOINC","Mass","Clinical","equal to 1/10 gram",null,null,null,null,false],[false,"deciliter","dL","DL","volume",0.0001,[3,0,0,0,0,0,0],"dL","iso1000",true,null,null,1,false,false,0,"deciliters; decilitres; 0.1 liters; 1/10 L","LOINC","Vol","Clinical","equal to 1/10 liter","l",null,"1",1,false],[true,"decimeter","dm","DM","length",0.1,[1,0,0,0,0,0,0],"dm",null,false,"L",null,1,false,false,0,"decimeters; decimetres; 0.1 meters; 1/10 m; 10 cm; centimeters","LOINC","Len","Clinical","equal to 1/10 meter or 10 centimeters",null,null,null,null,false],[true,"square decimeter per square second","dm2/s2","DM2/S2","length",0.010000000000000002,[2,-2,0,0,0,0,0],"(dm2)/(s2)",null,false,"L",null,1,false,false,0,"dm2 per s2; dm^2/s^2; decimeters squared per second squared; sq dm; sq sec","LOINC","EngMass (massic energy)","Clinical","units for energy per unit mass or Joules per kilogram (J/kg = kg.m2/s2/kg = m2/s2) ",null,null,null,null,false],[false,"dyne second per centimeter per square meter","dyn.s/(cm.m2)","(DYN.S)/(CM.M2)","force",1,[-2,-1,1,0,0,0,0],"(dyn.s)/(cm.(m2))","cgs",true,null,null,1,false,false,0,"(dyn*s)/(cm*m2); (dyn*s)/(cm*m^2); dyn s per cm per m2; m^2; dyne seconds per centimeters per square meter; centimetres; sq. meter; squared","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"dyne second per centimeter","dyn.s/cm","(DYN.S)/CM","force",1,[0,-1,1,0,0,0,0],"(dyn.s)/cm","cgs",true,null,null,1,false,false,0,"(dyn*s)/cm; dyn sec per cm; seconds; centimetre; dyne seconds","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"equivalent per liter","eq/L","EQ/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"eq/L","chemical",true,null,null,1,false,false,1,"eq/liter; eq/litre; eqs; equivalents per liter; litre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per milliliter","eq/mL","EQ/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"eq/mL","chemical",true,null,null,1,false,false,1,"equivalent/milliliter; equivalents per milliliter; eq per mL; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per millimole","eq/mmol","EQ/MMOL","amount of substance",1000,[0,0,0,0,0,0,0],"eq/mmol","chemical",true,null,null,1,false,false,0,"equivalent/millimole; equivalents per millimole; eq per mmol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per micromole","eq/umol","EQ/UMOL","amount of substance",1000000,[0,0,0,0,0,0,0],"eq/\u03bcmol","chemical",true,null,null,1,false,false,0,"equivalent/micromole; equivalents per micromole; eq per umol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"femtogram","fg","FG","mass",1e-15,[0,0,1,0,0,0,0],"fg",null,false,"M",null,1,false,false,0,"fg; fgm; femtograms; weight","LOINC","Mass","Clinical","equal to 10^-15 grams",null,null,null,null,false],[false,"femtoliter","fL","FL","volume",1e-18,[3,0,0,0,0,0,0],"fL","iso1000",true,null,null,1,false,false,0,"femtolitres; femtoliters","LOINC","Vol; EntVol","Clinical","equal to 10^-15 liters","l",null,"1",1,false],[true,"femtometer","fm","FM","length",1e-15,[1,0,0,0,0,0,0],"fm",null,false,"L",null,1,false,false,0,"femtometres; femtometers","LOINC","Len","Clinical","equal to 10^-15 meters",null,null,null,null,false],[false,"femtomole","fmol","FMOL","amount of substance",602213670,[0,0,0,0,0,0,0],"fmol","si",true,null,null,1,false,false,1,"femtomoles","LOINC","EntSub","Clinical","equal to 10^-15 moles","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per gram","fmol/g","FMOL/G","amount of substance",602213670,[0,0,-1,0,0,0,0],"fmol/g","si",true,null,null,1,false,false,1,"femtomoles; fmol/gm; fmol per gm","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per liter","fmol/L","FMOL/L","amount of substance",602213670000,[-3,0,0,0,0,0,0],"fmol/L","si",true,null,null,1,false,false,1,"femtomoles; fmol per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milligram","fmol/mg","FMOL/MG","amount of substance",602213670000,[0,0,-1,0,0,0,0],"fmol/mg","si",true,null,null,1,false,false,1,"fmol per mg; femtomoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milliliter","fmol/mL","FMOL/ML","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"fmol/mL","si",true,null,null,1,false,false,1,"femtomoles; millilitre; fmol per mL; fmol per milliliter","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"gram meter","g.m","G.M","mass",1,[1,0,1,0,0,0,0],"g.m",null,false,"M",null,1,false,false,0,"g*m; gxm; meters; metres","LOINC","Enrg","Clinical","Unit for measuring stroke work (heart work)",null,null,null,null,false],[true,"gram per 100 gram","g/(100.g)","G/G","mass",0.01,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"g/100 gm; 100gm; grams per 100 grams; gm per 100 gm","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per 12 hour","g/(12.h)","G/HR","mass",0.000023148148148148147,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/12hrs; 12 hrs; gm per 12 hrs; 12hrs; grams per 12 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 24 hour","g/(24.h)","G/HR","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; gm/dy; gm per dy; grams per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 3 days","g/(3.d)","G/D","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/3dy; gm/3 dy; gm per 3 days; grams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 4 hour","g/(4.h)","G/HR","mass",0.00006944444444444444,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/4hrs; gm/4 hrs; gm per 4 hrs; 4hrs; grams per 4 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 48 hour","g/(48.h)","G/HR","mass",0.000005787037037037037,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/48hrs; gm/48 hrs; gm per 48 hrs; 48hrs; grams per 48 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 5 hour","g/(5.h)","G/HR","mass",0.00005555555555555556,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/5hrs; gm/5 hrs; gm per 5 hrs; 5hrs; grams per 5 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 6 hour","g/(6.h)","G/HR","mass",0.000046296296296296294,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/6hrs; gm/6 hrs; gm per 6 hrs; 6hrs; grams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 72 hour","g/(72.h)","G/HR","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/72hrs; gm/72 hrs; gm per 72 hrs; 72hrs; grams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per cubic centimeter","g/cm3","G/CM3","mass",999999.9999999999,[-3,0,1,0,0,0,0],"g/(cm3)",null,false,"M",null,1,false,false,0,"g/cm^3; gm per cm3; g per cm^3; grams per centimeter cubed; cu. cm; centimetre; g/mL; gram per milliliter; millilitre","LOINC","MCnc","Clinical","g/cm3 = g/mL",null,null,null,null,false],[true,"gram per day","g/d","G/D","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/dy; gm per dy; grams per day; gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; serving","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per deciliter","g/dL","G/DL","mass",10000,[-3,0,1,0,0,0,0],"g/dL",null,false,"M",null,1,false,false,0,"gm/dL; gm per dL; grams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per gram","g/g","G/G","mass",1,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"gm; grams","LOINC","MRto ","Clinical","",null,null,null,null,false],[true,"gram per hour","g/h","G/HR","mass",0.0002777777777777778,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/hr; gm per hr; grams; intake; output","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per hour per square meter","g/h/m2","(G/HR)/M2","mass",0.0002777777777777778,[-2,-1,1,0,0,0,0],"(g/h)/(m2)",null,false,"M",null,1,false,false,0,"gm/hr/m2; gm/h/m2; /m^2; sq. m; g per hr per m2; grams per hours per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"gram per kilogram","g/kg ","G/KG","mass",0.001,[0,0,0,0,0,0,0],"g/kg",null,false,"M",null,1,false,false,0,"g per kg; gram per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per kilogram per 8 hour ","g/kg/(8.h)","(G/KG)/HR","mass",3.472222222222222e-8,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(8.kg.h); gm/kg/8hrs; 8 hrs; g per kg per 8 hrs; 8hrs; grams per kilograms per 8 hours; shift","LOINC","MCntRat; RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a 8 hours, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per day","g/kg/d","(G/KG)/D","mass",1.1574074074074074e-8,[0,-1,0,0,0,0,0],"(g/kg)/d",null,false,"M",null,1,false,false,0,"g/(kg.d); gm/kg/dy; gm per kg per dy; grams per kilograms per day","LOINC","RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a day, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per hour","g/kg/h","(G/KG)/HR","mass",2.7777777777777776e-7,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(kg.h); g/kg/hr; g per kg per hrs; grams per kilograms per hour","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per minute","g/kg/min","(G/KG)/MIN","mass",0.000016666666666666667,[0,-1,0,0,0,0,0],"(g/kg)/min",null,false,"M",null,1,false,false,0,"g/(kg.min); g/kg/min; g per kg per min; grams per kilograms per minute","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per liter","g/L","G/L","mass",1000,[-3,0,1,0,0,0,0],"g/L",null,false,"M",null,1,false,false,0,"gm per liter; g/liter; grams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per square meter","g/m2","G/M2","mass",1,[-2,0,1,0,0,0,0],"g/(m2)",null,false,"M",null,1,false,false,0,"g/m^2; gram/square meter; g/sq m; g per m2; g per m^2; grams per square meter; meters squared; metre","LOINC","ArMass","Clinical","Tests measure myocardial mass (heart ventricle system) per body surface area; unit used to measure mass dose per body surface area",null,null,null,null,false],[true,"gram per milligram","g/mg","G/MG","mass",1000,[0,0,0,0,0,0,0],"g/mg",null,false,"M",null,1,false,false,0,"g per mg; grams per milligram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"gram per minute","g/min","G/MIN","mass",0.016666666666666666,[0,-1,1,0,0,0,0],"g/min",null,false,"M",null,1,false,false,0,"g per min; grams per minute; gram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per milliliter","g/mL","G/ML","mass",1000000,[-3,0,1,0,0,0,0],"g/mL",null,false,"M",null,1,false,false,0,"g per mL; grams per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per millimole","g/mmol","G/MMOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"g/mmol",null,false,"M",null,1,false,false,-1,"grams per millimole; g per mmol","LOINC","Ratio","Clinical","",null,null,null,null,false],[false,"joule per liter","J/L","J/L","energy",1000000,[-1,-2,1,0,0,0,0],"J/L","si",true,null,null,1,false,false,0,"joules per liter; litre; J per L","LOINC","EngCnc","Clinical","","N.m","N.M","1",1,false],[true,"degree Kelvin per Watt","K/W","K/W","temperature",0.001,[-2,3,-1,0,1,0,0],"K/W",null,false,"C",null,1,false,false,0,"degree Kelvin/Watt; K per W; thermal ohm; thermal resistance; degrees","LOINC","TempEngRat","Clinical","unit for absolute thermal resistance equal to the reciprocal of thermal conductance. Unit used for tests to measure work of breathing",null,null,null,null,false],[false,"kilo international unit per liter","k[IU]/L","K[IU]/L","arbitrary",1000000,[-3,0,0,0,0,0,0],"(ki.U.)/L","chemical",true,null,null,1,false,true,0,"kIU/L; kIU per L; kIU per liter; kilo international units; litre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/L","[iU]","[IU]","1",1,false],[false,"kilo international unit per milliliter","k[IU]/mL","K[IU]/ML","arbitrary",1000000000,[-3,0,0,0,0,0,0],"(ki.U.)/mL","chemical",true,null,null,1,false,true,0,"kIU/mL; kIU per mL; kIU per milliliter; kilo international units; millilitre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/mL","[iU]","[IU]","1",1,false],[false,"katal per kilogram","kat/kg","KAT/KG","catalytic activity",602213670000000000000,[0,-1,-1,0,0,0,0],"kat/kg","chemical",true,null,null,1,false,false,1,"kat per kg; katals per kilogram; mol/s/kg; moles per seconds per kilogram","LOINC","CCnt","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"katal per liter","kat/L","KAT/L","catalytic activity",6.0221366999999994e+26,[-3,-1,0,0,0,0,0],"kat/L","chemical",true,null,null,1,false,false,1,"kat per L; katals per liter; litre; mol/s/L; moles per seconds per liter","LOINC","CCnc","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"kilocalorie","kcal","KCAL","energy",4184000,[2,-2,1,0,0,0,0],"kcal","heat",true,null,null,1,false,false,0,"kilogram calories; large calories; food calories; kcals","LOINC","EngRat","Clinical","It is equal to 1000 calories (equal to 4.184 kJ). But in practical usage, kcal refers to food calories which excludes caloric content in fiber and other constitutes that is not digestible by humans. Also see nutrition label Calories ([Cal])","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per 24 hour","kcal/(24.h)","KCAL/HR","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/24hrs; kcal/24 hrs; kcal per 24hrs; kilocalories per 24 hours; kilojoules; kJ/24hr; kJ/(24.h); kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","","EngRat","Clinical","","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per ounce","kcal/[oz_av]","KCAL/[OZ_AV]","energy",147586.25679704445,[2,-2,0,0,0,0,0],"kcal/oz","heat",true,null,null,1,false,false,0,"kcal/oz; kcal per ozs; large calories per ounces; food calories; servings; international","LOINC","EngCnt","Clinical","used in nutrition to represent calorie of food","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per day","kcal/d","KCAL/D","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/d","heat",true,null,null,1,false,false,0,"kcal/dy; kcal per day; kilocalories per days; kilojoules; kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","LOINC","EngRat","Clinical","unit in nutrition for food intake (measured in calories) in a day","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per hour","kcal/h","KCAL/HR","energy",1162.2222222222222,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/hrs; kcals per hr; intake; kilocalories per hours; kilojoules","LOINC","EngRat","Clinical","used in nutrition to represent caloric requirement or consumption","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per kilogram per 24 hour","kcal/kg/(24.h)","(KCAL/KG)/HR","energy",0.04842592592592593,[2,-3,0,0,0,0,0],"(kcal/kg)/h","heat",true,null,null,1,false,false,0,"kcal/kg/24hrs; 24 hrs; kcal per kg per 24hrs; kilocalories per kilograms per 24 hours; kilojoules","LOINC","EngCntRat","Clinical","used in nutrition to represent caloric requirement per day based on subject\'s body weight in kilograms","cal_th","CAL_TH","1",1,false],[true,"kilogram","kg","KG","mass",1000,[0,0,1,0,0,0,0],"kg",null,false,"M",null,1,false,false,0,"kilograms; kgs","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"kilogram meter per second","kg.m/s","(KG.M)/S","mass",1000,[1,-1,1,0,0,0,0],"(kg.m)/s",null,false,"M",null,1,false,false,0,"kg*m/s; kg.m per sec; kg*m per sec; p; momentum","LOINC","","Clinical","unit for momentum = mass times velocity",null,null,null,null,false],[true,"kilogram per second per square meter","kg/(s.m2)","KG/(S.M2)","mass",1000,[-2,-1,1,0,0,0,0],"kg/(s.(m2))",null,false,"M",null,1,false,false,0,"kg/(s*m2); kg/(s*m^2); kg per s per m2; per sec; per m^2; kilograms per seconds per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"kilogram per hour","kg/h","KG/HR","mass",0.2777777777777778,[0,-1,1,0,0,0,0],"kg/h",null,false,"M",null,1,false,false,0,"kg/hr; kg per hr; kilograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per liter","kg/L","KG/L","mass",1000000,[-3,0,1,0,0,0,0],"kg/L",null,false,"M",null,1,false,false,0,"kg per liter; litre; kilograms","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per square meter","kg/m2","KG/M2","mass",1000,[-2,0,1,0,0,0,0],"kg/(m2)",null,false,"M",null,1,false,false,0,"kg/m^2; kg/sq. m; kg per m2; per m^2; per sq. m; kilograms; meter squared; metre; BMI","LOINC","Ratio","Clinical","units for body mass index (BMI)",null,null,null,null,false],[true,"kilogram per cubic meter","kg/m3","KG/M3","mass",1000,[-3,0,1,0,0,0,0],"kg/(m3)",null,false,"M",null,1,false,false,0,"kg/m^3; kg/cu. m; kg per m3; per m^3; per cu. m; kilograms; meters cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per minute","kg/min","KG/MIN","mass",16.666666666666668,[0,-1,1,0,0,0,0],"kg/min",null,false,"M",null,1,false,false,0,"kilogram/minute; kg per min; kilograms per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per mole","kg/mol","KG/MOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"kg/mol",null,false,"M",null,1,false,false,-1,"kilogram/mole; kg per mol; kilograms per mole","LOINC","SCnt","Clinical","",null,null,null,null,false],[true,"kilogram per second","kg/s","KG/S","mass",1000,[0,-1,1,0,0,0,0],"kg/s",null,false,"M",null,1,false,false,0,"kg/sec; kilogram/second; kg per sec; kilograms; second","LOINC","MRat","Clinical","",null,null,null,null,false],[false,"kiloliter","kL","KL","volume",1,[3,0,0,0,0,0,0],"kL","iso1000",true,null,null,1,false,false,0,"kiloliters; kilolitres; m3; m^3; meters cubed; metre","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"kilometer","km","KM","length",1000,[1,0,0,0,0,0,0],"km",null,false,"L",null,1,false,false,0,"kilometers; kilometres; distance","LOINC","Len","Clinical","",null,null,null,null,false],[false,"kilopascal","kPa","KPAL","pressure",1000000,[-1,-2,1,0,0,0,0],"kPa","si",true,null,null,1,false,false,0,"kilopascals; pressure","LOINC","Pres; PPresDiff","Clinical","","N/m2","N/M2","1",1,false],[true,"kilosecond","ks","KS","time",1000,[0,1,0,0,0,0,0],"ks",null,false,"T",null,1,false,false,0,"kiloseconds; ksec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"kilo enzyme unit","kU","KU","catalytic activity",10036894500000000000,[0,-1,0,0,0,0,0],"kU","chemical",true,null,null,1,false,false,1,"units; mmol/min; millimoles per minute","LOINC","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per gram","kU/g","KU/G","catalytic activity",10036894500000000000,[0,-1,-1,0,0,0,0],"kU/g","chemical",true,null,null,1,false,false,1,"units per grams; kU per gm","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per liter","kU/L","KU/L","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"kU/L","chemical",true,null,null,1,false,false,1,"units per liter; litre; enzymatic activity; enzyme activity per volume; activities","LOINC","ACnc; CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per milliliter","kU/mL","KU/ML","catalytic activity",1.00368945e+25,[-3,-1,0,0,0,0,0],"kU/mL","chemical",true,null,null,1,false,false,1,"kU per mL; units per milliliter; millilitre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Liters per 24 hour","L/(24.h)","L/HR","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/24hrs; L/24 hrs; L per 24hrs; liters per 24 hours; day; dy; litres; volume flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per 8 hour","L/(8.h)","L/HR","volume",3.472222222222222e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/8hrs; L/8 hrs; L per 8hrs; liters per 8 hours; litres; volume flow rate; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/(min.m2) ","L/(MIN.M2)","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"L/(min.(m2))","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per day","L/d","L/D","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/d","iso1000",true,null,null,1,false,false,0,"L/dy; L per day; 24hrs; 24 hrs; 24 hours; liters; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per hour","L/h","L/HR","volume",2.7777777777777776e-7,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/hr; L per hr; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per kilogram","L/kg","L/KG","volume",0.000001,[3,0,-1,0,0,0,0],"L/kg","iso1000",true,null,null,1,false,false,0,"L per kg; litre","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"Liters per liter","L/L","L/L","volume",1,[0,0,0,0,0,0,0],"L/L","iso1000",true,null,null,1,false,false,0,"L per L; liter/liter; litre","LOINC","VFr","Clinical","","l",null,"1",1,false],[false,"Liters per minute","L/min","L/MIN","volume",0.000016666666666666667,[3,-1,0,0,0,0,0],"L/min","iso1000",true,null,null,1,false,false,0,"liters per minute; litre","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/min/m2","(L/MIN)/M2","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"(L/min)/(m2)","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per second","L/s","L/S","volume",0.001,[3,-1,0,0,0,0,0],"L/s","iso1000",true,null,null,1,false,false,0,"L per sec; litres","LOINC","VRat","Clinical","unit used often to measure gas flow and peak expiratory flow","l",null,"1",1,false],[false,"Liters per second per square second","L/s/s2","(L/S)/S2","volume",0.001,[3,-3,0,0,0,0,0],"(L/s)/(s2)","iso1000",true,null,null,1,false,false,0,"L/s/s^2; L/sec/sec2; L/sec/sec^2; L/sec/sq. sec; L per s per s2; L per sec per sec2; s^2; sec^2; liters per seconds per square second; second squared; litres ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output/body surface area","l",null,"1",1,false],[false,"lumen square meter","lm.m2","LM.M2","luminous flux",1,[2,0,0,2,0,0,1],"lm.(m2)","si",true,null,null,1,false,false,0,"lm*m2; lm*m^2; lumen meters squared; lumen sq. meters; metres","LOINC","","Clinical","","cd.sr","CD.SR","1",1,false],[true,"meter per second","m/s","M/S","length",1,[1,-1,0,0,0,0,0],"m/s",null,false,"L",null,1,false,false,0,"meter/second; m per sec; meters per second; metres; velocity; speed","LOINC","Vel","Clinical","unit of velocity",null,null,null,null,false],[true,"meter per square second","m/s2","M/S2","length",1,[1,-2,0,0,0,0,0],"m/(s2)",null,false,"L",null,1,false,false,0,"m/s^2; m/sq. sec; m per s2; per s^2; meters per square second; second squared; sq second; metres; acceleration","LOINC","Accel","Clinical","unit of acceleration",null,null,null,null,false],[false,"milli international unit per liter","m[IU]/L","M[IU]/L","arbitrary",1,[-3,0,0,0,0,0,0],"(mi.U.)/L","chemical",true,null,null,1,false,true,0,"mIU/L; m IU/L; mIU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"milli international unit per milliliter","m[IU]/mL","M[IU]/ML","arbitrary",1000.0000000000001,[-3,0,0,0,0,0,0],"(mi.U.)/mL","chemical",true,null,null,1,false,true,0,"mIU/mL; m IU/mL; mIU per mL; milli international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[true,"square meter","m2","M2","length",1,[2,0,0,0,0,0,0],"m2",null,false,"L",null,1,false,false,0,"m^2; sq m; square meters; meters squared; metres","LOINC","Area","Clinical","unit often used to represent body surface area",null,null,null,null,false],[true,"square meter per second","m2/s","M2/S","length",1,[2,-1,0,0,0,0,0],"(m2)/s",null,false,"L",null,1,false,false,0,"m^2/sec; m2 per sec; m^2 per sec; sq m/sec; meters squared/seconds; sq m per sec; meters squared; metres","LOINC","ArRat","Clinical","",null,null,null,null,false],[true,"cubic meter per second","m3/s","M3/S","length",1,[3,-1,0,0,0,0,0],"(m3)/s",null,false,"L",null,1,false,false,0,"m^3/sec; m3 per sec; m^3 per sec; cu m/sec; cubic meters per seconds; meters cubed; metres","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"milliampere","mA","MA","electric current",0.001,[0,-1,0,0,0,1,0],"mA","si",true,null,null,1,false,false,0,"mamp; milliamperes","LOINC","ElpotRat","Clinical","unit of electric current","C/s","C/S","1",1,false],[false,"millibar","mbar","MBAR","pressure",100000,[-1,-2,1,0,0,0,0],"mbar","iso1000",true,null,null,1,false,false,0,"millibars","LOINC","Pres","Clinical","unit of pressure","Pa","PAL","1e5",100000,false],[false,"millibar second per liter","mbar.s/L","(MBAR.S)/L","pressure",100000000,[-4,-1,1,0,0,0,0],"(mbar.s)/L","iso1000",true,null,null,1,false,false,0,"mbar*s/L; mbar.s per L; mbar*s per L; millibar seconds per liter; millibar second per litre","LOINC","","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"millibar per liter per second","mbar/L/s","(MBAR/L)/S","pressure",100000000,[-4,-3,1,0,0,0,0],"(mbar/L)/s","iso1000",true,null,null,1,false,false,0,"mbar/(L.s); mbar/L/sec; mbar/liter/second; mbar per L per sec; mbar per liter per second; millibars per liters per seconds; litres","LOINC","PresCncRat","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"milliequivalent","meq","MEQ","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"meq","chemical",true,null,null,1,false,false,1,"milliequivalents; meqs","LOINC","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 2 hour","meq/(2.h)","MEQ/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/2hrs; meq/2 hrs; meq per 2 hrs; milliequivalents per 2 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 24 hour","meq/(24.h)","MEQ/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 8 hour","meq/(8.h)","MEQ/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/8hrs; meq/8 hrs; meq per 8 hrs; milliequivalents per 8 hours; shift","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per day","meq/d","MEQ/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/d","chemical",true,null,null,1,false,false,1,"meq/dy; meq per day; milliquivalents per days; meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per deciliter","meq/dL","MEQ/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"meq/dL","chemical",true,null,null,1,false,false,1,"meq per dL; milliequivalents per deciliter; decilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per gram","meq/g","MEQ/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"meq/g","chemical",true,null,null,1,false,false,1,"mgq/gm; meq per gm; milliequivalents per gram","LOINC","MCnt","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per hour","meq/h","MEQ/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/hrs; meq per hrs; milliequivalents per hour","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per kilogram","meq/kg","MEQ/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"meq/kg","chemical",true,null,null,1,false,false,1,"meq per kg; milliequivalents per kilogram","LOINC","SCnt","Clinical","equivalence equals moles per valence; used to measure dose per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per kilogram per hour","meq/kg/h","(MEQ/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(meq/kg)/h","chemical",true,null,null,1,false,false,1,"meq/(kg.h); meq/kg/hr; meq per kg per hr; milliequivalents per kilograms per hour","LOINC","SCntRat","Clinical","equivalence equals moles per valence; unit used to measure dose rate per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per liter","meq/L","MEQ/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"meq/L","chemical",true,null,null,1,false,false,1,"milliequivalents per liter; litre; meq per l; acidity","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per square meter","meq/m2","MEQ/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"meq/(m2)","chemical",true,null,null,1,false,false,1,"meq/m^2; meq/sq. m; milliequivalents per square meter; meter squared; metre","LOINC","ArSub","Clinical","equivalence equals moles per valence; note that the use of m2 in clinical units ofter refers to body surface area","mol","MOL","1",1,false],[false,"milliequivalent per minute","meq/min","MEQ/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"meq/min","chemical",true,null,null,1,false,false,1,"meq per min; milliequivalents per minute","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per milliliter","meq/mL","MEQ/ML","amount of substance",6.0221367e+26,[-3,0,0,0,0,0,0],"meq/mL","chemical",true,null,null,1,false,false,1,"meq per mL; milliequivalents per milliliter; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"milligram","mg","MG","mass",0.001,[0,0,1,0,0,0,0],"mg",null,false,"M",null,1,false,false,0,"milligrams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"milligram per 10 hour","mg/(10.h)","MG/HR","mass",2.7777777777777777e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/10hrs; mg/10 hrs; mg per 10 hrs; milligrams per 10 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 12 hour","mg/(12.h)","MG/HR","mass",2.3148148148148148e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/12hrs; mg/12 hrs; per 12 hrs; 12hrs; milligrams per 12 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 2 hour","mg/(2.h)","MG/HR","mass",1.3888888888888888e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/2hrs; mg/2 hrs; mg per 2 hrs; 2hrs; milligrams per 2 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 24 hour","mg/(24.h)","MG/HR","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/kg/dy; mg per kg per day; milligrams per kilograms per days","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 6 hour","mg/(6.h)","MG/HR","mass",4.6296296296296295e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/6hrs; mg/6 hrs; mg per 6 hrs; 6hrs; milligrams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 72 hour","mg/(72.h)","MG/HR","mass",3.858024691358025e-9,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/72hrs; mg/72 hrs; 72 hrs; 72hrs; milligrams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 8 hour","mg/(8.h)","MG/HR","mass",3.472222222222222e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/8hrs; mg/8 hrs; milligrams per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per day","mg/d","MG/D","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/d",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/dy; mg per day; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per deciliter","mg/dL","MG/DL","mass",10,[-3,0,1,0,0,0,0],"mg/dL",null,false,"M",null,1,false,false,0,"mg per dL; milligrams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per gram","mg/g","MG/G","mass",0.001,[0,0,0,0,0,0,0],"mg/g",null,false,"M",null,1,false,false,0,"mg per gm; milligrams per gram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"milligram per hour","mg/h","MG/HR","mass",2.7777777777777776e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/hr; mg per hr; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per kilogram","mg/kg","MG/KG","mass",0.000001,[0,0,0,0,0,0,0],"mg/kg",null,false,"M",null,1,false,false,0,"mg per kg; milligrams per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"milligram per kilogram per 8 hour","mg/kg/(8.h)","(MG/KG)/HR","mass",3.472222222222222e-11,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(8.h.kg); mg/kg/8hrs; mg/kg/8 hrs; mg per kg per 8hrs; 8 hrs; milligrams per kilograms per 8 hours; shift","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per day","mg/kg/d","(MG/KG)/D","mass",1.1574074074074074e-11,[0,-1,0,0,0,0,0],"(mg/kg)/d",null,false,"M",null,1,false,false,0,"mg/(kg.d); mg/(kg.24.h)mg/kg/dy; mg per kg per day; milligrams per kilograms per days; mg/kg/(24.h); mg/kg/24hrs; 24 hrs; 24 hours","LOINC","RelMRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per hour","mg/kg/h","(MG/KG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(kg.h); mg/kg/hr; mg per kg per hr; milligrams per kilograms per hour","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per minute","mg/kg/min","(MG/KG)/MIN","mass",1.6666666666666667e-8,[0,-1,0,0,0,0,0],"(mg/kg)/min",null,false,"M",null,1,false,false,0,"mg/(kg.min); mg per kg per min; milligrams per kilograms per minute","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per liter","mg/L","MG/L","mass",1,[-3,0,1,0,0,0,0],"mg/L",null,false,"M",null,1,false,false,0,"mg per l; milligrams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per square meter","mg/m2","MG/M2","mass",0.001,[-2,0,1,0,0,0,0],"mg/(m2)",null,false,"M",null,1,false,false,0,"mg/m^2; mg/sq. m; mg per m2; mg per m^2; mg per sq. milligrams; meter squared; metre","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"milligram per cubic meter","mg/m3","MG/M3","mass",0.001,[-3,0,1,0,0,0,0],"mg/(m3)",null,false,"M",null,1,false,false,0,"mg/m^3; mg/cu. m; mg per m3; milligrams per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per milligram","mg/mg","MG/MG","mass",1,[0,0,0,0,0,0,0],"mg/mg",null,false,"M",null,1,false,false,0,"mg per mg; milligrams; milligram/milligram","LOINC","MRto","Clinical","",null,null,null,null,false],[true,"milligram per minute","mg/min","MG/MIN","mass",0.000016666666666666667,[0,-1,1,0,0,0,0],"mg/min",null,false,"M",null,1,false,false,0,"mg per min; milligrams per minutes; milligram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per milliliter","mg/mL","MG/ML","mass",1000.0000000000001,[-3,0,1,0,0,0,0],"mg/mL",null,false,"M",null,1,false,false,0,"mg per mL; milligrams per milliliters; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per millimole","mg/mmol","MG/MMOL","mass",1.660540186674939e-24,[0,0,1,0,0,0,0],"mg/mmol",null,false,"M",null,1,false,false,-1,"mg per mmol; milligrams per millimole; ","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"milligram per week","mg/wk","MG/WK","mass",1.6534391534391535e-9,[0,-1,1,0,0,0,0],"mg/wk",null,false,"M",null,1,false,false,0,"mg/week; mg per wk; milligrams per weeks; milligram/week","LOINC","Mrat","Clinical","",null,null,null,null,false],[false,"milliliter","mL","ML","volume",0.000001,[3,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"milliliters; millilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"milliliter per 10 hour","mL/(10.h)","ML/HR","volume",2.7777777777777777e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/10hrs; ml/10 hrs; mL per 10hrs; 10 hrs; milliliters per 10 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 12 hour","mL/(12.h)","ML/HR","volume",2.3148148148148147e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/12hrs; ml/12 hrs; mL per 12hrs; 12 hrs; milliliters per 12 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 2 hour","mL/(2.h)","ML/HR","volume",1.3888888888888888e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/2hrs; ml/2 hrs; mL per 2hrs; 2 hrs; milliliters per 2 hours; millilitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 24 hour","mL/(24.h)","ML/HR","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/24hrs; ml/24 hrs; mL per 24hrs; 24 hrs; milliliters per 24 hours; millilitres; ml/dy; /day; ml per dy; days; fluid outputs; fluid inputs; flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 4 hour","mL/(4.h)","ML/HR","volume",6.944444444444444e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/4hrs; ml/4 hrs; mL per 4hrs; 4 hrs; milliliters per 4 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 5 hour","mL/(5.h)","ML/HR","volume",5.5555555555555553e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/5hrs; ml/5 hrs; mL per 5hrs; 5 hrs; milliliters per 5 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 6 hour","mL/(6.h)","ML/HR","volume",4.6296296296296294e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/6hrs; ml/6 hrs; mL per 6hrs; 6 hrs; milliliters per 6 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 72 hour","mL/(72.h)","ML/HR","volume",3.8580246913580245e-12,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/72hrs; ml/72 hrs; mL per 72hrs; 72 hrs; milliliters per 72 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour","mL/(8.h)","ML/HR","volume",3.472222222222222e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/8hrs; ml/8 hrs; mL per 8hrs; 8 hrs; milliliters per 8 hours; millilitres; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour per kilogram","mL/(8.h)/kg","(ML/HR)/KG","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/h)/kg","iso1000",true,null,null,1,false,false,0,"mL/kg/(8.h); ml/8h/kg; ml/8 h/kg; ml/8hr/kg; ml/8 hr/kgr; mL per 8h per kg; 8 h; 8hr; 8 hr; milliliters per 8 hours per kilogram; millilitres; shift","LOINC","VRatCnt","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per square inch (international)","mL/[sin_i]","ML/[SIN_I]","volume",0.0015500031000061998,[1,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"mL/sin; mL/in2; mL/in^2; mL per sin; in2; in^2; sq. in; milliliters per square inch; inch squared","LOINC","ArVol","Clinical","","l",null,"1",1,false],[false,"milliliter per centimeter of water","mL/cm[H2O]","ML/CM[H2O]","volume",1.0197162129779282e-11,[4,2,-1,0,0,0,0],"mL/(cm\xa0HO2)","iso1000",true,null,null,1,false,false,0,"milliliters per centimeter of water; millilitre per centimetre of water; millilitres per centimetre of water; mL/cmH2O; mL/cm H2O; mL per cmH2O; mL per cm H2O","LOINC","Compli","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per day","mL/d","ML/D","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/d","iso1000",true,null,null,1,false,false,0,"ml/day; ml per day; milliliters per day; 24 hours; 24hrs; millilitre;","LOINC","VRat","Clinical","usually used to measure fluid output or input; flow rate","l",null,"1",1,false],[false,"milliliter per deciliter","mL/dL","ML/DL","volume",0.009999999999999998,[0,0,0,0,0,0,0],"mL/dL","iso1000",true,null,null,1,false,false,0,"mL per dL; millilitres; decilitre; milliliters","LOINC","VFr; VFrDiff","Clinical","","l",null,"1",1,false],[false,"milliliter per hour","mL/h","ML/HR","volume",2.7777777777777777e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"mL/hr; mL per hr; milliliters per hour; millilitres; fluid intake; fluid output","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram","mL/kg","ML/KG","volume",9.999999999999999e-10,[3,0,-1,0,0,0,0],"mL/kg","iso1000",true,null,null,1,false,false,0,"mL per kg; milliliters per kilogram; millilitres","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram per 8 hour","mL/kg/(8.h)","(ML/KG)/HR","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(8.h.kg); mL/kg/8hrs; mL/kg/8 hrs; mL per kg per 8hrs; 8 hrs; milliliters per kilograms per 8 hours; millilitres; shift","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per day","mL/kg/d","(ML/KG)/D","volume",1.1574074074074072e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/d","iso1000",true,null,null,1,false,false,0,"mL/(kg.d); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; mg/kg/24hrs; 24 hrs; per 24 hours millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per hour","mL/kg/h","(ML/KG)/HR","volume",2.7777777777777774e-13,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(kg.h); mL/kg/hr; mL per kg per hr; milliliters per kilograms per hour; millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per minute","mL/kg/min","(ML/KG)/MIN","volume",1.6666666666666664e-11,[3,-1,-1,0,0,0,0],"(mL/kg)/min","iso1000",true,null,null,1,false,false,0,"mL/(kg.min); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; millilitres","LOINC","RelEngRat","Clinical","used for tests that measure activity metabolic rate compared to standard resting metabolic rate ","l",null,"1",1,false],[false,"milliliter per square meter","mL/m2","ML/M2","volume",0.000001,[1,0,0,0,0,0,0],"mL/(m2)","iso1000",true,null,null,1,false,false,0,"mL/m^2; mL/sq. meter; mL per m2; m^2; sq. meter; milliliters per square meter; millilitres; meter squared","LOINC","ArVol","Clinical","used for tests that relate to heart work - e.g. ventricular stroke volume; atrial volume per body surface area","l",null,"1",1,false],[false,"milliliter per millibar","mL/mbar","ML/MBAR","volume",1e-11,[4,2,-1,0,0,0,0],"mL/mbar","iso1000",true,null,null,1,false,false,0,"mL per mbar; milliliters per millibar; millilitres","LOINC","","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per minute","mL/min","ML/MIN","volume",1.6666666666666667e-8,[3,-1,0,0,0,0,0],"mL/min","iso1000",true,null,null,1,false,false,0,"mL per min; milliliters; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per minute per square meter","mL/min/m2","(ML/MIN)/M2","volume",1.6666666666666667e-8,[1,-1,0,0,0,0,0],"(mL/min)/(m2)","iso1000",true,null,null,1,false,false,0,"ml/min/m^2; ml/min/sq. meter; mL per min per m2; m^2; sq. meter; milliliters per minutes per square meter; millilitres; metre; meter squared","LOINC","ArVRat","Clinical","unit used to measure volume per body surface area; oxygen consumption index","l",null,"1",1,false],[false,"milliliter per millimeter","mL/mm","ML/MM","volume",0.001,[2,0,0,0,0,0,0],"mL/mm","iso1000",true,null,null,1,false,false,0,"mL per mm; milliliters per millimeter; millilitres; millimetre","LOINC","Lineic Volume","Clinical","","l",null,"1",1,false],[false,"milliliter per second","mL/s","ML/S","volume",0.000001,[3,-1,0,0,0,0,0],"mL/s","iso1000",true,null,null,1,false,false,0,"ml/sec; mL per sec; milliliters per second; millilitres","LOINC","Vel; VelRat; VRat","Clinical","","l",null,"1",1,false],[true,"millimeter","mm","MM","length",0.001,[1,0,0,0,0,0,0],"mm",null,false,"L",null,1,false,false,0,"millimeters; millimetres; height; length; diameter; thickness; axis; curvature; size","LOINC","Len","Clinical","",null,null,null,null,false],[true,"millimeter per hour","mm/h","MM/HR","length",2.7777777777777776e-7,[1,-1,0,0,0,0,0],"mm/h",null,false,"L",null,1,false,false,0,"mm/hr; mm per hr; millimeters per hour; millimetres","LOINC","Vel","Clinical","unit to measure sedimentation rate",null,null,null,null,false],[true,"millimeter per minute","mm/min","MM/MIN","length",0.000016666666666666667,[1,-1,0,0,0,0,0],"mm/min",null,false,"L",null,1,false,false,0,"mm per min; millimeters per minute; millimetres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"millimeter of water","mm[H2O]","MM[H2O]","pressure",9806.65,[-1,-2,1,0,0,0,0],"mm\xa0HO2","clinical",true,null,null,1,false,false,0,"mmH2O; mm H2O; millimeters of water; millimetres","LOINC","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"millimeter of mercury","mm[Hg]","MM[HG]","pressure",133322,[-1,-2,1,0,0,0,0],"mm\xa0Hg","clinical",true,null,null,1,false,false,0,"mmHg; mm Hg; millimeters of mercury; millimetres","LOINC","Pres; PPres; Ratio","Clinical","1 mm[Hg] = 1 torr; unit to measure blood pressure","kPa","KPAL","133.3220",133.322,false],[true,"square millimeter","mm2","MM2","length",0.000001,[2,0,0,0,0,0,0],"mm2",null,false,"L",null,1,false,false,0,"mm^2; sq. mm.; sq. millimeters; millimeters squared; millimetres","LOINC","Area","Clinical","",null,null,null,null,false],[false,"millimole","mmol","MMOL","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"mmol","si",true,null,null,1,false,false,1,"millimoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 12 hour","mmol/(12.h)","MMOL/HR","amount of substance",13940131250000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/12hrs; mmol/12 hrs; mmol per 12 hrs; 12hrs; millimoles per 12 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 2 hour","mmol/(2.h)","MMOL/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/2hrs; mmol/2 hrs; mmol per 2 hrs; 2hrs; millimoles per 2 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 24 hour","mmol/(24.h)","MMOL/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 5 hour","mmol/(5.h)","MMOL/HR","amount of substance",33456315000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/5hrs; mmol/5 hrs; mmol per 5 hrs; 5hrs; millimoles per 5 hours","LOINC","SRat","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 6 hour","mmol/(6.h)","MMOL/HR","amount of substance",27880262500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/6hrs; mmol/6 hrs; mmol per 6 hrs; 6hrs; millimoles per 6 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 8 hour","mmol/(8.h)","MMOL/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/8hrs; mmol/8 hrs; mmol per 8 hrs; 8hrs; millimoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per day","mmol/d","MMOL/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/d","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per deciliter","mmol/dL","MMOL/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"mmol/dL","si",true,null,null,1,false,false,1,"mmol per dL; millimoles; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per gram","mmol/g","MMOL/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mmol/g","si",true,null,null,1,false,false,1,"mmol per gram; millimoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per hour","mmol/h","MMOL/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/hr; mmol per hr; millimoles per hour","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram","mmol/kg","MMOL/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"mmol/kg","si",true,null,null,1,false,false,1,"mmol per kg; millimoles per kilogram","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per 8 hour","mmol/kg/(8.h)","(MMOL/KG)/HR","amount of substance",20910196875000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/(8.h.kg); mmol/kg/8hrs; mmol/kg/8 hrs; mmol per kg per 8hrs; 8 hrs; millimoles per kilograms per 8 hours; shift","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per day","mmol/kg/d","(MMOL/KG)/D","amount of substance",6970065625000,[0,-1,-1,0,0,0,0],"(mmol/kg)/d","si",true,null,null,1,false,false,1,"mmol/kg/dy; mmol/kg/day; mmol per kg per dy; millimoles per kilograms per day","LOINC","RelSRat","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per hour","mmol/kg/h","(MMOL/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/kg/hr; mmol per kg per hr; millimoles per kilograms per hour","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per minute","mmol/kg/min","(MMOL/KG)/MIN","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/min","si",true,null,null,1,false,false,1,"mmol/(kg.min); mmol/kg/min; mmol per kg per min; millimoles per kilograms per minute","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass; note that the unit for the enzyme unit U = umol/min. mmol/kg/min = kU/kg; ","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per liter","mmol/L","MMOL/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mmol/L","si",true,null,null,1,false,false,1,"mmol per L; millimoles per liter; litre","LOINC","SCnc","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per square meter","mmol/m2","MMOL/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"mmol/(m2)","si",true,null,null,1,false,false,1,"mmol/m^2; mmol/sq. meter; mmol per m2; m^2; sq. meter; millimoles; meter squared; metre","LOINC","ArSub","Clinical","unit used to measure molar dose per patient body surface area","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per minute","mmol/min","MMOL/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"mmol/min","si",true,null,null,1,false,false,1,"mmol per min; millimoles per minute","LOINC","Srat; CAct","Clinical","unit for the enzyme unit U = umol/min. mmol/min = kU","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per millimole","mmol/mmol","MMOL/MMOL","amount of substance",1,[0,0,0,0,0,0,0],"mmol/mmol","si",true,null,null,1,false,false,0,"mmol per mmol; millimoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per mole","mmol/mol","MMOL/MOL","amount of substance",0.001,[0,0,0,0,0,0,0],"mmol/mol","si",true,null,null,1,false,false,0,"mmol per mol; millimoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per second per liter","mmol/s/L","(MMOL/S)/L","amount of substance",6.0221367e+23,[-3,-1,0,0,0,0,0],"(mmol/s)/L","si",true,null,null,1,false,false,1,"mmol/sec/L; mmol per s per L; per sec; millimoles per seconds per liter; litre","LOINC","CCnc ","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram","mol/kg","MOL/KG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mol/kg","si",true,null,null,1,false,false,1,"mol per kg; moles; mols","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram per second","mol/kg/s","(MOL/KG)/S","amount of substance",602213670000000000000,[0,-1,-1,0,0,0,0],"(mol/kg)/s","si",true,null,null,1,false,false,1,"mol/kg/sec; mol per kg per sec; moles per kilograms per second; mols","LOINC","CCnt","Clinical","unit of catalytic activity (mol/s) per mass (kg)","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per liter","mol/L","MOL/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"mol/L","si",true,null,null,1,false,false,1,"mol per L; moles per liter; litre; moles; mols","LOINC","SCnc","Clinical","unit often used in tests measuring oxygen content","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per cubic meter","mol/m3","MOL/M3","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mol/(m3)","si",true,null,null,1,false,false,1,"mol/m^3; mol/cu. m; mol per m3; m^3; cu. meter; mols; moles; meters cubed; metre; mole per kiloliter; kilolitre; mol/kL","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per milliliter","mol/mL","MOL/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"mol/mL","si",true,null,null,1,false,false,1,"mol per mL; moles; millilitre; mols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per mole","mol/mol","MOL/MOL","amount of substance",1,[0,0,0,0,0,0,0],"mol/mol","si",true,null,null,1,false,false,0,"mol per mol; moles per mol; mols","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per second","mol/s","MOL/S","amount of substance",6.0221367e+23,[0,-1,0,0,0,0,0],"mol/s","si",true,null,null,1,false,false,1,"mol per sec; moles per second; mols","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"milliosmole","mosm","MOSM","amount of substance (dissolved particles)",602213670000000000000,[0,0,0,0,0,0,0],"mosm","chemical",true,null,null,1,false,false,1,"milliosmoles","LOINC","Osmol","Clinical","equal to 1/1000 of an osmole","mol","MOL","1",1,false],[false,"milliosmole per kilogram","mosm/kg","MOSM/KG","amount of substance (dissolved particles)",602213670000000000,[0,0,-1,0,0,0,0],"mosm/kg","chemical",true,null,null,1,false,false,1,"mosm per kg; milliosmoles per kilogram","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"milliosmole per liter","mosm/L","MOSM/L","amount of substance (dissolved particles)",6.0221367e+23,[-3,0,0,0,0,0,0],"mosm/L","chemical",true,null,null,1,false,false,1,"mosm per liter; litre; milliosmoles","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"millipascal","mPa","MPAL","pressure",1,[-1,-2,1,0,0,0,0],"mPa","si",true,null,null,1,false,false,0,"millipascals","LOINC","Pres","Clinical","unit of pressure","N/m2","N/M2","1",1,false],[false,"millipascal second","mPa.s","MPAL.S","pressure",1,[-1,-1,1,0,0,0,0],"mPa.s","si",true,null,null,1,false,false,0,"mPa*s; millipoise; mP; dynamic viscosity","LOINC","Visc","Clinical","base units for millipoise, a measurement of dynamic viscosity","N/m2","N/M2","1",1,false],[true,"megasecond","Ms","MAS","time",1000000,[0,1,0,0,0,0,0],"Ms",null,false,"T",null,1,false,false,0,"megaseconds","LOINC","Time","Clinical","",null,null,null,null,false],[true,"millisecond","ms","MS","time",0.001,[0,1,0,0,0,0,0],"ms",null,false,"T",null,1,false,false,0,"milliseconds; duration","LOINC","Time","Clinical","",null,null,null,null,false],[false,"milli enzyme unit per gram","mU/g","MU/G","catalytic activity",10036894500000,[0,-1,-1,0,0,0,0],"mU/g","chemical",true,null,null,1,false,false,1,"mU per gm; milli enzyme units per gram; enzyme activity; enzymatic activity per mass","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per liter","mU/L","MU/L","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"mU/L","chemical",true,null,null,1,false,false,1,"mU per liter; litre; milli enzyme units enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milligram","mU/mg","MU/MG","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"mU/mg","chemical",true,null,null,1,false,false,1,"mU per mg; milli enzyme units per milligram","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter","mU/mL","MU/ML","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"mU/mL","chemical",true,null,null,1,false,false,1,"mU per mL; milli enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter per minute","mU/mL/min","(MU/ML)/MIN","catalytic activity",167281575000000000,[-3,-2,0,0,0,0,0],"(mU/mL)/min","chemical",true,null,null,1,false,false,1,"mU per mL per min; mU per milliliters per minute; millilitres; milli enzyme units; enzymatic activity; enzyme activity","LOINC","CCncRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"millivolt","mV","MV","electric potential",1,[2,-2,1,0,0,-1,0],"mV","si",true,null,null,1,false,false,0,"millivolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false],[false,"Newton centimeter","N.cm","N.CM","force",10,[2,-2,1,0,0,0,0],"N.cm","si",true,null,null,1,false,false,0,"N*cm; Ncm; N cm; Newton*centimeters; Newton* centimetres; torque; work","LOINC","","Clinical","as a measurement of work, N.cm = 1/100 Joules;\\nnote that N.m is the standard unit of measurement for torque (although dimensionally equivalent to Joule), and N.cm can also be thought of as a torqe unit","kg.m/s2","KG.M/S2","1",1,false],[false,"Newton second","N.s","N.S","force",1000,[1,-1,1,0,0,0,0],"N.s","si",true,null,null,1,false,false,0,"Newton*seconds; N*s; N s; Ns; impulse; imp","LOINC","","Clinical","standard unit of impulse","kg.m/s2","KG.M/S2","1",1,false],[true,"nanogram","ng","NG","mass",1e-9,[0,0,1,0,0,0,0],"ng",null,false,"M",null,1,false,false,0,"nanograms","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"nanogram per 24 hour","ng/(24.h)","NG/HR","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/24hrs; ng/24 hrs; nanograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per 8 hour","ng/(8.h)","NG/HR","mass",3.4722222222222224e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/8hrs; ng/8 hrs; nanograms per 8 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per million","ng/10*6","NG/(10*6)","mass",1e-15,[0,0,1,0,0,0,0],"ng/(106)",null,false,"M",null,1,false,false,0,"ng/10^6; ng per 10*6; 10^6; nanograms","LOINC","MNum","Clinical","",null,null,null,null,false],[true,"nanogram per day","ng/d","NG/D","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/d",null,false,"M",null,1,false,false,0,"ng/dy; ng per day; nanograms ","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per deciliter","ng/dL","NG/DL","mass",0.00001,[-3,0,1,0,0,0,0],"ng/dL",null,false,"M",null,1,false,false,0,"ng per dL; nanograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per gram","ng/g","NG/G","mass",1e-9,[0,0,0,0,0,0,0],"ng/g",null,false,"M",null,1,false,false,0,"ng/gm; ng per gm; nanograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per hour","ng/h","NG/HR","mass",2.777777777777778e-13,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/hr; ng per hr; nanograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram","ng/kg","NG/KG","mass",1e-12,[0,0,0,0,0,0,0],"ng/kg",null,false,"M",null,1,false,false,0,"ng per kg; nanograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram per 8 hour","ng/kg/(8.h)","(NG/KG)/HR","mass",3.472222222222222e-17,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(8.h.kg); ng/kg/8hrs; ng/kg/8 hrs; ng per kg per 8hrs; 8 hrs; nanograms per kilograms per 8 hours; shift","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per hour","ng/kg/h","(NG/KG)/HR","mass",2.7777777777777775e-16,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(kg.h); ng/kg/hr; ng per kg per hr; nanograms per kilograms per hour","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per minute","ng/kg/min","(NG/KG)/MIN","mass",1.6666666666666667e-14,[0,-1,0,0,0,0,0],"(ng/kg)/min",null,false,"M",null,1,false,false,0,"ng/(kg.min); ng per kg per min; nanograms per kilograms per minute","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per liter","ng/L","NG/L","mass",0.000001,[-3,0,1,0,0,0,0],"ng/L",null,false,"M",null,1,false,false,0,"ng per L; nanograms per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per square meter","ng/m2","NG/M2","mass",1e-9,[-2,0,1,0,0,0,0],"ng/(m2)",null,false,"M",null,1,false,false,0,"ng/m^2; ng/sq. m; ng per m2; m^2; sq. meter; nanograms; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"nanogram per milligram","ng/mg","NG/MG","mass",0.000001,[0,0,0,0,0,0,0],"ng/mg",null,false,"M",null,1,false,false,0,"ng per mg; nanograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per milligram per hour","ng/mg/h","(NG/MG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(ng/mg)/h",null,false,"M",null,1,false,false,0,"ng/mg/hr; ng per mg per hr; nanograms per milligrams per hour","LOINC","MRtoRat ","Clinical","",null,null,null,null,false],[true,"nanogram per minute","ng/min","NG/MIN","mass",1.6666666666666667e-11,[0,-1,1,0,0,0,0],"ng/min",null,false,"M",null,1,false,false,0,"ng per min; nanograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per millliiter","ng/mL","NG/ML","mass",0.001,[-3,0,1,0,0,0,0],"ng/mL",null,false,"M",null,1,false,false,0,"ng per mL; nanograms; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per milliliter per hour","ng/mL/h","(NG/ML)/HR","mass",2.7777777777777776e-7,[-3,-1,1,0,0,0,0],"(ng/mL)/h",null,false,"M",null,1,false,false,0,"ng/mL/hr; ng per mL per mL; nanograms per milliliter per hour; nanogram per millilitre per hour; nanograms per millilitre per hour; enzymatic activity per volume; enzyme activity per milliliters","LOINC","CCnc","Clinical","tests that measure enzymatic activity",null,null,null,null,false],[true,"nanogram per second","ng/s","NG/S","mass",1e-9,[0,-1,1,0,0,0,0],"ng/s",null,false,"M",null,1,false,false,0,"ng/sec; ng per sec; nanograms per second","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per enzyme unit","ng/U","NG/U","mass",9.963241120049634e-26,[0,1,1,0,0,0,0],"ng/U",null,false,"M",null,1,false,false,-1,"ng per U; nanograms per enzyme unit","LOINC","CMass","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"nanokatal","nkat","NKAT","catalytic activity",602213670000000,[0,-1,0,0,0,0,0],"nkat","chemical",true,null,null,1,false,false,1,"nanokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"nanoliter","nL","NL","volume",1.0000000000000002e-12,[3,0,0,0,0,0,0],"nL","iso1000",true,null,null,1,false,false,0,"nanoliters; nanolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"nanometer","nm","NM","length",1e-9,[1,0,0,0,0,0,0],"nm",null,false,"L",null,1,false,false,0,"nanometers; nanometres","LOINC","Len","Clinical","",null,null,null,null,false],[true,"nanometer per second per liter","nm/s/L","(NM/S)/L","length",0.000001,[-2,-1,0,0,0,0,0],"(nm/s)/L",null,false,"L",null,1,false,false,0,"nm/sec/liter; nm/sec/litre; nm per s per l; nm per sec per l; nanometers per second per liter; nanometre per second per litre; nanometres per second per litre","LOINC","VelCnc","Clinical","",null,null,null,null,false],[false,"nanomole","nmol","NMOL","amount of substance",602213670000000,[0,0,0,0,0,0,0],"nmol","si",true,null,null,1,false,false,1,"nanomoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per 24 hour","nmol/(24.h)","NMOL/HR","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/h","si",true,null,null,1,false,false,1,"nmol/24hr; nmol/24 hr; nanomoles per 24 hours; nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per day","nmol/d","NMOL/D","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/d","si",true,null,null,1,false,false,1,"nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day; nmol/24hr; nmol/24 hr; nanomoles per 24 hours; ","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per deciliter","nmol/dL","NMOL/DL","amount of substance",6022136700000000000,[-3,0,0,0,0,0,0],"nmol/dL","si",true,null,null,1,false,false,1,"nmol per dL; nanomoles per deciliter; nanomole per decilitre; nanomoles per decilitre; nanomole/deciliter; nanomole/decilitre; nanomol/deciliter; nanomol/decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per gram","nmol/g","NMOL/G","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"nmol/g","si",true,null,null,1,false,false,1,"nmol per gram; nanomoles per gram; nanomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per hour per liter","nmol/h/L","(NMOL/HR)/L","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(nmol/h)/L","si",true,null,null,1,false,false,1,"nmol/hrs/L; nmol per hrs per L; nanomoles per hours per liter; litre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per liter","nmol/L","NMOL/L","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"nmol/L","si",true,null,null,1,false,false,1,"nmol per L; nanomoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram","nmol/mg","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nmol per mg; nanomoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram per hour","nmol/mg/h","(NMOL/MG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(nmol/mg)/h","si",true,null,null,1,false,false,1,"nmol/mg/hr; nmol per mg per hr; nanomoles per milligrams per hour","LOINC","SCntRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram of protein","nmol/mg{prot}","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nanomoles; nmol/mg prot; nmol per mg prot","LOINC","Ratio; CCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute","nmol/min","NMOL/MIN","amount of substance",10036894500000,[0,-1,0,0,0,0,0],"nmol/min","si",true,null,null,1,false,false,1,"nmol per min; nanomoles per minute; milli enzyme units; enzyme activity per volume; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/min = mU (milli enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute per milliliter","nmol/min/mL","(NMOL/MIN)/ML","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/min)/mL","si",true,null,null,1,false,false,1,"nmol per min per mL; nanomoles per minutes per milliliter; millilitre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter","nmol/mL","NMOL/ML","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"nmol/mL","si",true,null,null,1,false,false,1,"nmol per mL; nanomoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per hour","nmol/mL/h","(NMOL/ML)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/h","si",true,null,null,1,false,false,1,"nmol/mL/hr; nmol per mL per hr; nanomoles per milliliters per hour; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per minute","nmol/mL/min","(NMOL/ML)/MIN","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/min","si",true,null,null,1,false,false,1,"nmol per mL per min; nanomoles per milliliters per min; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole","nmol/mmol","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nmol per mmol; nanomoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole of creatinine","nmol/mmol{creat}","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per mole","nmol/mol","NMOL/MOL","amount of substance",1e-9,[0,0,0,0,0,0,0],"nmol/mol","si",true,null,null,1,false,false,0,"nmol per mole; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per nanomole","nmol/nmol","NMOL/NMOL","amount of substance",1,[0,0,0,0,0,0,0],"nmol/nmol","si",true,null,null,1,false,false,0,"nmol per nmol; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second","nmol/s","NMOL/S","amount of substance",602213670000000,[0,-1,0,0,0,0,0],"nmol/s","si",true,null,null,1,false,false,1,"nmol/sec; nmol per sec; nanomoles per sercond; milli enzyme units; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second per liter","nmol/s/L","(NMOL/S)/L","amount of substance",602213670000000000,[-3,-1,0,0,0,0,0],"(nmol/s)/L","si",true,null,null,1,false,false,1,"nmol/sec/L; nmol per s per L; nmol per sec per L; nanomoles per seconds per liter; litre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[true,"nanosecond","ns","NS","time",1e-9,[0,1,0,0,0,0,0],"ns",null,false,"T",null,1,false,false,0,"nanoseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"nanoenzyme unit per milliliter","nU/mL","NU/ML","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"nU/mL","chemical",true,null,null,1,false,false,1,"nU per mL; nanoenzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 fU = pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Ohm meter","Ohm.m","OHM.M","electric resistance",1000,[3,-1,1,0,0,-2,0],"\u03a9.m","si",true,null,null,1,false,false,0,"electric resistivity; meters; metres","LOINC","","Clinical","unit of electric resistivity","V/A","V/A","1",1,false],[false,"osmole per kilogram","osm/kg","OSM/KG","amount of substance (dissolved particles)",602213670000000000000,[0,0,-1,0,0,0,0],"osm/kg","chemical",true,null,null,1,false,false,1,"osm per kg; osmoles per kilogram; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"osmole per liter","osm/L","OSM/L","amount of substance (dissolved particles)",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"osm/L","chemical",true,null,null,1,false,false,1,"osm per L; osmoles per liter; litre; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"picoampere","pA","PA","electric current",1e-12,[0,-1,0,0,0,1,0],"pA","si",true,null,null,1,false,false,0,"picoamperes","LOINC","","Clinical","equal to 10^-12 amperes","C/s","C/S","1",1,false],[true,"picogram","pg","PG","mass",1e-12,[0,0,1,0,0,0,0],"pg",null,false,"M",null,1,false,false,0,"picograms","LOINC","Mass; EntMass","Clinical","",null,null,null,null,false],[true,"picogram per deciliter","pg/dL","PG/DL","mass",9.999999999999999e-9,[-3,0,1,0,0,0,0],"pg/dL",null,false,"M",null,1,false,false,0,"pg per dL; picograms; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per liter","pg/L","PG/L","mass",1e-9,[-3,0,1,0,0,0,0],"pg/L",null,false,"M",null,1,false,false,0,"pg per L; picograms; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per milligram","pg/mg","PG/MG","mass",1e-9,[0,0,0,0,0,0,0],"pg/mg",null,false,"M",null,1,false,false,0,"pg per mg; picograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"picogram per milliliter","pg/mL","PG/ML","mass",0.000001,[-3,0,1,0,0,0,0],"pg/mL",null,false,"M",null,1,false,false,0,"pg per mL; picograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per millimeter","pg/mm","PG/MM","mass",1e-9,[-1,0,1,0,0,0,0],"pg/mm",null,false,"M",null,1,false,false,0,"pg per mm; picogram/millimeter; picogram/millimetre; picograms per millimeter; millimetre","LOINC","Lineic Mass","Clinical","",null,null,null,null,false],[false,"picokatal","pkat","PKAT","catalytic activity",602213670000,[0,-1,0,0,0,0,0],"pkat","chemical",true,null,null,1,false,false,1,"pkats; picokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"picoliter","pL","PL","volume",1e-15,[3,0,0,0,0,0,0],"pL","iso1000",true,null,null,1,false,false,0,"picoliters; picolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"picometer","pm","PM","length",1e-12,[1,0,0,0,0,0,0],"pm",null,false,"L",null,1,false,false,0,"picometers; picometres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"picomole","pmol","PMOL","amount of substance",602213670000,[0,0,0,0,0,0,0],"pmol","si",true,null,null,1,false,false,1,"picomoles; pmols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per 24 hour","pmol/(24.h)","PMOL/HR","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/h","si",true,null,null,1,false,false,1,"pmol/24hrs; pmol/24 hrs; pmol per 24 hrs; 24hrs; days; dy; picomoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per day","pmol/d","PMOL/D","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/d","si",true,null,null,1,false,false,1,"pmol/dy; pmol per day; 24 hours; 24hrs; 24 hrs; picomoles","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per deciliter","pmol/dL","PMOL/DL","amount of substance",6022136700000000,[-3,0,0,0,0,0,0],"pmol/dL","si",true,null,null,1,false,false,1,"pmol per dL; picomoles per deciliter; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per gram","pmol/g","PMOL/G","amount of substance",602213670000,[0,0,-1,0,0,0,0],"pmol/g","si",true,null,null,1,false,false,1,"pmol per gm; picomoles per gram; picomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per hour per milliliter ","pmol/h/mL","(PMOL/HR)/ML","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(pmol/h)/mL","si",true,null,null,1,false,false,1,"pmol/hrs/mL; pmol per hrs per mL; picomoles per hour per milliliter; millilitre; micro enzyme units per volume; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. ","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per liter","pmol/L","PMOL/L","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"pmol/L","si",true,null,null,1,false,false,1,"picomole/liter; pmol per L; picomoles; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per minute","pmol/min","PMOL/MIN","amount of substance",10036894500,[0,-1,0,0,0,0,0],"pmol/min","si",true,null,null,1,false,false,1,"picomole/minute; pmol per min; picomoles per minute; micro enzyme units; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. pmol/min = uU (micro enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per milliliter","pmol/mL","PMOL/ML","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"pmol/mL","si",true,null,null,1,false,false,1,"picomole/milliliter; picomole/millilitre; pmol per mL; picomoles; millilitre; picomols; pmols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per micromole","pmol/umol","PMOL/UMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"pmol/\u03bcmol","si",true,null,null,1,false,false,0,"pmol/mcgmol; picomole/micromole; pmol per umol; pmol per mcgmol; picomoles ","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"picosecond","ps","PS","time",1e-12,[0,1,0,0,0,0,0],"ps",null,false,"T",null,1,false,false,0,"picoseconds; psec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"picotesla","pT","PT","magnetic flux density",1e-9,[0,-1,1,0,0,-1,0],"pT","si",true,null,null,1,false,false,0,"picoteslas","LOINC","","Clinical","SI unit of magnetic field strength for magnetic field B","Wb/m2","WB/M2","1",1,false],[false,"enzyme unit per 12 hour","U/(12.h)","U/HR","catalytic activity",232335520833.33334,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/12hrs; U/ 12hrs; U per 12 hrs; 12hrs; enzyme units per 12 hours; enzyme activity; enzymatic activity per time; umol per min per 12 hours; micromoles per minute per 12 hours; umol/min/12hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 2 hour","U/(2.h)","U/HR","catalytic activity",1394013125000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/2hrs; U/ 2hrs; U per 2 hrs; 2hrs; enzyme units per 2 hours; enzyme activity; enzymatic activity per time; umol per minute per 2 hours; micromoles per minute; umol/min/2hr; umol per min per 2hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 24 hour","U/(24.h)","U/HR","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/24hrs; U/ 24hrs; U per 24 hrs; 24hrs; enzyme units per 24 hours; enzyme activity; enzymatic activity per time; micromoles per minute per 24 hours; umol/min/24hr; umol per min per 24hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10","U/10","U","catalytic activity",1003689450000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"enzyme unit/10; U per 10; enzyme units per 10; enzymatic activity; enzyme activity; micromoles per minute; umol/min/10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10 billion","U/10*10","U/(10*10)","catalytic activity",1003689.45,[0,-1,0,0,0,0,0],"U/(1010)","chemical",true,null,null,1,false,false,1,"U per 10*10; enzyme units per 10*10; U per 10 billion; enzyme units; enzymatic activity; micromoles per minute per 10 billion; umol/min/10*10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per trillion","U/10*12","U/(10*12)","catalytic activity",10036.8945,[0,-1,0,0,0,0,0],"U/(1012)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*12; U per 10*12; enzyme units per 10*12; enzyme units per trillion; enzymatic activity; micromoles per minute per trillion; umol/min/10*12; umol per min per 10*12","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per million","U/10*6","U/(10*6)","catalytic activity",10036894500,[0,-1,0,0,0,0,0],"U/(106)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*6; U per 10*6; enzyme units per 10*6; enzyme units; enzymatic activity per volume; micromoles per minute per million; umol/min/10*6; umol per min per 10*6","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per billion","U/10*9","U/(10*9)","catalytic activity",10036894.5,[0,-1,0,0,0,0,0],"U/(109)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*9; U per 10*9; enzyme units per 10*9; enzymatic activity per volume; micromoles per minute per billion; umol/min/10*9; umol per min per 10*9","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per day","U/d","U/D","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/d","chemical",true,null,null,1,false,false,1,"U/dy; enzyme units per day; enzyme units; enzyme activity; enzymatic activity per time; micromoles per minute per day; umol/min/day; umol per min per day","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per deciliter","U/dL","U/DL","catalytic activity",100368945000000000000,[-3,-1,0,0,0,0,0],"U/dL","chemical",true,null,null,1,false,false,1,"U per dL; enzyme units per deciliter; decilitre; micromoles per minute per deciliter; umol/min/dL; umol per min per dL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per gram","U/g","U/G","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"U/g","chemical",true,null,null,1,false,false,1,"U/gm; U per gm; enzyme units per gram; micromoles per minute per gram; umol/min/g; umol per min per g","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per hour","U/h","U/HR","catalytic activity",2788026250000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/hr; U per hr; enzyme units per hour; micromoles per minute per hour; umol/min/hr; umol per min per hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per liter","U/L","U/L","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"U/L","chemical",true,null,null,1,false,false,1,"enzyme unit/liter; enzyme unit/litre; U per L; enzyme units per liter; enzyme unit per litre; micromoles per minute per liter; umol/min/L; umol per min per L","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per minute","U/min","U/MIN","catalytic activity",167281575000000,[0,-2,0,0,0,0,0],"U/min","chemical",true,null,null,1,false,false,1,"enzyme unit/minute; U per min; enzyme units; umol/min/min; micromoles per minute per minute; micromoles per min per min; umol","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per milliliter","U/mL","U/ML","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"U/mL","chemical",true,null,null,1,false,false,1,"U per mL; enzyme units per milliliter; millilitre; micromoles per minute per milliliter; umol/min/mL; umol per min per mL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per second","U/s","U/S","catalytic activity",10036894500000000,[0,-2,0,0,0,0,0],"U/s","chemical",true,null,null,1,false,false,1,"U/sec; U per second; enzyme units per second; micromoles per minute per second; umol/min/sec; umol per min per sec","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"micro international unit","u[IU]","U[IU]","arbitrary",0.000001,[0,0,0,0,0,0,0],"\u03bci.U.","chemical",true,null,null,1,false,true,0,"uIU; u IU; microinternational units","LOINC","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per liter","u[IU]/L","U[IU]/L","arbitrary",0.001,[-3,0,0,0,0,0,0],"(\u03bci.U.)/L","chemical",true,null,null,1,false,true,0,"uIU/L; u IU/L; uIU per L; microinternational units per liter; litre; ","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per milliliter","u[IU]/mL","U[IU]/ML","arbitrary",1,[-3,0,0,0,0,0,0],"(\u03bci.U.)/mL","chemical",true,null,null,1,false,true,0,"uIU/mL; u IU/mL; uIU per mL; microinternational units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"microequivalent","ueq","UEQ","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"\u03bceq","chemical",true,null,null,1,false,false,1,"microequivalents; 10^-6 equivalents; 10-6 equivalents","LOINC","Sub","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per liter","ueq/L","UEQ/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"\u03bceq/L","chemical",true,null,null,1,false,false,1,"ueq per liter; litre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per milliliter","ueq/mL","UEQ/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"\u03bceq/mL","chemical",true,null,null,1,false,false,1,"ueq per milliliter; millilitre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[true,"microgram","ug","UG","mass",0.000001,[0,0,1,0,0,0,0],"\u03bcg",null,false,"M",null,1,false,false,0,"mcg; micrograms; 10^-6 grams; 10-6 grams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"microgram per 100 gram","ug/(100.g)","UG/G","mass",1e-8,[0,0,0,0,0,0,0],"\u03bcg/g",null,false,"M",null,1,false,false,0,"ug/100gm; ug/100 gm; mcg; ug per 100g; 100 gm; mcg per 100g; micrograms per 100 grams","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per 24 hour","ug/(24.h)","UG/HR","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/24hrs; ug/24 hrs; mcg/24hrs; ug per 24hrs; mcg per 24hrs; 24 hrs; micrograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per 8 hour","ug/(8.h)","UG/HR","mass",3.472222222222222e-11,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/8hrs; ug/8 hrs; mcg/8hrs; ug per 8hrs; mcg per 8hrs; 8 hrs; micrograms per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per square foot (international)","ug/[sft_i]","UG/[SFT_I]","mass",0.000010763910416709721,[-2,0,1,0,0,0,0],"\u03bcg",null,false,"M",null,1,false,false,0,"ug/sft; ug/ft2; ug/ft^2; ug/sq. ft; micrograms; sq. foot; foot squared","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"microgram per day","ug/d","UG/D","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"\u03bcg/d",null,false,"M",null,1,false,false,0,"ug/dy; mcg/dy; ug per day; mcg; micrograms per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per deciliter","ug/dL","UG/DL","mass",0.009999999999999998,[-3,0,1,0,0,0,0],"\u03bcg/dL",null,false,"M",null,1,false,false,0,"ug per dL; mcg/dl; mcg per dl; micrograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per gram","ug/g","UG/G","mass",0.000001,[0,0,0,0,0,0,0],"\u03bcg/g",null,false,"M",null,1,false,false,0,"ug per gm; mcg/gm; mcg per g; micrograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per hour","ug/h","UG/HR","mass",2.7777777777777777e-10,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/hr; mcg/hr; mcg per hr; ug per hr; ug per hour; micrograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per kilogram","ug/kg","UG/KG","mass",9.999999999999999e-10,[0,0,0,0,0,0,0],"\u03bcg/kg",null,false,"M",null,1,false,false,0,"ug per kg; mcg/kg; mcg per kg; micrograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per kilogram per 8 hour","ug/kg/(8.h)","(UG/KG)/HR","mass",3.472222222222222e-14,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/h",null,false,"M",null,1,false,false,0,"ug/kg/8hrs; mcg/kg/8hrs; ug/kg/8 hrs; mcg/kg/8 hrs; ug per kg per 8hrs; 8 hrs; mcg per kg per 8hrs; micrograms per kilograms per 8 hours; shift","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per day","ug/kg/d","(UG/KG)/D","mass",1.1574074074074072e-14,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/d",null,false,"M",null,1,false,false,0,"ug/(kg.d); ug/kg/dy; mcg/kg/day; ug per kg per dy; 24 hours; 24hrs; mcg; kilograms; microgram per kilogram and day","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per hour","ug/kg/h","(UG/KG)/HR","mass",2.7777777777777774e-13,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/h",null,false,"M",null,1,false,false,0,"ug/(kg.h); ug/kg/hr; mcg/kg/hr; ug per kg per hr; mcg per kg per hr; kilograms","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per minute","ug/kg/min","(UG/KG)/MIN","mass",1.6666666666666664e-11,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/min",null,false,"M",null,1,false,false,0,"ug/kg/min; ug/kg/min; mcg/kg/min; ug per kg per min; mcg; micrograms per kilograms per minute ","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per liter","ug/L","UG/L","mass",0.001,[-3,0,1,0,0,0,0],"\u03bcg/L",null,false,"M",null,1,false,false,0,"mcg/L; ug per L; mcg; micrograms per liter; litre ","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per liter per 24 hour","ug/L/(24.h)","(UG/L)/HR","mass",1.1574074074074074e-8,[-3,-1,1,0,0,0,0],"(\u03bcg/L)/h",null,false,"M",null,1,false,false,0,"ug/L/24hrs; ug/L/24 hrs; mcg/L/24hrs; ug per L per 24hrs; 24 hrs; day; dy mcg; micrograms per liters per 24 hours; litres","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per square meter","ug/m2","UG/M2","mass",0.000001,[-2,0,1,0,0,0,0],"\u03bcg/(m2)",null,false,"M",null,1,false,false,0,"ug/m^2; ug/sq. m; mcg/m2; mcg/m^2; mcg/sq. m; ug per m2; m^2; sq. meter; mcg; micrograms per square meter; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"microgram per cubic meter","ug/m3","UG/M3","mass",0.000001,[-3,0,1,0,0,0,0],"\u03bcg/(m3)",null,false,"M",null,1,false,false,0,"ug/m^3; ug/cu. m; mcg/m3; mcg/m^3; mcg/cu. m; ug per m3; ug per m^3; ug per cu. m; mcg; micrograms per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per milligram","ug/mg","UG/MG","mass",0.001,[0,0,0,0,0,0,0],"\u03bcg/mg",null,false,"M",null,1,false,false,0,"ug per mg; mcg/mg; mcg per mg; micromilligrams per milligram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per minute","ug/min","UG/MIN","mass",1.6666666666666667e-8,[0,-1,1,0,0,0,0],"\u03bcg/min",null,false,"M",null,1,false,false,0,"ug per min; mcg/min; mcg per min; microminutes per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per milliliter","ug/mL","UG/ML","mass",1,[-3,0,1,0,0,0,0],"\u03bcg/mL",null,false,"M",null,1,false,false,0,"ug per mL; mcg/mL; mcg per mL; micrograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per millimole","ug/mmol","UG/MMOL","mass",1.660540186674939e-27,[0,0,1,0,0,0,0],"\u03bcg/mmol",null,false,"M",null,1,false,false,-1,"ug per mmol; mcg/mmol; mcg per mmol; micrograms per millimole","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"microgram per nanogram","ug/ng","UG/NG","mass",999.9999999999999,[0,0,0,0,0,0,0],"\u03bcg/ng",null,false,"M",null,1,false,false,0,"ug per ng; mcg/ng; mcg per ng; micrograms per nanogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[false,"microkatal","ukat","UKAT","catalytic activity",602213670000000000,[0,-1,0,0,0,0,0],"\u03bckat","chemical",true,null,null,1,false,false,1,"microkatals; ukats","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"microliter","uL","UL","volume",1e-9,[3,0,0,0,0,0,0],"\u03bcL","iso1000",true,null,null,1,false,false,0,"microliters; microlitres; mcl","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"microliter per 2 hour","uL/(2.h)","UL/HR","volume",1.388888888888889e-13,[3,-1,0,0,0,0,0],"\u03bcL/h","iso1000",true,null,null,1,false,false,0,"uL/2hrs; uL/2 hrs; mcg/2hr; mcg per 2hr; uL per 2hr; uL per 2 hrs; microliters per 2 hours; microlitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"microliter per hour","uL/h","UL/HR","volume",2.777777777777778e-13,[3,-1,0,0,0,0,0],"\u03bcL/h","iso1000",true,null,null,1,false,false,0,"uL/hr; mcg/hr; mcg per hr; uL per hr; microliters per hour; microlitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[true,"micrometer","um","UM","length",0.000001,[1,0,0,0,0,0,0],"\u03bcm",null,false,"L",null,1,false,false,0,"micrometers; micrometres; \u03bcm; microns","LOINC","Len","Clinical","Unit of length that is usually used in tests related to the eye",null,null,null,null,false],[true,"microns per second","um/s","UM/S","length",0.000001,[1,-1,0,0,0,0,0],"\u03bcm/s",null,false,"L",null,1,false,false,0,"um/sec; micron/second; microns/second; um per sec; micrometers per second; micrometres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"micromole","umol","UMOL","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"\u03bcmol","si",true,null,null,1,false,false,1,"micromoles; umols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 2 hour","umol/(2.h)","UMOL/HR","amount of substance",83640787500000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/2hrs; umol/2 hrs; umol per 2 hrs; 2hrs; micromoles per 2 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 24 hour","umol/(24.h)","UMOL/HR","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/24hrs; umol/24 hrs; umol per 24 hrs; per 24hrs; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 8 hour","umol/(8.h)","UMOL/HR","amount of substance",20910196875000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/8hr; umol/8 hr; umol per 8 hr; umol per 8hr; umols per 8hr; umol per 8 hours; micromoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per day","umol/d","UMOL/D","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"\u03bcmol/d","si",true,null,null,1,false,false,1,"umol/day; umol per day; umols per day; umol per days; micromoles per days; umol/24hr; umol/24 hr; umol per 24 hr; umol per 24hr; umols per 24hr; umol per 24 hours; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per deciliter","umol/dL","UMOL/DL","amount of substance",6.0221367e+21,[-3,0,0,0,0,0,0],"\u03bcmol/dL","si",true,null,null,1,false,false,1,"micromole/deciliter; micromole/decilitre; umol per dL; micromoles per deciliters; micromole per decilitres","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per gram","umol/g","UMOL/G","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"\u03bcmol/g","si",true,null,null,1,false,false,1,"micromole/gram; umol per g; micromoles per gram","LOINC","SCnt; Ratio","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per hour","umol/h","UMOL/HR","amount of substance",167281575000000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/hr; umol per hr; umol per hour; micromoles per hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per kilogram","umol/kg","UMOL/KG","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"\u03bcmol/kg","si",true,null,null,1,false,false,1,"umol per kg; micromoles per kilogram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter","umol/L","UMOL/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"\u03bcmol/L","si",true,null,null,1,false,false,1,"micromole/liter; micromole/litre; umol per liter; micromoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter per hour","umol/L/h","(UMOL/L)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(\u03bcmol/L)/h","si",true,null,null,1,false,false,1,"umol/liter/hr; umol/litre/hr; umol per L per hr; umol per liter per hour; micromoles per liters per hour; litre","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min; umol/L/h is a derived unit of enzyme units","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milligram","umol/mg","UMOL/MG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"\u03bcmol/mg","si",true,null,null,1,false,false,1,"micromole/milligram; umol per mg; micromoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute","umol/min","UMOL/MIN","amount of substance",10036894500000000,[0,-1,0,0,0,0,0],"\u03bcmol/min","si",true,null,null,1,false,false,1,"micromole/minute; umol per min; micromoles per minute; enzyme units","LOINC","CAct","Clinical","unit for the enzyme unit U = umol/min","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per gram","umol/min/g","(UMOL/MIN)/G","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(\u03bcmol/min)/g","si",true,null,null,1,false,false,1,"umol/min/gm; umol per min per gm; micromoles per minutes per gram; U/g; enzyme units","LOINC","CCnt","Clinical","unit for the enzyme unit U = umol/min. umol/min/g = U/g","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per liter","umol/min/L","(UMOL/MIN)/L","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(\u03bcmol/min)/L","si",true,null,null,1,false,false,1,"umol/min/liter; umol/minute/liter; micromoles per minutes per liter; litre; enzyme units; U/L","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/min/L = U/L","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter","umol/mL","UMOL/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"\u03bcmol/mL","si",true,null,null,1,false,false,1,"umol per mL; micromoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter per minute","umol/mL/min","(UMOL/ML)/MIN","amount of substance",1.00368945e+22,[-3,-1,0,0,0,0,0],"(\u03bcmol/mL)/min","si",true,null,null,1,false,false,1,"umol per mL per min; micromoles per milliliters per minute; millilitres","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/mL/min = U/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per millimole","umol/mmol","UMOL/MMOL","amount of substance",0.001,[0,0,0,0,0,0,0],"\u03bcmol/mmol","si",true,null,null,1,false,false,0,"umol per mmol; micromoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per mole","umol/mol","UMOL/MOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"\u03bcmol/mol","si",true,null,null,1,false,false,0,"umol per mol; micromoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per micromole","umol/umol","UMOL/UMOL","amount of substance",1,[0,0,0,0,0,0,0],"\u03bcmol/\u03bcmol","si",true,null,null,1,false,false,0,"umol per umol; micromoles per micromole","LOINC","Srto; SFr; EntSRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"microOhm","uOhm","UOHM","electric resistance",0.001,[2,-1,1,0,0,-2,0],"\u03bc\u03a9","si",true,null,null,1,false,false,0,"microOhms; \xb5\u03a9","LOINC","","Clinical","unit of electric resistance","V/A","V/A","1",1,false],[true,"microsecond","us","US","time",0.000001,[0,1,0,0,0,0,0],"\u03bcs",null,false,"T",null,1,false,false,0,"microseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"micro enzyme unit per gram","uU/g","UU/G","catalytic activity",10036894500,[0,-1,-1,0,0,0,0],"\u03bcU/g","chemical",true,null,null,1,false,false,1,"uU per gm; micro enzyme units per gram; micro enzymatic activity per mass; enzyme activity","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per liter","uU/L","UU/L","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"\u03bcU/L","chemical",true,null,null,1,false,false,1,"uU per L; micro enzyme units per liter; litre; enzymatic activity per volume; enzyme activity ","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per milliliter","uU/mL","UU/ML","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"\u03bcU/mL","chemical",true,null,null,1,false,false,1,"uU per mL; micro enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"microvolt","uV","UV","electric potential",0.001,[2,-2,1,0,0,-1,0],"\u03bcV","si",true,null,null,1,false,false,0,"microvolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false]]}}' + ); + }, + 4147: (ye) => { + "use strict"; + ye.exports = JSON.parse( + '{"name":"matchboxv3","version":"3.2.0","license":"MIT","scripts":{"ng":"ng","start":"ng serve","build":"ng build --configuration production --base-href /matchboxv3/","test":"ng test","test-ci":"ng test --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox --code-coverage","lint":"ng lint","e2e":"ng e2e"},"private":true,"dependencies":{"@angular/animations":"^13.1.1","@angular/cdk":"^13.1.1","@angular/common":"^13.1.1","@angular/compiler":"^13.1.1","@angular/core":"^13.1.1","@angular/forms":"^13.1.1","@angular/material":"^13.1.1","@angular/platform-browser":"^13.1.1","@angular/platform-browser-dynamic":"^13.1.1","@angular/router":"^13.1.1","@ngx-translate/core":"^11.0.1","@ngx-translate/http-loader":"^4.0.0","@types/jasmine":"^3.6.9","@types/pako":"^1.0.3","ace-builds":"^1.4.14","angular-cli-ghpages":"^1.0.0-rc.1","angular-oauth2-oidc":"^13.0.1","antlr4":"^4.7.2","browserify-zlib":"^0.2.0","core-js":"^2.6.2","debug":"^4.3.1","fhir-kit-client":"1.9.2","fhirpath":"^2.10.2","jasmine":"^3.7.0","js-base64":"^3.7.2","js-untar":"^2.0.0","ngx-filesize":"^1.1.4","ngx-highlightjs":"^4.1.3","pako":"^2.0.4","ramda":"^0.26.1","rxjs":"^6.6.7","tsickle":"^0.34.0","tslib":"^2.0.0","uuid":"^8.3.2","yarn":"^1.22.17","zone.js":"^0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"^13.1.2","@angular-eslint/builder":"13.0.0-alpha.1","@angular-eslint/eslint-plugin":"13.0.0-alpha.1","@angular-eslint/eslint-plugin-template":"13.0.0-alpha.1","@angular-eslint/schematics":"13.0.0-alpha.1","@angular-eslint/template-parser":"13.0.0-alpha.1","@angular/cli":"^13.1.2","@angular/compiler-cli":"^13.1.1","@angular/language-service":"^13.1.1","@types/debug":"^4.1.5","@types/node":"^10.12.18","@types/ramda":"^0.26.44","@typescript-eslint/eslint-plugin":"5.3.0","@typescript-eslint/parser":"5.3.0","codelyzer":"^6.0.0","eslint":"^8.2.0","husky":"^1.3.1","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","json-patch":"^0.7.0","karma":"~6.3.1","karma-chrome-launcher":"~3.1.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","prettier":"2.2.1","pretty-quick":"^1.10.0","protractor":"~7.0.0","ts-node":"~7.0.1","tslint":"~6.1.0","typescript":"~4.5.4"},"browser":{"fs":false,"os":false,"path":false,"zlib":false},"prettier":{"singleQuote":true,"trailingComma":"es5"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}}}' + ); + }, + }, + (ye) => { + ye((ye.s = 4431)); + }, +]); diff --git a/matchbox-server/src/main/resources/static/main.c30479b2627765ff.js b/matchbox-server/src/main/resources/static/main.c30479b2627765ff.js deleted file mode 100644 index a9e2ee86b40..00000000000 --- a/matchbox-server/src/main/resources/static/main.c30479b2627765ff.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmatchbox_formfiller=self.webpackChunkmatchbox_formfiller||[]).push([[179],{774:ye=>{ye.exports=class{constructor(n){this.capabilityStatement=n}serverCan(n){return this.supportFor({capabilityType:"interaction",where:{code:n}})}resourceCan(n,f){return this.supportFor({resourceType:n,capabilityType:"interaction",where:{code:f}})}serverSearch(n){return this.supportFor({capabilityType:"searchParam",where:{name:n}})}resourceSearch(n,f){return this.supportFor({resourceType:n,capabilityType:"searchParam",where:{name:f}})}supportFor({resourceType:n,capabilityType:f,where:_}={}){let m;if(m=n?this.resourceCapabilities({resourceType:n}):this.serverCapabilities(),!m)return!1;const s=m[f];if(_&&s){const d=Object.keys(_)[0];return void 0!==s.find(h=>h[d]===_[d])}return void 0!==s}interactionsFor({resourceType:n}={}){const f=this.resourceCapabilities({resourceType:n});return void 0===f?[]:f.interaction.map(_=>_.code)}searchParamsFor({resourceType:n}={}){const f=this.resourceCapabilities({resourceType:n});return void 0===f||void 0===f.searchParam?[]:f.searchParam.map(_=>_.name)}resourceCapabilities({resourceType:n}={}){return this.serverCapabilities().resource.find(m=>m.type===n)}capabilityContents({resourceType:n,capabilityType:f}={}){const _=this.resourceCapabilities({resourceType:n});if(void 0!==_)return _[f]}serverCapabilities(){return this.capabilityStatement.rest.find(n=>"server"===n.mode)}}},2518:(ye,W,p)=>{var n=p(8926).default;const f=p(6814),{authFromCapability:_,authFromWellKnown:m}=p(2778),s=p(2287),d=p(6523),u=p(8178),{createQueryString:h,validResourceType:r}=p(4943),{FetchQueue:o}=p(1428),{deprecatePaginationArgs:i,deprecateHeaders:c}=p(5143),l=p(774);ye.exports=class{constructor({baseUrl:y,customHeaders:S,requestOptions:I,requestSigner:R,bearerToken:M}={}){this.httpClient=new s({baseUrl:y,customHeaders:S,requestOptions:I,requestSigner:R}),M&&(this.httpClient.bearerToken=M),this.resolver=new d(this),this.pagination=new u(this.httpClient)}static httpFor(y){return{request:s.requestFor(y),response:s.responseFor(y)}}get baseUrl(){return this.httpClient&&this.httpClient.baseUrl}set baseUrl(y){this.httpClient&&(this.httpClient.baseUrl=y)}get customHeaders(){return this.httpClient.customHeaders}set customHeaders(y){this.httpClient.customHeaders=y}set bearerToken(y){this.httpClient.bearerToken=y}resolve({reference:y,context:S,headers:I,options:R={}}={}){return this.resolver.resolve({reference:y,context:S,options:c(R,I)})}smartAuthMetadata({headers:y,options:S={}}={}){var I=this;return n(function*(){const R={options:c(S,y)};R.options.headers||(R.options.headers={}),R.options.headers.accept="application/fhir+json,application/json";const M=I.baseUrl.replace(/\/*$/,"/"),A=new o,D=A.buildJob(),w=A.buildJob(),x=A.buildJob(),C=[];return new Promise((L,F)=>{function re(Y){C.push(Y)===A.numJobs&&F(new Error(C.map(X=>X.message).join("; ")))}I.httpClient.request("GET",`${M}.well-known/smart-configuration`,w.addSignalOption(R)).then(Y=>(A.safeAbortOthers(w),L(m(Y)))).catch(Y=>re(Y)),I.capabilityStatement(D.addSignalOption(R)).then(Y=>(A.safeAbortOthers(D),L(_(Y)))).catch(Y=>re(Y)),I.httpClient.request("GET",`${M}.well-known/openid-configuration`,x.addSignalOption(R)).then(Y=>(A.safeAbortOthers(x),L(m(Y)))).catch(Y=>re(Y))})})()}capabilityStatement({headers:y,options:S={}}={}){return this.metadata||(this.metadata=this.httpClient.get("metadata",c(S,y))),this.metadata}request(y,{method:S="GET",options:I={},body:R}={}){return I.method&&I.method!==S&&console.warn(`WARNING: 'options.method' has been specified: ${I.method} but will be ignored. Use 'method' instead.`),this.httpClient.request(S,y,I,R)}read({resourceType:y,id:S,headers:I,options:R={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);return this.httpClient.get(`${y}/${S}`,c(R,I))}vread({resourceType:y,id:S,version:I,headers:R,options:M={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);return this.httpClient.get(`${y}/${S}/_history/${I}`,c(M,R))}create({resourceType:y,body:S,headers:I,options:R={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);return this.httpClient.post(y,S,c(R,I))}delete({resourceType:y,id:S,headers:I,options:R={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);return this.httpClient.delete(`${y}/${S}`,c(R,I))}update({resourceType:y,id:S,searchParams:I,body:R,headers:M,options:A={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);if(S&&I)throw new Error("Conditional update with search params cannot be with id",y);if(I){const D=h(I);return this.httpClient.put(`${y}?${D}`,R,c(A,M))}return this.httpClient.put(`${y}/${S}`,R,c(A,M))}patch({resourceType:y,id:S,JSONPatch:I,headers:R,options:M={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);const D={...c(M,R).headers||{},"Content-Type":"application/json-patch+json"};return this.httpClient.patch(`${y}/${S}`,I,{...M,headers:D})}batch({body:y,headers:S,options:I={}}={}){return this.httpClient.post("/",y,c(I,S))}transaction({body:y,headers:S,options:I={}}={}){return this.httpClient.post("/",y,c(I,S))}operation({name:y,resourceType:S,id:I,method:R="POST",input:M,options:A={}}={}){const D=["/"];if(S){if(!r(S))throw new Error("Invalid resourceType",S);D.push(`${S}/`)}return I&&D.push(`${I}/`),D.push(`${y.startsWith("$")?y:`$${y}`}`),"POST"===R.toUpperCase()?this.httpClient.post(D.join(""),M,A):"GET"===R.toUpperCase()?(M&&D.push(`?${f.stringify(M)}`),this.httpClient.get(D.join(""),A)):void 0}nextPage(y,S){const{bundle:I,options:R={}}=i(y,S);return this.pagination.nextPage(I,R)}prevPage(y,S){const{bundle:I,options:R={}}=i(y,S);return this.pagination.prevPage(I,R)}search({resourceType:y,compartment:S,searchParams:I,headers:R,options:M={}}={}){if(y&&!r(y))throw new Error("Invalid resourceType",y);if(S&&y)return this.compartmentSearch({resourceType:y,compartment:S,searchParams:I,options:c(M,R)});if(y)return this.resourceSearch({resourceType:y,searchParams:I,options:c(M,R)});if(I instanceof Object&&Object.keys(I).length>0)return this.systemSearch({searchParams:I,options:c(M,R)});throw new Error("search requires either searchParams or a resourceType")}resourceSearch({resourceType:y,searchParams:S,headers:I,options:R={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);let M=y;return R.postSearch&&(M+="/_search"),this.baseSearch({searchPath:M,searchParams:S,headers:I,options:R})}systemSearch({searchParams:y,headers:S,options:I={}}={}){return this.baseSearch({searchPath:"/_search",searchParams:y,headers:S,options:I})}compartmentSearch({resourceType:y,compartment:S,searchParams:I,headers:R,options:M={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);const{resourceType:A,id:D}=S;if(!r(A))throw new Error("Invalid compartmentType",A);let w=`/${A}/${D}/${y}`;return M.postSearch&&(w+="/_search"),this.baseSearch({searchPath:w,searchParams:I,headers:R,options:M})}baseSearch({searchPath:y,searchParams:S,headers:I,options:R}){const M=h(S),A=c(R,I);return this[R.postSearch?"postSearch":"getSearch"](y,M,A)}postSearch(y,S,I){const M={"Content-Type":"application/x-www-form-urlencoded",...I.headers},A={...I,headers:M};return this.httpClient.post(y,S,A)}getSearch(y,S,I){let R=y;return S&&(R+=`?${S}`),this.httpClient.get(R,I)}history({resourceType:y,id:S,headers:I,options:R={}}={}){if(y&&!r(y))throw new Error("Invalid resourceType",y);return S&&y?this.resourceHistory({resourceType:y,id:S,options:c(R,I)}):y?this.typeHistory({resourceType:y,options:c(R,I)}):this.systemHistory({options:c(R,I)})}resourceHistory({resourceType:y,id:S,headers:I,options:R={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);return this.httpClient.get(`${y}/${S}/_history`,c(R,I))}typeHistory({resourceType:y,headers:S,options:I={}}={}){if(!r(y))throw new Error("Invalid resourceType",y);return this.httpClient.get(`${y}/_history`,c(I,S))}systemHistory({headers:y,options:S={}}={}){return this.httpClient.get("_history",c(S,y))}},ye.exports.CapabilityTool=l},5143:ye=>{ye.exports={deprecateHeaders:(n,f)=>f?(console.warn("WARNING: headers is deprecated and will be removed in the next major version. Use options.headers instead."),console.warn(JSON.stringify(f,null," ")),{headers:f,...n}):n,deprecatePaginationArgs:(n,f)=>{if(Object.prototype.hasOwnProperty.call(n,"resourceType")){console.warn("WARNING: positional parameters for pagination methods are deprecated and will be removed in the next major version. Call with ({ bundle, options }) rather than (bundle, headers)");const _={bundle:n};return f&&(_.options={headers:f}),_}return n}}},1428:(ye,W,p)=>{p(918);class n{constructor(){this.controller=new AbortController,this.resolving=!1}addSignalOption(m){return{signal:this.controller.signal,...m}}safeAbort(){this.resolving||this.controller.abort()}}ye.exports={FetchQueue:class{constructor(){this.jobs=[],this.numJobs=0}buildJob(){const m=new n;return this.numJobs=this.jobs.push(m),m}safeAbortOthers(m){m.resolving=!0;for(let s=0,d=this.numJobs;s{ye.exports={fhirReferenceRegEx:/^((http|https):\/\/([A-Za-z0-9\\.:%$]*\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodySite|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Conformance|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DataElement|DecisionSupportRule|DecisionSupportServiceModule|DetectedIssue|Device|DeviceComponent|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseRequest|DeviceUseStatement|DiagnosticOrder|DiagnosticReport|DiagnosticRequest|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|EligibilityRequest|EligibilityResponse|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EntryDefinition|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExpansionProfile|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceRequest|GuidanceResponse|HealthcareService|ImagingExcerpt|ImagingManifest|ImagingObjectSelection|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|ImplementationGuideInput|ImplementationGuideOutput|InsurancePlan|Invoice|ItemInstance|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationOrder|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductClinicals|MedicinalProductContraindication|MedicinalProductDeviceSpec|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|ModuleDefinition|ModuleMetadata|MolecularSequence|NamingSystem|NutritionOrder|NutritionRequest|Observation|ObservationDefinition|OccupationalData|OperationDefinition|OperationOutcome|Order|OrderResponse|OrderSet|Organization|OrganizationAffiliation|OrganizationRole|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|ProcedureRequest|ProcessRequest|ProcessResponse|ProductPlan|Protocol|Provenance|Questionnaire|QuestionnaireResponse|ReferralRequest|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|Sequence|ServiceDefinition|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|UserSession|ValueSet|VerificationResult|VisionPrescription)\/[A-Za-z0-9\-.]{1,256}(\/_history\/[A-Za-z0-9\-.]{1,256})?$/}},2287:(ye,W,p)=>{var n=p(8926).default;p(6604).polyfill(),p(7937);const{logRequestError:f,logRequestInfo:_,logResponseInfo:m}=p(2832),s={accept:"application/fhir+json"},d="__response",u="__request";let r,o,h=!1;try{r=p(9426),o=p(9426).HttpsAgent,h=!0}catch(b){_("HTTP Agent is not available")}const i=new WeakMap;function l({status:b,data:y,method:S,headers:I,url:R}){const M={response:{status:b,data:y},config:{method:S,url:R,headers:I}};return f(M),M}ye.exports=class Fl{static lcKeys(y){return y&&Object.keys(y).reduce((S,I)=>(S[I.toLowerCase()]=y[I],S),{})}constructor({baseUrl:y,customHeaders:S={},requestOptions:I={},requestSigner:R}){this.baseUrl=y,this.customHeaders=S,this.baseRequestOptions=I,this.requestSigner=R}set baseUrl(y){if(!y)throw new Error("baseUrl cannot be blank");if("string"!=typeof y)throw new Error("baseUrl must be a string");this.baseUrlValue=y}get baseUrl(){return this.baseUrlValue}static responseFor(y){return y[d]}static requestFor(y){return y[u]}set bearerToken(y){this.authHeader={authorization:`Bearer ${y}`}}requestBuilder(y,S,I,R){const M={...this.baseRequestOptions,...I,method:y,body:(b=R,"string"==typeof b?b:JSON.stringify(b))};var b;let A={};return h||(A={keepalive:!Object.prototype.hasOwnProperty.call(M,"keepalive")||M.keepalive}),Object.assign(M,A,{headers:new Headers(this.mergeHeaders(I.headers))},function(b,y={}){const S={baseUrl:b,agentOptions:y};return h?(i.get(S)||(b.startsWith("https")?i.set(S,{agent:new o(y)}):i.set(S,{agent:new r(y)})),i.get(S)):{}}(this.baseUrl,M)),this.requestSigner&&this.requestSigner(S,M),new Request(S,M)}request(y,S,I={},R){var M=this;return n(function*(){const A=M.expandUrl(S),D=M.requestBuilder(y,A,I,R);_(y,A,D.headers);const w=yield fetch(D),{status:x,headers:C}=w;m({status:x,response:w});const L=yield w.text();let F={};if(L)try{F=JSON.parse(L)}catch(re){throw F=L,l({status:x,data:F,method:y,headers:C,url:A})}if(!w.ok)throw l({status:x,data:F,method:y,headers:C,url:A});return Object.defineProperty(F,d,{writable:!1,enumerable:!1,value:w}),Object.defineProperty(F,u,{writable:!1,enumerable:!1,value:D}),F})()}get(y,S){var I=this;return n(function*(){return I.request("GET",y,S)})()}delete(y,S){var I=this;return n(function*(){return I.request("DELETE",y,S)})()}put(y,S,I={}){var R=this;return n(function*(){const M={"content-type":"application/fhir+json",...Fl.lcKeys(I.headers)},A={...I,headers:M};return R.request("PUT",y,A,S)})()}post(y,S,I={}){var R=this;return n(function*(){const M={"content-type":"application/fhir+json",...Fl.lcKeys(I.headers)},A={...I,headers:M};return R.request("POST",y,A,S)})()}patch(y,S,I){var R=this;return n(function*(){return R.request("PATCH",y,I,S)})()}expandUrl(y=""){return y.toLowerCase().startsWith("http")?y:this.baseUrl.endsWith("/")&&y.startsWith("/")?this.baseUrl+y.slice(1):this.baseUrl.endsWith("/")||y.startsWith("/")?this.baseUrl+y:`${this.baseUrl}/${y}`}mergeHeaders(y){const{lcKeys:S}=Fl;return{...S(s),...S(this.authHeader),...S(this.customHeaders),...S(y)}}}},2832:(ye,W,p)=>{const n=p(642),f=p(1455)("fhir-kit-client:error"),_=p(1455)("fhir-kit-client:info");function m(o){return n(o)}function s(o){return m(o.raw&&"function"==typeof o.raw?o.raw():o)}ye.exports={logRequestError:function(o){!f.enabled||(f("!!! Error"),o.response&&f(` Status: ${o.response.status}`),o.config&&(f(` ${o.config.method.toUpperCase()}: ${o.config.url}`),f(` Headers: ${s(o.config.headers)}`)),o.response&&o.response.data&&f(m(o.response.data)),f("!!! Request Error"))},logRequestInfo:function(o,i,c){!_.enabled||(i&&_(`Request: ${o.toUpperCase()} ${i.toString()}`),_(`Request Headers: ${s(c)}`))},logResponseInfo:function(o){!_.enabled||(_(`Response: ${o.status}`),o.data&&_(m(o.data)))},logError:function(o){!f.enabled||f(o)}}},8178:ye=>{ye.exports=class{constructor(n){this.httpClient=n}nextPage(n,{headers:f}={}){const _=n.link.find(m=>"next"===m.relation);return _?this.httpClient.get(_.url,{headers:f}):void 0}prevPage(n,{headers:f}={}){const _=n.link.find(m=>m.relation.match(/^prev(ious)?$/));return _?this.httpClient.get(_.url,{headers:f}):void 0}}},6523:(ye,W,p)=>{var n=p(8926).default;const{splitReference:f}=p(4943),{deprecateHeaders:_}=p(5143);ye.exports=class{constructor(m){this.client=m}resolve({reference:m,context:s,headers:d,options:u={}}={}){var h=this;return n(function*(){return void 0===s?m.startsWith("http")?h.resolveAbsoluteReference(m,_(u,d)):h.client.httpClient.get(m,_(u,d)):m.startsWith("#")?h.resolveContainedReference(m,s):h.resolveBundleReference(m,s,_(u,d))})()}resolveAbsoluteReference(m,s){var d=this;return n(function*(){if(m.startsWith(d.client.baseUrl))return d.client.httpClient.get(m,s);const{baseUrl:u,resourceType:h,id:r}=f(m);return new(p(2518))({baseUrl:u}).read({resourceType:h,id:r,options:s})})()}resolveContainedReference(m,s){if(s.contained){const d=m.slice(1),u=s.contained.find(h=>h.id===d);if(u)return u}throw new Error(`Unable to resolve contained reference: ${m}`)}resolveBundleReference(m,s,d){var u=this;return n(function*(){const h=new RegExp(`(^|/)${m}$`),r=s.entry.find(o=>h.test(o.fullUrl));return r?r.resource:u.resolve({reference:m,options:d})})()}}},2778:(ye,W,p)=>{const{logError:f}=p(2832);ye.exports={authFromCapability:function(s){const d={};try{return s.rest.forEach(u=>{u.security.extension.find(r=>"http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris"===r.url).extension.forEach(r=>{switch(r.url){case"authorize":d.authorizeUrl=new URL(r.valueUri);break;case"token":d.tokenUrl=new URL(r.valueUri);break;case"register":d.registerUrl=new URL(r.valueUri);break;case"manage":d.manageUrl=new URL(r.valueUri)}})}),d}catch(u){return f(u),d}},authFromWellKnown:function(s){const{authorization_endpoint:d,token_endpoint:u,registration_endpoint:h}=s;return{authorizeUrl:d&&new URL(d),tokenUrl:u&&new URL(u),registerUrl:h&&new URL(h)}}}},4943:(ye,W,p)=>{const n=p(6814),{fhirReferenceRegEx:f}=p(2006);ye.exports={createQueryString:function(d){if(d instanceof Object&&Object.keys(d).length>0)return n.stringify(d)},splitReference:function(d){if(!d.match(f))throw new Error(`${d} is not a recognized FHIR reference`);let u,h=d;d.startsWith("http")&&([,u]=f.exec(d),h=d.slice(u.length),u.endsWith("/")&&(u=u.slice(0,-1)));const[r,o]=h.split("/");return{baseUrl:u,resourceType:r,id:o}},validResourceType:function(d){return!d.startsWith("/")&&!d.includes(":")&&/\S/.test(d)}}},7937:function(){var ye;ye="undefined"!=typeof self?self:this,function(p){var n_searchParams="URLSearchParams"in ye,n_iterable="Symbol"in ye&&"iterator"in Symbol,n_blob="FileReader"in ye&&"Blob"in ye&&function(){try{return new Blob,!0}catch(x){return!1}}(),n_formData="FormData"in ye,n_arrayBuffer="ArrayBuffer"in ye;if(n_arrayBuffer)var _=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(x){return x&&_.indexOf(Object.prototype.toString.call(x))>-1};function s(x){if("string"!=typeof x&&(x=String(x)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(x))throw new TypeError("Invalid character in header field name");return x.toLowerCase()}function d(x){return"string"!=typeof x&&(x=String(x)),x}function u(x){var C={next:function(){var L=x.shift();return{done:void 0===L,value:L}}};return n_iterable&&(C[Symbol.iterator]=function(){return C}),C}function h(x){this.map={},x instanceof h?x.forEach(function(C,L){this.append(L,C)},this):Array.isArray(x)?x.forEach(function(C){this.append(C[0],C[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(C){this.append(C,x[C])},this)}function r(x){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}function o(x){return new Promise(function(C,L){x.onload=function(){C(x.result)},x.onerror=function(){L(x.error)}})}function i(x){var C=new FileReader,L=o(C);return C.readAsArrayBuffer(x),L}function g(x){if(x.slice)return x.slice(0);var C=new Uint8Array(x.byteLength);return C.set(new Uint8Array(x)),C.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(x){this._bodyInit=x,x?"string"==typeof x?this._bodyText=x:n_blob&&Blob.prototype.isPrototypeOf(x)?this._bodyBlob=x:n_formData&&FormData.prototype.isPrototypeOf(x)?this._bodyFormData=x:n_searchParams&&URLSearchParams.prototype.isPrototypeOf(x)?this._bodyText=x.toString():n_arrayBuffer&&n_blob&&function(x){return x&&DataView.prototype.isPrototypeOf(x)}(x)?(this._bodyArrayBuffer=g(x.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n_arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(x)||m(x))?this._bodyArrayBuffer=g(x):this._bodyText=x=Object.prototype.toString.call(x):this._bodyText="",this.headers.get("content-type")||("string"==typeof x?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n_searchParams&&URLSearchParams.prototype.isPrototypeOf(x)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n_blob&&(this.blob=function(){var x=r(this);if(x)return x;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?r(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(i)}),this.text=function(){var x=r(this);if(x)return x;if(this._bodyBlob)return function(x){var C=new FileReader,L=o(C);return C.readAsText(x),L}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(x){for(var C=new Uint8Array(x),L=new Array(C.length),F=0;F-1?C:x}(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}function R(x){var C=new FormData;return x.trim().split("&").forEach(function(L){if(L){var F=L.split("="),re=F.shift().replace(/\+/g," "),Y=F.join("=").replace(/\+/g," ");C.append(decodeURIComponent(re),decodeURIComponent(Y))}}),C}function M(x){var C=new h;return x.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(F){var re=F.split(":"),Y=re.shift().trim();if(Y){var X=re.join(":").trim();C.append(Y,X)}}),C}function A(x,C){C||(C={}),this.type="default",this.status=void 0===C.status?200:C.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in C?C.statusText:"OK",this.headers=new h(C.headers),this.url=C.url||"",this._initBody(x)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})},b.call(I.prototype),b.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},A.error=function(){var x=new A(null,{status:0,statusText:""});return x.type="error",x};var D=[301,302,303,307,308];A.redirect=function(x,C){if(-1===D.indexOf(C))throw new RangeError("Invalid status code");return new A(null,{status:C,headers:{location:x}})},p.DOMException=ye.DOMException;try{new p.DOMException}catch(x){p.DOMException=function(C,L){this.message=C,this.name=L;var F=Error(C);this.stack=F.stack},p.DOMException.prototype=Object.create(Error.prototype),p.DOMException.prototype.constructor=p.DOMException}function w(x,C){return new Promise(function(L,F){var re=new I(x,C);if(re.signal&&re.signal.aborted)return F(new p.DOMException("Aborted","AbortError"));var Y=new XMLHttpRequest;function X(){Y.abort()}Y.onload=function(){var ee={status:Y.status,statusText:Y.statusText,headers:M(Y.getAllResponseHeaders()||"")};ee.url="responseURL"in Y?Y.responseURL:ee.headers.get("X-Request-URL"),L(new A("response"in Y?Y.response:Y.responseText,ee))},Y.onerror=function(){F(new TypeError("Network request failed"))},Y.ontimeout=function(){F(new TypeError("Network request failed"))},Y.onabort=function(){F(new p.DOMException("Aborted","AbortError"))},Y.open(re.method,re.url,!0),"include"===re.credentials?Y.withCredentials=!0:"omit"===re.credentials&&(Y.withCredentials=!1),"responseType"in Y&&n_blob&&(Y.responseType="blob"),re.headers.forEach(function(ee,$){Y.setRequestHeader($,ee)}),re.signal&&(re.signal.addEventListener("abort",X),Y.onreadystatechange=function(){4===Y.readyState&&re.signal.removeEventListener("abort",X)}),Y.send(void 0===re._bodyInit?null:re._bodyInit)})}w.polyfill=!0,ye.fetch||(ye.fetch=w,ye.Headers=h,ye.Request=I,ye.Response=A),p.Headers=h,p.Request=I,p.Response=A,p.fetch=w}({})},6814:(ye,W,p)=>{"use strict";const n=p(6696),f=p(2761),_=p(1953);function u(y){if("string"!=typeof y||1!==y.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(y,S){return S.encode?S.strict?n(y):encodeURIComponent(y):y}function r(y,S){return S.decode?f(y):y}function o(y){return Array.isArray(y)?y.sort():"object"==typeof y?o(Object.keys(y)).sort((S,I)=>Number(S)-Number(I)).map(S=>y[S]):y}function i(y){const S=y.indexOf("#");return-1!==S&&(y=y.slice(0,S)),y}function l(y){const S=(y=i(y)).indexOf("?");return-1===S?"":y.slice(S+1)}function g(y,S){return S.parseNumbers&&!Number.isNaN(Number(y))&&"string"==typeof y&&""!==y.trim()?y=Number(y):S.parseBooleans&&null!==y&&("true"===y.toLowerCase()||"false"===y.toLowerCase())&&(y="true"===y.toLowerCase()),y}function b(y,S){u((S=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},S)).arrayFormatSeparator);const I=function(y){let S;switch(y.arrayFormat){case"index":return(I,R,M)=>{S=/\[(\d*)\]$/.exec(I),I=I.replace(/\[\d*\]$/,""),S?(void 0===M[I]&&(M[I]={}),M[I][S[1]]=R):M[I]=R};case"bracket":return(I,R,M)=>{S=/(\[\])$/.exec(I),M[I=I.replace(/\[\]$/,"")]=S?void 0!==M[I]?[].concat(M[I],R):[R]:R};case"comma":case"separator":return(I,R,M)=>{const D="string"==typeof R&&R.split("").indexOf(y.arrayFormatSeparator)>-1?R.split(y.arrayFormatSeparator).map(w=>r(w,y)):null===R?R:r(R,y);M[I]=D};default:return(I,R,M)=>{M[I]=void 0!==M[I]?[].concat(M[I],R):R}}}(S),R=Object.create(null);if("string"!=typeof y||!(y=y.trim().replace(/^[?#&]/,"")))return R;for(const M of y.split("&")){let[A,D]=_(S.decode?M.replace(/\+/g," "):M,"=");D=void 0===D?null:["comma","separator"].includes(S.arrayFormat)?D:r(D,S),I(r(A,S),D,R)}for(const M of Object.keys(R)){const A=R[M];if("object"==typeof A&&null!==A)for(const D of Object.keys(A))A[D]=g(A[D],S);else R[M]=g(A,S)}return!1===S.sort?R:(!0===S.sort?Object.keys(R).sort():Object.keys(R).sort(S.sort)).reduce((M,A)=>{const D=R[A];return M[A]=Boolean(D)&&"object"==typeof D&&!Array.isArray(D)?o(D):D,M},Object.create(null))}W.extract=l,W.parse=b,W.stringify=(y,S)=>{if(!y)return"";u((S=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},S)).arrayFormatSeparator);const I=D=>S.skipNull&&(y=>null==y)(y[D])||S.skipEmptyString&&""===y[D],R=function(y){switch(y.arrayFormat){case"index":return S=>(I,R)=>{const M=I.length;return void 0===R||y.skipNull&&null===R||y.skipEmptyString&&""===R?I:null===R?[...I,[h(S,y),"[",M,"]"].join("")]:[...I,[h(S,y),"[",h(M,y),"]=",h(R,y)].join("")]};case"bracket":return S=>(I,R)=>void 0===R||y.skipNull&&null===R||y.skipEmptyString&&""===R?I:null===R?[...I,[h(S,y),"[]"].join("")]:[...I,[h(S,y),"[]=",h(R,y)].join("")];case"comma":case"separator":return S=>(I,R)=>null==R||0===R.length?I:0===I.length?[[h(S,y),"=",h(R,y)].join("")]:[[I,h(R,y)].join(y.arrayFormatSeparator)];default:return S=>(I,R)=>void 0===R||y.skipNull&&null===R||y.skipEmptyString&&""===R?I:null===R?[...I,h(S,y)]:[...I,[h(S,y),"=",h(R,y)].join("")]}}(S),M={};for(const D of Object.keys(y))I(D)||(M[D]=y[D]);const A=Object.keys(M);return!1!==S.sort&&A.sort(S.sort),A.map(D=>{const w=y[D];return void 0===w?"":null===w?h(D,S):Array.isArray(w)?w.reduce(R(D),[]).join("&"):h(D,S)+"="+h(w,S)}).filter(D=>D.length>0).join("&")},W.parseUrl=(y,S)=>{S=Object.assign({decode:!0},S);const[I,R]=_(y,"#");return Object.assign({url:I.split("?")[0]||"",query:b(l(y),S)},S&&S.parseFragmentIdentifier&&R?{fragmentIdentifier:r(R,S)}:{})},W.stringifyUrl=(y,S)=>{S=Object.assign({encode:!0,strict:!0},S);const I=i(y.url).split("?")[0]||"",R=W.extract(y.url),M=W.parse(R,{sort:!1}),A=Object.assign(M,y.query);let D=W.stringify(A,S);D&&(D=`?${D}`);let w=function(y){let S="";const I=y.indexOf("#");return-1!==I&&(S=y.slice(I)),S}(y.url);return y.fragmentIdentifier&&(w=`#${h(y.fragmentIdentifier,S)}`),`${I}${D}${w}`}},1953:ye=>{"use strict";ye.exports=(W,p)=>{if("string"!=typeof W||"string"!=typeof p)throw new TypeError("Expected the arguments to be of type `string`");if(""===p)return[W];const n=W.indexOf(p);return-1===n?[W]:[W.slice(0,n),W.slice(n+p.length)]}},6696:ye=>{"use strict";ye.exports=W=>encodeURIComponent(W).replace(/[!'()*]/g,p=>`%${p.charCodeAt(0).toString(16).toUpperCase()}`)},5424:(ye,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.Ucum=void 0,W.Ucum={dimLen_:7,validOps_:[".","/"],codeSep_:": ",valMsgStart_:"Did you mean ",valMsgEnd_:"?",cnvMsgStart_:"We assumed you meant ",cnvMsgEnd_:".",openEmph_:" ->",closeEmph_:"<- ",openEmphHTML_:'',closeEmphHTML_:"",bracesMsg_:"FYI - annotations (text in curly braces {}) are ignored, except that an annotation without a leading symbol implies the default unit 1 (the unity).",needMoleWeightMsg_:"Did you wish to convert between mass and moles? The molecular weight of the substance represented by the units is required to perform the conversion.",csvCols_:{"case-sensitive code":"csCode_","LOINC property":"loincProperty_","name (display)":"name_",synonyms:"synonyms_",source:"source_",category:"category_",Guidance:"guidance_"},inputKey_:"case-sensitive code",specUnits_:{"B[10.nV]":"specialUnitOne","[m/s2/Hz^(1/2)]":"specialUnitTwo"}}},6227:(ye,W,p)=>{"use strict";W.R=void 0;var f=p(5424),_=p(5984);class m{constructor(d){if(0===f.Ucum.dimLen_)throw new Error("Dimension.setDimensionLen must be called before Dimension constructor");if(null==d)this.assignZero();else if(d instanceof Array){if(d.length!==f.Ucum.dimLen_)throw new Error(`Parameter error, incorrect length of vector passed to Dimension constructor, vector = ${JSON.stringify(d)}`);this.dimVec_=[];for(let u=0;u=f.Ucum.dimLen_)throw new Error("Parameter error, invalid element number specified for Dimension constructor");this.assignZero(),this.dimVec_[d]=1}}setElementAt(d,u){if(!_(d)||d<0||d>=f.Ucum.dimLen_)throw new Error(`Dimension.setElementAt called with an invalid index position (${d})`);this.dimVec_||this.assignZero(),null==u&&(u=1),this.dimVec_[d]=u}getElementAt(d){if(!_(d)||d<0||d>=f.Ucum.dimLen_)throw new Error(`Dimension.getElementAt called with an invalid index position (${d})`);let u=null;return this.dimVec_&&(u=this.dimVec_[d]),u}getProperty(d){return this["_"===d.charAt(d.length-1)?d:d+"_"]}toString(){let d=null;return this.dimVec_&&(d="["+this.dimVec_.join(", ")+"]"),d}add(d){if(!d instanceof m)throw new Error(`Dimension.add called with an invalid parameter - ${typeof d} instead of a Dimension object`);if(this.dimVec_&&d.dimVec_)for(let u=0;u{"use strict";W.DP=function(r){const o=r&&r.config;if(o){if(o.length&&r.data){const i=m(o);return r.data.map(d.bind(null,i))}return r.data}return r};function m(r){return r.map(o=>Array.isArray(o)?o:[o])}function d(r,o){let i={};return r.forEach((c,l)=>{let g=i;for(let b=0;b{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.Prefix=void 0,p(5424),W.Prefix=class{constructor(m){if(null==m.code_||null==m.name_||null==m.value_||void 0===m.exp_)throw new Error("Prefix constructor called missing one or more parameters. Prefix codes (cs or ci), name, value and exponent must all be specified and all but the exponent must not be null.");this.code_=m.code_,this.ciCode_=m.ciCode_,this.name_=m.name_,this.printSymbol_=m.printSymbol_,this.value_="string"==typeof m.value_?parseFloat(m.value_):m.value_,this.exp_=m.exp_}getValue(){return this.value_}getCode(){return this.code_}getCiCode(){return this.ciCode_}getName(){return this.name_}getPrintSymbol(){return this.printSymbol_}getExp(){return this.exp_}equals(m){return this.code_===m.code_&&this.ciCode_===m.ciCode_&&this.name_===m.name_&&this.printSymbol_===m.printSymbol_&&this.value_===m.value_&&this.exp_===m.exp_}}},5361:(ye,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.PrefixTables=W.PrefixTablesFactory=void 0;class p{constructor(){this.byCode_={},this.byValue_={}}prefixCount(){return Object.keys(this.byCode_).length}allPrefixesByValue(){let m="",s=Object.keys(this.byValue_),d=s.length;for(let u=0;u{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=void 0;var n=new class{constructor(){this.funcs={},this.funcs.cel={cnvTo:function(_){return _-273.15},cnvFrom:function(_){return _+273.15}},this.funcs.degf={cnvTo:function(_){return _-459.67},cnvFrom:function(_){return _+459.67}},this.funcs.degre={cnvTo:function(_){return _-273.15},cnvFrom:function(_){return _+273.15}},this.funcs.ph={cnvTo:function(_){return-Math.log(_)/Math.LN10},cnvFrom:function(_){return Math.pow(10,-_)}},this.funcs.ln={cnvTo:function(_){return Math.log(_)},cnvFrom:function(_){return Math.exp(_)}},this.funcs["2ln"]={cnvTo:function(_){return 2*Math.log(_)},cnvFrom:function(_){return Math.exp(_/2)}},this.funcs.lg={cnvTo:function(_){return Math.log(_)/Math.LN10},cnvFrom:function(_){return Math.pow(10,_)}},this.funcs["10lg"]={cnvTo:function(_){return 10*Math.log(_)/Math.LN10},cnvFrom:function(_){return Math.pow(10,_/10)}},this.funcs["20lg"]={cnvTo:function(_){return 20*Math.log(_)/Math.LN10},cnvFrom:function(_){return Math.pow(10,_/20)}},this.funcs["2lg"]={cnvTo:function(_){return 2*Math.log(_)/Math.LN10},cnvFrom:function(_){return Math.pow(10,_/2)}},this.funcs.lgtimes2=this.funcs["2lg"],this.funcs.ld={cnvTo:function(_){return Math.log(_)/Math.LN2},cnvFrom:function(_){return Math.pow(2,_)}},this.funcs["100tan"]={cnvTo:function(_){return 100*Math.tan(_)},cnvFrom:function(_){return Math.atan(_/100)}},this.funcs.tanTimes100=this.funcs["100tan"],this.funcs.sqrt={cnvTo:function(_){return Math.sqrt(_)},cnvFrom:function(_){return _*_}},this.funcs.inv={cnvTo:function(_){return 1/_},cnvFrom:function(_){return 1/_}},this.funcs.hpX={cnvTo:function(_){return-this.funcs.lg(_)},cnvFrom:function(_){return Math.pow(10,-_)}},this.funcs.hpC={cnvTo:function(_){return-this.func.ln(_)/this.funcs.ln(100)},cnvFrom:function(_){return Math.pow(100,-_)}},this.funcs.hpM={cnvTo:function(_){return-this.funcs.ln(_)/this.funcs.ln(1e3)},cnvFrom:function(_){return Math.pow(1e3,-_)}},this.funcs.hpQ={cnvTo:function(_){return-this.funcs.ln(_)/this.funcs.ln(5e4)},cnvFrom:function(_){return Math.pow(5e4,-_)}}}forName(_){_=_.toLowerCase();let m=this.funcs[_];if(null===m)throw new Error(`Requested function ${_} is not defined`);return m}isDefined(_){return _=_.toLowerCase(),null!==this.funcs[_]}};W.default=n},4693:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.isNumericString=function(s){let d=""+s;return!isNaN(d)&&!isNaN(parseFloat(d))},W.isIntegerUnit=function(s){return/^\d+$/.test(s)},W.getSynonyms=function(s){let d={},h={};if(h=n.getInstance().getUnitBySynonym(s),h.units){d.status="succeeded";let r=h.units.length;d.units=[];for(let o=0;o{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.ucumJsonDefs=W.UcumJsonDefs=void 0;var n=p(3355),f=p(5361),_=p(8897),m=p(8334),s=p(4784).DP;class d{loadJsonDefs(){const r=p(8210);if(r.prefixes=s(r.prefixes),r.units=s(r.units),0===m.UnitTables.getInstance().unitsCount()){let o=f.PrefixTables.getInstance(),i=r.prefixes,c=i.length;for(let y=0;y{"use strict";W.n=void 0;var f=p(6395),_=function(o){if(o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var i=m();if(i&&i.has(o))return i.get(o);var c={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in o)if(Object.prototype.hasOwnProperty.call(o,g)){var b=l?Object.getOwnPropertyDescriptor(o,g):null;b&&(b.get||b.set)?Object.defineProperty(c,g,b):c[g]=o[g]}return c.default=o,i&&i.set(o,c),c}(p(4693));function m(){if("function"!=typeof WeakMap)return null;var o=new WeakMap;return m=function(){return o},o}var d=p(5424).Ucum,u=p(8334).UnitTables,h=p(5744).T;class r{constructor(){0===u.getInstance().unitsCount()&&f.ucumJsonDefs.loadJsonDefs(),this.uStrParser_=h.getInstance()}useHTMLInMessages(i){void 0===i&&(i=!0),this.uStrParser_.useHTMLInMessages(i)}useBraceMsgForEachString(i){void 0===i&&(i=!0),this.uStrParser_.useBraceMsgForEachString(i)}validateUnitString(i,c,l){void 0===c&&(c=!1),void 0===l&&(l="validate");let g=this.getSpecifiedUnit(i,l,c),b=g.unit,y={};return y=b?{status:g.origString===i?"valid":"invalid",ucumCode:g.origString,unit:{code:b.csCode_,name:b.name_,guidance:b.guidance_}}:{status:g.origString&&null!==g.origString?"invalid":"error",ucumCode:null},g.suggestions&&(y.suggestions=g.suggestions),y.msg=g.retMsg,y}convertUnitTo(i,c,l,g,b){void 0===g&&(g=!1),void 0===b&&(b=null);let y={status:"failed",toVal:null,msg:[]};if(i&&(i=i.trim()),(!i||""==i)&&(y.status="error",y.msg.push('No "from" unit expression specified.')),(null===c||isNaN(c)||"number"!=typeof c&&!_.isNumericString(c))&&(y.status="error",y.msg.push('No "from" value, or an invalid "from" value, was specified.')),l&&(l=l.trim()),(!l||""==l)&&(y.status="error",y.msg.push('No "to" unit expression specified.')),"error"!==y.status)try{let S=null,I=this.getSpecifiedUnit(i,"convert",g);S=I.unit,I.retMsg&&(y.msg=y.msg.concat(I.retMsg)),I.suggestions&&(y.suggestions={},y.suggestions.from=I.suggestions),S||y.msg.push(`Unable to find a unit for ${i}, so no conversion could be performed.`);let R=null;if(I=this.getSpecifiedUnit(l,"convert",g),R=I.unit,I.retMsg&&(y.msg=y.msg.concat(I.retMsg)),I.suggestions&&(y.suggestions||(y.suggestions={}),y.suggestions.to=I.suggestions),R||y.msg.push(`Unable to find a unit for ${l}, so no conversion could be performed.`),S&&R)try{if(b){if(0!==S.moleExp_&&0!==R.moleExp_)throw new Error("A molecular weight was specified but a mass <-> mole conversion cannot be executed for two mole-based units. No conversion was attempted.");if(0===S.moleExp_&&0===R.moleExp_)throw new Error("A molecular weight was specified but a mass <-> mole conversion cannot be executed when neither unit is mole-based. No conversion was attempted.");if(!S.isMoleMassCommensurable(R))throw new Error(`Sorry. ${i} cannot be converted to ${l}.`);y.toVal=0!==S.moleExp_?S.convertMolToMass(c,R,b):S.convertMassToMol(c,R,b)}else y.toVal=R.convertFrom(c,S);y.status="succeeded",y.fromUnit=S,y.toUnit=R}catch(M){y.status="failed",y.msg.push(M.message)}}catch(S){y.status=S.message==d.needMoleWeightMsg_?"failed":"error",y.msg.push(S.message)}return y}checkSynonyms(i){let c={};return null==i?(c.status="error",c.msg="No term specified for synonym search."):c=_.getSynonyms(i),c}getSpecifiedUnit(i,c,l){void 0===l&&(l=!1);let g={retMsg:[]};if(i){let b=u.getInstance();i=i.trim();let y=b.getUnitByCode(i);if(y)g.unit=y,g.origString=i;else try{let S=this.uStrParser_.parseString(i,c,l);g.unit=S[0],g.origString=S[1],S[2]&&(g.retMsg=S[2]),g.suggestions=S[3]}catch(S){console.log(`Unit requested for unit string ${i}.request unsuccessful; error thrown = `+S.message),g.retMsg.unshift(`${i} is not a valid unit. ${S.message}`)}}else g.retMsg.push("No unit string specified.");return g}commensurablesList(i){let c=[],l=null,g=this.getSpecifiedUnit(i,"validate",!1),b=g.unit;if(g.retMsg.length>0&&(c=g.retMsg),b){let y=null,S=b.getProperty("dim_");if(S){try{y=S.getProperty("dimVec_")}catch(I){c.push(I.message),"Dimension does not have requested property(dimVec_)"===I.message&&(y=null)}y&&(l=u.getInstance().getUnitsByDimension(y))}else c.push("No commensurable units were found for "+i)}else c.push(`Could not find unit ${i}.`);return[l,c]}}W.n=r,r.getInstance=function(){return new r}},1334:(ye,W,p)=>{"use strict";W.ng=void 0,p(5424);var _=p(4854).n;W.ng=_,p(8334)},8897:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.Unit=void 0;var i,n=(i=p(8287))&&i.__esModule?i:{default:i},f=function(i){if(i&&i.__esModule)return i;if(null===i||"object"!=typeof i&&"function"!=typeof i)return{default:i};var c=_();if(c&&c.has(i))return c.get(i);var l={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in i)if(Object.prototype.hasOwnProperty.call(i,b)){var y=g?Object.getOwnPropertyDescriptor(i,b):null;y&&(y.get||y.set)?Object.defineProperty(l,b,y):l[b]=i[b]}return l.default=i,c&&c.set(i,l),l}(p(4693));function _(){if("function"!=typeof WeakMap)return null;var i=new WeakMap;return _=function(){return i},i}var h,d=p(5424).Ucum,u=p(6227).R,r=p(5984);class o{constructor(c={}){this.isBase_=c.isBase_||!1,this.name_=c.name_||"",this.csCode_=c.csCode_||"",this.ciCode_=c.ciCode_||"",this.property_=c.property_||"",this.magnitude_=c.magnitude_||1,this.dim_=null==c.dim_?new u:void 0!==c.dim_.dimVec_?new u(c.dim_.dimVec_):c.dim_ instanceof u?c.dim_:c.dim_ instanceof Array||r(c.dim_)?new u(c.dim_):new u,this.printSymbol_=c.printSymbol_||null,this.class_=c.class_||null,this.isMetric_=c.isMetric_||!1,this.variable_=c.variable_||null,this.cnv_=c.cnv_||null,this.cnvPfx_=c.cnvPfx_||1,this.isSpecial_=c.isSpecial_||!1,this.isArbitrary_=c.isArbitrary_||!1,this.moleExp_=c.moleExp_||0,this.synonyms_=c.synonyms_||null,this.source_=c.source_||null,this.loincProperty_=c.loincProperty_||null,this.category_=c.category_||null,this.guidance_=c.guidance_||null,this.csUnitString_=c.csUnitString_||null,this.ciUnitString_=c.ciUnitString_||null,this.baseFactorStr_=c.baseFactorStr_||null,this.baseFactor_=c.baseFactor_||null,this.defError_=c.defError_||!1}assignUnity(){return this.name_="",this.magnitude_=1,this.dim_||(this.dim_=new u),this.dim_.assignZero(),this.cnv_=null,this.cnvPfx_=1,this}assignVals(c){for(let l in c){let g="_"===!l.charAt(l.length-1)?l+"_":l;if(!this.hasOwnProperty(g))throw new Error(`Parameter error; ${l} is not a property of a Unit`);this[g]=c[l]}}clone(){let c=new o;return Object.getOwnPropertyNames(this).forEach(l=>{"dim_"===l?c.dim_=this.dim_?this.dim_.clone():null:c[l]=this[l]}),c}assign(c){Object.getOwnPropertyNames(c).forEach(l=>{"dim_"===l?this.dim_=c.dim_?c.dim_.clone():null:this[l]=c[l]})}equals(c){return this.magnitude_===c.magnitude_&&this.cnv_===c.cnv_&&this.cnvPfx_===c.cnvPfx_&&(null===this.dim_&&null===c.dim_||this.dim_.equals(c.dim_))}fullEquals(c){let l=Object.keys(this).sort(),g=Object.keys(c).sort(),b=l.length,y=b===g.length;for(let S=0;S0){let l=c.replace("/","!").replace(".","/").replace("!",".");switch(l.charAt(0)){case".":c=l.substr(1);break;case"/":c=l;break;default:c="/"+l}}return c}_concatStrs(c,l,g,b,y){return this._buildOneString(c,b,y)+l+this._buildOneString(g,b,y)}_buildOneString(c,l,g){let b="";return b=f.isNumericString(c)||"("===c.charAt(0)||"["===c.charAt(0)?c:/[./* ]/.test(c)?l+c+g:c,b}power(c){if(null!=this.cnv_)throw new Error(`Attempt to raise a non-ratio unit, ${this.name_}, to a power.`);let g=this.csCode_.match(/([./]|[^./]+)/g),b=g.length;for(let y=0;y=0;M--){let A=parseInt(S[M]);if(!r(A)){if(("-"===S[M]||"+"===S[M])&&M--,M{"use strict";W.T=void 0;var f=function(o){if(o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var i=_();if(i&&i.has(o))return i.get(o);var c={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in o)if(Object.prototype.hasOwnProperty.call(o,g)){var b=l?Object.getOwnPropertyDescriptor(o,g):null;b&&(b.get||b.set)?Object.defineProperty(c,g,b):c[g]=o[g]}return c.default=o,i&&i.set(o,c),c}(p(4693));function _(){if("function"!=typeof WeakMap)return null;var o=new WeakMap;return _=function(){return o},o}var s=p(5424).Ucum,d=p(8897).Unit,u=p(8334).UnitTables,h=p(5361).PrefixTables;class r{constructor(){this.utabs_=u.getInstance(),this.pfxTabs_=h.getInstance(),this.openEmph_=s.openEmph_,this.closeEmph_=s.closeEmph_,this.bracesMsg_="",this.parensFlag_="parens_placeholder",this.pFlagLen_=this.parensFlag_.length,this.braceFlag_="braces_placeholder",this.bFlagLen_=this.braceFlag_.length,this.vcMsgStart_=null,this.vcMsgEnd_=null,this.retMsg_=[],this.parensUnits_=[],this.annotations_=[],this.suggestions=[]}useHTMLInMessages(i){void 0===i||i?(this.openEmph_=s.openEmphHTML_,this.closeEmph_=s.closeEmphHTML_):(this.openEmph_=s.openEmph_,this.closeEmph_=s.closeEmph_)}useBraceMsgForEachString(i){this.bracesMsg_=void 0===i||i?s.bracesMsg_:""}parseString(i,c,l){if(""===(i=i.trim())||null===i)throw new Error("Please specify a unit expression to be validated.");"validate"===c?(this.vcMsgStart_=s.valMsgStart_,this.vcMsgEnd_=s.valMsgEnd_):(this.vcMsgStart_=s.cnvMsgStart_,this.vcMsgEnd_=s.cnvMsgEnd_),this.suggestions_=void 0===l||!1===l?null:[],this.retMsg_=[],this.parensUnits_=[],this.annotations_=[];let g=i,b=[];if(i=this._getAnnotations(i),this.retMsg_.length>0)b[0]=null,b[1]=null;else{let S=null;for(S in s.specUnits_)for(;-1!==i.indexOf(S);)i=i.replace(S,s.specUnits_[S]);if(i.indexOf(" ")>-1)throw new Error("Blank spaces are not allowed in unit expressions.");b=this._parseTheString(i,g);let I=b[0];(f.isIntegerUnit(I)||"number"==typeof I)&&(I=new d({csCode_:g,magnitude_:I,name_:g}),b[0]=I)}return b[2]=this.retMsg_,this.suggestions_&&this.suggestions_.length>0&&(b[3]=this.suggestions_),b}_parseTheString(i,c){let l=null,g=this.retMsg_.length>0,b=this._processParens(i,c);g=b[2];let y=[];if(!g){let S=this._makeUnitsArray(i=b[0],c=b[1]);if(g=S[2],!g){y=S[0],c=S[1];let I=y.length;for(let R=0;R=0){let A=this._getParensUnit(M,c);g||(g=A[1]),g||(y[R].un=A[0])}else{let A=this._makeUnit(M,c);null===A[0]?g=!0:(y[R].un=A[0],c=A[1])}}}}return g||(null===y[0]||" "===y[0]||null==y[0].un)&&0===this.retMsg_.length&&(this.retMsg_.push(`Unit string (${c}) did not contain anything that could be used to create a unit, or else something that is not handled yet by this package. Sorry`),g=!0),g||(l=this._performUnitArithmetic(y,c)),[l,c]}_getAnnotations(i){let c=i.indexOf("{");for(;c>=0;){let g=i.indexOf("}");if(g<0)this.retMsg_.push("Missing closing brace for annotation starting at "+this.openEmph_+i.substr(c)+this.closeEmph_),c=-1;else{let b=i.substring(c,g+1),y=this.annotations_.length.toString();i=i.replace(b,this.braceFlag_+y+this.braceFlag_),this.annotations_.push(b),c=i.indexOf("{")}}let l=i.indexOf("}");return l>=0&&this.retMsg_.push("Missing opening brace for closing brace found at "+this.openEmph_+i.substring(0,l+1)+this.closeEmph_),i}_processParens(i,c){let l=[],g=0,b=!1,y=this.parensUnits_.length,S=0;for(;""!==i&&!b;){let I=0,R=0,M=i.indexOf("(");if(M<0){let A=i.indexOf(")");if(A>=0){let D=`Missing open parenthesis for close parenthesis at ${i.substring(0,A+S)}${this.openEmph_}${i.substr(A,1)}${this.closeEmph_}`;A0&&(l[g++]=i.substr(0,M));let D=0,w=M+1;for(;w0&&(R=i.substr(0,I-1));let M=i.lastIndexOf(this.parensFlag_),A=null;M+this.pFlagLen_=0){let w=this._getAnnoText(R,c);if(w[1]||w[2])throw new Error(`Text found before the parentheses (${R}) included an annotation along with other text for parenthetical unit ${b.csCode_}`);this.retMsg_.push(`The annotation ${w[0]} before the unit code is invalid.\n`+this.vcMsgStart_+(i+=w[0])+this.vcMsgEnd_)}else this.suggestions_?l="succeeded"!==this._getSuggestions(R):(this.retMsg_.push(`${R} preceding the unit code ${i} is invalid. Unable to make a substitution.`),l=!0);if(A)if(A.indexOf(this.braceFlag_)>=0){let w=this._getAnnoText(A,c);if(w[1]||w[2])throw new Error(`Text found after the parentheses (${A}) included an annotation along with other text for parenthetical unit ${b.csCode_}`);i+=w[0]}else f.isNumericString(A)?(i+=A,b=b.power(Number(A)),this.retMsg_.push(`An exponent (${A}) following a parenthesis is invalid as of revision 1.9 of the UCUM Specification.\n `+this.vcMsgStart_+i+this.vcMsgEnd_)):this.suggestions_?l="succeeded"!==this._getSuggestions(R):(this.retMsg_.push(`Text ${A} following the unit code ${i} is invalid. Unable to make a substitution.`),l=!0);return l||(b?f.isIntegerUnit(b)?b=new d({csCode_:b,magnitude_:b,name_:b}):b.csCode_=i:b=new d({csCode_:i,magnitude_:1,name_:i})),[b,l]}_getAnnoText(i,c){let l=i.indexOf(this.braceFlag_),g=l>0?i.substring(0,l):null;0!==l&&(i=i.substr(l));let b=i.indexOf(this.braceFlag_,1),y=b+this.bFlagLen_=this.annotations_.length)throw new Error(`Processing Error - invalid annotation index ${S} found in ${i} that was created from ${c}`);return[i=this.annotations_[I],g,y]}_getSuggestions(i){let c=f.getSynonyms(i);if("succeeded"===c.status){let l={};l.msg=`${i} is not a valid UCUM code. We found possible units that might be what was meant:`,l.invalidUnit=i;let g=c.units.length;l.units=[];for(let b=0;b=0){let g=this._getUnitWithAnnotation(i,c);l=g[0],l&&(c=g[1])}else{if(i.indexOf("^")>-1){let g=i.replace("^","*");l=this.utabs_.getUnitByCode(g),l&&(l=l.clone(),l.csCode_=l.csCode_.replace("*","^"),l.ciCode_=l.ciCode_.replace("*","^"))}if(!l){let g="["+i+"]";l=this.utabs_.getUnitByCode(g),l&&(l=l.clone(),c=c.replace(i,g),this.retMsg_.push(`${i} is not a valid unit expression, but ${g} is.\n`+this.vcMsgStart_+`${g} (${l.name_})${this.vcMsgEnd_}`))}if(!l){let g=this.utabs_.getUnitByName(i);if(g&&g.length>0){l=g[0].clone();let b="The UCUM code for "+i+" is "+l.csCode_+".\n"+this.vcMsgStart_+l.csCode_+this.vcMsgEnd_,y=!1;for(let R=0;R"+re+"",csCode_:F+re,ciCode_:C+re,printSymbol_:L+""+re+""})}}else l=null,this.suggestions_?this._getSuggestions(g):this.retMsg_.push(`${g} is not a valid UCUM code.`)}}return[l,c]}_getUnitWithAnnotation(i,c){let l=null,g=this._getAnnoText(i,c),b=g[0],y=g[1],S=g[2];this.bracesMsg_&&-1===this.retMsg_.indexOf(this.bracesMsg_)&&this.retMsg_.push(this.bracesMsg_);let I=this.retMsg_.length;if(y||S)if(y&&!S)if(f.isIntegerUnit(y))l=y;else{let R=this._makeUnit(y,c);R[0]?(l=R[0],l.csCode_+=b,c=R[1]):this.retMsg_.push(`Unable to find a unit for ${y} that precedes the annotation ${b}.`)}else if(!y&&S)if(f.isIntegerUnit(S))l=S+b,this.retMsg_.push(`The annotation ${b} before the ``${S} is invalid.\n`+this.vcMsgStart_+l+this.vcMsgEnd_);else{let R=this._makeUnit(S,c);R[0]?(l=R[0],l.csCode_+=b,c=l.csCode_,this.retMsg_.push(`The annotation ${b} before the unit code is invalid.\n`+this.vcMsgStart_+l.csCode_+this.vcMsgEnd_)):this.retMsg_.push(`Unable to find a unit for ${y} that follows the annotation ${b}.`)}else this.retMsg_.push(`Unable to find a unit for ${y}${b}${S}.\nWe are not sure how to interpret text both before and after the annotation. Sorry`);else{let R="["+b.substring(1,b.length-1)+"]",M=this._makeUnit(R,c);M[0]?(l=M[0],c=c.replace(b,R),this.retMsg_.push(`${b} is not a valid unit expression, but ${R} is.\n`+this.vcMsgStart_+`${R} (${l.name_})${this.vcMsgEnd_}`)):(this.retMsg_.length>I&&this.retMsg_.pop(),i=1,l=1)}return[l,c]}_performUnitArithmetic(i,c){let l=i[0].un;f.isIntegerUnit(l)&&(l=new d({csCode_:l,magnitude_:Number(l),name_:l}));let g=i.length,b=!1;for(let y=1;y{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.UnitTables=void 0;var n=p(5424).Ucum,_=new class{constructor(){this.unitNames_={},this.unitCodes_={},this.codeOrder_=[],this.unitStrings_={},this.unitDimensions_={},this.unitSynonyms_={},this.massDimIndex_=0}unitsCount(){return Object.keys(this.unitCodes_).length}addUnit(d){d.name_&&this.addUnitName(d),this.addUnitCode(d),this.addUnitString(d);try{d.dim_.getProperty("dimVec_")&&this.addUnitDimension(d)}catch(h){}}addUnitName(d){let u=d.name_;if(!u)throw new Error(`UnitTables.addUnitName called for a unit with no name. Unit code = ${d.csCode_}.`);this.unitNames_[u]?this.unitNames_[u].push(d):this.unitNames_[u]=[d]}addUnitCode(d){let u=d.csCode_;if(!u)throw new Error("UnitTables.addUnitCode called for unit that has no code.");if(this.unitCodes_[u])throw new Error(`UnitTables.addUnitCode called, already contains entry for unit with code = ${u}`);if(this.unitCodes_[u]=d,this.codeOrder_.push(u),"g"==u){let h=d.dim_.dimVec_,r=0;for(;r=1&&(h=d.substr(u+n.codeSep_.length),d=d.substr(0,u));let r=this.unitNames_[d];if(r){let o=r.length;if(h&&o>1){let i=0;for(;r[i].csCode_!==h&&i0&&(h+=u),"dim_"===d[y])h+=null!=b.dim_&&b.dim_.dimVec_ instanceof Array?"["+b.dim_.dimVec_.join(",")+"]":"";else{let S=b[d[y]];h+="string"==typeof S?S.replace(/[\n\r]/g," "):S}h+="\r\n"}}return h}printUnits(d,u){void 0===d&&(d=!1),void 0===u&&(u="|");let h="",r=this.codeOrder_.length,o="csCode"+u;d&&(o+="ciCode"+u),o+="name"+u,d&&(o+="isBase"+u),o+="magnitude"+u+"dimension"+u+"from unit(s)"+u+"value"+u+"function"+u,d&&(o+="property"+u+"printSymbol"+u+"synonyms"+u+"source"+u+"class"+u+"isMetric"+u+"variable"+u+"isSpecial"+u+"isAbitrary"+u),o+="comment",h=o+"\n";for(let i=0;i{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.AppComponent=void 0;const n=p(655),m=(p(6165),p(2466),(0,n.__importStar)(p(5e3))),s=(0,n.__importStar)(p(2466)),d=(0,n.__importStar)(p(6165)),u=(0,n.__importStar)(p(4594)),h=(0,n.__importStar)(p(4202)),r=(0,n.__importStar)(p(7423)),o=(0,n.__importStar)(p(2181)),i=(0,n.__importStar)(p(5245));class c{constructor(g,b){g.setDefaultLang("de"),g.use(g.getBrowserLang()),"https://ahdis.github.io"===location.origin?(console.log("note: using ahdis test systems for matchbox and mag"+location.origin),b.changeFhirMicroService("https://test.ahdis.ch/matchboxv3/fhir"),b.changeMagMicroService("https://test.ahdis.ch/mag-pmp/fhir")):console.log("running at "+location.origin)}}W.AppComponent=c,c.\u0275fac=function(g){return new(g||c)(m.\u0275\u0275directiveInject(s.TranslateService),m.\u0275\u0275directiveInject(d.FhirConfigService))},c.\u0275cmp=m.\u0275\u0275defineComponent({type:c,selectors:[["app-root"]],decls:53,vars:1,consts:[["color","primary","role","header"],["routerLink","/",1,"home-link"],[1,"logo-container"],["src","assets/matchbox_logo_color.png"],[1,"example-fill-remaining-space"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","routerLink","/"],["mat-menu-item","","routerLink","/CapabilityStatement"],["mat-menu-item","","routerLink","/igs"],["mat-menu-item","","routerLink","/fhirpath"],["mat-menu-item","","routerLink","/mappinglanguage"],["mat-menu-item","","routerLink","/transform"],["mat-menu-item","","routerLink","/validate"],["mat-menu-item","","routerLink","/settings"],[1,"mat-typography"]],template:function(g,b){if(1&g&&(m.\u0275\u0275elementStart(0,"mat-toolbar",0),m.\u0275\u0275elementStart(1,"div",1),m.\u0275\u0275elementStart(2,"div",2),m.\u0275\u0275element(3,"img",3),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(4,"span",4),m.\u0275\u0275elementStart(5,"span"),m.\u0275\u0275elementStart(6,"button",5),m.\u0275\u0275elementStart(7,"mat-icon"),m.\u0275\u0275text(8,"more_vert"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(9,"mat-menu",null,6),m.\u0275\u0275elementStart(11,"button",7),m.\u0275\u0275elementStart(12,"mat-icon"),m.\u0275\u0275text(13,"home"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(14,"span"),m.\u0275\u0275text(15,"Home"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(16,"button",8),m.\u0275\u0275elementStart(17,"mat-icon"),m.\u0275\u0275text(18,"info"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(19,"span"),m.\u0275\u0275text(20,"CapabilityStatement"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(21,"button",9),m.\u0275\u0275elementStart(22,"mat-icon"),m.\u0275\u0275text(23,"info"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(24,"span"),m.\u0275\u0275text(25,"IGs ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(26,"button",10),m.\u0275\u0275elementStart(27,"mat-icon"),m.\u0275\u0275text(28,"search"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(29,"span"),m.\u0275\u0275text(30,"FHIRPath ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(31,"button",11),m.\u0275\u0275elementStart(32,"mat-icon"),m.\u0275\u0275text(33,"search"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(34,"span"),m.\u0275\u0275text(35,"FHIR mapping language ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(36,"button",12),m.\u0275\u0275elementStart(37,"mat-icon"),m.\u0275\u0275text(38,"search"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(39,"span"),m.\u0275\u0275text(40,"Transform ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(41,"button",13),m.\u0275\u0275elementStart(42,"mat-icon"),m.\u0275\u0275text(43,"Validate"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(44,"span"),m.\u0275\u0275text(45,"Validate ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(46,"button",14),m.\u0275\u0275elementStart(47,"mat-icon"),m.\u0275\u0275text(48,"settings"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(49,"span"),m.\u0275\u0275text(50,"Settings"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(51,"main",15),m.\u0275\u0275element(52,"router-outlet"),m.\u0275\u0275elementEnd()),2&g){const y=m.\u0275\u0275reference(10);m.\u0275\u0275advance(6),m.\u0275\u0275property("matMenuTriggerFor",y)}},directives:[u.MatToolbar,h.RouterLink,r.MatButton,o.MatMenuTrigger,i.MatIcon,o.MatMenu,o.MatMenuItem,h.RouterOutlet],styles:[".example-fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{padding-left:0}mat-toolbar[_ngcontent-%COMP%] .home-link[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;height:100%;width:160px;justify-content:center;align-items:center}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:calc(100% - 1.2em)}main[_ngcontent-%COMP%]{width:100%;margin:0 auto}@media screen and (min-width: 1020px){main[_ngcontent-%COMP%]{padding:3rem 0;width:1000px}}"]})},6747:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.AppModule=W.createTranslateLoader=void 0;const n=p(655),f=p(520),_=p(4202),m=p(2466),s=p(1744),d=p(5041),u=p(7901),h=p(4090),r=p(5067),o=p(6218),i=p(4586),c=p(4466),l=p(7206),g=p(2756),b=p(719),y=p(3026),S=p(6114),I=(0,n.__importStar)(p(5e3)),D=((0,n.__importStar)(p(4202)),(0,n.__importStar)(p(2466)),(0,n.__importStar)(p(6114)),[{path:"",component:r.HomeComponent},{path:"fhirpath",component:h.FhirPathComponent},{path:"mappinglanguage",component:o.MappingLanguageComponent},{path:"CapabilityStatement",component:u.CapabilityStatementComponent},{path:"igs",component:l.IgsComponent},{path:"settings",component:i.SettingsComponent},{path:"transform",component:b.TransformComponent},{path:"validate",component:y.ValidateComponent}]);function w(C){return new s.TranslateHttpLoader(C,"./assets/i18n/",".json")}W.createTranslateLoader=w;class x{}W.AppModule=x,x.\u0275fac=function(L){return new(L||x)},x.\u0275mod=I.\u0275\u0275defineNgModule({type:x,bootstrap:[d.AppComponent]}),x.\u0275inj=I.\u0275\u0275defineInjector({providers:[{provide:g.HIGHLIGHT_OPTIONS,useValue:{coreLibraryLoader:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(5241))),lineNumbersLoader:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(859))),languages:{json:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(7652))),xml:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(1891)))}}}],imports:[[c.SharedModule,f.HttpClientModule,g.HighlightModule,_.RouterModule.forRoot(D,{useHash:!0,relativeLinkResolution:"legacy"}),m.TranslateModule.forRoot({loader:{provide:m.TranslateLoader,useFactory:w,deps:[f.HttpClient]}}),S.OAuthModule.forRoot()]]})},7901:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.CapabilityStatementComponent=void 0;const n=p(655),_=(p(6165),(0,n.__importStar)(p(5e3))),m=(0,n.__importStar)(p(6165)),s=(0,n.__importStar)(p(9224)),d=(0,n.__importStar)(p(2756)),u=(0,n.__importStar)(p(9808)),h=(0,n.__importStar)(p(7322));function r(c,l){if(1&c&&(_.\u0275\u0275elementStart(0,"li"),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&c){const g=l.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",g.diagnostics," ")}}function o(c,l){if(1&c&&(_.\u0275\u0275elementStart(0,"mat-error"),_.\u0275\u0275elementStart(1,"ul"),_.\u0275\u0275template(2,r,2,1,"li",3),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&c){const g=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275property("ngForOf",g.operationOutcome.issue)}}class i{constructor(l){this.data=l,this.client=l.getFhirClient(),this.client.capabilityStatement().then(g=>{this.operationOutcome=void 0,this.capabilitystatement=g}).catch(g=>{this.capabilitystatement=void 0,this.operationOutcome=g.response.data})}getJson(){return JSON.stringify(this.capabilitystatement,null,2)}ngOnInit(){}ngOnDestroy(){}}W.CapabilityStatementComponent=i,i.\u0275fac=function(l){return new(l||i)(_.\u0275\u0275directiveInject(m.FhirConfigService))},i.\u0275cmp=_.\u0275\u0275defineComponent({type:i,selectors:[["app-capability-statement"]],decls:8,vars:4,consts:[[1,"display"],[3,"highlight","lineNumbers"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(l,g){1&l&&(_.\u0275\u0275elementStart(0,"mat-card",0),_.\u0275\u0275elementStart(1,"mat-card-content"),_.\u0275\u0275elementStart(2,"mat-card-header"),_.\u0275\u0275elementStart(3,"mat-card-title"),_.\u0275\u0275text(4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(5,"pre"),_.\u0275\u0275element(6,"code",1),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(7,o,3,1,"mat-error",2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&l&&(_.\u0275\u0275advance(4),_.\u0275\u0275textInterpolate(g.client.baseUrl),_.\u0275\u0275advance(2),_.\u0275\u0275property("highlight",g.getJson())("lineNumbers",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",g.operationOutcome))},directives:[s.MatCard,s.MatCardContent,s.MatCardHeader,s.MatCardTitle,d.Highlight,u.NgIf,h.MatError,u.NgForOf],styles:[".display[_ngcontent-%COMP%]{display:inline-block}"]})},4090:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.FhirPathComponent=void 0;const n=p(655),m=(p(5e3),p(6315),p(3075)),s=p(3460),d=(0,n.__importStar)(p(5e3)),u=(0,n.__importStar)(p(6315)),h=(0,n.__importStar)(p(9224)),r=(0,n.__importStar)(p(7322)),o=(0,n.__importStar)(p(7531)),i=(0,n.__importStar)(p(3075)),c=(0,n.__importStar)(p(2756));class l{constructor(b,y){this.fhirPathService=b,this.cd=y,this.fhirPathExpression=new m.FormControl,this.fhirPathExpression.valueChanges.pipe((0,s.debounceTime)(400),(0,s.distinctUntilChanged)()).subscribe(S=>{if(console.log("called with "+S),S)try{this.fhirPathResult=this.fhirPathService.evaluate(this.resource,S)}catch(I){console.log(I),this.fhirPathResult=void 0}else this.fhirPathResult=void 0})}fileChange(b){const y=new FileReader;if(b.target.files&&b.target.files.length){const[S]=b.target.files;y.readAsText(S),y.onload=()=>{this.resource=JSON.parse(y.result),this.cd.markForCheck()}}}getFhirPathResult(){return JSON.stringify(this.fhirPathResult,null,2)}getJson(){return JSON.stringify(this.resource,null,2)}ngOnInit(){}}W.FhirPathComponent=l,l.\u0275fac=function(b){return new(b||l)(d.\u0275\u0275directiveInject(u.FhirPathService),d.\u0275\u0275directiveInject(d.ChangeDetectorRef))},l.\u0275cmp=d.\u0275\u0275defineComponent({type:l,selectors:[["app-fhir-path"]],decls:15,vars:5,consts:[[1,"display"],["matInput","",3,"formControl"],[3,"highlight","lineNumbers"],["type","file","placeholder","Upload resource","accept",".json",3,"change"]],template:function(b,y){1&b&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275elementStart(1,"mat-card-content"),d.\u0275\u0275elementStart(2,"mat-form-field"),d.\u0275\u0275elementStart(3,"mat-label"),d.\u0275\u0275text(4,"FHIRPath Expression"),d.\u0275\u0275elementEnd(),d.\u0275\u0275element(5,"input",1),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"div"),d.\u0275\u0275text(7,"Result"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"pre"),d.\u0275\u0275element(9,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"div"),d.\u0275\u0275text(11,"Resource"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"input",3),d.\u0275\u0275listener("change",function(I){return y.fileChange(I)}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(13,"pre"),d.\u0275\u0275element(14,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&b&&(d.\u0275\u0275advance(5),d.\u0275\u0275property("formControl",y.fhirPathExpression),d.\u0275\u0275advance(4),d.\u0275\u0275property("highlight",y.getFhirPathResult())("lineNumbers",!0),d.\u0275\u0275advance(5),d.\u0275\u0275property("highlight",y.getJson())("lineNumbers",!0))},directives:[h.MatCard,h.MatCardContent,r.MatFormField,r.MatLabel,o.MatInput,i.DefaultValueAccessor,i.NgControlStatus,i.FormControlDirective,c.Highlight],styles:[".display[_ngcontent-%COMP%]{display:inline-block}"]})},6165:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.FhirConfigService=void 0;const n=p(655),f=(0,n.__importDefault)(p(2518)),_=(0,n.__importStar)(p(5e3));class m{constructor(){}changeFhirMicroService(d){localStorage.setItem("fhirMicroServer",d)}changeMagMicroService(d){localStorage.setItem("magMicroService",d)}getFhirMicroService(){return localStorage.getItem("fhirMicroServer")||"/matchboxv3/fhir"}getMobileAccessGatewayService(){return localStorage.getItem("magMicroService")||"/mag/fhir"}getMobileAccessGatewayLoginUrl(){return localStorage.getItem("magMicroService").replace("/fhir","/camel/authorize")}getMobileAccessGatewayTokenEndpoint(){return localStorage.getItem("magMicroService").replace("/fhir","/camel/token")}getMobileAccessGatewayAssertionEndpoint(){return localStorage.getItem("magMicroService").replace("/fhir","/camel/assertion")}getRedirectUri(){return location.origin+location.pathname+"#/mag"}getClientId(){return this.getRedirectUri().indexOf("localhost")>=0?"matchboxdev":"matchbox"}getClientSecret(){return"cd8455fc-e294-465a-8c86-35ae468c6b2f"}getFhirClient(){return new f.default({baseUrl:this.getFhirMicroService()})}getMobileAccessGatewayClient(){return new f.default({baseUrl:this.getMobileAccessGatewayService()})}getAuthCodeFlowConfig(){return{loginUrl:this.getMobileAccessGatewayLoginUrl(),redirectUri:this.getRedirectUri(),tokenEndpoint:this.getMobileAccessGatewayTokenEndpoint(),clientId:this.getClientId(),responseType:"code",scope:"todo",dummyClientSecret:this.getClientSecret(),showDebugInformation:!0,timeoutFactor:.75}}}W.FhirConfigService=m,m.\u0275fac=function(d){return new(d||m)},m.\u0275prov=_.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})},6315:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.FhirPathService=void 0;const n=p(655),f=p(2729),_=(0,n.__importStar)(p(5e3));class m{evaluate(d,u){return(0,f.evaluate)(d,u,null)}evaluateToString(d,u){const h=this.evaluate(d,u);return h&&h instanceof Array&&1===h.length?h[0]:null}getOauthUriToken(d){return this.evaluateToString(d,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='token').valueUri")}getOauthUriAuthorize(d){return this.evaluateToString(d,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='authorize').valueUri")}}W.FhirPathService=m,m.\u0275fac=function(d){return new(d||m)},m.\u0275prov=_.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})},5067:(ye,W,p)=>{"use strict";var n=p(8926).default;Object.defineProperty(W,"__esModule",{value:!0}),W.HomeComponent=void 0;const f=p(655),s=(p(6165),p(4202),(0,f.__importDefault)(p(4147))),d=(0,f.__importStar)(p(5e3)),u=(0,f.__importStar)(p(6165)),h=(0,f.__importStar)(p(4202)),r=(0,f.__importStar)(p(9224)),o=(0,f.__importStar)(p(2181)),i=(0,f.__importStar)(p(5245));class c{constructor(g,b){this.router=b,this.version=s.default.version,this.client=g.getFhirClient()}ngOnInit(){return n(function*(){})()}}W.HomeComponent=c,c.\u0275fac=function(g){return new(g||c)(d.\u0275\u0275directiveInject(u.FhirConfigService),d.\u0275\u0275directiveInject(h.Router))},c.\u0275cmp=d.\u0275\u0275defineComponent({type:c,selectors:[["app-home"]],decls:22,vars:1,consts:[[1,"primary"],["mat-menu-item","","routerLink","/validate"],["mat-menu-item","","routerLink","/igs"],["mat-menu-item","","routerLink","/settings"],["href","https://www.ahdis.ch"]],template:function(g,b){1&g&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275elementStart(1,"mat-card-content"),d.\u0275\u0275elementStart(2,"button",1),d.\u0275\u0275elementStart(3,"mat-icon"),d.\u0275\u0275text(4,"Validate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"span"),d.\u0275\u0275text(6,"Validate ..."),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(7,"button",2),d.\u0275\u0275elementStart(8,"mat-icon"),d.\u0275\u0275text(9,"info"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"span"),d.\u0275\u0275text(11,"IGs ..."),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"button",3),d.\u0275\u0275elementStart(13,"mat-icon"),d.\u0275\u0275text(14,"settings"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(15,"span"),d.\u0275\u0275text(16,"Settings"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(17,"mat-card-footer"),d.\u0275\u0275elementStart(18,"p"),d.\u0275\u0275text(19),d.\u0275\u0275elementStart(20,"a",4),d.\u0275\u0275text(21,"contact"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&g&&(d.\u0275\u0275advance(19),d.\u0275\u0275textInterpolate1("version: ",b.version," "))},directives:[r.MatCard,r.MatCardContent,o.MatMenuItem,h.RouterLink,i.MatIcon,r.MatCardFooter],styles:[".mat-card.primary[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mat-card.primary[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .mat-subheading-2[_ngcontent-%COMP%]{margin:1rem 0 0}.mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] mat-tab-body>div{box-shadow:0 0 5px -3px #000 inset}.mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%]{padding:0 1.5rem 1.5rem}.mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-top:1rem;margin:0}"]})},7206:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.IgsComponent=void 0;const n=p(655),_=(p(6165),p(6346)),m=p(3075),s=(0,n.__importDefault)(p(1455)),u=(p(6315),(0,n.__importStar)(p(5e3))),h=(0,n.__importStar)(p(6165)),r=(0,n.__importStar)(p(6315)),o=(0,n.__importStar)(p(9224)),i=(0,n.__importStar)(p(6346)),c=(0,n.__importStar)(p(7850)),l=(0,n.__importStar)(p(7322)),g=(0,n.__importStar)(p(7531)),b=(0,n.__importStar)(p(3075)),y=(0,n.__importStar)(p(7423)),S=(0,n.__importStar)(p(9808)),I=(0,n.__importStar)(p(773)),R=(0,n.__importStar)(p(7259));function M(ie,ne){1&ie&&(u.\u0275\u0275elementStart(0,"mat-header-cell",20),u.\u0275\u0275text(1,"Package Id"),u.\u0275\u0275elementEnd())}function A(ie,ne){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-cell",20),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const ae=ne.$implicit,xe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(xe.getPackageId(ae))}}function D(ie,ne){1&ie&&(u.\u0275\u0275elementStart(0,"mat-header-cell",21),u.\u0275\u0275text(1,"Version"),u.\u0275\u0275elementEnd())}function w(ie,ne){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-cell",21),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const ae=ne.$implicit,xe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(xe.getVersion(ae))}}function x(ie,ne){1&ie&&(u.\u0275\u0275elementStart(0,"mat-header-cell",20),u.\u0275\u0275text(1,"Title"),u.\u0275\u0275elementEnd())}function C(ie,ne){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-cell"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const ae=ne.$implicit,xe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(xe.getTitle(ae))}}function L(ie,ne){1&ie&&u.\u0275\u0275element(0,"mat-header-row")}function F(ie,ne){if(1&ie){const ae=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"mat-row",22),u.\u0275\u0275listener("click",function(){const We=u.\u0275\u0275restoreView(ae).$implicit;return u.\u0275\u0275nextContext().selectRow(We)}),u.\u0275\u0275elementEnd()}}function re(ie,ne){if(1&ie){const ae=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275text(1,"\xa0 "),u.\u0275\u0275elementStart(2,"button",23),u.\u0275\u0275listener("click",function(){return u.\u0275\u0275restoreView(ae),u.\u0275\u0275nextContext().onUpdate()}),u.\u0275\u0275text(3,"Update"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()}}function Y(ie,ne){if(1&ie){const ae=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275text(1,"\xa0 "),u.\u0275\u0275elementStart(2,"button",23),u.\u0275\u0275listener("click",function(){return u.\u0275\u0275restoreView(ae),u.\u0275\u0275nextContext().onDelete()}),u.\u0275\u0275text(3,"Delete"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()}}function X(ie,ne){1&ie&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275element(1,"mat-progress-spinner",24),u.\u0275\u0275elementContainerEnd())}function ee(ie,ne){if(1&ie&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275element(1,"app-operation-outcome",25),u.\u0275\u0275elementContainerEnd()),2&ie){const ae=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("operationOutcome",ae.operationOutcome)("title",ae.errMsg)}}const $=function(){return["packageId","version","title"]};class J{constructor(ne,ae){this.data=ne,this.fhirPathService=ae,this.length=100,this.pageSize=1e3,this.pageIndex=0,this.pageSizeOptions=[this.pageSize],this.dataSource=new _.MatTableDataSource,this.update=!1,this.query={_sort:"title"},this.client=ne.getFhirClient(),this.addPackageId=new m.FormControl("",[m.Validators.required,m.Validators.minLength(1)]),this.addVersion=new m.FormControl("current",[m.Validators.required,m.Validators.minLength(1)]),this.addUrl=new m.FormControl("url"),this.search()}search(){this.client.search({resourceType:"ImplementationGuide",searchParams:this.query}).then(ne=>{this.pageIndex=0,this.setBundle(ne),this.selection=void 0,this.addPackageId.setValue(""),this.addVersion.setValue(""),this.addUrl.setValue("")}).catch(ne=>{this.errMsg="Error accessing FHIR server",this.operationOutcome=ne.response.data}),this.update=!1}getPackageId(ne){const ae=ne.resource;return ae.packageId?ae.packageId:""}getTitle(ne){const ae=ne.resource;return ae.title?ae.title:""}getVersion(ne){const ae=ne.resource;return ae.version?ae.version:""}getPackageUrl(ne){return this.fhirPathService.evaluateToString(ne.resource,"extension.where(url='http://ahdis.ch/fhir/extension/packageUrl').valueUri")}setBundle(ne){this.bundle=ne,this.dataSource.data=this.bundle.entry,this.length=this.bundle.total,this.selection=void 0}ngOnInit(){}selectRow(ne){this.selection=ne.resource,this.addPackageId.setValue(this.selection.packageId),this.addUrl.setValue(this.getPackageUrl(ne));let ae=this.selection.version;ae&&ae.endsWith(" (current)")&&(ae=ae.substring(0,ae.length-10)),this.addVersion.setValue(ae)}onSubmit(){if(J.log("onSubmit "+this.addPackageId.value),this.errMsg=null,this.addPackageId.invalid||this.addVersion.invalid)return void(this.errMsg="Please provide package name");let ne=this.addPackageId.value.trim();ne.indexOf("#")>0&&(ne.substring(0,ne.indexOf("#")-1),this.addVersion.setValue(ne.substring(0,ne.indexOf("#")+1))),this.addPackageId.setValue(ne);const ae=this.addVersion.value.trim();this.addVersion.setValue(ae),this.update=!0,this.client.create({resourceType:"ImplementationGuide",body:{resourceType:"ImplementationGuide",name:ne,version:ae,packageId:ne,url:this.addUrl.value},options:{headers:{Prefer:"return=OperationOutcome"}}}).then(xe=>{this.errMsg="Created Implementation Guide"+this.addPackageId.value,this.operationOutcome=xe,this.search()}).catch(xe=>{this.errMsg="Error creating Implementation Guide "+this.addPackageId.value,this.operationOutcome=xe.response.data,this.update=!1})}goToPage(ne){ne.pageIndex>this.pageIndex?this.client.nextPage({bundle:this.bundle}).then(ae=>{this.pageIndex=ne.pageIndex,this.setBundle(ae),this.selection=void 0,console.log("next page called ")}):this.client.prevPage({bundle:this.bundle}).then(ae=>{this.pageIndex=ne.pageIndex,this.setBundle(ae),this.selection=void 0,console.log("previous page called ")})}onUpdate(){this.errMsg=null,this.selection.name=this.addPackageId.value,this.selection.version=this.addVersion.value,this.selection.packageId=this.addPackageId.value,this.selection.url=this.addUrl.value,this.update=!0,this.client.update({resourceType:this.selection.resourceType,id:this.selection.id,body:this.selection,options:{headers:{Prefer:"return=OperationOutcome"}}}).then(ne=>{this.errMsg="Updated Implementation Guide "+this.selection.packageId,this.operationOutcome=ne,this.search()}).catch(ne=>{this.errMsg="Error updating Implementation Guide "+this.selection.packageId,this.operationOutcome=ne.response.data,this.update=!1})}onDelete(){this.errMsg=null,this.update=!0,this.client.delete({resourceType:this.selection.resourceType,id:this.selection.id,options:{headers:{Prefer:"return=OperationOutcome","X-Cascade":"delete"}}}).then(ne=>{this.errMsg="Deleted Implementation Guide Resource "+this.selection.packageId,this.operationOutcome=ne,this.search()}).catch(ne=>{this.errMsg="Error deleting Implementation Guide "+this.selection.packageId,this.operationOutcome=ne.response.data,this.update=!1})}}W.IgsComponent=J,J.log=(0,s.default)("app:"),J.\u0275fac=function(ne){return new(ne||J)(u.\u0275\u0275directiveInject(h.FhirConfigService),u.\u0275\u0275directiveInject(r.FhirPathService))},J.\u0275cmp=u.\u0275\u0275defineComponent({type:J,selectors:[["app-igs"]],decls:45,vars:16,consts:[[1,"card-igs"],[3,"dataSource"],["table",""],["matColumnDef","packageId"],["class","packageId",4,"matHeaderCellDef"],["class","packageId",4,"matCellDef"],["matColumnDef","version"],["class","version",4,"matHeaderCellDef"],["class","version",4,"matCellDef"],["matColumnDef","title",1,"title"],[4,"matCellDef"],[4,"matHeaderRowDef"],[3,"click",4,"matRowDef","matRowDefColumns"],[3,"pageIndex","length","pageSize","pageSizeOptions","page"],[1,"Search"],["matInput","",3,"formControl"],[2,"width","50vw"],["href","https://packages.fhir.org"],["mat-raised-button","","color","primary","type","submit",3,"click"],[4,"ngIf"],[1,"packageId"],[1,"version"],[3,"click"],["mat-button","","type","submit",3,"click"],["mode","indeterminate"],[3,"operationOutcome","title"]],template:function(ne,ae){1&ne&&(u.\u0275\u0275elementStart(0,"mat-card",0),u.\u0275\u0275elementStart(1,"mat-card-content"),u.\u0275\u0275elementStart(2,"mat-card-header"),u.\u0275\u0275elementStart(3,"mat-card-title"),u.\u0275\u0275text(4,"FHIR ImplementationGuides installed on server"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"mat-table",1,2),u.\u0275\u0275elementContainerStart(7,3),u.\u0275\u0275template(8,M,2,0,"mat-header-cell",4),u.\u0275\u0275template(9,A,2,1,"mat-cell",5),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(10,6),u.\u0275\u0275template(11,D,2,0,"mat-header-cell",7),u.\u0275\u0275template(12,w,2,1,"mat-cell",8),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(13,9),u.\u0275\u0275template(14,x,2,0,"mat-header-cell",4),u.\u0275\u0275template(15,C,2,1,"mat-cell",10),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(16,L,1,0,"mat-header-row",11),u.\u0275\u0275template(17,F,1,0,"mat-row",12),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(18,"mat-paginator",13),u.\u0275\u0275listener("page",function(Ie){return ae.goToPage(Ie)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(19,"mat-card",14),u.\u0275\u0275elementStart(20,"mat-card-content"),u.\u0275\u0275elementStart(21,"mat-form-field"),u.\u0275\u0275elementStart(22,"mat-label"),u.\u0275\u0275text(23,"PackageId"),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(24,"input",15),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(25," \xa0 "),u.\u0275\u0275elementStart(26,"mat-form-field"),u.\u0275\u0275elementStart(27,"mat-label"),u.\u0275\u0275text(28,"Version"),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(29,"input",15),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(30," \xa0 "),u.\u0275\u0275elementStart(31,"mat-form-field",16),u.\u0275\u0275elementStart(32,"mat-label"),u.\u0275\u0275text(33,"Package url (optional, use only if not available through "),u.\u0275\u0275elementStart(34,"a",17),u.\u0275\u0275text(35,"packages.fhir.org"),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(36,")"),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(37,"input",15),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(38,"mat-card-actions"),u.\u0275\u0275elementStart(39,"button",18),u.\u0275\u0275listener("click",function(){return ae.onSubmit()}),u.\u0275\u0275text(40," Upload "),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(41,re,4,0,"ng-container",19),u.\u0275\u0275template(42,Y,4,0,"ng-container",19),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(43,X,2,0,"ng-container",19),u.\u0275\u0275template(44,ee,2,2,"ng-container",19)),2&ne&&(u.\u0275\u0275advance(5),u.\u0275\u0275property("dataSource",ae.dataSource),u.\u0275\u0275advance(11),u.\u0275\u0275property("matHeaderRowDef",u.\u0275\u0275pureFunction0(14,$)),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",u.\u0275\u0275pureFunction0(15,$)),u.\u0275\u0275advance(1),u.\u0275\u0275property("pageIndex",ae.pageIndex)("length",ae.length)("pageSize",ae.pageSize)("pageSizeOptions",ae.pageSizeOptions),u.\u0275\u0275advance(6),u.\u0275\u0275property("formControl",ae.addPackageId),u.\u0275\u0275advance(5),u.\u0275\u0275property("formControl",ae.addVersion),u.\u0275\u0275advance(8),u.\u0275\u0275property("formControl",ae.addUrl),u.\u0275\u0275advance(4),u.\u0275\u0275property("ngIf",ae.selection),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ae.selection),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ae.update),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ae.errMsg))},directives:[o.MatCard,o.MatCardContent,o.MatCardHeader,o.MatCardTitle,i.MatTable,i.MatColumnDef,i.MatHeaderCellDef,i.MatCellDef,i.MatHeaderRowDef,i.MatRowDef,c.MatPaginator,l.MatFormField,l.MatLabel,g.MatInput,b.DefaultValueAccessor,b.NgControlStatus,b.FormControlDirective,o.MatCardActions,y.MatButton,S.NgIf,i.MatHeaderCell,i.MatCell,i.MatHeaderRow,i.MatRow,I.MatProgressSpinner,R.OperationOutcomeComponent],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.mat-form-field.url[_ngcontent-%COMP%]{width:200px}.mat-table[_ngcontent-%COMP%]{margin:1rem}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-table[_ngcontent-%COMP%] .mat-cell.title[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.title[_ngcontent-%COMP%]{flex:2;justify-content:flex-end}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:first-child{padding-left:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-child{padding-right:1rem}.card-igs[_ngcontent-%COMP%]{margin-bottom:10px}"]})},6218:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.MappingLanguageComponent=void 0;const n=p(655),m=(p(5e3),p(6165),p(3075)),s=p(3460),d=(0,n.__importDefault)(p(1455)),u=(0,n.__importStar)(p(5e3)),h=(0,n.__importStar)(p(6165)),r=(0,n.__importStar)(p(9224)),o=(0,n.__importStar)(p(7322)),i=(0,n.__importStar)(p(7531)),c=(0,n.__importStar)(p(3075)),l=(0,n.__importStar)(p(9808));function g(M,A){if(1&M&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&M){const D=A.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1(" ",D.diagnostics," ")}}function b(M,A){if(1&M&&(u.\u0275\u0275elementStart(0,"mat-error"),u.\u0275\u0275elementStart(1,"ul"),u.\u0275\u0275template(2,g,2,1,"li",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&M){const D=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",D.operationOutcome.issue)}}function y(M,A){if(1&M&&(u.\u0275\u0275elementStart(0,"mat-hint"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&M){const D=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1("Successfully created on server: ",D.structureMap.url,"")}}function S(M,A){if(1&M&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&M){const D=A.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1(" ",D.diagnostics," ")}}function I(M,A){if(1&M&&(u.\u0275\u0275elementStart(0,"mat-error"),u.\u0275\u0275elementStart(1,"ul"),u.\u0275\u0275template(2,S,2,1,"li",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&M){const D=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",D.operationOutcomeTransformed.issue)}}class R{constructor(A,D){this.cd=A,this.data=D,this.client=D.getFhirClient(),this.source=new m.FormControl,this.map=new m.FormControl,this.structureMap=null,this.map.valueChanges.pipe((0,s.debounceTime)(1e3),(0,s.distinctUntilChanged)()).subscribe(w=>{R.log("create StructureMap"),this.client.create({resourceType:"StructureMap",body:w,headers:{accept:"application/fhir+json","content-type":"text/fhir-mapping"}}).then(x=>{this.operationOutcome=null,this.structureMap=x,this.transform()}).catch(x=>{this.structureMap=null,this.operationOutcome=x.response.data})}),this.source.valueChanges.pipe((0,s.debounceTime)(1e3),(0,s.distinctUntilChanged)()).subscribe(w=>this.transform())}transform(){R.log("transform Source");let A=JSON.parse(this.source.value);null!=this.structureMap&&this.client.operation({name:"transform?source="+encodeURIComponent(this.structureMap.url),resourceType:"StructureMap",input:A}).then(D=>{this.operationOutcomeTransformed=null,this.transformed=D}).catch(D=>{this.transformed=null,this.operationOutcomeTransformed=D.response.data})}ngOnInit(){}fileSource(A){const D=new FileReader;if(A.target.files&&A.target.files.length){const[w]=A.target.files;D.readAsText(w),D.onload=()=>{this.source.setValue(D.result),this.cd.markForCheck()}}}fileChange(A){const D=new FileReader;if(A.target.files&&A.target.files.length){const[w]=A.target.files;D.readAsText(w),D.onload=()=>{this.map.setValue(D.result),this.cd.markForCheck()}}}}W.MappingLanguageComponent=R,R.log=(0,d.default)("app:"),R.\u0275fac=function(A){return new(A||R)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(h.FhirConfigService))},R.\u0275cmp=u.\u0275\u0275defineComponent({type:R,selectors:[["app-mapping-language"]],decls:31,vars:8,consts:[[1,"card-maps"],[1,"fixtextarea"],["type","file","placeholder","Upload source","accept",".json",3,"change"],["matNativeControl","","rows","15","cols","400",3,"formControl"],["type","file","placeholder","Upload map","accept",".map",3,"change"],["matNativeControl","","rows","20","cols","400",3,"formControl"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(A,D){1&A&&(u.\u0275\u0275elementStart(0,"mat-card",0),u.\u0275\u0275elementStart(1,"mat-card-content"),u.\u0275\u0275elementStart(2,"mat-card-header"),u.\u0275\u0275elementStart(3,"mat-card-title"),u.\u0275\u0275text(4,"Source"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"mat-form-field",1),u.\u0275\u0275elementStart(6,"mat-card-actions"),u.\u0275\u0275elementStart(7,"input",2),u.\u0275\u0275listener("change",function(x){return D.fileSource(x)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(8,"textarea",3),u.\u0275\u0275text(9," "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(10,"mat-card",0),u.\u0275\u0275elementStart(11,"mat-card-content"),u.\u0275\u0275elementStart(12,"mat-card-header"),u.\u0275\u0275elementStart(13,"mat-card-title"),u.\u0275\u0275text(14,"FHIR Mapping Language map"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(15,"mat-form-field",1),u.\u0275\u0275elementStart(16,"mat-card-actions"),u.\u0275\u0275elementStart(17,"input",4),u.\u0275\u0275listener("change",function(x){return D.fileChange(x)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(18,"textarea",5),u.\u0275\u0275text(19," "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(20,b,3,1,"mat-error",6),u.\u0275\u0275template(21,y,2,1,"mat-hint",6),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(22,"mat-card",0),u.\u0275\u0275elementStart(23,"mat-card-content"),u.\u0275\u0275elementStart(24,"mat-card-header"),u.\u0275\u0275elementStart(25,"mat-card-title"),u.\u0275\u0275text(26,"Transformed"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(27,I,3,1,"mat-error",6),u.\u0275\u0275elementStart(28,"pre"),u.\u0275\u0275text(29),u.\u0275\u0275pipe(30,"json"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&A&&(u.\u0275\u0275advance(8),u.\u0275\u0275property("formControl",D.source),u.\u0275\u0275advance(10),u.\u0275\u0275property("formControl",D.map),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",D.operationOutcome),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",D.structureMap),u.\u0275\u0275advance(6),u.\u0275\u0275property("ngIf",D.operationOutcomeTransformed),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind1(30,6,D.transformed)))},directives:[r.MatCard,r.MatCardContent,r.MatCardHeader,r.MatCardTitle,o.MatFormField,r.MatCardActions,i.MatInput,c.DefaultValueAccessor,c.NgControlStatus,c.FormControlDirective,l.NgIf,o.MatError,l.NgForOf,o.MatHint],pipes:[l.JsonPipe],styles:[".fixtextarea[_ngcontent-%COMP%]{display:inline}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})},7259:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.OperationOutcomeComponent=void 0;const n=p(655),_=(p(5e3),(0,n.__importStar)(p(5682))),m=(0,n.__importStar)(p(5e3)),s=(0,n.__importStar)(p(9224)),d=(0,n.__importStar)(p(9808)),u=["editor"];function h(g,b){if(1&g&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1),m.\u0275\u0275elementContainerEnd()),2&g){const y=m.\u0275\u0275nextContext().$implicit;m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",y.diagnostics," ")}}function r(g,b){if(1&g&&(m.\u0275\u0275elementStart(0,"li",5),m.\u0275\u0275text(1),m.\u0275\u0275elementEnd()),2&g){const y=b.$implicit;m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",y," ")}}function o(g,b){if(1&g&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275elementStart(1,"ol"),m.\u0275\u0275template(2,r,2,1,"li",4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementContainerEnd()),2&g){const y=m.\u0275\u0275nextContext().$implicit,S=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(2),m.\u0275\u0275property("ngForOf",S.getSliceInfo(y))}}function i(g,b){if(1&g){const y=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"div",5),m.\u0275\u0275elementStart(1,"a",6),m.\u0275\u0275listener("click",function(){const R=m.\u0275\u0275restoreView(y).$implicit,M=m.\u0275\u0275nextContext(2);return M.scroll(M.getLineNo(R))}),m.\u0275\u0275text(2),m.\u0275\u0275elementEnd(),m.\u0275\u0275text(3,":"),m.\u0275\u0275element(4,"br"),m.\u0275\u0275template(5,h,2,1,"ng-container",1),m.\u0275\u0275template(6,o,3,1,"ng-container",1),m.\u0275\u0275elementEnd()}if(2&g){const y=b.$implicit,S=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(1),m.\u0275\u0275classMap(y.severity),m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate2("",S.getLineFromExtension(y),": ",S.getLocation(y),""),m.\u0275\u0275advance(3),m.\u0275\u0275property("ngIf",0==S.hasSliceInfo(y)),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",S.hasSliceInfo(y))}}function c(g,b){if(1&g&&(m.\u0275\u0275elementStart(0,"div"),m.\u0275\u0275template(1,i,7,7,"div",4),m.\u0275\u0275elementEnd()),2&g){const y=m.\u0275\u0275nextContext();m.\u0275\u0275advance(1),m.\u0275\u0275property("ngForOf",y.outcome.issue)}}class l{constructor(){this.mode="ace/mode/json"}ngOnInit(){}ngAfterViewInit(){var b;this.editor&&this.editor.nativeElement&&(_.config.set("fontSize","11px"),_.config.set("basePath","https://unpkg.com/ace-builds@1.4.12/src-noconflict"),this.aceEditor=_.edit(this.editor.nativeElement),this.aceEditor.setOption("useWorker",!1),this.aceEditor.setTheme("ace/theme/chrome"),(null===(b=this.mode)||void 0===b?void 0:b.indexOf("xml"))>=0?this.aceEditor.session.setMode("ace/mode/xml"):this.aceEditor.session.setMode("ace/mode/json"),this.aceEditor.session.setValue(this.content),this.aceEditor.setReadOnly(!0),this.aceEditor.on("change",()=>{console.log(this.aceEditor.getValue())}),this.updateAnnotations())}updateAnnotations(){var b,y;const S=[];if(this.outcome&&this.aceEditor){const I=this.aceEditor.session.getMarkers();if(I){const R=Object.keys(I);for(let M of R)this.aceEditor.session.removeMarker(I[M].id)}null===(b=this.outcome.issue)||void 0===b||b.forEach(R=>this.aceEditor.getSession().addMarker(new _.Range(this.getLineNo(R)-1,0,this.getLineNo(R)-1,1),this.getLineAceClass(R),"fullLine",!0)),null===(y=this.outcome.issue)||void 0===y||y.forEach(R=>S.push({row:this.getLineNo(R)-1,column:0,text:R.diagnostics,type:this.getErrorType(R)})),this.aceEditor.session.setAnnotations(S)}}getErrorType(b){switch(b.severity){case"fatal":case"error":return"error";case"warning":case"information":return"warning"}return""}set json(b){this.content=b,this.ngAfterViewInit()}set operationOutcome(b){var y,S;this.outcome=b,this.outcome&&(null===(y=this.outcome.issue)||void 0===y?void 0:y.length)>0&&(null===(S=this.outcome.issue)||void 0===S||S.sort((I,R)=>this.getLineNo(I)-this.getLineNo(R)),this.ngAfterViewInit())}getJson(){return this.content}getLineAceClass(b){return"ace-highlight-"+(null==b?void 0:b.severity)}getLineNo(b){var y;return(null===(y=b.extension)||void 0===y?void 0:y.length)>0?b.extension[0].valueInteger:0}hasSliceInfo(b){var y;return(null===(y=null==b?void 0:b.diagnostics)||void 0===y?void 0:y.indexOf("Slice info:"))>=0}getSliceInfo(b){var y;let S=null==b?void 0:b.diagnostics.substring((null===(y=null==b?void 0:b.diagnostics)||void 0===y?void 0:y.indexOf("Slice info: 1.)"))+15).trimLeft(),I=new RegExp("[\\d]+[\\.][\\)]");return S.split(I)}getLineFromExtension(b){var y;return(null===(y=b.extension)||void 0===y?void 0:y.length)>0?"L"+b.extension[0].valueInteger:""}getLocation(b){var y;return(null===(y=b.location)||void 0===y?void 0:y.length)>0?b.location[0]:""}scroll(b){(b-=1)<0&&(b=0),this.aceEditor.scrollToLine(b,!1,!0,null)}}W.OperationOutcomeComponent=l,l.\u0275fac=function(b){return new(b||l)},l.\u0275cmp=m.\u0275\u0275defineComponent({type:l,selectors:[["app-operation-outcome"]],viewQuery:function(b,y){if(1&b&&m.\u0275\u0275viewQuery(u,5),2&b){let S;m.\u0275\u0275queryRefresh(S=m.\u0275\u0275loadQuery())&&(y.editor=S.first)}},inputs:{mode:"mode",title:"title",json:"json",operationOutcome:"operationOutcome"},decls:8,vars:2,consts:[[1,"card-maps"],[4,"ngIf"],[1,"app-ace-editor",2,"width","100%","height","500px"],["editor",""],["class","issue",4,"ngFor","ngForOf"],[1,"issue"],[3,"click"]],template:function(b,y){1&b&&(m.\u0275\u0275elementStart(0,"mat-card",0),m.\u0275\u0275elementStart(1,"mat-card-content"),m.\u0275\u0275elementStart(2,"mat-card-header"),m.\u0275\u0275elementStart(3,"mat-card-title"),m.\u0275\u0275text(4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(5,c,2,1,"div",1),m.\u0275\u0275element(6,"div",2,3),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()),2&b&&(m.\u0275\u0275advance(4),m.\u0275\u0275textInterpolate(y.title),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",y.outcome))},directives:[s.MatCard,s.MatCardContent,s.MatCardHeader,s.MatCardTitle,d.NgIf,d.NgForOf],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.app-ace-editor[_ngcontent-%COMP%]{border:2px solid #f8f9fa;box-shadow:0 .5rem 1rem #00000026}.issue[_ngcontent-%COMP%]{border:2px solid #f8f9fa;padding:2px}.fatal[_ngcontent-%COMP%]{background:#cc3300}.error[_ngcontent-%COMP%]{background:#ff9966}.warning[_ngcontent-%COMP%]{background:#ffe69e}.information[_ngcontent-%COMP%]{background:#cde8a5} .ace-highlight-fatal{position:absolute;background:#cc3300;opacity:.4} .ace-highlight-error{position:absolute;background:#ff9966;opacity:.4} .ace-highlight-warning{position:absolute;background:#ffcc00;opacity:.4} .ace-highlight-information{position:absolute;background:#99cc33;opacity:.4}"]})},4586:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.SettingsComponent=void 0;const n=p(655),_=(p(6165),(0,n.__importDefault)(p(1455))),s=(p(4202),(0,n.__importStar)(p(5e3))),d=(0,n.__importStar)(p(6165)),u=(0,n.__importStar)(p(4202)),h=(0,n.__importStar)(p(9224)),r=(0,n.__importStar)(p(3075)),o=(0,n.__importStar)(p(7322)),i=(0,n.__importStar)(p(4107)),c=(0,n.__importStar)(p(9808)),l=(0,n.__importStar)(p(508));function g(y,S){if(1&y&&(s.\u0275\u0275elementStart(0,"mat-option",2),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&y){const I=S.$implicit;s.\u0275\u0275property("value",I),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1(" ",I," ")}}class b{constructor(S,I){this.data=S,this.router=I,this.fhirServers=["https://test.ahdis.ch/matchboxv3/fhir","https://gazelle.ihe.net/matchbox/fhir","https://ehealthsuisse.ihe-europe.net/matchbox/fhir","https://hapi.fhir.org/baseR4","http://hapi.fhir.org/baseR4","http://tx.fhir.org/r4/","http://test.fhir.org/r4","https://test.ahdis.ch/mag-cara/fhir","https://test.ahdis.ch/mag-pmp/fhir","https://test.ahdis.ch/mag-bfh/fhir","https://test.ahdis.ch/mag-test-emedo/fhir","http://localhost:8080/matchboxv3/fhir","http://localhost:9090/mag-pmp/fhir","http://localhost:9090/mag-cara/fhir","https://fhir-mapping-lab.azurewebsites.net/"],this.client=S.getFhirClient()}ngOnInit(){this.baseUrlFhir=this.data.getFhirMicroService()}getFhirSelectedValue(){return this.baseUrlFhir}setFhirSelectedValue(S){(0,_.default)("setting new server to "+S),this.data.changeFhirMicroService(S)}}W.SettingsComponent=b,b.\u0275fac=function(S){return new(S||b)(s.\u0275\u0275directiveInject(d.FhirConfigService),s.\u0275\u0275directiveInject(u.Router))},b.\u0275cmp=s.\u0275\u0275defineComponent({type:b,selectors:[["app-settings"]],decls:7,vars:2,consts:[["placeholder","FHIR Server","name","selectserver",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(S,I){1&S&&(s.\u0275\u0275elementStart(0,"mat-card"),s.\u0275\u0275elementStart(1,"mat-card-content"),s.\u0275\u0275elementStart(2,"form"),s.\u0275\u0275elementStart(3,"mat-form-field"),s.\u0275\u0275elementStart(4,"mat-select",0),s.\u0275\u0275listener("ngModelChange",function(M){return I.setFhirSelectedValue(M)}),s.\u0275\u0275template(5,g,2,2,"mat-option",1),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(6,"br"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&S&&(s.\u0275\u0275advance(4),s.\u0275\u0275property("ngModel",I.getFhirSelectedValue()),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",I.fhirServers))},directives:[h.MatCard,h.MatCardContent,r.\u0275NgNoValidate,r.NgControlStatusGroup,r.NgForm,o.MatFormField,i.MatSelect,r.NgControlStatus,r.NgModel,c.NgForOf,l.MatOption],styles:[""]})},4466:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.SharedModule=void 0;const n=p(655),f=p(9808),_=p(3075),m=p(6360),s=p(2313),d=p(8922),u=p(1079),h=p(7423),r=p(9224),o=p(7446),i=p(508),c=p(4703),l=p(4834),g=p(7322),b=p(5245),y=p(7531),S=p(2181),I=p(7850),R=p(9814),M=p(4107),A=p(2368),D=p(8029),w=p(6346),x=p(3251),C=p(4594),L=p(2466),F=p(773),re=(0,n.__importStar)(p(5e3)),Y=[f.CommonModule,s.BrowserModule,m.BrowserAnimationsModule,_.FormsModule,_.ReactiveFormsModule,L.TranslateModule,u.MatAutocompleteModule,h.MatButtonModule,r.MatCardModule,o.MatCheckboxModule,l.MatDividerModule,g.MatFormFieldModule,b.MatIconModule,y.MatInputModule,S.MatMenuModule,I.MatPaginatorModule,M.MatSelectModule,D.MatSliderModule,A.MatSlideToggleModule,w.MatTableModule,C.MatToolbarModule,x.MatTabsModule,c.MatDatepickerModule,i.MatNativeDateModule,R.MatRadioModule,d.FileSizeModule,F.MatProgressSpinnerModule];class ee{}W.SharedModule=ee,ee.\u0275fac=function(J){return new(J||ee)},ee.\u0275mod=re.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=re.\u0275\u0275defineInjector({imports:[Y,f.CommonModule,s.BrowserModule,m.BrowserAnimationsModule,_.FormsModule,_.ReactiveFormsModule,L.TranslateModule,u.MatAutocompleteModule,h.MatButtonModule,r.MatCardModule,o.MatCheckboxModule,l.MatDividerModule,g.MatFormFieldModule,b.MatIconModule,y.MatInputModule,S.MatMenuModule,I.MatPaginatorModule,M.MatSelectModule,D.MatSliderModule,A.MatSlideToggleModule,w.MatTableModule,C.MatToolbarModule,x.MatTabsModule,c.MatDatepickerModule,i.MatNativeDateModule,R.MatRadioModule,d.FileSizeModule,F.MatProgressSpinnerModule]})},719:(ye,W,p)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.TransformComponent=void 0;const n=p(655),m=(p(5e3),p(6165),p(3075)),s=p(3460),d=(0,n.__importStar)(p(5e3)),u=(0,n.__importStar)(p(6165)),h=(0,n.__importStar)(p(9224)),r=(0,n.__importStar)(p(68)),o=(0,n.__importStar)(p(2756)),i=(0,n.__importStar)(p(7322)),c=(0,n.__importStar)(p(4107)),l=(0,n.__importStar)(p(3075)),g=(0,n.__importStar)(p(9808)),b=(0,n.__importStar)(p(508));function y(M,A){if(1&M&&(d.\u0275\u0275elementStart(0,"mat-option",7),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&M){const D=A.$implicit;d.\u0275\u0275propertyInterpolate("value",D.url),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(D.name)}}function S(M,A){if(1&M&&(d.\u0275\u0275elementStart(0,"li"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&M){const D=A.$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",D.diagnostics," ")}}function I(M,A){if(1&M&&(d.\u0275\u0275elementStart(0,"mat-error"),d.\u0275\u0275elementStart(1,"ul"),d.\u0275\u0275template(2,S,2,1,"li",8),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&M){const D=d.\u0275\u0275nextContext();d.\u0275\u0275advance(2),d.\u0275\u0275property("ngForOf",D.operationOutcomeTransformed.issue)}}class R{constructor(A,D){this.data=A,this.cd=D,this.query={_summary:"true",_sort:"name"},this.panelOpenState=!1,this.client=A.getFhirClient(),this.client.search({resourceType:"StructureMap",searchParams:this.query}).then(w=>(this.setMaps(w),w)),this.selectedMap=new m.FormControl,this.selectedMap.valueChanges.pipe((0,s.debounceTime)(400),(0,s.distinctUntilChanged)()).subscribe(w=>{this.selectedUrl=w,this.transform()})}transform(){null!=this.source&&null!=this.selectedUrl&&this.client.operation({name:"transform?source="+encodeURIComponent(this.selectedUrl),resourceType:"StructureMap",input:this.source,options:{headers:{"content-type":this.mimeType}}}).then(A=>{this.operationOutcomeTransformed=null,this.transformed=A}).catch(A=>{this.transformed=null,this.operationOutcomeTransformed=A.response.data})}getSource(){return this.source}getMapped(){return JSON.stringify(this.transformed,null,2)}setMaps(A){this.structureMaps=A.entry.map(D=>D.resource)}ngOnInit(){}addFile(A){this.transformed=null,("application/json"===A.contentType||A.name.endsWith(".json"))&&(this.mimeType="application/fhir+json"),("application/xml"===A.contentType||A.name.endsWith(".xml"))&&(this.mimeType="application/fhir+xml");const D=new FileReader;D.readAsText(A.blob),D.onload=()=>{this.source=D.result}}}W.TransformComponent=R,R.\u0275fac=function(A){return new(A||R)(d.\u0275\u0275directiveInject(u.FhirConfigService),d.\u0275\u0275directiveInject(d.ChangeDetectorRef))},R.\u0275cmp=d.\u0275\u0275defineComponent({type:R,selectors:[["app-transform"]],decls:24,vars:8,consts:[[1,"card-maps"],[3,"addFiles"],[3,"highlight","lineNumbers"],["appearance","fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],[4,"ngFor","ngForOf"]],template:function(A,D){1&A&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275elementStart(1,"mat-card-content"),d.\u0275\u0275elementStart(2,"mat-card-header"),d.\u0275\u0275elementStart(3,"mat-card-title"),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"div"),d.\u0275\u0275text(6,"Resource"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(7,"app-upload",1),d.\u0275\u0275listener("addFiles",function(x){return D.addFile(x)}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"pre"),d.\u0275\u0275element(9,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"mat-card",0),d.\u0275\u0275elementStart(11,"mat-form-field",3),d.\u0275\u0275elementStart(12,"mat-label"),d.\u0275\u0275text(13,"Map for transforming"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(14,"mat-select",4),d.\u0275\u0275template(15,y,2,2,"mat-option",5),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(16,"mat-card",0),d.\u0275\u0275elementStart(17,"mat-card-content"),d.\u0275\u0275elementStart(18,"mat-card-header"),d.\u0275\u0275elementStart(19,"mat-card-title"),d.\u0275\u0275text(20,"Transformed"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(21,I,3,1,"mat-error",6),d.\u0275\u0275elementStart(22,"pre"),d.\u0275\u0275element(23,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&A&&(d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(D.client.baseUrl),d.\u0275\u0275advance(5),d.\u0275\u0275property("highlight",D.getSource())("lineNumbers",!0),d.\u0275\u0275advance(5),d.\u0275\u0275property("formControl",D.selectedMap),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",D.structureMaps),d.\u0275\u0275advance(6),d.\u0275\u0275property("ngIf",D.operationOutcomeTransformed),d.\u0275\u0275advance(2),d.\u0275\u0275property("highlight",D.getMapped())("lineNumbers",!0))},directives:[h.MatCard,h.MatCardContent,h.MatCardHeader,h.MatCardTitle,r.UploadComponent,o.Highlight,i.MatFormField,i.MatLabel,c.MatSelect,l.NgControlStatus,l.FormControlDirective,g.NgForOf,g.NgIf,b.MatOption,i.MatError],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})},68:(ye,W,p)=>{"use strict";var n=p(8926).default;Object.defineProperty(W,"__esModule",{value:!0}),W.UploadComponent=void 0;const f=p(655),_=p(5e3),m=(0,f.__importStar)(p(5e3)),s=(0,f.__importStar)(p(5245)),d=(0,f.__importStar)(p(7423));class u{constructor(){this.addFiles=new _.EventEmitter,this.dragCounter=0}checkStatus(r){if(!r.ok)throw new Error(`HTTP ${r.status} - ${r.statusText}`);return r}onDrop(r){r.preventDefault(),this.dragCounter=0;const o=r.target.files||r.dataTransfer.items;if(o)for(let c=0;c0))},directives:[s.MatIcon,d.MatButton],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.attachment-field[_ngcontent-%COMP%]{border-radius:5px;background:#f0f3f6}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;display:flex;align-items:center;height:40px}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .attachment-name[_ngcontent-%COMP%]{flex:1;padding:0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .attachment-size[_ngcontent-%COMP%]:last-child{margin-right:1rem}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;line-height:inherit}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%]{text-align:center;padding:2rem;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.attachment-field[_ngcontent-%COMP%] .drop-zone.file-over[_ngcontent-%COMP%]{background:#e0e6ec}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{line-height:3rem}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%] .bold-text[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0})},3026:(ye,W,p)=>{"use strict";var n=p(8926).default;Object.defineProperty(W,"__esModule",{value:!0}),W.ValidateComponent=void 0;const f=p(655),s=(p(5e3),p(6165),p(3075)),d=(0,f.__importDefault)(p(4956)),u=(0,f.__importDefault)(p(1654)),h=p(6346),r=(0,f.__importStar)(p(5e3)),o=(0,f.__importStar)(p(6165)),i=(0,f.__importStar)(p(9224)),c=(0,f.__importStar)(p(68)),l=(0,f.__importStar)(p(7322)),g=(0,f.__importStar)(p(4107)),b=(0,f.__importStar)(p(3075)),y=(0,f.__importStar)(p(9808)),S=(0,f.__importStar)(p(7423)),I=(0,f.__importStar)(p(6346)),R=(0,f.__importStar)(p(2181)),M=(0,f.__importStar)(p(5245)),A=(0,f.__importStar)(p(508)),D=(0,f.__importStar)(p(773)),w=(0,f.__importStar)(p(7259)),x=(0,f.__importStar)(p(7531));function C(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-option",26),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275property("value",Ee),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function L(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-option",26),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275property("value",Ee),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function F(Bt,Et){1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"mat-progress-spinner",27),r.\u0275\u0275elementContainerEnd())}function re(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"app-operation-outcome",28),r.\u0275\u0275elementContainerEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("operationOutcome",Ee.operationOutcome)("title",Ee.errMsg)}}function Y(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",29),r.\u0275\u0275text(1,"Resource"),r.\u0275\u0275elementEnd())}function X(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",29),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ee.name)}}function ee(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",30),r.\u0275\u0275text(1,"Profile/IG"),r.\u0275\u0275elementEnd())}function $(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function J(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee.ig," ")}}function ie(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",30),r.\u0275\u0275elementStart(1,"div"),r.\u0275\u0275template(2,$,2,1,"div",31),r.\u0275\u0275template(3,J,2,1,"div",7),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",Ee.profiles),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ee.ig)}}function ne(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Errors"),r.\u0275\u0275elementEnd())}function ae(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("",Ee.operationOutcome?Ee.getErrors():"-"," ")}}function xe(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Warnings"),r.\u0275\u0275elementEnd())}function Ie(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("",Ee.operationOutcome?Ee.getWarnings():"-"," ")}}function We(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Info"),r.\u0275\u0275elementEnd())}function Xe(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("",Ee.operationOutcome?Ee.getInfos():"-"," ")}}function ft(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Remove"),r.\u0275\u0275elementEnd())}function Pe(Bt,Et){if(1&Bt){const Ee=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275elementStart(1,"button",33),r.\u0275\u0275listener("click",function(){const T=r.\u0275\u0275restoreView(Ee).$implicit;return r.\u0275\u0275nextContext().remove(T)}),r.\u0275\u0275elementStart(2,"mat-icon"),r.\u0275\u0275text(3,"remove"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function et(Bt,Et){1&Bt&&r.\u0275\u0275element(0,"mat-header-row")}function at(Bt,Et){if(1&Bt){const Ee=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"mat-row",34),r.\u0275\u0275listener("click",function(){const T=r.\u0275\u0275restoreView(Ee).$implicit;return r.\u0275\u0275nextContext().selectRow(T)}),r.\u0275\u0275elementEnd()}}function pt(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"div",2),r.\u0275\u0275elementStart(1,"mat-form-field",36),r.\u0275\u0275elementStart(2,"mat-label"),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"input",37),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(Ee.param.name),r.\u0275\u0275advance(1),r.\u0275\u0275property("formControl",Ee.formControl)}}function vt(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275template(1,pt,5,2,"div",35),r.\u0275\u0275elementContainerEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("ngForOf",Ee.validatorSettings)}}function yt(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"app-operation-outcome",38),r.\u0275\u0275elementContainerEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("mode",Ee.selectedEntry.mimetype)("operationOutcome",Ee.operationOutcome)("json",Ee.json)("title",Ee.validationOutcomeTitle())}}const ot=function(){return["name","profile","error","warning","info","action"]};class _t{constructor(Et){this.param=Et,this.formControl=new s.FormControl}isValueSet(){return null!=this.valueBoolean||null!=this.valueString}}class At{constructor(Et,Ee,fe,H){this.name=Et,this.json=Ee,this.mimetype=fe,this.profiles=H}getErrors(){var Et,Ee;if(this.operationOutcome)return null===(Ee=null===(Et=this.operationOutcome)||void 0===Et?void 0:Et.issue)||void 0===Ee?void 0:Ee.filter(fe=>"processing"===fe.code&&("error"===fe.severity||"fatal"===fe.severity)).length}getWarnings(){var Et,Ee;if(this.operationOutcome)return null===(Ee=null===(Et=this.operationOutcome)||void 0===Et?void 0:Et.issue)||void 0===Ee?void 0:Ee.filter(fe=>"processing"===fe.code&&"warning"===fe.severity).length}getInfos(){var Et,Ee;if(this.operationOutcome)return null===(Ee=null===(Et=this.operationOutcome)||void 0===Et?void 0:Et.issue)||void 0===Ee?void 0:Ee.filter(fe=>"processing"===fe.code&&"information"===fe.severity).length}}class Tt{constructor(Et,Ee){this.data=Et,this.cd=Ee,this.selectedIg=null,this.validatorSettings=new Array,this.dataSource=new h.MatTableDataSource,this.showSettings=!1,this.client=Et.getFhirClient(),this.client.capabilityStatement().then(fe=>{this.capabilitystatement=fe,this.client.read({resourceType:"OperationDefinition",id:"-s-validate"}).then(H=>{var T;null===(T=H.parameter)||void 0===T||T.forEach(U=>{"profile"==U.name&&(this.profiles=U.targetProfile)}),H.parameter.filter(U=>"in"==U.use&&"resource"!=U.name&&"profile"!=U.name&&"ig"!=U.name).forEach(U=>{this.validatorSettings.push(new _t(U))})})}).catch(fe=>{this.errMsg="Error accessing FHIR server",this.operationOutcome=fe.response.data}),this.client.search({resourceType:"ImplementationGuide",searchParams:{_sort:"title"}}).then(fe=>{this.igs=fe.entry.map(H=>H.resource.packageId+"#"+H.resource.version).sort()}).catch(fe=>{this.errMsg="Error accessing FHIR server",this.operationOutcome=fe.response.data}),this.validationInProgress=0}getSelectedProfile(){return this.selectedProfile}setSelectedProfile(Et){this.selectedProfile=Et}getSelectedIg(){return this.selectedIg}setSelectedIg(Et){this.selectedIg=Et}getProfiles(){return this.profiles}addFile(Et){this.validationInProgress+=1,("application/json"===Et.contentType||Et.name.endsWith(".json"))&&this.addJson(Et.blob),("application/xml"===Et.contentType||Et.name.endsWith(".xml"))&&this.addXml(Et.blob),Et.name.endsWith(".tgz")&&this.addPackage(Et.blob),this.validationInProgress-=1}addXml(Et){this.selectedProfile=null,this.selectedIg=null;const Ee=new FileReader;Ee.readAsText(Et),Ee.onload=()=>{this.cd.markForCheck();let H=new At(Et.name,Ee.result,"application/fhir+xml",null);this.selectRow(H),null!=this.selectedProfile&&(H.profiles=[this.selectedProfile]),this.validate(H)}}addJson(Et){this.selectedProfile=null,this.selectedIg=null;const Ee=new FileReader;Ee.readAsText(Et),Ee.onload=()=>{this.cd.markForCheck();let H=new At(Et.name,Ee.result,"application/fhir+json",null);this.selectRow(H),null!=this.selectedProfile&&(H.profiles=[this.selectedProfile]),this.validate(H)}}onValidateIg(){let Et="";null!=this.selectedIg&&(Et=this.selectedIg.endsWith(" (current)")?this.selectedIg.substring(0,this.selectedIg.length-10):this.selectedIg,Et=Et.replace("#","-"),this.fetchData(this.client.baseUrl+"/ImplementationGuide/"+Et))}fetchData(Et){var Ee=this;return n(function*(){const fe=yield fetch(Et,{cache:"no-store",headers:{Accept:"application/gzip"}}),T=(fe.headers.get("Content-Type"),yield fe.blob());Ee.addPackage(T)})()}addPackage(Et){this.selectedProfile=null,this.selectedIg=null;const Ee=new FileReader;Ee.readAsArrayBuffer(Et),Ee.onload=()=>{if(this.package=Ee.result,this.cd.markForCheck(),null!=this.package){const fe=d.default.inflate(new Uint8Array(this.package)),H=new Array;let T=null,U=null;const Z=this;(0,u.default)(fe.buffer).then(function(_e){H.forEach(Be=>{Be.ig=U,Be.fhirVersion=T,Z.validate(Be)})},function(_e){},function(_e){var Be,$e,st,ut;if((null===(Be=_e.name)||void 0===Be?void 0:Be.indexOf("package.json"))>=0){let St=new TextDecoder("utf-8"),Xt=JSON.parse(St.decode(_e.buffer));T=Xt.fhirVersions[0],U=Xt.name+"#"+Xt.version}if((null===($e=_e.name)||void 0===$e?void 0:$e.indexOf("example"))>=0&&-1==(null===(st=_e.name)||void 0===st?void 0:st.indexOf(".index.json"))){let St=_e.name;St.startsWith("package/example/")&&(St=St.substring("package/example/".length)),St.startsWith("example/")&&(St=St.substring("example/".length));let Xt=new TextDecoder("utf-8"),tn=JSON.parse(Xt.decode(_e.buffer)),Dt=null===(ut=tn.meta)||void 0===ut?void 0:ut.profile;for(let tt=0;tt0))return;fe="?profile="+encodeURIComponent(Et.profiles[0]),null!=Et.ig&&(fe+="&ig="+encodeURIComponent(Et.ig))}catch(H){}for(let H=0;H0&&(fe+="&"+this.validatorSettings[H].param.name+"="+encodeURIComponent(this.validatorSettings[H].formControl.value));this.validationInProgress+=1,this.client.operation({name:"validate"+fe,resourceType:void 0,input:Et.json,options:{headers:{accept:"application/fhir+json","content-type":Et.mimetype}}}).then(H=>{this.validationInProgress-=1,Et.operationOutcome=H,this.dataSource.data.push(Et),this.dataSource.data=this.dataSource.data,0==this.validationInProgress&&this.selectRow(Et)}).catch(H=>{this.validationInProgress-=1})}selectRow(Et){var Ee,fe;if(this.errMsg="",this.selectedEntry=Et,Et){if(this.operationOutcome=Et.operationOutcome,this.json=Et.json,this.resourceName="",this.resourceId="","application/fhir+json"===Et.mimetype)try{const H=JSON.parse(this.json);(null==H?void 0:H.resourceType)&&(this.resourceName=H.resourceType,this.resourceId=H.id),this.selectedProfile=null===(fe=null===(Ee=H.meta)||void 0===Ee?void 0:Ee.profile)||void 0===fe?void 0:fe[0],null==this.selectedProfile&&(null==H?void 0:H.resourceType)&&(this.selectedProfile="http://hl7.org/fhir/StructureDefinition/"+H.resourceType)}catch(H){this.errMsg=H.message}if("application/fhir+xml"===Et.mimetype){let H=this.json.indexOf("",T);if(T0&&(Z=Z.substring(0,_e)),_e=Z.indexOf(":"),_e>0&&(Z=Z.substring(_e+1)),this.resourceName=Z;let Be=this.json.indexOf("profile",U);if(Be>0){let $e=this.json.indexOf('value="',Be)+7,st=this.json.indexOf('"',$e);$e0),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ee.errMsg),r.\u0275\u0275advance(6),r.\u0275\u0275property("dataSource",Ee.dataSource),r.\u0275\u0275advance(20),r.\u0275\u0275property("matHeaderRowDef",r.\u0275\u0275pureFunction0(13,ot)),r.\u0275\u0275advance(1),r.\u0275\u0275property("matRowDefColumns",r.\u0275\u0275pureFunction0(14,ot)),r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",Ee.showSettings),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ee.operationOutcome))},directives:[i.MatCard,i.MatCardContent,i.MatCardHeader,i.MatCardTitle,c.UploadComponent,l.MatFormField,g.MatSelect,b.NgControlStatus,b.NgModel,y.NgForOf,i.MatCardActions,S.MatButton,y.NgIf,I.MatTable,I.MatColumnDef,I.MatHeaderCellDef,I.MatCellDef,I.MatHeaderRowDef,I.MatRowDef,R.MatMenuItem,M.MatIcon,A.MatOption,D.MatProgressSpinner,w.OperationOutcomeComponent,I.MatHeaderCell,I.MatCell,I.MatHeaderRow,I.MatRow,l.MatLabel,x.MatInput,b.DefaultValueAccessor,b.FormControlDirective],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.mat-table[_ngcontent-%COMP%]{margin:1rem}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-table[_ngcontent-%COMP%] .mat-cell.name[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.name[_ngcontent-%COMP%]{flex:2}.mat-table[_ngcontent-%COMP%] .mat-cell.profile[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.profile[_ngcontent-%COMP%]{flex:4}.mat-table[_ngcontent-%COMP%] .mat-cell.res[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.res[_ngcontent-%COMP%]{flex:.5;justify-content:flex-end}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:first-child{padding-left:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-child{padding-right:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .cell-content[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%] .cell-content[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-field-group[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;display:flex;flex-direction:row}.form-field-group[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.column50[_ngcontent-%COMP%]{width:40%}"]})},2340:(ye,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.environment=void 0,W.environment={production:!0}},4431:(ye,W,p)=>{"use strict";const _=(0,p(655).__importStar)(p(2313)),m=p(5e3),s=p(6747);p(2340).environment.production&&(0,m.enableProdMode)(),_.platformBrowser().bootstrapModule(s.AppModule).catch(u=>console.log(u))},2466:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{TranslateModule:()=>Y,TranslateLoader:()=>i,TranslateFakeLoader:()=>c,USE_STORE:()=>x,USE_DEFAULT_LANG:()=>C,TranslateService:()=>L,MissingTranslationHandler:()=>l,FakeMissingTranslationHandler:()=>g,TranslateParser:()=>A,TranslateDefaultParser:()=>D,TranslateCompiler:()=>b,TranslateFakeCompiler:()=>y,TranslateDirective:()=>F,TranslatePipe:()=>re,TranslateStore:()=>w});var n=p(5e3),f=p(1086),_=p(6787),m=p(6498),s=p(1961),d=p(2986),u=p(8117),h=p(4850),r=p(864),o=p(7545);class i{}let c=(()=>{class X extends i{getTranslation($){return(0,f.of)({})}}return X.\u0275fac=function(){let ee;return function(J){return(ee||(ee=n.\u0275\u0275getInheritedFactory(X)))(J||X)}}(),X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})();class l{}let g=(()=>{class X{handle($){return $.key}}return X.\u0275fac=function($){return new($||X)},X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})();class b{}let y=(()=>{class X extends b{compile($,J){return $}compileTranslations($,J){return $}}return X.\u0275fac=function(){let ee;return function(J){return(ee||(ee=n.\u0275\u0275getInheritedFactory(X)))(J||X)}}(),X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})();function S(X,ee){if(X===ee)return!0;if(null===X||null===ee)return!1;if(X!=X&&ee!=ee)return!0;let ie,ne,ae,$=typeof X;if($==typeof ee&&"object"==$){if(!Array.isArray(X)){if(Array.isArray(ee))return!1;for(ne in ae=Object.create(null),X){if(!S(X[ne],ee[ne]))return!1;ae[ne]=!0}for(ne in ee)if(!(ne in ae)&&void 0!==ee[ne])return!1;return!0}if(!Array.isArray(ee))return!1;if((ie=X.length)==ee.length){for(ne=0;ne{R(ee[J])?J in X?$[J]=M(X[J],ee[J]):Object.assign($,{[J]:ee[J]}):Object.assign($,{[J]:ee[J]})}),$}class A{}let D=(()=>{class X extends A{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate($,J){let ie;return ie="string"==typeof $?this.interpolateString($,J):"function"==typeof $?this.interpolateFunction($,J):$,ie}getValue($,J){let ie=J.split(".");J="";do{J+=ie.shift(),!I($)||!I($[J])||"object"!=typeof $[J]&&ie.length?ie.length?J+=".":$=void 0:($=$[J],J="")}while(ie.length);return $}interpolateFunction($,J){return $(J)}interpolateString($,J){return J?$.replace(this.templateMatcher,(ie,ne)=>{let ae=this.getValue(J,ne);return I(ae)?ae:ie}):$}}return X.\u0275fac=function(){let ee;return function(J){return(ee||(ee=n.\u0275\u0275getInheritedFactory(X)))(J||X)}}(),X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})();class w{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.EventEmitter,this.onLangChange=new n.EventEmitter,this.onDefaultLangChange=new n.EventEmitter}}const x=new n.InjectionToken("USE_STORE"),C=new n.InjectionToken("USE_DEFAULT_LANG");let L=(()=>{class X{constructor($,J,ie,ne,ae,xe=!0,Ie=!1){this.store=$,this.currentLoader=J,this.compiler=ie,this.parser=ne,this.missingTranslationHandler=ae,this.useDefaultLang=xe,this.isolate=Ie,this.pending=!1,this._onTranslationChange=new n.EventEmitter,this._onLangChange=new n.EventEmitter,this._onDefaultLangChange=new n.EventEmitter,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang($){this.isolate?this._defaultLang=$:this.store.defaultLang=$}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang($){this.isolate?this._currentLang=$:this.store.currentLang=$}get langs(){return this.isolate?this._langs:this.store.langs}set langs($){this.isolate?this._langs=$:this.store.langs=$}get translations(){return this.isolate?this._translations:this.store.translations}set translations($){this.isolate?this._translations=$:this.store.translations=$}setDefaultLang($){if($===this.defaultLang)return;let J=this.retrieveTranslations($);void 0!==J?(this.defaultLang||(this.defaultLang=$),J.pipe((0,d.q)(1)).subscribe(ie=>{this.changeDefaultLang($)})):this.changeDefaultLang($)}getDefaultLang(){return this.defaultLang}use($){if($===this.currentLang)return(0,f.of)(this.translations[$]);let J=this.retrieveTranslations($);return void 0!==J?(this.currentLang||(this.currentLang=$),J.pipe((0,d.q)(1)).subscribe(ie=>{this.changeLang($)}),J):(this.changeLang($),(0,f.of)(this.translations[$]))}retrieveTranslations($){let J;return void 0===this.translations[$]&&(this._translationRequests[$]=this._translationRequests[$]||this.getTranslation($),J=this._translationRequests[$]),J}getTranslation($){this.pending=!0;const J=this.currentLoader.getTranslation($).pipe((0,u.B)());return this.loadingTranslations=J.pipe((0,d.q)(1),(0,h.U)(ie=>this.compiler.compileTranslations(ie,$)),(0,u.B)()),this.loadingTranslations.subscribe(ie=>{this.translations[$]=ie,this.updateLangs(),this.pending=!1},ie=>{this.pending=!1}),J}setTranslation($,J,ie=!1){J=this.compiler.compileTranslations(J,$),this.translations[$]=ie&&this.translations[$]?M(this.translations[$],J):J,this.updateLangs(),this.onTranslationChange.emit({lang:$,translations:this.translations[$]})}getLangs(){return this.langs}addLangs($){$.forEach(J=>{-1===this.langs.indexOf(J)&&this.langs.push(J)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult($,J,ie){let ne;if(J instanceof Array){let ae={},xe=!1;for(let Ie of J)ae[Ie]=this.getParsedResult($,Ie,ie),"function"==typeof ae[Ie].subscribe&&(xe=!0);if(xe){let Ie;for(let We of J){let Xe="function"==typeof ae[We].subscribe?ae[We]:(0,f.of)(ae[We]);Ie=void 0===Ie?Xe:(0,_.T)(Ie,Xe)}return Ie.pipe((0,r.q)(),(0,h.U)(We=>{let Xe={};return We.forEach((ft,Pe)=>{Xe[J[Pe]]=ft}),Xe}))}return ae}if($&&(ne=this.parser.interpolate(this.parser.getValue($,J),ie)),void 0===ne&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ne=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],J),ie)),void 0===ne){let ae={key:J,translateService:this};void 0!==ie&&(ae.interpolateParams=ie),ne=this.missingTranslationHandler.handle(ae)}return void 0!==ne?ne:J}get($,J){if(!I($)||!$.length)throw new Error('Parameter "key" required');if(this.pending)return m.y.create(ie=>{let ne=xe=>{ie.next(xe),ie.complete()},ae=xe=>{ie.error(xe)};this.loadingTranslations.subscribe(xe=>{"function"==typeof(xe=this.getParsedResult(xe,$,J)).subscribe?xe.subscribe(ne,ae):ne(xe)},ae)});{let ie=this.getParsedResult(this.translations[this.currentLang],$,J);return"function"==typeof ie.subscribe?ie:(0,f.of)(ie)}}stream($,J){if(!I($)||!$.length)throw new Error('Parameter "key" required');return(0,s.z)(this.get($,J),this.onLangChange.pipe((0,o.w)(ie=>{const ne=this.getParsedResult(ie.translations,$,J);return"function"==typeof ne.subscribe?ne:(0,f.of)(ne)})))}instant($,J){if(!I($)||!$.length)throw new Error('Parameter "key" required');let ie=this.getParsedResult(this.translations[this.currentLang],$,J);if(void 0!==ie.subscribe){if($ instanceof Array){let ne={};return $.forEach((ae,xe)=>{ne[$[xe]]=$[xe]}),ne}return $}return ie}set($,J,ie=this.currentLang){this.translations[ie][$]=this.compiler.compile(J,ie),this.updateLangs(),this.onTranslationChange.emit({lang:ie,translations:this.translations[ie]})}changeLang($){this.currentLang=$,this.onLangChange.emit({lang:$,translations:this.translations[$]}),this.defaultLang||this.changeDefaultLang($)}changeDefaultLang($){this.defaultLang=$,this.onDefaultLangChange.emit({lang:$,translations:this.translations[$]})}reloadLang($){return this.resetLang($),this.getTranslation($)}resetLang($){this._translationRequests[$]=void 0,this.translations[$]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let $=window.navigator.languages?window.navigator.languages[0]:null;return $=$||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==$.indexOf("-")&&($=$.split("-")[0]),-1!==$.indexOf("_")&&($=$.split("_")[0]),$}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let $=window.navigator.languages?window.navigator.languages[0]:null;return $=$||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,$}}return X.\u0275fac=function($){return new($||X)(n.\u0275\u0275inject(w),n.\u0275\u0275inject(i),n.\u0275\u0275inject(b),n.\u0275\u0275inject(A),n.\u0275\u0275inject(l),n.\u0275\u0275inject(C),n.\u0275\u0275inject(x))},X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})(),F=(()=>{class X{constructor($,J,ie){this.translateService=$,this.element=J,this._ref=ie,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(ne=>{ne.lang===this.translateService.currentLang&&this.checkNodes(!0,ne.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(ne=>{this.checkNodes(!0,ne.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(ne=>{this.checkNodes(!0)}))}set translate($){$&&(this.key=$,this.checkNodes())}set translateParams($){S(this.currentParams,$)||(this.currentParams=$,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes($=!1,J){let ie=this.element.nativeElement.childNodes;ie.length||(this.setContent(this.element.nativeElement,this.key),ie=this.element.nativeElement.childNodes);for(let ne=0;ne{ae!==$&&(J.lastKey=$),J.originalContent||(J.originalContent=this.getContent(J)),J.currentValue=I(ae)?ae:J.originalContent||$,this.setContent(J,this.key?J.currentValue:J.originalContent.replace($,J.currentValue)),this._ref.markForCheck()};if(I(ie)){let ae=this.translateService.getParsedResult(ie,$,this.currentParams);"function"==typeof ae.subscribe?ae.subscribe(ne):ne(ae)}else this.translateService.get($,this.currentParams).subscribe(ne)}}getContent($){return I($.textContent)?$.textContent:$.data}setContent($,J){I($.textContent)?$.textContent=J:$.data=J}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return X.\u0275fac=function($){return new($||X)(n.\u0275\u0275directiveInject(L),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),X})(),re=(()=>{class X{constructor($,J){this.translate=$,this._ref=J,this.value=""}updateValue($,J,ie){let ne=ae=>{this.value=void 0!==ae?ae:$,this.lastKey=$,this._ref.markForCheck()};if(ie){let ae=this.translate.getParsedResult(ie,$,J);"function"==typeof ae.subscribe?ae.subscribe(ne):ne(ae)}this.translate.get($,J).subscribe(ne)}transform($,...J){if(!$||0===$.length)return $;if(S($,this.lastKey)&&S(J,this.lastParams))return this.value;let ie;if(I(J[0])&&J.length)if("string"==typeof J[0]&&J[0].length){let ne=J[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{ie=JSON.parse(ne)}catch(ae){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${J[0]}`)}}else"object"==typeof J[0]&&!Array.isArray(J[0])&&(ie=J[0]);return this.lastKey=$,this.lastParams=J,this.updateValue($,ie),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ne=>{this.lastKey&&ne.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue($,ie,ne.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ne=>{this.lastKey&&(this.lastKey=null,this.updateValue($,ie,ne.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue($,ie))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return X.\u0275fac=function($){return new($||X)(n.\u0275\u0275directiveInject(L,16),n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},X.\u0275pipe=n.\u0275\u0275definePipe({name:"translate",type:X,pure:!1}),X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})(),Y=(()=>{class X{static forRoot($={}){return{ngModule:X,providers:[$.loader||{provide:i,useClass:c},$.compiler||{provide:b,useClass:y},$.parser||{provide:A,useClass:D},$.missingTranslationHandler||{provide:l,useClass:g},w,{provide:x,useValue:$.isolate},{provide:C,useValue:$.useDefaultLang},L]}}static forChild($={}){return{ngModule:X,providers:[$.loader||{provide:i,useClass:c},$.compiler||{provide:b,useClass:y},$.parser||{provide:A,useClass:D},$.missingTranslationHandler||{provide:l,useClass:g},{provide:x,useValue:$.isolate},{provide:C,useValue:$.useDefaultLang},L]}}}return X.\u0275fac=function($){return new($||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({}),X})()},1744:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{TranslateHttpLoader:()=>n});class n{constructor(_,m="/assets/i18n/",s=".json"){this.http=_,this.prefix=m,this.suffix=s}getTranslation(_){return this.http.get(`${this.prefix}${_}${this.suffix}`)}}},5682:(ye,W,p)=>{ye=p.nmd(ye),function(){var f=function(){return this}();!f&&"undefined"!=typeof window&&(f=window);var _=function(r,o,i){"string"==typeof r?(2==arguments.length&&(i=o),_.modules[r]||(_.payloads[r]=i,_.modules[r]=null)):_.original?_.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};_.modules={},_.payloads={};var r,o,m=function(r,o,i){if("string"==typeof o){var c=u(r,o);if(null!=c)return i&&i(),c}else if("[object Array]"===Object.prototype.toString.call(o)){for(var l=[],g=0,b=o.length;g=0?parseFloat((d.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((d.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),f.isOldIE=f.isIE&&f.isIE<9,f.isGecko=f.isMozilla=d.match(/ Gecko\/\d+/),f.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),f.isWebKit=parseFloat(d.split("WebKit/")[1])||void 0,f.isChrome=parseFloat(d.split(" Chrome/")[1])||void 0,f.isEdge=parseFloat(d.split(" Edge/")[1])||void 0,f.isAIR=d.indexOf("AdobeAIR")>=0,f.isAndroid=d.indexOf("Android")>=0,f.isChromeOS=d.indexOf(" CrOS ")>=0,f.isIOS=/iPad|iPhone|iPod/.test(d)&&!window.MSStream,f.isIOS&&(f.isMac=!0),f.isMobile=f.isIOS||f.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,f,_){"use strict";var m=n("./useragent");f.buildDom=function i(c,l,g){if("string"==typeof c&&c){var b=document.createTextNode(c);return l&&l.appendChild(b),b}if(!Array.isArray(c))return c&&c.appendChild&&l&&l.appendChild(c),c;if("string"!=typeof c[0]||!c[0]){for(var y=[],S=0;S=1.5,m.isChromeOS&&(f.HI_DPI=!1),"undefined"!=typeof document){var o=document.createElement("div");f.HI_DPI&&void 0!==o.style.transform&&(f.HAS_CSS_TRANSFORMS=!0),!m.isEdge&&void 0!==o.style.animationName&&(f.HAS_CSS_ANIMATION=!0),o=null}f.translate=f.HAS_CSS_TRANSFORMS?function(i,c,l){i.style.transform="translate("+Math.round(c)+"px, "+Math.round(l)+"px)"}:function(i,c,l){i.style.top=Math.round(l)+"px",i.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,f,_){"use strict";f.inherits=function(m,s){m.super_=s,m.prototype=Object.create(s.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})},f.mixin=function(m,s){for(var d in s)m[d]=s[d];return m},f.implement=function(m,s){f.mixin(m,s)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,f,_){"use strict";var m=n("./oop"),s=function(){var u,h,d={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(h in d.FUNCTION_KEYS)u=d.FUNCTION_KEYS[h].toLowerCase(),d[u]=parseInt(h,10);for(h in d.PRINTABLE_KEYS)u=d.PRINTABLE_KEYS[h].toLowerCase(),d[u]=parseInt(h,10);return m.mixin(d,d.MODIFIER_KEYS),m.mixin(d,d.PRINTABLE_KEYS),m.mixin(d,d.FUNCTION_KEYS),d.enter=d.return,d.escape=d.esc,d.del=d.delete,d[173]="-",function(){for(var r=["cmd","ctrl","alt","shift"],o=Math.pow(2,r.length);o--;)d.KEY_MODS[o]=r.filter(function(i){return o&d.KEY_MODS[i]}).join("-")+"-"}(),d.KEY_MODS[0]="",d.KEY_MODS[-1]="input-",d}();m.mixin(f,s),f.keyCodeToString=function(d){var u=s[d];return"string"!=typeof u&&(u=String.fromCharCode(d)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,f,_){"use strict";var h,m=n("./keys"),s=n("./useragent"),d=null,u=0;function o(){return null==h&&function(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){h={passive:!1}}})}catch(I){}}(),h}function i(I,R,M){this.elem=I,this.type=R,this.callback=M}i.prototype.destroy=function(){l(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=f.addListener=function(I,R,M,A){I.addEventListener(R,M,o()),A&&A.$toDestroy.push(new i(I,R,M))},l=f.removeListener=function(I,R,M){I.removeEventListener(R,M,o())};f.stopEvent=function(I){return f.stopPropagation(I),f.preventDefault(I),!1},f.stopPropagation=function(I){I.stopPropagation&&I.stopPropagation()},f.preventDefault=function(I){I.preventDefault&&I.preventDefault()},f.getButton=function(I){return"dblclick"==I.type?0:"contextmenu"==I.type||s.isMac&&I.ctrlKey&&!I.altKey&&!I.shiftKey?2:I.button},f.capture=function(I,R,M){var A=I&&I.ownerDocument||document;function D(w){R&&R(w),M&&M(w),l(A,"mousemove",R),l(A,"mouseup",D),l(A,"dragstart",D)}return c(A,"mousemove",R),c(A,"mouseup",D),c(A,"dragstart",D),D},f.addMouseWheelListener=function(I,R,M){"onmousewheel"in I?c(I,"mousewheel",function(A){void 0!==A.wheelDeltaX?(A.wheelX=-A.wheelDeltaX/8,A.wheelY=-A.wheelDeltaY/8):(A.wheelX=0,A.wheelY=-A.wheelDelta/8),R(A)},M):"onwheel"in I?c(I,"wheel",function(A){switch(A.deltaMode){case A.DOM_DELTA_PIXEL:A.wheelX=.35*A.deltaX||0,A.wheelY=.35*A.deltaY||0;break;case A.DOM_DELTA_LINE:case A.DOM_DELTA_PAGE:A.wheelX=5*(A.deltaX||0),A.wheelY=5*(A.deltaY||0)}R(A)},M):c(I,"DOMMouseScroll",function(A){A.axis&&A.axis==A.HORIZONTAL_AXIS?(A.wheelX=5*(A.detail||0),A.wheelY=0):(A.wheelX=0,A.wheelY=5*(A.detail||0)),R(A)},M)},f.addMultiMouseDownListener=function(I,R,M,A,D){var x,C,L,w=0,F={2:"dblclick",3:"tripleclick",4:"quadclick"};function re(Y){if(0!==f.getButton(Y)?w=0:Y.detail>1?++w>4&&(w=1):w=1,s.isIE){var X=Math.abs(Y.clientX-x)>5||Math.abs(Y.clientY-C)>5;(!L||X)&&(w=1),L&&clearTimeout(L),L=setTimeout(function(){L=null},R[w-1]||600),1==w&&(x=Y.clientX,C=Y.clientY)}if(Y._clicks=w,M[A]("mousedown",Y),w>4)w=0;else if(w>1)return M[A](F[w],Y)}Array.isArray(I)||(I=[I]),I.forEach(function(Y){c(Y,"mousedown",re,D)})};var g=function(I){return 0|(I.ctrlKey?1:0)|(I.altKey?2:0)|(I.shiftKey?4:0)|(I.metaKey?8:0)};function b(I,R,M){var A=g(R);if(!s.isMac&&d){if(R.getModifierState&&(R.getModifierState("OS")||R.getModifierState("Win"))&&(A|=8),d.altGr){if(3==(3&A))return;d.altGr=0}if(18===M||17===M){var D="location"in R?R.location:R.keyLocation;17===M&&1===D?1==d[M]&&(u=R.timeStamp):18===M&&3===A&&2===D&&R.timeStamp-u<50&&(d.altGr=!0)}}if(M in m.MODIFIER_KEYS&&(M=-1),A||13!==M||3!==(D="location"in R?R.location:R.keyLocation)||(I(R,A,-M),!R.defaultPrevented)){if(s.isChromeOS&&8&A){if(I(R,A,M),R.defaultPrevented)return;A&=-9}return!!(A||M in m.FUNCTION_KEYS||M in m.PRINTABLE_KEYS)&&I(R,A,M)}}function y(){d=Object.create(null)}if(f.getModifierString=function(I){return m.KEY_MODS[g(I)]},f.addCommandKeyListener=function(I,R,M){if(s.isOldGecko||s.isOpera&&!("KeyboardEvent"in window)){var A=null;c(I,"keydown",function(w){A=w.keyCode},M),c(I,"keypress",function(w){return b(R,w,A)},M)}else{var D=null;c(I,"keydown",function(w){d[w.keyCode]=(d[w.keyCode]||0)+1;var x=b(R,w,w.keyCode);return D=w.defaultPrevented,x},M),c(I,"keypress",function(w){D&&(w.ctrlKey||w.altKey||w.shiftKey||w.metaKey)&&(f.stopEvent(w),D=null)},M),c(I,"keyup",function(w){d[w.keyCode]=null},M),d||(y(),c(window,"focus",y))}},"object"==typeof window&&window.postMessage&&!s.isOldIE){var S=1;f.nextTick=function(I,R){R=R||window;var M="zero-timeout-message-"+S++,A=function(D){D.data==M&&(f.stopPropagation(D),l(R,"message",A),I())};c(R,"message",A),R.postMessage(M,"*")}}f.$idleBlocked=!1,f.onIdle=function(I,R){return setTimeout(function M(){f.$idleBlocked?setTimeout(M,100):I()},R)},f.$idleBlockId=null,f.blockIdle=function(I){f.$idleBlockId&&clearTimeout(f.$idleBlockId),f.$idleBlocked=!0,f.$idleBlockId=setTimeout(function(){f.$idleBlocked=!1},I||100)},f.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),f.nextFrame=f.nextFrame?f.nextFrame.bind(window):function(I){setTimeout(I,17)}}),ace.define("ace/range",["require","exports","module"],function(n,f,_){"use strict";var s=function(d,u,h,r){this.start={row:d,column:u},this.end={row:h,column:r}};(function(){this.isEqual=function(d){return this.start.row===d.start.row&&this.end.row===d.end.row&&this.start.column===d.start.column&&this.end.column===d.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(d,u){return 0==this.compare(d,u)},this.compareRange=function(d){var u,h=d.end,r=d.start;return 1==(u=this.compare(h.row,h.column))?1==(u=this.compare(r.row,r.column))?2:0==u?1:0:-1==u?-2:-1==(u=this.compare(r.row,r.column))?-1:1==u?42:0},this.comparePoint=function(d){return this.compare(d.row,d.column)},this.containsRange=function(d){return 0==this.comparePoint(d.start)&&0==this.comparePoint(d.end)},this.intersects=function(d){var u=this.compareRange(d);return-1==u||0==u||1==u},this.isEnd=function(d,u){return this.end.row==d&&this.end.column==u},this.isStart=function(d,u){return this.start.row==d&&this.start.column==u},this.setStart=function(d,u){"object"==typeof d?(this.start.column=d.column,this.start.row=d.row):(this.start.row=d,this.start.column=u)},this.setEnd=function(d,u){"object"==typeof d?(this.end.column=d.column,this.end.row=d.row):(this.end.row=d,this.end.column=u)},this.inside=function(d,u){return 0==this.compare(d,u)&&!(this.isEnd(d,u)||this.isStart(d,u))},this.insideStart=function(d,u){return 0==this.compare(d,u)&&!this.isEnd(d,u)},this.insideEnd=function(d,u){return 0==this.compare(d,u)&&!this.isStart(d,u)},this.compare=function(d,u){return this.isMultiLine()||d!==this.start.row?dthis.end.row?1:this.start.row===d?u>=this.start.column?0:-1:this.end.row===d?u<=this.end.column?0:1:0:uthis.end.column?1:0},this.compareStart=function(d,u){return this.start.row==d&&this.start.column==u?-1:this.compare(d,u)},this.compareEnd=function(d,u){return this.end.row==d&&this.end.column==u?1:this.compare(d,u)},this.compareInside=function(d,u){return this.end.row==d&&this.end.column==u?1:this.start.row==d&&this.start.column==u?-1:this.compare(d,u)},this.clipRows=function(d,u){if(this.end.row>u)var h={row:u+1,column:0};else this.end.rowu)var r={row:u+1,column:0};else this.start.row0;)1&u&&(h+=d),(u>>=1)&&(d+=d);return h};var m=/^\s\s*/,s=/\s\s*$/;f.stringTrimLeft=function(d){return d.replace(m,"")},f.stringTrimRight=function(d){return d.replace(s,"")},f.copyObject=function(d){var u={};for(var h in d)u[h]=d[h];return u},f.copyArray=function(d){for(var u=[],h=0,r=d.length;hDate.now()-50)||(m=!1)},cancel:function(){m=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,f,_){"use strict";var m=n("../lib/event"),s=n("../lib/useragent"),d=n("../lib/dom"),u=n("../lib/lang"),h=n("../clipboard"),r=s.isChrome<18,o=s.isIE,i=s.isChrome>63,c=400,l=n("../lib/keys"),g=l.KEY_MODS,b=s.isIOS,y=b?/\s/:/\n/,S=s.isMobile;f.TextInput=function(R,M){var A=d.createElement("textarea");A.className="ace_text-input",A.setAttribute("wrap","off"),A.setAttribute("autocorrect","off"),A.setAttribute("autocapitalize","off"),A.setAttribute("spellcheck",!1),A.style.opacity="0",R.insertBefore(A,R.firstChild);var D=!1,w=!1,x=!1,C=!1,L="";S||(A.style.fontSize="1px");var F=!1,re=!1,Y="",X=0,ee=0,$=0;try{var J=document.activeElement===A}catch(H){}m.addListener(A,"blur",function(H){re||(M.onBlur(H),J=!1)},M),m.addListener(A,"focus",function(H){if(!re){if(J=!0,s.isEdge)try{if(!document.hasFocus())return}catch(T){}M.onFocus(H),s.isEdge?setTimeout(ie):ie()}},M),this.$focusScroll=!1,this.focus=function(){if(L||i||"browser"==this.$focusScroll)return A.focus({preventScroll:!0});var H=A.style.top;A.style.position="fixed",A.style.top="0px";try{var T=0!=A.getBoundingClientRect().top}catch(_e){return}var U=[];if(T)for(var Z=A.parentElement;Z&&1==Z.nodeType;)U.push(Z),Z.setAttribute("ace_nocontext",!0),Z=!Z.parentElement&&Z.getRootNode?Z.getRootNode().host:Z.parentElement;A.focus({preventScroll:!0}),T&&U.forEach(function(_e){_e.removeAttribute("ace_nocontext")}),setTimeout(function(){A.style.position="","0px"==A.style.top&&(A.style.top=H)},0)},this.blur=function(){A.blur()},this.isFocused=function(){return J},M.on("beforeEndOperation",function(){var H=M.curOp,T=H&&H.command&&H.command.name;"insertstring"!=T&&(x&&T&&(H.docChanged||H.selectionChanged)&&(Y=A.value="",ot()),ie())});var ie=b?function(H){if(J&&(!D||H)&&!C){H||(H="");var T="\n ab"+H+"cde fg\n";T!=A.value&&(A.value=Y=T);var Z=4+(H.length||(M.selection.isEmpty()?0:1));(4!=X||ee!=Z)&&A.setSelectionRange(4,Z),X=4,ee=Z}}:function(){if(!x&&!C&&(J||Ie)){x=!0;var H=0,T=0,U="";if(M.session){var Z=M.selection,_e=Z.getRange(),Be=Z.cursor.row;if(H=_e.start.column,T=_e.end.column,U=M.session.getLine(Be),_e.start.row!=Be){var $e=M.session.getLine(Be-1);H=_e.start.rowBe+1?st.length:T,T+=U.length+1,U=U+"\n"+st}else S&&Be>0&&(U="\n"+U,T+=1,H+=1);U.length>c&&(H0&&Y[St]==H[St];)St++,_e--;for($e=$e.slice(St),St=1;Be>0&&Y.length-St>X-1&&Y[Y.length-St]==H[H.length-St];)St++,Be--;st-=St-1,ut-=St-1;var Xt=$e.length-St+1;if(Xt<0&&(_e=-Xt,Xt=0),$e=$e.slice(0,Xt),!(T||$e||st||_e||Be||ut))return"";C=!0;var tn=!1;return s.isAndroid&&". "==$e&&($e=" ",tn=!0),$e&&!_e&&!Be&&!st&&!ut||F?M.onTextInput($e):M.onTextInput($e,{extendLeft:_e,extendRight:Be,restoreStart:st,restoreEnd:ut}),C=!1,Y=H,X=U,ee=Z,$=ut,tn?"\n":$e},Xe=function(H){if(x)return yt();if(H&&H.inputType){if("historyUndo"==H.inputType)return M.execCommand("undo");if("historyRedo"==H.inputType)return M.execCommand("redo")}var T=A.value,U=We(T,!0);(T.length>500||y.test(U)||S&&X<1&&X==ee)&&ie()},ft=function(H,T,U){var Z=H.clipboardData||window.clipboardData;if(Z&&!r){var _e=o||U?"Text":"text/plain";try{return T?!1!==Z.setData(_e,T):Z.getData(_e)}catch(Be){if(!U)return ft(Be,T,!0)}}},Pe=function(H,T){var U=M.getCopyText();if(!U)return m.preventDefault(H);ft(H,U)?(b&&(ie(U),D=U,setTimeout(function(){D=!1},10)),T?M.onCut():M.onCopy(),m.preventDefault(H)):(D=!0,A.value=U,A.select(),setTimeout(function(){D=!1,ie(),T?M.onCut():M.onCopy()}))},et=function(H){Pe(H,!0)},at=function(H){Pe(H,!1)},pt=function(H){var T=ft(H);h.pasteCancelled()||("string"==typeof T?(T&&M.onPaste(T,H),s.isIE&&setTimeout(ie),m.preventDefault(H)):(A.value="",w=!0))};m.addCommandKeyListener(A,M.onCommandKey.bind(M),M),m.addListener(A,"select",function(H){x||(D?D=!1:function(H){return 0===H.selectionStart&&H.selectionEnd>=Y.length&&H.value===Y&&Y&&H.selectionEnd!==ee}(A)?(M.selectAll(),ie()):S&&A.selectionStart!=X&&ie())},M),m.addListener(A,"input",Xe,M),m.addListener(A,"cut",et,M),m.addListener(A,"copy",at,M),m.addListener(A,"paste",pt,M),(!("oncut"in A)||!("oncopy"in A)||!("onpaste"in A))&&m.addListener(R,"keydown",function(H){if((!s.isMac||H.metaKey)&&H.ctrlKey)switch(H.keyCode){case 67:at(H);break;case 86:pt(H);break;case 88:et(H)}},M);var yt=function(){if(x&&M.onCompositionUpdate&&!M.$readOnly){if(F)return _t();x.useTextareaForIME?M.onCompositionUpdate(A.value):(We(A.value),x.markerRange&&(x.context&&(x.markerRange.start.column=x.selectionStart=x.context.compositionStartOffset),x.markerRange.end.column=x.markerRange.start.column+ee-x.selectionStart+$))}},ot=function(H){!M.onCompositionEnd||M.$readOnly||(x=!1,M.onCompositionEnd(),M.off("mousedown",_t),H&&Xe())};function _t(){re=!0,A.blur(),A.focus(),re=!1}var Bt,At=u.delayedCall(yt,50).schedule.bind(null,null);function Et(){clearTimeout(Bt),Bt=setTimeout(function(){L&&(A.style.cssText=L,L=""),M.renderer.$isMousePressed=!1,M.renderer.$keepTextAreaAtCursor&&M.renderer.$moveTextAreaToCursor()},0)}m.addListener(A,"compositionstart",function(H){if(!x&&M.onCompositionStart&&!M.$readOnly&&(x={},!F)){H.data&&(x.useTextareaForIME=!1),setTimeout(yt,0),M._signal("compositionStart"),M.on("mousedown",_t);var T=M.getSelectionRange();T.end.row=T.start.row,T.end.column=T.start.column,x.markerRange=T,x.selectionStart=X,M.onCompositionStart(x),x.useTextareaForIME?(Y=A.value="",X=0,ee=0):(A.msGetInputContext&&(x.context=A.msGetInputContext()),A.getInputContext&&(x.context=A.getInputContext()))}},M),m.addListener(A,"compositionupdate",yt,M),m.addListener(A,"keyup",function(H){27==H.keyCode&&A.value.lengthee&&"\n"==Y[ut]?St=l.end:stee&&Y.slice(0,ut).split("\n").length>2?St=l.down:ut>ee&&" "==Y[ut-1]?(St=l.right,Xt=g.option):(ut>ee||ut==ee&&ee!=X&&st==ut)&&(St=l.right),st!==ut&&(Xt|=g.shift),St){if(!T.onCommandKey({},Xt,St)&&T.commands){St=l.keyCodeToString(St);var Dt=T.commands.findKeyCommand(Xt,St);Dt&&T.execCommand(Dt)}X=st,ee=ut,ie("")}}};document.addEventListener("selectionchange",Be),T.on("destroy",function(){document.removeEventListener("selectionchange",Be)})}(0,M,A)},f.$setUserAgentForTests=function(R,M){S=R,b=M}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,f,_){"use strict";var m=n("../lib/useragent");function u(o){o.$clickSelection=null;var i=o.editor;i.setDefaultHandler("mousedown",this.onMouseDown.bind(o)),i.setDefaultHandler("dblclick",this.onDoubleClick.bind(o)),i.setDefaultHandler("tripleclick",this.onTripleClick.bind(o)),i.setDefaultHandler("quadclick",this.onQuadClick.bind(o)),i.setDefaultHandler("mousewheel",this.onMouseWheel.bind(o)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(l){o[l]=this[l]},this),o.selectByLines=this.extendSelectionBy.bind(o,"getLineRange"),o.selectByWords=this.extendSelectionBy.bind(o,"getWordRange")}function r(o,i){if(o.start.row==o.end.row)var c=2*i.column-o.start.column-o.end.column;else if(o.start.row!=o.end.row-1||o.start.column||o.end.column)c=2*i.row-o.start.row-o.end.row;else c=i.column-4;return c<0?{cursor:o.start,anchor:o.end}:{cursor:o.end,anchor:o.start}}(function(){this.onMouseDown=function(o){var i=o.inSelection(),c=o.getDocumentPosition();this.mousedownEvent=o;var l=this.editor,g=o.getButton();return 0!==g?((l.getSelectionRange().isEmpty()||1==g)&&l.selection.moveToPosition(c),void(2==g&&(l.textInput.onContextMenu(o.domEvent),m.isMozilla||o.preventDefault()))):(this.mousedownEvent.time=Date.now(),!i||l.isFocused()||(l.focus(),!this.$focusTimeout||this.$clickSelection||l.inMultiSelectMode)?(this.captureMouse(o),this.startSelect(c,o.domEvent._clicks>1),o.preventDefault()):(this.setState("focusWait"),void this.captureMouse(o)))},this.startSelect=function(o,i){o=o||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var c=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?c.selection.selectToPosition(o):i||c.selection.moveToPosition(o),i||this.select(),c.renderer.scroller.setCapture&&c.renderer.scroller.setCapture(),c.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var o,i=this.editor,c=i.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var l=this.$clickSelection.comparePoint(c);if(-1==l)o=this.$clickSelection.end;else if(1==l)o=this.$clickSelection.start;else{var g=r(this.$clickSelection,c);c=g.cursor,o=g.anchor}i.selection.setSelectionAnchor(o.row,o.column)}i.selection.selectToPosition(c),i.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(o){var i,c=this.editor,l=c.renderer.screenToTextCoordinates(this.x,this.y),g=c.selection[o](l.row,l.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(g.start),y=this.$clickSelection.comparePoint(g.end);if(-1==b&&y<=0)i=this.$clickSelection.end,(g.end.row!=l.row||g.end.column!=l.column)&&(l=g.start);else if(1==y&&b>=0)i=this.$clickSelection.start,(g.start.row!=l.row||g.start.column!=l.column)&&(l=g.end);else if(-1==b&&1==y)l=g.end,i=g.start;else{var S=r(this.$clickSelection,l);l=S.cursor,i=S.anchor}c.selection.setSelectionAnchor(i.row,i.column)}c.selection.selectToPosition(l),c.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var o=function(o,i,c,l){return Math.sqrt(Math.pow(c-o,2)+Math.pow(l-i,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),i=Date.now();(o>0||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(o){var i=o.getDocumentPosition(),c=this.editor,g=c.session.getBracketRange(i);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=c.selection.getWordRange(i.row,i.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},this.onTripleClick=function(o){var i=o.getDocumentPosition(),c=this.editor;this.setState("selectByLines");var l=c.getSelectionRange();l.isMultiLine()&&l.contains(i.row,i.column)?(this.$clickSelection=c.selection.getLineRange(l.start.row),this.$clickSelection.end=c.selection.getLineRange(l.end.row).end):this.$clickSelection=c.selection.getLineRange(i.row),this.select()},this.onQuadClick=function(o){var i=this.editor;i.selectAll(),this.$clickSelection=i.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(o){if(!o.getAccelKey()){o.getShiftKey()&&o.wheelY&&!o.wheelX&&(o.wheelX=o.wheelY,o.wheelY=0);var i=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var c=this.$lastScroll,l=o.domEvent.timeStamp,g=l-c.t,b=g?o.wheelX/g:c.vx,y=g?o.wheelY/g:c.vy;g<550&&(b=(b+c.vx)/2,y=(y+c.vy)/2);var S=Math.abs(b/y),I=!1;if(S>=1&&i.renderer.isScrollableBy(o.wheelX*o.speed,0)&&(I=!0),S<=1&&i.renderer.isScrollableBy(0,o.wheelY*o.speed)&&(I=!0),I?c.allowed=l:l-c.allowed<550&&(Math.abs(b)<=1.5*Math.abs(c.vx)&&Math.abs(y)<=1.5*Math.abs(c.vy)?(I=!0,c.allowed=l):c.allowed=0),c.t=l,c.vx=b,c.vy=y,I)return i.renderer.scrollBy(o.wheelX*o.speed,o.wheelY*o.speed),o.stop()}}}).call(u.prototype),f.DefaultHandlers=u}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(n,f,_){"use strict";n("./lib/oop");var s=n("./lib/dom");function d(u){this.isOpen=!1,this.$element=null,this.$parentNode=u}(function(){this.$init=function(){return this.$element=s.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(u){this.getElement().textContent=u},this.setHtml=function(u){this.getElement().innerHTML=u},this.setPosition=function(u,h){this.getElement().style.left=u+"px",this.getElement().style.top=h+"px"},this.setClassName=function(u){s.addCssClass(this.getElement(),u)},this.show=function(u,h,r){null!=u&&this.setText(u),null!=h&&null!=r&&this.setPosition(h,r),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(d.prototype),f.Tooltip=d}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(n,f,_){"use strict";var m=n("../lib/dom"),s=n("../lib/oop"),d=n("../lib/event"),u=n("../tooltip").Tooltip;function r(o){u.call(this,o)}s.inherits(r,u),function(){this.setPosition=function(o,i){var c=window.innerWidth||document.documentElement.clientWidth,l=window.innerHeight||document.documentElement.clientHeight,g=this.getWidth(),b=this.getHeight();(o+=15)+g>c&&(o-=o+g-c),(i+=15)+b>l&&(i-=20+b),u.prototype.setPosition.call(this,o,i)}}.call(r.prototype),f.GutterHandler=function(o){var g,b,y,i=o.editor,c=i.renderer.$gutterLayer,l=new r(i.container);function I(){g&&(g=clearTimeout(g)),y&&(l.hide(),y=null,i._signal("hideGutterTooltip",l),i.off("mousewheel",I))}function R(M){l.setPosition(M.x,M.y)}o.editor.setDefaultHandler("guttermousedown",function(M){if(i.isFocused()&&0==M.getButton()&&"foldWidgets"!=c.getRegion(M)){var D=M.getDocumentPosition().row,w=i.session.selection;if(M.getShiftKey())w.selectTo(D,0);else{if(2==M.domEvent.detail)return i.selectAll(),M.preventDefault();o.$clickSelection=i.selection.getLineRange(D)}return o.setState("selectByLines"),o.captureMouse(M),M.preventDefault()}}),o.editor.setDefaultHandler("guttermousemove",function(M){if(m.hasCssClass(M.domEvent.target||M.domEvent.srcElement,"ace_fold-widget"))return I();y&&o.$tooltipFollowsMouse&&R(M),b=M,!g&&(g=setTimeout(function(){g=null,b&&!o.isMousePressed?function(){var M=b.getDocumentPosition().row,A=c.$annotations[M];if(!A)return I();if(M==i.session.getLength()){var w=i.renderer.pixelToScreenCoordinates(0,b.y).row,x=b.$pos;if(w>i.session.documentToScreenRow(x.row,x.column))return I()}if(y!=A)if(y=A.text.join("
"),l.setHtml(y),l.show(),i._signal("showGutterTooltip",l),i.on("mousewheel",I),o.$tooltipFollowsMouse)R(b);else{var L=b.domEvent.target.getBoundingClientRect(),F=l.getElement().style;F.left=L.right+"px",F.top=L.bottom+"px"}}():I()},50))}),d.addListener(i.renderer.$gutter,"mouseout",function(M){b=null,y&&!g&&(g=setTimeout(function(){g=null,I()},50))},i),i.on("changeSession",I)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,f,_){"use strict";var m=n("../lib/event"),s=n("../lib/useragent"),d=f.MouseEvent=function(u,h){this.domEvent=u,this.editor=h,this.x=this.clientX=u.clientX,this.y=this.clientY=u.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){m.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){m.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var h=this.editor.getSelectionRange();if(h.isEmpty())this.$inSelection=!1;else{var r=this.getDocumentPosition();this.$inSelection=h.contains(r.row,r.column)}return this.$inSelection},this.getButton=function(){return m.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=s.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(d.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,f,_){"use strict";var m=n("../lib/dom"),s=n("../lib/event"),d=n("../lib/useragent");function o(c){var l=c.editor,g=m.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent="\xa0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(Ie){c[Ie]=this[Ie]},this),l.on("mousedown",this.onMouseDown.bind(c));var S,I,R,M,A,D,x,C,L,F,re,y=l.container,w=0;function ee(){var Ie=D;(function(Ie,We){var Xe=Date.now();F&&We&&Ie.row==We.row&&We&&Ie.column==We.column?i(re.x,re.y,I,R)>5?F=null:Xe-F>=200&&(l.renderer.scrollCursorIntoView(),F=null):(l.moveCursorToPosition(Ie),F=Xe,re={x:I,y:R})})(D=l.renderer.screenToTextCoordinates(I,R),Ie),function(Ie,We){var Xe=Date.now(),ft=l.renderer.layerConfig.lineHeight,Pe=l.renderer.layerConfig.characterWidth,et=l.renderer.scroller.getBoundingClientRect(),at={x:{left:I-et.left,right:et.right-I},y:{top:R-et.top,bottom:et.bottom-R}},pt=Math.min(at.x.left,at.x.right),vt=Math.min(at.y.top,at.y.bottom),yt={row:Ie.row,column:Ie.column};pt/Pe<=2&&(yt.column+=at.x.left=200&&l.renderer.scrollCursorIntoView(yt):L=Xe:L=null}(D,Ie)}function $(){A=l.selection.toOrientedRange(),S=l.session.addMarker(A,"ace_selection",l.getSelectionStyle()),l.clearSelection(),l.isFocused()&&l.renderer.$cursorLayer.setBlinking(!1),clearInterval(M),ee(),M=setInterval(ee,20),w=0,s.addListener(document,"mousemove",ne)}function J(){clearInterval(M),l.session.removeMarker(S),S=null,l.selection.fromOrientedRange(A),l.isFocused()&&!C&&l.$resetCursorStyle(),A=null,D=null,w=0,L=null,F=null,s.removeListener(document,"mousemove",ne)}this.onDragStart=function(Ie){if(this.cancelDrag||!y.draggable){var We=this;return setTimeout(function(){We.startSelect(),We.captureMouse(Ie)},0),Ie.preventDefault()}A=l.getSelectionRange();var Xe=Ie.dataTransfer;Xe.effectAllowed=l.getReadOnly()?"copy":"copyMove",l.container.appendChild(g),Xe.setDragImage&&Xe.setDragImage(g,0,0),setTimeout(function(){l.container.removeChild(g)}),Xe.clearData(),Xe.setData("Text",l.session.getTextRange()),C=!0,this.setState("drag")},this.onDragEnd=function(Ie){y.draggable=!1,C=!1,this.setState(null),l.getReadOnly()||(!x&&"move"==Ie.dataTransfer.dropEffect&&l.session.remove(l.getSelectionRange()),l.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Ie){if(!l.getReadOnly()&&ae(Ie.dataTransfer))return I=Ie.clientX,R=Ie.clientY,S||$(),w++,Ie.dataTransfer.dropEffect=x=xe(Ie),s.preventDefault(Ie)},this.onDragOver=function(Ie){if(!l.getReadOnly()&&ae(Ie.dataTransfer))return I=Ie.clientX,R=Ie.clientY,S||($(),w++),null!==ie&&(ie=null),Ie.dataTransfer.dropEffect=x=xe(Ie),s.preventDefault(Ie)},this.onDragLeave=function(Ie){if(--w<=0&&S)return J(),x=null,s.preventDefault(Ie)},this.onDrop=function(Ie){if(D){var We=Ie.dataTransfer;if(C)switch(x){case"move":A=A.contains(D.row,D.column)?{start:D,end:D}:l.moveText(A,D);break;case"copy":A=l.moveText(A,D,!0)}else{var Xe=We.getData("Text");A={start:D,end:l.session.insert(D,Xe)},l.focus(),x=null}return J(),s.preventDefault(Ie)}},s.addListener(y,"dragstart",this.onDragStart.bind(c),l),s.addListener(y,"dragend",this.onDragEnd.bind(c),l),s.addListener(y,"dragenter",this.onDragEnter.bind(c),l),s.addListener(y,"dragover",this.onDragOver.bind(c),l),s.addListener(y,"dragleave",this.onDragLeave.bind(c),l),s.addListener(y,"drop",this.onDrop.bind(c),l);var ie=null;function ne(){null==ie&&(ie=setTimeout(function(){null!=ie&&S&&J()},20))}function ae(Ie){var We=Ie.types;return!We||Array.prototype.some.call(We,function(Xe){return"text/plain"==Xe||"Text"==Xe})}function xe(Ie){var We=["copy","copymove","all","uninitialized"],ft=d.isMac?Ie.altKey:Ie.ctrlKey,Pe="uninitialized";try{Pe=Ie.dataTransfer.effectAllowed.toLowerCase()}catch(at){}var et="none";return ft&&We.indexOf(Pe)>=0?et="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(Pe)>=0?et="move":We.indexOf(Pe)>=0&&(et="copy"),et}}function i(c,l,g,b){return Math.sqrt(Math.pow(g-c,2)+Math.pow(b-l,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor;c.container.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging"),c.renderer.setCursorStyle(d.isWin?"default":"move"),this.setState("dragReady")},this.onMouseDrag=function(c){var l=this.editor.container;d.isIE&&"dragReady"==this.state&&i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&l.dragDrop(),"dragWait"===this.state&&i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var l=this.editor,g=c.inSelection(),b=c.getButton();if(1===(c.domEvent.detail||1)&&0===b&&g){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var S=c.domEvent.target||c.domEvent.srcElement;"unselectable"in S&&(S.unselectable="on"),l.getDragDelay()?(d.isWebKit&&(this.cancelDrag=!0,l.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(o.prototype),f.DragdropHandler=o}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,f,_){"use strict";var m=n("./mouse_event").MouseEvent,s=n("../lib/event"),d=n("../lib/dom");f.addTouchListeners=function(u,h){var o,i,c,l,g,b,S,A,D,r="scroll",y=0,I=0,R=0,M=0;function x(){D||function(){var Y=window.navigator&&window.navigator.clipboard,X=!1,$=function(J){var ie=J.target.getAttribute("action");if("more"==ie||!X)return X=!X,function(){var J=h.getCopyText(),ie=h.session.getUndoManager().hasUndo();D.replaceChild(d.buildDom(X?["span",!J&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],J&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],J&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],Y&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],ie&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),D.firstChild)}();"paste"==ie?Y.readText().then(function(ne){h.execCommand(ie,ne)}):ie&&(("cut"==ie||"copy"==ie)&&(Y?Y.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(ie)),D.firstChild.style.display="none",X=!1,"openCommandPallete"!=ie&&h.focus()};D=d.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(J){r="menu",J.stopPropagation(),J.preventDefault(),h.textInput.focus()},ontouchend:function(J){J.stopPropagation(),J.preventDefault(),$(J)},onclick:$},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}();var Y=h.selection.cursor,X=h.renderer.textToScreenCoordinates(Y.row,Y.column),ee=h.renderer.textToScreenCoordinates(0,0).pageX,$=h.renderer.scrollLeft,J=h.container.getBoundingClientRect();D.style.top=X.pageY-J.top-3+"px",X.pageX-J.left1)return clearTimeout(g),g=null,c=-1,void(r="zoom");A=h.$mouseHandler.isMousePressed=!0;var ee=h.renderer.layerConfig.lineHeight,$=h.renderer.layerConfig.lineHeight,J=Y.timeStamp;l=J;var ie=X[0],ne=ie.clientX,ae=ie.clientY;Math.abs(o-ne)+Math.abs(i-ae)>ee&&(c=-1),o=Y.clientX=ne,i=Y.clientY=ae,R=M=0;var xe=new m(Y,h);if(S=xe.getDocumentPosition(),J-c<500&&1==X.length&&!y)I++,Y.preventDefault(),Y.button=0,function(){g=null,clearTimeout(g),h.selection.moveToPosition(S);var Y=I>=2?h.selection.getLineRange(S.row):h.session.getBracketRange(S);Y&&!Y.isEmpty()?h.selection.setRange(Y):h.selection.selectWord(),r="wait"}();else{I=0;var Ie=h.selection.cursor,We=h.selection.isEmpty()?Ie:h.selection.anchor,Xe=h.renderer.$cursorLayer.getPixelPosition(Ie,!0),ft=h.renderer.$cursorLayer.getPixelPosition(We,!0),Pe=h.renderer.scroller.getBoundingClientRect(),et=h.renderer.layerConfig.offset,at=h.renderer.scrollLeft,pt=function(ot,_t){return(ot/=$)*ot+(_t=_t/ee-.75)*_t};if(Y.clientXyt?"cursor":"anchor"),r=yt<3.5?"anchor":vt<3.5?"cursor":"scroll",g=setTimeout(L,450)}c=J},h),s.addListener(u,"touchend",function(Y){A=h.$mouseHandler.isMousePressed=!1,b&&clearInterval(b),"zoom"==r?(r="",y=0):g?(h.selection.moveToPosition(S),y=0,x()):"scroll"==r?(y+=60,b=setInterval(function(){y--<=0&&(clearInterval(b),b=null),Math.abs(R)<.01&&(R=0),Math.abs(M)<.01&&(M=0),y<20&&(R*=.9),y<20&&(M*=.9);var Y=h.session.getScrollTop();h.renderer.scrollBy(10*R,10*M),Y==h.session.getScrollTop()&&(y=0)},10),C()):x(),clearTimeout(g),g=null},h),s.addListener(u,"touchmove",function(Y){g&&(clearTimeout(g),g=null);var X=Y.touches;if(!(X.length>1||"zoom"==r)){var ee=X[0],$=o-ee.clientX,J=i-ee.clientY;if("wait"==r){if(!($*$+J*J>4))return Y.preventDefault();r="cursor"}o=ee.clientX,i=ee.clientY,Y.clientX=ee.clientX,Y.clientY=ee.clientY;var ie=Y.timeStamp,ne=ie-l;if(l=ie,"scroll"==r){var ae=new m(Y,h);ae.speed=1,ae.wheelX=$,ae.wheelY=J,10*Math.abs($)1&&(I=y[y.length-2]);var M=o[b+"Path"];return null==M?M=o.basePath:"/"==S&&(b=S=""),M&&"/"!=M.slice(-1)&&(M+="/"),M+b+S+I+this.get("suffix")},f.setModuleUrl=function(g,b){return o.$moduleUrls[g]=b},f.$loading={},f.loadModule=function(g,b){var y,S;Array.isArray(g)&&(S=g[0],g=g[1]);try{y=n(g)}catch(R){}if(y&&!f.$loading[g])return b&&b(y);if(f.$loading[g]||(f.$loading[g]=[]),f.$loading[g].push(b),!(f.$loading[g].length>1)){var I=function(){n([g],function(R){f._emit("load.module",{name:g,module:R});var M=f.$loading[g];f.$loading[g]=null,M.forEach(function(A){A&&A(R)})})};if(!f.get("packaged"))return I();d.loadScript(f.moduleUrl(g,S),I),i()}};var i=function(){!o.basePath&&!o.workerPath&&!o.modePath&&!o.themePath&&!Object.keys(o.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),i=function(){})};function c(g){if(r&&r.document){o.packaged=g||n.packaged||_.packaged||r.define&&p.amdD.packaged;for(var b={},y="",S=document.currentScript||document._currentScript,R=(S&&S.ownerDocument||document).getElementsByTagName("script"),M=0;M=at){for(_t=ot+1;_t=at;)_t++;for(At=ot,Tt=_t-1;At=pt.length||2!=(_t=vt[yt-1])&&3!=_t||2!=(At=pt[yt+1])&&3!=At?4:(h&&(At=3),At==_t?At:4);case 10:return 2==(_t=yt>0?vt[yt-1]:5)&&yt+10&&2==vt[yt-1])return 2;if(h)return 4;for(Bt=yt+1,Tt=pt.length;Bt=1425&&Et<=2303||64286==Et)&&(1==_t||7==_t))return 1}return yt<1||5==(_t=pt[yt-1])?4:vt[yt-1];case 5:return h=!1,o=!0,d;case 6:return i=!0,4;case 13:case 14:case 16:case 17:case 15:h=!1;case 18:return 4}}function Pe(at){var pt=at.charCodeAt(0),vt=pt>>8;return 0==vt?pt>191?0:xe[pt]:5==vt?/[\u0591-\u05f4]/.test(at)?1:0:6==vt?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(at)?12:/[\u0660-\u0669\u066b-\u066c]/.test(at)?3:1642==pt?Y:/[\u06f0-\u06f9]/.test(at)?2:7:32==vt&&pt<=8287?Ie[255&pt]:254==vt&&pt>=65136?7:4}f.L=0,f.R=1,f.EN=2,f.ON_R=3,f.AN=4,f.R_H=5,f.B=6,f.RLE=7,f.DOT="\xb7",f.doBidiReorder=function(at,pt,vt){if(at.length<2)return{};var yt=at.split(""),ot=new Array(yt.length),_t=new Array(yt.length),At=[];d=vt?1:0,function(at,pt,vt,yt){var ot=d?b:g,_t=null,At=null,Tt=null,Bt=0,Et=null,fe=-1,H=null,T=null,U=[];if(!yt)for(H=0,yt=[];H0)if(16==Et){for(H=fe;H-1){for(H=fe;H=0&&8==yt[Z];Z--)pt[Z]=d}}(yt,At,yt.length,pt);for(var Tt=0;Tt7&&pt[Tt]<13||4===pt[Tt]||18===pt[Tt])?At[Tt]=f.ON_R:Tt>0&&"\u0644"===yt[Tt-1]&&/\u0622|\u0623|\u0625|\u0627/.test(yt[Tt])&&(At[Tt-1]=At[Tt]=f.R_H,Tt++);for(yt[yt.length-1]===f.DOT&&(At[yt.length-1]=f.B),"\u202b"===yt[0]&&(At[0]=f.RLE),Tt=0;Tt=0&&(h=this.session.$docRowCache[o])}return h},this.getSplitIndex=function(){var h=0,r=this.session.$screenRowCache;if(r.length)for(var o,i=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-h>0&&(o=this.session.$getRowCacheIndex(r,this.currentRow-h-1))===i;)i=o,h++;else h=this.currentRow;return h},this.updateRowLine=function(h,r){void 0===h&&(h=this.getDocumentRow());var i=h===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(h),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var c=this.session.$wrapData[h];c&&(void 0===r&&(r=this.getSplitIndex()),r>0&&c.length?(this.wrapIndent=c.indent,this.wrapOffset=this.wrapIndent*this.charWidths[m.L],this.line=rr?this.session.getOverwrite()?h:h-1:r,i=m.getVisualFromLogicalIdx(o,this.bidiMap),c=this.bidiMap.bidiLevels,l=0;!this.session.getOverwrite()&&h<=r&&c[i]%2!=0&&i++;for(var g=0;gr&&c[i]%2==0&&(l+=this.charWidths[c[i]]),this.wrapIndent&&(l+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(l+=this.rtlLineOffset),l},this.getSelections=function(h,r){var c,o=this.bidiMap,i=o.bidiLevels,l=[],g=0,b=Math.min(h,r)-this.wrapIndent,y=Math.max(h,r)-this.wrapIndent,S=!1,I=!1,R=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var M,A=0;A=b&&Mo+l/2;){if(o+=l,i===c.length-1){l=0;break}l=this.charWidths[c[++i]]}return i>0&&c[i-1]%2!=0&&c[i]%2==0?(h0&&c[i-1]%2==0&&c[i]%2!=0?r=1+(h>o?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===c.length-1&&0===l&&c[i-1]%2==0||!this.isRtlDir&&0===i&&c[i]%2!=0?r=1+this.bidiMap.logicalFromVisual[i]:(i>0&&c[i-1]%2!=0&&0!==l&&i--,r=this.bidiMap.logicalFromVisual[i]),0===r&&this.isRtlDir&&r++,r+this.wrapIndent}}).call(u.prototype),f.BidiHandler=u}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,f,_){"use strict";var m=n("./lib/oop"),s=n("./lib/lang"),d=n("./lib/event_emitter").EventEmitter,u=n("./range").Range,h=function(r){this.session=r,this.doc=r.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var o=this;this.cursor.on("change",function(i){o.$cursorChanged=!0,o.$silent||o._emit("changeCursor"),!o.$isEmpty&&!o.$silent&&o._emit("changeSelection"),!o.$keepDesiredColumnOnChange&&i.old.column!=i.value.column&&(o.$desiredColumn=null)}),this.anchor.on("change",function(){o.$anchorChanged=!0,!o.$isEmpty&&!o.$silent&&o._emit("changeSelection")})};(function(){m.implement(this,d),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(r,o){this.$isEmpty=!1,this.anchor.setPosition(r,o)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var r=this.anchor,o=this.lead;return r.row>o.row||r.row==o.row&&r.column>o.column},this.getRange=function(){var r=this.anchor,o=this.lead;return this.$isEmpty?u.fromPoints(o,o):this.isBackwards()?u.fromPoints(o,r):u.fromPoints(r,o)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(r,o){var i=o?r.end:r.start,c=o?r.start:r.end;this.$setSelection(i.row,i.column,c.row,c.column)},this.$setSelection=function(r,o,i,c){if(!this.$silent){var l=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,o),this.cursor.setPosition(i,c),this.$isEmpty=!u.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||l!=this.$isEmpty||g)&&this._emit("changeSelection")}},this.$moveSelection=function(r){var o=this.lead;this.$isEmpty&&this.setSelectionAnchor(o.row,o.column),r.call(this)},this.selectTo=function(r,o){this.$moveSelection(function(){this.moveCursorTo(r,o)})},this.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},this.moveTo=function(r,o){this.clearSelection(),this.moveCursorTo(r,o)},this.moveToPosition=function(r){this.clearSelection(),this.moveCursorToPosition(r)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(r,o){if(void 0===o){var i=r||this.lead;r=i.row,o=i.column}return this.session.getWordRange(r,o)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var r=this.getCursor(),o=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(o)},this.getLineRange=function(r,o){var c,i="number"==typeof r?r:this.lead.row,l=this.session.getFoldLine(i);return l?(i=l.start.row,c=l.end.row):c=i,!0===o?new u(i,0,c,this.session.getLine(c).length):new u(i,0,c+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(r,o,i){var c=r.column,l=r.column+o;return i<0&&(c=r.column-o,l=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(c,l).split(" ").length-1==o},this.moveCursorLeft=function(){var o,r=this.lead.getPosition();if(o=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(o.start.row,o.start.column);else if(0===r.column)r.row>0&&this.moveCursorTo(r.row-1,this.doc.getLine(r.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(r,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var o,r=this.lead.getPosition();if(o=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(o.end.row,o.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(o.column=c)}}this.moveCursorTo(o.row,o.column)},this.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,o=this.doc.getLine(r).length;this.moveCursorTo(r,o)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var r=this.lead.row,o=this.lead.column,i=this.doc.getLine(r),c=i.substring(o);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var l=this.session.getFoldAt(r,o,1);if(!l)return this.session.nonTokenRe.exec(c)&&(o+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,c=i.substring(o)),o>=i.length?(this.moveCursorTo(r,i.length),this.moveCursorRight(),void(r0&&this.moveCursorWordLeft());this.session.tokenRe.exec(l)&&(o-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,o)}},this.$shortWordEndIndex=function(r){var i,o=0,c=/\s/,l=this.session.tokenRe;if(l.lastIndex=0,this.session.tokenRe.exec(r))o=this.session.tokenRe.lastIndex;else{for(;(i=r[o])&&c.test(i);)o++;if(o<1)for(l.lastIndex=0;(i=r[o])&&!l.test(i);)if(l.lastIndex=0,o++,c.test(i)){if(o>2){o--;break}for(;(i=r[o])&&c.test(i);)o++;if(o>2)break}}return l.lastIndex=0,o},this.moveCursorShortWordRight=function(){var r=this.lead.row,o=this.lead.column,i=this.doc.getLine(r),c=i.substring(o),l=this.session.getFoldAt(r,o,1);if(l)return this.moveCursorTo(l.end.row,l.end.column);if(o==i.length){var g=this.doc.getLength();do{r++,c=this.doc.getLine(r)}while(r0&&/^\s*$/.test(c));o=c.length,/\s+$/.test(c)||(c="")}var l=s.stringReverse(c),g=this.$shortWordEndIndex(l);return this.moveCursorTo(r,o-g)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(r,o){var c,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===o&&(0!==r&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(c=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(c/this.session.$bidiHandler.charWidths[0])):c=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=r&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var l=this.session.lineWidgets[this.lead.row];r<0?r-=l.rowsAbove||0:r>0&&(r+=l.rowCount-(l.rowsAbove||0))}var g=this.session.screenToDocumentPosition(i.row+r,i.column,c);this.moveCursorTo(g.row,g.column+o,0===o)},this.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},this.moveCursorTo=function(r,o,i){var c=this.session.getFoldAt(r,o,1);c&&(r=c.start.row,o=c.start.column),this.$keepDesiredColumnOnChange=!0;var l=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(l.charAt(o))&&l.charAt(o-1)&&(this.lead.row==r&&this.lead.column==o+1?o-=1:o+=1),this.lead.setPosition(r,o),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(r,o,i){var c=this.session.screenToDocumentPosition(r,o);this.moveCursorTo(c.row,c.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(r){this.setSelectionRange(r,r.cursor==r.start),this.$desiredColumn=r.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(r){var o=this.getRange();return r?(r.start.column=o.start.column,r.start.row=o.start.row,r.end.column=o.end.column,r.end.row=o.end.row):r=o,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},this.getRangeOfMovements=function(r){var o=this.getCursor();try{r(this);var i=this.getCursor();return u.fromPoints(o,i)}catch(c){return u.fromPoints(o,o)}finally{this.moveCursorToPosition(o)}},this.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(o){var i=o.clone();return i.isBackwards=o.cursor==o.start,i});else(r=this.getRange()).isBackwards=this.isBackwards();return r},this.fromJSON=function(r){if(null==r.start){if(this.rangeList&&r.length>1){this.toSingleRange(r[0]);for(var o=r.length;o--;){var i=u.fromPoints(r[o].start,r[o].end);r[o].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}r=r[0]}this.rangeList&&this.toSingleRange(r),this.setSelectionRange(r,r.isBackwards)},this.isEqual=function(r){if((r.length||this.rangeCount)&&r.length!=this.rangeCount)return!1;if(!r.length||!this.ranges)return this.getRange().isEqual(r);for(var o=this.ranges.length;o--;)if(!this.ranges[o].isEqual(r[o]))return!1;return!0}}).call(h.prototype),f.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(n,f,_){"use strict";var m=n("./config"),s=2e3,d=function(u){for(var h in this.states=u,this.regExps={},this.matchMappings={},this.states){for(var r=this.states[h],o=[],i=0,c=this.matchMappings[h]={defaultToken:"text"},l="g",g=[],b=0;b1?this.$applyToken:y.token),I>1&&(/\\\d/.test(y.regex)?S=y.regex.replace(/\\([0-9]+)/g,function(R,M){return"\\"+(parseInt(M,10)+i+1)}):(I=1,S=this.removeCapturingGroups(y.regex)),!y.splitRegex&&"string"!=typeof y.token&&g.push(y)),c[i]=b,i+=I,o.push(S),y.onMatch||(y.onMatch=null)}}o.length||(c[0]=0,o.push("$")),g.forEach(function(R){R.splitRegex=this.createSplitterRegexp(R.regex,l)},this),this.regExps[h]=new RegExp("("+o.join(")|(")+")|($)",l)}};(function(){this.$setMaxTokenCount=function(u){s=0|u},this.$applyToken=function(u){var h=this.splitRegex.exec(u).slice(1),r=this.token.apply(this,h);if("string"==typeof r)return[{type:r,value:u}];for(var o=[],i=0,c=r.length;iy){var w=u.substring(y,D-A.length);I.type==R?I.value+=w:(I.type&&b.push(I),I={type:R,value:w})}for(var x=0;xs){for(S>2*u.length&&this.reportError("infinite loop with in ace tokenizer",{startState:h,line:u});y1&&r[0]!==o&&r.unshift("#tmp",o),{tokens:b,state:r.length?r:o}},this.reportError=m.reportError}).call(d.prototype),f.Tokenizer=d}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(n,f,_){"use strict";var m=n("../lib/lang"),s=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(h,r){if(r)for(var o in h){for(var i=h[o],c=0;c=this.$rowTokens.length;){if(this.$row+=1,d||(d=this.$session.getLength()),this.$row>=d)return this.$row=d-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var d=this.$rowTokens,u=this.$tokenIndex,h=d[u].start;if(void 0!==h)return h;for(h=0;u>0;)h+=d[u-=1].value.length;return h},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var d=this.$rowTokens[this.$tokenIndex],u=this.getCurrentTokenColumn();return new m(this.$row,u,this.$row,u+d.value.length)}}).call(s.prototype),f.TokenIterator=s}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,f,_){"use strict";var o,m=n("../../lib/oop"),s=n("../behaviour").Behaviour,d=n("../../token_iterator").TokenIterator,u=n("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],r=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i={},c={'"':'"',"'":"'"},l=function(y){var S=-1;if(y.multiSelect&&(S=y.selection.index,i.rangeCount!=y.multiSelect.rangeCount&&(i={rangeCount:y.multiSelect.rangeCount})),i[S])return o=i[S];o=i[S]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(y,S,I,R){var M=y.end.row-y.start.row;return{text:I+S+R,selection:[0,y.start.column+1,M,y.end.column+(M?0:1)]}},b=function(y){this.add("braces","insertion",function(S,I,R,M,A){var D=R.getCursorPosition(),w=M.doc.getLine(D.row);if("{"==A){l(R);var x=R.getSelectionRange(),C=M.doc.getTextRange(x);if(""!==C&&"{"!==C&&R.getWrapBehavioursEnabled())return g(x,C,"{","}");if(b.isSaneInsertion(R,M))return/[\]\}\)]/.test(w[D.column])||R.inMultiSelectMode||y&&y.braces?(b.recordAutoInsert(R,M,"}"),{text:"{}",selection:[1,1]}):(b.recordMaybeInsert(R,M,"{"),{text:"{",selection:[1,1]})}else if("}"==A){if(l(R),"}"==w.substring(D.column,D.column+1)&&null!==M.$findOpeningBracket("}",{column:D.column+1,row:D.row})&&b.isAutoInsertedClosing(D,w,A))return b.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==A||"\r\n"==A){l(R);var re="";if(b.isMaybeInsertedClosing(D,w)&&(re=u.stringRepeat("}",o.maybeInsertedBrackets),b.clearMaybeInsertedClosing()),"}"===w.substring(D.column,D.column+1)){var Y=M.findMatchingBracket({row:D.row,column:D.column+1},"}");if(!Y)return null;var X=this.$getIndent(M.getLine(Y.row))}else{if(!re)return void b.clearMaybeInsertedClosing();X=this.$getIndent(w)}var ee=X+M.getTabString();return{text:"\n"+ee+"\n"+X+re,selection:[1,ee.length,1,ee.length]}}b.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(S,I,R,M,A){var D=M.doc.getTextRange(A);if(!A.isMultiLine()&&"{"==D){if(l(R),"}"==M.doc.getLine(A.start.row).substring(A.end.column,A.end.column+1))return A.end.column++,A;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(S,I,R,M,A){if("("==A){l(R);var D=R.getSelectionRange(),w=M.doc.getTextRange(D);if(""!==w&&R.getWrapBehavioursEnabled())return g(D,w,"(",")");if(b.isSaneInsertion(R,M))return b.recordAutoInsert(R,M,")"),{text:"()",selection:[1,1]}}else if(")"==A){l(R);var x=R.getCursorPosition(),C=M.doc.getLine(x.row);if(")"==C.substring(x.column,x.column+1)&&null!==M.$findOpeningBracket(")",{column:x.column+1,row:x.row})&&b.isAutoInsertedClosing(x,C,A))return b.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(S,I,R,M,A){var D=M.doc.getTextRange(A);if(!A.isMultiLine()&&"("==D&&(l(R),")"==M.doc.getLine(A.start.row).substring(A.start.column+1,A.start.column+2)))return A.end.column++,A}),this.add("brackets","insertion",function(S,I,R,M,A){if("["==A){l(R);var D=R.getSelectionRange(),w=M.doc.getTextRange(D);if(""!==w&&R.getWrapBehavioursEnabled())return g(D,w,"[","]");if(b.isSaneInsertion(R,M))return b.recordAutoInsert(R,M,"]"),{text:"[]",selection:[1,1]}}else if("]"==A){l(R);var x=R.getCursorPosition(),C=M.doc.getLine(x.row);if("]"==C.substring(x.column,x.column+1)&&null!==M.$findOpeningBracket("]",{column:x.column+1,row:x.row})&&b.isAutoInsertedClosing(x,C,A))return b.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(S,I,R,M,A){var D=M.doc.getTextRange(A);if(!A.isMultiLine()&&"["==D&&(l(R),"]"==M.doc.getLine(A.start.row).substring(A.start.column+1,A.start.column+2)))return A.end.column++,A}),this.add("string_dquotes","insertion",function(S,I,R,M,A){var D=M.$mode.$quotes||c;if(1==A.length&&D[A]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(A))return;l(R);var w=A,x=R.getSelectionRange(),C=M.doc.getTextRange(x);if(""!==C&&(1!=C.length||!D[C])&&R.getWrapBehavioursEnabled())return g(x,C,w,w);if(!C){var L=R.getCursorPosition(),F=M.doc.getLine(L.row),re=F.substring(L.column-1,L.column),Y=F.substring(L.column,L.column+1),X=M.getTokenAt(L.row,L.column),ee=M.getTokenAt(L.row,L.column+1);if("\\"==re&&X&&/escape/.test(X.type))return null;var ie,$=X&&/string|escape/.test(X.type),J=!ee||/string|escape/.test(ee.type);if(Y==w)(ie=$!==J)&&/string\.end/.test(ee.type)&&(ie=!1);else{if($&&!J||$&&J)return null;var ne=M.$mode.tokenRe;ne.lastIndex=0;var ae=ne.test(re);ne.lastIndex=0;var xe=ne.test(re);if(ae||xe||Y&&!/[\s;,.})\]\\]/.test(Y))return null;var Ie=F[L.column-2];if(re==w&&(Ie==w||ne.test(Ie)))return null;ie=!0}return{text:ie?w+w:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(S,I,R,M,A){var D=M.$mode.$quotes||c,w=M.doc.getTextRange(A);if(!A.isMultiLine()&&D.hasOwnProperty(w)&&(l(R),M.doc.getLine(A.start.row).substring(A.start.column+1,A.start.column+2)==w))return A.end.column++,A})};b.isSaneInsertion=function(y,S){var I=y.getCursorPosition(),R=new d(S,I.row,I.column);if(!this.$matchTokenType(R.getCurrentToken()||"text",h)){if(/[)}\]]/.test(y.session.getLine(I.row)[I.column]))return!0;var M=new d(S,I.row,I.column+1);if(!this.$matchTokenType(M.getCurrentToken()||"text",h))return!1}return R.stepForward(),R.getCurrentTokenRow()!==I.row||this.$matchTokenType(R.getCurrentToken()||"text",r)},b.$matchTokenType=function(y,S){return S.indexOf(y.type||y)>-1},b.recordAutoInsert=function(y,S,I){var R=y.getCursorPosition(),M=S.doc.getLine(R.row);this.isAutoInsertedClosing(R,M,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=R.row,o.autoInsertedLineEnd=I+M.substr(R.column),o.autoInsertedBrackets++},b.recordMaybeInsert=function(y,S,I){var R=y.getCursorPosition(),M=S.doc.getLine(R.row);this.isMaybeInsertedClosing(R,M)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=R.row,o.maybeInsertedLineStart=M.substr(0,R.column)+I,o.maybeInsertedLineEnd=M.substr(R.column),o.maybeInsertedBrackets++},b.isAutoInsertedClosing=function(y,S,I){return o.autoInsertedBrackets>0&&y.row===o.autoInsertedRow&&I===o.autoInsertedLineEnd[0]&&S.substr(y.column)===o.autoInsertedLineEnd},b.isMaybeInsertedClosing=function(y,S){return o.maybeInsertedBrackets>0&&y.row===o.maybeInsertedRow&&S.substr(y.column)===o.maybeInsertedLineEnd&&S.substr(0,y.column)==o.maybeInsertedLineStart},b.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},b.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},m.inherits(b,s),f.CstyleBehaviour=b}),ace.define("ace/unicode",["require","exports","module"],function(n,f,_){"use strict";for(var m=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],s=0,d=[],u=0;u2?Xe%A!=A-1:Xe%A==0}}else{if(!this.blockComment)return!1;w=this.blockComment.start;var x=this.blockComment.end,L=(C=new RegExp("^(\\s*)(?:"+r.escapeRegExp(w)+")"),new RegExp("(?:"+r.escapeRegExp(x)+")\\s*$"));F=function(ie,ne){Y(ie,ne)||(!I||/\S/.test(ie))&&(S.insertInLine({row:ne,column:ie.length},x),S.insertInLine({row:ne,column:M},w))},re=function(ie,ne){var ae;(ae=ie.match(L))&&S.removeInLine(ne,ie.length-ae[0].length,ie.length),(ae=ie.match(C))&&S.removeInLine(ne,ae[1].length,ae[0].length)},Y=function(ie,ne){if(C.test(ie))return!0;for(var ae=g.getTokens(ne),xe=0;xeie.length&&(J=ie.length)}),M==1/0&&(M=J,I=!1,R=!1),D&&M%A!=0&&(M=Math.floor(M/A)*A),$(R?re:F)},this.toggleBlockComment=function(l,g,b,y){var S=this.blockComment;if(S){!S.start&&S[0]&&(S=S[0]);var D,w,R=(I=new o(g,y.row,y.column)).getCurrentToken(),A=g.selection.toOrientedRange();if(R&&/comment/.test(R.type)){for(var x,C;R&&/comment/.test(R.type);){if(-1!=(L=R.value.indexOf(S.start))){var F=I.getCurrentTokenRow(),re=I.getCurrentTokenColumn()+L;x=new i(F,re,F,re+S.start.length);break}R=I.stepBackward()}var I;for(R=(I=new o(g,y.row,y.column)).getCurrentToken();R&&/comment/.test(R.type);){var L;if(-1!=(L=R.value.indexOf(S.end))){F=I.getCurrentTokenRow(),re=I.getCurrentTokenColumn()+L,C=new i(F,re,F,re+S.end.length);break}R=I.stepForward()}C&&g.remove(C),x&&(g.remove(x),D=x.start.row,w=-S.start.length)}else w=S.start.length,D=b.start.row,g.insert(b.end,S.end),g.insert(b.start,S.start);A.start.row==D&&(A.start.column+=w),A.end.row==D&&(A.end.column+=w),g.selection.fromOrientedRange(A)}},this.getNextLineIndent=function(l,g,b){return this.$getIndent(g)},this.checkOutdent=function(l,g,b){return!1},this.autoOutdent=function(l,g,b){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){for(var g in this.$embeds=[],this.$modes={},l)if(l[g]){var b=l[g],y=b.prototype.$id,S=m.$modes[y];S||(m.$modes[y]=S=new b),m.$modes[g]||(m.$modes[g]=S),this.$embeds.push(g),this.$modes[g]=S}var I=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(g=0;gthis.row)){var o=function(r,o,i){var c="insert"==r.action,l=(c?1:-1)*(r.end.row-r.start.row),g=(c?1:-1)*(r.end.column-r.start.column),b=r.start,y=c?b:r.end;return u(o,b,i)?{row:o.row,column:o.column}:u(y,o,!i)?{row:o.row+l,column:o.column+(o.row==y.row?g:0)}:{row:b.row,column:b.column}}(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(o.row,o.column,!0)}},this.setPosition=function(r,o,i){var c;if(c=i?{row:r,column:o}:this.$clipPositionToDocument(r,o),this.row!=c.row||this.column!=c.column){var l={row:this.row,column:this.column};this.row=c.row,this.column=c.column,this._signal("change",{old:l,value:c})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(r){this.document=r||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(r,o){var i={};return r>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):r<0?(i.row=0,i.column=0):(i.row=r,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,o))),o<0&&(i.column=0),i}}).call(d.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,f,_){"use strict";var m=n("./lib/oop"),s=n("./apply_delta").applyDelta,d=n("./lib/event_emitter").EventEmitter,u=n("./range").Range,h=n("./anchor").Anchor,r=function(o){this.$lines=[""],0===o.length?this.$lines=[""]:Array.isArray(o)?this.insertMergedLines({row:0,column:0},o):this.insert({row:0,column:0},o)};(function(){m.implement(this,d),this.setValue=function(o){var i=this.getLength()-1;this.remove(new u(0,0,i,this.getLine(i).length)),this.insert({row:0,column:0},o)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(o,i){return new h(this,o,i)},this.$split=0==="aaa".split(/a/).length?function(o){return o.replace(/\r\n|\r/g,"\n").split("\n")}:function(o){return o.split(/\r\n|\r|\n/)},this.$detectNewLine=function(o){var i=o.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=i?i[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(o){this.$newLineMode!==o&&(this.$newLineMode=o,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(o){return"\r\n"==o||"\r"==o||"\n"==o},this.getLine=function(o){return this.$lines[o]||""},this.getLines=function(o,i){return this.$lines.slice(o,i+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(o){return this.getLinesForRange(o).join(this.getNewLineCharacter())},this.getLinesForRange=function(o){var i;if(o.start.row===o.end.row)i=[this.getLine(o.start.row).substring(o.start.column,o.end.column)];else{(i=this.getLines(o.start.row,o.end.row))[0]=(i[0]||"").substring(o.start.column);var c=i.length-1;o.end.row-o.start.row==c&&(i[c]=i[c].substring(0,o.end.column))}return i},this.insertLines=function(o,i){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(o,i)},this.removeLines=function(o,i){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(o,i)},this.insertNewLine=function(o){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(o,["",""])},this.insert=function(o,i){return this.getLength()<=1&&this.$detectNewLine(i),this.insertMergedLines(o,this.$split(i))},this.insertInLine=function(o,i){var c=this.clippedPos(o.row,o.column),l=this.pos(o.row,o.column+i.length);return this.applyDelta({start:c,end:l,action:"insert",lines:[i]},!0),this.clonePos(l)},this.clippedPos=function(o,i){var c=this.getLength();void 0===o?o=c:o<0?o=0:o>=c&&(o=c-1,i=void 0);var l=this.getLine(o);return null==i&&(i=l.length),{row:o,column:i=Math.min(Math.max(i,0),l.length)}},this.clonePos=function(o){return{row:o.row,column:o.column}},this.pos=function(o,i){return{row:o,column:i}},this.$clipPosition=function(o){var i=this.getLength();return o.row>=i?(o.row=Math.max(0,i-1),o.column=this.getLine(i-1).length):(o.row=Math.max(0,o.row),o.column=Math.min(Math.max(o.column,0),this.getLine(o.row).length)),o},this.insertFullLines=function(o,i){var c=0;(o=Math.min(Math.max(o,0),this.getLength()))0,l=i=0&&this.applyDelta({start:this.pos(o,this.getLine(o).length),end:this.pos(o+1,0),action:"remove",lines:["",""]})},this.replace=function(o,i){return o instanceof u||(o=u.fromPoints(o.start,o.end)),0===i.length&&o.isEmpty()?o.start:i==this.getTextRange(o)?o.end:(this.remove(o),i?this.insert(o.start,i):o.start)},this.applyDeltas=function(o){for(var i=0;i=0;i--)this.revertDelta(o[i])},this.applyDelta=function(o,i){var c="insert"==o.action;(c?o.lines.length<=1&&!o.lines[0]:!u.comparePoints(o.start,o.end))||(c&&o.lines.length>2e4?this.$splitAndapplyLargeDelta(o,2e4):(s(this.$lines,o,i),this._signal("change",o)))},this.$safeApplyDelta=function(o){var i=this.$lines.length;("remove"==o.action&&o.start.row20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=i,-1==c&&(c=i),g<=c&&r.fireUpdateEvent(g,c)}}};(function(){m.implement(this,s),this.setTokenizer=function(u){this.tokenizer=u,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(u){this.doc=u,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(u,h){this._signal("update",{data:{first:u,last:h}})},this.start=function(u){this.currentLine=Math.min(u||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(u){var h=u.start.row,r=u.end.row-h;if(0===r)this.lines[h]=null;else if("remove"==u.action)this.lines.splice(h,r+1,null),this.states.splice(h,r+1,null);else{var o=Array(r+1);o.unshift(h,1),this.lines.splice.apply(this.lines,o),this.states.splice.apply(this.states,o)}this.currentLine=Math.min(h,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(u){return this.lines[u]||this.$tokenizeRow(u)},this.getState=function(u){return this.currentLine==u&&this.$tokenizeRow(u),this.states[u]||"start"},this.$tokenizeRow=function(u){var h=this.doc.getLine(u),o=this.tokenizer.getLineTokens(h,this.states[u-1],u);return this.states[u]+""!=o.state+""?(this.states[u]=o.state,this.lines[u+1]=null,this.currentLine>u+1&&(this.currentLine=u+1)):this.currentLine==u&&(this.currentLine=u+1),this.lines[u]=o.tokens}}).call(d.prototype),f.BackgroundTokenizer=d}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,f,_){"use strict";var m=n("./lib/lang"),d=(n("./lib/oop"),n("./range").Range),u=function(h,r,o){this.setRegexp(h),this.clazz=r,this.type=o||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},this.update=function(h,r,o,i){if(this.regExp)for(var l=i.lastRow,g=i.firstRow;g<=l;g++){var b=this.cache[g];null==b&&((b=m.getMatchOffsets(o.getLine(g),this.regExp)).length>this.MAX_RANGES&&(b=b.slice(0,this.MAX_RANGES)),b=b.map(function(S){return new d(g,S.offset,g,S.offset+S.length)}),this.cache[g]=b.length?b:"");for(var y=b.length;y--;)r.drawSingleLineMarker(h,b[y].toScreenRange(o),this.clazz,i)}}}).call(u.prototype),f.SearchHighlight=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,f,_){"use strict";var m=n("../range").Range;function s(d,u){this.foldData=d,Array.isArray(u)?this.folds=u:u=this.folds=[u];var h=u[u.length-1];this.range=new m(u[0].start.row,u[0].start.column,h.end.row,h.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(r){r.setFoldLine(this)},this)}(function(){this.shiftRow=function(d){this.start.row+=d,this.end.row+=d,this.folds.forEach(function(u){u.start.row+=d,u.end.row+=d})},this.addFold=function(d){if(d.sameRow){if(d.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(d),this.folds.sort(function(u,h){return-u.range.compareEnd(h.start.row,h.start.column)}),this.range.compareEnd(d.start.row,d.start.column)>0?(this.end.row=d.end.row,this.end.column=d.end.column):this.range.compareStart(d.end.row,d.end.column)<0&&(this.start.row=d.start.row,this.start.column=d.start.column)}else if(d.start.row==this.end.row)this.folds.push(d),this.end.row=d.end.row,this.end.column=d.end.column;else{if(d.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(d),this.start.row=d.start.row,this.start.column=d.start.column}d.foldLine=this},this.containsRow=function(d){return d>=this.start.row&&d<=this.end.row},this.walk=function(d,u,h){var i,c,r=0,o=this.folds,g=!0;null==u&&(u=this.end.row,h=this.end.column);for(var b=0;b0)){var g=s(u,c.start);return 0===l?h&&0!==g?-i-2:i:g>0||0===g&&!h?i:-i-1}}return-i-1},this.add=function(u){var h=!u.isEmpty(),r=this.pointIndex(u.start,h);r<0&&(r=-r-1);var o=this.pointIndex(u.end,h,r);return o<0?o=-o-1:o++,this.ranges.splice(r,o-r,u)},this.addList=function(u){for(var h=[],r=u.length;r--;)h.push.apply(h,this.add(u[r]));return h},this.substractPoint=function(u){var h=this.pointIndex(u);if(h>=0)return this.ranges.splice(h,1)},this.merge=function(){for(var o,u=[],h=this.ranges,r=(h=h.sort(function(l,g){return s(l.start,g.start)}))[0],i=1;i=0},this.containsPoint=function(u){return this.pointIndex(u)>=0},this.rangeAtPoint=function(u){var h=this.pointIndex(u);if(h>=0)return this.ranges[h]},this.clipRows=function(u,h){var r=this.ranges;if(r[0].start.row>h||r[r.length-1].start.row=o);l++);if("insert"==u.action){for(var y=i-o,S=-h.column+r.column;lo);l++)if(b.start.row==o&&b.start.column>=h.column&&(b.start.column==h.column&&this.$bias<=0||(b.start.column+=S,b.start.row+=y)),b.end.row==o&&b.end.column>=h.column){if(b.end.column==h.column&&this.$bias<0)continue;b.end.column==h.column&&S>0&&lb.start.column&&b.end.column==c[l+1].start.column&&(b.end.column-=S),b.end.column+=S,b.end.row+=y}}else for(y=o-i,S=h.column-r.column;li);l++)b.end.rowh.column)&&(b.end.column=h.column,b.end.row=h.row):(b.end.column+=S,b.end.row+=y):b.end.row>i&&(b.end.row+=y),b.start.rowh.column)&&(b.start.column=h.column,b.start.row=h.row):(b.start.column+=S,b.start.row+=y):b.start.row>i&&(b.start.row+=y);if(0!=y&&l=r)return l;if(l.end.row>r)return null}return null},this.getNextFoldLine=function(r,o){var i=this.$foldData,c=0;for(o&&(c=i.indexOf(o)),-1==c&&(c=0);c=r)return l}return null},this.getFoldedRowCount=function(r,o){for(var i=this.$foldData,c=o-r+1,l=0;l=o){y=r?c-=o-y:c=0);break}b>=r&&(c-=y>=r?b-y:b-r+1)}return c},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(o,i){return o.start.row-i.start.row}),r},this.addFold=function(r,o){var l,i=this.$foldData,c=!1;r instanceof d?l=r:(l=new d(o,r)).collapseChildren=o.collapseChildren,this.$clipRangeToDocument(l.range);var g=l.start.row,b=l.start.column,y=l.end.row,S=l.end.column,I=this.getFoldAt(g,b,1),R=this.getFoldAt(y,S,-1);if(I&&R==I)return I.addSubFold(l);I&&!I.range.isStart(g,b)&&this.removeFold(I),R&&!R.range.isEnd(y,S)&&this.removeFold(R);var M=this.getFoldsInRange(l.range);M.length>0&&(this.removeFolds(M),l.collapseChildren||M.forEach(function(x){l.addSubFold(x)}));for(var A=0;A0&&this.foldAll(r.start.row+1,r.end.row,r.collapseChildren-1),r.subFolds=[]},this.expandFolds=function(r){r.forEach(function(o){this.expandFold(o)},this)},this.unfold=function(r,o){var i,c;if(null==r)i=new m(0,0,this.getLength(),0),null==o&&(o=!0);else if("number"==typeof r)i=new m(r,0,r,this.getLine(r).length);else if("row"in r)i=m.fromPoints(r,r);else{if(Array.isArray(r))return c=[],r.forEach(function(g){c=c.concat(this.unfold(g))},this),c;i=r}for(var l=c=this.getFoldsInRangeList(i);1==c.length&&m.comparePoints(c[0].start,i.start)<0&&m.comparePoints(c[0].end,i.end)>0;)this.expandFolds(c),c=this.getFoldsInRangeList(i);if(0!=o?this.removeFolds(c):this.expandFolds(c),l.length)return l},this.isRowFolded=function(r,o){return!!this.getFoldLine(r,o)},this.getRowFoldEnd=function(r,o){var i=this.getFoldLine(r,o);return i?i.end.row:r},this.getRowFoldStart=function(r,o){var i=this.getFoldLine(r,o);return i?i.start.row:r},this.getFoldDisplayLine=function(r,o,i,c,l){null==c&&(c=r.start.row),null==l&&(l=0),null==o&&(o=r.end.row),null==i&&(i=this.getLine(o).length);var g=this.doc,b="";return r.walk(function(y,S,I,R){if(!(SS)break}while(l&&b.test(l.type));l=c.stepBackward()}else l=c.getCurrentToken();return y.end.row=c.getCurrentTokenRow(),y.end.column=c.getCurrentTokenColumn()+l.value.length-2,y}},this.foldAll=function(r,o,i,c){null==i&&(i=1e5);var l=this.foldWidgets;if(l){o=o||this.getLength();for(var g=r=r||0;g=r&&(g=b.end.row,b.collapseChildren=i,this.addFold("...",b))}}},this.foldToLevel=function(r){for(this.foldAll();r-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var r=this;this.foldAll(null,null,null,function(o){for(var i=r.getTokens(o),c=0;c=0;){var g=i[c];if(null==g&&(g=i[c]=this.getFoldWidget(c)),"start"==g){var b=this.getFoldWidgetRange(c);if(l||(l=b),b&&b.end.row>=r)break}c--}return{range:-1!==c&&b,firstRange:l}},this.onFoldWidgetClick=function(r,o){if(!this.$toggleFoldWidget(r,{children:(o=o.domEvent).shiftKey,all:o.ctrlKey||o.metaKey,siblings:o.altKey})){var l=o.target||o.srcElement;l&&/ace_fold-widget/.test(l.className)&&(l.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,o){if(this.getFoldWidget){var i=this.getFoldWidget(r),c=this.getLine(r),l="end"===i?-1:1,g=this.getFoldAt(r,-1===l?0:c.length,l);if(g)return o.children||o.all?this.removeFold(g):this.expandFold(g),g;var b=this.getFoldWidgetRange(r,!0);if(b&&!b.isMultiLine()&&(g=this.getFoldAt(b.start.row,b.start.column,1))&&b.isEqual(g.range))return this.removeFold(g),g;if(o.siblings){var y=this.getParentFoldRangeData(r);if(y.range)var S=y.range.start.row+1,I=y.range.end.row;this.foldAll(S,I,o.all?1e4:0)}else o.children?(I=b?b.end.row:this.getLength(),this.foldAll(r+1,I,o.all?1e4:0)):b&&(o.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(r){var o=this.selection.getCursor().row;o=this.getRowFoldStart(o);var i=this.$toggleFoldWidget(o,{});if(!i){var c=this.getParentFoldRangeData(o,!0);if(i=c.range||c.firstRange){var l=this.getFoldAt(o=i.start.row,this.getLine(o).length,1);l?this.removeFold(l):this.addFold("...",i)}}},this.updateFoldWidgets=function(r){var o=r.start.row,i=r.end.row-o;if(0===i)this.foldWidgets[o]=null;else if("remove"==r.action)this.foldWidgets.splice(o,i+1,null);else{var c=Array(i+1);c.unshift(o,1),this.foldWidgets.splice.apply(this.foldWidgets,c)}},this.tokenizerUpdateFoldWidgets=function(r){var o=r.data;o.first!=o.last&&this.foldWidgets.length>o.first&&this.foldWidgets.splice(o.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,f,_){"use strict";var m=n("../token_iterator").TokenIterator,s=n("../range").Range;f.BracketMatch=function(){this.findMatchingBracket=function(u,h){if(0==u.column)return null;var r=h||this.getLine(u.row).charAt(u.column-1);if(""==r)return null;var o=r.match(/([\(\[\{])|([\)\]\}])/);return o?o[1]?this.$findClosingBracket(o[1],u):this.$findOpeningBracket(o[2],u):null},this.getBracketRange=function(u){var o,h=this.getLine(u.row),r=!0,i=h.charAt(u.column-1),c=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(c||(i=h.charAt(u.column),u={row:u.row,column:u.column+1},c=i&&i.match(/([\(\[\{])|([\)\]\}])/),r=!1),!c)return null;if(c[1]){if(!(l=this.$findClosingBracket(c[1],u)))return null;o=s.fromPoints(u,l),r||(o.end.column++,o.start.column--),o.cursor=o.end}else{var l;if(!(l=this.$findOpeningBracket(c[2],u)))return null;o=s.fromPoints(l,u),r||(o.start.column++,o.end.column--),o.cursor=o.start}return o},this.getMatchingBracketRanges=function(u){var h=this.getLine(u.row),r=h.charAt(u.column-1),o=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(o||(r=h.charAt(u.column),u={row:u.row,column:u.column+1},o=r&&r.match(/([\(\[\{])|([\)\]\}])/)),!o)return null;var i=new s(u.row,u.column-1,u.row,u.column),c=o[1]?this.$findClosingBracket(o[1],u):this.$findOpeningBracket(o[2],u);return c?[i,new s(c.row,c.column,c.row,c.column+1)]:[i]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(u,h,r){var o=this.$brackets[u],i=1,c=new m(this,h.row,h.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),l){r||(r=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var g=h.column-c.getCurrentTokenColumn()-2,b=l.value;;){for(;g>=0;){var y=b.charAt(g);if(y==o){if(0==(i-=1))return{row:c.getCurrentTokenRow(),column:g+c.getCurrentTokenColumn()}}else y==u&&(i+=1);g-=1}do{l=c.stepBackward()}while(l&&!r.test(l.type));if(null==l)break;g=(b=l.value).length-1}return null}},this.$findClosingBracket=function(u,h,r){var o=this.$brackets[u],i=1,c=new m(this,h.row,h.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),l){r||(r=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var g=h.column-c.getCurrentTokenColumn();;){for(var b=l.value,y=b.length;gF&&(this.$docRowCache.splice(F,L),this.$screenRowCache.splice(F,L))},this.$getRowCacheIndex=function(C,L){for(var F=0,re=C.length-1;F<=re;){var Y=F+re>>1,X=C[Y];if(L>X)F=Y+1;else{if(!(L=L);X++);return(re=F[X])?(re.index=X,re.start=Y-re.value.length,re):null},this.setUndoManager=function(C){if(this.$undoManager=C,this.$informUndoManager&&this.$informUndoManager.cancel(),C){var L=this;C.addSession(this),this.$syncInformUndoManager=function(){L.$informUndoManager.cancel(),L.mergeUndoDeltas=!1},this.$informUndoManager=s.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?s.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(C){this.setOption("useSoftTabs",C)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(C){this.setOption("tabSize",C)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(C){return this.$useSoftTabs&&C.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(C){this.setOption("navigateWithinSoftTabs",C)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(C){this.setOption("overwrite",C)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(C,L){this.$decorations[C]||(this.$decorations[C]=""),this.$decorations[C]+=" "+L,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(C,L){this.$decorations[C]=(this.$decorations[C]||"").replace(" "+L,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(C){this.$breakpoints=[];for(var L=0;L0&&(re=!!F.charAt(L-1).match(this.tokenRe)),re||(re=!!F.charAt(L).match(this.tokenRe)),re)var Y=this.tokenRe;else Y=/^\s+$/.test(F.slice(L-1,L+1))?/\s/:this.nonTokenRe;var X=L;if(X>0){do{X--}while(X>=0&&F.charAt(X).match(Y));X++}for(var ee=L;eeC&&(C=L.screenWidth)}),this.lineWidgetWidth=C},this.$computeWidth=function(C){if(this.$modified||C){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var L=this.doc.getAllLines(),F=this.$rowLengthCache,re=0,Y=0,X=this.$foldData[Y],ee=X?X.start.row:1/0,$=L.length,J=0;J<$;J++){if(J>ee){if((J=X.end.row+1)>=$)break;ee=(X=this.$foldData[Y++])?X.start.row:1/0}null==F[J]&&(F[J]=this.$getStringScreenWidth(L[J])[0]),F[J]>re&&(re=F[J])}this.screenWidth=re}},this.getLine=function(C){return this.doc.getLine(C)},this.getLines=function(C,L){return this.doc.getLines(C,L)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(C){return this.doc.getTextRange(C||this.selection.getRange())},this.insert=function(C,L){return this.doc.insert(C,L)},this.remove=function(C){return this.doc.remove(C)},this.removeFullLines=function(C,L){return this.doc.removeFullLines(C,L)},this.undoChanges=function(C,L){if(C.length){this.$fromUndo=!0;for(var F=C.length-1;-1!=F;F--){var re=C[F];"insert"==re.action||"remove"==re.action?this.doc.revertDelta(re):re.folds&&this.addFolds(re.folds)}!L&&this.$undoSelect&&(C.selectionBefore?this.selection.fromJSON(C.selectionBefore):this.selection.setRange(this.$getUndoSelection(C,!0))),this.$fromUndo=!1}},this.redoChanges=function(C,L){if(C.length){this.$fromUndo=!0;for(var F=0;FC.end.column&&(X.start.column+=$),X.end.row==C.end.row&&X.end.column>C.end.column&&(X.end.column+=$)),ee&&X.start.row>=C.end.row&&(X.start.row+=ee,X.end.row+=ee)),X.end=this.insert(X.start,re),Y.length){var J=C.start,ie=X.start,ee=ie.row-J.row,$=ie.column-J.column;this.addFolds(Y.map(function(xe){return(xe=xe.clone()).start.row==J.row&&(xe.start.column+=$),xe.end.row==J.row&&(xe.end.column+=$),xe.start.row+=ee,xe.end.row+=ee,xe}))}return X},this.indentRows=function(C,L,F){F=F.replace(/\t/g,this.getTabString());for(var re=C;re<=L;re++)this.doc.insertInLine({row:re,column:0},F)},this.outdentRows=function(C){for(var L=C.collapseRows(),F=new i(0,0,0,0),re=this.getTabSize(),Y=L.start.row;Y<=L.end.row;++Y){var X=this.getLine(Y);F.start.row=Y,F.end.row=Y;for(var ee=0;ee0){var re;if((re=this.getRowFoldEnd(L+F))>this.doc.getLength()-1)return 0;Y=re-L}else C=this.$clipRowToDocument(C),Y=(L=this.$clipRowToDocument(L))-C+1;var X=new i(C,0,L,Number.MAX_VALUE),ee=this.getFoldsInRange(X).map(function(J){return(J=J.clone()).start.row+=Y,J.end.row+=Y,J}),$=0==F?this.doc.getLines(C,L):this.doc.removeFullLines(C,L);return this.doc.insertFullLines(C+Y,$),ee.length&&this.addFolds(ee),Y},this.moveLinesUp=function(C,L){return this.$moveLines(C,L,-1)},this.moveLinesDown=function(C,L){return this.$moveLines(C,L,1)},this.duplicateLines=function(C,L){return this.$moveLines(C,L,0)},this.$clipRowToDocument=function(C){return Math.max(0,Math.min(C,this.doc.getLength()-1))},this.$clipColumnToRow=function(C,L){return L<0?0:Math.min(this.doc.getLine(C).length,L)},this.$clipPositionToDocument=function(C,L){if(L=Math.max(0,L),C<0)C=0,L=0;else{var F=this.doc.getLength();C>=F?(C=F-1,L=this.doc.getLine(F-1).length):L=Math.min(this.doc.getLine(C).length,L)}return{row:C,column:L}},this.$clipRangeToDocument=function(C){C.start.row<0?(C.start.row=0,C.start.column=0):C.start.column=this.$clipColumnToRow(C.start.row,C.start.column);var L=this.doc.getLength()-1;return C.end.row>L?(C.end.row=L,C.end.column=this.doc.getLine(L).length):C.end.column=this.$clipColumnToRow(C.end.row,C.end.column),C},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(C){if(C!=this.$useWrapMode){if(this.$useWrapMode=C,this.$modified=!0,this.$resetRowCache(0),C){var L=this.getLength();this.$wrapData=Array(L),this.$updateWrapData(0,L-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(C,L){(this.$wrapLimitRange.min!==C||this.$wrapLimitRange.max!==L)&&(this.$wrapLimitRange={min:C,max:L},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(C,L){var F=this.$wrapLimitRange;F.max<0&&(F={min:L,max:L});var re=this.$constrainWrapLimit(C,F.min,F.max);return re!=this.$wrapLimit&&re>1&&(this.$wrapLimit=re,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(C,L,F){return L&&(C=Math.max(L,C)),F&&(C=Math.min(F,C)),C},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(C){this.setWrapLimitRange(C,C)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(C){var L=this.$useWrapMode,F=C.action,re=C.start,Y=C.end,X=re.row,ee=Y.row,$=ee-X,J=null;if(this.$updating=!0,0!=$)if("remove"===F){this[L?"$wrapData":"$rowLengthCache"].splice(X,$);var ie=this.$foldData;J=this.getFoldsInRange(C),this.removeFolds(J);var ae=0;if(ne=this.getFoldLine(Y.row)){ne.addRemoveChars(Y.row,Y.column,re.column-Y.column),ne.shiftRow(-$);var xe=this.getFoldLine(X);xe&&xe!==ne&&(xe.merge(ne),ne=xe),ae=ie.indexOf(ne)+1}for(;ae=Y.row&&ne.shiftRow(-$);ee=X}else{var Ie=Array($);Ie.unshift(X,0);var We=L?this.$wrapData:this.$rowLengthCache;if(We.splice.apply(We,Ie),ie=this.$foldData,ae=0,ne=this.getFoldLine(X)){var Xe=ne.range.compareInside(re.row,re.column);0==Xe?(ne=ne.split(re.row,re.column))&&(ne.shiftRow($),ne.addRemoveChars(ee,0,Y.column-re.column)):-1==Xe&&(ne.addRemoveChars(X,0,Y.column-re.column),ne.shiftRow($)),ae=ie.indexOf(ne)+1}for(;ae=X&&ne.shiftRow($)}}else $=Math.abs(C.start.column-C.end.column),"remove"===F&&(J=this.getFoldsInRange(C),this.removeFolds(J),$=-$),(ne=this.getFoldLine(X))&&ne.addRemoveChars(X,re.column,$);return L&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,L?this.$updateWrapData(X,ee):this.$updateRowLengthCache(X,ee),J},this.$updateRowLengthCache=function(C,L,F){this.$rowLengthCache[C]=null,this.$rowLengthCache[L]=null},this.$updateWrapData=function(C,L){var ee,$,F=this.doc.getAllLines(),re=this.getTabSize(),Y=this.$wrapData,X=this.$wrapLimit,J=C;for(L=Math.min(L,F.length-1);J<=L;)($=this.getFoldLine(J,$))?(ee=[],$.walk(function(ie,ne,ae,xe){var Ie;if(null!=ie){(Ie=this.$getDisplayTokens(ie,ee.length))[0]=I;for(var We=1;We=4352&&C<=4447||C>=4515&&C<=4519||C>=4602&&C<=4607||C>=9001&&C<=9002||C>=11904&&C<=11929||C>=11931&&C<=12019||C>=12032&&C<=12245||C>=12272&&C<=12283||C>=12288&&C<=12350||C>=12353&&C<=12438||C>=12441&&C<=12543||C>=12549&&C<=12589||C>=12593&&C<=12686||C>=12688&&C<=12730||C>=12736&&C<=12771||C>=12784&&C<=12830||C>=12832&&C<=12871||C>=12880&&C<=13054||C>=13056&&C<=19903||C>=19968&&C<=42124||C>=42128&&C<=42182||C>=43360&&C<=43388||C>=44032&&C<=55203||C>=55216&&C<=55238||C>=55243&&C<=55291||C>=63744&&C<=64255||C>=65040&&C<=65049||C>=65072&&C<=65106||C>=65108&&C<=65126||C>=65128&&C<=65131||C>=65281&&C<=65376||C>=65504&&C<=65510)}this.$computeWrapSplits=function(C,L,F){if(0==C.length)return[];var re=[],Y=C.length,X=0,ee=0,$=this.$wrapAsCode,J=this.$indentedSoftWrap,ie=L<=Math.max(2*F,8)||!1===J?0:Math.floor(L/2);function ae(Xe){for(var ft=Xe-X,Pe=X;PeL-xe;){var Ie=X+L-xe;if(C[Ie-1]>=10&&C[Ie]>=10)ae(Ie);else if(C[Ie]!=I&&C[Ie]!=R){for(var We=Math.max(Ie-(L-(L>>2)),X-1);Ie>We&&C[Ie]We&&C[Ie]We&&9==C[Ie];)Ie--}else for(;Ie>We&&C[Ie]<10;)Ie--;Ie>We?ae(++Ie):(2==C[Ie=X+L]&&Ie--,ae(Ie-xe))}else{for(;Ie!=X-1&&C[Ie]!=I;Ie--);if(Ie>X){ae(Ie);continue}for(Ie=X+L;Ie39&&X<48||X>57&&X<64?F.push(9):X>=4352&&x(X)?F.push(1,2):F.push(1)}return F},this.$getStringScreenWidth=function(C,L,F){if(0==L)return[0,0];var re,Y;for(null==L&&(L=1/0),F=F||0,Y=0;Y=4352&&x(re)?F+=2:F+=1,!(F>L));Y++);return[F,Y]},this.lineWidgets=null,this.getRowLength=function(C){var L=1;return this.lineWidgets&&(L+=this.lineWidgets[C]&&this.lineWidgets[C].rowCount||0),this.$useWrapMode&&this.$wrapData[C]?this.$wrapData[C].length+L:L},this.getRowLineCount=function(C){return this.$useWrapMode&&this.$wrapData[C]?this.$wrapData[C].length+1:1},this.getRowWrapIndent=function(C){if(this.$useWrapMode){var L=this.screenToDocumentPosition(C,Number.MAX_VALUE),F=this.$wrapData[L.row];return F.length&&F[0]=0){$=ie[ne],Y=this.$docRowCache[ne];var xe=C>ie[ae-1]}else xe=!ae;for(var Ie=this.getLength()-1,We=this.getNextFoldLine(Y),Xe=We?We.start.row:1/0;$<=C&&!($+(J=this.getRowLength(Y))>C||Y>=Ie);)$+=J,++Y>Xe&&(Xe=(We=this.getNextFoldLine(Y=We.end.row+1,We))?We.start.row:1/0),xe&&(this.$docRowCache.push(Y),this.$screenRowCache.push($));if(We&&We.start.row<=Y)re=this.getFoldDisplayLine(We),Y=We.start.row;else{if($+J<=C||Y>Ie)return{row:Ie,column:this.getLine(Ie).length};re=this.getLine(Y),We=null}var ft=0,Pe=Math.floor(C-$);if(this.$useWrapMode){var et=this.$wrapData[Y];et&&(ee=et[Pe],Pe>0&&et.length&&(ft=et.indent,re=re.substring(X=et[Pe-1]||et[et.length-1])))}return void 0!==F&&this.$bidiHandler.isBidiRow($+Pe,Y,Pe)&&(L=this.$bidiHandler.offsetToCol(F)),X+=this.$getStringScreenWidth(re,L-ft)[1],this.$useWrapMode&&X>=ee&&(X=ee-1),We?We.idxToPosition(X):{row:Y,column:X}},this.documentToScreenPosition=function(C,L){if(void 0===L)var F=this.$clipPositionToDocument(C.row,C.column);else F=this.$clipPositionToDocument(C,L);var X,re=0,Y=null;(X=this.getFoldAt(C=F.row,L=F.column,1))&&(C=X.start.row,L=X.start.column);var ee,$=0,J=this.$docRowCache,ie=this.$getRowCacheIndex(J,C),ne=J.length;if(ne&&ie>=0){$=J[ie],re=this.$screenRowCache[ie];var ae=C>J[ne-1]}else ae=!ne;for(var xe=this.getNextFoldLine($),Ie=xe?xe.start.row:1/0;$=Ie){if((ee=xe.end.row+1)>C)break;Ie=(xe=this.getNextFoldLine(ee,xe))?xe.start.row:1/0}else ee=$+1;re+=this.getRowLength($),$=ee,ae&&(this.$docRowCache.push($),this.$screenRowCache.push(re))}var We="";xe&&$>=Ie?(We=this.getFoldDisplayLine(xe,C,L),Y=xe.start.row):(We=this.getLine(C).substring(0,L),Y=C);var Xe=0;if(this.$useWrapMode){var ft=this.$wrapData[Y];if(ft){for(var Pe=0;We.length>=ft[Pe];)re++,Pe++;We=We.substring(ft[Pe-1]||0,We.length),Xe=Pe>0?ft.indent:0}}return this.lineWidgets&&this.lineWidgets[$]&&this.lineWidgets[$].rowsAbove&&(re+=this.lineWidgets[$].rowsAbove),{row:re,column:Xe+this.$getStringScreenWidth(We)[0]}},this.documentToScreenColumn=function(C,L){return this.documentToScreenPosition(C,L).column},this.documentToScreenRow=function(C,L){return this.documentToScreenPosition(C,L).row},this.getScreenLength=function(){var C=0,L=null;if(this.$useWrapMode)for(var Y=this.$wrapData.length,X=0,re=0,ee=(L=this.$foldData[re++])?L.start.row:1/0;Xee&&(X=L.end.row+1,ee=(L=this.$foldData[re++])?L.start.row:1/0)}else{C=this.getLength();var F=this.$foldData;for(re=0;reF);X++);return[re,X]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=x}.call(b.prototype),n("./edit_session/folding").Folding.call(b.prototype),n("./edit_session/bracket_match").BracketMatch.call(b.prototype),u.defineOptions(b.prototype,"session",{wrap:{set:function(y){if(y&&"off"!=y?"free"==y?y=!0:"printMargin"==y?y=-1:"string"==typeof y&&(y=parseInt(y,10)||!1):y=!1,this.$wrap!=y)if(this.$wrap=y,y){var S="number"==typeof y?y:null;this.setWrapLimitRange(S,S),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(y){(y="auto"==y?"text"!=this.$mode.type:"text"!=y)!=this.$wrapAsCode&&(this.$wrapAsCode=y,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(y){this.$useWorker=y,this.$stopWorker(),y&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(y){(y=parseInt(y))>0&&this.$tabSize!==y&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=y,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(y){this.setFoldStyle(y)},handlesSet:!0},overwrite:{set:function(y){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(y){this.doc.setNewLineMode(y)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(y){this.setMode(y)},get:function(){return this.$modeId},handlesSet:!0}}),f.EditSession=b}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,f,_){"use strict";var m=n("./lib/lang"),s=n("./lib/oop"),d=n("./range").Range,u=function(){this.$options={}};(function(){this.set=function(r){return s.mixin(this.$options,r),this},this.getOptions=function(){return m.copyObject(this.$options)},this.setOptions=function(r){this.$options=r},this.find=function(r){var o=this.$options,i=this.$matchIterator(r,o);if(!i)return!1;var c=null;return i.forEach(function(l,g,b,y){return c=new d(l,g,b,y),!(g==y&&o.start&&o.start.start&&0!=o.skipCurrent&&c.isEqual(o.start)&&(c=null,1))}),c},this.findAll=function(r){var o=this.$options;if(!o.needle)return[];this.$assembleRegExp(o);var i=o.range,c=i?r.getLines(i.start.row,i.end.row):r.doc.getAllLines(),l=[],g=o.re;if(o.$isMultiLine){var S,b=g.length,y=c.length-b;e:for(var I=g.offset||0;I<=y;I++){for(var R=0;RD||(l.push(S=new d(I,D,I+b-1,w)),b>2&&(I=I+b-2))}}else for(var x=0;xre&&l[R].end.row==i.end.row;)R--;for(l=l.slice(x,R+1),x=0,R=l.length;x=y;D--)if(M(D,Number.MAX_VALUE,A))return;if(0!=o.wrap)for(D=S,y=b.row;D>=y;D--)if(M(D,Number.MAX_VALUE,A))return}};else I=function(D){var w=b.row;if(!M(w,b.column,D)){for(w+=1;w<=S;w++)if(M(w,0,D))return;if(0!=o.wrap)for(w=y,S=b.row;w<=S;w++)if(M(w,0,D))return}};if(o.$isMultiLine)var R=i.length,M=function(A,D,w){var x=c?A-R+1:A;if(!(x<0||x+R>r.getLength())){var C=r.getLine(x),L=C.search(i[0]);if(!(!c&&LD)&&w(x,L,x+R-1,re))return!0}}};else M=c?function(D,w,x){var F,C=r.getLine(D),L=[],re=0;for(i.lastIndex=0;F=i.exec(C);){if(re=F.index,!(Y=F[0].length)){if(re>=C.length)break;i.lastIndex=re+=1}if(F.index+Y>w)break;L.push(F.index,Y)}for(var X=L.length-1;X>=0;X-=2){var Y,ee=L[X-1];if(x(D,ee,D,ee+(Y=L[X])))return!0}}:function(D,w,x){var L,F,C=r.getLine(D);for(i.lastIndex=w;F=i.exec(C);){var re=F[0].length;if(x(D,L=F.index,D,L+re))return!0;if(!re&&(i.lastIndex=L+=1,L>=C.length))return!1}};return{forEach:I}}}).call(u.prototype),f.Search=u}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,f,_){"use strict";var m=n("../lib/keys"),s=n("../lib/useragent"),d=m.KEY_MODS;function u(r,o){this.platform=o||(s.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(r),this.$singleCommand=!0}function h(r,o){u.call(this,r,o),this.$singleCommand=!1}h.prototype=u.prototype,function(){function r(o){return"object"==typeof o&&o.bindKey&&o.bindKey.position||(o.isDefault?-100:0)}this.addCommand=function(o){this.commands[o.name]&&this.removeCommand(o),this.commands[o.name]=o,o.bindKey&&this._buildKeyHash(o)},this.removeCommand=function(o,i){var c=o&&("string"==typeof o?o:o.name);o=this.commands[c],i||delete this.commands[c];var l=this.commandKeyBinding;for(var g in l){var b=l[g];if(b==o)delete l[g];else if(Array.isArray(b)){var y=b.indexOf(o);-1!=y&&(b.splice(y,1),1==b.length&&(l[g]=b[0]))}}},this.bindKey=function(o,i,c){if("object"==typeof o&&o&&(null==c&&(c=o.position),o=o[this.platform]),o){if("function"==typeof i)return this.addCommand({exec:i,bindKey:o,name:i.name||o});o.split("|").forEach(function(l){var g="";if(-1!=l.indexOf(" ")){var b=l.split(/\s+/);l=b.pop(),b.forEach(function(I){var R=this.parseKeys(I);this._addCommandToBinding(g+=(g?" ":"")+(d[R.hashId]+R.key),"chainKeys")},this),g+=" "}var y=this.parseKeys(l);this._addCommandToBinding(g+(d[y.hashId]+y.key),i,c)},this)}},this._addCommandToBinding=function(o,i,c){var g,l=this.commandKeyBinding;if(i)if(!l[o]||this.$singleCommand)l[o]=i;else{Array.isArray(l[o])?-1!=(g=l[o].indexOf(i))&&l[o].splice(g,1):l[o]=[l[o]],"number"!=typeof c&&(c=r(i));var b=l[o];for(g=0;gc);g++);b.splice(g,0,i)}else delete l[o]},this.addCommands=function(o){o&&Object.keys(o).forEach(function(i){var c=o[i];if(c){if("string"==typeof c)return this.bindKey(c,i);"function"==typeof c&&(c={exec:c}),"object"==typeof c&&(c.name||(c.name=i),this.addCommand(c))}},this)},this.removeCommands=function(o){Object.keys(o).forEach(function(i){this.removeCommand(o[i])},this)},this.bindKeys=function(o){Object.keys(o).forEach(function(i){this.bindKey(i,o[i])},this)},this._buildKeyHash=function(o){this.bindKey(o.bindKey,o)},this.parseKeys=function(o){var i=o.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(S){return S}),c=i.pop(),l=m[c];if(m.FUNCTION_KEYS[l])c=m.FUNCTION_KEYS[l].toLowerCase();else{if(!i.length)return{key:c,hashId:-1};if(1==i.length&&"shift"==i[0])return{key:c.toUpperCase(),hashId:-1}}for(var g=0,b=i.length;b--;){var y=m.KEY_MODS[i[b]];if(null==y)return"undefined"!=typeof console&&console.error("invalid modifier "+i[b]+" in "+o),!1;g|=y}return{key:c,hashId:g}},this.findKeyCommand=function(i,c){return this.commandKeyBinding[d[i]+c]},this.handleKeyboard=function(o,i,c,l){if(!(l<0)){var g=d[i]+c,b=this.commandKeyBinding[g];return o.$keyChain&&(o.$keyChain+=" "+g,b=this.commandKeyBinding[o.$keyChain]||b),!b||"chainKeys"!=b&&"chainKeys"!=b[b.length-1]?(o.$keyChain&&(i&&4!=i||1!=c.length?(-1==i||l>0)&&(o.$keyChain=""):o.$keyChain=o.$keyChain.slice(0,-g.length-1)),{command:b}):(o.$keyChain=o.$keyChain||g,{command:"null"})}},this.getStatusText=function(o,i){return i.$keyChain||""}}.call(u.prototype),f.HashHandler=u,f.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,f,_){"use strict";var m=n("../lib/oop"),s=n("../keyboard/hash_handler").MultiHashHandler,d=n("../lib/event_emitter").EventEmitter,u=function(h,r){s.call(this,r,h),this.byName=this.commands,this.setDefaultHandler("exec",function(o){return o.command.exec(o.editor,o.args||{})})};m.inherits(u,s),function(){m.implement(this,d),this.exec=function(h,r,o){if(Array.isArray(h)){for(var i=h.length;i--;)if(this.exec(h[i],r,o))return!0;return!1}if("string"==typeof h&&(h=this.commands[h]),!h||r&&r.$readOnly&&!h.readOnly||0!=this.$checkCommandState&&h.isAvailable&&!h.isAvailable(r))return!1;var c={editor:r,command:h,args:o};return c.returnValue=this._emit("exec",c),this._signal("afterExec",c),!1!==c.returnValue},this.toggleRecording=function(h){if(!this.$inReplay)return h&&h._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(r){this.macro.push([r.command,r.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(h){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(h);try{this.$inReplay=!0,this.macro.forEach(function(r){"string"==typeof r?this.exec(r,h):this.exec(r[0],h,r[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(h){return h.map(function(r){return"string"!=typeof r[0]&&(r[0]=r[0].name),r[1]||(r=r[0]),r})}}.call(u.prototype),f.CommandManager=u}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,f,_){"use strict";var m=n("../lib/lang"),s=n("../config"),d=n("../range").Range;function u(r,o){return{win:r,mac:o}}f.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:u("Ctrl-,","Command-,"),exec:function(r){s.loadModule("ace/ext/settings_menu",function(o){o.init(r),r.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:u("Alt-E","F4"),exec:function(r){s.loadModule("./ext/error_marker",function(o){o.showErrorMarker(r,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:u("Alt-Shift-E","Shift-F4"),exec:function(r){s.loadModule("./ext/error_marker",function(o){o.showErrorMarker(r,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:u("Ctrl-A","Command-A"),exec:function(r){r.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:u(null,"Ctrl-L"),exec:function(r){r.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:u("Ctrl-L","Command-L"),exec:function(r,o){"number"==typeof o&&!isNaN(o)&&r.gotoLine(o),r.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:u("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(r){r.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:u("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(r){r.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:u("F2","F2"),exec:function(r){r.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:u("Alt-F2","Alt-F2"),exec:function(r){r.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:u("Alt-0","Command-Option-0"),exec:function(r){r.session.foldAll(),r.session.unfold(r.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:u("Alt-Shift-0","Command-Option-Shift-0"),exec:function(r){r.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:u("Ctrl-K","Command-G"),exec:function(r){r.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:u("Ctrl-Shift-K","Command-Shift-G"),exec:function(r){r.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:u("Alt-K","Ctrl-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:u("Alt-Shift-K","Ctrl-Shift-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:u("Ctrl-F","Command-F"),exec:function(r){s.loadModule("ace/ext/searchbox",function(o){o.Search(r)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(r){r.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:u("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(r){r.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:u("Ctrl-Home","Command-Home|Command-Up"),exec:function(r){r.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:u("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(r){r.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:u("Up","Up|Ctrl-P"),exec:function(r,o){r.navigateUp(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:u("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(r){r.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:u("Ctrl-End","Command-End|Command-Down"),exec:function(r){r.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:u("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(r){r.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:u("Down","Down|Ctrl-N"),exec:function(r,o){r.navigateDown(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:u("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(r){r.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:u("Ctrl-Left","Option-Left"),exec:function(r){r.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:u("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(r){r.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:u("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(r){r.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:u("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(r){r.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:u("Left","Left|Ctrl-B"),exec:function(r,o){r.navigateLeft(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:u("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(r){r.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:u("Ctrl-Right","Option-Right"),exec:function(r){r.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:u("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(r){r.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:u("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(r){r.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:u("Shift-Right","Shift-Right"),exec:function(r){r.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:u("Right","Right|Ctrl-F"),exec:function(r,o){r.navigateRight(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(r){r.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:u(null,"Option-PageDown"),exec:function(r){r.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:u("PageDown","PageDown|Ctrl-V"),exec:function(r){r.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(r){r.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:u(null,"Option-PageUp"),exec:function(r){r.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(r){r.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:u("Ctrl-Up",null),exec:function(r){r.renderer.scrollBy(0,-2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:u("Ctrl-Down",null),exec:function(r){r.renderer.scrollBy(0,2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(r){r.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(r){r.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:u("Ctrl-Alt-E","Command-Option-E"),exec:function(r){r.commands.toggleRecording(r)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:u("Ctrl-Shift-E","Command-Shift-E"),exec:function(r){r.commands.replay(r)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:u("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(r){r.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:u("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(r){r.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:u("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(r){r.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:u(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(r){},readOnly:!0},{name:"cut",description:"Cut",exec:function(r){var i=r.$copyWithEmptySelection&&r.selection.isEmpty()?r.selection.getLineRange():r.selection.getRange();r._emit("cut",i),i.isEmpty()||r.session.remove(i),r.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(r,o){r.$handlePaste(o)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:u("Ctrl-D","Command-D"),exec:function(r){r.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:u("Ctrl-Shift-D","Command-Shift-D"),exec:function(r){r.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:u("Ctrl-Alt-S","Command-Alt-S"),exec:function(r){r.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:u("Ctrl-/","Command-/"),exec:function(r){r.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:u("Ctrl-Shift-/","Command-Shift-/"),exec:function(r){r.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:u("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(r){r.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:u("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(r){r.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:u("Ctrl-H","Command-Option-F"),exec:function(r){s.loadModule("ace/ext/searchbox",function(o){o.Search(r,!0)})}},{name:"undo",description:"Undo",bindKey:u("Ctrl-Z","Command-Z"),exec:function(r){r.undo()}},{name:"redo",description:"Redo",bindKey:u("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(r){r.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:u("Alt-Shift-Up","Command-Option-Up"),exec:function(r){r.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:u("Alt-Up","Option-Up"),exec:function(r){r.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:u("Alt-Shift-Down","Command-Option-Down"),exec:function(r){r.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:u("Alt-Down","Option-Down"),exec:function(r){r.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:u("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(r){r.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:u("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(r){r.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:u("Shift-Delete",null),exec:function(r){if(!r.selection.isEmpty())return!1;r.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:u("Alt-Backspace","Command-Backspace"),exec:function(r){r.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:u("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(r){r.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:u("Ctrl-Shift-Backspace",null),exec:function(r){var o=r.selection.getRange();o.start.column=0,r.session.remove(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:u("Ctrl-Shift-Delete",null),exec:function(r){var o=r.selection.getRange();o.end.column=Number.MAX_VALUE,r.session.remove(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:u("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(r){r.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:u("Ctrl-Delete","Alt-Delete"),exec:function(r){r.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:u("Shift-Tab","Shift-Tab"),exec:function(r){r.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:u("Tab","Tab"),exec:function(r){r.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:u("Ctrl-[","Ctrl-["),exec:function(r){r.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:u("Ctrl-]","Ctrl-]"),exec:function(r){r.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(r,o){r.insert(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(r,o){r.insert(m.stringRepeat(o.text||"",o.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:u(null,"Ctrl-O"),exec:function(r){r.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:u("Alt-Shift-X","Ctrl-T"),exec:function(r){r.transposeLetters()},multiSelectAction:function(r){r.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:u("Ctrl-U","Ctrl-U"),exec:function(r){r.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:u("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(r){r.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:u(null,null),exec:function(r){r.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:u("Ctrl-Shift-L","Command-Shift-L"),exec:function(r){var o=r.selection.getRange();o.start.column=o.end.column=0,o.end.row++,r.selection.setRange(o,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:u(null,null),exec:function(r){for(var o=r.selection.isBackwards(),i=o?r.selection.getSelectionLead():r.selection.getSelectionAnchor(),c=o?r.selection.getSelectionAnchor():r.selection.getSelectionLead(),l=r.session.doc.getLine(i.row).length,b=r.session.doc.getTextRange(r.selection.getRange()).replace(/\n\s*/," ").length,y=r.session.doc.getLine(i.row),S=i.row+1;S<=c.row+1;S++){var I=m.stringTrimLeft(m.stringTrimRight(r.session.doc.getLine(S)));0!==I.length&&(I=" "+I),y+=I}c.row+10?(r.selection.moveCursorTo(i.row,i.column),r.selection.selectTo(i.row,i.column+b)):(l=r.session.doc.getLine(i.row).length>l?l+1:l,r.selection.moveCursorTo(i.row,l))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:u(null,null),exec:function(r){var o=r.session.doc.getLength()-1,i=r.session.doc.getLine(o).length,c=r.selection.rangeList.ranges,l=[];c.length<1&&(c=[r.selection.getRange()]);for(var g=0;g=F.lastRow||L.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==C&&this.renderer.animateScrolling(this.curOp.scrollTop)}var re=this.selection.toJSON();this.curOp.selectionAfter=re,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(re),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(w){if(this.$mergeUndoDeltas){var x=this.prevOp,C=this.$mergeableCommands,L=x.command&&w.command.name==x.command.name;if("insertstring"==w.command.name){var F=w.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),L=L&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(x.args)),this.mergeNextCommand=!0}else L=L&&-1!==C.indexOf(w.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(L=!1),L?this.session.mergeUndoDeltas=!0:-1!==C.indexOf(w.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(w,x){if(w&&"string"==typeof w&&"ace"!=w){this.$keybindingId=w;var C=this;I.loadModule(["keybinding",w],function(L){C.$keybindingId==w&&C.keyBinding.setKeyboardHandler(L&&L.handler),x&&x()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),x&&x()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var x=this.session;if(x){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var C=this.session.getSelection();C.off("changeCursor",this.$onCursorChange),C.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(w)),this._signal("changeSession",{session:w,oldSession:x}),this.curOp=null,x&&x._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&w.bgTokenizer&&w.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(w,x){return this.session.doc.setValue(w),x?1==x?this.navigateFileEnd():-1==x&&this.navigateFileStart():this.selectAll(),w},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(w){this.renderer.onResize(w)},this.setTheme=function(w,x){this.renderer.setTheme(w,x)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(w){this.renderer.setStyle(w)},this.unsetStyle=function(w){this.renderer.unsetStyle(w)},this.getFontSize=function(){return this.getOption("fontSize")||s.computedStyle(this.container).fontSize},this.setFontSize=function(w){this.setOption("fontSize",w)},this.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var x=w.session;if(x&&x.bgTokenizer){x.$bracketHighlight&&(x.$bracketHighlight.markerIds.forEach(function(F){x.removeMarker(F)}),x.$bracketHighlight=null);var C=x.getMatchingBracketRanges(w.getCursorPosition());if(!C&&x.$mode.getMatching&&(C=x.$mode.getMatching(w.session)),C){var L="ace_bracket";Array.isArray(C)?1==C.length&&(L="ace_error_bracket"):C=[C],2==C.length&&(0==g.comparePoints(C[0].end,C[1].start)?C=[g.fromPoints(C[0].start,C[1].end)]:0==g.comparePoints(C[0].start,C[1].end)&&(C=[g.fromPoints(C[1].start,C[0].end)])),x.$bracketHighlight={ranges:C,markerIds:C.map(function(F){return x.addMarker(F,L,"text")})}}}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var w=this;this.$highlightTagPending=!0,setTimeout(function(){w.$highlightTagPending=!1;var x=w.session;if(x&&x.bgTokenizer){var C=w.getCursorPosition(),L=new R(w.session,C.row,C.column),F=L.getCurrentToken();if(!F||!/\b(?:tag-open|tag-name)/.test(F.type))return x.removeMarker(x.$tagHighlight),void(x.$tagHighlight=null);if(-1===F.type.indexOf("tag-open")||(F=L.stepForward())){var re=F.value,Y=F.value,X=0,ee=L.stepBackward();if("<"===ee.value)do{ee=F,(F=L.stepForward())&&(-1!==F.type.indexOf("tag-name")?re===(Y=F.value)&&("<"===ee.value?X++:""===F.value&&X--)}while(F&&X>=0);else{do{if(F=ee,ee=L.stepBackward(),F)if(-1!==F.type.indexOf("tag-name"))re===F.value&&("<"===ee.value?X++:""===F.value){for(var $=0,J=ee;J;){if(-1!==J.type.indexOf("tag-name")&&J.value===re){X--;break}if("<"===J.value)break;J=L.stepBackward(),$++}for(var ie=0;ie<$;ie++)L.stepForward()}}while(ee&&X<=0);L.stepForward()}if(!F)return x.removeMarker(x.$tagHighlight),void(x.$tagHighlight=null);var ne=L.getCurrentTokenRow(),ae=L.getCurrentTokenColumn(),xe=new g(ne,ae,ne,ae+F.value.length),Ie=x.$backMarkers[x.$tagHighlight];x.$tagHighlight&&null!=Ie&&0!==xe.compareRange(Ie.range)&&(x.removeMarker(x.$tagHighlight),x.$tagHighlight=null),x.$tagHighlight||(x.$tagHighlight=x.addMarker(xe,"ace_bracket","text"))}}},50)}},this.focus=function(){var w=this;setTimeout(function(){w.isFocused()||w.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},this.onBlur=function(w){!this.$isFocused||(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(w){this.renderer.updateLines(w.start.row,w.start.row==w.end.row?w.end.row:1/0,this.session.$useWrapMode),this._signal("change",w),this.$cursorChange()},this.onTokenizerUpdate=function(w){var x=w.data;this.renderer.updateLines(x.first,x.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var x,w=this.getSession();if(this.$highlightActiveLine&&(("line"!=this.$selectionStyle||!this.selection.isMultiLine())&&(x=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(x=!1),this.renderer.$maxLines&&1===this.session.getLength()&&!(this.renderer.$minLines>1)&&(x=!1)),w.$highlightLineMarker&&!x)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&x){var C=new g(x.row,x.column,x.row,1/0);C.id=w.addMarker(C,"ace_active-line","screenLine"),w.$highlightLineMarker=C}else x&&(w.$highlightLineMarker.start.row=x.row,w.$highlightLineMarker.end.row=x.row,w.$highlightLineMarker.start.column=x.column,w._signal("changeBackMarker"))},this.onSelectionChange=function(w){var x=this.session;if(x.$selectionMarker&&x.removeMarker(x.$selectionMarker),x.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var C=this.selection.getRange(),L=this.getSelectionStyle();x.$selectionMarker=x.addMarker(C,"ace_selection",L)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var w=this.session,x=this.getSelectionRange();if(!x.isEmpty()&&!x.isMultiLine()){var C=x.start.column,L=x.end.column,F=w.getLine(x.start.row),re=F.substring(C,L);if(!(re.length>5e3)&&/[\w\d]/.test(re)){var Y=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:re}),X=F.substring(C-1,L+1);if(Y.test(X))return Y}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var w=this.getSelectedText(),x=this.session.doc.getNewLineCharacter(),C=!1;if(!w&&this.$copyWithEmptySelection){C=!0;for(var L=this.selection.getAllRanges(),F=0;FJ.search(/\S|$/)){var X=J.substr(F.column).search(/\S|$/);C.doc.removeInLine(F.row,F.column,F.column+X)}}this.clearSelection();var ee=F.column,$=C.getState(F.row),ie=(J=C.getLine(F.row),L.checkOutdent($,J,w));if(C.insert(F,w),re&&re.selection&&this.selection.setSelectionRange(2==re.selection.length?new g(F.row,ee+re.selection[0],F.row,ee+re.selection[1]):new g(F.row+re.selection[0],re.selection[1],F.row+re.selection[2],re.selection[3])),this.$enableAutoIndent){if(C.getDocument().isNewLine(w)){var ne=L.getNextLineIndent($,J.slice(0,F.column),C.getTabString());C.insert({row:F.row+1,column:0},ne)}ie&&L.autoOutdent($,C,F.row)}},this.autoIndent=function(){var C,L,w=this.session,x=w.getMode();if(this.selection.isEmpty())C=0,L=w.doc.getLength()-1;else{var F=this.getSelectionRange();C=F.start.row,L=F.end.row}for(var ee,$,J,re="",Y="",X="",ie=w.getTabString(),ne=C;ne<=L;ne++)ne>0&&(re=w.getState(ne-1),Y=w.getLine(ne-1),X=x.getNextLineIndent(re,Y,ie)),ee=w.getLine(ne),X!==($=x.$getIndent(ee))&&($.length>0&&(J=new g(ne,0,ne,$.length),w.remove(J)),X.length>0&&w.insert({row:ne,column:0},X)),x.autoOutdent(re,w,ne)},this.onTextInput=function(w,x){if(!x)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var C=this.applyComposition.bind(this,w,x);this.selection.rangeCount?this.forEachSelection(C):C(),this.endOperation()},this.applyComposition=function(w,x){var C;(x.extendLeft||x.extendRight)&&((C=this.selection.getRange()).start.column-=x.extendLeft,C.end.column+=x.extendRight,C.start.column<0&&(C.start.row--,C.start.column+=this.session.getLine(C.start.row).length+1),this.selection.setRange(C),!w&&!C.isEmpty()&&this.remove()),(w||!this.selection.isEmpty())&&this.insert(w,!0),(x.restoreStart||x.restoreEnd)&&((C=this.selection.getRange()).start.column-=x.restoreStart,C.end.column-=x.restoreEnd,this.selection.setRange(C))},this.onCommandKey=function(w,x,C){return this.keyBinding.onCommandKey(w,x,C)},this.setOverwrite=function(w){this.session.setOverwrite(w)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(w){this.setOption("dragDelay",w)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(w){this.setOption("readOnly",w)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(w){this.selection.isEmpty()&&("left"==w?this.selection.selectLeft():this.selection.selectRight());var x=this.getSelectionRange();if(this.getBehavioursEnabled()){var C=this.session,L=C.getState(x.start.row),F=C.getMode().transformAction(L,"deletion",this,C,x);if(0===x.end.column){var re=C.getTextRange(x);if("\n"==re[re.length-1]){var Y=C.getLine(x.end.row);/^\s+$/.test(Y)&&(x.end.column=Y.length)}}F&&(x=F)}this.session.remove(x),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(w)},this.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),x=w.column;if(0!==x){var L,F,C=this.session.getLine(w.row);xX.toLowerCase()?1:0});var F=new g(0,0,0,0);for(L=w.first;L<=w.last;L++){var re=x.getLine(L);F.start.row=L,F.end.row=L,F.end.column=re.length,x.replace(F,C[L-w.first])}},this.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),x=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,x.first,x.last)},this.toggleBlockComment=function(){var w=this.getCursorPosition(),x=this.session.getState(w.row),C=this.getSelectionRange();this.session.getMode().toggleBlockComment(x,this.session,C,w)},this.getNumberAt=function(w,x){var C=/[\-]?[0-9]+(?:\.[0-9]+)?/g;C.lastIndex=0;for(var L=this.session.getLine(w);C.lastIndex=x)return{value:F[0],start:F.index,end:F.index+F[0].length}}return null},this.modifyNumber=function(w){var x=this.selection.getCursor().row,C=this.selection.getCursor().column,L=new g(x,C-1,x,C),F=this.session.getTextRange(L);if(!isNaN(parseFloat(F))&&isFinite(F)){var re=this.getNumberAt(x,C);if(re){var Y=re.value.indexOf(".")>=0?re.start+re.value.indexOf(".")+1:re.end,X=re.start+re.value.length-Y,ee=parseFloat(re.value);ee*=Math.pow(10,X),ee+=w*=Y!==re.end&&C=Y&&re<=X&&(C=Xe,ee.selection.clearSelection(),ee.moveCursorTo(w,Y+L),ee.selection.selectTo(w,X+L)),Y=X});for(var J,$=this.$toggleWordPairs,ie=0;ie<$.length;ie++)for(var ne=$[ie],ae=0;ae<=1;ae++){var xe=+!ae,Ie=C.match(new RegExp("^\\s?_?("+d.escapeRegExp(ne[ae])+")\\s?$","i"));Ie&&C.match(new RegExp("([_]|^|\\s)("+d.escapeRegExp(Ie[1])+")($|\\s)","g"))&&(J=C.replace(new RegExp(d.escapeRegExp(ne[ae]),"i"),function(Xe){var ft=ne[xe];return Xe.toUpperCase()==Xe?ft=ft.toUpperCase():Xe.charAt(0).toUpperCase()==Xe.charAt(0)&&(ft=ft.substr(0,0)+ne[xe].charAt(0).toUpperCase()+ft.substr(1)),ft}),this.insert(J),J="")}},this.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},this.duplicateSelection=function(){var w=this.selection,x=this.session,C=w.getRange(),L=w.isBackwards();if(C.isEmpty()){var F=C.start.row;x.duplicateLines(F,F)}else{var re=L?C.start:C.end,Y=x.insert(re,x.getTextRange(C),!1);C.start=re,C.end=Y,w.setSelectionRange(C,L)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(w,x,C){return this.session.moveText(w,x,C)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(w,x){var C,L,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var re=F.toOrientedRange();C=this.$getSelectedRows(re),L=this.session.$moveLines(C.first,C.last,x?0:w),x&&-1==w&&(L=0),re.moveBy(L,0),F.fromOrientedRange(re)}else{var Y=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var X=0,ee=0,$=Y.length,J=0;J<$;J++){var ie=J;Y[J].moveBy(X,0);for(var ne=(C=this.$getSelectedRows(Y[J])).first,ae=C.last;++J<$;){ee&&Y[J].moveBy(ee,0);var xe=this.$getSelectedRows(Y[J]);if(x&&xe.first!=ae)break;if(!x&&xe.first>ae+1)break;ae=xe.last}for(J--,X=this.session.$moveLines(ne,ae,x?0:w),x&&-1==w&&(ie=J+1);ie<=J;)Y[ie].moveBy(X,0),ie++;x||(X=0),ee+=X}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},this.onCompositionStart=function(w){this.renderer.showComposition(w)},this.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},this.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(w,x){var C=this.renderer,L=this.renderer.layerConfig,F=w*Math.floor(L.height/L.lineHeight);!0===x?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):!1===x&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var re=C.scrollTop;C.scrollBy(0,F*L.lineHeight),null!=x&&C.scrollCursorIntoView(null,.5),C.animateScrolling(re)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(w){this.renderer.scrollToRow(w)},this.scrollToLine=function(w,x,C,L){this.renderer.scrollToLine(w,x,C,L)},this.centerSelection=function(){var w=this.getSelectionRange(),x={row:Math.floor(w.start.row+(w.end.row-w.start.row)/2),column:Math.floor(w.start.column+(w.end.column-w.start.column)/2)};this.renderer.alignCursor(x,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(w,x){this.selection.moveCursorTo(w,x)},this.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},this.jumpToMatching=function(w,x){var C=this.getCursorPosition(),L=new R(this.session,C.row,C.column),F=L.getCurrentToken(),re=F||L.stepForward();if(re){var Y,J,X=!1,ee={},$=C.column-re.start,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(re.value.match(/[{}()\[\]]/g)){for(;$=0;--re)this.$tryReplace(C[re],w)&&L++;return this.selection.setSelectionRange(F),L},this.$tryReplace=function(w,x){var C=this.session.getTextRange(w);return null!==(x=this.$search.replace(C,x))?(w.end=this.session.replace(w,x),w):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(w,x,C){x||(x={}),"string"==typeof w||w instanceof RegExp?x.needle=w:"object"==typeof w&&m.mixin(x,w);var L=this.selection.getRange();null==x.needle&&((w=this.session.getTextRange(L)||this.$search.$options.needle)||(L=this.session.getWordRange(L.start.row,L.start.column),w=this.session.getTextRange(L)),this.$search.set({needle:w})),this.$search.set(x),x.start||this.$search.set({start:L});var F=this.$search.find(this.session);return x.preventScroll?F:F?(this.revealRange(F,C),F):(x.backwards?L.start=L.end:L.end=L.start,void this.selection.setRange(L))},this.findNext=function(w,x){this.find({skipCurrent:!0,backwards:!1},w,x)},this.findPrevious=function(w,x){this.find(w,{skipCurrent:!0,backwards:!0},x)},this.revealRange=function(w,x){this.session.unfold(w),this.selection.setSelectionRange(w);var C=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),!1!==x&&this.renderer.animateScrolling(C)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(w){if(w){var x,C=this,L=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var re=this.on("changeSelection",function(){L=!0}),Y=this.renderer.on("beforeRender",function(){L&&(x=C.renderer.container.getBoundingClientRect())}),X=this.renderer.on("afterRender",function(){if(L&&x&&(C.isFocused()||C.searchBox&&C.searchBox.isFocused())){var ee=C.renderer,$=ee.$cursorLayer.$pixelPos,J=ee.layerConfig,ie=$.top-J.offset;null!=(L=$.top>=0&&ie+x.top<0||!($.topwindow.innerHeight)&&null)&&(F.style.top=ie+"px",F.style.left=$.left+"px",F.style.height=J.lineHeight+"px",F.scrollIntoView(L)),L=x=null}});this.setAutoScrollEditorIntoView=function(ee){ee||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",re),this.renderer.off("afterRender",X),this.renderer.off("beforeRender",Y))}}},this.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",x=this.renderer.$cursorLayer;!x||(x.setSmoothBlinking(/smooth/.test(w)),x.isBlinking=!this.$readOnly&&"wide"!=w,s.setCssClass(x.element,"ace_slim-cursors",/slim/.test(w)))},this.prompt=function(w,x,C){var L=this;I.loadModule("./ext/prompt",function(F){F.prompt(L,w,x,C)})}}.call(A.prototype),I.defineOptions(A.prototype,"editor",{selectionStyle:{set:function(w){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:w})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(w){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(w){this.textInput.setReadOnly(w),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(w){this.textInput.setCopyWithEmptySelection(w)},initialValue:!1},cursorStyle:{set:function(w){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(w){this.setAutoScrollEditorIntoView(w)}},keyboardHandler:{set:function(w){this.setKeyboardHandler(w)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(w){this.session.setValue(w)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(w){this.setSession(w)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(w){this.renderer.$gutterLayer.setShowLineNumbers(w),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),w&&this.$relativeLineNumbers?D.attach(this):D.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(w){this.$showLineNumbers&&w?D.attach(this):D.detach(this)}},placeholder:{set:function(w){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var x=this.session&&(this.renderer.$composition||this.getValue());if(x&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),s.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(x||this.renderer.placeholderNode)!x&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),s.addCssClass(this.container,"ace_hasPlaceholder");var C=s.createElement("div");C.className="ace_placeholder",C.textContent=this.$placeholder||"",this.renderer.placeholderNode=C,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var D={getText:function(w,x){return(Math.abs(w.selection.lead.row-x)||x+1+(x<9?"\xb7":""))+""},getWidth:function(w,x,C){return Math.max(x.toString().length,(C.lastRow+1).toString().length,2)*C.characterWidth},update:function(w,x){x.renderer.$loop.schedule(x.renderer.CHANGE_GUTTER)},attach:function(w){w.renderer.$gutterLayer.$renderer=this,w.on("changeSelection",this.update),this.update(null,w)},detach:function(w){w.renderer.$gutterLayer.$renderer==this&&(w.renderer.$gutterLayer.$renderer=null),w.off("changeSelection",this.update),this.update(null,w)}};f.Editor=A}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,f,_){"use strict";var m=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(D){this.$session=D},this.add=function(D,w,x){this.$fromUndo||D!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),(!1===w||!this.lastDeltas)&&(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),D.id=this.$rev=++this.$maxRev),("remove"==D.action||"insert"==D.action)&&(this.$lastDelta=D),this.lastDeltas.push(D))},this.addSelection=function(D,w){this.selections.push({value:D,rev:w||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(D,w){null==w&&(w=this.$rev+1);for(var x=this.$undoStack,C=x.length;C--;){var L=x[C][0];if(L.id<=D)break;L.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(D){null==D&&(D=this.$rev),this.mark=D},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(D){return D?c(D):c(this.$undoStack)+"\n---\n"+c(this.$redoStack)}}).call(m.prototype);var d=n("./range").Range,u=d.comparePoints;function o(D){return{row:D.row,column:D.column}}function c(D){if(D=D||this,Array.isArray(D))return D.map(c).join("\n");var w="";return D.action?(w="insert"==D.action?"+":"-",w+="["+D.lines+"]"):D.value&&(w=Array.isArray(D.value)?D.value.map(l).join("\n"):l(D.value)),D.start&&(w+=l(D)),(D.id||D.rev)&&(w+="\t("+(D.id||D.rev)+")"),w}function l(D){return D.start.row+":"+D.start.column+"=>"+D.end.row+":"+D.end.column}function g(D,w){var x="insert"==D.action,C="insert"==w.action;if(x&&C)if(u(w.start,D.end)>=0)S(w,D,-1);else{if(!(u(w.start,D.start)<=0))return null;S(D,w,1)}else if(x&&!C)if(u(w.start,D.end)>=0)S(w,D,-1);else{if(!(u(w.end,D.start)<=0))return null;S(D,w,-1)}else if(!x&&C)if(u(w.start,D.start)>=0)S(w,D,1);else{if(!(u(w.start,D.start)<=0))return null;S(D,w,1)}else if(!x&&!C)if(u(w.start,D.start)>=0)S(w,D,1);else{if(!(u(w.end,D.start)<=0))return null;S(D,w,-1)}return[w,D]}function b(D,w){for(var x=D.length;x--;)for(var C=0;C=0?S(D,w,-1):(u(D.start,w.start)<=0||S(D,d.fromPoints(w.start,D.start),-1),S(w,D,1));else if(!x&&C)u(w.start,D.end)>=0?S(w,D,-1):(u(w.start,D.start)<=0||S(w,d.fromPoints(D.start,w.start),-1),S(D,w,1));else if(!x&&!C)if(u(w.start,D.end)>=0)S(w,D,-1);else{var L,F;if(!(u(w.end,D.start)<=0))return u(D.start,w.start)<0&&(L=D,D=R(D,w.start)),u(D.end,w.end)>0&&(F=R(D,w.end)),I(w.end,D.start,D.end,-1),F&&!L&&(D.lines=F.lines,D.start=F.start,D.end=F.end,F=D),[w,L,F].filter(Boolean);S(D,w,-1)}return[w,D]}function S(D,w,x){I(D.start,w.start,w.end,x),I(D.end,w.start,w.end,x)}function I(D,w,x,C){D.row==(1==C?w:x).row&&(D.column+=C*(x.column-w.column)),D.row+=C*(x.row-w.row)}function R(D,w){var x=D.lines,C=D.end;D.end=o(w);var L=D.end.row-D.start.row,F=x.splice(L,x.length),re=L?w.column:w.column-D.start.column;return x.push(F[0].substring(0,re)),F[0]=F[0].substr(re),{start:o(w),end:C,lines:F,action:D.action}}function M(D,w){w=function(D){return{start:o(D.start),end:o(D.end),action:D.action,lines:D.lines.slice()}}(w);for(var x=D.length;x--;){for(var C=D[x],L=0;Ly&&(y=(b=c.getNextFoldLine(R=b.end.row+1,b))?b.start.row:1/0),R>g){for(;this.$lines.getLength()>I+1;)this.$lines.pop();break}(S=this.$lines.get(++I))?S.row=R:(S=this.$lines.createCell(R,i,this.session,o),this.$lines.push(S)),this.$renderCell(S,i,b,R),R++}this._signal("afterRender"),this.$updateGutterWidth(i)},this.$updateGutterWidth=function(i){var c=this.session,l=c.gutterRenderer||this.$renderer,g=c.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||c.$useWrapMode)&&(b=c.getLength()+g-1);var y=l?l.getWidth(c,b,i):b.toString().length*i.characterWidth,S=this.$padding||this.$computePadding();(y+=S.left+S.right)!==this.gutterWidth&&!isNaN(y)&&(this.gutterWidth=y,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",y))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var i=this.session.selection.getCursor();this.$cursorRow!==i.row&&(this.$cursorRow=i.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var i=this.session.selection.cursor.row;if(this.$cursorRow=i,!this.$cursorCell||this.$cursorCell.row!=i){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var c=this.$lines.cells;this.$cursorCell=null;for(var l=0;l=this.$cursorRow){if(g.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(!(l>0&&b&&b.start.row==c[l-1].row))break;g=c[l-1]}g.element.className="ace_gutter-active-line "+g.element.className,this.$cursorCell=g;break}}}}},this.scrollLines=function(i){var c=this.config;if(this.config=i,this.$updateCursorRow(),this.$lines.pageChanged(c,i))return this.update(i);this.$lines.moveContainer(i);var l=Math.min(i.lastRow+i.gutterOffset,this.session.getLength()-1),g=this.oldLastRow;if(this.oldLastRow=l,!c||g0;b--)this.$lines.shift();if(g>l)for(b=this.session.getFoldedRowCount(l+1,g);b>0;b--)this.$lines.pop();i.firstRowg&&this.$lines.push(this.$renderLines(i,g+1,l)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(i)},this.$renderLines=function(i,c,l){for(var g=[],b=c,y=this.session.getNextFoldLine(b),S=y?y.start.row:1/0;b>S&&(S=(y=this.session.getNextFoldLine(b=y.end.row+1,y))?y.start.row:1/0),!(b>l);){var I=this.$lines.createCell(b,i,this.session,o);this.$renderCell(I,i,y,b),g.push(I),b++}return g},this.$renderCell=function(i,c,l,g){var b=i.element,y=this.session,S=b.childNodes[0],I=b.childNodes[1],R=y.$firstLineNumber,M=y.$breakpoints,A=y.$decorations,D=y.gutterRenderer||this.$renderer,w=this.$showFoldWidgets&&y.foldWidgets,x=l?l.start.row:Number.MAX_VALUE,C="ace_gutter-cell ";if(this.$highlightGutterLine&&(g==this.$cursorRow||l&&g=x&&this.$cursorRow<=l.end.row)&&(C+="ace_gutter-active-line ",this.$cursorCell!=i&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=i)),M[g]&&(C+=M[g]),A[g]&&(C+=A[g]),this.$annotations[g]&&(C+=this.$annotations[g].className),b.className!=C&&(b.className=C),w){var L=w[g];null==L&&(L=w[g]=y.getFoldWidget(g))}L?(C="ace_fold-widget ace_"+L,I.className!=(C+="start"==L&&g==x&&gl.right-c.right?"foldWidgets":void 0}}).call(r.prototype),f.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,f,_){"use strict";var m=n("../range").Range,s=n("../lib/dom"),d=function(u){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",u.appendChild(this.element)};(function(){function u(h,r,o,i){return(h?1:0)|(r?2:0)|(o?4:0)|(i?8:0)}this.$padding=0,this.setPadding=function(h){this.$padding=h},this.setSession=function(h){this.session=h},this.setMarkers=function(h){this.markers=h},this.elt=function(h,r){var o=-1!=this.i&&this.element.childNodes[this.i];o?this.i++:(o=document.createElement("div"),this.element.appendChild(o),this.i=-1),o.style.cssText=r,o.className=h},this.update=function(h){if(h){var r;for(var o in this.config=h,this.i=0,this.markers){var i=this.markers[o];if(i.range){var c=i.range.clipRows(h.firstRow,h.lastRow);if(!c.isEmpty())if(c=c.toScreenRange(this.session),i.renderer){var l=this.$getTop(c.start.row,h);i.renderer(r,c,this.$padding+c.start.column*h.characterWidth,l,h)}else"fullLine"==i.type?this.drawFullLineMarker(r,c,i.clazz,h):"screenLine"==i.type?this.drawScreenLineMarker(r,c,i.clazz,h):c.isMultiLine()?"text"==i.type?this.drawTextMarker(r,c,i.clazz,h):this.drawMultiLineMarker(r,c,i.clazz,h):this.drawSingleLineMarker(r,c,i.clazz+" ace_start ace_br15",h)}else i.update(r,this,this.session,h)}if(-1!=this.i)for(;this.iR,y==b),i,y==b?0:1,c)},this.drawMultiLineMarker=function(h,r,o,i,c){var S,l=this.$padding,g=i.lineHeight,b=this.$getTop(r.start.row,i),y=l+r.start.column*i.characterWidth;if(c=c||"",this.session.$bidiHandler.isBidiRow(r.start.row)?((S=r.clone()).end.row=S.start.row,S.end.column=this.session.getLine(S.start.row).length,this.drawBidiSingleLineMarker(h,S,o+" ace_br1 ace_start",i,null,c)):this.elt(o+" ace_br1 ace_start","height:"+g+"px;right:0;top:"+b+"px;left:"+y+"px;"+(c||"")),this.session.$bidiHandler.isBidiRow(r.end.row)?((S=r.clone()).start.row=S.end.row,S.start.column=0,this.drawBidiSingleLineMarker(h,S,o+" ace_br12",i,null,c)):(b=this.$getTop(r.end.row,i),this.elt(o+" ace_br12","height:"+g+"px;width:"+r.end.column*i.characterWidth+"px;top:"+b+"px;left:"+l+"px;"+(c||""))),!((g=(r.end.row-r.start.row-1)*i.lineHeight)<=0)){b=this.$getTop(r.start.row+1,i);var R=(r.start.column?1:0)|(r.end.column?0:8);this.elt(o+(R?" ace_br"+R:""),"height:"+g+"px;right:0;top:"+b+"px;left:"+l+"px;"+(c||""))}},this.drawSingleLineMarker=function(h,r,o,i,c,l){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(h,r,o,i,c,l);var g=i.lineHeight,b=(r.end.column+(c||0)-r.start.column)*i.characterWidth,y=this.$getTop(r.start.row,i);this.elt(o,"height:"+g+"px;width:"+b+"px;top:"+y+"px;left:"+(this.$padding+r.start.column*i.characterWidth)+"px;"+(l||""))},this.drawBidiSingleLineMarker=function(h,r,o,i,c,l){var g=i.lineHeight,b=this.$getTop(r.start.row,i),y=this.$padding;this.session.$bidiHandler.getSelections(r.start.column,r.end.column).forEach(function(I){this.elt(o,"height:"+g+"px;width:"+I.width+(c||0)+"px;top:"+b+"px;left:"+(y+I.left)+"px;"+(l||""))},this)},this.drawFullLineMarker=function(h,r,o,i,c){var l=this.$getTop(r.start.row,i),g=i.lineHeight;r.start.row!=r.end.row&&(g+=this.$getTop(r.end.row,i)-l),this.elt(o,"height:"+g+"px;top:"+l+"px;left:0;right:0;"+(c||""))},this.drawScreenLineMarker=function(h,r,o,i,c){var l=this.$getTop(r.start.row,i);this.elt(o,"height:"+i.lineHeight+"px;top:"+l+"px;left:0;right:0;"+(c||""))}}).call(d.prototype),f.Marker=d}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(n,f,_){"use strict";var m=n("../lib/oop"),s=n("../lib/dom"),d=n("../lib/lang"),u=n("./lines").Lines,h=n("../lib/event_emitter").EventEmitter,r=function(o){this.dom=s,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new u(this.element)};(function(){m.implement(this,h),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var o=this.session.doc,c="\n"==o.getNewLineCharacter()&&"windows"!=o.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=c)return this.EOL_CHAR=c,!0},this.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",function(i){this._signal("changeCharacterSize",i)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(o){this.session=o,o&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(o){return this.showInvisibles!=o&&(this.showInvisibles=o,"string"==typeof o?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(o){return this.displayIndentGuides!=o&&(this.displayIndentGuides=o,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var i=this.$tabStrings=[0],c=1;cM&&(M=(R=this.session.getNextFoldLine(I=R.end.row+1,R))?R.start.row:1/0),!(I>g);){var A=b[y++];if(A){this.dom.removeChildren(A),this.$renderLine(A,I,I==M&&R),S&&(A.style.top=this.$lines.computeLineTop(I,o,this.session)+"px");var D=o.lineHeight*this.session.getRowLength(I)+"px";A.style.height!=D&&(S=!0,A.style.height=D)}I++}if(S)for(;y0;g--)this.$lines.shift();if(i.lastRow>o.lastRow)for(g=this.session.getFoldedRowCount(o.lastRow+1,i.lastRow);g>0;g--)this.$lines.pop();o.firstRowi.lastRow&&this.$lines.push(this.$renderLinesFragment(o,i.lastRow+1,o.lastRow))},this.$renderLinesFragment=function(o,i,c){for(var l=[],g=i,b=this.session.getNextFoldLine(g),y=b?b.start.row:1/0;g>y&&(y=(b=this.session.getNextFoldLine(g=b.end.row+1,b))?b.start.row:1/0),!(g>c);){var S=this.$lines.createCell(g,o,this.session),I=S.element;this.dom.removeChildren(I),s.setStyle(I.style,"height",this.$lines.computeLineHeight(g,o,this.session)+"px"),s.setStyle(I.style,"top",this.$lines.computeLineTop(g,o,this.session)+"px"),this.$renderLine(I,g,g==y&&b),I.className=this.$useLineGroups()?"ace_line_group":"ace_line",l.push(S),g++}return l},this.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var i=o.firstRow,c=o.lastRow,l=this.$lines;l.getLength();)l.pop();l.push(this.$renderLinesFragment(o,i,c))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(o,i,c,l){for(var S,g=this,b=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,y=this.dom.createFragment(this.element),I=0;S=b.exec(l);){var R=S[1],M=S[2],A=S[3],D=S[4],w=S[5];if(g.showSpaces||!M){var x=I!=S.index?l.slice(I,S.index):"";if(I=S.index+S[0].length,x&&y.appendChild(this.dom.createTextNode(x,this.element)),R){var C=g.session.getScreenTabSize(i+S.index);y.appendChild(g.$tabStrings[C].cloneNode(!0)),i+=C-1}else M?g.showSpaces?((L=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",L.textContent=d.stringRepeat(g.SPACE_CHAR,M.length),y.appendChild(L)):y.appendChild(this.com.createTextNode(M,this.element)):A?((L=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",L.textContent=d.stringRepeat(g.SPACE_CHAR,A.length),y.appendChild(L)):D?(i+=1,(L=this.dom.createElement("span")).style.width=2*g.config.characterWidth+"px",L.className=g.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",L.textContent=g.showSpaces?g.SPACE_CHAR:D,y.appendChild(L)):w&&(i+=1,(L=this.dom.createElement("span")).style.width=2*g.config.characterWidth+"px",L.className="ace_cjk",L.textContent=w,y.appendChild(L))}}if(y.appendChild(this.dom.createTextNode(I?l.slice(I):l,this.element)),this.$textToken[c.type])o.appendChild(y);else{var F="ace_"+c.type.replace(/\./g," ace_"),L=this.dom.createElement("span");"fold"==c.type&&(L.style.width=c.value.length*this.config.characterWidth+"px"),L.className=F,L.appendChild(y),o.appendChild(L)}return i+l.length},this.renderIndentGuide=function(o,i,c){var l=i.search(this.$indentGuideRe);if(l<=0||l>=c)return i;if(" "==i[0]){for(var g=(l-=l%this.tabSize)/this.tabSize,b=0;b=b;)y=this.$renderToken(S,y,R,M.substring(0,b-l)),M=M.substring(b-l),l=b,S=this.$createLineElement(),o.appendChild(S),S.appendChild(this.dom.createTextNode(d.stringRepeat("\xa0",c.indent),this.element)),y=0,b=c[++g]||Number.MAX_VALUE;0!=M.length&&(l+=M.length,y=this.$renderToken(S,y,R,M))}}c[c.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,y,null,"",!0)},this.$renderSimpleLine=function(o,i){var c=0,l=i[0],g=l.value;this.displayIndentGuides&&(g=this.renderIndentGuide(o,g)),g&&(c=this.$renderToken(o,c,l,g));for(var b=1;bthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,c,l,g);c=this.$renderToken(o,c,l,g)}},this.$renderOverflowMessage=function(o,i,c,l,g){c&&this.$renderToken(o,i,c,l.slice(0,this.MAX_LINE_LENGTH-i));var b=this.dom.createElement("span");b.className="ace_inline_button ace_keyword ace_toggle_wrap",b.textContent=g?"":"",o.appendChild(b)},this.$renderLine=function(o,i,c){if(!c&&0!=c&&(c=this.session.getFoldLine(i)),c)var l=this.$getFoldLineTokens(i,c);else l=this.session.getTokens(i);var g=o;if(l.length){var b=this.session.getRowSplitData(i);b&&b.length?(this.$renderWrappedLine(o,l,b),g=o.lastChild):(g=o,this.$useLineGroups()&&(g=this.$createLineElement(),o.appendChild(g)),this.$renderSimpleLine(g,l))}else this.$useLineGroups()&&(g=this.$createLineElement(),o.appendChild(g));if(this.showEOL&&g){c&&(i=c.end.row);var y=this.dom.createElement("span");y.className="ace_invisible ace_invisible_eol",y.textContent=i==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,g.appendChild(y)}},this.$getFoldLineTokens=function(o,i){var c=this.session,l=[],b=c.getTokens(o);return i.walk(function(y,S,I,R,M){null!=y?l.push({type:"fold",value:y}):(M&&(b=c.getTokens(S)),b.length&&function(y,S,I){for(var R=0,M=0;M+y[R].value.lengthI-S&&(A=A.substring(0,I-S)),l.push({type:y[R].type,value:A}),M=S+A.length,R+=1);MI?{type:y[R].type,value:A.substring(0,I-M)}:y[R]),M+=A.length,R+=1}}(b,R,I))},i.end.row,this.session.getLine(i.end.row).length),l},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(r.prototype),f.Text=r}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,f,_){"use strict";var m=n("../lib/dom"),s=function(d){this.element=m.createElement("div"),this.element.className="ace_layer ace_cursor-layer",d.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),m.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(d){for(var u=this.cursors,h=u.length;h--;)m.setStyle(u[h].style,"opacity",d?"":"0")},this.$startCssAnimation=function(){for(var d=this.cursors,u=d.length;u--;)d[u].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&m.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,m.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(d){this.$padding=d},this.setSession=function(d){this.session=d},this.setBlinking=function(d){d!=this.isBlinking&&(this.isBlinking=d,this.restartTimer())},this.setBlinkInterval=function(d){d!=this.blinkInterval&&(this.blinkInterval=d,this.restartTimer())},this.setSmoothBlinking=function(d){d!=this.smoothBlinking&&(this.smoothBlinking=d,m.setCssClass(this.element,"ace_smooth-blinking",d),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var d=m.createElement("div");return d.className="ace_cursor",this.element.appendChild(d),this.cursors.push(d),d},this.removeCursor=function(){if(this.cursors.length>1){var d=this.cursors.pop();return d.parentNode.removeChild(d),d}},this.hideCursor=function(){this.isVisible=!1,m.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,m.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var d=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,m.removeCssClass(this.element,"ace_smooth-blinking")),d(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&m.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),m.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var u=function(){this.timeoutId=setTimeout(function(){d(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){d(!0),u()},this.blinkInterval),u()}else this.$stopCssAnimation()},this.getPixelPosition=function(d,u){if(!this.config||!this.session)return{left:0,top:0};d||(d=this.session.selection.getCursor());var h=this.session.documentToScreenPosition(d);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(h.row,d.row)?this.session.$bidiHandler.getPosLeft(h.column):h.column*this.config.characterWidth),top:(h.row-(u?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(d,u){return d.top>=0&&d.topd.height+d.offset||i.top<0)&&h>1)){var c=this.cursors[r++]||this.addCursor(),l=c.style;this.drawCursor?this.drawCursor(c,i,d,u[h],this.session):this.isCursorInView(i,d)?(m.setStyle(l,"display","block"),m.translate(c,i.left,i.top),m.setStyle(l,"width",Math.round(d.characterWidth)+"px"),m.setStyle(l,"height",d.lineHeight+"px")):m.setStyle(l,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=i,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(d){d!=this.overwrite&&(this.overwrite=d,d?m.addCssClass(this.element,"ace_overwrite-cursors"):m.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(s.prototype),f.Cursor=s}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,f,_){"use strict";var m=n("./lib/oop"),s=n("./lib/dom"),d=n("./lib/event"),u=n("./lib/event_emitter").EventEmitter,h=32768,r=function(c){this.element=s.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=s.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),c.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,d.addListener(this.element,"scroll",this.onScroll.bind(this)),d.addListener(this.element,"mousedown",d.preventDefault)};(function(){m.implement(this,u),this.setVisible=function(c){this.element.style.display=c?"":"none",this.isVisible=c,this.coeff=1}}).call(r.prototype);var o=function(c,l){r.call(this,c),this.scrollTop=0,this.scrollHeight=0,l.$scrollbarWidth=this.width=s.scrollbarWidth(c.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};m.inherits(o,r),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var c=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-c)/(this.coeff-c)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(c){this.element.style.height=c+"px"},this.setInnerHeight=this.setScrollHeight=function(c){this.scrollHeight=c,c>h?(this.coeff=h/c,c=h):1!=this.coeff&&(this.coeff=1),this.inner.style.height=c+"px"},this.setScrollTop=function(c){this.scrollTop!=c&&(this.skipEvent=!0,this.scrollTop=c,this.element.scrollTop=c*this.coeff)}}.call(o.prototype);var i=function(c,l){r.call(this,c),this.scrollLeft=0,this.height=l.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};m.inherits(i,r),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(c){this.element.style.width=c+"px"},this.setInnerWidth=function(c){this.inner.style.width=c+"px"},this.setScrollWidth=function(c){this.inner.style.width=c+"px"},this.setScrollLeft=function(c){this.scrollLeft!=c&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=c)}}.call(i.prototype),f.ScrollBar=o,f.ScrollBarV=o,f.ScrollBarH=i,f.VScrollBar=o,f.HScrollBar=i}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,f,_){"use strict";var m=n("./lib/event"),s=function(d,u){this.onRender=d,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=u||window;var h=this;this._flush=function(r){h.pending=!1;var o=h.changes;if(o&&(m.blockIdle(100),h.changes=0,h.onRender(o)),h.changes){if(h.$recursionLimit--<0)return;h.schedule()}else h.$recursionLimit=2}};(function(){this.schedule=function(d){this.changes=this.changes|d,this.changes&&!this.pending&&(m.nextFrame(this._flush),this.pending=!0)},this.clear=function(d){var u=this.changes;return this.changes=0,u}}).call(s.prototype),f.RenderLoop=s}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,f,_){var m=n("../lib/oop"),s=n("../lib/dom"),d=n("../lib/lang"),u=n("../lib/event"),h=n("../lib/useragent"),r=n("../lib/event_emitter").EventEmitter,o=256,i="function"==typeof ResizeObserver,c=200,l=f.FontMetrics=function(g){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=d.stringRepeat("X",o),this.$characterSize={width:0,height:0},i?this.$addObserver():this.checkForSizeChanges()};(function(){m.implement(this,r),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(g,b){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",h.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=b?"hidden":"visible"},this.checkForSizeChanges=function(g){if(void 0===g&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var b=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=b&&b.width===g.width&&b.height===g.height,this._emit("changeCharacterSize",{data:g})}},this.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(b){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=u.onIdle(function b(){g.checkForSizeChanges(),u.onIdle(b,500)},500)},this.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(g){var b={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/o};return 0===b.width||0===b.height?null:b},this.$measureCharWidth=function(g){return this.$main.textContent=d.stringRepeat(g,o),this.$main.getBoundingClientRect().width/o},this.getCharacterWidth=function(g){var b=this.charSizes[g];return void 0===b&&(b=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),b},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function g(b){return b&&b.parentElement?(window.getComputedStyle(b).zoom||1)*g(b.parentElement):1},this.$initTransformMeasureNodes=function(){var g=function(b,y){return["div",{style:"position: absolute;top:"+b+"px;left:"+y+"px;"}]};this.els=s.buildDom([g(0,0),g(c,0),g(0,c),g(c,c)],this.el)},this.transformCoordinates=function(g,b){function S(ie,ne,ae){var xe=ie[1]*ne[0]-ie[0]*ne[1];return[(-ne[1]*ae[0]+ne[0]*ae[1])/xe,(+ie[1]*ae[0]-ie[0]*ae[1])/xe]}function I(ie,ne){return[ie[0]-ne[0],ie[1]-ne[1]]}function R(ie,ne){return[ie[0]+ne[0],ie[1]+ne[1]]}function M(ie,ne){return[ie*ne[0],ie*ne[1]]}function A(ie){var ne=ie.getBoundingClientRect();return[ne.left,ne.top]}g&&(g=M(1/this.$getZoom(this.el),g)),this.els||this.$initTransformMeasureNodes();var D=A(this.els[0]),w=A(this.els[1]),x=A(this.els[2]),C=A(this.els[3]),L=S(I(C,w),I(C,x),I(R(w,x),R(C,D))),F=M(1+L[0],I(w,D)),re=M(1+L[1],I(x,D));if(b){var Y=b,X=L[0]*Y[0]/c+L[1]*Y[1]/c+1,ee=R(M(Y[0],F),M(Y[1],re));return R(M(1/X/c,ee),D)}var $=I(g,D),J=S(I(F,M(L[0],$)),I(re,M(L[1],$)),$);return M(c,J)}}).call(l.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(n,f,_){"use strict";var m=n("./lib/oop"),s=n("./lib/dom"),d=n("./config"),u=n("./layer/gutter").Gutter,h=n("./layer/marker").Marker,r=n("./layer/text").Text,o=n("./layer/cursor").Cursor,i=n("./scrollbar").HScrollBar,c=n("./scrollbar").VScrollBar,l=n("./renderloop").RenderLoop,g=n("./layer/font_metrics").FontMetrics,b=n("./lib/event_emitter").EventEmitter,y='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',S=n("./lib/useragent"),I=S.isIE;s.importCssString(y,"ace_editor.css",!1);var R=function(M,A){var D=this;this.container=M||s.createElement("div"),s.addCssClass(this.container,"ace_editor"),s.HI_DPI&&s.addCssClass(this.container,"ace_hidpi"),this.setTheme(A),null==d.get("useStrictCSP")&&d.set("useStrictCSP",!1),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new u(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new h(this.content);var w=this.$textLayer=new r(this.content);this.canvas=w.element,this.$markerFront=new h(this.content),this.$cursorLayer=new o(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new c(this.container,this),this.scrollBarH=new i(this.container,this),this.scrollBarV.on("scroll",function(x){D.$scrollAnimation||D.session.setScrollTop(x.data-D.scrollMargin.top)}),this.scrollBarH.on("scroll",function(x){D.$scrollAnimation||D.session.setScrollLeft(x.data-D.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(x){D.updateCharacterSize(),D.onResize(!0,D.gutterWidth,D.$size.width,D.$size.height),D._signal("changeCharacterSize",x)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!S.isIOS,this.$loop=new l(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),d.resetOptions(this),d._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,m.implement(this,b),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),s.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(M){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=M,M&&this.scrollMargin.top&&M.getScrollTop()<=0&&M.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(M),this.$markerBack.setSession(M),this.$markerFront.setSession(M),this.$gutterLayer.setSession(M),this.$textLayer.setSession(M),M&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(M,A,D){if(void 0===A&&(A=1/0),this.$changedLines?(this.$changedLines.firstRow>M&&(this.$changedLines.firstRow=M),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(M){M?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(M,A,D,w){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=M?1:0;var x=this.container;w||(w=x.clientHeight||x.scrollHeight),D||(D=x.clientWidth||x.scrollWidth);var C=this.$updateCachedSize(M,A,D,w);if(!this.$size.scrollerHeight||!D&&!w)return this.resizing=0;M&&(this.$gutterLayer.$padding=null),M?this.$renderChanges(C|this.$changes,!0):this.$loop.schedule(C|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(M,A,D,w){var x=0,C=this.$size,L={width:C.width,height:C.height,scrollerHeight:C.scrollerHeight,scrollerWidth:C.scrollerWidth};if((w-=this.$extraHeight||0)&&(M||C.height!=w)&&(C.height=w,x|=this.CHANGE_SIZE,C.scrollerHeight=C.height,this.$horizScroll&&(C.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",x|=this.CHANGE_SCROLL),D&&(M||C.width!=D)){x|=this.CHANGE_SIZE,C.width=D,null==A&&(A=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=A,s.setStyle(this.scrollBarH.element.style,"left",A+"px"),s.setStyle(this.scroller.style,"left",A+this.margin.left+"px"),C.scrollerWidth=Math.max(0,D-A-this.scrollBarV.getWidth()-this.margin.h),s.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";s.setStyle(this.scrollBarH.element.style,"right",F),s.setStyle(this.scroller.style,"right",F),s.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||M)&&(x|=this.CHANGE_FULL)}return C.$dirty=!D||!w,x&&this._signal("resize",L),x},this.onGutterResize=function(M){var A=this.$showGutter?M:0;A!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,A,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var A=Math.floor((this.$size.scrollerWidth-2*this.$padding)/this.characterWidth);return this.session.adjustWrapLimit(A,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(M){this.setOption("animatedScroll",M)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(M){this.setOption("showInvisibles",M),this.session.$bidiHandler.setShowInvisibles(M)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(M){this.setOption("displayIndentGuides",M)},this.setShowPrintMargin=function(M){this.setOption("showPrintMargin",M)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(M){this.setOption("printMarginColumn",M)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(M){return this.setOption("showGutter",M)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(M){this.setOption("fadeFoldWidgets",M)},this.setHighlightGutterLine=function(M){this.setOption("highlightGutterLine",M)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var M=s.createElement("div");M.className="ace_layer ace_print-margin-layer",this.$printMarginEl=s.createElement("div"),this.$printMarginEl.className="ace_print-margin",M.appendChild(this.$printMarginEl),this.content.insertBefore(M,this.content.firstChild)}var A=this.$printMarginEl.style;A.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",A.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var M=this.textarea.style,A=this.$composition;if(!this.$keepTextAreaAtCursor&&!A)return void s.translate(this.textarea,-100,0);var D=this.$cursorLayer.$pixelPos;if(D){A&&A.markerRange&&(D=this.$cursorLayer.getPixelPosition(A.markerRange.start,!0));var w=this.layerConfig,x=D.top,C=D.left,L=A&&A.useTextareaForIME?this.lineHeight:I?0:1;if((x-=w.offset)<0||x>w.height-L)return void s.translate(this.textarea,0,0);var F=1,re=this.$size.height-L;A?A.useTextareaForIME?F=this.characterWidth*this.session.$getStringScreenWidth(this.textarea.value)[0]:x+=this.lineHeight+2:x+=this.lineHeight,(C-=this.scrollLeft)>this.$size.scrollerWidth-F&&(C=this.$size.scrollerWidth-F),C+=this.gutterWidth+this.margin.left,s.setStyle(M,"height",L+"px"),s.setStyle(M,"width",F+"px"),s.translate(this.textarea,Math.min(C,this.$size.scrollerWidth-F),Math.min(x,re))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var M=this.layerConfig,A=M.lastRow;return this.session.documentToScreenRow(A,0)*M.lineHeight-this.session.getScrollTop()>M.height-M.lineHeight?A-1:A},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(M){this.$padding=M,this.$textLayer.setPadding(M),this.$cursorLayer.setPadding(M),this.$markerFront.setPadding(M),this.$markerBack.setPadding(M),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(M,A,D,w){var x=this.scrollMargin;x.top=0|M,x.bottom=0|A,x.right=0|w,x.left=0|D,x.v=x.top+x.bottom,x.h=x.left+x.right,x.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-x.top),this.updateFull()},this.setMargin=function(M,A,D,w){var x=this.margin;x.top=0|M,x.bottom=0|A,x.right=0|w,x.left=0|D,x.v=x.top+x.bottom,x.h=x.left+x.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(M){this.setOption("hScrollBarAlwaysVisible",M)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(M){this.setOption("vScrollBarAlwaysVisible",M)},this.$updateScrollBarV=function(){var M=this.layerConfig.maxHeight,A=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&this.scrollTop>(M-=(A-this.lineHeight)*this.$scrollPastEnd)-A&&(M=this.scrollTop+A,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(M+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(M,A){if(this.$changes&&(M|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(M||A)){if(this.$size.$dirty)return this.$changes|=M,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",M),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var D=this.layerConfig;if(M&this.CHANGE_FULL||M&this.CHANGE_SIZE||M&this.CHANGE_TEXT||M&this.CHANGE_LINES||M&this.CHANGE_SCROLL||M&this.CHANGE_H_SCROLL){if(M|=this.$computeLayerConfig()|this.$loop.clear(),D.firstRow!=this.layerConfig.firstRow&&D.firstRowScreen==this.layerConfig.firstRowScreen){var w=this.scrollTop+(D.firstRow-this.layerConfig.firstRow)*this.lineHeight;w>0&&(this.scrollTop=w,M|=this.CHANGE_SCROLL,M|=this.$computeLayerConfig()|this.$loop.clear())}D=this.layerConfig,this.$updateScrollBarV(),M&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),s.translate(this.content,-this.scrollLeft,-D.offset);var C=D.minHeight+"px";s.setStyle(this.content.style,"width",D.width+2*this.$padding+"px"),s.setStyle(this.content.style,"height",C)}return M&this.CHANGE_H_SCROLL&&(s.translate(this.content,-this.scrollLeft,-D.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),M&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(D),this.$showGutter&&this.$gutterLayer.update(D),this.$markerBack.update(D),this.$markerFront.update(D),this.$cursorLayer.update(D),this.$moveTextAreaToCursor(),void this._signal("afterRender",M)):M&this.CHANGE_SCROLL?(this.$changedLines=null,M&this.CHANGE_TEXT||M&this.CHANGE_LINES?this.$textLayer.update(D):this.$textLayer.scrollLines(D),this.$showGutter&&(M&this.CHANGE_GUTTER||M&this.CHANGE_LINES?this.$gutterLayer.update(D):this.$gutterLayer.scrollLines(D)),this.$markerBack.update(D),this.$markerFront.update(D),this.$cursorLayer.update(D),this.$moveTextAreaToCursor(),void this._signal("afterRender",M)):(M&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(D),this.$showGutter&&this.$gutterLayer.update(D)):M&this.CHANGE_LINES?(this.$updateLines()||M&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(D):M&this.CHANGE_TEXT||M&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(D):M&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(D),M&this.CHANGE_CURSOR&&(this.$cursorLayer.update(D),this.$moveTextAreaToCursor()),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(D),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(D),void this._signal("afterRender",M))}this.$changes|=M},this.$autosize=function(){var M=this.session.getScreenLength()*this.lineHeight,A=this.$maxLines*this.lineHeight,D=Math.min(A,Math.max((this.$minLines||1)*this.lineHeight,M))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(D+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&D>this.$maxPixelHeight&&(D=this.$maxPixelHeight);var x=!(D<=2*this.lineHeight)&&M>A;if(D!=this.desiredHeight||this.$size.height!=this.desiredHeight||x!=this.$vScroll){x!=this.$vScroll&&(this.$vScroll=x,this.scrollBarV.setVisible(x));var C=this.container.clientWidth;this.container.style.height=D+"px",this.$updateCachedSize(!0,this.$gutterWidth,C,D),this.desiredHeight=D,this._signal("autosize")}},this.$computeLayerConfig=function(){var M=this.session,A=this.$size,D=A.height<=2*this.lineHeight,x=this.session.getScreenLength()*this.lineHeight,C=this.$getLongestLine(),L=!D&&(this.$hScrollBarAlwaysVisible||A.scrollerWidth-C-2*this.$padding<0),F=this.$horizScroll!==L;F&&(this.$horizScroll=L,this.scrollBarH.setVisible(L));var re=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Y=A.scrollerHeight+this.lineHeight,X=!this.$maxLines&&this.$scrollPastEnd?(A.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;x+=X;var ee=this.scrollMargin;this.session.setScrollTop(Math.max(-ee.top,Math.min(this.scrollTop,x-A.scrollerHeight+ee.bottom))),this.session.setScrollLeft(Math.max(-ee.left,Math.min(this.scrollLeft,C+2*this.$padding-A.scrollerWidth+ee.right)));var $=!D&&(this.$vScrollBarAlwaysVisible||A.scrollerHeight-x+X<0||this.scrollTop>ee.top),J=re!==$;J&&(this.$vScroll=$,this.scrollBarV.setVisible($));var Ie,We,ie=this.scrollTop%this.lineHeight,ne=Math.ceil(Y/this.lineHeight)-1,ae=Math.max(0,Math.round((this.scrollTop-ie)/this.lineHeight)),xe=ae+ne,Xe=this.lineHeight;ae=M.screenToDocumentRow(ae,0);var ft=M.getFoldLine(ae);ft&&(ae=ft.start.row),Ie=M.documentToScreenRow(ae,0),We=M.getRowLength(ae)*Xe,xe=Math.min(M.screenToDocumentRow(xe,0),M.getLength()-1),Y=A.scrollerHeight+M.getRowLength(xe)*Xe+We,ie=this.scrollTop-Ie*Xe;var Pe=0;return(this.layerConfig.width!=C||F)&&(Pe=this.CHANGE_H_SCROLL),(F||J)&&(Pe|=this.$updateCachedSize(!0,this.gutterWidth,A.width,A.height),this._signal("scrollbarVisibilityChanged"),J&&(C=this.$getLongestLine())),this.layerConfig={width:C,padding:this.$padding,firstRow:ae,firstRowScreen:Ie,lastRow:xe,lineHeight:Xe,characterWidth:this.characterWidth,minHeight:Y,maxHeight:x,offset:ie,gutterOffset:Xe?Math.max(0,Math.ceil((ie+A.height-A.scrollerHeight)/Xe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(C-this.$padding),Pe},this.$updateLines=function(){if(this.$changedLines){var M=this.$changedLines.firstRow,A=this.$changedLines.lastRow;this.$changedLines=null;var D=this.layerConfig;if(!(M>D.lastRow+1||Athis.$textLayer.MAX_LINE_LENGTH&&(M=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(M*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(M,A){this.$gutterLayer.addGutterDecoration(M,A)},this.removeGutterDecoration=function(M,A){this.$gutterLayer.removeGutterDecoration(M,A)},this.updateBreakpoints=function(M){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(M){this.$gutterLayer.setAnnotations(M),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(M,A,D){this.scrollCursorIntoView(M,D),this.scrollCursorIntoView(A,D)},this.scrollCursorIntoView=function(M,A,D){if(0!==this.$size.scrollerHeight){var w=this.$cursorLayer.getPixelPosition(M),x=w.left,C=w.top,L=D&&D.top||0,F=D&&D.bottom||0,re=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;re+L>C?(A&&re+L>C+this.lineHeight&&(C-=A*this.$size.scrollerHeight),0===C&&(C=-this.scrollMargin.top),this.session.setScrollTop(C)):re+this.$size.scrollerHeight-Fx?(x=1-this.scrollMargin.top||A>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||M<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||M>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(M,A){var D;if(this.$hasCssTransforms){D={top:0,left:0};var w=this.$fontMetrics.transformCoordinates([M,A]);M=w[1]-this.gutterWidth-this.margin.left,A=w[0]}else D=this.scroller.getBoundingClientRect();var x=M+this.scrollLeft-D.left-this.$padding,C=x/this.characterWidth,L=Math.floor((A+this.scrollTop-D.top)/this.lineHeight),F=this.$blockCursor?Math.floor(C):Math.round(C);return{row:L,column:F,side:C-F>0?1:-1,offsetX:x}},this.screenToTextCoordinates=function(M,A){var D;if(this.$hasCssTransforms){D={top:0,left:0};var w=this.$fontMetrics.transformCoordinates([M,A]);M=w[1]-this.gutterWidth-this.margin.left,A=w[0]}else D=this.scroller.getBoundingClientRect();var x=M+this.scrollLeft-D.left-this.$padding,C=x/this.characterWidth,L=this.$blockCursor?Math.floor(C):Math.round(C),F=Math.floor((A+this.scrollTop-D.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(L,0),x)},this.textToScreenCoordinates=function(M,A){var D=this.scroller.getBoundingClientRect(),w=this.session.documentToScreenPosition(M,A),x=this.$padding+(this.session.$bidiHandler.isBidiRow(w.row,M)?this.session.$bidiHandler.getPosLeft(w.column):Math.round(w.column*this.characterWidth));return{pageX:D.left+x-this.scrollLeft,pageY:D.top+w.row*this.lineHeight-this.scrollTop}},this.visualizeFocus=function(){s.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){s.removeCssClass(this.container,"ace_focus")},this.showComposition=function(M){this.$composition=M,M.cssText||(M.cssText=this.textarea.style.cssText),null==M.useTextareaForIME&&(M.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(s.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):M.markerId=this.session.addMarker(M.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(M){var A=this.session.selection.cursor;this.addToken(M,"composition_placeholder",A.row,A.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),s.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var M=this.session.selection.cursor;this.removeExtraToken(M.row,M.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(M,A,D,w){var x=this.session;x.bgTokenizer.lines[D]=null;var C={type:A,value:M},L=x.getTokens(D);if(null==w)L.push(C);else for(var F=0,re=0;re50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(o.prototype),f.UIWorkerClient=function(c,l,g){var b=null,y=!1,S=Object.create(d),I=[],R=new o({messageBuffer:I,terminate:function(){},postMessage:function(A){I.push(A),b&&(y?setTimeout(M):M())}});R.setEmitSync=function(A){y=A};var M=function(){var A=I.shift();A.command?b[A.command].apply(b,A.args):A.event&&S._signal(A.event,A.data)};return S.postMessage=function(A){R.onMessage({data:A})},S.callback=function(A,D){this.postMessage({type:"call",id:D,data:A})},S.emit=function(A,D){this.postMessage({type:"event",name:A,data:D})},u.loadModule(["worker",l],function(A){for(b=new A[g](S);I.length;)M()}),R},f.WorkerClient=o,f.createWorker=r}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,f,_){"use strict";var m=n("./range").Range,s=n("./lib/event_emitter").EventEmitter,d=n("./lib/oop"),u=function(h,r,o,i,c,l){var g=this;this.length=r,this.session=h,this.doc=h.getDocument(),this.mainClass=c,this.othersClass=l,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=o;var b=h.getUndoManager().$undoStack||h.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),h.selection.on("changeCursor",this.$onCursorChange)};(function(){d.implement(this,s),this.setup=function(){var h=this,r=this.doc,o=this.session;this.selectionBefore=o.selection.toJSON(),o.selection.inMultiSelectMode&&o.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=o.addMarker(new m(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(c){var l=r.createAnchor(c.row,c.column);l.$insertRight=!0,l.detach(),h.others.push(l)}),o.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var h=this.session,r=this;this.othersActive=!0,this.others.forEach(function(o){o.markerId=h.addMarker(new m(o.row,o.column,o.row,o.column+r.length),r.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var h=0;h=this.pos.column&&r.start.column<=this.pos.column+this.length+1,c=r.start.column-this.pos.column;if(this.updateAnchors(h),i&&(this.length+=o),i&&!this.session.$fromUndo)if("insert"===h.action)for(var l=this.others.length-1;l>=0;l--)this.doc.insertMergedLines(b={row:(g=this.others[l]).row,column:g.column+c},h.lines);else if("remove"===h.action)for(l=this.others.length-1;l>=0;l--){var g,b;this.doc.remove(new m((b={row:(g=this.others[l]).row,column:g.column+c}).row,b.column,b.row,b.column-o))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(h){this.pos.onChange(h);for(var r=this.others.length;r--;)this.others[r].onChange(h);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var h=this,r=this.session,o=function(c,l){r.removeMarker(c.markerId),c.markerId=r.addMarker(new m(c.row,c.column,c.row,c.column+h.length),l,null,!1)};o(this.pos,this.mainClass);for(var i=this.others.length;i--;)o(this.others[i],this.othersClass)}},this.onCursorChange=function(h){if(!this.$updating&&this.session){var r=this.session.selection.getCursor();r.row===this.pos.row&&r.column>=this.pos.column&&r.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",h)):(this.hideOtherMarkers(),this._emit("cursorLeave",h))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var h=this.session.getUndoManager(),r=(h.$undoStack||h.$undostack).length-this.$undoStackDepth,o=0;o1?s.multiSelect.joinSelections():s.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(s){s.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(s){s.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(s){s.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],f.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(s){s.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(s){return s&&s.inMultiSelectMode}}];var m=n("../keyboard/hash_handler").HashHandler;f.keyboardHandler=new m(f.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,f,_){var m=n("./range_list").RangeList,s=n("./range").Range,d=n("./selection").Selection,u=n("./mouse/multi_select_handler").onMouseDown,h=n("./lib/event"),r=n("./lib/lang"),o=n("./commands/multi_select_commands");f.commands=o.defaultCommands.concat(o.multiSelectCommands);var c=new(0,n("./search").Search),g=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(R,M){if(R){if(!this.inMultiSelectMode&&0===this.rangeCount){var A=this.toOrientedRange();if(this.rangeList.add(A),this.rangeList.add(R),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),M||this.fromOrientedRange(R);this.rangeList.removeAll(),this.rangeList.add(A),this.$onAddRange(A)}R.cursor||(R.cursor=R.end);var D=this.rangeList.add(R);return this.$onAddRange(R),D.length&&this.$onRemoveRange(D),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),M||this.fromOrientedRange(R)}},this.toSingleRange=function(R){R=R||this.ranges[0];var M=this.rangeList.removeAll();M.length&&this.$onRemoveRange(M),R&&this.fromOrientedRange(R)},this.substractPoint=function(R){var M=this.rangeList.substractPoint(R);if(M)return this.$onRemoveRange(M),M[0]},this.mergeOverlappingRanges=function(){var R=this.rangeList.merge();R.length&&this.$onRemoveRange(R)},this.$onAddRange=function(R){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(R),this._signal("addRange",{range:R})},this.$onRemoveRange=function(R){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var M=this.rangeList.ranges.pop();R.push(M),this.rangeCount=0}for(var A=R.length;A--;){var D=this.ranges.indexOf(R[A]);this.ranges.splice(D,1)}this._signal("removeRange",{ranges:R}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(M=M||this.ranges[0])&&!M.isEqual(this.getRange())&&this.fromOrientedRange(M)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new m,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var R=this.ranges.length?this.ranges:[this.getRange()],M=[],A=0;A1){var R=this.rangeList.ranges,M=R[R.length-1],A=s.fromPoints(R[0].start,M.end);this.toSingleRange(),this.setSelectionRange(A,M.cursor==M.start)}else{var D=this.session.documentToScreenPosition(this.cursor),w=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(D,w).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(R,M,A){var D=[],w=R.column0;)ie--;if(ie>0)for(var ne=0;D[ne].isEmpty();)ne++;for(var ae=ie;ae>=ne;ae--)D[ae].isEmpty()&&D.splice(ae,1)}return D}}.call(d.prototype);var b=n("./editor").Editor;function y(R,M){return R.row==M.row&&R.column==M.column}function S(R){R.$multiselectOnSessionChange||(R.$onAddRange=R.$onAddRange.bind(R),R.$onRemoveRange=R.$onRemoveRange.bind(R),R.$onMultiSelect=R.$onMultiSelect.bind(R),R.$onSingleSelect=R.$onSingleSelect.bind(R),R.$multiselectOnSessionChange=f.onSessionChange.bind(R),R.$checkMultiselectChange=R.$checkMultiselectChange.bind(R),R.$multiselectOnSessionChange(R),R.on("changeSession",R.$multiselectOnSessionChange),R.on("mousedown",u),R.commands.addCommands(o.defaultCommands),function(R){if(R.textInput){var M=R.textInput.getElement(),A=!1;h.addListener(M,"keydown",function(w){R.$blockSelectEnabled&&18==w.keyCode&&!(w.ctrlKey||w.shiftKey||w.metaKey)?A||(R.renderer.setMouseCursor("crosshair"),A=!0):A&&D()},R),h.addListener(M,"keyup",D,R),h.addListener(M,"blur",D,R)}function D(w){A&&(R.renderer.setMouseCursor(""),A=!1)}}(R))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(R){R.cursor||(R.cursor=R.end);var M=this.getSelectionStyle();return R.marker=this.session.addMarker(R,"ace_selection",M),this.session.$selectionMarkers.push(R),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,R},this.removeSelectionMarker=function(R){if(R.marker){this.session.removeMarker(R.marker);var M=this.session.$selectionMarkers.indexOf(R);-1!=M&&this.session.$selectionMarkers.splice(M,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(R){for(var M=this.session.$selectionMarkers,A=R.length;A--;){var D=R[A];if(D.marker){this.session.removeMarker(D.marker);var w=M.indexOf(D);-1!=w&&M.splice(w,1)}}this.session.selectionMarkerCount=M.length},this.$onAddRange=function(R){this.addSelectionMarker(R.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(R){this.removeSelectionMarkers(R.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(R){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(o.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(R){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(o.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(R){var M=R.command,A=R.editor;if(A.multiSelect){if(M.multiSelectAction)"forEach"==M.multiSelectAction?D=A.forEachSelection(M,R.args):"forEachLine"==M.multiSelectAction?D=A.forEachSelection(M,R.args,!0):"single"==M.multiSelectAction?(A.exitMultiSelectMode(),D=M.exec(A,R.args||{})):D=M.multiSelectAction(A,R.args||{});else{var D=M.exec(A,R.args||{});A.multiSelect.addRange(A.multiSelect.toOrientedRange()),A.multiSelect.mergeOverlappingRanges()}return D}},this.forEachSelection=function(R,M,A){if(!this.inVirtualSelectionMode){var re,w=1==A||A&&A.$byLines,x=this.session,C=this.selection,F=(A&&A.keepOrder?C:C.rangeList).ranges;if(!F.length)return R.exec?R.exec(this,M||{}):R(this,M||{});var Y=C._eventRegistry;C._eventRegistry={};var X=new d(x);this.inVirtualSelectionMode=!0;for(var ee=F.length;ee--;){if(w)for(;ee>0&&F[ee].start.row==F[ee-1].end.row;)ee--;X.fromOrientedRange(F[ee]),X.index=ee,this.selection=x.selection=X;var $=R.exec?R.exec(this,M||{}):R(this,M||{});!re&&void 0!==$&&(re=$),X.toOrientedRange(F[ee])}X.detach(),this.selection=x.selection=C,this.inVirtualSelectionMode=!1,C._eventRegistry=Y,C.mergeOverlappingRanges(),C.ranges[0]&&C.fromOrientedRange(C.ranges[0]);var J=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),J&&J.from==J.to&&this.renderer.animateScrolling(J.from),re}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var R="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var M=this.multiSelect.rangeList.ranges,A=[],D=0;Dee&&(ee=ne.column),xe<$&&($=xe),xe});A.forEach(function(ie,ne){var ae=ie.cursor,xe=ee-ae.column,Ie=J[ne]-$;xe>Ie?R.insert(ae,r.stringRepeat(" ",xe-Ie)):R.remove(new s(ae.row,ae.column,ae.row,ae.column-xe+Ie)),ie.start.column=ie.end.column=ee,ie.start.row=ie.end.row=ae.row,ie.cursor=ie.end}),M.fromOrientedRange(A[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var x=this.selection.getRange(),C=x.start.row,L=x.end.row,F=C==L;if(F){var Y,re=this.session.getLength();do{Y=this.session.getLine(L)}while(/[=:]/.test(Y)&&++L0);C<0&&(C=0),L>=re&&(L=re-1)}var X=this.session.removeFullLines(C,L);X=this.$reAlignText(X,F),this.session.insert({row:C,column:0},X.join("\n")+"\n"),F||(x.start.column=0,x.end.column=X[X.length-1].length),this.selection.setRange(x)}},this.$reAlignText=function(R,M){var w,x,C,A=!0,D=!0;return R.map(function(X){var ee=X.match(/(\s*)(.*?)(\s*)([=:].*)/);return ee?null==w?(w=ee[1].length,x=ee[2].length,C=ee[3].length,ee):(w+x+C!=ee[1].length+ee[2].length+ee[3].length&&(D=!1),w!=ee[1].length&&(A=!1),w>ee[1].length&&(w=ee[1].length),xee[3].length&&(C=ee[3].length),ee):[X]}).map(M?F:A?D?function(X){return X[2]?L(w+x-X[2].length)+X[2]+L(C)+X[4].replace(/^([=:])\s+/,"$1 "):X[0]}:F:function(X){return X[2]?L(w)+X[2]+L(C)+X[4].replace(/^([=:])\s+/,"$1 "):X[0]});function L(X){return r.stringRepeat(" ",X)}function F(X){return X[2]?L(w)+X[2]+L(x-X[2].length+C)+X[4].replace(/^([=:])\s+/,"$1 "):X[0]}}}).call(b.prototype),f.onSessionChange=function(R){var M=R.session;M&&!M.multiSelect&&(M.$selectionMarkers=[],M.selection.$initRangeList(),M.multiSelect=M.selection),this.multiSelect=M&&M.multiSelect;var A=R.oldSession;A&&(A.multiSelect.off("addRange",this.$onAddRange),A.multiSelect.off("removeRange",this.$onRemoveRange),A.multiSelect.off("multiSelect",this.$onMultiSelect),A.multiSelect.off("singleSelect",this.$onSingleSelect),A.multiSelect.lead.off("change",this.$checkMultiselectChange),A.multiSelect.anchor.off("change",this.$checkMultiselectChange)),M&&(M.multiSelect.on("addRange",this.$onAddRange),M.multiSelect.on("removeRange",this.$onRemoveRange),M.multiSelect.on("multiSelect",this.$onMultiSelect),M.multiSelect.on("singleSelect",this.$onSingleSelect),M.multiSelect.lead.on("change",this.$checkMultiselectChange),M.multiSelect.anchor.on("change",this.$checkMultiselectChange)),M&&this.inMultiSelectMode!=M.selection.inMultiSelectMode&&(M.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},f.MultiSelect=S,n("./config").defineOptions(b.prototype,"editor",{enableMultiselect:{set:function(R){S(this),R?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",u)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",u))},value:!0},enableBlockSelect:{set:function(R){this.$blockSelectEnabled=R},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,f,_){"use strict";var m=n("../../range").Range,s=f.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(d,u,h){var r=d.getLine(h);return this.foldingStartMarker.test(r)?"start":"markbeginend"==u&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(d,u,h){return null},this.indentationBlock=function(d,u,h){var r=/\S/,o=d.getLine(u),i=o.search(r);if(-1!=i){for(var c=h||o.length,l=d.getLength(),g=u,b=u;++ug){var I=d.getLine(b).length;return new m(g,c,b,I)}}},this.openingBracketBlock=function(d,u,h,r,o){var i={row:h,column:r+1},c=d.$findClosingBracket(u,i,o);if(c){var l=d.foldWidgets[c.row];return null==l&&(l=d.getFoldWidget(c.row)),"start"==l&&c.row>i.row&&(c.row--,c.column=d.getLine(c.row).length),m.fromPoints(i,c)}},this.closingBracketBlock=function(d,u,h,r,o){var i={row:h,column:r},c=d.$findOpeningBracket(u,i);if(c)return c.column++,i.column--,m.fromPoints(c,i)}}).call(s.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(n,f,_){"use strict";f.isDark=!1,f.cssClass="ace-tm",f.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',f.$id="ace/theme/textmate",n("../lib/dom").importCssString(f.cssText,f.cssClass,!1)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,f,_){"use strict";var m=n("./lib/dom");function s(d){this.session=d,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(d){var u;return u=this.lineWidgets&&this.lineWidgets[d]&&this.lineWidgets[d].rowCount||0,this.$useWrapMode&&this.$wrapData[d]?this.$wrapData[d].length+1+u:1+u},this.$getWidgetScreenLength=function(){var d=0;return this.lineWidgets.forEach(function(u){u&&u.rowCount&&!u.hidden&&(d+=u.rowCount)}),d},this.$onChangeEditor=function(d){this.attach(d.editor)},this.attach=function(d){d&&d.widgetManager&&d.widgetManager!=this&&d.widgetManager.detach(),this.editor!=d&&(this.detach(),this.editor=d,d&&(d.widgetManager=this,d.renderer.on("beforeRender",this.measureWidgets),d.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(d){var u=this.editor;if(u){this.editor=null,u.widgetManager=null,u.renderer.off("beforeRender",this.measureWidgets),u.renderer.off("afterRender",this.renderWidgets);var h=this.session.lineWidgets;h&&h.forEach(function(r){r&&r.el&&r.el.parentNode&&(r._inDocument=!1,r.el.parentNode.removeChild(r.el))})}},this.updateOnFold=function(d,u){var h=u.lineWidgets;if(h&&d.action){for(var r=d.data,o=r.start.row,i=r.end.row,c="add"==d.action,l=o+1;lu[h].column&&h++,i.unshift(h,0),u.splice.apply(u,i),this.$updateRows()}}},this.$updateRows=function(){var d=this.session.lineWidgets;if(d){var u=!0;d.forEach(function(h,r){if(h)for(u=!1,h.row=r;h.$oldWidget;)h.$oldWidget.row=r,h=h.$oldWidget}),u&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(d){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var u=this.session.lineWidgets[d.row];return u&&(d.$oldWidget=u,u.el&&u.el.parentNode&&(u.el.parentNode.removeChild(u.el),u._inDocument=!1)),this.session.lineWidgets[d.row]=d,d},this.addLineWidget=function(d){if(this.$registerLineWidget(d),d.session=this.session,!this.editor)return d;var u=this.editor.renderer;d.html&&!d.el&&(d.el=m.createElement("div"),d.el.innerHTML=d.html),d.el&&(m.addCssClass(d.el,"ace_lineWidgetContainer"),d.el.style.position="absolute",d.el.style.zIndex=5,u.container.appendChild(d.el),d._inDocument=!0,d.coverGutter||(d.el.style.zIndex=3),null==d.pixelHeight&&(d.pixelHeight=d.el.offsetHeight)),null==d.rowCount&&(d.rowCount=d.pixelHeight/u.layerConfig.lineHeight);var h=this.session.getFoldAt(d.row,0);if(d.$fold=h,h){var r=this.session.lineWidgets;d.row!=h.end.row||r[h.start.row]?d.hidden=!0:r[h.start.row]=d}return this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows(),this.renderWidgets(null,u),this.onWidgetChanged(d),d},this.removeLineWidget=function(d){if(d._inDocument=!1,d.session=null,d.el&&d.el.parentNode&&d.el.parentNode.removeChild(d.el),d.editor&&d.editor.destroy)try{d.editor.destroy()}catch(h){}if(this.session.lineWidgets){var u=this.session.lineWidgets[d.row];if(u==d)this.session.lineWidgets[d.row]=d.$oldWidget,d.$oldWidget&&this.onWidgetChanged(d.$oldWidget);else for(;u;){if(u.$oldWidget==d){u.$oldWidget=d.$oldWidget;break}u=u.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(d){for(var u=this.session.lineWidgets,h=u&&u[d],r=[];h;)r.push(h),h=h.$oldWidget;return r},this.onWidgetChanged=function(d){this.session._changedWidgets.push(d),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(d,u){var h=this.session._changedWidgets,r=u.layerConfig;if(h&&h.length){for(var o=1/0,i=0;i0&&!r[o];)o--;this.firstRow=h.firstRow,this.lastRow=h.lastRow,u.$cursorLayer.config=h;for(var c=o;c<=i;c++){var l=r[c];if(l&&l.el){if(l.hidden){l.el.style.top=-100-(l.pixelHeight||0)+"px";continue}l._inDocument||(l._inDocument=!0,u.container.appendChild(l.el));var g=u.$cursorLayer.getPixelPosition({row:c,column:0},!0).top;l.coverLine||(g+=h.lineHeight*this.session.getRowLineCount(l.row)),l.el.style.top=g-h.offset+"px";var b=l.coverGutter?0:u.gutterWidth;l.fixedWidth||(b-=u.scrollLeft),l.el.style.left=b+"px",l.fullWidth&&l.screenWidth&&(l.el.style.minWidth=h.width+2*h.padding+"px"),l.el.style.right=l.fixedWidth?u.scrollBar.getWidth()+"px":""}}}}}).call(s.prototype),f.LineWidgets=s}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(n,f,_){"use strict";var m=n("../line_widgets").LineWidgets,s=n("../lib/dom"),d=n("../range").Range;f.showErrorMarker=function(r,o){var i=r.session;i.widgetManager||(i.widgetManager=new m(i),i.widgetManager.attach(r));var c=r.getCursorPosition(),l=c.row,g=i.widgetManager.getWidgetsAtRow(l).filter(function(w){return"errorMarker"==w.type})[0];g?g.destroy():l-=o;var y,b=function(r,o,i){var c=r.getAnnotations().sort(d.comparePoints);if(c.length){var l=function(r,o,i){for(var c=0,l=r.length-1;c<=l;){var g=c+l>>1,b=i(o,r[g]);if(b>0)c=g+1;else{if(!(b<0))return g;l=g-1}}return-(c+1)}(c,{row:o,column:-1},d.comparePoints);l<0&&(l=-l-1),l>=c.length?l=i>0?0:c.length-1:0===l&&i<0&&(l=c.length-1);var g=c[l];if(g&&i){if(g.row===o){do{g=c[l+=i]}while(g&&g.row===o);if(!g)return c.slice()}var b=[];o=g.row;do{b[i<0?"unshift":"push"](g),g=c[l+=i]}while(g&&g.row==o);return b.length&&b}}}(i,l,o);if(b){var S=b[0];c.column=(S.pos&&"number"!=typeof S.column?S.pos.sc:S.column)||0,c.row=S.row,y=r.renderer.$gutterLayer.$annotations[c.row]}else{if(g)return;y={text:["Looks good!"],className:"ace_ok"}}r.session.unfold(c.row),r.selection.moveToPosition(c);var I={row:c.row,fixedWidth:!0,coverGutter:!0,el:s.createElement("div"),type:"errorMarker"},R=I.el.appendChild(s.createElement("div")),M=I.el.appendChild(s.createElement("div"));M.className="error_widget_arrow "+y.className;var A=r.renderer.$cursorLayer.getPixelPosition(c).left;M.style.left=A+r.renderer.gutterWidth-5+"px",I.el.className="error_widget_wrapper",R.className="error_widget "+y.className,R.innerHTML=y.text.join("
"),R.appendChild(s.createElement("div"));var D=function(w,x,C){if(0===x&&("esc"===C||"return"===C))return I.destroy(),{command:"null"}};I.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(D),i.widgetManager.removeLineWidget(I),r.off("changeSelection",I.destroy),r.off("changeSession",I.destroy),r.off("mouseup",I.destroy),r.off("change",I.destroy))},r.keyBinding.addKeyboardHandler(D),r.on("changeSelection",I.destroy),r.on("changeSession",I.destroy),r.on("mouseup",I.destroy),r.on("change",I.destroy),r.session.widgetManager.addLineWidget(I),I.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:I.el.offsetHeight})},s.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(n,f,_){"use strict";n("./lib/fixoldbrowsers");var m=n("./lib/dom"),s=n("./lib/event"),d=n("./range").Range,u=n("./editor").Editor,h=n("./edit_session").EditSession,r=n("./undomanager").UndoManager,o=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),f.config=n("./config"),f.require=n,f.define=p.amdD,f.edit=function(i,c){if("string"==typeof i){var l=i;if(!(i=document.getElementById(l)))throw new Error("ace.edit can't find div #"+l)}if(i&&i.env&&i.env.editor instanceof u)return i.env.editor;var g="";if(i&&/input|textarea/i.test(i.tagName)){var b=i;g=b.value,i=m.createElement("pre"),b.parentNode.replaceChild(i,b)}else i&&(g=i.textContent,i.innerHTML="");var y=f.createEditSession(g),S=new u(new o(i),y,c),I={document:y,editor:S,onResize:S.resize.bind(S,null)};return b&&(I.textarea=b),s.addListener(window,"resize",I.onResize),S.on("destroy",function(){s.removeListener(window,"resize",I.onResize),I.editor.container.env=null}),S.container.env=S.env=I,S},f.createEditSession=function(i,c){var l=new h(i,c);return l.setUndoManager(new r),l},f.Range=d,f.Editor=u,f.EditSession=h,f.UndoManager=r,f.VirtualRenderer=o,f.version=f.config.version}),ace.require(["ace/ace"],function(n){for(var f in n&&(n.config.init(!0),n.define=ace.define),window.ace||(window.ace=n),n)n.hasOwnProperty(f)&&(window.ace[f]=n[f]);window.ace.default=window.ace,ye&&(ye.exports=window.ace)})},9426:ye=>{function W(){}ye.exports=W,ye.exports.HttpsAgent=W},6512:(ye,W,p)=>{var n=p(9696).Token,f=p(8123).Lexer,_=p(3491).Interval;function m(){return this}function s(d){return m.call(this),this.tokenSource=d,this.tokens=[],this.index=-1,this.fetchedEOF=!1,this}(s.prototype=Object.create(m.prototype)).constructor=s,s.prototype.mark=function(){return 0},s.prototype.release=function(d){},s.prototype.reset=function(){this.seek(0)},s.prototype.seek=function(d){this.lazyInit(),this.index=this.adjustSeekIndex(d)},s.prototype.get=function(d){return this.lazyInit(),this.tokens[d]},s.prototype.consume=function(){if(!(this.index>=0&&(this.fetchedEOF?this.index0)||this.fetch(u)>=u},s.prototype.fetch=function(d){if(this.fetchedEOF)return 0;for(var u=0;u=this.tokens.length&&(u=this.tokens.length-1);for(var o=d;o=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[u]},s.prototype.adjustSeekIndex=function(d){return d},s.prototype.lazyInit=function(){-1===this.index&&this.setup()},s.prototype.setup=function(){this.sync(0),this.index=this.adjustSeekIndex(0)},s.prototype.setTokenSource=function(d){this.tokenSource=d,this.tokens=[],this.index=-1,this.fetchedEOF=!1},s.prototype.nextTokenOnChannel=function(d,u){if(this.sync(d),d>=this.tokens.length)return-1;for(var h=this.tokens[d];h.channel!==this.channel;){if(h.type===n.EOF)return-1;this.sync(d+=1),h=this.tokens[d]}return d},s.prototype.previousTokenOnChannel=function(d,u){for(;d>=0&&this.tokens[d].channel!==u;)d-=1;return d},s.prototype.getHiddenTokensToRight=function(d,u){if(void 0===u&&(u=-1),this.lazyInit(),d<0||d>=this.tokens.length)throw d+" not in 0.."+this.tokens.length-1;var h=this.nextTokenOnChannel(d+1,f.DEFAULT_TOKEN_CHANNEL);return this.filterForChannel(d+1,-1===h?this.tokens.length-1:h,u)},s.prototype.getHiddenTokensToLeft=function(d,u){if(void 0===u&&(u=-1),this.lazyInit(),d<0||d>=this.tokens.length)throw d+" not in 0.."+this.tokens.length-1;var h=this.previousTokenOnChannel(d-1,f.DEFAULT_TOKEN_CHANNEL);return h===d-1?null:this.filterForChannel(h+1,d-1,u)},s.prototype.filterForChannel=function(d,u,h){for(var r=[],o=d;o=this.tokens.length&&(h=this.tokens.length-1);for(var r="",o=u;o{var n=p(9696).CommonToken;function f(){return this}function _(m){return f.call(this),this.copyText=void 0!==m&&m,this}(_.prototype=Object.create(f.prototype)).constructor=_,_.DEFAULT=new _,_.prototype.create=function(m,s,d,u,h,r,o,i){var c=new n(m,s,u,h,r);return c.line=o,c.column=i,null!==d?c.text=d:this.copyText&&null!==m[1]&&(c.text=m[1].getText(h,r)),c},_.prototype.createThin=function(m,s){var d=new n(null,m);return d.text=s,d},W.$=_},3973:(ye,W,p)=>{var n=p(9696).Token,f=p(6512).B;function _(m,s){return f.call(this,m),this.channel=void 0===s?n.DEFAULT_CHANNEL:s,this}(_.prototype=Object.create(f.prototype)).constructor=_,_.prototype.adjustSeekIndex=function(m){return this.nextTokenOnChannel(m,this.channel)},_.prototype.LB=function(m){if(0===m||this.index-m<0)return null;for(var s=this.index,d=1;d<=m;)s=this.previousTokenOnChannel(s-1,this.channel),d+=1;return s<0?null:this.tokens[s]},_.prototype.LT=function(m){if(this.lazyInit(),0===m)return null;if(m<0)return this.LB(-m);for(var s=this.index,d=1;d{var n=p(9696).Token;function _(m,s){return this.name="",this.strdata=m,this.decodeToUnicodeCodePoints=s||!1,function(m){if(m._index=0,m.data=[],m.decodeToUnicodeCodePoints)for(var s=0;s=this._size)throw"cannot consume EOF";this._index+=1},_.prototype.LA=function(m){if(0===m)return 0;m<0&&(m+=1);var s=this._index+m-1;return s<0||s>=this._size?n.EOF:this.data[s]},_.prototype.LT=function(m){return this.LA(m)},_.prototype.mark=function(){return-1},_.prototype.release=function(m){},_.prototype.seek=function(m){this._index=m<=this._index?m:Math.min(m,this._size)},_.prototype.getText=function(m,s){if(s>=this._size&&(s=this._size-1),m>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var d="",u=m;u<=s;u++)d+=String.fromCodePoint(this.data[u]);return d}return this.strdata.slice(m,s+1)},_.prototype.toString=function(){return this.strdata},W.InputStream=_},3491:(ye,W,p)=>{var n=p(9696).Token;function f(m,s){return this.start=m,this.stop=s,this}function _(){this.intervals=null,this.readOnly=!1}f.prototype.contains=function(m){return m>=this.start&&m=d.stop?(this.intervals.pop(m+1),this.reduce(m)):s.stop>=d.start&&(this.intervals[m]=new f(s.start,d.stop),this.intervals.pop(m+1))}},_.prototype.complement=function(m,s){var d=new _;d.addInterval(new f(m,s+1));for(var u=0;uu.start&&m.stop=u.stop?(this.intervals.splice(s,1),s-=1):m.start":"'"+String.fromCharCode(d.start)+"'":"'"+String.fromCharCode(d.start)+"'..'"+String.fromCharCode(d.stop-1)+"'")}return m.length>1?"{"+m.join(", ")+"}":m[0]},_.prototype.toIndexString=function(){for(var m=[],s=0;s":d.start.toString():d.start.toString()+".."+(d.stop-1).toString())}return m.length>1?"{"+m.join(", ")+"}":m[0]},_.prototype.toTokenString=function(m,s){for(var d=[],u=0;u1?"{"+d.join(", ")+"}":d[0]},_.prototype.elementName=function(m,s,d){return d===n.EOF?"":d===n.EPSILON?"":m[d]||s[d]},W.Interval=f,W.V=_},640:(ye,W,p)=>{var n=p(3126).Set,f=p(3126).BitSet,_=p(9696).Token,m=p(6980).m,d=(p(3491),p(3491).V),u=p(7069).RuleStopState,h=p(8792).RuleTransition,r=p(8792).NotSetTransition,o=p(8792).WildcardTransition,i=p(8792).AbstractPredicateTransition,c=p(8267),l=c.predictionContextFromRuleContext,g=c.PredictionContext,b=c.SingletonPredictionContext;function y(S){this.atn=S}y.HIT_PRED=_.INVALID_TYPE,y.prototype.getDecisionLookahead=function(S){if(null===S)return null;for(var I=S.transitions.length,R=[],M=0;M{var n=p(9696).Token,f=p(8646).c,_=p(4412).$,m=p(9329).RecognitionException,s=p(9329).LexerNoViableAltException;function u(h){return f.call(this),this._input=h,this._factory=_.DEFAULT,this._tokenFactorySourcePair=[this,h],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=n.DEFAULT_CHANNEL,this._type=n.INVALID_TYPE,this._modeStack=[],this._mode=u.DEFAULT_MODE,this._text=null,this}(u.prototype=Object.create(f.prototype)).constructor=u,u.DEFAULT_MODE=0,u.MORE=-2,u.SKIP=-3,u.DEFAULT_TOKEN_CHANNEL=n.DEFAULT_CHANNEL,u.HIDDEN=n.HIDDEN_CHANNEL,u.MIN_CHAR_VALUE=0,u.MAX_CHAR_VALUE=1114111,u.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._token=null,this._type=n.INVALID_TYPE,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=u.DEFAULT_MODE,this._modeStack=[],this._interp.reset()},u.prototype.nextToken=function(){if(null===this._input)throw"nextToken requires a non-null input stream.";var h=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var r=!1;;){this._type=n.INVALID_TYPE;var o=u.SKIP;try{o=this._interp.match(this._input,this._mode)}catch(i){if(!(i instanceof m))throw console.log(i.stack),i;this.notifyListeners(i),this.recover(i)}if(this._input.LA(1)===n.EOF&&(this._hitEOF=!0),this._type===n.INVALID_TYPE&&(this._type=o),this._type===u.SKIP){r=!0;break}if(this._type!==u.MORE)break}if(!r)return null===this._token&&this.emit(),this._token}}finally{this._input.release(h)}},u.prototype.skip=function(){this._type=u.SKIP},u.prototype.more=function(){this._type=u.MORE},u.prototype.mode=function(h){this._mode=h},u.prototype.pushMode=function(h){this._interp.debug&&console.log("pushMode "+h),this._modeStack.push(this._mode),this.mode(h)},u.prototype.popMode=function(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode},Object.defineProperty(u.prototype,"inputStream",{get:function(){return this._input},set:function(h){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=h,this._tokenFactorySourcePair=[this,this._input]}}),Object.defineProperty(u.prototype,"sourceName",{get:function(){return this._input.sourceName}}),u.prototype.emitToken=function(h){this._token=h},u.prototype.emit=function(){var h=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(h),h},u.prototype.emitEOF=function(){var o=this._factory.create(this._tokenFactorySourcePair,n.EOF,null,n.DEFAULT_CHANNEL,this._input.index,this._input.index-1,this.line,this.column);return this.emitToken(o),o},Object.defineProperty(u.prototype,"type",{get:function(){return this.type},set:function(h){this._type=h}}),Object.defineProperty(u.prototype,"line",{get:function(){return this._interp.line},set:function(h){this._interp.line=h}}),Object.defineProperty(u.prototype,"column",{get:function(){return this._interp.column},set:function(h){this._interp.column=h}}),u.prototype.getCharIndex=function(){return this._input.index},Object.defineProperty(u.prototype,"text",{get:function(){return null!==this._text?this._text:this._interp.getText(this._input)},set:function(h){this._text=h}}),u.prototype.getAllTokens=function(){for(var h=[],r=this.nextToken();r.type!==n.EOF;)h.push(r),r=this.nextToken();return h},u.prototype.notifyListeners=function(h){var i=this._input.getText(this._tokenStartCharIndex,this._input.index),c="token recognition error at: '"+this.getErrorDisplay(i)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,c,h)},u.prototype.getErrorDisplay=function(h){for(var r=[],o=0;o":"\n"===h?"\\n":"\t"===h?"\\t":"\r"===h?"\\r":h},u.prototype.getCharErrorDisplay=function(h){return"'"+this.getErrorDisplayForChar(h)+"'"},u.prototype.recover=function(h){this._input.LA(1)!==n.EOF&&(h instanceof s?this._interp.consume(this._input):this._input.consume())},W.Lexer=u},4541:(ye,W,p)=>{var n=p(9696).Token,f=p(7774).ParseTreeListener,_=p(8646).c,m=p(6863).t,s=p(9535).ATNDeserializer,d=p(6557).W,u=p(7774).TerminalNode,h=p(7774).ErrorNode;function r(c){return f.call(this),this.parser=c,this}function o(c){return _.call(this),this._input=null,this._errHandler=new m,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(c),this}(r.prototype=Object.create(f.prototype)).constructor=r,r.prototype.enterEveryRule=function(c){console.log("enter "+this.parser.ruleNames[c.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},r.prototype.visitTerminal=function(c){console.log("consume "+c.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])},r.prototype.exitEveryRule=function(c){console.log("exit "+this.parser.ruleNames[c.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},(o.prototype=Object.create(_.prototype)).contructor=o,o.bypassAltsAtnCache={},o.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()},o.prototype.match=function(c){var l=this.getCurrentToken();return l.type===c?(this._errHandler.reportMatch(this),this.consume()):(l=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===l.tokenIndex&&this._ctx.addErrorNode(l)),l},o.prototype.matchWildcard=function(){var c=this.getCurrentToken();return c.type>0?(this._errHandler.reportMatch(this),this.consume()):(c=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===c.tokenIndex&&this._ctx.addErrorNode(c)),c},o.prototype.getParseListeners=function(){return this._parseListeners||[]},o.prototype.addParseListener=function(c){if(null===c)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(c)},o.prototype.removeParseListener=function(c){if(null!==this._parseListeners){var l=this._parseListeners.indexOf(c);l>=0&&this._parseListeners.splice(l,1),0===this._parseListeners.length&&(this._parseListeners=null)}},o.prototype.removeParseListeners=function(){this._parseListeners=null},o.prototype.triggerEnterRuleEvent=function(){if(null!==this._parseListeners){var c=this._ctx;this._parseListeners.map(function(l){l.enterEveryRule(c),c.enterRule(l)})}},o.prototype.triggerExitRuleEvent=function(){if(null!==this._parseListeners){var c=this._ctx;this._parseListeners.slice(0).reverse().map(function(l){c.exitRule(l),l.exitEveryRule(c)})}},o.prototype.getTokenFactory=function(){return this._input.tokenSource._factory},o.prototype.setTokenFactory=function(c){this._input.tokenSource._factory=c},o.prototype.getATNWithBypassAlts=function(){var c=this.getSerializedATN();if(null===c)throw"The current parser does not support an ATN with bypass alternatives.";var l=this.bypassAltsAtnCache[c];if(null===l){var g=new d;g.generateRuleBypassTransitions=!0,l=new s(g).deserialize(c),this.bypassAltsAtnCache[c]=l}return l};var i=p(8123).Lexer;o.prototype.compileParseTreePattern=function(c,l,g){if(null===(g=g||null)&&null!==this.getTokenStream()){var b=this.getTokenStream().tokenSource;b instanceof i&&(g=b)}if(null===g)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(g,this).compile(c,l)},o.prototype.getInputStream=function(){return this.getTokenStream()},o.prototype.setInputStream=function(c){this.setTokenStream(c)},o.prototype.getTokenStream=function(){return this._input},o.prototype.setTokenStream=function(c){this._input=null,this.reset(),this._input=c},o.prototype.getCurrentToken=function(){return this._input.LT(1)},o.prototype.notifyErrorListeners=function(c,l,g){g=g||null,null===(l=l||null)&&(l=this.getCurrentToken()),this._syntaxErrors+=1;var b=l.line,y=l.column;this.getErrorListenerDispatch().syntaxError(this,l,b,y,c,g)},o.prototype.consume=function(){var c=this.getCurrentToken();c.type!==n.EOF&&this.getInputStream().consume();var g,l=null!==this._parseListeners&&this._parseListeners.length>0;return(this.buildParseTrees||l)&&((g=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(c):this._ctx.addTokenNode(c)).invokingState=this.state,l&&this._parseListeners.map(function(b){g instanceof h||void 0!==g.isErrorNode&&g.isErrorNode()?b.visitErrorNode(g):g instanceof u&&b.visitTerminal(g)})),c},o.prototype.addContextToParseTree=function(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)},o.prototype.enterRule=function(c,l,g){this.state=l,this._ctx=c,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),null!==this._parseListeners&&this.triggerEnterRuleEvent()},o.prototype.exitRule=function(){this._ctx.stop=this._input.LT(-1),null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx},o.prototype.enterOuterAlt=function(c,l){c.setAltNumber(l),this.buildParseTrees&&this._ctx!==c&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(c)),this._ctx=c},o.prototype.getPrecedence=function(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]},o.prototype.enterRecursionRule=function(c,l,g,b){this.state=l,this._precedenceStack.push(b),this._ctx=c,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()},o.prototype.pushNewRecursionContext=function(c,l,g){var b=this._ctx;b.parentCtx=c,b.invokingState=l,b.stop=this._input.LT(-1),this._ctx=c,this._ctx.start=b.start,this.buildParseTrees&&this._ctx.addChild(b),null!==this._parseListeners&&this.triggerEnterRuleEvent()},o.prototype.unrollRecursionContexts=function(c){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var l=this._ctx;if(null!==this._parseListeners)for(;this._ctx!==c;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=c;l.parentCtx=c,this.buildParseTrees&&null!==c&&c.addChild(l)},o.prototype.getInvokingContext=function(c){for(var l=this._ctx;null!==l;){if(l.ruleIndex===c)return l;l=l.parentCtx}return null},o.prototype.precpred=function(c,l){return l>=this._precedenceStack[this._precedenceStack.length-1]},o.prototype.inContext=function(c){return!1},o.prototype.isExpectedToken=function(c){var l=this._interp.atn,g=this._ctx,y=l.nextTokens(l.states[this.state]);if(y.contains(c))return!0;if(!y.contains(n.EPSILON))return!1;for(;null!==g&&g.invokingState>=0&&y.contains(n.EPSILON);){if((y=l.nextTokens(l.states[g.invokingState].transitions[0].followState)).contains(c))return!0;g=g.parentCtx}return!(!y.contains(n.EPSILON)||c!==n.EOF)},o.prototype.getExpectedTokens=function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)},o.prototype.getExpectedTokensWithinCurrentRule=function(){var c=this._interp.atn;return c.nextTokens(c.states[this.state])},o.prototype.getRuleIndex=function(c){var l=this.getRuleIndexMap()[c];return null!==l?l:-1},o.prototype.getRuleInvocationStack=function(c){null===(c=c||null)&&(c=this._ctx);for(var l=[];null!==c;){var g=c.ruleIndex;l.push(g<0?"n/a":this.ruleNames[g]),c=c.parentCtx}return l},o.prototype.getDFAStrings=function(){return this._interp.decisionToDFA.toString()},o.prototype.dumpDFA=function(){for(var c=!1,l=0;l0&&(c&&console.log(),this.printer.println("Decision "+g.decision+":"),this.printer.print(g.toString(this.literalNames,this.symbolicNames)),c=!0)}},o.prototype.getSourceName=function(){return this._input.sourceName},o.prototype.setTrace=function(c){c?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new r(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)},W.Parser=o},7335:(ye,W,p)=>{var n=p(3955).r,f=p(7774),_=f.INVALID_INTERVAL,m=f.TerminalNode,s=f.TerminalNodeImpl,d=f.ErrorNodeImpl,u=p(3491).Interval;function h(o,i){n.call(this,o=o||null,i=i||null),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}function r(o,i,c){return h.call(o,i),this.ruleIndex=c,this}(h.prototype=Object.create(n.prototype)).constructor=h,h.prototype.copyFrom=function(o){this.parentCtx=o.parentCtx,this.invokingState=o.invokingState,this.children=null,this.start=o.start,this.stop=o.stop,o.children&&(this.children=[],o.children.map(function(i){i instanceof d&&(this.children.push(i),i.parentCtx=this)},this))},h.prototype.enterRule=function(o){},h.prototype.exitRule=function(o){},h.prototype.addChild=function(o){return null===this.children&&(this.children=[]),this.children.push(o),o},h.prototype.removeLastChild=function(){null!==this.children&&this.children.pop()},h.prototype.addTokenNode=function(o){var i=new s(o);return this.addChild(i),i.parentCtx=this,i},h.prototype.addErrorNode=function(o){var i=new d(o);return this.addChild(i),i.parentCtx=this,i},h.prototype.getChild=function(o,i){if(null===this.children||o<0||o>=this.children.length)return null;if(null===(i=i||null))return this.children[o];for(var c=0;c=this.children.length)return null;for(var c=0;c{var n=p(3955).r,f=p(3126).Hash;function _(y){this.cachedHashCode=y}function m(){return this.cache={},this}function s(y,S){var I=0;if(null!==y){var R=new f;R.update(y,S),I=R.finish()}_.call(this,I),this.parentCtx=y,this.returnState=S}function d(){return s.call(this,null,_.EMPTY_RETURN_STATE),this}function u(y,S){var I=new f;I.update(y,S);var R=I.finish();return _.call(this,R),this.parents=y,this.returnStates=S,this}_.EMPTY=null,_.EMPTY_RETURN_STATE=2147483647,_.id=_.globalNodeCount=1,_.prototype.isEmpty=function(){return this===_.EMPTY},_.prototype.hasEmptyPath=function(){return this.getReturnState(this.length-1)===_.EMPTY_RETURN_STATE},_.prototype.hashCode=function(){return this.cachedHashCode},_.prototype.updateHashCode=function(y){y.update(this.cachedHashCode)},m.prototype.add=function(y){if(y===_.EMPTY)return _.EMPTY;var S=this.cache[y]||null;return null!==S?S:(this.cache[y]=y,y)},m.prototype.get=function(y){return this.cache[y]||null},Object.defineProperty(m.prototype,"length",{get:function(){return this.cache.length}}),(s.prototype=Object.create(_.prototype)).contructor=s,s.create=function(y,S){return S===_.EMPTY_RETURN_STATE&&null===y?_.EMPTY:new s(y,S)},Object.defineProperty(s.prototype,"length",{get:function(){return 1}}),s.prototype.getParent=function(y){return this.parentCtx},s.prototype.getReturnState=function(y){return this.returnState},s.prototype.equals=function(y){return this===y||y instanceof s&&this.hashCode()===y.hashCode()&&this.returnState===y.returnState&&(null==this.parentCtx?null==y.parentCtx:this.parentCtx.equals(y.parentCtx))},s.prototype.toString=function(){var y=null===this.parentCtx?"":this.parentCtx.toString();return 0===y.length?this.returnState===_.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+y},(d.prototype=Object.create(s.prototype)).constructor=d,d.prototype.isEmpty=function(){return!0},d.prototype.getParent=function(y){return null},d.prototype.getReturnState=function(y){return this.returnState},d.prototype.equals=function(y){return this===y},d.prototype.toString=function(){return"$"},_.EMPTY=new d,(u.prototype=Object.create(_.prototype)).constructor=u,u.prototype.isEmpty=function(){return this.returnStates[0]===_.EMPTY_RETURN_STATE},Object.defineProperty(u.prototype,"length",{get:function(){return this.returnStates.length}}),u.prototype.getParent=function(y){return this.parents[y]},u.prototype.getReturnState=function(y){return this.returnStates[y]},u.prototype.equals=function(y){return this===y||y instanceof u&&this.hashCode()===y.hashCode()&&this.returnStates===y.returnStates&&this.parents===y.parents},u.prototype.toString=function(){if(this.isEmpty())return"[]";for(var y="[",S=0;S0&&(y+=", "),this.returnStates[S]!==_.EMPTY_RETURN_STATE?(y+=this.returnStates[S],null!==this.parents[S]?y=y+" "+this.parents[S]:y+="null"):y+="$";return y+"]"},W.merge=function r(y,S,I,R){if(y===S)return y;if(y instanceof s&&S instanceof s)return function(y,S,I,R){if(null!==R){var M=R.get(y,S);if(null!==M||null!==(M=R.get(S,y)))return M}var A=function(y,S,I){if(I){if(y===_.EMPTY||S===_.EMPTY)return _.EMPTY}else{if(y===_.EMPTY&&S===_.EMPTY)return _.EMPTY;if(y===_.EMPTY)return new u([S.parentCtx,null],[S.returnState,_.EMPTY_RETURN_STATE]);if(S===_.EMPTY)return new u([y.parentCtx,null],[y.returnState,_.EMPTY_RETURN_STATE])}return null}(y,S,I);if(null!==A)return null!==R&&R.set(y,S,A),A;if(y.returnState===S.returnState){var D=r(y.parentCtx,S.parentCtx,I,R);if(D===y.parentCtx)return y;if(D===S.parentCtx)return S;var w=s.create(D,y.returnState);return null!==R&&R.set(y,S,w),w}var x=null;if((y===S||null!==y.parentCtx&&y.parentCtx===S.parentCtx)&&(x=y.parentCtx),null!==x){var L=[y.returnState,S.returnState];y.returnState>S.returnState&&(L[0]=S.returnState,L[1]=y.returnState);var C=new u(F=[x,x],L);return null!==R&&R.set(y,S,C),C}L=[y.returnState,S.returnState];var F=[y.parentCtx,S.parentCtx];y.returnState>S.returnState&&(L[0]=S.returnState,L[1]=y.returnState,F=[S.parentCtx,y.parentCtx]);var re=new u(F,L);return null!==R&&R.set(y,S,re),re}(y,S,I,R);if(I){if(y instanceof d)return y;if(S instanceof d)return S}return y instanceof s&&(y=new u([y.getParent()],[y.returnState])),S instanceof s&&(S=new u([S.getParent()],[S.returnState])),function(y,S,I,R){if(null!==R){var M=R.get(y,S);if(null!==M||null!==(M=R.get(S,y)))return M}for(var A=0,D=0,w=0,x=[],C=[];A{var n=p(9696).Token,f=p(5490).s,_=p(5490).N;function m(){return this._listeners=[f.INSTANCE],this._interp=null,this._stateNumber=-1,this}m.tokenTypeMapCache={},m.ruleIndexMapCache={},m.prototype.checkVersion=function(s){"4.7.2"!==s&&console.log("ANTLR runtime and generated code versions disagree: 4.7.2!="+s)},m.prototype.addErrorListener=function(s){this._listeners.push(s)},m.prototype.removeErrorListeners=function(){this._listeners=[]},m.prototype.getTokenTypeMap=function(){var s=this.getTokenNames();if(null===s)throw"The current recognizer does not provide a list of token names.";var d=this.tokenTypeMapCache[s];return void 0===d&&((d=s.reduce(function(u,h,r){u[h]=r})).EOF=n.EOF,this.tokenTypeMapCache[s]=d),d},m.prototype.getRuleIndexMap=function(){var s=this.ruleNames;if(null===s)throw"The current recognizer does not provide a list of rule names.";var d=this.ruleIndexMapCache[s];return void 0===d&&(d=s.reduce(function(u,h,r){u[h]=r}),this.ruleIndexMapCache[s]=d),d},m.prototype.getTokenType=function(s){var d=this.getTokenTypeMap()[s];return void 0!==d?d:n.INVALID_TYPE},m.prototype.getErrorHeader=function(s){return"line "+s.getOffendingToken().line+":"+s.getOffendingToken().column},m.prototype.getTokenErrorDisplay=function(s){if(null===s)return"";var d=s.text;return null===d&&(d=s.type===n.EOF?"":"<"+s.type+">"),"'"+(d=d.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"))+"'"},m.prototype.getErrorListenerDispatch=function(){return new _(this._listeners)},m.prototype.sempred=function(s,d,u){return!0},m.prototype.precpred=function(s,d){return!0},Object.defineProperty(m.prototype,"state",{get:function(){return this._stateNumber},set:function(s){this._stateNumber=s}}),W.c=m},3955:(ye,W,p)=>{var n=p(7774).RuleNode,f=p(7774).INVALID_INTERVAL,_=p(4562).INVALID_ALT_NUMBER;function m(d,u){return n.call(this),this.parentCtx=d||null,this.invokingState=u||-1,this}(m.prototype=Object.create(n.prototype)).constructor=m,m.prototype.depth=function(){for(var d=0,u=this;null!==u;)u=u.parentCtx,d+=1;return d},m.prototype.isEmpty=function(){return-1===this.invokingState},m.prototype.getSourceInterval=function(){return f},m.prototype.getRuleContext=function(){return this},m.prototype.getPayload=function(){return this},m.prototype.getText=function(){return 0===this.getChildCount()?"":this.children.map(function(d){return d.getText()}).join("")},m.prototype.getAltNumber=function(){return _},m.prototype.setAltNumber=function(d){},m.prototype.getChild=function(d){return null},m.prototype.getChildCount=function(){return 0},m.prototype.accept=function(d){return d.visitChildren(this)},W.r=m;var s=p(8245).Trees;m.prototype.toStringTree=function(d,u){return s.toStringTree(this,d,u)},m.prototype.toString=function(d,u){d=d||null,u=u||null;for(var h=this,r="[";null!==h&&h!==u;){if(null===d)h.isEmpty()||(r+=h.invokingState);else{var o=h.ruleIndex;r+=o>=0&&o{function p(){return this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null,this}function n(f,_,m,s,d){return p.call(this),this.source=void 0!==f?f:n.EMPTY_SOURCE,this.type=void 0!==_?_:null,this.channel=void 0!==m?m:p.DEFAULT_CHANNEL,this.start=void 0!==s?s:-1,this.stop=void 0!==d?d:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=f[0].line,this.column=f[0].column):this.column=-1,this}p.INVALID_TYPE=0,p.EPSILON=-2,p.MIN_USER_TOKEN_TYPE=1,p.EOF=-1,p.DEFAULT_CHANNEL=0,p.HIDDEN_CHANNEL=1,Object.defineProperty(p.prototype,"text",{get:function(){return this._text},set:function(f){this._text=f}}),p.prototype.getTokenSource=function(){return this.source[0]},p.prototype.getInputStream=function(){return this.source[1]},(n.prototype=Object.create(p.prototype)).constructor=n,n.EMPTY_SOURCE=[null,null],n.prototype.clone=function(){var f=new n(this.source,this.type,this.channel,this.start,this.stop);return f.tokenIndex=this.tokenIndex,f.line=this.line,f.column=this.column,f.text=this.text,f},Object.defineProperty(n.prototype,"text",{get:function(){if(null!==this._text)return this._text;var f=this.getInputStream();if(null===f)return null;var _=f.size;return this.start<_&&this.stop<_?f.getText(this.start,this.stop):""},set:function(f){this._text=f}}),n.prototype.toString=function(){var f=this.text;return f=null!==f?f.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+f+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"},W.Token=p,W.CommonToken=n},3126:(ye,W)=>{function p(l){return"["+l.join(", ")+"]"}function n(l,g){return l.equals(g)}function f(l){return l.hashCode()}function _(l,g){return this.data={},this.hashFunction=l||f,this.equalsFunction=g||n,this}function m(){return this.data=[],this}function s(l,g){return this.data={},this.hashFunction=l||f,this.equalsFunction=g||n,this}function d(){return this.data={},this}function u(){return this}function h(){return this.count=0,this.hash=0,this}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){var l,g,b,y,S,R,A,D,w=this.toString();for(g=w.length-(l=3&w.length),b=String.prototype.seed,S=3432918353,R=461845907,D=0;D>>16)*S&65535)<<16)&4294967295)<<15|A>>>17))*R+(((A>>>16)*R&65535)<<16)&4294967295)<<13|b>>>19))+((5*(b>>>16)&65535)<<16)&4294967295))+((58964+(y>>>16)&65535)<<16);switch(A=0,l){case 3:A^=(255&w.charCodeAt(D+2))<<16;case 2:A^=(255&w.charCodeAt(D+1))<<8;case 1:b^=A=(65535&(A=(A=(65535&(A^=255&w.charCodeAt(D)))*S+(((A>>>16)*S&65535)<<16)&4294967295)<<15|A>>>17))*R+(((A>>>16)*R&65535)<<16)&4294967295}return b^=w.length,b=2246822507*(65535&(b^=b>>>16))+((2246822507*(b>>>16)&65535)<<16)&4294967295,b=3266489909*(65535&(b^=b>>>13))+((3266489909*(b>>>16)&65535)<<16)&4294967295,(b^=b>>>16)>>>0},Object.defineProperty(_.prototype,"length",{get:function(){var l=0;for(var g in this.data)0===g.indexOf("hash_")&&(l+=this.data[g].length);return l}}),_.prototype.add=function(l){var b="hash_"+this.hashFunction(l);if(b in this.data){for(var y=this.data[b],S=0;S>>17,b*=461845907,this.count=this.count+1;var y=this.hash^b;this.hash=y=5*(y=y<<13|y>>>19)+3864292196}}},h.prototype.finish=function(){var l=this.hash^4*this.count;return l^=l>>>16,l*=2246822507,l^=l>>>13,(l*=3266489909)^l>>>16},u.prototype.get=function(l,g){var b=this[l]||null;return null===b?null:b[g]||null},u.prototype.set=function(l,g,b){var y=this[l]||null;null===y&&(this[l]=y={}),y[g]=b},W.Hash=h,W.Set=_,W.Map=s,W.BitSet=m,W.AltDict=d,W.DoubleDict=u,W.hashStuff=function(){var l=new h;return l.update.apply(arguments),l.finish()},W.escapeWhitespace=function(l,g){return l=l.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),g&&(l=l.replace(/ /g,"\xb7")),l},W.arrayToString=p,W.titleCase=function(l){return l.replace(/\w\S*/g,function(g){return g.charAt(0).toUpperCase()+g.substr(1)})},W.equalArrays=function(l,g){if(!Array.isArray(l)||!Array.isArray(g))return!1;if(l==g)return!0;if(l.length!=g.length)return!1;for(var b=0;b{var n=p(640).u,f=p(3491).V;function _(s,d){return this.grammarType=s,this.maxTokenType=d,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[],this}_.prototype.nextTokensInContext=function(s,d){return new n(this).LOOK(s,null,d)},_.prototype.nextTokensNoContext=function(s){return null!==s.nextTokenWithinRule||(s.nextTokenWithinRule=this.nextTokensInContext(s,null),s.nextTokenWithinRule.readOnly=!0),s.nextTokenWithinRule},_.prototype.nextTokens=function(s,d){return void 0===d?this.nextTokensNoContext(s):this.nextTokensInContext(s,d)},_.prototype.addState=function(s){null!==s&&(s.atn=this,s.stateNumber=this.states.length),this.states.push(s)},_.prototype.removeState=function(s){this.states[s.stateNumber]=null},_.prototype.defineDecisionState=function(s){return this.decisionToState.push(s),s.decision=this.decisionToState.length-1,s.decision},_.prototype.getDecisionState=function(s){return 0===this.decisionToState.length?null:this.decisionToState[s]};var m=p(9696).Token;_.prototype.getExpectedTokens=function(s,d){if(s<0||s>=this.states.length)throw"Invalid state number.";var h=this.nextTokens(this.states[s]);if(!h.contains(m.EPSILON))return h;var r=new f;for(r.addSet(h),r.removeOne(m.EPSILON);null!==d&&d.invokingState>=0&&h.contains(m.EPSILON);)h=this.nextTokens(this.states[d.invokingState].transitions[0].followState),r.addSet(h),r.removeOne(m.EPSILON),d=d.parentCtx;return h.contains(m.EPSILON)&&r.addOne(m.EOF),r},_.INVALID_ALT_NUMBER=0,W.ATN=_},6980:(ye,W,p)=>{var n=p(7069).DecisionState,f=p(7884).dP,_=p(3126).Hash;function m(u,h){if(null===u){var r={state:null,alt:null,context:null,semanticContext:null};return h&&(r.reachesIntoOuterContext=0),r}var o={};return o.state=u.state||null,o.alt=void 0===u.alt?null:u.alt,o.context=u.context||null,o.semanticContext=u.semanticContext||null,h&&(o.reachesIntoOuterContext=u.reachesIntoOuterContext||0,o.precedenceFilterSuppressed=u.precedenceFilterSuppressed||!1),o}function s(u,h){return this.checkContext(u,h),u=m(u),h=m(h,!0),this.state=null!==u.state?u.state:h.state,this.alt=null!==u.alt?u.alt:h.alt,this.context=null!==u.context?u.context:h.context,this.semanticContext=null!==u.semanticContext?u.semanticContext:null!==h.semanticContext?h.semanticContext:f.NONE,this.reachesIntoOuterContext=h.reachesIntoOuterContext,this.precedenceFilterSuppressed=h.precedenceFilterSuppressed,this}function d(u,h){return s.call(this,u,h),this.lexerActionExecutor=u.lexerActionExecutor||(null!==h?h.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==h&&this.checkNonGreedyDecision(h,this.state),this}s.prototype.checkContext=function(u,h){null==u.context&&(null===h||null==h.context)&&(this.context=null)},s.prototype.hashCode=function(){var u=new _;return this.updateHashCode(u),u.finish()},s.prototype.updateHashCode=function(u){u.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)},s.prototype.equals=function(u){return this===u||u instanceof s&&this.state.stateNumber===u.state.stateNumber&&this.alt===u.alt&&(null===this.context?null===u.context:this.context.equals(u.context))&&this.semanticContext.equals(u.semanticContext)&&this.precedenceFilterSuppressed===u.precedenceFilterSuppressed},s.prototype.hashCodeForConfigSet=function(){var u=new _;return u.update(this.state.stateNumber,this.alt,this.semanticContext),u.finish()},s.prototype.equalsForConfigSet=function(u){return this===u||u instanceof s&&this.state.stateNumber===u.state.stateNumber&&this.alt===u.alt&&this.semanticContext.equals(u.semanticContext)},s.prototype.toString=function(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==f.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"},(d.prototype=Object.create(s.prototype)).constructor=d,d.prototype.updateHashCode=function(u){u.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)},d.prototype.equals=function(u){return this===u||u instanceof d&&this.passedThroughNonGreedyDecision==u.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(u.lexerActionExecutor):!u.lexerActionExecutor)&&s.prototype.equals.call(this,u)},d.prototype.hashCodeForConfigSet=d.prototype.hashCode,d.prototype.equalsForConfigSet=d.prototype.equals,d.prototype.checkNonGreedyDecision=function(u,h){return u.passedThroughNonGreedyDecision||h instanceof n&&h.nonGreedy},W.m=s,W.P=d},7578:(ye,W,p)=>{var n=p(4562).ATN,f=p(3126),_=f.Hash,m=f.Set,s=p(7884).dP,d=p(8267).merge;function u(i){return i.hashCodeForConfigSet()}function h(i,c){return i===c||null!==i&&null!==c&&i.equalsForConfigSet(c)}function r(i){return this.configLookup=new m(u,h),this.fullCtx=void 0===i||i,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1,this}function o(){return r.call(this),this.configLookup=new m,this}r.prototype.add=function(i,c){if(void 0===c&&(c=null),this.readOnly)throw"This set is readonly";i.semanticContext!==s.NONE&&(this.hasSemanticContext=!0),i.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var l=this.configLookup.add(i);if(l===i)return this.cachedHashCode=-1,this.configs.push(i),!0;var b=d(l.context,i.context,!this.fullCtx,c);return l.reachesIntoOuterContext=Math.max(l.reachesIntoOuterContext,i.reachesIntoOuterContext),i.precedenceFilterSuppressed&&(l.precedenceFilterSuppressed=!0),l.context=b,!0},r.prototype.getStates=function(){for(var i=new m,c=0;c{function p(n){return void 0===n&&(n=null),this.readOnly=!1,this.verifyATN=null===n||n.verifyATN,this.generateRuleBypassTransitions=null!==n&&n.generateRuleBypassTransitions,this}(p.defaultOptions=new p).readOnly=!0,W.W=p},9535:(ye,W,p)=>{var n=p(9696).Token,f=p(4562).ATN,_=p(4177).n,m=p(7069),s=m.ATNState,d=m.BasicState,u=m.DecisionState,h=m.BlockStartState,r=m.BlockEndState,o=m.LoopEndState,i=m.RuleStartState,c=m.RuleStopState,l=m.TokensStartState,g=m.PlusLoopbackState,b=m.StarLoopbackState,y=m.StarLoopEntryState,S=m.PlusBlockStartState,I=m.StarBlockStartState,R=m.BasicBlockStartState,M=p(8792),A=M.Transition,D=M.AtomTransition,w=M.SetTransition,x=M.NotSetTransition,C=M.RuleTransition,L=M.RangeTransition,F=M.ActionTransition,re=M.EpsilonTransition,Y=M.WildcardTransition,X=M.PredicateTransition,ee=M.PrecedencePredicateTransition,$=p(3491).V,ie=(p(3491),p(6557).W),ne=p(3805),ae=ne.LexerActionType,xe=ne.LexerSkipAction,Ie=ne.LexerChannelAction,We=ne.LexerCustomAction,Xe=ne.LexerMoreAction,ft=ne.LexerTypeAction,Pe=ne.LexerPushModeAction,et=ne.LexerPopModeAction,at=ne.LexerModeAction,vt="59627784-3BE5-417A-B9EB-8131A7286089",yt=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",vt];function At(Ee,fe){var H=[];return H[Ee-1]=fe,H.map(function(T){return fe})}function Tt(Ee){return null==Ee&&(Ee=ie.defaultOptions),this.deserializationOptions=Ee,this.stateFactories=null,this.actionFactories=null,this}Tt.prototype.isFeatureSupported=function(Ee,fe){var H=yt.indexOf(Ee);return!(H<0)&&yt.indexOf(fe)>=H},Tt.prototype.deserialize=function(Ee){this.reset(Ee),this.checkVersion(),this.checkUUID();var fe=this.readATN();this.readStates(fe),this.readRules(fe),this.readModes(fe);var H=[];return this.readSets(fe,H,this.readInt.bind(this)),this.isFeatureSupported(vt,this.uuid)&&this.readSets(fe,H,this.readInt32.bind(this)),this.readEdges(fe,H),this.readDecisions(fe),this.readLexerActions(fe),this.markPrecedenceDecisions(fe),this.verifyATN(fe),this.deserializationOptions.generateRuleBypassTransitions&&fe.grammarType===_.PARSER&&(this.generateRuleBypassTransitions(fe),this.verifyATN(fe)),fe},Tt.prototype.reset=function(Ee){var H=Ee.split("").map(function(T){var U=T.charCodeAt(0);return U>1?U-2:U+65533});H[0]=Ee.charCodeAt(0),this.data=H,this.pos=0},Tt.prototype.checkVersion=function(){var Ee=this.readInt();if(3!==Ee)throw"Could not deserialize ATN with version "+Ee+" (expected 3)."},Tt.prototype.checkUUID=function(){var Ee=this.readUUID();if(yt.indexOf(Ee)<0)throw"59627784-3BE5-417A-B9EB-8131A7286089";this.uuid=Ee},Tt.prototype.readATN=function(){var Ee=this.readInt(),fe=this.readInt();return new f(Ee,fe)},Tt.prototype.readStates=function(Ee){for(var fe,H,T,U=[],Z=[],_e=this.readInt(),Be=0;Be<_e;Be++){var $e=this.readInt();if($e!==s.INVALID_TYPE){var st=this.readInt();65535===st&&(st=-1);var ut=this.stateFactory($e,st);if($e===s.LOOP_END){var St=this.readInt();U.push([ut,St])}else if(ut instanceof h){var Xt=this.readInt();Z.push([ut,Xt])}Ee.addState(ut)}else Ee.addState(null)}for(fe=0;fe0;)U.addTransition(ut.transitions[St-1]),ut.transitions=ut.transitions.slice(-1);Ee.ruleToStartState[fe].addTransition(new re(U)),Z.addTransition(new re(Be));var Xt=new d;Ee.addState(Xt),Xt.addTransition(new D(Z,Ee.ruleToTokenType[fe])),U.addTransition(new re(Xt))},Tt.prototype.stateIsEndStateFor=function(Ee,fe){if(Ee.ruleIndex!==fe||!(Ee instanceof y))return null;var H=Ee.transitions[Ee.transitions.length-1].target;return H instanceof o&&H.epsilonOnlyTransitions&&H.transitions[0].target instanceof c?Ee:null},Tt.prototype.markPrecedenceDecisions=function(Ee){for(var fe=0;fe=0:H.transitions.length<=1||H instanceof c)}},Tt.prototype.checkCondition=function(Ee,fe){if(!Ee)throw null==fe&&(fe="IllegalState"),fe},Tt.prototype.readInt=function(){return this.data[this.pos++]},Tt.prototype.readInt32=function(){return this.readInt()|this.readInt()<<16},Tt.prototype.readLong=function(){return 4294967295&this.readInt32()|this.readInt32()<<32};var Et=function(){for(var Ee=[],fe=0;fe<256;fe++)Ee[fe]=(fe+256).toString(16).substr(1).toUpperCase();return Ee}();Tt.prototype.readUUID=function(){for(var Ee=[],fe=7;fe>=0;fe--){var H=this.readInt();Ee[2*fe+1]=255&H,Ee[2*fe]=H>>8&255}return Et[Ee[0]]+Et[Ee[1]]+Et[Ee[2]]+Et[Ee[3]]+"-"+Et[Ee[4]]+Et[Ee[5]]+"-"+Et[Ee[6]]+Et[Ee[7]]+"-"+Et[Ee[8]]+Et[Ee[9]]+"-"+Et[Ee[10]]+Et[Ee[11]]+Et[Ee[12]]+Et[Ee[13]]+Et[Ee[14]]+Et[Ee[15]]},Tt.prototype.edgeFactory=function(Ee,fe,H,T,U,Z,_e,Be){var $e=Ee.states[T];switch(fe){case A.EPSILON:return new re($e);case A.RANGE:return new L($e,0!==_e?n.EOF:U,Z);case A.RULE:return new C(Ee.states[U],Z,_e,$e);case A.PREDICATE:return new X($e,U,Z,0!==_e);case A.PRECEDENCE:return new ee($e,U);case A.ATOM:return new D($e,0!==_e?n.EOF:U);case A.ACTION:return new F($e,U,Z,0!==_e);case A.SET:return new w($e,Be[U]);case A.NOT_SET:return new x($e,Be[U]);case A.WILDCARD:return new Y($e);default:throw"The specified transition type: "+fe+" is not valid."}},Tt.prototype.stateFactory=function(Ee,fe){if(null===this.stateFactories){var H=[];H[s.INVALID_TYPE]=null,H[s.BASIC]=function(){return new d},H[s.RULE_START]=function(){return new i},H[s.BLOCK_START]=function(){return new R},H[s.PLUS_BLOCK_START]=function(){return new S},H[s.STAR_BLOCK_START]=function(){return new I},H[s.TOKEN_START]=function(){return new l},H[s.RULE_STOP]=function(){return new c},H[s.BLOCK_END]=function(){return new r},H[s.STAR_LOOP_BACK]=function(){return new b},H[s.STAR_LOOP_ENTRY]=function(){return new y},H[s.PLUS_LOOP_BACK]=function(){return new g},H[s.LOOP_END]=function(){return new o},this.stateFactories=H}if(Ee>this.stateFactories.length||null===this.stateFactories[Ee])throw"The specified state type "+Ee+" is not valid.";var T=this.stateFactories[Ee]();if(null!==T)return T.ruleIndex=fe,T},Tt.prototype.lexerActionFactory=function(Ee,fe,H){if(null===this.actionFactories){var T=[];T[ae.CHANNEL]=function(U,Z){return new Ie(U)},T[ae.CUSTOM]=function(U,Z){return new We(U,Z)},T[ae.MODE]=function(U,Z){return new at(U)},T[ae.MORE]=function(U,Z){return Xe.INSTANCE},T[ae.POP_MODE]=function(U,Z){return et.INSTANCE},T[ae.PUSH_MODE]=function(U,Z){return new Pe(U)},T[ae.SKIP]=function(U,Z){return xe.INSTANCE},T[ae.TYPE]=function(U,Z){return new ft(U)},this.actionFactories=T}if(Ee>this.actionFactories.length||null===this.actionFactories[Ee])throw"The specified lexer action type "+Ee+" is not valid.";return this.actionFactories[Ee](fe,H)},W.ATNDeserializer=Tt},6666:(ye,W,p)=>{var n=p(9665).B,f=p(7578).B,_=p(8267).getCachedPredictionContext;function m(s,d){return this.atn=s,this.sharedContextCache=d,this}m.ERROR=new n(2147483647,new f),m.prototype.getCachedContext=function(s){return null===this.sharedContextCache?s:_(s,this.sharedContextCache,{})},W.f=m},7069:(ye,W)=>{function n(){return this.atn=null,this.stateNumber=n.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null,this}function f(){return n.call(this),this.stateType=n.BASIC,this}function _(){return n.call(this),this.decision=-1,this.nonGreedy=!1,this}function m(){return _.call(this),this.endState=null,this}function s(){return m.call(this),this.stateType=n.BLOCK_START,this}function d(){return n.call(this),this.stateType=n.BLOCK_END,this.startState=null,this}function u(){return n.call(this),this.stateType=n.RULE_STOP,this}function h(){return n.call(this),this.stateType=n.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}function r(){return _.call(this),this.stateType=n.PLUS_LOOP_BACK,this}function o(){return m.call(this),this.stateType=n.PLUS_BLOCK_START,this.loopBackState=null,this}function i(){return m.call(this),this.stateType=n.STAR_BLOCK_START,this}function c(){return n.call(this),this.stateType=n.STAR_LOOP_BACK,this}function l(){return _.call(this),this.stateType=n.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}function g(){return n.call(this),this.stateType=n.LOOP_END,this.loopBackState=null,this}function b(){return _.call(this),this.stateType=n.TOKEN_START,this}n.INVALID_TYPE=0,n.BASIC=1,n.RULE_START=2,n.BLOCK_START=3,n.PLUS_BLOCK_START=4,n.STAR_BLOCK_START=5,n.TOKEN_START=6,n.RULE_STOP=7,n.BLOCK_END=8,n.STAR_LOOP_BACK=9,n.STAR_LOOP_ENTRY=10,n.PLUS_LOOP_BACK=11,n.LOOP_END=12,n.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],n.INVALID_STATE_NUMBER=-1,n.prototype.toString=function(){return this.stateNumber},n.prototype.equals=function(y){return y instanceof n&&this.stateNumber===y.stateNumber},n.prototype.isNonGreedyExitState=function(){return!1},n.prototype.addTransition=function(y,S){void 0===S&&(S=-1),0===this.transitions.length?this.epsilonOnlyTransitions=y.isEpsilon:this.epsilonOnlyTransitions!==y.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===S?this.transitions.push(y):this.transitions.splice(S,1,y)},(f.prototype=Object.create(n.prototype)).constructor=f,(_.prototype=Object.create(n.prototype)).constructor=_,(m.prototype=Object.create(_.prototype)).constructor=m,(s.prototype=Object.create(m.prototype)).constructor=s,(d.prototype=Object.create(n.prototype)).constructor=d,(u.prototype=Object.create(n.prototype)).constructor=u,(h.prototype=Object.create(n.prototype)).constructor=h,(r.prototype=Object.create(_.prototype)).constructor=r,(o.prototype=Object.create(m.prototype)).constructor=o,(i.prototype=Object.create(m.prototype)).constructor=i,(c.prototype=Object.create(n.prototype)).constructor=c,(l.prototype=Object.create(_.prototype)).constructor=l,(g.prototype=Object.create(n.prototype)).constructor=g,(b.prototype=Object.create(_.prototype)).constructor=b,W.ATNState=n,W.BasicState=f,W.DecisionState=_,W.BlockStartState=m,W.BlockEndState=d,W.LoopEndState=g,W.RuleStartState=h,W.RuleStopState=u,W.TokensStartState=b,W.PlusLoopbackState=r,W.StarLoopbackState=c,W.StarLoopEntryState=l,W.PlusBlockStartState=o,W.StarBlockStartState=i,W.BasicBlockStartState=s},4177:(ye,W)=>{function p(){}p.LEXER=0,p.PARSER=1,W.n=p},3305:(ye,W,p)=>{var n=p(9696).Token,f=p(8123).Lexer,_=p(4562).ATN,m=p(6666).f,s=p(9665).B,u=(p(7578),p(7578).s),h=p(8267).PredictionContext,r=p(8267).SingletonPredictionContext,o=p(7069).RuleStopState,i=p(6980).P,c=p(8792).Transition,l=p(4859).W,g=p(9329).LexerNoViableAltException;function b(I){I.index=-1,I.line=0,I.column=-1,I.dfaState=null}function y(){return b(this),this}function S(I,R,M,A){return m.call(this,R,A),this.decisionToDFA=M,this.recog=I,this.startIndex=-1,this.line=1,this.column=0,this.mode=f.DEFAULT_MODE,this.prevAccept=new y,this}y.prototype.reset=function(){b(this)},(S.prototype=Object.create(m.prototype)).constructor=S,S.debug=!1,S.dfa_debug=!1,S.MIN_DFA_EDGE=0,S.MAX_DFA_EDGE=127,S.match_calls=0,S.prototype.copyState=function(I){this.column=I.column,this.line=I.line,this.mode=I.mode,this.startIndex=I.startIndex},S.prototype.match=function(I,R){this.match_calls+=1,this.mode=R;var M=I.mark();try{this.startIndex=I.index,this.prevAccept.reset();var A=this.decisionToDFA[R];return null===A.s0?this.matchATN(I):this.execATN(I,A.s0)}finally{I.release(M)}},S.prototype.reset=function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=f.DEFAULT_MODE},S.prototype.matchATN=function(I){var R=this.atn.modeToStartState[this.mode];S.debug&&console.log("matchATN mode "+this.mode+" start: "+R);var M=this.mode,A=this.computeStartState(I,R),D=A.hasSemanticContext;A.hasSemanticContext=!1;var w=this.addDFAState(A);D||(this.decisionToDFA[this.mode].s0=w);var x=this.execATN(I,w);return S.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[M].toLexerString()),x},S.prototype.execATN=function(I,R){S.debug&&console.log("start state closure="+R.configs),R.isAcceptState&&this.captureSimState(this.prevAccept,I,R);for(var M=I.LA(1),A=R;;){S.debug&&console.log("execATN loop starting closure: "+A.configs);var D=this.getExistingTargetState(A,M);if(null===D&&(D=this.computeTargetState(I,A,M)),D===m.ERROR||(M!==n.EOF&&this.consume(I),D.isAcceptState&&(this.captureSimState(this.prevAccept,I,D),M===n.EOF)))break;M=I.LA(1),A=D}return this.failOrAccept(this.prevAccept,I,A.configs,M)},S.prototype.getExistingTargetState=function(I,R){if(null===I.edges||RS.MAX_DFA_EDGE)return null;var M=I.edges[R-S.MIN_DFA_EDGE];return void 0===M&&(M=null),S.debug&&null!==M&&console.log("reuse state "+I.stateNumber+" edge to "+M.stateNumber),M},S.prototype.computeTargetState=function(I,R,M){var A=new u;return this.getReachableConfigSet(I,R.configs,A,M),0===A.items.length?(A.hasSemanticContext||this.addDFAEdge(R,M,m.ERROR),m.ERROR):this.addDFAEdge(R,M,null,A)},S.prototype.failOrAccept=function(I,R,M,A){if(null!==this.prevAccept.dfaState)return this.accept(R,I.dfaState.lexerActionExecutor,this.startIndex,I.index,I.line,I.column),I.dfaState.prediction;if(A===n.EOF&&R.index===this.startIndex)return n.EOF;throw new g(this.recog,R,this.startIndex,M)},S.prototype.getReachableConfigSet=function(I,R,M,A){for(var D=_.INVALID_ALT_NUMBER,w=0;wS.MAX_DFA_EDGE||(S.debug&&console.log("EDGE "+I+" -> "+M+" upon "+R),null===I.edges&&(I.edges=[]),I.edges[R-S.MIN_DFA_EDGE]=M),M},S.prototype.addDFAState=function(I){for(var R=new s(null,I),M=null,A=0;A{function p(){}function n(i){return this.actionType=i,this.isPositionDependent=!1,this}function f(){return n.call(this,p.SKIP),this}function _(i){return n.call(this,p.TYPE),this.type=i,this}function m(i){return n.call(this,p.PUSH_MODE),this.mode=i,this}function s(){return n.call(this,p.POP_MODE),this}function d(){return n.call(this,p.MORE),this}function u(i){return n.call(this,p.MODE),this.mode=i,this}function h(i,c){return n.call(this,p.CUSTOM),this.ruleIndex=i,this.actionIndex=c,this.isPositionDependent=!0,this}function r(i){return n.call(this,p.CHANNEL),this.channel=i,this}function o(i,c){return n.call(this,c.actionType),this.offset=i,this.action=c,this.isPositionDependent=!0,this}p.CHANNEL=0,p.CUSTOM=1,p.MODE=2,p.MORE=3,p.POP_MODE=4,p.PUSH_MODE=5,p.SKIP=6,p.TYPE=7,n.prototype.hashCode=function(){var i=new Hash;return this.updateHashCode(i),i.finish()},n.prototype.updateHashCode=function(i){i.update(this.actionType)},n.prototype.equals=function(i){return this===i},(f.prototype=Object.create(n.prototype)).constructor=f,f.INSTANCE=new f,f.prototype.execute=function(i){i.skip()},f.prototype.toString=function(){return"skip"},(_.prototype=Object.create(n.prototype)).constructor=_,_.prototype.execute=function(i){i.type=this.type},_.prototype.updateHashCode=function(i){i.update(this.actionType,this.type)},_.prototype.equals=function(i){return this===i||i instanceof _&&this.type===i.type},_.prototype.toString=function(){return"type("+this.type+")"},(m.prototype=Object.create(n.prototype)).constructor=m,m.prototype.execute=function(i){i.pushMode(this.mode)},m.prototype.updateHashCode=function(i){i.update(this.actionType,this.mode)},m.prototype.equals=function(i){return this===i||i instanceof m&&this.mode===i.mode},m.prototype.toString=function(){return"pushMode("+this.mode+")"},(s.prototype=Object.create(n.prototype)).constructor=s,s.INSTANCE=new s,s.prototype.execute=function(i){i.popMode()},s.prototype.toString=function(){return"popMode"},(d.prototype=Object.create(n.prototype)).constructor=d,d.INSTANCE=new d,d.prototype.execute=function(i){i.more()},d.prototype.toString=function(){return"more"},(u.prototype=Object.create(n.prototype)).constructor=u,u.prototype.execute=function(i){i.mode(this.mode)},u.prototype.updateHashCode=function(i){i.update(this.actionType,this.mode)},u.prototype.equals=function(i){return this===i||i instanceof u&&this.mode===i.mode},u.prototype.toString=function(){return"mode("+this.mode+")"},(h.prototype=Object.create(n.prototype)).constructor=h,h.prototype.execute=function(i){i.action(null,this.ruleIndex,this.actionIndex)},h.prototype.updateHashCode=function(i){i.update(this.actionType,this.ruleIndex,this.actionIndex)},h.prototype.equals=function(i){return this===i||i instanceof h&&this.ruleIndex===i.ruleIndex&&this.actionIndex===i.actionIndex},(r.prototype=Object.create(n.prototype)).constructor=r,r.prototype.execute=function(i){i._channel=this.channel},r.prototype.updateHashCode=function(i){i.update(this.actionType,this.channel)},r.prototype.equals=function(i){return this===i||i instanceof r&&this.channel===i.channel},r.prototype.toString=function(){return"channel("+this.channel+")"},(o.prototype=Object.create(n.prototype)).constructor=o,o.prototype.execute=function(i){this.action.execute(i)},o.prototype.updateHashCode=function(i){i.update(this.actionType,this.offset,this.action)},o.prototype.equals=function(i){return this===i||i instanceof o&&this.offset===i.offset&&this.action===i.action},W.LexerActionType=p,W.LexerSkipAction=f,W.LexerChannelAction=r,W.LexerCustomAction=h,W.LexerIndexedCustomAction=o,W.LexerMoreAction=d,W.LexerTypeAction=_,W.LexerPushModeAction=m,W.LexerPopModeAction=s,W.LexerModeAction=u},4859:(ye,W,p)=>{var n=p(3126).hashStuff,f=p(3805).LexerIndexedCustomAction;function _(m){return this.lexerActions=null===m?[]:m,this.cachedHashCode=n(m),this}_.append=function(m,s){return new _(null===m?[s]:m.lexerActions.concat([s]))},_.prototype.fixOffsetBeforeMatch=function(m){for(var s=null,d=0;d{var n=p(3126),f=n.Set,_=n.BitSet,m=n.DoubleDict,s=p(4562).ATN,d=p(7069).ATNState,u=p(6980).m,h=p(7578).B,r=p(9696).Token,o=p(9665).B,i=p(9665).PredPrediction,c=p(6666).f,l=p(636).PredictionMode,g=p(3955).r,y=(p(7335),p(7884).dP),I=(p(7069),p(7069).RuleStopState),R=p(8267).PredictionContext,M=p(3491).Interval,A=p(8792),D=A.Transition,w=A.SetTransition,x=A.NotSetTransition,C=A.RuleTransition,L=A.ActionTransition,F=p(9329).NoViableAltException,re=p(8267).SingletonPredictionContext,Y=p(8267).predictionContextFromRuleContext;function X(ee,$,J,ie){return c.call(this,$,ie),this.parser=ee,this.decisionToDFA=J,this.predictionMode=l.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this}(X.prototype=Object.create(c.prototype)).constructor=X,X.prototype.debug=!1,X.prototype.debug_closure=!1,X.prototype.debug_add=!1,X.prototype.debug_list_atn_decisions=!1,X.prototype.dfa_debug=!1,X.prototype.retry_debug=!1,X.prototype.reset=function(){},X.prototype.adaptivePredict=function(ee,$,J){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+$+" exec LA(1)=="+this.getLookaheadName(ee)+" line "+ee.LT(1).line+":"+ee.LT(1).column),this._input=ee,this._startIndex=ee.index,this._outerContext=J;var ie=this.decisionToDFA[$];this._dfa=ie;var ne=ee.mark(),ae=ee.index;try{var xe;if(null===(xe=ie.precedenceDfa?ie.getPrecedenceStartState(this.parser.getPrecedence()):ie.s0)){null===J&&(J=g.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+ie.decision+" exec LA(1)=="+this.getLookaheadName(ee)+", outerContext="+J.toString(this.parser.ruleNames));var We=this.computeStartState(ie.atnStartState,g.EMPTY,!1);ie.precedenceDfa?(ie.s0.configs=We,We=this.applyPrecedenceFilter(We),xe=this.addDFAState(ie,new o(null,We)),ie.setPrecedenceStartState(this.parser.getPrecedence(),xe)):(xe=this.addDFAState(ie,new o(null,We)),ie.s0=xe)}var Xe=this.execATN(ie,xe,ee,ae,J);return this.debug&&console.log("DFA after predictATN: "+ie.toString(this.parser.literalNames)),Xe}finally{this._dfa=null,this.mergeCache=null,ee.seek(ae),ee.release(ne)}},X.prototype.execATN=function(ee,$,J,ie,ne){(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+ee.decision+" exec LA(1)=="+this.getLookaheadName(J)+" line "+J.LT(1).line+":"+J.LT(1).column);var ae,xe=$;this.debug&&console.log("s0 = "+$);for(var Ie=J.LA(1);;){var We=this.getExistingTargetState(xe,Ie);if(null===We&&(We=this.computeTargetState(ee,xe,Ie)),We===c.ERROR){var Xe=this.noViableAlt(J,ne,xe.configs,ie);if(J.seek(ie),(ae=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(xe.configs,ne))!==s.INVALID_ALT_NUMBER)return ae;throw Xe}if(We.requiresFullContext&&this.predictionMode!==l.SLL){var ft=null;if(null!==We.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var Pe=J.index;if(Pe!==ie&&J.seek(ie),1===(ft=this.evalSemanticContext(We.predicates,ne,!0)).length)return this.debug&&console.log("Full LL avoided"),ft.minValue();Pe!==ie&&J.seek(Pe)}this.dfa_debug&&console.log("ctx sensitive state "+ne+" in "+We);var at=this.computeStartState(ee.atnStartState,ne,!0);return this.reportAttemptingFullContext(ee,ft,We.configs,ie,J.index),this.execATNWithFullContext(ee,We,at,J,ie,ne)}if(We.isAcceptState){if(null===We.predicates)return We.prediction;var pt=J.index;J.seek(ie);var vt=this.evalSemanticContext(We.predicates,ne,!0);if(0===vt.length)throw this.noViableAlt(J,ne,We.configs,ie);return 1===vt.length||this.reportAmbiguity(ee,We,ie,pt,!1,vt,We.configs),vt.minValue()}xe=We,Ie!==r.EOF&&(J.consume(),Ie=J.LA(1))}},X.prototype.getExistingTargetState=function(ee,$){var J=ee.edges;return null===J?null:J[$+1]||null},X.prototype.computeTargetState=function(ee,$,J){var ie=this.computeReachSet($.configs,J,!1);if(null===ie)return this.addDFAEdge(ee,$,J,c.ERROR),c.ERROR;var ne=new o(null,ie),ae=this.getUniqueAlt(ie);if(this.debug){var xe=l.getConflictingAltSubsets(ie);console.log("SLL altSubSets="+n.arrayToString(xe)+", previous="+$.configs+", configs="+ie+", predict="+ae+", allSubsetsConflict="+l.allSubsetsConflict(xe)+", conflictingAlts="+this.getConflictingAlts(ie))}return ae!==s.INVALID_ALT_NUMBER?(ne.isAcceptState=!0,ne.configs.uniqueAlt=ae,ne.prediction=ae):l.hasSLLConflictTerminatingPrediction(this.predictionMode,ie)&&(ne.configs.conflictingAlts=this.getConflictingAlts(ie),ne.requiresFullContext=!0,ne.isAcceptState=!0,ne.prediction=ne.configs.conflictingAlts.minValue()),ne.isAcceptState&&ne.configs.hasSemanticContext&&(this.predicateDFAState(ne,this.atn.getDecisionState(ee.decision)),null!==ne.predicates&&(ne.prediction=s.INVALID_ALT_NUMBER)),this.addDFAEdge(ee,$,J,ne)},X.prototype.predicateDFAState=function(ee,$){var J=$.transitions.length,ie=this.getConflictingAltsOrUniqueAlt(ee.configs),ne=this.getPredsForAmbigAlts(ie,ee.configs,J);null!==ne?(ee.predicates=this.getPredicatePredictions(ie,ne),ee.prediction=s.INVALID_ALT_NUMBER):ee.prediction=ie.minValue()},X.prototype.execATNWithFullContext=function(ee,$,J,ie,ne,ae){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+J);var Ie=!1,We=null,Xe=J;ie.seek(ne);for(var ft=ie.LA(1),Pe=-1;;){if(null===(We=this.computeReachSet(Xe,ft,!0))){var et=this.noViableAlt(ie,ae,Xe,ne);ie.seek(ne);var at=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(Xe,ae);if(at!==s.INVALID_ALT_NUMBER)return at;throw et}var pt=l.getConflictingAltSubsets(We);if(this.debug&&console.log("LL altSubSets="+pt+", predict="+l.getUniqueAlt(pt)+", resolvesToJustOneViableAlt="+l.resolvesToJustOneViableAlt(pt)),We.uniqueAlt=this.getUniqueAlt(We),We.uniqueAlt!==s.INVALID_ALT_NUMBER){Pe=We.uniqueAlt;break}if(this.predictionMode!==l.LL_EXACT_AMBIG_DETECTION){if((Pe=l.resolvesToJustOneViableAlt(pt))!==s.INVALID_ALT_NUMBER)break}else if(l.allSubsetsConflict(pt)&&l.allSubsetsEqual(pt)){Ie=!0,Pe=l.getSingleViableAlt(pt);break}Xe=We,ft!==r.EOF&&(ie.consume(),ft=ie.LA(1))}return We.uniqueAlt!==s.INVALID_ALT_NUMBER?(this.reportContextSensitivity(ee,Pe,We,ne,ie.index),Pe):(this.reportAmbiguity(ee,$,ne,ie.index,Ie,null,We),Pe)},X.prototype.computeReachSet=function(ee,$,J){this.debug&&console.log("in computeReachSet, starting closure: "+ee),null===this.mergeCache&&(this.mergeCache=new m);for(var ie=new h(J),ne=null,ae=0;ae0&&(ae=this.getAltThatFinishedDecisionEntryRule(ne))!==s.INVALID_ALT_NUMBER?ae:s.INVALID_ALT_NUMBER},X.prototype.getAltThatFinishedDecisionEntryRule=function(ee){for(var $=[],J=0;J0||ie.state instanceof I&&ie.context.hasEmptyPath())&&$.indexOf(ie.alt)<0&&$.push(ie.alt)}return 0===$.length?s.INVALID_ALT_NUMBER:Math.min.apply(null,$)},X.prototype.splitAccordingToSemanticValidity=function(ee,$){for(var J=new h(ee.fullCtx),ie=new h(ee.fullCtx),ne=0;ne50))throw"problem";if(ee.state instanceof I){if(!ee.context.isEmpty()){for(var Ie=0;Ie=0&&(et+=1)}this.closureCheckingStopState(Pe,$,J,ft,ne,et,xe)}}},X.prototype.canDropLoopEntryEdgeInLeftRecursiveRule=function(ee){var $=ee.state;if($.stateType!=d.STAR_LOOP_ENTRY||$.stateType!=d.STAR_LOOP_ENTRY||!$.isPrecedenceDecision||ee.context.isEmpty()||ee.context.hasEmptyPath())return!1;for(var J=ee.context.length,ie=0;ie=0?this.parser.ruleNames[ee]:""},X.prototype.getEpsilonTarget=function(ee,$,J,ie,ne,ae){switch($.serializationType){case D.RULE:return this.ruleTransition(ee,$);case D.PRECEDENCE:return this.precedenceTransition(ee,$,J,ie,ne);case D.PREDICATE:return this.predTransition(ee,$,J,ie,ne);case D.ACTION:return this.actionTransition(ee,$);case D.EPSILON:return new u({state:$.target},ee);case D.ATOM:case D.RANGE:case D.SET:return ae&&$.matches(r.EOF,0,1)?new u({state:$.target},ee):null;default:return null}},X.prototype.actionTransition=function(ee,$){return this.debug&&console.log("ACTION edge "+$.ruleIndex+":"+(-1==$.actionIndex?65535:$.actionIndex)),new u({state:$.target},ee)},X.prototype.precedenceTransition=function(ee,$,J,ie,ne){this.debug&&(console.log("PRED (collectPredicates="+J+") "+$.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+n.arrayToString(this.parser.getRuleInvocationStack())));var ae=null;if(J&&ie)if(ne){var xe=this._input.index;this._input.seek(this._startIndex);var Ie=$.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(xe),Ie&&(ae=new u({state:$.target},ee))}else{var We=y.andContext(ee.semanticContext,$.getPredicate());ae=new u({state:$.target,semanticContext:We},ee)}else ae=new u({state:$.target},ee);return this.debug&&console.log("config from pred transition="+ae),ae},X.prototype.predTransition=function(ee,$,J,ie,ne){this.debug&&(console.log("PRED (collectPredicates="+J+") "+$.ruleIndex+":"+$.predIndex+", ctx dependent="+$.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+n.arrayToString(this.parser.getRuleInvocationStack())));var ae=null;if(J&&($.isCtxDependent&&ie||!$.isCtxDependent))if(ne){var xe=this._input.index;this._input.seek(this._startIndex);var Ie=$.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(xe),Ie&&(ae=new u({state:$.target},ee))}else{var We=y.andContext(ee.semanticContext,$.getPredicate());ae=new u({state:$.target,semanticContext:We},ee)}else ae=new u({state:$.target},ee);return this.debug&&console.log("config from pred transition="+ae),ae},X.prototype.ruleTransition=function(ee,$){this.debug&&console.log("CALL rule "+this.getRuleName($.target.ruleIndex)+", ctx="+ee.context);var ie=re.create(ee.context,$.followState.stateNumber);return new u({state:$.target,context:ie},ee)},X.prototype.getConflictingAlts=function(ee){var $=l.getConflictingAltSubsets(ee);return l.getAlts($)},X.prototype.getConflictingAltsOrUniqueAlt=function(ee){var $=null;return ee.uniqueAlt!==s.INVALID_ALT_NUMBER?($=new _).add(ee.uniqueAlt):$=ee.conflictingAlts,$},X.prototype.getTokenName=function(ee){if(ee===r.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(ee>=this.parser.literalNames.length&&ee>=this.parser.symbolicNames.length))return(this.parser.literalNames[ee]||this.parser.symbolicNames[ee])+"<"+ee+">";console.log(ee+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+ee},X.prototype.getLookaheadName=function(ee){return this.getTokenName(ee.LA(1))},X.prototype.dumpDeadEndConfigs=function(ee){console.log("dead end configs: ");for(var $=ee.getDeadEndConfigs(),J=0;J<$.length;J++){var ie=$[J],ne="no edges";if(ie.state.transitions.length>0){var ae=ie.state.transitions[0];ae instanceof AtomTransition?ne="Atom "+this.getTokenName(ae.label):ae instanceof w&&(ne=(ae instanceof x?"~":"")+"Set "+ae.set)}console.error(ie.toString(this.parser,!0)+":"+ne)}},X.prototype.noViableAlt=function(ee,$,J,ie){return new F(this.parser,ee,ee.get(ie),ee.LT(1),J,$)},X.prototype.getUniqueAlt=function(ee){for(var $=s.INVALID_ALT_NUMBER,J=0;J "+ie+" upon "+this.getTokenName(J)),null===ie?null:(ie=this.addDFAState(ee,ie),null===$||J<-1||J>this.atn.maxTokenType||(null===$.edges&&($.edges=[]),$.edges[J+1]=ie,this.debug&&console.log("DFA=\n"+ee.toString(null===this.parser?null:this.parser.literalNames,null===this.parser?null:this.parser.symbolicNames))),ie)},X.prototype.addDFAState=function(ee,$){if($==c.ERROR)return $;var J=ee.states.get($);return null!==J?J:($.stateNumber=ee.states.length,$.configs.readOnly||($.configs.optimizeConfigs(this),$.configs.setReadonly(!0)),ee.states.add($),this.debug&&console.log("adding new DFA state: "+$),$)},X.prototype.reportAttemptingFullContext=function(ee,$,J,ie,ne){if(this.debug||this.retry_debug){var ae=new M(ie,ne+1);console.log("reportAttemptingFullContext decision="+ee.decision+":"+J+", input="+this.parser.getTokenStream().getText(ae))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,ee,ie,ne,$,J)},X.prototype.reportContextSensitivity=function(ee,$,J,ie,ne){if(this.debug||this.retry_debug){var ae=new M(ie,ne+1);console.log("reportContextSensitivity decision="+ee.decision+":"+J+", input="+this.parser.getTokenStream().getText(ae))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,ee,ie,ne,$,J)},X.prototype.reportAmbiguity=function(ee,$,J,ie,ne,ae,xe){if(this.debug||this.retry_debug){var Ie=new M(J,ie+1);console.log("reportAmbiguity "+ae+":"+xe+", input="+this.parser.getTokenStream().getText(Ie))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,ee,J,ie,ne,ae,xe)},W.ParserATNSimulator=X},636:(ye,W,p)=>{p(3126);var f=p(3126).Map,_=p(3126).BitSet,m=p(3126).AltDict,s=p(4562).ATN,d=p(7069).RuleStopState,u=p(7578).B,h=p(6980).m,r=p(7884).dP,i=(p(3126),p(3126).hashStuff);function l(){return this}p(3126),l.SLL=0,l.LL=1,l.LL_EXACT_AMBIG_DETECTION=2,l.hasSLLConflictTerminatingPrediction=function(g,b){if(l.allConfigsInRuleStopStates(b))return!0;if(g===l.SLL&&b.hasSemanticContext){for(var y=new u,S=0;S1)return!0;return!1},l.allSubsetsEqual=function(g){for(var b=null,y=0;y{var n=p(3126).Set,f=p(3126).Hash;function _(){return this}function m(h,r,o){return _.call(this),this.ruleIndex=void 0===h?-1:h,this.predIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==o&&o,this}function s(h){_.call(this),this.precedence=void 0===h?0:h}function d(h,r){_.call(this);var o=new n;h instanceof d?h.opnds.map(function(l){o.add(l)}):o.add(h),r instanceof d?r.opnds.map(function(l){o.add(l)}):o.add(r);var i=s.filterPrecedencePredicates(o);if(i.length>0){var c=null;i.map(function(l){(null===c||l.precedence0){var c=i.sort(function(g,b){return g.compareTo(b)});o.add(c[c.length-1])}return this.opnds=o.values(),this}_.prototype.hashCode=function(){var h=new f;return this.updateHashCode(h),h.finish()},_.prototype.evaluate=function(h,r){},_.prototype.evalPrecedence=function(h,r){return this},_.andContext=function(h,r){if(null===h||h===_.NONE)return r;if(null===r||r===_.NONE)return h;var o=new d(h,r);return 1===o.opnds.length?o.opnds[0]:o},_.orContext=function(h,r){if(null===h)return r;if(null===r)return h;if(h===_.NONE||r===_.NONE)return _.NONE;var o=new u(h,r);return 1===o.opnds.length?o.opnds[0]:o},(m.prototype=Object.create(_.prototype)).constructor=m,_.NONE=new m,m.prototype.evaluate=function(h,r){return h.sempred(this.isCtxDependent?r:null,this.ruleIndex,this.predIndex)},m.prototype.updateHashCode=function(h){h.update(this.ruleIndex,this.predIndex,this.isCtxDependent)},m.prototype.equals=function(h){return this===h||h instanceof m&&this.ruleIndex===h.ruleIndex&&this.predIndex===h.predIndex&&this.isCtxDependent===h.isCtxDependent},m.prototype.toString=function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"},(s.prototype=Object.create(_.prototype)).constructor=s,s.prototype.evaluate=function(h,r){return h.precpred(r,this.precedence)},s.prototype.evalPrecedence=function(h,r){return h.precpred(r,this.precedence)?_.NONE:null},s.prototype.compareTo=function(h){return this.precedence-h.precedence},s.prototype.updateHashCode=function(h){h.update(31)},s.prototype.equals=function(h){return this===h||h instanceof s&&this.precedence===h.precedence},s.prototype.toString=function(){return"{"+this.precedence+">=prec}?"},s.filterPrecedencePredicates=function(h){var r=[];return h.values().map(function(o){o instanceof s&&r.push(o)}),r},(d.prototype=Object.create(_.prototype)).constructor=d,d.prototype.equals=function(h){return this===h||h instanceof d&&this.opnds===h.opnds},d.prototype.updateHashCode=function(h){h.update(this.opnds,"AND")},d.prototype.evaluate=function(h,r){for(var o=0;o3?h.slice(3):h},(u.prototype=Object.create(_.prototype)).constructor=u,u.prototype.constructor=function(h){return this===h||h instanceof u&&this.opnds===h.opnds},u.prototype.updateHashCode=function(h){h.update(this.opnds,"OR")},u.prototype.evaluate=function(h,r){for(var o=0;o3?h.slice(3):h},W.dP=_,W.u5=s,W.$G=m},8792:(ye,W,p)=>{var n=p(9696).Token,_=(p(3491),p(3491).V),m=p(7884).$G,s=p(7884).u5;function d(I){if(null==I)throw"target cannot be null.";return this.target=I,this.isEpsilon=!1,this.label=null,this}function u(I,R){return d.call(this,I),this.label_=R,this.label=this.makeLabel(),this.serializationType=d.ATOM,this}function h(I,R,M,A){return d.call(this,I),this.ruleIndex=R,this.precedence=M,this.followState=A,this.serializationType=d.RULE,this.isEpsilon=!0,this}function r(I,R){return d.call(this,I),this.serializationType=d.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=R,this}function o(I,R,M){return d.call(this,I),this.serializationType=d.RANGE,this.start=R,this.stop=M,this.label=this.makeLabel(),this}function i(I){return d.call(this,I),this}function c(I,R,M,A){return i.call(this,I),this.serializationType=d.PREDICATE,this.ruleIndex=R,this.predIndex=M,this.isCtxDependent=A,this.isEpsilon=!0,this}function l(I,R,M,A){return d.call(this,I),this.serializationType=d.ACTION,this.ruleIndex=R,this.actionIndex=void 0===M?-1:M,this.isCtxDependent=void 0!==A&&A,this.isEpsilon=!0,this}function g(I,R){return d.call(this,I),this.serializationType=d.SET,null!=R?this.label=R:(this.label=new _,this.label.addOne(n.INVALID_TYPE)),this}function b(I,R){return g.call(this,I,R),this.serializationType=d.NOT_SET,this}function y(I){return d.call(this,I),this.serializationType=d.WILDCARD,this}function S(I,R){return i.call(this,I),this.serializationType=d.PRECEDENCE,this.precedence=R,this.isEpsilon=!0,this}d.EPSILON=1,d.RANGE=2,d.RULE=3,d.PREDICATE=4,d.ATOM=5,d.ACTION=6,d.SET=7,d.NOT_SET=8,d.WILDCARD=9,d.PRECEDENCE=10,d.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],d.serializationTypes={EpsilonTransition:d.EPSILON,RangeTransition:d.RANGE,RuleTransition:d.RULE,PredicateTransition:d.PREDICATE,AtomTransition:d.ATOM,ActionTransition:d.ACTION,SetTransition:d.SET,NotSetTransition:d.NOT_SET,WildcardTransition:d.WILDCARD,PrecedencePredicateTransition:d.PRECEDENCE},(u.prototype=Object.create(d.prototype)).constructor=u,u.prototype.makeLabel=function(){var I=new _;return I.addOne(this.label_),I},u.prototype.matches=function(I,R,M){return this.label_===I},u.prototype.toString=function(){return this.label_},(h.prototype=Object.create(d.prototype)).constructor=h,h.prototype.matches=function(I,R,M){return!1},(r.prototype=Object.create(d.prototype)).constructor=r,r.prototype.matches=function(I,R,M){return!1},r.prototype.toString=function(){return"epsilon"},(o.prototype=Object.create(d.prototype)).constructor=o,o.prototype.makeLabel=function(){var I=new _;return I.addRange(this.start,this.stop),I},o.prototype.matches=function(I,R,M){return I>=this.start&&I<=this.stop},o.prototype.toString=function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"},(i.prototype=Object.create(d.prototype)).constructor=i,(c.prototype=Object.create(i.prototype)).constructor=c,c.prototype.matches=function(I,R,M){return!1},c.prototype.getPredicate=function(){return new m(this.ruleIndex,this.predIndex,this.isCtxDependent)},c.prototype.toString=function(){return"pred_"+this.ruleIndex+":"+this.predIndex},(l.prototype=Object.create(d.prototype)).constructor=l,l.prototype.matches=function(I,R,M){return!1},l.prototype.toString=function(){return"action_"+this.ruleIndex+":"+this.actionIndex},(g.prototype=Object.create(d.prototype)).constructor=g,g.prototype.matches=function(I,R,M){return this.label.contains(I)},g.prototype.toString=function(){return this.label.toString()},(b.prototype=Object.create(g.prototype)).constructor=b,b.prototype.matches=function(I,R,M){return I>=R&&I<=M&&!g.prototype.matches.call(this,I,R,M)},b.prototype.toString=function(){return"~"+g.prototype.toString.call(this)},(y.prototype=Object.create(d.prototype)).constructor=y,y.prototype.matches=function(I,R,M){return I>=R&&I<=M},y.prototype.toString=function(){return"."},(S.prototype=Object.create(i.prototype)).constructor=S,S.prototype.matches=function(I,R,M){return!1},S.prototype.getPredicate=function(){return new s(this.precedence)},S.prototype.toString=function(){return this.precedence+" >= _p"},W.Transition=d,W.AtomTransition=u,W.SetTransition=g,W.NotSetTransition=b,W.RuleTransition=h,W.ActionTransition=l,W.EpsilonTransition=r,W.RangeTransition=o,W.WildcardTransition=y,W.PredicateTransition=c,W.PrecedencePredicateTransition=S,W.AbstractPredicateTransition=i},5988:(ye,W,p)=>{W.ATN=p(4562).ATN,W.ATNDeserializer=p(9535).ATNDeserializer,W.LexerATNSimulator=p(3305).LexerATNSimulator,W.ParserATNSimulator=p(1170).ParserATNSimulator,W.PredictionMode=p(636).PredictionMode},2038:(ye,W,p)=>{var n=p(3126).Set,f=p(9665).B,_=p(7069).StarLoopEntryState,m=p(7578).B,s=p(3211).DFASerializer,d=p(3211).LexerDFASerializer;function u(h,r){if(void 0===r&&(r=0),this.atnStartState=h,this.decision=r,this._states=new n,this.s0=null,this.precedenceDfa=!1,h instanceof _&&h.isPrecedenceDecision){this.precedenceDfa=!0;var o=new f(null,new m);o.edges=[],o.isAcceptState=!1,o.requiresFullContext=!1,this.s0=o}return this}u.prototype.getPrecedenceStartState=function(h){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return h<0||h>=this.s0.edges.length?null:this.s0.edges[h]||null},u.prototype.setPrecedenceStartState=function(h,r){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";h<0||(this.s0.edges[h]=r)},u.prototype.setPrecedenceDfa=function(h){if(this.precedenceDfa!==h){if(this._states=new DFAStatesSet,h){var r=new f(null,new m);r.edges=[],r.isAcceptState=!1,r.requiresFullContext=!1,this.s0=r}else this.s0=null;this.precedenceDfa=h}},Object.defineProperty(u.prototype,"states",{get:function(){return this._states}}),u.prototype.sortedStates=function(){return this._states.values().sort(function(r,o){return r.stateNumber-o.stateNumber})},u.prototype.toString=function(h,r){return null===this.s0?"":new s(this,h=h||null,r=r||null).toString()},u.prototype.toLexerString=function(){return null===this.s0?"":new d(this).toString()},W.DFA=u},3211:(ye,W)=>{function p(f,_,m){return this.dfa=f,this.literalNames=_||[],this.symbolicNames=m||[],this}function n(f){return p.call(this,f,null),this}p.prototype.toString=function(){if(null===this.dfa.s0)return null;for(var f="",_=this.dfa.sortedStates(),m=0;m<_.length;m++){var s=_[m];if(null!==s.edges)for(var d=s.edges.length,u=0;u")).concat(this.getStateString(h))).concat("\n"))}}return 0===f.length?null:f},p.prototype.getEdgeLabel=function(f){return 0===f?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[f-1]||this.symbolicNames[f-1]:String.fromCharCode(f-1)},p.prototype.getStateString=function(f){var _=(f.isAcceptState?":":"")+"s"+f.stateNumber+(f.requiresFullContext?"^":"");return f.isAcceptState?null!==f.predicates?_+"=>"+f.predicates.toString():_+"=>"+f.prediction.toString():_},(n.prototype=Object.create(p.prototype)).constructor=n,n.prototype.getEdgeLabel=function(f){return"'"+String.fromCharCode(f)+"'"},W.DFASerializer=p,W.LexerDFASerializer=n},9665:(ye,W,p)=>{var n=p(7578).B,f=p(3126),_=f.Hash,m=f.Set;function s(u,h){return this.alt=h,this.pred=u,this}function d(u,h){return null===u&&(u=-1),null===h&&(h=new n),this.stateNumber=u,this.configs=h,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}s.prototype.toString=function(){return"("+this.pred+", "+this.alt+")"},d.prototype.getAltSet=function(){var u=new m;if(null!==this.configs)for(var h=0;h{W.DFA=p(2038).DFA,W.DFASerializer=p(3211).DFASerializer,W.LexerDFASerializer=p(3211).LexerDFASerializer,W.PredPrediction=p(9665).PredPrediction},379:(ye,W,p)=>{var n=p(3126).BitSet,f=p(5490).ErrorListener,_=p(3491).Interval;function m(s){return f.call(this),this.exactOnly=s=s||!0,this}(m.prototype=Object.create(f.prototype)).constructor=m,m.prototype.reportAmbiguity=function(s,d,u,h,r,o,i){if(!this.exactOnly||r){var c="reportAmbiguity d="+this.getDecisionDescription(s,d)+": ambigAlts="+this.getConflictingAlts(o,i)+", input='"+s.getTokenStream().getText(new _(u,h))+"'";s.notifyErrorListeners(c)}},m.prototype.reportAttemptingFullContext=function(s,d,u,h,r,o){var i="reportAttemptingFullContext d="+this.getDecisionDescription(s,d)+", input='"+s.getTokenStream().getText(new _(u,h))+"'";s.notifyErrorListeners(i)},m.prototype.reportContextSensitivity=function(s,d,u,h,r,o){var i="reportContextSensitivity d="+this.getDecisionDescription(s,d)+", input='"+s.getTokenStream().getText(new _(u,h))+"'";s.notifyErrorListeners(i)},m.prototype.getDecisionDescription=function(s,d){var u=d.decision,h=d.atnStartState.ruleIndex,r=s.ruleNames;if(h<0||h>=r.length)return""+u;var o=r[h]||null;return null===o||0===o.length?""+u:u+" ("+o+")"},m.prototype.getConflictingAlts=function(s,d){if(null!==s)return s;for(var u=new n,h=0;h{function p(){return this}function n(){return p.call(this),this}function f(_){if(p.call(this),null===_)throw"delegates";return this.delegates=_,this}p.prototype.syntaxError=function(_,m,s,d,u,h){},p.prototype.reportAmbiguity=function(_,m,s,d,u,h,r){},p.prototype.reportAttemptingFullContext=function(_,m,s,d,u,h){},p.prototype.reportContextSensitivity=function(_,m,s,d,u,h){},(n.prototype=Object.create(p.prototype)).constructor=n,n.INSTANCE=new n,n.prototype.syntaxError=function(_,m,s,d,u,h){console.error("line "+s+":"+d+" "+u)},(f.prototype=Object.create(p.prototype)).constructor=f,f.prototype.syntaxError=function(_,m,s,d,u,h){this.delegates.map(function(r){r.syntaxError(_,m,s,d,u,h)})},f.prototype.reportAmbiguity=function(_,m,s,d,u,h,r){this.delegates.map(function(o){o.reportAmbiguity(_,m,s,d,u,h,r)})},f.prototype.reportAttemptingFullContext=function(_,m,s,d,u,h){this.delegates.map(function(r){r.reportAttemptingFullContext(_,m,s,d,u,h)})},f.prototype.reportContextSensitivity=function(_,m,s,d,u,h){this.delegates.map(function(r){r.reportContextSensitivity(_,m,s,d,u,h)})},W.ErrorListener=p,W.s=n,W.N=f},6863:(ye,W,p)=>{var n=p(9696).Token,f=p(9329),_=f.NoViableAltException,m=f.InputMismatchException,s=f.FailedPredicateException,d=f.ParseCancellationException,u=p(7069).ATNState,h=p(3491).Interval,r=p(3491).V;function o(){}function i(){return o.call(this),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this}function c(){return i.call(this),this}o.prototype.reset=function(l){},o.prototype.recoverInline=function(l){},o.prototype.recover=function(l,g){},o.prototype.sync=function(l){},o.prototype.inErrorRecoveryMode=function(l){},o.prototype.reportError=function(l){},(i.prototype=Object.create(o.prototype)).constructor=i,i.prototype.reset=function(l){this.endErrorCondition(l)},i.prototype.beginErrorCondition=function(l){this.errorRecoveryMode=!0},i.prototype.inErrorRecoveryMode=function(l){return this.errorRecoveryMode},i.prototype.endErrorCondition=function(l){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1},i.prototype.reportMatch=function(l){this.endErrorCondition(l)},i.prototype.reportError=function(l,g){this.inErrorRecoveryMode(l)||(this.beginErrorCondition(l),g instanceof _?this.reportNoViableAlternative(l,g):g instanceof m?this.reportInputMismatch(l,g):g instanceof s?this.reportFailedPredicate(l,g):(console.log("unknown recognition error type: "+g.constructor.name),console.log(g.stack),l.notifyErrorListeners(g.getOffendingToken(),g.getMessage(),g)))},i.prototype.recover=function(l,g){this.lastErrorIndex===l.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(l.state)>=0&&l.consume(),this.lastErrorIndex=l._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(l.state);var b=this.getErrorRecoverySet(l);this.consumeUntil(l,b)},i.prototype.sync=function(l){if(!this.inErrorRecoveryMode(l)){var g=l._interp.atn.states[l.state],b=l.getTokenStream().LA(1),y=l.atn.nextTokens(g);if(!y.contains(n.EPSILON)&&!y.contains(b))switch(g.stateType){case u.BLOCK_START:case u.STAR_BLOCK_START:case u.PLUS_BLOCK_START:case u.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(l))return;throw new m(l);case u.PLUS_LOOP_BACK:case u.STAR_LOOP_BACK:this.reportUnwantedToken(l);var S=new r;S.addSet(l.getExpectedTokens());var I=S.addSet(this.getErrorRecoverySet(l));this.consumeUntil(l,I)}}},i.prototype.reportNoViableAlternative=function(l,g){var y,b=l.getTokenStream();y=null!==b?g.startToken.type===n.EOF?"":b.getText(new h(g.startToken.tokenIndex,g.offendingToken.tokenIndex)):"";var S="no viable alternative at input "+this.escapeWSAndQuote(y);l.notifyErrorListeners(S,g.offendingToken,g)},i.prototype.reportInputMismatch=function(l,g){var b="mismatched input "+this.getTokenErrorDisplay(g.offendingToken)+" expecting "+g.getExpectedTokens().toString(l.literalNames,l.symbolicNames);l.notifyErrorListeners(b,g.offendingToken,g)},i.prototype.reportFailedPredicate=function(l,g){l.notifyErrorListeners("rule "+l.ruleNames[l._ctx.ruleIndex]+" "+g.message,g.offendingToken,g)},i.prototype.reportUnwantedToken=function(l){if(!this.inErrorRecoveryMode(l)){this.beginErrorCondition(l);var g=l.getCurrentToken(),S="extraneous input "+this.getTokenErrorDisplay(g)+" expecting "+this.getExpectedTokens(l).toString(l.literalNames,l.symbolicNames);l.notifyErrorListeners(S,g,null)}},i.prototype.reportMissingToken=function(l){if(!this.inErrorRecoveryMode(l)){this.beginErrorCondition(l);var g=l.getCurrentToken(),y="missing "+this.getExpectedTokens(l).toString(l.literalNames,l.symbolicNames)+" at "+this.getTokenErrorDisplay(g);l.notifyErrorListeners(y,g,null)}},i.prototype.recoverInline=function(l){var g=this.singleTokenDeletion(l);if(null!==g)return l.consume(),g;if(this.singleTokenInsertion(l))return this.getMissingSymbol(l);throw new m(l)},i.prototype.singleTokenInsertion=function(l){var g=l.getTokenStream().LA(1),b=l._interp.atn;return!!b.nextTokens(b.states[l.state].transitions[0].target,l._ctx).contains(g)&&(this.reportMissingToken(l),!0)},i.prototype.singleTokenDeletion=function(l){var g=l.getTokenStream().LA(2);if(this.getExpectedTokens(l).contains(g)){this.reportUnwantedToken(l),l.consume();var y=l.getCurrentToken();return this.reportMatch(l),y}return null},i.prototype.getMissingSymbol=function(l){var S,g=l.getCurrentToken(),y=this.getExpectedTokens(l).first();S=y===n.EOF?"":"";var I=g,R=l.getTokenStream().LT(-1);return I.type===n.EOF&&null!==R&&(I=R),l.getTokenFactory().create(I.source,y,S,n.DEFAULT_CHANNEL,-1,-1,I.line,I.column)},i.prototype.getExpectedTokens=function(l){return l.getExpectedTokens()},i.prototype.getTokenErrorDisplay=function(l){if(null===l)return"";var g=l.text;return null===g&&(g=l.type===n.EOF?"":"<"+l.type+">"),this.escapeWSAndQuote(g)},i.prototype.escapeWSAndQuote=function(l){return"'"+(l=(l=(l=l.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"},i.prototype.getErrorRecoverySet=function(l){for(var g=l._interp.atn,b=l._ctx,y=new r;null!==b&&b.invokingState>=0;){var R=g.nextTokens(g.states[b.invokingState].transitions[0].followState);y.addSet(R),b=b.parentCtx}return y.removeOne(n.EPSILON),y},i.prototype.consumeUntil=function(l,g){for(var b=l.getTokenStream().LA(1);b!==n.EOF&&!g.contains(b);)l.consume(),b=l.getTokenStream().LA(1)},(c.prototype=Object.create(i.prototype)).constructor=c,c.prototype.recover=function(l,g){for(var b=l._ctx;null!==b;)b.exception=g,b=b.parentCtx;throw new d(g)},c.prototype.recoverInline=function(l){this.recover(l,new m(l))},c.prototype.sync=function(l){},W.BailErrorStrategy=c,W.t=i},9329:(ye,W,p)=>{var n=p(8792).PredicateTransition;function f(h){return Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,f):new Error,this.message=h.message,this.recognizer=h.recognizer,this.input=h.input,this.ctx=h.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state),this}function _(h,r,o,i){return f.call(this,{message:"",recognizer:h,input:r,ctx:null}),this.startIndex=o,this.deadEndConfigs=i,this}function m(h,r,o,i,c,l){l=l||h._ctx,i=i||h.getCurrentToken(),o=o||h.getCurrentToken(),r=r||h.getInputStream(),f.call(this,{message:"",recognizer:h,input:r,ctx:l}),this.deadEndConfigs=c,this.startToken=o,this.offendingToken=i}function s(h){f.call(this,{message:"",recognizer:h,input:h.getInputStream(),ctx:h._ctx}),this.offendingToken=h.getCurrentToken()}function d(h,r,o){f.call(this,{message:this.formatMessage(r,o||null),recognizer:h,input:h.getInputStream(),ctx:h._ctx});var c=h._interp.atn.states[h.state].transitions[0];return c instanceof n?(this.ruleIndex=c.ruleIndex,this.predicateIndex=c.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=r,this.offendingToken=h.getCurrentToken(),this}function u(){return Error.call(this),Error.captureStackTrace(this,u),this}(f.prototype=Object.create(Error.prototype)).constructor=f,f.prototype.getExpectedTokens=function(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null},f.prototype.toString=function(){return this.message},(_.prototype=Object.create(f.prototype)).constructor=_,_.prototype.toString=function(){var h="";return this.startIndex>=0&&this.startIndex{W.RecognitionException=p(9329).RecognitionException,W.NoViableAltException=p(9329).NoViableAltException,W.LexerNoViableAltException=p(9329).LexerNoViableAltException,W.InputMismatchException=p(9329).InputMismatchException,W.FailedPredicateException=p(9329).FailedPredicateException,W.DiagnosticErrorListener=p(379).DiagnosticErrorListener,W.BailErrorStrategy=p(6863).BailErrorStrategy,W.ErrorListener=p(5490).ErrorListener},3747:()=>{String.prototype.codePointAt||function(){"use strict";var ye=function(){try{var p={},n=Object.defineProperty,f=n(p,p,p)&&n}catch(_){}return f}(),W=function(p){if(null==this)throw TypeError();var n=String(this),f=n.length,_=p?Number(p):0;if(_!=_&&(_=0),!(_<0||_>=f)){var s,m=n.charCodeAt(_);return m>=55296&&m<=56319&&f>_+1&&(s=n.charCodeAt(_+1))>=56320&&s<=57343?1024*(m-55296)+s-56320+65536:m}};ye?ye(String.prototype,"codePointAt",{value:W,configurable:!0,writable:!0}):String.prototype.codePointAt=W}()},617:()=>{var ye,W,p,n;String.fromCodePoint||(ye=function(){try{var f={},_=Object.defineProperty,m=_(f,f,f)&&_}catch(s){}return m}(),W=String.fromCharCode,p=Math.floor,n=function(f){var _=16384,m=[],u=-1,h=arguments.length;if(!h)return"";for(var r="";++u1114111||p(o)!=o)throw RangeError("Invalid code point: "+o);o<=65535?m.push(o):m.push(55296+((o-=65536)>>10),o%1024+56320),(u+1==h||m.length>_)&&(r+=W.apply(null,m),m.length=0)}return r},ye?ye(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n)},7774:(ye,W,p)=>{var n=p(9696).Token,f=p(3491).Interval,_=new f(-1,-2);function s(){return this}function d(){return s.call(this),this}function u(){return d.call(this),this}function h(){return u.call(this),this}function r(){return u.call(this),this}function o(){return r.call(this),this}function i(){return this}function c(){return this}function l(y){return r.call(this),this.parentCtx=null,this.symbol=y,this}function g(y){return l.call(this,y),this}function b(){return this}p(3126),(d.prototype=Object.create(s.prototype)).constructor=d,(u.prototype=Object.create(d.prototype)).constructor=u,(h.prototype=Object.create(u.prototype)).constructor=h,(r.prototype=Object.create(u.prototype)).constructor=r,(o.prototype=Object.create(r.prototype)).constructor=o,i.prototype.visit=function(y){return Array.isArray(y)?y.map(function(S){return S.accept(this)},this):y.accept(this)},i.prototype.visitChildren=function(y){return y.children?this.visit(y.children):null},i.prototype.visitTerminal=function(y){},i.prototype.visitErrorNode=function(y){},c.prototype.visitTerminal=function(y){},c.prototype.visitErrorNode=function(y){},c.prototype.enterEveryRule=function(y){},c.prototype.exitEveryRule=function(y){},(l.prototype=Object.create(r.prototype)).constructor=l,l.prototype.getChild=function(y){return null},l.prototype.getSymbol=function(){return this.symbol},l.prototype.getParent=function(){return this.parentCtx},l.prototype.getPayload=function(){return this.symbol},l.prototype.getSourceInterval=function(){if(null===this.symbol)return _;var y=this.symbol.tokenIndex;return new f(y,y)},l.prototype.getChildCount=function(){return 0},l.prototype.accept=function(y){return y.visitTerminal(this)},l.prototype.getText=function(){return this.symbol.text},l.prototype.toString=function(){return this.symbol.type===n.EOF?"":this.symbol.text},(g.prototype=Object.create(l.prototype)).constructor=g,g.prototype.isErrorNode=function(){return!0},g.prototype.accept=function(y){return y.visitErrorNode(this)},b.prototype.walk=function(y,S){if(S instanceof o||void 0!==S.isErrorNode&&S.isErrorNode())y.visitErrorNode(S);else if(S instanceof r)y.visitTerminal(S);else{this.enterRule(y,S);for(var R=0;R{var n=p(3126),f=p(9696).Token,m=(p(7774),p(7774).ErrorNode),s=p(7774).TerminalNode,d=p(7335).ParserRuleContext,u=p(3955).r,h=p(4562).INVALID_ALT_NUMBER;function r(){}r.toStringTree=function(o,i,c){i=i||null,null!==(c=c||null)&&(i=c.ruleNames);var l=r.getNodeText(o,i);l=n.escapeWhitespace(l,!1);var g=o.getChildCount();if(0===g)return l;var b="("+l+" ";g>0&&(l=r.toStringTree(o.getChild(0),i),b=b.concat(l));for(var y=1;y{var n=p(7774);W.Trees=p(8245).Trees,W.RuleNode=n.RuleNode,W.ParseTreeListener=n.ParseTreeListener,W.ParseTreeVisitor=n.ParseTreeVisitor,W.ParseTreeWalker=n.ParseTreeWalker},7664:ye=>{ye.exports=function(n){var f=new Date(n.getTime()),_=f.getTimezoneOffset();return f.setSeconds(0,0),6e4*_+f.getTime()%6e4}},6937:(ye,W,p)=>{var n=p(6910);ye.exports=function(_,m){var s=n(_),d=Number(m);return s.setDate(s.getDate()+d),s}},2500:(ye,W,p)=>{var n=p(7862);ye.exports=function(m,s){var d=Number(s);return n(m,36e5*d)}},7862:(ye,W,p)=>{var n=p(6910);ye.exports=function(_,m){var s=n(_).getTime(),d=Number(m);return new Date(s+d)}},8091:(ye,W,p)=>{var n=p(7862);ye.exports=function(m,s){var d=Number(s);return n(m,6e4*d)}},4992:(ye,W,p)=>{var n=p(6910),f=p(4349);ye.exports=function(m,s){var d=n(m),u=Number(s),h=d.getMonth()+u,r=new Date(0);r.setFullYear(d.getFullYear(),h,1),r.setHours(0,0,0,0);var o=f(r);return d.setMonth(h,Math.min(o,d.getDate())),d}},734:(ye,W,p)=>{var n=p(7862);ye.exports=function(_,m){var s=Number(m);return n(_,1e3*s)}},5213:(ye,W,p)=>{var n=p(6937);ye.exports=function(_,m){var s=Number(m);return n(_,7*s)}},2486:(ye,W,p)=>{var n=p(4992);ye.exports=function(_,m){var s=Number(m);return n(_,12*s)}},4349:(ye,W,p)=>{var n=p(6910);ye.exports=function(_){var m=n(_),s=m.getFullYear(),d=m.getMonth(),u=new Date(0);return u.setFullYear(s,d+1,0),u.setHours(0,0,0,0),u.getDate()}},9882:ye=>{ye.exports=function(p){return p instanceof Date}},6910:(ye,W,p)=>{var n=p(7664),f=p(9882),_=36e5,m=6e4,d=/[T ]/,u=/:/,h=/^(\d{2})$/,r=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],o=/^(\d{4})/,i=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],c=/^-(\d{2})$/,l=/^-?(\d{3})$/,g=/^-?(\d{2})-?(\d{2})$/,b=/^-?W(\d{2})$/,y=/^-?W(\d{2})-?(\d{1})$/,S=/^(\d{2}([.,]\d*)?)$/,I=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,R=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,M=/([Z+-].*)$/,A=/^(Z)$/,D=/^([+-])(\d{2})$/,w=/^([+-])(\d{2}):?(\d{2})$/;function X(ee,$,J){$=$||0,J=J||0;var ie=new Date(0);ie.setUTCFullYear(ee,0,4);var ae=7*$+J+1-(ie.getUTCDay()||7);return ie.setUTCDate(ie.getUTCDate()+ae),ie}ye.exports=function(ee,$){if(f(ee))return new Date(ee.getTime());if("string"!=typeof ee)return new Date(ee);var ie=($||{}).additionalDigits;ie=null==ie?2:Number(ie);var ne=function(ee){var ie,$={},J=ee.split(d);if(u.test(J[0])?($.date=null,ie=J[0]):($.date=J[0],ie=J[1]),ie){var ne=M.exec(ie);ne?($.time=ie.replace(ne[1],""),$.timezone=ne[1]):$.time=ie}return $}(ee),ae=function(ee,$){var ne,J=r[$],ie=i[$];if(ne=o.exec(ee)||ie.exec(ee)){var ae=ne[1];return{year:parseInt(ae,10),restDateString:ee.slice(ae.length)}}if(ne=h.exec(ee)||J.exec(ee)){var xe=ne[1];return{year:100*parseInt(xe,10),restDateString:ee.slice(xe.length)}}return{year:null}}(ne.date,ie),We=function(ee,$){if(null===$)return null;var J,ie,ne;if(0===ee.length)return(ie=new Date(0)).setUTCFullYear($),ie;if(J=c.exec(ee))return ie=new Date(0),ne=parseInt(J[1],10)-1,ie.setUTCFullYear($,ne),ie;if(J=l.exec(ee)){ie=new Date(0);var xe=parseInt(J[1],10);return ie.setUTCFullYear($,0,xe),ie}if(J=g.exec(ee)){ie=new Date(0),ne=parseInt(J[1],10)-1;var Ie=parseInt(J[2],10);return ie.setUTCFullYear($,ne,Ie),ie}return(J=b.exec(ee))?X($,parseInt(J[1],10)-1):(J=y.exec(ee))?X($,parseInt(J[1],10)-1,parseInt(J[2],10)-1):null}(ae.restDateString,ae.year);if(We){var Pe,Xe=We.getTime(),ft=0;if(ne.time&&(ft=function(ee){var $,J,ie;if($=S.exec(ee))return(J=parseFloat($[1].replace(",",".")))%24*_;if($=I.exec(ee))return J=parseInt($[1],10),ie=parseFloat($[2].replace(",",".")),J%24*_+ie*m;if($=R.exec(ee)){J=parseInt($[1],10),ie=parseInt($[2],10);var ne=parseFloat($[3].replace(",","."));return J%24*_+ie*m+1e3*ne}return null}(ne.time)),ne.timezone)Pe=function(ee){var $,J;return($=A.exec(ee))?0:($=D.exec(ee))?(J=60*parseInt($[2],10),"+"===$[1]?-J:J):($=w.exec(ee))?(J=60*parseInt($[2],10)+parseInt($[3],10),"+"===$[1]?-J:J):0}(ne.timezone)*m;else{var et=Xe+ft,at=new Date(et);Pe=n(at);var pt=new Date(et);pt.setDate(at.getDate()+1);var vt=n(pt)-n(at);vt>0&&(Pe+=vt)}return new Date(Xe+ft+Pe)}return new Date(ee)}},1455:(ye,W,p)=>{W.formatArgs=function(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+ye.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;u.splice(1,0,h,"color: inherit");let r=0,o=0;u[0].replace(/%[a-zA-Z%]/g,i=>{"%%"!==i&&(r++,"%c"===i&&(o=r))}),u.splice(o,0,h)},W.save=function(u){try{u?W.storage.setItem("debug",u):W.storage.removeItem("debug")}catch(h){}},W.load=function(){let u;try{u=W.storage.getItem("debug")}catch(h){}return!u&&"undefined"!=typeof process&&"env"in process&&(u=process.env.DEBUG),u},W.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},W.storage=function(){try{return localStorage}catch(u){}}(),W.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),W.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],W.log=console.debug||console.log||(()=>{}),ye.exports=p(3283)(W);const{formatters:d}=ye.exports;d.j=function(u){try{return JSON.stringify(u)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}},3283:(ye,W,p)=>{ye.exports=function(f){function m(c){let l,g=null;function b(...y){if(!b.enabled)return;const S=b,I=Number(new Date);S.diff=I-(l||I),S.prev=l,S.curr=I,l=I,y[0]=m.coerce(y[0]),"string"!=typeof y[0]&&y.unshift("%O");let M=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(D,w)=>{if("%%"===D)return"%";M++;const x=m.formatters[w];return"function"==typeof x&&(D=x.call(S,y[M]),y.splice(M,1),M--),D}),m.formatArgs.call(S,y),(S.log||m.log).apply(S,y)}return b.namespace=c,b.useColors=m.useColors(),b.color=m.selectColor(c),b.extend=s,b.destroy=m.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>null===g?m.enabled(c):g,set:y=>{g=y}}),"function"==typeof m.init&&m.init(b),b}function s(c,l){const g=m(this.namespace+(void 0===l?":":l)+c);return g.log=this.log,g}function r(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}return m.debug=m,m.default=m,m.coerce=function(c){return c instanceof Error?c.stack||c.message:c},m.disable=function(){const c=[...m.names.map(r),...m.skips.map(r).map(l=>"-"+l)].join(",");return m.enable(""),c},m.enable=function(c){let l;m.save(c),m.names=[],m.skips=[];const g=("string"==typeof c?c:"").split(/[\s,]+/),b=g.length;for(l=0;l{m[c]=f[c]}),m.names=[],m.skips=[],m.formatters={},m.selectColor=function(c){let l=0;for(let g=0;g{"use strict";var W="%[a-f0-9]{2}",p=new RegExp(W,"gi"),n=new RegExp("("+W+")+","gi");function f(s,d){try{return decodeURIComponent(s.join(""))}catch(r){}if(1===s.length)return s;var u=s.slice(0,d=d||1),h=s.slice(d);return Array.prototype.concat.call([],f(u),f(h))}function _(s){try{return decodeURIComponent(s)}catch(h){for(var d=s.match(p),u=1;u=64;){for(I=g[0],R=g[1],M=g[2],A=g[3],D=g[4],w=g[5],x=g[6],C=g[7],F=0;F<16;F++)l[F]=(255&b[re=y+4*F])<<24|(255&b[re+1])<<16|(255&b[re+2])<<8|255&b[re+3];for(F=16;F<64;F++)l[F]=((Y=((L=l[F-2])>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+l[F-7]|0)+((X=((L=l[F-15])>>>7|L<<25)^(L>>>18|L<<14)^L>>>3)+l[F-16]|0);for(F=0;F<64;F++)Y=(((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&w^~D&x)|0)+(C+(_[F]+l[F]|0)|0)|0,X=((I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10))+(I&R^I&M^R&M)|0,C=x,x=w,w=D,D=A+Y|0,A=M,M=R,R=I,I=Y+X|0;g[0]+=I,g[1]+=R,g[2]+=M,g[3]+=A,g[4]+=D,g[5]+=w,g[6]+=x,g[7]+=C,y+=64,S-=64}return y}var s=function(){function l(){this.digestLength=f.digestLength,this.blockSize=f.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return l.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},l.prototype.clean=function(){for(var g=0;g0){for(;this.bufferLength<64&&b>0;)this.buffer[this.bufferLength++]=g[y++],b--;64===this.bufferLength&&(m(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(b>=64&&(y=m(this.temp,this.state,g,y,b),b%=64);b>0;)this.buffer[this.bufferLength++]=g[y++],b--;return this},l.prototype.finish=function(g){if(!this.finished){var b=this.bytesHashed,y=this.bufferLength,S=b/536870912|0,I=b<<3,R=b%64<56?64:128;this.buffer[y]=128;for(var M=y+1;M>>24&255,this.buffer[R-7]=S>>>16&255,this.buffer[R-6]=S>>>8&255,this.buffer[R-5]=S>>>0&255,this.buffer[R-4]=I>>>24&255,this.buffer[R-3]=I>>>16&255,this.buffer[R-2]=I>>>8&255,this.buffer[R-1]=I>>>0&255,m(this.temp,this.state,this.buffer,0,R),this.finished=!0}for(M=0;M<8;M++)g[4*M+0]=this.state[M]>>>24&255,g[4*M+1]=this.state[M]>>>16&255,g[4*M+2]=this.state[M]>>>8&255,g[4*M+3]=this.state[M]>>>0&255;return this},l.prototype.digest=function(){var g=new Uint8Array(this.digestLength);return this.finish(g),g},l.prototype._saveState=function(g){for(var b=0;bthis.blockSize)(new s).update(g).finish(b).clean();else for(var y=0;y1&&g.update(l),b&&g.update(b),g.update(y),g.finish(l),y[0]++}f.HMAC=d,f.hash=u,f.default=u,f.hmac=h;var o=new Uint8Array(f.digestLength);f.hkdf=function(l,g,b,y){void 0===g&&(g=o),void 0===y&&(y=32);for(var S=new Uint8Array([1]),I=h(g,l),R=new d(I),M=new Uint8Array(R.digestLength),A=M.length,D=new Uint8Array(y),w=0;w>>24&255,R[1]=x>>>16&255,R[2]=x>>>8&255,R[3]=x>>>0&255,S.reset(),S.update(g),S.update(R),S.finish(A);for(var C=0;C{ye.exports={aggregateMacro:function(p,n,f){return p.reduce((_,m,s)=>(this.$index=s,this.$total=n(m)),this.$total=f)}}},3142:(ye,W,p)=>{var n=p(9640),f={};function _(m,s){if(0==s.length)return!0;for(var d=0;d1)throw new Error("Expected singleton on right side of contains, got "+JSON.stringify(s));return _(m,s)},f.in=function(m,s){if(0==m.length)return[];if(0==s.length)return!1;if(m.length>1)throw new Error("Expected singleton on right side of in, got "+JSON.stringify(s));return _(s,m)},ye.exports=f},6856:(ye,W,p)=>{var n={},f=p(6127);n.union=function(_,m){return f.distinctFn(_.concat(m))},n.combineFn=function(_,m){return _.concat(m)},ye.exports=n},9397:ye=>{ye.exports={reset:function(){this.nowDate=new Date,this.today=null,this.now=null,this.localTimezoneOffset=null},today:null,now:null}},3425:(ye,W,p)=>{var n={};const f=p(2563),_=p(9397),m=f.FP_DateTime;n.now=function(){if(!_.now){var d=m.isoDateTime(_.nowDate);_.now=new m(d)}return _.now},n.today=function(){if(!_.today){var d=m.isoDate(_.nowDate);_.today=new m(d)}return _.today},ye.exports=n},9640:(ye,W,p)=>{var f=p(2563).FP_Type,_=p(4569),m=p(7601),s=Array.prototype.slice,d=Object.keys,u=function(g){return"[object Arguments]"==Object.prototype.toString.call(g)};function h(g){return"string"==typeof g||g instanceof String}function r(g){return!isNaN(parseFloat(g))&&isFinite(g)}function o(g){return g.toUpperCase().replace(/\s+/," ")}var i=function(g,b,y){if(y||(y={}),(g=_.valData(g))===(b=_.valData(b)))return!0;if(y.fuzzy){if(h(g)&&h(b))return o(g)==o(b);if(r(g)&&r(b))return m.isEquivalent(g,b)}else if("number"==typeof g&&"number"==typeof b)return m.isEqual(g,b);if(g instanceof Date&&b instanceof Date)return g.getTime()===b.getTime();if(!g||!b||"object"!=typeof g&&"object"!=typeof b)return y.strict?g===b:g==b;var S=g instanceof f,I=b instanceof f;if(S&&I)return y.fuzzy?g.equivalentTo(b):g.equals(b);if(S||I){let R,M;S?(R=g,M=b):(R=b,M=g);let A="string"==typeof M;if(A){let D=R.constructor.checkString(M);A=!!D&&(y.fuzzy?g.equivalentTo(D):R.equals(D))}return A}return function(g,b,y){var S,I;if(c(g)||c(b)||g.prototype!==b.prototype)return!1;if(u(g)||u(b))return g=u(g)?s.call(g):g,b=u(b)?s.call(b):b,i(g,b,y);try{var R=d(g),M=d(b)}catch(A){return!1}if(R.length!=M.length)return!1;for(R.sort(),M.sort(),S=R.length-1;S>=0;S--)if(R[S]!=M[S])return!1;if(1===R.length)return i(g[I=R[0]],b[I],y);for(S=R.length-1;S>=0;S--)if(!i(g[I=R[S]],b[I],y))return!1;return typeof g==typeof b}(g,b,y)};function c(g){return null==g}ye.exports=i},2066:(ye,W,p)=>{var n=p(4569),f=p(9640),_=p(2563);const m=_.FP_Type,s=_.FP_DateTime,d=_.FP_Time;var u={};function h(i,c){return n.isEmpty(i)||n.isEmpty(c)?[]:f(i,c)}function r(i,c){return n.isEmpty(i)&&n.isEmpty(c)?[!0]:n.isEmpty(i)||n.isEmpty(c)?[]:f(i,c,{fuzzy:!0})}function o(i,c){let l=null;n.assertAtMostOne(i,"Singleton was expected"),n.assertAtMostOne(c,"Singleton was expected"),i=n.valData(i[0]),c=n.valData(c[0]);let g=i.constructor,b=c.constructor;var y;return g!=b&&(g!==String||b!==s&&b!==d?b===String&&(g===s||g===d)&&(y=g.checkString(c))&&(l=[i,y]):(y=b.checkString(i))&&(l=[y,c]),l||n.raiseError('Type of "'+i+'" ('+g.name+') did not match type of "'+c+'" ('+b.name+")","InequalityExpression")),l||[i,c]}u.equal=function(i,c){return h(i,c)},u.unequal=function(i,c){var l=h(i,c);return void 0===l?void 0:!l},u.equival=function(i,c){return r(i,c)},u.unequival=function(i,c){return!r(i,c)},u.lt=function(i,c){if(!i.length||!c.length)return[];const[l,g]=o(i,c);if(l instanceof m){const b=l.compare(g);return null===b?[]:b<0}return l0}return l>g},u.lte=function(i,c){if(!i.length||!c.length)return[];const[l,g]=o(i,c);if(l instanceof m){const b=l.compare(g);return null===b?[]:b<=0}return l<=g},u.gte=function(i,c){if(!i.length||!c.length)return[];const[l,g]=o(i,c);if(l instanceof m){const b=l.compare(g);return null===b?[]:b>=0}return l>=g},ye.exports=u},6127:(ye,W,p)=>{const n=p(4569),f=p(8774),_=p(9502),m={};function s(h){return JSON.stringify(d(h))}function d(h){return"object"==typeof h?Array.isArray(h)?h.map(d):Object.keys(h).sort().reduce((r,o)=>(r[o]=d(h[o]),r),{}):h}function u(h,r){let o=h.length<=r.length;if(o){var i={};for(let c=0,l=h.length;c0){let o={};for(let i=0,c=h.length;i{const n=p(9410),f=p(4569);p(7070);const _=p(9397);let m={},s=p(6127),d=p(8774),u=p(3853),h=p(6856),r=p(9502),o=p(2066),i=p(3142),c=p(2492),l=p(9835),g=p(5948),b=p(3425),y=p(2306);const S=p(2563),{FP_DateTime:I,FP_Time:R,FP_Quantity:M,FP_Type:A,ResourceNode:D,TypeInfo:w}=S;let x=D.makeResNode;function C(J,ie,ne,ae){if("Expr"===ne)return function(Ie){return J.$this=Ie,m.doEval(J,f.arraify(Ie),ae)};if("AnyAtRoot"===ne)return J.$this=J.dataRoot,m.doEval(J,J.dataRoot,ae);if("Identifier"===ne){if("TermExpression"==ae.type)return ae.text;throw new Error("Expected identifier node, got "+JSON.stringify(ae))}if("TypeSpecifier"===ne)return m.TypeSpecifier(J,ie,ae);J.$this=ie;var xe=m.doEval(J,ie,ae);if("Any"===ne)return xe;if(Array.isArray(ne)){if(0==xe.length)return[];ne=ne[0]}return r.singleton(xe,ne)}function F(J){return null==J||f.isEmpty(J)}function re(J,ie,ne,ae){var xe=m.invocationTable[ie];if(xe&&xe.fn){var Ie=ae?ae.length:0;if(2!=Ie)throw new Error("Infix invoke should have arity 2");var We=xe.arity[Ie];if(We){for(var Xe=[],ft=0;ft":{fn:o.gt,arity:{2:["Any","Any"]},nullable:!0},"<=":{fn:o.lte,arity:{2:["Any","Any"]},nullable:!0},">=":{fn:o.gte,arity:{2:["Any","Any"]},nullable:!0},containsOp:{fn:i.contains,arity:{2:["Any","Any"]}},inOp:{fn:i.in,arity:{2:["Any","Any"]}},isOp:{fn:S.isFn,arity:{2:["Any","TypeSpecifier"]}},"&":{fn:c.amp,arity:{2:["String","String"]}},"+":{fn:c.plus,arity:{2:["Any","Any"]},nullable:!0},"-":{fn:c.minus,arity:{2:["Any","Any"]},nullable:!0},"*":{fn:c.mul,arity:{2:["Number","Number"]},nullable:!0},"/":{fn:c.div,arity:{2:["Number","Number"]},nullable:!0},mod:{fn:c.mod,arity:{2:["Number","Number"]},nullable:!0},div:{fn:c.intdiv,arity:{2:["Number","Number"]},nullable:!0},or:{fn:y.orOp,arity:{2:[["Boolean"],["Boolean"]]}},and:{fn:y.andOp,arity:{2:[["Boolean"],["Boolean"]]}},xor:{fn:y.xorOp,arity:{2:[["Boolean"],["Boolean"]]}},implies:{fn:y.impliesOp,arity:{2:[["Boolean"],["Boolean"]]}}},m.InvocationExpression=function(J,ie,ne){return ne.children.reduce(function(ae,xe){return m.doEval(J,ae,xe)},ie)},m.TermExpression=function(J,ie,ne){return ie&&(ie=ie.map(ae=>ae instanceof Object&&ae.resourceType?x(ae,ae.resourceType):ae)),m.doEval(J,ie,ne.children[0])},m.PolarityExpression=function(J,ie,ne){var ae=ne.terminalNodeText[0],xe=m.doEval(J,ie,ne.children[0]);if(1!=xe.length)throw new Error("Unary "+ae+" can only be applied to an individual number.");if("number"!=typeof xe[0]||isNaN(xe[0]))throw new Error("Unary "+ae+" can only be applied to a number.");return"-"===ae&&(xe[0]=-xe[0]),xe},m.TypeSpecifier=function(J,ie,ne){let ae,xe;const Ie=ne.text.split(".").map(We=>We.replace(/(^`|`$)/g,""));switch(Ie.length){case 2:[ae,xe]=Ie;break;case 1:[xe]=Ie;break;default:throw new Error("Expected TypeSpecifier node, got "+JSON.stringify(ne))}return new w({namespace:ae,name:xe})},m.ExternalConstantTerm=function(J,ie,ne){var Ie=m.Identifier(J,ie,ne.children[0].children[0])[0],We=J.vars[Ie];if(!(Ie in J.vars))throw new Error("Attempting to access an undefined environment variable: "+Ie);return null==We?[]:We instanceof Array?We:[We]},m.LiteralTerm=function(J,ie,ne){var ae=ne.children[0];return ae?m.doEval(J,ie,ae):[ne.text]},m.StringLiteral=function(J,ie,ne){var ae=ne.text.replace(/(^'|'$)/g,"");return[ae=ae.replace(/\\(u\d{4}|.)/g,function(xe,Ie){switch(xe){case"\\r":return"\r";case"\\n":return"\n";case"\\t":return"\t";case"\\f":return"\f";default:return Ie.length>1?String.fromCharCode("0x"+Ie.slice(1)):Ie}})]},m.BooleanLiteral=function(J,ie,ne){return"true"===ne.text?[!0]:[!1]},m.QuantityLiteral=function(J,ie,ne){var ae=ne.children[0],xe=Number(ae.terminalNodeText[0]),Ie=ae.children[0],We=Ie.terminalNodeText[0];return!We&&Ie.children&&(We=Ie.children[0].terminalNodeText[0]),[new M(xe,We)]},m.DateTimeLiteral=function(J,ie,ne){var ae=ne.text.slice(1);return[new I(ae)]},m.TimeLiteral=function(J,ie,ne){var ae=ne.text.slice(1);return[new R(ae)]},m.NumberLiteral=function(J,ie,ne){return[Number(ne.text)]},m.Identifier=function(J,ie,ne){return[ne.text.replace(/(^`|`$)/g,"")]},m.InvocationTerm=function(J,ie,ne){return m.doEval(J,ie,ne.children[0])},m.MemberInvocation=function(J,ie,ne){const ae=m.doEval(J,ie,ne.children[0])[0],xe=J.model;return ie?f.isCapitalized(ae)?ie.filter(Ie=>Ie instanceof D&&Ie.path===ae):ie.reduce(function(Ie,We){var Xe=(We=x(We)).path+"."+ae;if(xe){let at=xe.pathsDefinedElsewhere[Xe];at&&(Xe=at)}let ft,Pe,et=xe&&xe.choiceTypePaths[Xe];if(et)for(let at of et){if(ft=We.data[ae+at],void 0!==ft){Xe=at,Pe=We.data["_"+ae];break}ft=We._data[ae]}else ft=We.data[ae],void 0!==ft?Pe=We.data["_"+ae]:ft=We._data[ae],"extension"===ae&&(Xe="Extension");return f.isSome(ft)&&(Array.isArray(ft)?Ie=Ie.concat(ft.map((at,pt)=>x(at,Xe,Pe&&Pe[pt]))):Ie.push(x(ft,Xe,Pe))),Ie},[]):[]},m.IndexerExpression=function(J,ie,ne){const xe=ne.children[1];var Ie=m.doEval(J,ie,ne.children[0]),We=m.doEval(J,ie,xe);if(f.isEmpty(We))return[];var Xe=parseInt(We[0]);return Ie&&f.isSome(Xe)&&Ie.length>Xe&&Xe>=0?[Ie[Xe]]:[]},m.Functn=function(J,ie,ne){return ne.children.map(function(ae){return m.doEval(J,ie,ae)})},m.realizeParams=function(J,ie,ne){return ne&&ne[0]&&ne[0].children?ne[0].children.map(function(ae){return m.doEval(J,ie,ae)}):[]},m.FunctionInvocation=function(J,ie,ne){var ae=m.doEval(J,ie,ne.children[0]);const xe=ae[0];return ae.shift(),function(J,ie,ne,ae){var Ie,xe=m.invocationTable[ie];if(xe){if(xe.arity){var We=ae?ae.length:0,Xe=xe.arity[We];if(Xe){for(var ft=[],Pe=0;Pe{const n=p(4569),{TypeInfo:f,ResourceNode:_}=p(2563);ye.exports={whereMacro:function(s,d){return!1===s||s?n.flatten(s.filter((u,h)=>(this.$index=h,d(u)[0]))):[]},extension:function(s,d){return!1!==s&&!s||!d?[]:n.flatten(s.map((u,h)=>{this.$index=h;const r=u&&(u.data&&u.data.extension||u._data&&u._data.extension);return r?r.filter(o=>o.url===d).map(o=>_.makeResNode(o,"Extension")):[]}))},selectMacro:function(s,d){return!1===s||s?n.flatten(s.map((u,h)=>(this.$index=h,d(u)))):[]},repeatMacro:function(s,d){if(!1!==s&&!s)return[];for(var u=[],h=s,o=null;0!=h.length;)(o=d(h.shift()))&&(u=u.concat(o),h=h.concat(o));return u},singleFn:function(s){return 1==s.length?s:0==s.length?[]:{$status:"error",$error:"Expected single"}},firstFn:function(s){return s[0]},lastFn:function(s){return s[s.length-1]},tailFn:function(s){return s.slice(1,s.length)},takeFn:function(s,d){return s.slice(0,d)},skipFn:function(s,d){return s.slice(d,s.length)},ofTypeFn:function(s,d){return s.filter(u=>f.fromValue(u).is(d))}}},2306:ye=>{ye.exports={orOp:function(p,n){if(Array.isArray(n)){if(!0===p)return!0;if(!1===p)return[];if(Array.isArray(p))return[]}return Array.isArray(p)?!0===n||[]:p||n},andOp:function(p,n){if(Array.isArray(n)){if(!0===p)return[];if(!1===p)return!1;if(Array.isArray(p))return[]}return Array.isArray(p)?!0===n&&[]:p&&n},xorOp:function(p,n){return Array.isArray(p)||Array.isArray(n)?[]:p&&!n||!p&&n},impliesOp:function(p,n){if(Array.isArray(n)){if(!0===p)return[];if(!1===p)return!0;if(Array.isArray(p))return[]}return Array.isArray(p)?!0===n||[]:!1===p||p&&n}}},2492:(ye,W,p)=>{var n=p(2563);let{FP_TimeBase:f,FP_Quantity:_}=n;const m=p(4569);var s={};function d(h){let r=m.valData(h);if("number"!=typeof r){if(1==r.length&&"number"==typeof(r=m.valData(r[0])))return r;throw new Error("Expected number, but got "+JSON.stringify(r||h))}return r}function u(h){return"number"!=typeof h&&0==h.length}s.amp=function(h,r){return(h||"")+(r||"")},s.plus=function(h,r){if(1==h.length&&1==r.length){var o=m.valData(h[0]),i=m.valData(r[0]);if("string"==typeof o&&"string"==typeof i||"number"==typeof o&&"number"==typeof i)return o+i;if(o instanceof f&&i instanceof _)return o.plus(i)}throw new Error("Cannot "+JSON.stringify(h)+" + "+JSON.stringify(r))},s.minus=function(h,r){if(1==h.length&&1==r.length){var o=m.valData(h[0]),i=m.valData(r[0]);if("number"==typeof o&&"number"==typeof i)return o-i;if(o instanceof f&&i instanceof _)return o.plus(new _(-i.value,i.unit))}throw new Error("Cannot "+JSON.stringify(h)+" - "+JSON.stringify(r))},s.mul=function(h,r){return h*r},s.div=function(h,r){return h/r},s.intdiv=function(h,r){return Math.floor(h/r)},s.mod=function(h,r){return h%r},s.abs=function(h){if(u(h))return[];{let r=d(h);return Math.abs(r)}},s.ceiling=function(h){if(u(h))return[];{let r=d(h);return Math.ceil(r)}},s.exp=function(h){if(u(h))return[];{let r=d(h);return Math.exp(r)}},s.floor=function(h){if(u(h))return[];{let r=d(h);return Math.floor(r)}},s.ln=function(h){if(u(h))return[];{let r=d(h);return Math.log(r)}},s.log=function(h,r){if(u(h)||u(r))return[];{let o=d(h),i=d(r);return Math.log(o)/Math.log(i)}},s.power=function(h,r){if(u(h)||u(r))return[];{let o=d(h),i=d(r);return o<0&&Math.floor(i)!=i?[]:Math.pow(o,i)}},s.round=function(h,r){if(u(h))return[];{let o=d(h);if(u(r))return Math.round(o);{let i=d(r),c=Math.pow(10,i);return Math.round(o*c)/c}}},s.sqrt=function(h){if(u(h))return[];{let r=d(h);return r<0?[]:Math.sqrt(r)}},s.truncate=function(h){if(u(h))return[];{let r=d(h);return Math.trunc(r)}},ye.exports=s},9502:(ye,W,p)=>{var n=p(4569),f=p(2563);const{FP_Quantity:_}=f;var m={iifMacro:function(l,g,b,y){return n.isTrue(g(l))?b(l):y?y(l):[]},traceFn:function(l,g){return console.log("TRACE:["+(g||"")+"]",JSON.stringify(l,null," ")),l}},s=/^[+-]?\d+$/;m.toInteger=function(l){if(1!==l.length)return[];var g=n.valData(l[0]);return!1===g?0:!0===g?1:"number"==typeof g?Number.isInteger(g)?g:[]:"string"==typeof g&&s.test(g)?parseInt(g):[]};const d=/^((\+|-)?\d+(\.\d+)?)\s*(('[^']+')|([a-zA-Z]+))?$/;m.toQuantity=function(l,g){let b;if(g&&!_.mapTimeUnitsToUCUMCode[g]&&(g=`'${g}'`),l.length>1)throw new Error("Could not convert to quantity: input collection contains multiple items");if(1===l.length){const S=n.valData(l[0]);let I;if("number"==typeof S)b=new _(S,"'1'");else if(S instanceof _)b=S;else if("boolean"==typeof S)b=new _(S?1:0,"'1'");else if("string"==typeof S&&(I=d.exec(S))){const R=I[1],M=I[5],A=I[6];(!A||_.mapTimeUnitsToUCUMCode[A])&&(b=new _(Number(R),M||A||"'1'"))}b&&g&&b.unit!==g&&(b=_.convUnitTo(b.unit,b.value,g))}return b||[]};var h=/^[+-]?\d+(\.\d+)?$/;function r(l){let g=l.slice(3);m["to"+g]=function(b){var y=[];if(b.length>1)throw Error("to "+g+" called for a collection of length "+b.length);if(1===b.length){var S=f[l].checkString(n.valData(b[0]));S&&(y=S)}return y}}m.toDecimal=function(l){if(1!==l.length)return[];var g=n.valData(l[0]);return!1===g?0:!0===g?1:"number"==typeof g?g:"string"==typeof g&&h.test(g)?parseFloat(g):[]},m.toString=function(l){return 1!==l.length?[]:n.valData(l[0]).toString()},r("FP_DateTime"),r("FP_Time");const o=["true","t","yes","y","1","1.0"].reduce((l,g)=>(l[g]=!0,l),{}),i=["false","f","no","n","0","0.0"].reduce((l,g)=>(l[g]=!0,l),{});m.toBoolean=function(l){if(1!==l.length)return[];const g=n.valData(l[0]);switch(typeof g){case"boolean":return g;case"number":if(1===g)return!0;if(0===g)return!1;break;case"string":const b=g.toLowerCase();if(o[b])return!0;if(i[b])return!1}return[]},m.createConvertsToFn=function(l,g){return"string"==typeof g?function(b){return 1!==b.length?[]:typeof l(b)===g}:function(b){return 1!==b.length?[]:l(b)instanceof g}};const c={Integer:function(l){const g=n.valData(l[0]);if(Number.isInteger(g))return g},Boolean:function(l){const g=n.valData(l[0]);return!0===g||!1===g?g:1===l.length||void 0},Number:function(l){const g=n.valData(l[0]);if("number"==typeof g)return g},String:function(l){const g=n.valData(l[0]);if("string"==typeof g)return g}};m.singleton=function(l,g){if(l.length>1)throw new Error("Unexpected collection"+JSON.stringify(l)+"; expected singleton of type "+g);if(0===l.length)return[];const b=c[g];if(b){const y=b(l);if(void 0!==y)return y;throw new Error(`Expected ${g.toLowerCase()}, but got: ${JSON.stringify(l)}`)}throw new Error("Not supported type "+g)},ye.exports=m},5948:(ye,W,p)=>{const n=p(4569),{ResourceNode:f}=p(2563);let _=f.makeResNode;var m={children:function(s){let d=this.model;return s.reduce(function(u,h){let r=n.valData(h);if(h=_(h),"object"==typeof r){for(var o of Object.keys(r)){var i=r[o],c=h.path+"."+o;if(d){let l=d.pathsDefinedElsewhere[c];l&&(c=l)}Array.isArray(i)?u.push.apply(u,i.map(l=>_(l,c))):u.push(_(i,c))}return u}return u},[])},descendants:function(s){for(var d=m.children.call(this,s),u=[];d.length>0;)u.push.apply(u,d),d=m.children.call(this,d);return u}};ye.exports=m},7601:ye=>{let W={};function p(m){const d=/(\d+)(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/.exec(""+ +m);if(!d)return 0;const u=d[2];return Math.max(0,("0"===u?0:(u||"").length)-(d[3]||0))}function n(m,s){const d=Math.pow(10,s);return Math.round(m*d)/d}function _(m){return 1e-8*Math.round(m/1e-8)}W.isEquivalent=function(m,s){if(Number.isInteger(m)&&Number.isInteger(s))return m===s;const d=Math.min(p(m),p(s));return 0===d?Math.round(m)===Math.round(s):n(m,d)===n(s,d)},W.isEqual=function(m,s){return _(m)===_(s)},ye.exports=W},4981:(ye,W,p)=>{W.atn=p(5988),W.codepointat=p(3747),W.dfa=p(6630),W.fromcodepoint=p(617),W.tree=p(4521),W.error=p(107),W.Token=p(9696).Token,W.CommonToken=p(9696).CommonToken,W.InputStream=p(3673).InputStream,W.CommonTokenStream=p(3973).CommonTokenStream,W.Lexer=p(8123).Lexer,W.Parser=p(4541).Parser;var n=p(8267);W.PredictionContextCache=n.PredictionContextCache,W.ParserRuleContext=p(7335).ParserRuleContext,W.Interval=p(3491).Interval,W.Utils=p(3126)},4621:(ye,W,p)=>{var n=p(4981),f=["\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964","\x02A\u0203\b\x01\x04\x02\t\x02\x04\x03\t\x03\x04","\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t","\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04","\f\t\f\x04\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10","\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13","\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17","\t\x17\x04\x18\t\x18\x04\x19\t\x19\x04\x1a\t\x1a","\x04\x1b\t\x1b\x04\x1c\t\x1c\x04\x1d\t\x1d\x04\x1e",'\t\x1e\x04\x1f\t\x1f\x04 \t \x04!\t!\x04"\t"\x04#',"\t#\x04$\t$\x04%\t%\x04&\t&\x04'\t'\x04(\t(\x04)\t)\x04","*\t*\x04+\t+\x04,\t,\x04-\t-\x04.\t.\x04/\t/\x040\t0\x04","1\t1\x042\t2\x043\t3\x044\t4\x045\t5\x046\t6\x047\t7\x04","8\t8\x049\t9\x04:\t:\x04;\t;\x04<\t<\x04=\t=\x04>\t>\x04","?\t?\x04@\t@\x04A\tA\x04B\tB\x04C\tC\x04D\tD\x03\x02\x03","\x02\x03\x03\x03\x03\x03\x04\x03\x04\x03\x05\x03","\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\b\x03","\b\x03\t\x03\t\x03\t\x03\t\x03\n\x03\n\x03\n\x03\n\x03","\v\x03\v\x03\f\x03\f\x03\r\x03\r\x03\r\x03\x0e","\x03\x0e\x03\x0f\x03\x0f\x03\x10\x03\x10\x03\x10","\x03\x11\x03\x11\x03\x11\x03\x12\x03\x12\x03\x12","\x03\x13\x03\x13\x03\x14\x03\x14\x03\x15\x03\x15","\x03\x15\x03\x16\x03\x16\x03\x16\x03\x17\x03\x17","\x03\x17\x03\x18\x03\x18\x03\x18\x03\x18\x03\x18","\x03\x18\x03\x18\x03\x18\x03\x18\x03\x19\x03\x19","\x03\x19\x03\x19\x03\x1a\x03\x1a\x03\x1a\x03\x1b","\x03\x1b\x03\x1b\x03\x1b\x03\x1c\x03\x1c\x03\x1c","\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1d","\x03\x1d\x03\x1e\x03\x1e\x03\x1f\x03\x1f\x03 ",'\x03 \x03!\x03!\x03!\x03!\x03!\x03"\x03"\x03"\x03','"\x03"\x03"\x03#\x03#\x03$\x03$\x03$\x03$\x03$',"\x03$\x03%\x03%\x03%\x03%\x03%\x03%\x03%\x03&\x03","&\x03&\x03&\x03&\x03&\x03&\x03'\x03'\x03(\x03(\x03","(\x03(\x03(\x03)\x03)\x03)\x03)\x03)\x03)\x03*\x03","*\x03*\x03*\x03*\x03+\x03+\x03+\x03+\x03,\x03,\x03",",\x03,\x03,\x03-\x03-\x03-\x03-\x03-\x03-\x03-\x03",".\x03.\x03.\x03.\x03.\x03.\x03.\x03/\x03/\x03/\x03","/\x03/\x03/\x03/\x03/\x03/\x03/\x03/\x03/\x030\x03","0\x030\x030\x030\x030\x031\x031\x031\x031\x031\x03","1\x031\x032\x032\x032\x032\x032\x032\x033\x033\x03","3\x033\x033\x034\x034\x034\x034\x034\x034\x035\x03","5\x035\x035\x035\x035\x035\x035\x036\x036\x036\x03","6\x036\x036\x036\x036\x037\x037\x037\x037\x037\x03","7\x037\x037\x037\x037\x037\x037\x037\x038\x038\x03","8\x038\x038\x038\x038\x038\x038\x038\x038\x038\x03","8\x058\u0183\n8\x058\u0185\n8\x058\u0187\n8\x038\x058\u018a","\n8\x039\x039\x039\x039\x03:\x03:\x03:\x03:\x03:\x03",":\x03:\x03:\x03:\x03:\x06:\u019a\n:\r:\x0e:\u019b\x05",":\u019e\n:\x05:\u01a0\n:\x05:\u01a2\n:\x03:\x03:\x03:\x03",":\x03:\x03:\x03:\x05:\u01ab\n:\x03;\x05;\u01ae\n;\x03",";\x07;\u01b1\n;\f;\x0e;\u01b4\v;\x03<\x03<\x03<\x07","<\u01b9\n<\f<\x0e<\u01bc\v<\x03<\x03<\x03=\x03=\x03","=\x07=\u01c3\n=\f=\x0e=\u01c6\v=\x03=\x03=\x03>\x06",">\u01cb\n>\r>\x0e>\u01cc\x03>\x03>\x06>\u01d1\n>\r>\x0e>\u01d2","\x05>\u01d5\n>\x03?\x06?\u01d8\n?\r?\x0e?\u01d9\x03?\x03","?\x03@\x03@\x03@\x03@\x07@\u01e2\n@\f@\x0e@\u01e5\v","@\x03@\x03@\x03@\x03@\x03@\x03A\x03A\x03A\x03A\x07","A\u01f0\nA\fA\x0eA\u01f3\vA\x03A\x03A\x03B\x03B\x03","B\x05B\u01fa\nB\x03C\x03C\x03C\x03C\x03C\x03C\x03D\x03","D\x03\u01e3\x02E\x03\x03\x05\x04\x07\x05\t\x06\v","\x07\r\b\x0f\t\x11\n\x13\v\x15\f\x17\r\x19\x0e\x1b","\x0f\x1d\x10\x1f\x11!\x12#\x13%\x14'\x15)\x16+","\x17-\x18/\x191\x1a3\x1b5\x1c7\x1d9\x1e;\x1f= ?!A","\"C#E$G%I&K'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s\x02u;w}","?\x7f@\x81A\x83\x02\x85\x02\x87\x02\x03\x02\f\x03","\x022;\x04\x02--//\x05\x02C\\aac|\x06\x022;C\\aac|\x04",'\x02^^bb\x03\x02))\x05\x02\v\f\x0f\x0f""\x04\x02',"\f\f\x0f\x0f\n\x02))11^^bbhhppttvv\x05\x022;CHch\x02\u0214","\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02","\x02\x07\x03\x02\x02\x02\x02\t\x03\x02\x02\x02","\x02\v\x03\x02\x02\x02\x02\r\x03\x02\x02\x02","\x02\x0f\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02","\x02\x13\x03\x02\x02\x02\x02\x15\x03\x02\x02\x02","\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02\x02\x02","\x02\x1b\x03\x02\x02\x02\x02\x1d\x03\x02\x02\x02","\x02\x1f\x03\x02\x02\x02\x02!\x03\x02\x02\x02","\x02#\x03\x02\x02\x02\x02%\x03\x02\x02\x02\x02","'\x03\x02\x02\x02\x02)\x03\x02\x02\x02\x02+\x03","\x02\x02\x02\x02-\x03\x02\x02\x02\x02/\x03\x02","\x02\x02\x021\x03\x02\x02\x02\x023\x03\x02\x02","\x02\x025\x03\x02\x02\x02\x027\x03\x02\x02\x02","\x029\x03\x02\x02\x02\x02;\x03\x02\x02\x02\x02","=\x03\x02\x02\x02\x02?\x03\x02\x02\x02\x02A\x03","\x02\x02\x02\x02C\x03\x02\x02\x02\x02E\x03\x02","\x02\x02\x02G\x03\x02\x02\x02\x02I\x03\x02\x02","\x02\x02K\x03\x02\x02\x02\x02M\x03\x02\x02\x02","\x02O\x03\x02\x02\x02\x02Q\x03\x02\x02\x02\x02","S\x03\x02\x02\x02\x02U\x03\x02\x02\x02\x02W\x03","\x02\x02\x02\x02Y\x03\x02\x02\x02\x02[\x03\x02","\x02\x02\x02]\x03\x02\x02\x02\x02_\x03\x02\x02","\x02\x02a\x03\x02\x02\x02\x02c\x03\x02\x02\x02","\x02e\x03\x02\x02\x02\x02g\x03\x02\x02\x02\x02","i\x03\x02\x02\x02\x02k\x03\x02\x02\x02\x02m\x03","\x02\x02\x02\x02o\x03\x02\x02\x02\x02q\x03\x02","\x02\x02\x02u\x03\x02\x02\x02\x02w\x03\x02\x02","\x02\x02y\x03\x02\x02\x02\x02{\x03\x02\x02\x02","\x02}\x03\x02\x02\x02\x02\x7f\x03\x02\x02\x02","\x02\x81\x03\x02\x02\x02\x03\x89\x03\x02\x02\x02","\x05\x8b\x03\x02\x02\x02\x07\x8d\x03\x02\x02\x02","\t\x8f\x03\x02\x02\x02\v\x91\x03\x02\x02\x02","\r\x93\x03\x02\x02\x02\x0f\x95\x03\x02\x02\x02","\x11\x97\x03\x02\x02\x02\x13\x9b\x03\x02\x02\x02","\x15\x9f\x03\x02\x02\x02\x17\xa1\x03\x02\x02\x02","\x19\xa3\x03\x02\x02\x02\x1b\xa6\x03\x02\x02\x02","\x1d\xa8\x03\x02\x02\x02\x1f\xaa\x03\x02\x02\x02","!\xad\x03\x02\x02\x02#\xb0\x03\x02\x02\x02%\xb3","\x03\x02\x02\x02'\xb5\x03\x02\x02\x02)\xb7\x03","\x02\x02\x02+\xba\x03\x02\x02\x02-\xbd\x03\x02","\x02\x02/\xc0\x03\x02\x02\x021\xc9\x03\x02\x02","\x023\xcd\x03\x02\x02\x025\xd0\x03\x02\x02\x02","7\xd4\x03\x02\x02\x029\xdc\x03\x02\x02\x02;\xde","\x03\x02\x02\x02=\xe0\x03\x02\x02\x02?\xe2\x03","\x02\x02\x02A\xe4\x03\x02\x02\x02C\xe9\x03\x02","\x02\x02E\xef\x03\x02\x02\x02G\xf1\x03\x02\x02","\x02I\xf7\x03\x02\x02\x02K\xfe\x03\x02\x02\x02","M\u0105\x03\x02\x02\x02O\u0107\x03\x02\x02\x02Q\u010c","\x03\x02\x02\x02S\u0112\x03\x02\x02\x02U\u0117\x03","\x02\x02\x02W\u011b\x03\x02\x02\x02Y\u0120\x03\x02","\x02\x02[\u0127\x03\x02\x02\x02]\u012e\x03\x02\x02","\x02_\u013a\x03\x02\x02\x02a\u0140\x03\x02\x02\x02","c\u0147\x03\x02\x02\x02e\u014d\x03\x02\x02\x02g\u0152","\x03\x02\x02\x02i\u0158\x03\x02\x02\x02k\u0160\x03","\x02\x02\x02m\u0168\x03\x02\x02\x02o\u0175\x03\x02","\x02\x02q\u018b\x03\x02\x02\x02s\u018f\x03\x02\x02","\x02u\u01ad\x03\x02\x02\x02w\u01b5\x03\x02\x02\x02","y\u01bf\x03\x02\x02\x02{\u01ca\x03\x02\x02\x02}\u01d7","\x03\x02\x02\x02\x7f\u01dd\x03\x02\x02\x02\x81\u01eb","\x03\x02\x02\x02\x83\u01f6\x03\x02\x02\x02\x85\u01fb","\x03\x02\x02\x02\x87\u0201\x03\x02\x02\x02\x89\x8a","\x070\x02\x02\x8a\x04\x03\x02\x02\x02\x8b\x8c","\x07]\x02\x02\x8c\x06\x03\x02\x02\x02\x8d\x8e","\x07_\x02\x02\x8e\b\x03\x02\x02\x02\x8f\x90\x07","-\x02\x02\x90\n\x03\x02\x02\x02\x91\x92\x07/\x02","\x02\x92\f\x03\x02\x02\x02\x93\x94\x07,\x02\x02","\x94\x0e\x03\x02\x02\x02\x95\x96\x071\x02\x02","\x96\x10\x03\x02\x02\x02\x97\x98\x07f\x02\x02","\x98\x99\x07k\x02\x02\x99\x9a\x07x\x02\x02\x9a","\x12\x03\x02\x02\x02\x9b\x9c\x07o\x02\x02\x9c","\x9d\x07q\x02\x02\x9d\x9e\x07f\x02\x02\x9e\x14","\x03\x02\x02\x02\x9f\xa0\x07(\x02\x02\xa0\x16","\x03\x02\x02\x02\xa1\xa2\x07~\x02\x02\xa2\x18","\x03\x02\x02\x02\xa3\xa4\x07>\x02\x02\xa4\xa5","\x07?\x02\x02\xa5\x1a\x03\x02\x02\x02\xa6\xa7","\x07>\x02\x02\xa7\x1c\x03\x02\x02\x02\xa8\xa9","\x07@\x02\x02\xa9\x1e\x03\x02\x02\x02\xaa\xab","\x07@\x02\x02\xab\xac\x07?\x02\x02\xac \x03\x02","\x02\x02\xad\xae\x07k\x02\x02\xae\xaf\x07u\x02",'\x02\xaf"\x03\x02\x02\x02\xb0\xb1\x07c\x02\x02',"\xb1\xb2\x07u\x02\x02\xb2$\x03\x02\x02\x02\xb3","\xb4\x07?\x02\x02\xb4&\x03\x02\x02\x02\xb5\xb6","\x07\x80\x02\x02\xb6(\x03\x02\x02\x02\xb7\xb8","\x07#\x02\x02\xb8\xb9\x07?\x02\x02\xb9*\x03\x02","\x02\x02\xba\xbb\x07#\x02\x02\xbb\xbc\x07\x80","\x02\x02\xbc,\x03\x02\x02\x02\xbd\xbe\x07k\x02","\x02\xbe\xbf\x07p\x02\x02\xbf.\x03\x02\x02\x02","\xc0\xc1\x07e\x02\x02\xc1\xc2\x07q\x02\x02\xc2","\xc3\x07p\x02\x02\xc3\xc4\x07v\x02\x02\xc4\xc5","\x07c\x02\x02\xc5\xc6\x07k\x02\x02\xc6\xc7\x07","p\x02\x02\xc7\xc8\x07u\x02\x02\xc80\x03\x02\x02","\x02\xc9\xca\x07c\x02\x02\xca\xcb\x07p\x02\x02","\xcb\xcc\x07f\x02\x02\xcc2\x03\x02\x02\x02\xcd","\xce\x07q\x02\x02\xce\xcf\x07t\x02\x02\xcf4\x03","\x02\x02\x02\xd0\xd1\x07z\x02\x02\xd1\xd2\x07","q\x02\x02\xd2\xd3\x07t\x02\x02\xd36\x03\x02\x02","\x02\xd4\xd5\x07k\x02\x02\xd5\xd6\x07o\x02\x02","\xd6\xd7\x07r\x02\x02\xd7\xd8\x07n\x02\x02\xd8","\xd9\x07k\x02\x02\xd9\xda\x07g\x02\x02\xda\xdb","\x07u\x02\x02\xdb8\x03\x02\x02\x02\xdc\xdd\x07","*\x02\x02\xdd:\x03\x02\x02\x02\xde\xdf\x07+\x02","\x02\xdf<\x03\x02\x02\x02\xe0\xe1\x07}\x02\x02","\xe1>\x03\x02\x02\x02\xe2\xe3\x07\x7f\x02\x02","\xe3@\x03\x02\x02\x02\xe4\xe5\x07v\x02\x02\xe5","\xe6\x07t\x02\x02\xe6\xe7\x07w\x02\x02\xe7\xe8","\x07g\x02\x02\xe8B\x03\x02\x02\x02\xe9\xea\x07","h\x02\x02\xea\xeb\x07c\x02\x02\xeb\xec\x07n\x02","\x02\xec\xed\x07u\x02\x02\xed\xee\x07g\x02\x02","\xeeD\x03\x02\x02\x02\xef\xf0\x07'\x02\x02\xf0","F\x03\x02\x02\x02\xf1\xf2\x07&\x02\x02\xf2\xf3","\x07v\x02\x02\xf3\xf4\x07j\x02\x02\xf4\xf5\x07","k\x02\x02\xf5\xf6\x07u\x02\x02\xf6H\x03\x02\x02","\x02\xf7\xf8\x07&\x02\x02\xf8\xf9\x07k\x02\x02","\xf9\xfa\x07p\x02\x02\xfa\xfb\x07f\x02\x02\xfb","\xfc\x07g\x02\x02\xfc\xfd\x07z\x02\x02\xfdJ\x03","\x02\x02\x02\xfe\xff\x07&\x02\x02\xff\u0100\x07","v\x02\x02\u0100\u0101\x07q\x02\x02\u0101\u0102\x07v\x02","\x02\u0102\u0103\x07c\x02\x02\u0103\u0104\x07n\x02\x02","\u0104L\x03\x02\x02\x02\u0105\u0106\x07.\x02\x02\u0106","N\x03\x02\x02\x02\u0107\u0108\x07{\x02\x02\u0108\u0109","\x07g\x02\x02\u0109\u010a\x07c\x02\x02\u010a\u010b\x07","t\x02\x02\u010bP\x03\x02\x02\x02\u010c\u010d\x07o\x02","\x02\u010d\u010e\x07q\x02\x02\u010e\u010f\x07p\x02\x02","\u010f\u0110\x07v\x02\x02\u0110\u0111\x07j\x02\x02\u0111","R\x03\x02\x02\x02\u0112\u0113\x07y\x02\x02\u0113\u0114","\x07g\x02\x02\u0114\u0115\x07g\x02\x02\u0115\u0116\x07","m\x02\x02\u0116T\x03\x02\x02\x02\u0117\u0118\x07f\x02","\x02\u0118\u0119\x07c\x02\x02\u0119\u011a\x07{\x02\x02","\u011aV\x03\x02\x02\x02\u011b\u011c\x07j\x02\x02\u011c","\u011d\x07q\x02\x02\u011d\u011e\x07w\x02\x02\u011e\u011f","\x07t\x02\x02\u011fX\x03\x02\x02\x02\u0120\u0121\x07","o\x02\x02\u0121\u0122\x07k\x02\x02\u0122\u0123\x07p\x02","\x02\u0123\u0124\x07w\x02\x02\u0124\u0125\x07v\x02\x02","\u0125\u0126\x07g\x02\x02\u0126Z\x03\x02\x02\x02\u0127","\u0128\x07u\x02\x02\u0128\u0129\x07g\x02\x02\u0129\u012a","\x07e\x02\x02\u012a\u012b\x07q\x02\x02\u012b\u012c\x07","p\x02\x02\u012c\u012d\x07f\x02\x02\u012d\\\x03\x02\x02","\x02\u012e\u012f\x07o\x02\x02\u012f\u0130\x07k\x02\x02","\u0130\u0131\x07n\x02\x02\u0131\u0132\x07n\x02\x02\u0132","\u0133\x07k\x02\x02\u0133\u0134\x07u\x02\x02\u0134\u0135","\x07g\x02\x02\u0135\u0136\x07e\x02\x02\u0136\u0137\x07","q\x02\x02\u0137\u0138\x07p\x02\x02\u0138\u0139\x07f\x02","\x02\u0139^\x03\x02\x02\x02\u013a\u013b\x07{\x02\x02","\u013b\u013c\x07g\x02\x02\u013c\u013d\x07c\x02\x02\u013d","\u013e\x07t\x02\x02\u013e\u013f\x07u\x02\x02\u013f`\x03","\x02\x02\x02\u0140\u0141\x07o\x02\x02\u0141\u0142\x07","q\x02\x02\u0142\u0143\x07p\x02\x02\u0143\u0144\x07v\x02","\x02\u0144\u0145\x07j\x02\x02\u0145\u0146\x07u\x02\x02","\u0146b\x03\x02\x02\x02\u0147\u0148\x07y\x02\x02\u0148","\u0149\x07g\x02\x02\u0149\u014a\x07g\x02\x02\u014a\u014b","\x07m\x02\x02\u014b\u014c\x07u\x02\x02\u014cd\x03\x02","\x02\x02\u014d\u014e\x07f\x02\x02\u014e\u014f\x07c\x02","\x02\u014f\u0150\x07{\x02\x02\u0150\u0151\x07u\x02\x02","\u0151f\x03\x02\x02\x02\u0152\u0153\x07j\x02\x02\u0153","\u0154\x07q\x02\x02\u0154\u0155\x07w\x02\x02\u0155\u0156","\x07t\x02\x02\u0156\u0157\x07u\x02\x02\u0157h\x03\x02","\x02\x02\u0158\u0159\x07o\x02\x02\u0159\u015a\x07k\x02","\x02\u015a\u015b\x07p\x02\x02\u015b\u015c\x07w\x02\x02","\u015c\u015d\x07v\x02\x02\u015d\u015e\x07g\x02\x02\u015e","\u015f\x07u\x02\x02\u015fj\x03\x02\x02\x02\u0160\u0161","\x07u\x02\x02\u0161\u0162\x07g\x02\x02\u0162\u0163\x07","e\x02\x02\u0163\u0164\x07q\x02\x02\u0164\u0165\x07p\x02","\x02\u0165\u0166\x07f\x02\x02\u0166\u0167\x07u\x02\x02","\u0167l\x03\x02\x02\x02\u0168\u0169\x07o\x02\x02\u0169","\u016a\x07k\x02\x02\u016a\u016b\x07n\x02\x02\u016b\u016c","\x07n\x02\x02\u016c\u016d\x07k\x02\x02\u016d\u016e\x07","u\x02\x02\u016e\u016f\x07g\x02\x02\u016f\u0170\x07e\x02","\x02\u0170\u0171\x07q\x02\x02\u0171\u0172\x07p\x02\x02","\u0172\u0173\x07f\x02\x02\u0173\u0174\x07u\x02\x02\u0174","n\x03\x02\x02\x02\u0175\u0176\x07B\x02\x02\u0176\u0177","\t\x02\x02\x02\u0177\u0178\t\x02\x02\x02\u0178\u0179\t\x02","\x02\x02\u0179\u0186\t\x02\x02\x02\u017a\u017b\x07/\x02","\x02\u017b\u017c\t\x02\x02\x02\u017c\u0184\t\x02\x02\x02","\u017d\u017e\x07/\x02\x02\u017e\u017f\t\x02\x02\x02\u017f","\u0182\t\x02\x02\x02\u0180\u0181\x07V\x02\x02\u0181\u0183","\x05s:\x02\u0182\u0180\x03\x02\x02\x02\u0182\u0183\x03","\x02\x02\x02\u0183\u0185\x03\x02\x02\x02\u0184\u017d\x03","\x02\x02\x02\u0184\u0185\x03\x02\x02\x02\u0185\u0187\x03","\x02\x02\x02\u0186\u017a\x03\x02\x02\x02\u0186\u0187\x03","\x02\x02\x02\u0187\u0189\x03\x02\x02\x02\u0188\u018a\x07","\\\x02\x02\u0189\u0188\x03\x02\x02\x02\u0189\u018a\x03","\x02\x02\x02\u018ap\x03\x02\x02\x02\u018b\u018c\x07","B\x02\x02\u018c\u018d\x07V\x02\x02\u018d\u018e\x05s:\x02","\u018er\x03\x02\x02\x02\u018f\u0190\t\x02\x02\x02\u0190","\u01a1\t\x02\x02\x02\u0191\u0192\x07<\x02\x02\u0192\u0193","\t\x02\x02\x02\u0193\u019f\t\x02\x02\x02\u0194\u0195\x07","<\x02\x02\u0195\u0196\t\x02\x02\x02\u0196\u019d\t\x02\x02","\x02\u0197\u0199\x070\x02\x02\u0198\u019a\t\x02\x02\x02","\u0199\u0198\x03\x02\x02\x02\u019a\u019b\x03\x02\x02\x02","\u019b\u0199\x03\x02\x02\x02\u019b\u019c\x03\x02\x02\x02","\u019c\u019e\x03\x02\x02\x02\u019d\u0197\x03\x02\x02\x02","\u019d\u019e\x03\x02\x02\x02\u019e\u01a0\x03\x02\x02\x02","\u019f\u0194\x03\x02\x02\x02\u019f\u01a0\x03\x02\x02\x02","\u01a0\u01a2\x03\x02\x02\x02\u01a1\u0191\x03\x02\x02\x02","\u01a1\u01a2\x03\x02\x02\x02\u01a2\u01aa\x03\x02\x02\x02","\u01a3\u01ab\x07\\\x02\x02\u01a4\u01a5\t\x03\x02\x02\u01a5","\u01a6\t\x02\x02\x02\u01a6\u01a7\t\x02\x02\x02\u01a7\u01a8","\x07<\x02\x02\u01a8\u01a9\t\x02\x02\x02\u01a9\u01ab\t\x02","\x02\x02\u01aa\u01a3\x03\x02\x02\x02\u01aa\u01a4\x03\x02","\x02\x02\u01aa\u01ab\x03\x02\x02\x02\u01abt\x03\x02","\x02\x02\u01ac\u01ae\t\x04\x02\x02\u01ad\u01ac\x03\x02","\x02\x02\u01ae\u01b2\x03\x02\x02\x02\u01af\u01b1\t\x05","\x02\x02\u01b0\u01af\x03\x02\x02\x02\u01b1\u01b4\x03\x02","\x02\x02\u01b2\u01b0\x03\x02\x02\x02\u01b2\u01b3\x03\x02","\x02\x02\u01b3v\x03\x02\x02\x02\u01b4\u01b2\x03\x02","\x02\x02\u01b5\u01ba\x07b\x02\x02\u01b6\u01b9\x05\x83","B\x02\u01b7\u01b9\n\x06\x02\x02\u01b8\u01b6\x03\x02\x02","\x02\u01b8\u01b7\x03\x02\x02\x02\u01b9\u01bc\x03\x02\x02","\x02\u01ba\u01b8\x03\x02\x02\x02\u01ba\u01bb\x03\x02\x02","\x02\u01bb\u01bd\x03\x02\x02\x02\u01bc\u01ba\x03\x02\x02","\x02\u01bd\u01be\x07b\x02\x02\u01bex\x03\x02\x02\x02","\u01bf\u01c4\x07)\x02\x02\u01c0\u01c3\x05\x83B\x02\u01c1","\u01c3\n\x07\x02\x02\u01c2\u01c0\x03\x02\x02\x02\u01c2","\u01c1\x03\x02\x02\x02\u01c3\u01c6\x03\x02\x02\x02\u01c4","\u01c2\x03\x02\x02\x02\u01c4\u01c5\x03\x02\x02\x02\u01c5","\u01c7\x03\x02\x02\x02\u01c6\u01c4\x03\x02\x02\x02\u01c7","\u01c8\x07)\x02\x02\u01c8z\x03\x02\x02\x02\u01c9\u01cb","\t\x02\x02\x02\u01ca\u01c9\x03\x02\x02\x02\u01cb\u01cc","\x03\x02\x02\x02\u01cc\u01ca\x03\x02\x02\x02\u01cc\u01cd","\x03\x02\x02\x02\u01cd\u01d4\x03\x02\x02\x02\u01ce\u01d0","\x070\x02\x02\u01cf\u01d1\t\x02\x02\x02\u01d0\u01cf\x03","\x02\x02\x02\u01d1\u01d2\x03\x02\x02\x02\u01d2\u01d0\x03","\x02\x02\x02\u01d2\u01d3\x03\x02\x02\x02\u01d3\u01d5\x03","\x02\x02\x02\u01d4\u01ce\x03\x02\x02\x02\u01d4\u01d5\x03","\x02\x02\x02\u01d5|\x03\x02\x02\x02\u01d6\u01d8\t\b\x02","\x02\u01d7\u01d6\x03\x02\x02\x02\u01d8\u01d9\x03\x02\x02","\x02\u01d9\u01d7\x03\x02\x02\x02\u01d9\u01da\x03\x02\x02","\x02\u01da\u01db\x03\x02\x02\x02\u01db\u01dc\b?\x02\x02","\u01dc~\x03\x02\x02\x02\u01dd\u01de\x071\x02\x02\u01de","\u01df\x07,\x02\x02\u01df\u01e3\x03\x02\x02\x02\u01e0","\u01e2\v\x02\x02\x02\u01e1\u01e0\x03\x02\x02\x02\u01e2","\u01e5\x03\x02\x02\x02\u01e3\u01e4\x03\x02\x02\x02\u01e3","\u01e1\x03\x02\x02\x02\u01e4\u01e6\x03\x02\x02\x02\u01e5","\u01e3\x03\x02\x02\x02\u01e6\u01e7\x07,\x02\x02\u01e7","\u01e8\x071\x02\x02\u01e8\u01e9\x03\x02\x02\x02\u01e9","\u01ea\b@\x02\x02\u01ea\x80\x03\x02\x02\x02\u01eb\u01ec","\x071\x02\x02\u01ec\u01ed\x071\x02\x02\u01ed\u01f1\x03","\x02\x02\x02\u01ee\u01f0\n\t\x02\x02\u01ef\u01ee\x03\x02","\x02\x02\u01f0\u01f3\x03\x02\x02\x02\u01f1\u01ef\x03\x02","\x02\x02\u01f1\u01f2\x03\x02\x02\x02\u01f2\u01f4\x03\x02","\x02\x02\u01f3\u01f1\x03\x02\x02\x02\u01f4\u01f5\bA\x02","\x02\u01f5\x82\x03\x02\x02\x02\u01f6\u01f9\x07^\x02","\x02\u01f7\u01fa\t\n\x02\x02\u01f8\u01fa\x05\x85C\x02\u01f9","\u01f7\x03\x02\x02\x02\u01f9\u01f8\x03\x02\x02\x02\u01fa","\x84\x03\x02\x02\x02\u01fb\u01fc\x07w\x02\x02\u01fc","\u01fd\x05\x87D\x02\u01fd\u01fe\x05\x87D\x02\u01fe\u01ff","\x05\x87D\x02\u01ff\u0200\x05\x87D\x02\u0200\x86\x03","\x02\x02\x02\u0201\u0202\t\v\x02\x02\u0202\x88\x03","\x02\x02\x02\x1a\x02\u0182\u0184\u0186\u0189\u019b\u019d\u019f","\u01a1\u01aa\u01ad\u01b0\u01b2\u01b8\u01ba\u01c2\u01c4\u01cc\u01d2\u01d4","\u01d9\u01e3\u01f1\u01f9\x03\x02\x03\x02"].join(""),_=(new n.atn.ATNDeserializer).deserialize(f),m=_.decisionToState.map(function(d,u){return new n.dfa.DFA(d,u)});function s(d){return n.Lexer.call(this,d),this._interp=new n.atn.LexerATNSimulator(this,_,m,new n.PredictionContextCache),this}(s.prototype=Object.create(n.Lexer.prototype)).constructor=s,Object.defineProperty(s.prototype,"atn",{get:function(){return _}}),s.EOF=n.Token.EOF,s.T__0=1,s.T__1=2,s.T__2=3,s.T__3=4,s.T__4=5,s.T__5=6,s.T__6=7,s.T__7=8,s.T__8=9,s.T__9=10,s.T__10=11,s.T__11=12,s.T__12=13,s.T__13=14,s.T__14=15,s.T__15=16,s.T__16=17,s.T__17=18,s.T__18=19,s.T__19=20,s.T__20=21,s.T__21=22,s.T__22=23,s.T__23=24,s.T__24=25,s.T__25=26,s.T__26=27,s.T__27=28,s.T__28=29,s.T__29=30,s.T__30=31,s.T__31=32,s.T__32=33,s.T__33=34,s.T__34=35,s.T__35=36,s.T__36=37,s.T__37=38,s.T__38=39,s.T__39=40,s.T__40=41,s.T__41=42,s.T__42=43,s.T__43=44,s.T__44=45,s.T__45=46,s.T__46=47,s.T__47=48,s.T__48=49,s.T__49=50,s.T__50=51,s.T__51=52,s.T__52=53,s.T__53=54,s.DATETIME=55,s.TIME=56,s.IDENTIFIER=57,s.DELIMITEDIDENTIFIER=58,s.STRING=59,s.NUMBER=60,s.WS=61,s.COMMENT=62,s.LINE_COMMENT=63,s.prototype.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],s.prototype.modeNames=["DEFAULT_MODE"],s.prototype.literalNames=[null,"'.'","'['","']'","'+'","'-'","'*'","'/'","'div'","'mod'","'&'","'|'","'<='","'<'","'>'","'>='","'is'","'as'","'='","'~'","'!='","'!~'","'in'","'contains'","'and'","'or'","'xor'","'implies'","'('","')'","'{'","'}'","'true'","'false'","'%'","'$this'","'$index'","'$total'","','","'year'","'month'","'week'","'day'","'hour'","'minute'","'second'","'millisecond'","'years'","'months'","'weeks'","'days'","'hours'","'minutes'","'seconds'","'milliseconds'"],s.prototype.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"DATETIME","TIME","IDENTIFIER","DELIMITEDIDENTIFIER","STRING","NUMBER","WS","COMMENT","LINE_COMMENT"],s.prototype.ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","T__32","T__33","T__34","T__35","T__36","T__37","T__38","T__39","T__40","T__41","T__42","T__43","T__44","T__45","T__46","T__47","T__48","T__49","T__50","T__51","T__52","T__53","DATETIME","TIME","TIMEFORMAT","IDENTIFIER","DELIMITEDIDENTIFIER","STRING","NUMBER","WS","COMMENT","LINE_COMMENT","ESC","UNICODE","HEX"],s.prototype.grammarFileName="FHIRPath.g4",W.a=s},4303:(ye,W,p)=>{var n=p(4981);function f(){return n.tree.ParseTreeListener.call(this),this}(f.prototype=Object.create(n.tree.ParseTreeListener.prototype)).constructor=f,f.prototype.enterEntireExpression=function(_){},f.prototype.exitEntireExpression=function(_){},f.prototype.enterIndexerExpression=function(_){},f.prototype.exitIndexerExpression=function(_){},f.prototype.enterPolarityExpression=function(_){},f.prototype.exitPolarityExpression=function(_){},f.prototype.enterAdditiveExpression=function(_){},f.prototype.exitAdditiveExpression=function(_){},f.prototype.enterMultiplicativeExpression=function(_){},f.prototype.exitMultiplicativeExpression=function(_){},f.prototype.enterUnionExpression=function(_){},f.prototype.exitUnionExpression=function(_){},f.prototype.enterOrExpression=function(_){},f.prototype.exitOrExpression=function(_){},f.prototype.enterAndExpression=function(_){},f.prototype.exitAndExpression=function(_){},f.prototype.enterMembershipExpression=function(_){},f.prototype.exitMembershipExpression=function(_){},f.prototype.enterInequalityExpression=function(_){},f.prototype.exitInequalityExpression=function(_){},f.prototype.enterInvocationExpression=function(_){},f.prototype.exitInvocationExpression=function(_){},f.prototype.enterEqualityExpression=function(_){},f.prototype.exitEqualityExpression=function(_){},f.prototype.enterImpliesExpression=function(_){},f.prototype.exitImpliesExpression=function(_){},f.prototype.enterTermExpression=function(_){},f.prototype.exitTermExpression=function(_){},f.prototype.enterTypeExpression=function(_){},f.prototype.exitTypeExpression=function(_){},f.prototype.enterInvocationTerm=function(_){},f.prototype.exitInvocationTerm=function(_){},f.prototype.enterLiteralTerm=function(_){},f.prototype.exitLiteralTerm=function(_){},f.prototype.enterExternalConstantTerm=function(_){},f.prototype.exitExternalConstantTerm=function(_){},f.prototype.enterParenthesizedTerm=function(_){},f.prototype.exitParenthesizedTerm=function(_){},f.prototype.enterNullLiteral=function(_){},f.prototype.exitNullLiteral=function(_){},f.prototype.enterBooleanLiteral=function(_){},f.prototype.exitBooleanLiteral=function(_){},f.prototype.enterStringLiteral=function(_){},f.prototype.exitStringLiteral=function(_){},f.prototype.enterNumberLiteral=function(_){},f.prototype.exitNumberLiteral=function(_){},f.prototype.enterDateTimeLiteral=function(_){},f.prototype.exitDateTimeLiteral=function(_){},f.prototype.enterTimeLiteral=function(_){},f.prototype.exitTimeLiteral=function(_){},f.prototype.enterQuantityLiteral=function(_){},f.prototype.exitQuantityLiteral=function(_){},f.prototype.enterExternalConstant=function(_){},f.prototype.exitExternalConstant=function(_){},f.prototype.enterMemberInvocation=function(_){},f.prototype.exitMemberInvocation=function(_){},f.prototype.enterFunctionInvocation=function(_){},f.prototype.exitFunctionInvocation=function(_){},f.prototype.enterThisInvocation=function(_){},f.prototype.exitThisInvocation=function(_){},f.prototype.enterIndexInvocation=function(_){},f.prototype.exitIndexInvocation=function(_){},f.prototype.enterTotalInvocation=function(_){},f.prototype.exitTotalInvocation=function(_){},f.prototype.enterFunctn=function(_){},f.prototype.exitFunctn=function(_){},f.prototype.enterParamList=function(_){},f.prototype.exitParamList=function(_){},f.prototype.enterQuantity=function(_){},f.prototype.exitQuantity=function(_){},f.prototype.enterUnit=function(_){},f.prototype.exitUnit=function(_){},f.prototype.enterDateTimePrecision=function(_){},f.prototype.exitDateTimePrecision=function(_){},f.prototype.enterPluralDateTimePrecision=function(_){},f.prototype.exitPluralDateTimePrecision=function(_){},f.prototype.enterTypeSpecifier=function(_){},f.prototype.exitTypeSpecifier=function(_){},f.prototype.enterQualifiedIdentifier=function(_){},f.prototype.exitQualifiedIdentifier=function(_){},f.prototype.enterIdentifier=function(_){},f.prototype.exitIdentifier=function(_){},W.q=f},8974:(ye,W,p)=>{var n=p(4981),f=p(4303).q,m=["\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964","\x03A\x9c\x04\x02\t\x02\x04\x03\t\x03\x04\x04\t","\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t\x07\x04","\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x04","\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10\t\x10\x03","\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03","\x03\x05\x03(\n\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x07\x03P","\n\x03\f\x03\x0e\x03S\v\x03\x03\x04\x03\x04\x03","\x04\x03\x04\x03\x04\x03\x04\x03\x04\x05\x04\\","\n\x04\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05","\x03\x05\x03\x05\x03\x05\x05\x05f\n\x05\x03\x06","\x03\x06\x03\x06\x05\x06k\n\x06\x03\x07\x03\x07","\x03\x07\x03\x07\x03\x07\x05\x07r\n\x07\x03\b\x03","\b\x03\b\x05\bw\n\b\x03\b\x03\b\x03\t\x03\t\x03\t\x07","\t~\n\t\f\t\x0e\t\x81\v\t\x03\n\x03\n\x05\n\x85\n\n","\x03\v\x03\v\x03\v\x05\v\x8a\n\v\x03","\f\x03\f\x03\r\x03\r\x03\x0e\x03\x0e\x03\x0f\x03","\x0f\x03\x0f\x07\x0f\x95\n\x0f\f\x0f\x0e\x0f\x98","\v\x0f\x03\x10\x03\x10\x03\x10\x02\x03\x04\x11","\x02\x04\x06\b\n\f\x0e\x10\x12\x14\x16\x18\x1a\x1c","\x1e\x02\x0e\x03\x02\x06\x07\x03\x02\b\v\x04","\x02\x06\x07\f\f\x03\x02\x0e\x11\x03\x02\x14\x17","\x03\x02\x18\x19\x03\x02\x1b\x1c\x03\x02\x12\x13",'\x03\x02"#\x03\x02)0\x03\x0218\x05\x02\x12\x13',"\x18\x19;<\x02\xad\x02 \x03\x02\x02\x02\x04'\x03","\x02\x02\x02\x06[\x03\x02\x02\x02\be\x03\x02\x02","\x02\ng\x03\x02\x02\x02\fq\x03\x02\x02\x02\x0es","\x03\x02\x02\x02\x10z\x03\x02\x02\x02\x12\x82","\x03\x02\x02\x02\x14\x89\x03\x02\x02\x02\x16\x8b","\x03\x02\x02\x02\x18\x8d\x03\x02\x02\x02\x1a\x8f","\x03\x02\x02\x02\x1c\x91\x03\x02\x02\x02\x1e\x99",'\x03\x02\x02\x02 !\x05\x04\x03\x02!"\x07\x02\x02','\x03"\x03\x03\x02\x02\x02#$\b\x03\x01\x02$(\x05',"\x06\x04\x02%&\t\x02\x02\x02&(\x05\x04\x03\r'#\x03","\x02\x02\x02'%\x03\x02\x02\x02(Q\x03\x02\x02\x02",")*\f\f\x02\x02*+\t\x03\x02\x02+P\x05\x04\x03\r,-\f\v","\x02\x02-.\t\x04\x02\x02.P\x05\x04\x03\f/0\f\n\x02","\x0201\x07\r\x02\x021P\x05\x04\x03\v23\f\t\x02\x02","34\t\x05\x02\x024P\x05\x04\x03\n56\f\x07\x02\x026","7\t\x06\x02\x027P\x05\x04\x03\b89\f\x06\x02\x029:","\t\x07\x02\x02:P\x05\x04\x03\x07;<\f\x05\x02\x02","<=\x07\x1a\x02\x02=P\x05\x04\x03\x06>?\f\x04\x02","\x02?@\t\b\x02\x02@P\x05\x04\x03\x05AB\f\x03\x02\x02","BC\x07\x1d\x02\x02CP\x05\x04\x03\x04DE\f\x0f\x02","\x02EF\x07\x03\x02\x02FP\x05\f\x07\x02GH\f\x0e\x02","\x02HI\x07\x04\x02\x02IJ\x05\x04\x03\x02JK\x07\x05","\x02\x02KP\x03\x02\x02\x02LM\f\b\x02\x02MN\t\t\x02","\x02NP\x05\x1a\x0e\x02O)\x03\x02\x02\x02O,\x03\x02","\x02\x02O/\x03\x02\x02\x02O2\x03\x02\x02\x02O5\x03","\x02\x02\x02O8\x03\x02\x02\x02O;\x03\x02\x02\x02","O>\x03\x02\x02\x02OA\x03\x02\x02\x02OD\x03\x02\x02","\x02OG\x03\x02\x02\x02OL\x03\x02\x02\x02PS\x03\x02","\x02\x02QO\x03\x02\x02\x02QR\x03\x02\x02\x02R\x05","\x03\x02\x02\x02SQ\x03\x02\x02\x02T\\\x05\f\x07","\x02U\\\x05\b\x05\x02V\\\x05\n\x06\x02WX\x07\x1e\x02","\x02XY\x05\x04\x03\x02YZ\x07\x1f\x02\x02Z\\\x03","\x02\x02\x02[T\x03\x02\x02\x02[U\x03\x02\x02\x02","[V\x03\x02\x02\x02[W\x03\x02\x02\x02\\\x07\x03\x02","\x02\x02]^\x07 \x02\x02^f\x07!\x02\x02_f\t\n\x02\x02","`f\x07=\x02\x02af\x07>\x02\x02bf\x079\x02\x02cf\x07",":\x02\x02df\x05\x12\n\x02e]\x03\x02\x02\x02e_\x03","\x02\x02\x02e`\x03\x02\x02\x02ea\x03\x02\x02\x02","eb\x03\x02\x02\x02ec\x03\x02\x02\x02ed\x03\x02\x02","\x02f\t\x03\x02\x02\x02gj\x07$\x02\x02hk\x05\x1e","\x10\x02ik\x07=\x02\x02jh\x03\x02\x02\x02ji\x03","\x02\x02\x02k\v\x03\x02\x02\x02lr\x05\x1e\x10","\x02mr\x05\x0e\b\x02nr\x07%\x02\x02or\x07&\x02\x02","pr\x07'\x02\x02ql\x03\x02\x02\x02qm\x03\x02\x02","\x02qn\x03\x02\x02\x02qo\x03\x02\x02\x02qp\x03\x02","\x02\x02r\r\x03\x02\x02\x02st\x05\x1e\x10\x02tv","\x07\x1e\x02\x02uw\x05\x10\t\x02vu\x03\x02\x02\x02","vw\x03\x02\x02\x02wx\x03\x02\x02\x02xy\x07\x1f\x02","\x02y\x0f\x03\x02\x02\x02z\x7f\x05\x04\x03\x02","{|\x07(\x02\x02|~\x05\x04\x03\x02}{\x03\x02\x02","\x02~\x81\x03\x02\x02\x02\x7f}\x03\x02\x02\x02","\x7f\x80\x03\x02\x02\x02\x80\x11\x03\x02\x02\x02","\x81\x7f\x03\x02\x02\x02\x82\x84\x07>\x02\x02","\x83\x85\x05\x14\v\x02\x84\x83\x03\x02\x02\x02","\x84\x85\x03\x02\x02\x02\x85\x13\x03\x02\x02\x02","\x86\x8a\x05\x16\f\x02\x87\x8a\x05\x18\r\x02\x88","\x8a\x07=\x02\x02\x89\x86\x03\x02\x02\x02\x89","\x87\x03\x02\x02\x02\x89\x88\x03\x02\x02\x02\x8a","\x15\x03\x02\x02\x02\x8b\x8c\t\v\x02\x02\x8c","\x17\x03\x02\x02\x02\x8d\x8e\t\f\x02\x02\x8e\x19","\x03\x02\x02\x02\x8f\x90\x05\x1c\x0f\x02\x90\x1b","\x03\x02\x02\x02\x91\x96\x05\x1e\x10\x02\x92\x93","\x07\x03\x02\x02\x93\x95\x05\x1e\x10\x02\x94\x92","\x03\x02\x02\x02\x95\x98\x03\x02\x02\x02\x96\x94","\x03\x02\x02\x02\x96\x97\x03\x02\x02\x02\x97\x1d","\x03\x02\x02\x02\x98\x96\x03\x02\x02\x02\x99\x9a","\t\r\x02\x02\x9a\x1f\x03\x02\x02\x02\x0e'OQ[ejqv","\x7f\x84\x89\x96"].join(""),s=(new n.atn.ATNDeserializer).deserialize(m),d=s.decisionToState.map(function(T,U){return new n.dfa.DFA(T,U)}),u=new n.PredictionContextCache,h=[null,"'.'","'['","']'","'+'","'-'","'*'","'/'","'div'","'mod'","'&'","'|'","'<='","'<'","'>'","'>='","'is'","'as'","'='","'~'","'!='","'!~'","'in'","'contains'","'and'","'or'","'xor'","'implies'","'('","')'","'{'","'}'","'true'","'false'","'%'","'$this'","'$index'","'$total'","','","'year'","'month'","'week'","'day'","'hour'","'minute'","'second'","'millisecond'","'years'","'months'","'weeks'","'days'","'hours'","'minutes'","'seconds'","'milliseconds'"],r=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"DATETIME","TIME","IDENTIFIER","DELIMITEDIDENTIFIER","STRING","NUMBER","WS","COMMENT","LINE_COMMENT"],o=["entireExpression","expression","term","literal","externalConstant","invocation","functn","paramList","quantity","unit","dateTimePrecision","pluralDateTimePrecision","typeSpecifier","qualifiedIdentifier","identifier"];function i(T){return n.Parser.call(this,T),this._interp=new n.atn.ParserATNSimulator(this,s,d,u),this.ruleNames=o,this.literalNames=h,this.symbolicNames=r,this}function c(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_entireExpression,this}function l(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_expression,this}function g(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function b(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function y(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function S(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function I(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function R(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function M(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function A(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function D(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function w(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function x(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function C(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function L(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function F(T,U){return l.call(this,T),l.prototype.copyFrom.call(this,U),this}function re(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_term,this}function Y(T,U){return re.call(this,T),re.prototype.copyFrom.call(this,U),this}function X(T,U){return re.call(this,T),re.prototype.copyFrom.call(this,U),this}function ee(T,U){return re.call(this,T),re.prototype.copyFrom.call(this,U),this}function $(T,U){return re.call(this,T),re.prototype.copyFrom.call(this,U),this}function J(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_literal,this}function ie(T,U){return J.call(this,T),J.prototype.copyFrom.call(this,U),this}function ne(T,U){return J.call(this,T),J.prototype.copyFrom.call(this,U),this}function ae(T,U){return J.call(this,T),J.prototype.copyFrom.call(this,U),this}function xe(T,U){return J.call(this,T),J.prototype.copyFrom.call(this,U),this}function Ie(T,U){return J.call(this,T),J.prototype.copyFrom.call(this,U),this}function We(T,U){return J.call(this,T),J.prototype.copyFrom.call(this,U),this}function Xe(T,U){return J.call(this,T),J.prototype.copyFrom.call(this,U),this}function ft(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_externalConstant,this}function Pe(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_invocation,this}function et(T,U){return Pe.call(this,T),Pe.prototype.copyFrom.call(this,U),this}function at(T,U){return Pe.call(this,T),Pe.prototype.copyFrom.call(this,U),this}function pt(T,U){return Pe.call(this,T),Pe.prototype.copyFrom.call(this,U),this}function vt(T,U){return Pe.call(this,T),Pe.prototype.copyFrom.call(this,U),this}function yt(T,U){return Pe.call(this,T),Pe.prototype.copyFrom.call(this,U),this}function ot(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_functn,this}function _t(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_paramList,this}function At(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_quantity,this}function Tt(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_unit,this}function Bt(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_dateTimePrecision,this}function Et(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_pluralDateTimePrecision,this}function Ee(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_typeSpecifier,this}function fe(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_qualifiedIdentifier,this}function H(T,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=T,this.ruleIndex=i.RULE_identifier,this}(i.prototype=Object.create(n.Parser.prototype)).constructor=i,Object.defineProperty(i.prototype,"atn",{get:function(){return s}}),i.EOF=n.Token.EOF,i.T__0=1,i.T__1=2,i.T__2=3,i.T__3=4,i.T__4=5,i.T__5=6,i.T__6=7,i.T__7=8,i.T__8=9,i.T__9=10,i.T__10=11,i.T__11=12,i.T__12=13,i.T__13=14,i.T__14=15,i.T__15=16,i.T__16=17,i.T__17=18,i.T__18=19,i.T__19=20,i.T__20=21,i.T__21=22,i.T__22=23,i.T__23=24,i.T__24=25,i.T__25=26,i.T__26=27,i.T__27=28,i.T__28=29,i.T__29=30,i.T__30=31,i.T__31=32,i.T__32=33,i.T__33=34,i.T__34=35,i.T__35=36,i.T__36=37,i.T__37=38,i.T__38=39,i.T__39=40,i.T__40=41,i.T__41=42,i.T__42=43,i.T__43=44,i.T__44=45,i.T__45=46,i.T__46=47,i.T__47=48,i.T__48=49,i.T__49=50,i.T__50=51,i.T__51=52,i.T__52=53,i.T__53=54,i.DATETIME=55,i.TIME=56,i.IDENTIFIER=57,i.DELIMITEDIDENTIFIER=58,i.STRING=59,i.NUMBER=60,i.WS=61,i.COMMENT=62,i.LINE_COMMENT=63,i.RULE_entireExpression=0,i.RULE_expression=1,i.RULE_term=2,i.RULE_literal=3,i.RULE_externalConstant=4,i.RULE_invocation=5,i.RULE_functn=6,i.RULE_paramList=7,i.RULE_quantity=8,i.RULE_unit=9,i.RULE_dateTimePrecision=10,i.RULE_pluralDateTimePrecision=11,i.RULE_typeSpecifier=12,i.RULE_qualifiedIdentifier=13,i.RULE_identifier=14,(c.prototype=Object.create(n.ParserRuleContext.prototype)).constructor=c,c.prototype.expression=function(){return this.getTypedRuleContext(l,0)},c.prototype.EOF=function(){return this.getToken(i.EOF,0)},c.prototype.enterRule=function(T){T instanceof f&&T.enterEntireExpression(this)},c.prototype.exitRule=function(T){T instanceof f&&T.exitEntireExpression(this)},i.EntireExpressionContext=c,i.prototype.entireExpression=function(){var T=new c(this,this._ctx,this.state);this.enterRule(T,0,i.RULE_entireExpression);try{this.enterOuterAlt(T,1),this.state=30,this.expression(0),this.state=31,this.match(i.EOF)}catch(U){if(!(U instanceof n.error.RecognitionException))throw U;T.exception=U,this._errHandler.reportError(this,U),this._errHandler.recover(this,U)}finally{this.exitRule()}return T},(l.prototype=Object.create(n.ParserRuleContext.prototype)).constructor=l,l.prototype.copyFrom=function(T){n.ParserRuleContext.prototype.copyFrom.call(this,T)},(g.prototype=Object.create(l.prototype)).constructor=g,i.IndexerExpressionContext=g,g.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},g.prototype.enterRule=function(T){T instanceof f&&T.enterIndexerExpression(this)},g.prototype.exitRule=function(T){T instanceof f&&T.exitIndexerExpression(this)},(b.prototype=Object.create(l.prototype)).constructor=b,i.PolarityExpressionContext=b,b.prototype.expression=function(){return this.getTypedRuleContext(l,0)},b.prototype.enterRule=function(T){T instanceof f&&T.enterPolarityExpression(this)},b.prototype.exitRule=function(T){T instanceof f&&T.exitPolarityExpression(this)},(y.prototype=Object.create(l.prototype)).constructor=y,i.AdditiveExpressionContext=y,y.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},y.prototype.enterRule=function(T){T instanceof f&&T.enterAdditiveExpression(this)},y.prototype.exitRule=function(T){T instanceof f&&T.exitAdditiveExpression(this)},(S.prototype=Object.create(l.prototype)).constructor=S,i.MultiplicativeExpressionContext=S,S.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},S.prototype.enterRule=function(T){T instanceof f&&T.enterMultiplicativeExpression(this)},S.prototype.exitRule=function(T){T instanceof f&&T.exitMultiplicativeExpression(this)},(I.prototype=Object.create(l.prototype)).constructor=I,i.UnionExpressionContext=I,I.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},I.prototype.enterRule=function(T){T instanceof f&&T.enterUnionExpression(this)},I.prototype.exitRule=function(T){T instanceof f&&T.exitUnionExpression(this)},(R.prototype=Object.create(l.prototype)).constructor=R,i.OrExpressionContext=R,R.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},R.prototype.enterRule=function(T){T instanceof f&&T.enterOrExpression(this)},R.prototype.exitRule=function(T){T instanceof f&&T.exitOrExpression(this)},(M.prototype=Object.create(l.prototype)).constructor=M,i.AndExpressionContext=M,M.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},M.prototype.enterRule=function(T){T instanceof f&&T.enterAndExpression(this)},M.prototype.exitRule=function(T){T instanceof f&&T.exitAndExpression(this)},(A.prototype=Object.create(l.prototype)).constructor=A,i.MembershipExpressionContext=A,A.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},A.prototype.enterRule=function(T){T instanceof f&&T.enterMembershipExpression(this)},A.prototype.exitRule=function(T){T instanceof f&&T.exitMembershipExpression(this)},(D.prototype=Object.create(l.prototype)).constructor=D,i.InequalityExpressionContext=D,D.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},D.prototype.enterRule=function(T){T instanceof f&&T.enterInequalityExpression(this)},D.prototype.exitRule=function(T){T instanceof f&&T.exitInequalityExpression(this)},(w.prototype=Object.create(l.prototype)).constructor=w,i.InvocationExpressionContext=w,w.prototype.expression=function(){return this.getTypedRuleContext(l,0)},w.prototype.invocation=function(){return this.getTypedRuleContext(Pe,0)},w.prototype.enterRule=function(T){T instanceof f&&T.enterInvocationExpression(this)},w.prototype.exitRule=function(T){T instanceof f&&T.exitInvocationExpression(this)},(x.prototype=Object.create(l.prototype)).constructor=x,i.EqualityExpressionContext=x,x.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},x.prototype.enterRule=function(T){T instanceof f&&T.enterEqualityExpression(this)},x.prototype.exitRule=function(T){T instanceof f&&T.exitEqualityExpression(this)},(C.prototype=Object.create(l.prototype)).constructor=C,i.ImpliesExpressionContext=C,C.prototype.expression=function(T){return void 0===T&&(T=null),null===T?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,T)},C.prototype.enterRule=function(T){T instanceof f&&T.enterImpliesExpression(this)},C.prototype.exitRule=function(T){T instanceof f&&T.exitImpliesExpression(this)},(L.prototype=Object.create(l.prototype)).constructor=L,i.TermExpressionContext=L,L.prototype.term=function(){return this.getTypedRuleContext(re,0)},L.prototype.enterRule=function(T){T instanceof f&&T.enterTermExpression(this)},L.prototype.exitRule=function(T){T instanceof f&&T.exitTermExpression(this)},(F.prototype=Object.create(l.prototype)).constructor=F,i.TypeExpressionContext=F,F.prototype.expression=function(){return this.getTypedRuleContext(l,0)},F.prototype.typeSpecifier=function(){return this.getTypedRuleContext(Ee,0)},F.prototype.enterRule=function(T){T instanceof f&&T.enterTypeExpression(this)},F.prototype.exitRule=function(T){T instanceof f&&T.exitTypeExpression(this)},i.prototype.expression=function(T){void 0===T&&(T=0);var U=this._ctx,Z=this.state,_e=new l(this,this._ctx,Z);this.enterRecursionRule(_e,2,i.RULE_expression,T);var st=0;try{switch(this.enterOuterAlt(_e,1),this.state=37,this._errHandler.sync(this),this._input.LA(1)){case i.T__15:case i.T__16:case i.T__21:case i.T__22:case i.T__27:case i.T__29:case i.T__31:case i.T__32:case i.T__33:case i.T__34:case i.T__35:case i.T__36:case i.DATETIME:case i.TIME:case i.IDENTIFIER:case i.DELIMITEDIDENTIFIER:case i.STRING:case i.NUMBER:_e=new L(this,_e),this._ctx=_e,this.state=34,this.term();break;case i.T__3:case i.T__4:_e=new b(this,_e),this._ctx=_e,this.state=35,(st=this._input.LA(1))===i.T__3||st===i.T__4?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=36,this.expression(11);break;default:throw new n.error.NoViableAltException(this)}this._ctx.stop=this._input.LT(-1),this.state=79,this._errHandler.sync(this);for(var ut=this._interp.adaptivePredict(this._input,2,this._ctx);2!=ut&&ut!=n.atn.ATN.INVALID_ALT_NUMBER;){if(1===ut)switch(null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=77,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,1,this._ctx)){case 1:if(_e=new S(this,new l(this,U,Z)),this.pushNewRecursionContext(_e,2,i.RULE_expression),this.state=39,!this.precpred(this._ctx,10))throw new n.error.FailedPredicateException(this,"this.precpred(this._ctx, 10)");this.state=40,0==(-32&(st=this._input.LA(1)))&&0!=(1<{const n=p(4981),f=p(4621).a,_=p(8974)._,m=p(4303).q;var s=function(u){return n.error.ErrorListener.call(this),this.errors=u,this};(s.prototype=Object.create(n.error.ErrorListener.prototype)).constructor=s,s.prototype.syntaxError=function(u,h,r,o,i,c){this.errors.push([u,h,r,o,i,c])},ye.exports={parse:function(u){var h=new n.InputStream(u),r=new f(h),o=new n.CommonTokenStream(r),i=new _(o);i.buildParseTrees=!0;var c=[],l=new s(c);r.removeErrorListeners(),r.addErrorListener(l),i.removeErrorListeners(),i.addErrorListener(l);var g=i.entireExpression();function b(){return m.call(this),this}(b.prototype=Object.create(m.prototype)).constructor=b;var S,y={},I=[y];for(let A of Object.keys(m.prototype))A.startsWith("enter")?b.prototype[A]=function(D){let w=I[I.length-1];(S={type:A.slice(5)}).text=D.getText(),w.children||(w.children=[]),w.children.push(S),I.push(S),S.terminalNodeText=[];for(let C of D.children)C.symbol&&S.terminalNodeText.push(C.getText())}:A.startsWith("exit")&&(b.prototype[A]=function(){I.pop()});var R=new b;if(n.tree.ParseTreeWalker.DEFAULT.walk(R,g),c.length>0){let A=[];for(let D=0,w=c.length;D{const ye=Function.prototype.call.bind(Array.prototype.slice);Number.isInteger=Number.isInteger||function(W){return"number"==typeof W&&isFinite(W)&&Math.floor(W)===W},String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(W,p){return this.indexOf(W,p=p||0)===p}}),String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{value:function(W,p){var n=this.toString();(void 0===p||p>n.length)&&(p=n.length);var f=n.indexOf(W,p-=W.length);return-1!==f&&f===p}}),String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(){return-1!==this.indexOf.apply(this,arguments)}}),Object.assign||Object.defineProperty(Object,"assign",{value:function(W){if(null==W)throw new TypeError("Cannot convert undefined or null to object");return ye(arguments,1).reduce(function(p,n){return Object.keys(Object(n)).forEach(function(f){p[f]=n[f]}),p},Object(W))}})},9835:(ye,W,p)=>{const n=p(4569),f=p(9502),_={},m={};_.indexOf=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.indexOf(h)},_.substring=function(u,h,r){const o=f.singleton(u,"String");return n.isEmpty(o)||n.isEmpty(h)||h<0||h>=o.length?[]:void 0===r||n.isEmpty(r)?o.substring(h):o.substring(h,h+r)},_.startsWith=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.startsWith(h)},_.endsWith=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.endsWith(h)},_.containsFn=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.includes(h)},_.upper=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.toUpperCase()},_.lower=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.toLowerCase()},_.matches=!1===new RegExp("").dotAll?function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:new RegExp(h,"s").test(r)}:function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:new RegExp(function(u){return m[u]||(m[u]=u.replace(/\./g,(h,r,o)=>{const c=o.substr(0,r).replace(/\\\\/g,"").replace(/\\[\][]/g,""),l="\\"===c[c.length-1],g=c.lastIndexOf("["),b=c.lastIndexOf("]");return l||g>b?".":"[^]"})),m[u]}(h)).test(r)},_.replace=function(u,h,r){const o=f.singleton(u,"String");if(n.isEmpty(h)||n.isEmpty(r)||n.isEmpty(o))return[];const i=new RegExp(n.escapeStringForRegExp(h),"g");return o.replace(i,r)},_.replaceMatches=function(u,h,r){const o=f.singleton(u,"String");if(n.isEmpty(h)||n.isEmpty(r)||n.isEmpty(o))return[];const i=new RegExp(h,"g");return o.replace(i,r)},_.length=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.length},_.toChars=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.split("")},ye.exports=_},2563:(ye,W,p)=>{const n=p(8091),f=p(1334).ng.getInstance(),_=p(7601);let s="[0-9][0-9](\\:[0-9][0-9](\\:[0-9][0-9](\\.[0-9]+)?)?)?(Z|(\\+|-)[0-9][0-9]\\:[0-9][0-9])?",d=new RegExp("^T?"+s+"$"),u=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9](T"+s+")?)?)?Z?$");class h{equals(){return!1}equivalentTo(){return!1}toString(){return this.asStr?this.asStr:super.toString()}toJSON(){return this.toString()}compare(){throw"Not implemented"}}class r extends h{constructor(A,D){super(),this.asStr=A+" "+D,this.value=A,this.unit=D}equals(A){if(!(A instanceof this.constructor))return!1;if(this.unit===A.unit)return _.isEqual(this.value,A.value);const D=this._compareYearsAndMonths(A);if(D)return D.isEqual;const w=r.toUcumQuantity(this.value,this.unit),x=r.toUcumQuantity(A.value,A.unit),C=f.convertUnitTo(x.unit,x.value,w.unit);return"succeeded"===C.status&&_.isEqual(w.value,C.toVal)}equivalentTo(A){if(!(A instanceof this.constructor))return!1;if(this.unit===A.unit)return _.isEquivalent(this.value,A.value);const D=r.getEquivalentUcumUnitCode(this.unit),w=r.getEquivalentUcumUnitCode(A.unit),x=f.convertUnitTo(w,A.value,D);return"succeeded"===x.status&&_.isEquivalent(this.value,x.toVal)}_compareYearsAndMonths(A){const D=r._yearMonthConversionFactor[this.unit],w=r._yearMonthConversionFactor[A.unit];return D&&w?{isEqual:_.isEqual(this.value*D,A.value*w)}:null}}const o=/^'|'$/g;r.getEquivalentUcumUnitCode=function(M){return r.mapTimeUnitsToUCUMCode[M]||M.replace(o,"")},r.toUcumQuantity=function(M,A){const D=r._calendarDuration2Seconds[A];return D?{value:D*M,unit:"s"}:{value:M,unit:A.replace(o,"")}},r.convUnitTo=function(M,A,D){const w=r._yearMonthConversionFactor[M],x=r._yearMonthConversionFactor[D];if(w&&x)return new r(w*A/x,D);const C=r._calendarDuration2Seconds[M],L=r._calendarDuration2Seconds[D];if(L){if(C)return new r(C*A/L,D);{const F=f.convertUnitTo(M.replace(/^'|'$/g,""),A,"s");if("succeeded"===F.status)return new r(F.toVal/L,D)}}else{const F=C?f.convertUnitTo("s",C*A,D.replace(/^'|'$/g,"")):f.convertUnitTo(M.replace(/^'|'$/g,""),A,D.replace(/^'|'$/g,""));if("succeeded"===F.status)return new r(F.toVal,D)}return null},r._calendarDuration2Seconds={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001,year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1,millisecond:.001},r._yearMonthConversionFactor={years:12,months:1,year:12,month:1},r.arithmeticDurationUnits={years:"year",months:"month",weeks:"week",days:"day",hours:"hour",minutes:"minute",seconds:"second",milliseconds:"millisecond",year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond","'wk'":"week","'d'":"day","'h'":"hour","'min'":"minute","'s'":"second","'ms'":"millisecond"},r.mapUCUMCodeToTimeUnits={a:"year",mo:"month",wk:"week",d:"day",h:"hour",min:"minute",s:"second",ms:"millisecond"},r.mapTimeUnitsToUCUMCode=Object.keys(r.mapUCUMCodeToTimeUnits).reduce(function(M,A){return M[r.mapUCUMCodeToTimeUnits[A]]=A,M[r.mapUCUMCodeToTimeUnits[A]+"s"]=A,M},{});class i extends h{constructor(A){super(),this.asStr=A}plus(A){let w=r.arithmeticDurationUnits[A.unit];if(!w)throw new Error("For date/time arithmetic, the unit of the quantity must be one of the following time-based units: "+Object.keys(r.arithmeticDurationUnits));const x=this.constructor,C=x._timeUnitToDatePrecision[w];if(void 0===C)throw new Error("Unsupported unit for +. The unit should be one of "+Object.keys(x._timeUnitToDatePrecision).join(", ")+".");let L=A.value;const F=x===l;if((F?C<2:C<5)&&(L=Math.trunc(L)),this._getPrecision()2?new c(L)._getTimeParts():this._getTimeParts(),Y=x>2?new c(F)._getTimeParts():A._getTimeParts(),X=0;X<=C&&!1!==D;++X)D=re[X]==Y[X];D&&(D=void 0)}}else D=!1;return D}equivalentTo(A){var D=A instanceof this.constructor;return D&&(D=this._getPrecision()==A._getPrecision())&&(D=this._getDateObj().getTime()==A._getDateObj().getTime()),D}compare(A){var D=this._getPrecision(),w=A._getPrecision(),x=D<=w?this._getDateObj().getTime():this._dateAtPrecision(w).getTime(),C=w<=D?A._getDateObj().getTime():A._dateAtPrecision(D).getTime();return D!==w&&x===C?null:x-C}_getPrecision(){return void 0===this.precision&&this._getMatchData(),this.precision}_getMatchData(A,D){if(void 0===this.timeMatchData&&(this.timeMatchData=this.asStr.match(A),this.timeMatchData))for(let w=D;w>=0&&void 0===this.precision;--w)this.timeMatchData[w]&&(this.precision=w);return this.timeMatchData}_getTimeParts(A){var D=[];D=[A[0]];var w=A[4];if(w){let F=D[0];D[0]=F.slice(0,F.length-w.length)}var x=A[1];if(x){let F=D[0];D[0]=F.slice(0,F.length-x.length),D[1]=x;var C=A[2];if(C){D[1]=x.slice(0,x.length-C.length),D[2]=C;var L=A[3];L&&(D[2]=C.slice(0,C.length-L.length),D[3]=L)}}return D}_getDateObj(){if(!this.dateObj){var A=this._getPrecision();this.dateObj=this._dateAtPrecision(A)}return this.dateObj}_createDate(A,D,w,x,C,L,F,re){var Y=new Date(A,D,w,x,C,L,F);if(re){var X=Y.getTimezoneOffset(),ee=0;if("Z"!=re){var $=re.split(":"),J=parseInt($[0]);ee=parseInt($[1]),J<0&&(ee=-ee),ee+=60*J}Y=n(Y,-X-ee)}return Y}}i.timeUnitToAddFn={year:p(2486),month:p(4992),week:p(5213),day:p(6937),hour:p(2500),minute:p(8091),second:p(734),millisecond:p(7862)};let c=(()=>{class M extends i{constructor(D){super(D)}compare(D){if(!(D instanceof M))throw"Invalid comparison of a DateTime with something else";return super.compare(D)}_getMatchData(){return super._getMatchData(u,5)}_getTimeParts(){if(!this.timeParts){let w=this._getMatchData(),x=w[0];this.timeParts=[x];var D=w[1];if(D){this.timeParts[0]=x.slice(0,x.length-D.length),this.timeParts[1]=D;let C=w[2];if(C){this.timeParts[1]=D.slice(0,D.length-C.length),this.timeParts[2]=C;let L=w[3];L&&(this.timeParts[2]=C.slice(0,C.length-L.length),"T"===L[0]&&(w[3]=L.slice(1)),this.timeParts=this.timeParts.concat(super._getTimeParts(w.slice(3))))}}}return this.timeParts}_dateAtPrecision(D){var w=this._getTimeParts(),x=this._getMatchData()[7],C=this._getPrecision(),L=parseInt(w[0]),F=C>0?parseInt(w[1].slice(1))-1:0,re=C>1?parseInt(w[2].slice(1)):1,Y=C>2?parseInt(w[3]):0,X=C>3?parseInt(w[4].slice(1)):0,ee=C>4?parseInt(w[5].slice(1)):0,$=w.length>6?parseInt(w[6].slice(1)):0,J=this._createDate(L,F,re,Y,X,ee,$,x);return D0?J.getMonth():0,re=D>1?J.getDate():1,Y=D>2?J.getHours():0,X=D>3?J.getMinutes():0,J=new Date(L,F,re,Y,X)),J}}return M.checkString=function(A){let D=new M(A);return D._getMatchData()||(D=null),D},M._timeUnitToDatePrecision={year:0,month:1,week:2,day:2,hour:3,minute:4,second:5,millisecond:6},M._datePrecisionToTimeUnit=["year","month","day","hour","minute","second","millisecond"],M})(),l=(()=>{class M extends i{constructor(D){"T"==D[0]&&(D=D.slice(1)),super(D)}compare(D){if(!(D instanceof M))throw"Invalid comparison of a time with something else";return super.compare(D)}_dateAtPrecision(D){var w=this._getTimeParts(),x=this._getMatchData()[4],C=this._getPrecision(),L=2010,Y=parseInt(w[0]),X=C>0?parseInt(w[1].slice(1)):0,ee=C>1?parseInt(w[2].slice(1)):0,$=w.length>3?parseInt(w[3].slice(1)):0,J=this._createDate(L,0,1,Y,X,ee,$,x);return x&&(J.setYear(L),J.setMonth(0),J.setDate(1)),D0?J.getMinutes():0,J=new Date(L,0,1,Y,X)),J}_getMatchData(){return super._getMatchData(d,2)}_getTimeParts(){return this.timeParts||(this.timeParts=super._getTimeParts(this._getMatchData())),this.timeParts}}return M.checkString=function(A){let D=new M(A);return D._getMatchData()||(D=null),D},M._timeUnitToDatePrecision={hour:0,minute:1,second:2,millisecond:3},M._datePrecisionToTimeUnit=["hour","minute","second","millisecond"],M})();function g(M,A){var D=M;return 3===A&&M<100&&(D="0"+M),M<10&&(D="0"+D),D}c.isoDateTime=function(M,A){void 0===A&&(A=6);var D=""+M.getFullYear();if(A>0&&(D+="-"+g(M.getMonth()+1),A>1&&(D+="-"+g(M.getDate()),A>2&&(D+="T"+g(M.getHours()),A>3&&(D+=":"+g(M.getMinutes()),A>4&&(D+=":"+g(M.getSeconds()),M.getMilliseconds()&&(D+="."+g(M.getMilliseconds(),3))))))),A>2){var w=M.getTimezoneOffset(),x=w<0?"+":"-",C=(w=Math.abs(w))%60;D+=x+g((w-C)/60)+":"+g(C)}return D},c.isoDate=function(M,A){return(void 0===A||A>2)&&(A=2),c.isoDateTime(M,A)};class b{constructor(A,D,w){A.resourceType&&(D=A.resourceType),this.path=D,this.data=function(M,A){return"Quantity"===A&&"http://unitsofmeasure.org"===M.system&&"number"==typeof M.value&&"string"==typeof M.code&&(M=new r(M.value,r.mapUCUMCodeToTimeUnits[M.code]||"'"+M.code+"'")),M}(A,D),this._data=w||{}}getTypeInfo(){const A=S.FHIR;return-1===this.path.indexOf(".")?new S({namespace:A,name:this.path}):S.createByValueInNamespace({namespace:A,value:this.data})}toJSON(){return JSON.stringify(this.data)}}b.makeResNode=function(M,A,D){return M instanceof b?M:new b(M,A,D)};let S=(()=>{class M{constructor({name:D,namespace:w}){this.name=D,this.namespace=w}is(D){return D instanceof M&&this.name===D.name&&(!this.namespace||!D.namespace||this.namespace===D.namespace)}}return M.System="System",M.FHIR="FHIR",M.createByValueInNamespace=function({namespace:A,value:D}){let w=typeof D;return Number.isInteger(D)?w="integer":"number"===w?w="decimal":D instanceof c?w="dateTime":D instanceof l?w="time":D instanceof r&&(w="Quantity"),A===M.System&&(w=w.replace(/^\w/,x=>x.toUpperCase())),new M({namespace:A,name:w})},M.fromValue=function(A){return A instanceof b?A.getTypeInfo():M.createByValueInNamespace({namespace:M.System,value:A})},M})();ye.exports={FP_Type:h,FP_TimeBase:i,FP_DateTime:c,FP_Time:l,FP_Quantity:r,timeRE:d,dateTimeRE:u,ResourceNode:b,TypeInfo:S,typeFn:function(M){return M.map(A=>S.fromValue(A))},isFn:function(M,A){if(0===M.length)return[];if(M.length>1)throw new Error("Expected singleton on left side of is, got "+JSON.stringify(M));return S.fromValue(M[0]).is(A)}}},4569:(ye,W,p)=>{var n={},f=p(2563);let{ResourceNode:_}=f;n.raiseError=function(m,s){throw(s=s?s+": ":"")+m},n.assertAtMostOne=function(m,s){m.length>1&&n.raiseError("Was expecting no more than one element but got "+JSON.stringify(m),s)},n.assertType=function(m,s,d){let u=this.valData(m);if(s.indexOf(typeof u)<0){let h=s.length>1?"one of "+s.join(", "):s[0];n.raiseError("Found type '"+typeof m+"' but was expecting "+h,d)}return u},n.isEmpty=function(m){return Array.isArray(m)&&0==m.length},n.isSome=function(m){return null!=m&&!n.isEmpty(m)},n.isTrue=function(m){return null!=m&&(!0===m||1==m.length&&!0===m[0])},n.isFalse=function(m){return null!=m&&(!1===m||1==m.length&&!1===m[0])},n.isCapitalized=function(m){return m&&m[0]===m[0].toUpperCase()},n.flatten=function(m){return m.reduce(function(s,d){return Array.isArray(d)?s=s.concat(d):s.push(d),s},[])},n.arraify=function(m){return Array.isArray(m)?m:n.isSome(m)?[m]:[]},n.valData=function(m){return m instanceof _?m.data:m},n.escapeStringForRegExp=function(m){return m.replace(/[-[\]{}()*+?.,\\/^$|#\s]/g,"\\$&")},ye.exports=n},8277:ye=>{"use strict";!function(W){var p=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},f={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function _(m){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=[],u=0,h=void 0,r=void 0,o=void 0,i=void 0,c=void 0,l=void 0,g=void 0,b=void 0,y=void 0,S=void 0,I=void 0,R=void 0,M=void 0,A=void 0,D=void 0,w=void 0;if(isNaN(m))throw new TypeError("Invalid number");return o=!0===s.bits,R=!0===s.unix,I=void 0!==s.round?s.round:R?1:2,g=void 0!==s.locale?s.locale:"",M=void 0!==s.separator?s.separator:"",A=void 0!==s.spacer?s.spacer:R?"":" ",w=s.symbols||{},D=2===(r=s.base||2)&&s.standard||"jedec",S=s.output||"string",c=!0===s.fullform,l=s.fullforms instanceof Array?s.fullforms:[],h=void 0!==s.exponent?s.exponent:-1,i=r>2?1e3:1024,(b=(y=Number(m))<0)&&(y=-y),(-1===h||isNaN(h))&&(h=Math.floor(Math.log(y)/Math.log(i)))<0&&(h=0),h>8&&(h=8),"exponent"===S?h:(0===y?(d[0]=0,d[1]=R?"":n[D][o?"bits":"bytes"][h]):(u=y/(2===r?Math.pow(2,10*h):Math.pow(1e3,h)),o&&(u*=8)>=i&&h<8&&(u/=i,h++),d[0]=Number(u.toFixed(h>0?I:0)),d[1]=10===r&&1===h?o?"kb":"kB":n[D][o?"bits":"bytes"][h],R&&(d[1]="jedec"===D?d[1].charAt(0):h>0?d[1].replace(/B$/,""):d[1],p.test(d[1])&&(d[0]=Math.floor(d[0]),d[1]=""))),b&&(d[0]=-d[0]),d[1]=w[d[1]]||d[1],!0===g?d[0]=d[0].toLocaleString():g.length>0?d[0]=d[0].toLocaleString(g):M.length>0&&(d[0]=d[0].toString().replace(".",M)),"array"===S?d:(c&&(d[1]=l[h]?l[h]:f[D][h]+(o?"bit":"byte")+(1===d[0]?"":"s")),"object"===S?{value:d[0],symbol:d[1]}:d.join(A)))}_.partial=function(m){return function(s){return _(s,m)}},ye.exports=_}("undefined"!=typeof window?window:global)},5241:ye=>{function W(Qe){return Qe instanceof Map?Qe.clear=Qe.delete=Qe.set=function(){throw new Error("map is read-only")}:Qe instanceof Set&&(Qe.add=Qe.clear=Qe.delete=function(){throw new Error("set is read-only")}),Object.freeze(Qe),Object.getOwnPropertyNames(Qe).forEach(function(gt){var Vt=Qe[gt];"object"==typeof Vt&&!Object.isFrozen(Vt)&&W(Vt)}),Qe}var p=W;p.default=W;class f{constructor(gt){void 0===gt.data&&(gt.data={}),this.data=gt.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function _(Qe){return Qe.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function m(Qe,...gt){const Vt=Object.create(null);for(const qt in Qe)Vt[qt]=Qe[qt];return gt.forEach(function(qt){for(const Ue in qt)Vt[Ue]=qt[Ue]}),Vt}const d=Qe=>!!Qe.kind;class u{constructor(gt,Vt){this.buffer="",this.classPrefix=Vt.classPrefix,gt.walk(this)}addText(gt){this.buffer+=_(gt)}openNode(gt){if(!d(gt))return;let Vt=gt.kind;gt.sublanguage||(Vt=`${this.classPrefix}${Vt}`),this.span(Vt)}closeNode(gt){!d(gt)||(this.buffer+="
")}value(){return this.buffer}span(gt){this.buffer+=``}}class h{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(gt){this.top.children.push(gt)}openNode(gt){const Vt={kind:gt,children:[]};this.add(Vt),this.stack.push(Vt)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(gt){return this.constructor._walk(gt,this.rootNode)}static _walk(gt,Vt){return"string"==typeof Vt?gt.addText(Vt):Vt.children&&(gt.openNode(Vt),Vt.children.forEach(qt=>this._walk(gt,qt)),gt.closeNode(Vt)),gt}static _collapse(gt){"string"!=typeof gt&&(!gt.children||(gt.children.every(Vt=>"string"==typeof Vt)?gt.children=[gt.children.join("")]:gt.children.forEach(Vt=>{h._collapse(Vt)})))}}class r extends h{constructor(gt){super(),this.options=gt}addKeyword(gt,Vt){""!==gt&&(this.openNode(Vt),this.addText(gt),this.closeNode())}addText(gt){""!==gt&&this.add(gt)}addSublanguage(gt,Vt){const qt=gt.root;qt.kind=Vt,qt.sublanguage=!0,this.add(qt)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function i(Qe){return Qe?"string"==typeof Qe?Qe:Qe.source:null}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,R="[a-zA-Z]\\w*",M="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",D="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w="\\b(0b[01]+)",L={begin:"\\\\[\\s\\S]",relevance:0},F={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[L]},re={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[L]},Y={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(Qe,gt,Vt={}){const qt=m({className:"comment",begin:Qe,end:gt,contains:[]},Vt);return qt.contains.push(Y),qt.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),qt},ee=X("//","$"),$=X("/\\*","\\*/"),J=X("#","$");var et=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:R,UNDERSCORE_IDENT_RE:M,NUMBER_RE:A,C_NUMBER_RE:D,BINARY_NUMBER_RE:w,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(Qe={})=>{const gt=/^#![ ]*\//;return Qe.binary&&(Qe.begin=function(...Qe){return Qe.map(Vt=>i(Vt)).join("")}(gt,/.*\b/,Qe.binary,/\b.*/)),m({className:"meta",begin:gt,end:/$/,relevance:0,"on:begin":(Vt,qt)=>{0!==Vt.index&&qt.ignoreMatch()}},Qe)},BACKSLASH_ESCAPE:L,APOS_STRING_MODE:F,QUOTE_STRING_MODE:re,PHRASAL_WORDS_MODE:Y,COMMENT:X,C_LINE_COMMENT_MODE:ee,C_BLOCK_COMMENT_MODE:$,HASH_COMMENT_MODE:J,NUMBER_MODE:{className:"number",begin:A,relevance:0},C_NUMBER_MODE:{className:"number",begin:D,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:w,relevance:0},CSS_NUMBER_MODE:{className:"number",begin:A+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[L,{begin:/\[/,end:/\]/,relevance:0,contains:[L]}]}]},TITLE_MODE:{className:"title",begin:R,relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:M,relevance:0},METHOD_GUARD:{begin:"\\.\\s*"+M,relevance:0},END_SAME_AS_BEGIN:function(Qe){return Object.assign(Qe,{"on:begin":(gt,Vt)=>{Vt.data._beginMatch=gt[1]},"on:end":(gt,Vt)=>{Vt.data._beginMatch!==gt[1]&&Vt.ignoreMatch()}})}});function at(Qe,gt){"."===Qe.input[Qe.index-1]&>.ignoreMatch()}function pt(Qe,gt){!gt||!Qe.beginKeywords||(Qe.begin="\\b("+Qe.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Qe.__beforeBegin=at,Qe.keywords=Qe.keywords||Qe.beginKeywords,delete Qe.beginKeywords,void 0===Qe.relevance&&(Qe.relevance=0))}function vt(Qe,gt){!Array.isArray(Qe.illegal)||(Qe.illegal=function(...Qe){return"("+Qe.map(Vt=>i(Vt)).join("|")+")"}(...Qe.illegal))}function yt(Qe,gt){if(Qe.match){if(Qe.begin||Qe.end)throw new Error("begin & end are not supported with match");Qe.begin=Qe.match,delete Qe.match}}function ot(Qe,gt){void 0===Qe.relevance&&(Qe.relevance=1)}const _t=["of","and","for","in","not","or","if","then","parent","list","value"];function Tt(Qe,gt,Vt="keyword"){const qt={};return"string"==typeof Qe?Ue(Vt,Qe.split(" ")):Array.isArray(Qe)?Ue(Vt,Qe):Object.keys(Qe).forEach(function(Se){Object.assign(qt,Tt(Qe[Se],gt,Se))}),qt;function Ue(Se,te){gt&&(te=te.map(se=>se.toLowerCase())),te.forEach(function(se){const Me=se.split("|");qt[Me[0]]=[Se,Bt(Me[0],Me[1])]})}}function Bt(Qe,gt){return gt?Number(gt):function(Qe){return _t.includes(Qe.toLowerCase())}(Qe)?0:1}function Ee(Qe,{}){function Vt(se,Me){return new RegExp(i(se),"m"+(Qe.case_insensitive?"i":"")+(Me?"g":""))}class qt{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Me,Ke){Ke.position=this.position++,this.matchIndexes[this.matchAt]=Ke,this.regexes.push([Ke,Me]),this.matchAt+=function(Qe){return new RegExp(Qe.toString()+"|").exec("").length-1}(Me)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const Me=this.regexes.map(Ke=>Ke[1]);this.matcherRe=Vt(function(Qe,gt="|"){let Vt=0;return Qe.map(qt=>{Vt+=1;const Ue=Vt;let Se=i(qt),te="";for(;Se.length>0;){const se=y.exec(Se);if(!se){te+=Se;break}te+=Se.substring(0,se.index),Se=Se.substring(se.index+se[0].length),"\\"===se[0][0]&&se[1]?te+="\\"+String(Number(se[1])+Ue):(te+=se[0],"("===se[0]&&Vt++)}return te}).map(qt=>`(${qt})`).join(gt)}(Me),!0),this.lastIndex=0}exec(Me){this.matcherRe.lastIndex=this.lastIndex;const Ke=this.matcherRe.exec(Me);if(!Ke)return null;const It=Ke.findIndex((cn,An)=>An>0&&void 0!==cn),Qt=this.matchIndexes[It];return Ke.splice(0,It),Object.assign(Ke,Qt)}}class Ue{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Me){if(this.multiRegexes[Me])return this.multiRegexes[Me];const Ke=new qt;return this.rules.slice(Me).forEach(([It,Qt])=>Ke.addRule(It,Qt)),Ke.compile(),this.multiRegexes[Me]=Ke,Ke}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(Me,Ke){this.rules.push([Me,Ke]),"begin"===Ke.type&&this.count++}exec(Me){const Ke=this.getMatcher(this.regexIndex);Ke.lastIndex=this.lastIndex;let It=Ke.exec(Me);if(this.resumingScanAtSamePosition()&&(!It||It.index!==this.lastIndex)){const Qt=this.getMatcher(0);Qt.lastIndex=this.lastIndex+1,It=Qt.exec(Me)}return It&&(this.regexIndex+=It.position+1,this.regexIndex===this.count&&this.considerAll()),It}}if(Qe.compilerExtensions||(Qe.compilerExtensions=[]),Qe.contains&&Qe.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Qe.classNameAliases=m(Qe.classNameAliases||{}),function te(se,Me){const Ke=se;if(se.isCompiled)return Ke;[yt].forEach(Qt=>Qt(se,Me)),Qe.compilerExtensions.forEach(Qt=>Qt(se,Me)),se.__beforeBegin=null,[pt,vt,ot].forEach(Qt=>Qt(se,Me)),se.isCompiled=!0;let It=null;if("object"==typeof se.keywords&&(It=se.keywords.$pattern,delete se.keywords.$pattern),se.keywords&&(se.keywords=Tt(se.keywords,Qe.case_insensitive)),se.lexemes&&It)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return It=It||se.lexemes||/\w+/,Ke.keywordPatternRe=Vt(It,!0),Me&&(se.begin||(se.begin=/\B|\b/),Ke.beginRe=Vt(se.begin),se.endSameAsBegin&&(se.end=se.begin),!se.end&&!se.endsWithParent&&(se.end=/\B|\b/),se.end&&(Ke.endRe=Vt(se.end)),Ke.terminatorEnd=i(se.end)||"",se.endsWithParent&&Me.terminatorEnd&&(Ke.terminatorEnd+=(se.end?"|":"")+Me.terminatorEnd)),se.illegal&&(Ke.illegalRe=Vt(se.illegal)),se.contains||(se.contains=[]),se.contains=[].concat(...se.contains.map(function(Qt){return function(Qe){return Qe.variants&&!Qe.cachedVariants&&(Qe.cachedVariants=Qe.variants.map(function(gt){return m(Qe,{variants:null},gt)})),Qe.cachedVariants?Qe.cachedVariants:fe(Qe)?m(Qe,{starts:Qe.starts?m(Qe.starts):null}):Object.isFrozen(Qe)?m(Qe):Qe}("self"===Qt?se:Qt)})),se.contains.forEach(function(Qt){te(Qt,Ke)}),se.starts&&te(se.starts,Me),Ke.matcher=function(se){const Me=new Ue;return se.contains.forEach(Ke=>Me.addRule(Ke.begin,{rule:Ke,type:"begin"})),se.terminatorEnd&&Me.addRule(se.terminatorEnd,{type:"end"}),se.illegal&&Me.addRule(se.illegal,{type:"illegal"}),Me}(Ke),Ke}(Qe)}function fe(Qe){return!!Qe&&(Qe.endsWithParent||fe(Qe.starts))}function Z(Qe){const gt={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!Qe.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,_(this.code);let qt={};return this.autoDetect?(qt=Qe.highlightAuto(this.code),this.detectedLanguage=qt.language):(qt=Qe.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),qt.value},autoDetect(){return!this.language||function(Qe){return Boolean(Qe||""===Qe)}(this.autodetect)},ignoreIllegals:()=>!0},render(qt){return qt("pre",{},[qt("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:gt,VuePlugin:{install(qt){qt.component("highlightjs",gt)}}}}const _e={"after:highlightElement":({el:Qe,result:gt,text:Vt})=>{const qt=$e(Qe);if(!qt.length)return;const Ue=document.createElement("div");Ue.innerHTML=gt.value,gt.value=function(Qe,gt,Vt){let qt=0,Ue="";const Se=[];function te(){return Qe.length&>.length?Qe[0].offset!==gt[0].offset?Qe[0].offset"}function Me(It){Ue+=""}function Ke(It){("start"===It.event?se:Me)(It.node)}for(;Qe.length||gt.length;){let It=te();if(Ue+=_(Vt.substring(qt,It[0].offset)),qt=It[0].offset,It===Qe){Se.reverse().forEach(Me);do{Ke(It.splice(0,1)[0]),It=te()}while(It===Qe&&It.length&&It[0].offset===qt);Se.reverse().forEach(se)}else"start"===It[0].event?Se.push(It[0].node):Se.pop(),Ke(It.splice(0,1)[0])}return Ue+_(Vt.substr(qt))}(qt,$e(Ue),Vt)}};function Be(Qe){return Qe.nodeName.toLowerCase()}function $e(Qe){const gt=[];return function Vt(qt,Ue){for(let Se=qt.firstChild;Se;Se=Se.nextSibling)3===Se.nodeType?Ue+=Se.nodeValue.length:1===Se.nodeType&&(gt.push({event:"start",offset:Ue,node:Se}),Ue=Vt(Se,Ue),Be(Se).match(/br|hr|img|input/)||gt.push({event:"stop",offset:Ue,node:Se}));return Ue}(Qe,0),gt}const ut={},St=Qe=>{console.error(Qe)},Xt=(Qe,...gt)=>{console.log(`WARN: ${Qe}`,...gt)},tn=(Qe,gt)=>{ut[`${Qe}/${gt}`]||(console.log(`Deprecated as of ${Qe}. ${gt}`),ut[`${Qe}/${gt}`]=!0)},Dt=_,Kt=m,tt=Symbol("nomatch");var Lt=function(Qe){const gt=Object.create(null),Vt=Object.create(null),qt=[];let Ue=!0;const Se=/(^(<[^>]+>|\t|)+|\n)/gm,te="Could not find the language '{}', did you forget to load/include a language module?",se={disableAutodetect:!0,name:"Plain text",contains:[]};let Me={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:r};function Ke(Ft){return Me.noHighlightRe.test(Ft)}function Qt(Ft,Ht,Zt,an){let Tn="",zn="";"object"==typeof Ht?(Tn=Ft,Zt=Ht.ignoreIllegals,zn=Ht.language,an=void 0):(tn("10.7.0","highlight(lang, code, ...args) has been deprecated."),tn("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),zn=Ft,Tn=Ht);const $n={code:Tn,language:zn};Fe("before:highlight",$n);const ti=$n.result?$n.result:cn($n.language,$n.code,Zt,an);return ti.code=$n.code,Fe("after:highlight",ti),ti}function cn(Ft,Ht,Zt,an){function Tn(gn,yn){const Sn=Ui.case_insensitive?yn[0].toLowerCase():yn[0];return Object.prototype.hasOwnProperty.call(gn.keywords,Sn)&&gn.keywords[Sn]}function ti(){null!=Rn.subLanguage?function(){if(""===Fn)return;let gn=null;if("string"==typeof Rn.subLanguage){if(!gt[Rn.subLanguage])return void oi.addText(Fn);gn=cn(Rn.subLanguage,Fn,!0,qi[Rn.subLanguage]),qi[Rn.subLanguage]=gn.top}else gn=lt(Fn,Rn.subLanguage.length?Rn.subLanguage:null);Rn.relevance>0&&($i+=gn.relevance),oi.addSublanguage(gn.emitter,gn.language)}():function(){if(!Rn.keywords)return void oi.addText(Fn);let gn=0;Rn.keywordPatternRe.lastIndex=0;let yn=Rn.keywordPatternRe.exec(Fn),Sn="";for(;yn;){Sn+=Fn.substring(gn,yn.index);const Wn=Tn(Rn,yn);if(Wn){const[Ri,Li]=Wn;oi.addText(Sn),Sn="",$i+=Li,Ri.startsWith("_")?Sn+=yn[0]:oi.addKeyword(yn[0],Ui.classNameAliases[Ri]||Ri)}else Sn+=yn[0];gn=Rn.keywordPatternRe.lastIndex,yn=Rn.keywordPatternRe.exec(Fn)}Sn+=Fn.substr(gn),oi.addText(Sn)}(),Fn=""}function jn(gn){return gn.className&&oi.openNode(Ui.classNameAliases[gn.className]||gn.className),Rn=Object.create(gn,{parent:{value:Rn}}),Rn}function Qn(gn,yn,Sn){let Wn=function(Qe,gt){const Vt=Qe&&Qe.exec(gt);return Vt&&0===Vt.index}(gn.endRe,Sn);if(Wn){if(gn["on:end"]){const Ri=new f(gn);gn["on:end"](yn,Ri),Ri.isMatchIgnored&&(Wn=!1)}if(Wn){for(;gn.endsParent&&gn.parent;)gn=gn.parent;return gn}}if(gn.endsWithParent)return Qn(gn.parent,yn,Sn)}function kn(gn){return 0===Rn.matcher.regexIndex?(Fn+=gn[0],1):(ur=!0,0)}function Zi(gn){const yn=gn[0],Sn=Ht.substr(gn.index),Wn=Qn(Rn,gn,Sn);if(!Wn)return tt;const Ri=Rn;Ri.skip?Fn+=yn:(Ri.returnEnd||Ri.excludeEnd||(Fn+=yn),ti(),Ri.excludeEnd&&(Fn=yn));do{Rn.className&&oi.closeNode(),!Rn.skip&&!Rn.subLanguage&&($i+=Rn.relevance),Rn=Rn.parent}while(Rn!==Wn.parent);return Wn.starts&&(Wn.endSameAsBegin&&(Wn.starts.endRe=Wn.endRe),jn(Wn.starts)),Ri.returnEnd?0:yn.length}let pi={};function Gi(gn,yn){const Sn=yn&&yn[0];if(Fn+=gn,null==Sn)return ti(),0;if("begin"===pi.type&&"end"===yn.type&&pi.index===yn.index&&""===Sn){if(Fn+=Ht.slice(yn.index,yn.index+1),!Ue){const Wn=new Error("0 width match regex");throw Wn.languageName=Ft,Wn.badRule=pi.rule,Wn}return 1}if(pi=yn,"begin"===yn.type)return function(gn){const yn=gn[0],Sn=gn.rule,Wn=new f(Sn),Ri=[Sn.__beforeBegin,Sn["on:begin"]];for(const Li of Ri)if(Li&&(Li(gn,Wn),Wn.isMatchIgnored))return kn(yn);return Sn&&Sn.endSameAsBegin&&(Sn.endRe=function(Qe){return new RegExp(Qe.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}(yn)),Sn.skip?Fn+=yn:(Sn.excludeBegin&&(Fn+=yn),ti(),!Sn.returnBegin&&!Sn.excludeBegin&&(Fn=yn)),jn(Sn),Sn.returnBegin?0:yn.length}(yn);if("illegal"===yn.type&&!Zt){const Wn=new Error('Illegal lexeme "'+Sn+'" for mode "'+(Rn.className||"")+'"');throw Wn.mode=Rn,Wn}if("end"===yn.type){const Wn=Zi(yn);if(Wn!==tt)return Wn}if("illegal"===yn.type&&""===Sn)return 1;if(Gn>1e5&&Gn>3*yn.index)throw new Error("potential infinite loop, way more iterations than matches");return Fn+=Sn,Sn.length}const Ui=qe(Ft);if(!Ui)throw St(te.replace("{}",Ft)),new Error('Unknown language: "'+Ft+'"');const tr=Ee(Ui,{plugins:qt});let bi="",Rn=an||tr;const qi={},oi=new Me.__emitter(Me);!function(){const gn=[];for(let yn=Rn;yn!==Ui;yn=yn.parent)yn.className&&gn.unshift(yn.className);gn.forEach(yn=>oi.openNode(yn))}();let Fn="",$i=0,mi=0,Gn=0,ur=!1;try{for(Rn.matcher.considerAll();;){Gn++,ur?ur=!1:Rn.matcher.considerAll(),Rn.matcher.lastIndex=mi;const gn=Rn.matcher.exec(Ht);if(!gn)break;const Sn=Gi(Ht.substring(mi,gn.index),gn);mi=gn.index+Sn}return Gi(Ht.substr(mi)),oi.closeAllNodes(),oi.finalize(),bi=oi.toHTML(),{relevance:Math.floor($i),value:bi,language:Ft,illegal:!1,emitter:oi,top:Rn}}catch(gn){if(gn.message&&gn.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:gn.message,context:Ht.slice(mi-100,mi+100),mode:gn.mode},sofar:bi,relevance:0,value:Dt(Ht),emitter:oi};if(Ue)return{illegal:!1,relevance:0,value:Dt(Ht),emitter:oi,language:Ft,top:Rn,errorRaised:gn};throw gn}}function lt(Ft,Ht){Ht=Ht||Me.languages||Object.keys(gt);const Zt=function(Ft){const Ht={relevance:0,emitter:new Me.__emitter(Me),value:Dt(Ft),illegal:!1,top:se};return Ht.emitter.addText(Ft),Ht}(Ft),an=Ht.filter(qe).filter(Le).map(jn=>cn(jn,Ft,!1));an.unshift(Zt);const Tn=an.sort((jn,Qn)=>{if(jn.relevance!==Qn.relevance)return Qn.relevance-jn.relevance;if(jn.language&&Qn.language){if(qe(jn.language).supersetOf===Qn.language)return 1;if(qe(Qn.language).supersetOf===jn.language)return-1}return 0}),[zn,$n]=Tn,ti=zn;return ti.second_best=$n,ti}const mt={"before:highlightElement":({el:Ft})=>{Me.useBR&&(Ft.innerHTML=Ft.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightElement":({result:Ft})=>{Me.useBR&&(Ft.value=Ft.value.replace(/\n/g,"
"))}},Ot=/^(<[^>]+>|\t)+/gm,un={"after:highlightElement":({result:Ft})=>{Me.tabReplace&&(Ft.value=Ft.value.replace(Ot,Ht=>Ht.replace(/\t/g,Me.tabReplace)))}};function on(Ft){let Ht=null;const Zt=function(Ft){let Ht=Ft.className+" ";Ht+=Ft.parentNode?Ft.parentNode.className:"";const Zt=Me.languageDetectRe.exec(Ht);if(Zt){const an=qe(Zt[1]);return an||(Xt(te.replace("{}",Zt[1])),Xt("Falling back to no-highlight mode for this block.",Ft)),an?Zt[1]:"no-highlight"}return Ht.split(/\s+/).find(an=>Ke(an)||qe(an))}(Ft);if(Ke(Zt))return;Fe("before:highlightElement",{el:Ft,language:Zt}),Ht=Ft;const an=Ht.textContent,Tn=Zt?Qt(an,{language:Zt,ignoreIllegals:!0}):lt(an);Fe("after:highlightElement",{el:Ft,result:Tn,text:an}),Ft.innerHTML=Tn.value,function(Ft,Ht,Zt){const an=Ht?Vt[Ht]:Zt;Ft.classList.add("hljs"),an&&Ft.classList.add(an)}(Ft,Zt,Tn.language),Ft.result={language:Tn.language,re:Tn.relevance,relavance:Tn.relevance},Tn.second_best&&(Ft.second_best={language:Tn.second_best.language,re:Tn.second_best.relevance,relavance:Tn.second_best.relevance})}const Yn=()=>{Yn.called||(Yn.called=!0,tn("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(on))};let Oi=!1;function Ni(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(on):Oi=!0}function qe(Ft){return Ft=(Ft||"").toLowerCase(),gt[Ft]||gt[Vt[Ft]]}function ue(Ft,{languageName:Ht}){"string"==typeof Ft&&(Ft=[Ft]),Ft.forEach(Zt=>{Vt[Zt.toLowerCase()]=Ht})}function Le(Ft){const Ht=qe(Ft);return Ht&&!Ht.disableAutodetect}function Fe(Ft,Ht){const Zt=Ft;qt.forEach(function(an){an[Zt]&&an[Zt](Ht)})}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function(){Oi&&Ni()},!1),Object.assign(Qe,{highlight:Qt,highlightAuto:lt,highlightAll:Ni,fixMarkup:function(Ft){return tn("10.2.0","fixMarkup will be removed entirely in v11.0"),tn("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),function(Ft){return Me.tabReplace||Me.useBR?Ft.replace(Se,Ht=>"\n"===Ht?Me.useBR?"
":Ht:Me.tabReplace?Ht.replace(/\t/g,Me.tabReplace):Ht):Ft}(Ft)},highlightElement:on,highlightBlock:function(Ft){return tn("10.7.0","highlightBlock will be removed entirely in v12.0"),tn("10.7.0","Please use highlightElement now."),on(Ft)},configure:function(Ft){Ft.useBR&&(tn("10.3.0","'useBR' will be removed entirely in v11.0"),tn("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Me=Kt(Me,Ft)},initHighlighting:Yn,initHighlightingOnLoad:function(){tn("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Oi=!0},registerLanguage:function(Ft,Ht){let Zt=null;try{Zt=Ht(Qe)}catch(an){if(St("Language definition for '{}' could not be registered.".replace("{}",Ft)),!Ue)throw an;St(an),Zt=se}Zt.name||(Zt.name=Ft),gt[Ft]=Zt,Zt.rawDefinition=Ht.bind(null,Qe),Zt.aliases&&ue(Zt.aliases,{languageName:Ft})},unregisterLanguage:function(Ft){delete gt[Ft];for(const Ht of Object.keys(Vt))Vt[Ht]===Ft&&delete Vt[Ht]},listLanguages:function(){return Object.keys(gt)},getLanguage:qe,registerAliases:ue,requireLanguage:function(Ft){tn("10.4.0","requireLanguage will be removed entirely in v11."),tn("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const Ht=qe(Ft);if(Ht)return Ht;throw new Error("The '{}' language is required, but not loaded.".replace("{}",Ft))},autoDetection:Le,inherit:Kt,addPlugin:function(Ft){(function(Ft){Ft["before:highlightBlock"]&&!Ft["before:highlightElement"]&&(Ft["before:highlightElement"]=Ht=>{Ft["before:highlightBlock"](Object.assign({block:Ht.el},Ht))}),Ft["after:highlightBlock"]&&!Ft["after:highlightElement"]&&(Ft["after:highlightElement"]=Ht=>{Ft["after:highlightBlock"](Object.assign({block:Ht.el},Ht))})})(Ft),qt.push(Ft)},vuePlugin:Z(Qe).VuePlugin}),Qe.debugMode=function(){Ue=!1},Qe.safeMode=function(){Ue=!0},Qe.versionString="10.7.2";for(const Ft in et)"object"==typeof et[Ft]&&p(et[Ft]);return Object.assign(Qe,et),Qe.addPlugin(mt),Qe.addPlugin(_e),Qe.addPlugin(un),Qe}({});ye.exports=Lt},7652:ye=>{ye.exports=function(p){const n={literal:"true false null"},f=[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE],_=[p.QUOTE_STRING_MODE,p.C_NUMBER_MODE],m={end:",",endsWithParent:!0,excludeEnd:!0,contains:_,keywords:n},s={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[p.BACKSLASH_ESCAPE],illegal:"\\n"},p.inherit(m,{begin:/:/})].concat(f),illegal:"\\S"},d={begin:"\\[",end:"\\]",contains:[p.inherit(m)],illegal:"\\S"};return _.push(s,d),f.forEach(function(u){_.push(u)}),{name:"JSON",contains:_,keywords:n,illegal:"\\S"}}},1891:ye=>{function W(s){return s?"string"==typeof s?s:s.source:null}function p(s){return f("(?=",s,")")}function f(...s){return s.map(u=>W(u)).join("")}function _(...s){return"("+s.map(u=>W(u)).join("|")+")"}ye.exports=function(s){const d=f(/[A-Z_]/,f("(",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),h={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=s.inherit(r,{begin:/\(/,end:/\)/}),i=s.inherit(s.APOS_STRING_MODE,{className:"meta-string"}),c=s.inherit(s.QUOTE_STRING_MODE,{className:"meta-string"}),l={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[r,c,i,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[r,o,c,i]}]}]},s.COMMENT(//,{relevance:10}),{begin://,relevance:10},h,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:f(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:d,relevance:0,starts:l}]},{className:"tag",begin:f(/<\//,p(f(d,/>/))),contains:[{className:"name",begin:d,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},859:()=>{!function(ye,W){"use strict";var Y,p="hljs-ln",f="hljs-ln-code",m="hljs-ln-n",s="data-line-number",d=/\r\n|\r|\n/g;function c(Y){try{var X=W.querySelectorAll("code.hljs,code.nohighlight");for(var ee in X)X.hasOwnProperty(ee)&&(l(X[ee])||g(X[ee],Y))}catch($){ye.console.error("LineNumbers error: ",$)}}function l(Y){return Y.classList.contains("nohljsln")}function g(Y,X){"object"==typeof Y&&function(Y){ye.setTimeout(Y,0)}(function(){Y.innerHTML=y(Y,X)})}function y(Y,X){var ee=function(Y,X){return{singleLine:R(X=X||{}),startFrom:M(Y,X)}}(Y,X);return A(Y),function(Y,X){var ee=w(Y);if(""===ee[ee.length-1].trim()&&ee.pop(),ee.length>1||X.singleLine){for(var $="",J=0,ie=ee.length;J
{6}',["hljs-ln-line","hljs-ln-numbers",m,s,f,J+X.startFrom,ee[J].length>0?ee[J]:" "]);return L('{1}
',[p,$])}return Y}(Y.innerHTML,ee)}function R(Y){return!!Y.singleLine&&Y.singleLine}function M(Y,X){var $=1;isFinite(X.startFrom)&&($=X.startFrom);var J=function(Y,X){return Y.hasAttribute(X)?Y.getAttribute(X):null}(Y,"data-ln-start-from");return null!==J&&($=function(Y,X){if(!Y)return 1;var ee=Number(Y);return isFinite(ee)?ee:1}(J)),$}function A(Y){var X=Y.childNodes;for(var ee in X)if(X.hasOwnProperty(ee)){var $=X[ee];x($.textContent)>0&&($.childNodes.length>0?A($):D($.parentNode))}}function D(Y){var X=Y.className;if(/hljs-/.test(X)){for(var ee=w(Y.innerHTML),$=0,J="";${1}
\n',[X,ee[$].length>0?ee[$]:" "]);Y.innerHTML=J.trim()}}function w(Y){return 0===Y.length?[]:Y.split(d)}function x(Y){return(Y.trim().match(d)||[]).length}function L(Y,X){return Y.replace(/\{(\d+)\}/g,function(ee,$){return void 0!==X[$]?X[$]:ee})}ye.hljs?(ye.hljs.initLineNumbersOnLoad=function(Y){"interactive"===W.readyState||"complete"===W.readyState?c(Y):ye.addEventListener("DOMContentLoaded",function(){c(Y)})},ye.hljs.lineNumbersBlock=g,ye.hljs.lineNumbersValue=function(Y,X){if("string"==typeof Y){var ee=document.createElement("code");return ee.innerHTML=Y,y(ee,X)}},(Y=W.createElement("style")).type="text/css",Y.innerHTML=L(".{0}{border-collapse:collapse}.{0} td{padding:0}.{1}:before{content:attr({2})}",[p,m,s]),W.getElementsByTagName("head")[0].appendChild(Y)):ye.console.error("highlight.js not detected!"),document.addEventListener("copy",function(Y){var ee,X=window.getSelection();(function(Y){for(var X=Y;X;){if(X.className&&-1!==X.className.indexOf("hljs-ln-code"))return!0;X=X.parentNode}return!1})(X.anchorNode)&&(ee=-1!==window.navigator.userAgent.indexOf("Edge")?function(Y){for(var X=Y.toString(),ee=Y.anchorNode;"TD"!==ee.nodeName;)ee=ee.parentNode;for(var $=Y.focusNode;"TD"!==$.nodeName;)$=$.parentNode;var J=parseInt(ee.dataset.lineNumber),ie=parseInt($.dataset.lineNumber);if(J!=ie){var ne=ee.textContent,ae=$.textContent;if(J>ie){var xe=J;J=ie,ie=xe,xe=ne,ne=ae,ae=xe}for(;0!==X.indexOf(ne);)ne=ne.slice(1);for(;-1===X.lastIndexOf(ae);)ae=ae.slice(0,-1);for(var Ie=ne,We=function(Y){for(var X=Y;"TABLE"!==X.nodeName;)X=X.parentNode;return X}(ee),Xe=J+1;Xe{"use strict";ye.exports=Number.isFinite||function(W){return!("number"!=typeof W||W!=W||W===1/0||W===-1/0)}},5984:(ye,W,p)=>{var n=p(2327);ye.exports=Number.isInteger||function(f){return"number"==typeof f&&n(f)&&Math.floor(f)===f}},1654:function(ye,W){var f;void 0!==(f=function(){"use strict";function _(o){function i(y){for(var S=0,I=c.length;S127){if(a>191&&a<224){if(t>=e.length)throw"UTF-8 decode: incomplete 2-byte sequence";a=(31&a)<<6|63&e[t]}else if(a>223&&a<240){if(t+1>=e.length)throw"UTF-8 decode: incomplete 3-byte sequence";a=(15&a)<<12|(63&e[t])<<6|63&e[++t]}else{if(!(a>239&&a<248))throw"UTF-8 decode: unknown multibyte start 0x"+a.toString(16)+" at index "+(t-1);if(t+2>=e.length)throw"UTF-8 decode: incomplete 4-byte sequence";a=(7&a)<<18|(63&e[t])<<12|(63&e[++t])<<6|63&e[++t]}++t}if(a<=65535)r+=String.fromCharCode(a);else{if(!(a<=1114111))throw"UTF-8 decode: code point 0x"+a.toString(16)+" exceeds UTF-16 reach";a-=65536,r+=String.fromCharCode(a>>10|55296),r+=String.fromCharCode(1023&a|56320)}}return r}function PaxHeader(e){this._fields=e}function TarFile(){}function UntarStream(e){this._bufferView=new DataView(e),this._position=0}function UntarFileStream(e){this._stream=new UntarStream(e),this._globalPaxHeader=null}if(UntarWorker.prototype={onmessage:function(e){try{if("extract"!==e.data.type)throw new Error("Unknown message type: "+e.data.type);this.untarBuffer(e.data.buffer)}catch(r){this.postError(r)}},postError:function(e){this.postMessage({type:"error",data:{message:e.message}})},postLog:function(e,r){this.postMessage({type:"log",data:{level:e,msg:r}})},untarBuffer:function(e){try{for(var r=new UntarFileStream(e);r.hasNext();){var t=r.next();this.postMessage({type:"extract",data:t},[t.buffer])}this.postMessage({type:"complete"})}catch(a){this.postError(a)}},postMessage:function(e,r){self.postMessage(e,r)}},"undefined"!=typeof self){var worker=new UntarWorker;self.onmessage=function(e){worker.onmessage(e)}}PaxHeader.parse=function(e){for(var r=new Uint8Array(e),t=[];r.length>0;){var a=parseInt(decodeUTF8(r.subarray(0,r.indexOf(32)))),n=decodeUTF8(r.subarray(0,a)),i=n.match(/^\\d+ ([^=]+)=(.*)\\n$/);if(null===i)throw new Error("Invalid PAX header data format.");var s=i[1],o=i[2];0===o.length?o=null:null!==o.match(/^\\d+$/)&&(o=parseInt(o));var f={name:s,value:o};t.push(f),r=r.subarray(a)}return new PaxHeader(t)},PaxHeader.prototype={applyHeader:function(e){this._fields.forEach(function(r){var t=r.name,a=r.value;"path"===t?(t="name",void 0!==e.prefix&&delete e.prefix):"linkpath"===t&&(t="linkname"),null===a?delete e[t]:e[t]=a})}},UntarStream.prototype={readString:function(e){for(var r=1,t=e*r,a=[],n=0;n-1&&(r.version=e.readString(2),r.uname=e.readString(32),r.gname=e.readString(32),r.devmajor=parseInt(e.readString(8)),r.devminor=parseInt(e.readString(8)),r.namePrefix=e.readString(155),r.namePrefix.length>0&&(r.name=r.namePrefix+"/"+r.name)),e.position(i),r.type){case"0":case"":r.buffer=e.readBuffer(r.size);break;case"1":break;case"2":break;case"3":break;case"4":break;case"5":break;case"6":break;case"7":break;case"g":t=!0,this._globalPaxHeader=PaxHeader.parse(e.readBuffer(r.size));break;case"x":t=!0,a=PaxHeader.parse(e.readBuffer(r.size))}void 0===r.buffer&&(r.buffer=new ArrayBuffer(0));var s=i+r.size;return r.size%512!==0&&(s+=512-r.size%512),e.position(s),t&&(r=this._readNextFile()),null!==this._globalPaxHeader&&this._globalPaxHeader.applyHeader(r),null!==a&&a.applyHeader(r),r}};'])),function(o){if(!(o instanceof ArrayBuffer))throw new TypeError("arrayBuffer is not an instance of ArrayBuffer.");if(!u.Worker)throw new Error("Worker implementation is not available in this environment.");return new _(function(i,c,l){var g=new Worker(d),b=[];g.onerror=function(y){c(y)},g.onmessage=function(y){switch((y=y.data).type){case"log":console[y.data.level]("Worker: "+y.data.msg);break;case"extract":var S=function(o){return Object.defineProperties(o,r),o}(y.data);b.push(S),l(S);break;case"complete":g.terminate(),i(b);break;case"error":g.terminate(),c(new Error(y.data.message));break;default:g.terminate(),c(new Error("Unknown message from worker: "+y.type))}},g.postMessage({type:"extract",buffer:o},[o])})}}.apply(W,[]))&&(ye.exports=f)},642:(ye,W)=>{function n(f,_){var m=[],s=[];return null==_&&(_=function(d,u){return m[0]===u?"[Circular ~]":"[Circular ~."+s.slice(0,m.indexOf(u)).join(".")+"]"}),function(d,u){if(m.length>0){var h=m.indexOf(this);~h?m.splice(h+1):m.push(this),~h?s.splice(h,1/0,d):s.push(d),~m.indexOf(u)&&(u=_.call(this,d,u))}else m.push(u);return null==f?u:f.call(this,d,u)}}(ye.exports=function(f,_,m,s){return JSON.stringify(f,n(_,s),m)}).getSerialize=n},4366:ye=>{var W=1e3,p=60*W,n=60*p,f=24*n;function u(h,r,o){if(!(h0)return function(h){if(!((h=String(h)).length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(h);if(r){var o=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"days":case"day":case"d":return o*f;case"hours":case"hour":case"hrs":case"hr":case"h":return o*n;case"minutes":case"minute":case"mins":case"min":case"m":return o*p;case"seconds":case"second":case"secs":case"sec":case"s":return o*W;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(h);if("number"===o&&!1===isNaN(h))return r.long?function(h){return u(h,f,"day")||u(h,n,"hour")||u(h,p,"minute")||u(h,W,"second")||h+" ms"}(h):function(h){return h>=f?Math.round(h/f)+"d":h>=n?Math.round(h/n)+"h":h>=p?Math.round(h/p)+"m":h>=W?Math.round(h/W)+"s":h+"ms"}(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))}},8922:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{FileSizeModule:()=>m,FileSizePipe:()=>_});var n=p(8277),f=p(5e3),_=function(){function s(){}return s.prototype.transform=function(d,u){return Array.isArray(d)?d.map(function(h){return s.transformOne(h,u)}):s.transformOne(d,u)},s.transformOne=function(d,u){return n(d,u)},s.\u0275fac=function(u){return new(u||s)},s.\u0275pipe=f.\u0275\u0275definePipe({name:"filesize",type:s,pure:!0}),s}(),m=function(){function s(){}return s.\u0275fac=function(u){return new(u||s)},s.\u0275mod=f.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=f.\u0275\u0275defineInjector({}),s}()},2756:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{HIGHLIGHT_OPTIONS:()=>y,Highlight:()=>A,HighlightJS:()=>M,HighlightLoader:()=>S,HighlightModule:()=>D,\u02750:()=>R});var n=p(5e3),f=p(591),_=p(8896),m=p(1737),s=p(1746),d=p(5254),u=p(352),h=p(2198),r=p(4850),o=p(2986),i=p(7545),c=p(2868),l=p(7221),g=p(9808),b=p(2313);const y=new n.InjectionToken("HIGHLIGHT_OPTIONS");let S=(()=>{class w{constructor(C,L,F){this._options=F,this._ready=new f.X(null),this.ready=this._ready.asObservable().pipe((0,h.h)(re=>!!re),(0,r.U)(re=>re),(0,o.q)(1)),(0,g.isPlatformBrowser)(L)&&C.defaultView.hljs?this._ready.next(C.defaultView.hljs):this._loadLibrary().pipe((0,i.w)(re=>this._options&&this._options.lineNumbersLoader?(C.defaultView.hljs=re,this.loadLineNumbers().pipe((0,c.b)(()=>this._ready.next(re)))):(this._ready.next(re),_.E)),(0,l.K)(re=>(console.error("[HLJS] ",re),_.E))).subscribe()}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return(0,m._)("The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return(0,m._)("The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return(0,m._)("The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return(0,m._)("The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe((0,i.w)(C=>this._loadLanguages(C)))}return(0,m._)("Highlight.js library was not imported!")}_loadLanguages(C){const L=Object.entries(this._options.languages).map(([F,re])=>I(re()).pipe((0,c.b)(Y=>C.registerLanguage(F,Y))));return(0,s.$R)(...L).pipe((0,r.U)(()=>C))}loadCoreLibrary(){return I(this._options.coreLibraryLoader())}loadFullLibrary(){return I(this._options.fullLibraryLoader())}loadLineNumbers(){return I(this._options.lineNumbersLoader())}}return w.\u0275fac=function(C){return new(C||w)(n.\u0275\u0275inject(g.DOCUMENT),n.\u0275\u0275inject(n.PLATFORM_ID),n.\u0275\u0275inject(y,8))},w.\u0275prov=(0,n.\u0275\u0275defineInjectable)({factory:function(){return new w((0,n.\u0275\u0275inject)(g.DOCUMENT),(0,n.\u0275\u0275inject)(n.PLATFORM_ID),(0,n.\u0275\u0275inject)(y,8))},token:w,providedIn:"root"}),w})();const I=w=>(0,d.D)(w).pipe((0,h.h)(x=>!!x&&!!x.default),(0,r.U)(x=>x.default)),R=I;let M=(()=>{class w{constructor(C,L){this._loader=C,this._hljs=null,C.ready.pipe().subscribe(F=>{this._hljs=F,L&&L.config&&(F.configure(L.config),F.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}get hljs(){return this._hljs}highlight(C,L,F,re){return this._loader.ready.pipe((0,r.U)(Y=>Y.highlight(C,L,F,re)))}highlightAuto(C,L){return this._loader.ready.pipe((0,r.U)(F=>F.highlightAuto(C,L)))}fixMarkup(C){return this._loader.ready.pipe((0,r.U)(L=>L.fixMarkup(C)))}highlightBlock(C){return this._loader.ready.pipe((0,r.U)(L=>L.highlightBlock(C)))}configure(C){return this._loader.ready.pipe((0,r.U)(L=>L.configure(C)))}initHighlighting(){return this._loader.ready.pipe((0,r.U)(C=>C.initHighlighting()))}registerLanguage(C,L){return this._loader.ready.pipe((0,c.b)(F=>F.registerLanguage(C,L)))}listLanguages(){return this._loader.ready.pipe((0,r.U)(C=>C.listLanguages()))}getLanguage(C){return this._loader.ready.pipe((0,r.U)(L=>L.getLanguage(C)))}lineNumbersBlock(C){return this._loader.ready.pipe((0,h.h)(L=>!!L.lineNumbersBlock),(0,c.b)(L=>L.lineNumbersBlock(C)))}}return w.\u0275fac=function(C){return new(C||w)(n.\u0275\u0275inject(S),n.\u0275\u0275inject(y,8))},w.\u0275prov=(0,n.\u0275\u0275defineInjectable)({factory:function(){return new w((0,n.\u0275\u0275inject)(S),(0,n.\u0275\u0275inject)(y,8))},token:w,providedIn:"root"}),w})(),A=(()=>{class w{constructor(C,L,F,re){this._hljs=L,this._sanitizer=F,this._options=re,this.highlighted=new n.EventEmitter,this._nativeElement=C.nativeElement}ngOnChanges(C){this.code&&C.code&&void 0!==C.code.currentValue&&C.code.currentValue!==C.code.previousValue&&this.highlightElement(this.code,this.languages)}highlightElement(C,L){this.setTextContent(C),this._hljs.highlightAuto(C,L).subscribe(F=>{this.setInnerHTML(F.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(F)})}addLineNumbers(){this.destroyLineNumbersObserver(),u.Z.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(C){u.Z.schedule(()=>this._nativeElement.textContent=C)}setInnerHTML(C){u.Z.schedule(()=>this._nativeElement.innerHTML=this._sanitizer.sanitize(n.SecurityContext.HTML,C)||"")}}return w.\u0275fac=function(C){return new(C||w)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(M),n.\u0275\u0275directiveInject(b.DomSanitizer),n.\u0275\u0275directiveInject(y,8))},w.\u0275dir=n.\u0275\u0275defineDirective({type:w,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(C,L){2&C&&n.\u0275\u0275classProp("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[n.\u0275\u0275NgOnChangesFeature]}),w})(),D=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=n.\u0275\u0275defineNgModule({type:w}),w.\u0275inj=n.\u0275\u0275defineInjector({}),w})()},591:(ye,W,p)=>{"use strict";p.d(W,{X:()=>_});var n=p(8929),f=p(5279);class _ extends n.xQ{constructor(s){super(),this._value=s}get value(){return this.getValue()}_subscribe(s){const d=super._subscribe(s);return d&&!d.closed&&s.next(this._value),d}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new f.N;return this._value}next(s){super.next(this._value=s)}}},9312:(ye,W,p)=>{"use strict";p.d(W,{P:()=>s});var n=p(8896),f=p(1086),_=p(1737);class s{constructor(u,h,r){this.kind=u,this.value=h,this.error=r,this.hasValue="N"===u}observe(u){switch(this.kind){case"N":return u.next&&u.next(this.value);case"E":return u.error&&u.error(this.error);case"C":return u.complete&&u.complete()}}do(u,h,r){switch(this.kind){case"N":return u&&u(this.value);case"E":return h&&h(this.error);case"C":return r&&r()}}accept(u,h,r){return u&&"function"==typeof u.next?this.observe(u):this.do(u,h,r)}toObservable(){switch(this.kind){case"N":return(0,f.of)(this.value);case"E":return(0,_._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(u){return void 0!==u?new s("N",u):s.undefinedValueNotification}static createError(u){return new s("E",void 0,u)}static createComplete(){return s.completeNotification}}s.completeNotification=new s("C"),s.undefinedValueNotification=new s("N",void 0)},6498:(ye,W,p)=>{"use strict";p.d(W,{y:()=>r});var n=p(3489),_=p(7668),m=p(3292),d=p(3821),u=p(4843),h=p(2830);let r=(()=>{class i{constructor(l){this._isScalar=!1,l&&(this._subscribe=l)}lift(l){const g=new i;return g.source=this,g.operator=l,g}subscribe(l,g,b){const{operator:y}=this,S=function(i,c,l){if(i){if(i instanceof n.L)return i;if(i[_.b])return i[_.b]()}return i||c||l?new n.L(i,c,l):new n.L(m.c)}(l,g,b);if(S.add(y?y.call(S,this.source):this.source||h.v.useDeprecatedSynchronousErrorHandling&&!S.syncErrorThrowable?this._subscribe(S):this._trySubscribe(S)),h.v.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable&&(S.syncErrorThrowable=!1,S.syncErrorThrown))throw S.syncErrorValue;return S}_trySubscribe(l){try{return this._subscribe(l)}catch(g){h.v.useDeprecatedSynchronousErrorHandling&&(l.syncErrorThrown=!0,l.syncErrorValue=g),function(i){for(;i;){const{closed:c,destination:l,isStopped:g}=i;if(c||g)return!1;i=l&&l instanceof n.L?l:null}return!0}(l)?l.error(g):console.warn(g)}}forEach(l,g){return new(g=o(g))((b,y)=>{let S;S=this.subscribe(I=>{try{l(I)}catch(R){y(R),S&&S.unsubscribe()}},y,b)})}_subscribe(l){const{source:g}=this;return g&&g.subscribe(l)}[d.L](){return this}pipe(...l){return 0===l.length?this:(0,u.U)(l)(this)}toPromise(l){return new(l=o(l))((g,b)=>{let y;this.subscribe(S=>y=S,S=>b(S),()=>g(y))})}}return i.create=c=>new i(c),i})();function o(i){if(i||(i=h.v.Promise||Promise),!i)throw new Error("no Promise impl found");return i}},3292:(ye,W,p)=>{"use strict";p.d(W,{c:()=>_});var n=p(2830),f=p(2782);const _={closed:!0,next(m){},error(m){if(n.v.useDeprecatedSynchronousErrorHandling)throw m;(0,f.z)(m)},complete(){}}},826:(ye,W,p)=>{"use strict";p.d(W,{L:()=>f});var n=p(3489);class f extends n.L{notifyNext(m,s,d,u,h){this.destination.next(s)}notifyError(m,s){this.destination.error(m)}notifyComplete(m){this.destination.complete()}}},8929:(ye,W,p)=>{"use strict";p.d(W,{Yc:()=>u,xQ:()=>h});var n=p(6498),f=p(3489),_=p(2654),m=p(5279),s=p(5283),d=p(7668);class u extends f.L{constructor(i){super(i),this.destination=i}}let h=(()=>{class o extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[d.b](){return new u(this)}lift(c){const l=new r(this,this);return l.operator=c,l}next(c){if(this.closed)throw new m.N;if(!this.isStopped){const{observers:l}=this,g=l.length,b=l.slice();for(let y=0;ynew r(i,c),o})();class r extends h{constructor(i,c){super(),this.destination=i,this.source=c}next(i){const{destination:c}=this;c&&c.next&&c.next(i)}error(i){const{destination:c}=this;c&&c.error&&this.destination.error(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:c}=this;return c?this.source.subscribe(i):_.w.EMPTY}}},5283:(ye,W,p)=>{"use strict";p.d(W,{W:()=>f});var n=p(2654);class f extends n.w{constructor(m,s){super(),this.subject=m,this.subscriber=s,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const m=this.subject,s=m.observers;if(this.subject=null,!s||0===s.length||m.isStopped||m.closed)return;const d=s.indexOf(this.subscriber);-1!==d&&s.splice(d,1)}}},3489:(ye,W,p)=>{"use strict";p.d(W,{L:()=>u});var n=p(7043),f=p(3292),_=p(2654),m=p(7668),s=p(2830),d=p(2782);class u extends _.w{constructor(o,i,c){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=f.c;break;case 1:if(!o){this.destination=f.c;break}if("object"==typeof o){o instanceof u?(this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)):(this.syncErrorThrowable=!0,this.destination=new h(this,o));break}default:this.syncErrorThrowable=!0,this.destination=new h(this,o,i,c)}}[m.b](){return this}static create(o,i,c){const l=new u(o,i,c);return l.syncErrorThrowable=!1,l}next(o){this.isStopped||this._next(o)}error(o){this.isStopped||(this.isStopped=!0,this._error(o))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(o){this.destination.next(o)}_error(o){this.destination.error(o),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:o}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=o,this}}class h extends u{constructor(o,i,c,l){super(),this._parentSubscriber=o;let g,b=this;(0,n.m)(i)?g=i:i&&(g=i.next,c=i.error,l=i.complete,i!==f.c&&(b=Object.create(i),(0,n.m)(b.unsubscribe)&&this.add(b.unsubscribe.bind(b)),b.unsubscribe=this.unsubscribe.bind(this))),this._context=b,this._next=g,this._error=c,this._complete=l}next(o){if(!this.isStopped&&this._next){const{_parentSubscriber:i}=this;s.v.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?this.__tryOrSetError(i,this._next,o)&&this.unsubscribe():this.__tryOrUnsub(this._next,o)}}error(o){if(!this.isStopped){const{_parentSubscriber:i}=this,{useDeprecatedSynchronousErrorHandling:c}=s.v;if(this._error)c&&i.syncErrorThrowable?(this.__tryOrSetError(i,this._error,o),this.unsubscribe()):(this.__tryOrUnsub(this._error,o),this.unsubscribe());else if(i.syncErrorThrowable)c?(i.syncErrorValue=o,i.syncErrorThrown=!0):(0,d.z)(o),this.unsubscribe();else{if(this.unsubscribe(),c)throw o;(0,d.z)(o)}}}complete(){if(!this.isStopped){const{_parentSubscriber:o}=this;if(this._complete){const i=()=>this._complete.call(this._context);s.v.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable?(this.__tryOrSetError(o,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(o,i){try{o.call(this._context,i)}catch(c){if(this.unsubscribe(),s.v.useDeprecatedSynchronousErrorHandling)throw c;(0,d.z)(c)}}__tryOrSetError(o,i,c){if(!s.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{i.call(this._context,c)}catch(l){return s.v.useDeprecatedSynchronousErrorHandling?(o.syncErrorValue=l,o.syncErrorThrown=!0,!0):((0,d.z)(l),!0)}return!1}_unsubscribe(){const{_parentSubscriber:o}=this;this._context=null,this._parentSubscriber=null,o.unsubscribe()}}},2654:(ye,W,p)=>{"use strict";p.d(W,{w:()=>d});var n=p(6688),f=p(7830),_=p(7043);const s=(()=>{function h(r){return Error.call(this),this.message=r?`${r.length} errors occurred during unsubscription:\n${r.map((o,i)=>`${i+1}) ${o.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=r,this}return h.prototype=Object.create(Error.prototype),h})();class d{constructor(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._ctorUnsubscribe=!0,this._unsubscribe=r)}unsubscribe(){let r;if(this.closed)return;let{_parentOrParents:o,_ctorUnsubscribe:i,_unsubscribe:c,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,o instanceof d)o.remove(this);else if(null!==o)for(let g=0;gr.concat(o instanceof s?o.errors:o),[])}d.EMPTY=((h=new d).closed=!0,h)},2830:(ye,W,p)=>{"use strict";p.d(W,{v:()=>f});let n=!1;const f={Promise:void 0,set useDeprecatedSynchronousErrorHandling(_){if(_){const m=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+m.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=_},get useDeprecatedSynchronousErrorHandling(){return n}}},1177:(ye,W,p)=>{"use strict";p.d(W,{IY:()=>m,Ds:()=>d,ft:()=>h});var n=p(3489),f=p(6498),_=p(9249);class m extends n.L{constructor(o){super(),this.parent=o}_next(o){this.parent.notifyNext(o)}_error(o){this.parent.notifyError(o),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class d extends n.L{notifyNext(o){this.destination.next(o)}notifyError(o){this.destination.error(o)}notifyComplete(){this.destination.complete()}}function h(r,o){if(o.closed)return;if(r instanceof f.y)return r.subscribe(o);let i;try{i=(0,_.s)(r)(o)}catch(c){o.error(c)}return i}},1762:(ye,W,p)=>{"use strict";p.d(W,{c:()=>s,N:()=>d});var n=p(8929),f=p(6498),_=p(2654),m=p(4327);class s extends f.y{constructor(i,c){super(),this.source=i,this.subjectFactory=c,this._refCount=0,this._isComplete=!1}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let i=this._connection;return i||(this._isComplete=!1,i=this._connection=new _.w,i.add(this.source.subscribe(new u(this.getSubject(),this))),i.closed&&(this._connection=null,i=_.w.EMPTY)),i}refCount(){return(0,m.x)()(this)}}const d=(()=>{const o=s.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:o._subscribe},_isComplete:{value:o._isComplete,writable:!0},getSubject:{value:o.getSubject},connect:{value:o.connect},refCount:{value:o.refCount}}})();class u extends n.Yc{constructor(i,c){super(i),this.connectable=c}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const i=this.connectable;if(i){this.connectable=null;const c=i._connection;i._refCount=0,i._subject=null,i._connection=null,c&&c.unsubscribe()}}}},6053:(ye,W,p)=>{"use strict";p.d(W,{aj:()=>u,Ms:()=>h});var n=p(2866),f=p(6688),_=p(826),m=p(448),s=p(3009);const d={};function u(...o){let i,c;return(0,n.K)(o[o.length-1])&&(c=o.pop()),"function"==typeof o[o.length-1]&&(i=o.pop()),1===o.length&&(0,f.k)(o[0])&&(o=o[0]),(0,s.n)(o,c).lift(new h(i))}class h{constructor(i){this.resultSelector=i}call(i,c){return c.subscribe(new r(i,this.resultSelector))}}class r extends _.L{constructor(i,c){super(i),this.resultSelector=c,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(d),this.observables.push(i)}_complete(){const i=this.observables,c=i.length;if(0===c)this.destination.complete();else{this.active=c,this.toRespond=c;for(let l=0;l{"use strict";p.d(W,{z:()=>_});var n=p(1086),f=p(534);function _(...m){return(0,f.u)()((0,n.of)(...m))}},8514:(ye,W,p)=>{"use strict";p.d(W,{P:()=>m});var n=p(6498),f=p(5254),_=p(8896);function m(s){return new n.y(d=>{let u;try{u=s()}catch(r){return void d.error(r)}return(u?(0,f.D)(u):(0,_.c)()).subscribe(d)})}},8896:(ye,W,p)=>{"use strict";p.d(W,{E:()=>f,c:()=>_});var n=p(6498);const f=new n.y(s=>s.complete());function _(s){return s?function(s){return new n.y(d=>s.schedule(()=>d.complete()))}(s):f}},567:(ye,W,p)=>{"use strict";p.d(W,{D:()=>d});var n=p(6498),f=p(6688),_=p(4850),m=p(7830),s=p(5254);function d(...h){if(1===h.length){const r=h[0];if((0,f.k)(r))return u(r,null);if((0,m.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){const o=Object.keys(r);return u(o.map(i=>r[i]),o)}}if("function"==typeof h[h.length-1]){const r=h.pop();return u(h=1===h.length&&(0,f.k)(h[0])?h[0]:h,null).pipe((0,_.U)(o=>r(...o)))}return u(h,null)}function u(h,r){return new n.y(o=>{const i=h.length;if(0===i)return void o.complete();const c=new Array(i);let l=0,g=0;for(let b=0;b{S||(S=!0,g++),c[b]=I},error:I=>o.error(I),complete:()=>{l++,(l===i||!S)&&(g===i&&o.next(r?r.reduce((I,R,M)=>(I[R]=c[M],I),{}):c),o.complete())}}))}})}},5254:(ye,W,p)=>{"use strict";p.d(W,{D:()=>b});var n=p(6498),f=p(9249),_=p(2654),m=p(3821),u=p(6454),h=p(5430),i=p(8955),c=p(8515);function b(y,S){return S?function(y,S){if(null!=y){if(function(y){return y&&"function"==typeof y[m.L]}(y))return function(y,S){return new n.y(I=>{const R=new _.w;return R.add(S.schedule(()=>{const M=y[m.L]();R.add(M.subscribe({next(A){R.add(S.schedule(()=>I.next(A)))},error(A){R.add(S.schedule(()=>I.error(A)))},complete(){R.add(S.schedule(()=>I.complete()))}}))})),R})}(y,S);if((0,i.t)(y))return function(y,S){return new n.y(I=>{const R=new _.w;return R.add(S.schedule(()=>y.then(M=>{R.add(S.schedule(()=>{I.next(M),R.add(S.schedule(()=>I.complete()))}))},M=>{R.add(S.schedule(()=>I.error(M)))}))),R})}(y,S);if((0,c.z)(y))return(0,u.r)(y,S);if(function(y){return y&&"function"==typeof y[h.hZ]}(y)||"string"==typeof y)return function(y,S){if(!y)throw new Error("Iterable cannot be null");return new n.y(I=>{const R=new _.w;let M;return R.add(()=>{M&&"function"==typeof M.return&&M.return()}),R.add(S.schedule(()=>{M=y[h.hZ](),R.add(S.schedule(function(){if(I.closed)return;let A,D;try{const w=M.next();A=w.value,D=w.done}catch(w){return void I.error(w)}D?I.complete():(I.next(A),this.schedule())}))})),R})}(y,S)}throw new TypeError((null!==y&&typeof y||y)+" is not observable")}(y,S):y instanceof n.y?y:new n.y((0,f.s)(y))}},3009:(ye,W,p)=>{"use strict";p.d(W,{n:()=>m});var n=p(6498),f=p(3650),_=p(6454);function m(s,d){return d?(0,_.r)(s,d):new n.y((0,f.V)(s))}},3753:(ye,W,p)=>{"use strict";p.d(W,{R:()=>d});var n=p(6498),f=p(6688),_=p(7043),m=p(4850);function d(i,c,l,g){return(0,_.m)(l)&&(g=l,l=void 0),g?d(i,c,l).pipe((0,m.U)(b=>(0,f.k)(b)?g(...b):g(b))):new n.y(b=>{u(i,c,function(S){b.next(arguments.length>1?Array.prototype.slice.call(arguments):S)},b,l)})}function u(i,c,l,g,b){let y;if(function(i){return i&&"function"==typeof i.addEventListener&&"function"==typeof i.removeEventListener}(i)){const S=i;i.addEventListener(c,l,b),y=()=>S.removeEventListener(c,l,b)}else if(function(i){return i&&"function"==typeof i.on&&"function"==typeof i.off}(i)){const S=i;i.on(c,l),y=()=>S.off(c,l)}else if(function(i){return i&&"function"==typeof i.addListener&&"function"==typeof i.removeListener}(i)){const S=i;i.addListener(c,l),y=()=>S.removeListener(c,l)}else{if(!i||!i.length)throw new TypeError("Invalid event target");for(let S=0,I=i.length;S{"use strict";p.d(W,{T:()=>s});var n=p(6498),f=p(2866),_=p(9146),m=p(3009);function s(...d){let u=Number.POSITIVE_INFINITY,h=null,r=d[d.length-1];return(0,f.K)(r)?(h=d.pop(),d.length>1&&"number"==typeof d[d.length-1]&&(u=d.pop())):"number"==typeof r&&(u=d.pop()),null===h&&1===d.length&&d[0]instanceof n.y?d[0]:(0,_.J)(u)((0,m.n)(d,h))}},1086:(ye,W,p)=>{"use strict";p.d(W,{of:()=>m});var n=p(2866),f=p(3009),_=p(6454);function m(...s){let d=s[s.length-1];return(0,n.K)(d)?(s.pop(),(0,_.r)(s,d)):(0,f.n)(s)}},1946:(ye,W,p)=>{"use strict";p.d(W,{S3:()=>s});var n=p(6688),f=p(3009),_=p(826),m=p(448);function s(...h){if(1===h.length){if(!(0,n.k)(h[0]))return h[0];h=h[0]}return(0,f.n)(h,void 0).lift(new d)}class d{call(r,o){return o.subscribe(new u(r))}}class u extends _.L{constructor(r){super(r),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(r){this.observables.push(r)}_complete(){const r=this.observables,o=r.length;if(0===o)this.destination.complete();else{for(let i=0;i{"use strict";p.d(W,{_:()=>f});var n=p(6498);function f(m,s){return new n.y(s?d=>s.schedule(_,0,{error:m,subscriber:d}):d=>d.error(m))}function _({error:m,subscriber:s}){s.error(m)}},8723:(ye,W,p)=>{"use strict";p.d(W,{H:()=>s});var n=p(6498),f=p(353),_=p(4241),m=p(2866);function s(u=0,h,r){let o=-1;return(0,_.k)(h)?o=Number(h)<1?1:Number(h):(0,m.K)(h)&&(r=h),(0,m.K)(r)||(r=f.P),new n.y(i=>{const c=(0,_.k)(u)?u:+u-r.now();return r.schedule(d,c,{index:0,period:o,subscriber:i})})}function d(u){const{index:h,period:r,subscriber:o}=u;if(o.next(h),!o.closed){if(-1===r)return o.complete();u.index=h+1,this.schedule(u,r)}}},1746:(ye,W,p)=>{"use strict";p.d(W,{$R:()=>d,mx:()=>u});var n=p(3009),f=p(6688),_=p(3489),m=p(5430),s=p(1177);function d(...c){const l=c[c.length-1];return"function"==typeof l&&c.pop(),(0,n.n)(c,void 0).lift(new u(l))}class u{constructor(l){this.resultSelector=l}call(l,g){return g.subscribe(new h(l,this.resultSelector))}}class h extends _.L{constructor(l,g,b=Object.create(null)){super(l),this.resultSelector=g,this.iterators=[],this.active=0,this.resultSelector="function"==typeof g?g:void 0}_next(l){const g=this.iterators;(0,f.k)(l)?g.push(new o(l)):g.push("function"==typeof l[m.hZ]?new r(l[m.hZ]()):new i(this.destination,this,l))}_complete(){const l=this.iterators,g=l.length;if(this.unsubscribe(),0!==g){this.active=g;for(let b=0;bthis.index}hasCompleted(){return this.array.length===this.index}}class i extends s.Ds{constructor(l,g,b){super(l),this.parent=g,this.observable=b,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[m.hZ](){return this}next(){const l=this.buffer;return 0===l.length&&this.isComplete?{value:null,done:!0}:{value:l.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(l){this.buffer.push(l),this.parent.checkIterators()}subscribe(){return(0,s.ft)(this.observable,new s.IY(this))}}},384:(ye,W,p)=>{"use strict";p.d(W,{U:()=>f});var n=p(1177);function f(s){return function(u){return u.lift(new _(s))}}class _{constructor(d){this.durationSelector=d}call(d,u){return u.subscribe(new m(d,this.durationSelector))}}class m extends n.Ds{constructor(d,u){super(d),this.durationSelector=u,this.hasValue=!1}_next(d){if(this.value=d,this.hasValue=!0,!this.throttled){let u;try{const{durationSelector:r}=this;u=r(d)}catch(r){return this.destination.error(r)}const h=(0,n.ft)(u,new n.IY(this));!h||h.closed?this.clearThrottle():this.add(this.throttled=h)}}clearThrottle(){const{value:d,hasValue:u,throttled:h}=this;h&&(this.remove(h),this.throttled=void 0,h.unsubscribe()),u&&(this.value=void 0,this.hasValue=!1,this.destination.next(d))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}},7568:(ye,W,p)=>{"use strict";p.d(W,{e:()=>m});var n=p(353),f=p(384),_=p(8723);function m(s,d=n.P){return(0,f.U)(()=>(0,_.H)(s,d))}},7221:(ye,W,p)=>{"use strict";p.d(W,{K:()=>f});var n=p(1177);function f(s){return function(u){const h=new _(s),r=u.lift(h);return h.caught=r}}class _{constructor(d){this.selector=d}call(d,u){return u.subscribe(new m(d,this.selector,this.caught))}}class m extends n.Ds{constructor(d,u,h){super(d),this.selector=u,this.caught=h}error(d){if(!this.isStopped){let u;try{u=this.selector(d,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const h=new n.IY(this);this.add(h);const r=(0,n.ft)(u,h);r!==h&&this.add(r)}}}},534:(ye,W,p)=>{"use strict";p.d(W,{u:()=>f});var n=p(9146);function f(){return(0,n.J)(1)}},1406:(ye,W,p)=>{"use strict";p.d(W,{b:()=>f});var n=p(1709);function f(_,m){return(0,n.zg)(_,m,1)}},13:(ye,W,p)=>{"use strict";p.d(W,{b:()=>_});var n=p(3489),f=p(353);function _(u,h=f.P){return r=>r.lift(new m(u,h))}class m{constructor(h,r){this.dueTime=h,this.scheduler=r}call(h,r){return r.subscribe(new s(h,this.dueTime,this.scheduler))}}class s extends n.L{constructor(h,r,o){super(h),this.dueTime=r,this.scheduler=o,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(h){this.clearDebounce(),this.lastValue=h,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(d,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:h}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(h)}}clearDebounce(){const h=this.debouncedSubscription;null!==h&&(this.remove(h),h.unsubscribe(),this.debouncedSubscription=null)}}function d(u){u.debouncedNext()}},7314:(ye,W,p)=>{"use strict";p.d(W,{d:()=>f});var n=p(3489);function f(s=null){return d=>d.lift(new _(s))}class _{constructor(d){this.defaultValue=d}call(d,u){return u.subscribe(new m(d,this.defaultValue))}}class m extends n.L{constructor(d,u){super(d),this.defaultValue=u,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(ye,W,p)=>{"use strict";p.d(W,{g:()=>s});var n=p(353),f=p(2697),_=p(3489),m=p(9312);function s(r,o=n.P){const c=(0,f.J)(r)?+r-o.now():Math.abs(r);return l=>l.lift(new d(c,o))}class d{constructor(o,i){this.delay=o,this.scheduler=i}call(o,i){return i.subscribe(new u(o,this.delay,this.scheduler))}}class u extends _.L{constructor(o,i,c){super(o),this.delay=i,this.scheduler=c,this.queue=[],this.active=!1,this.errored=!1}static dispatch(o){const i=o.source,c=i.queue,l=o.scheduler,g=o.destination;for(;c.length>0&&c[0].time-l.now()<=0;)c.shift().notification.observe(g);if(c.length>0){const b=Math.max(0,c[0].time-l.now());this.schedule(o,b)}else this.unsubscribe(),i.active=!1}_schedule(o){this.active=!0,this.destination.add(o.schedule(u.dispatch,this.delay,{source:this,destination:this.destination,scheduler:o}))}scheduleNotification(o){if(!0===this.errored)return;const i=this.scheduler,c=new h(i.now()+this.delay,o);this.queue.push(c),!1===this.active&&this._schedule(i)}_next(o){this.scheduleNotification(m.P.createNext(o))}_error(o){this.errored=!0,this.queue=[],this.destination.error(o),this.unsubscribe()}_complete(){this.scheduleNotification(m.P.createComplete()),this.unsubscribe()}}class h{constructor(o,i){this.time=o,this.notification=i}}},5778:(ye,W,p)=>{"use strict";p.d(W,{x:()=>f});var n=p(3489);function f(s,d){return u=>u.lift(new _(s,d))}class _{constructor(d,u){this.compare=d,this.keySelector=u}call(d,u){return u.subscribe(new m(d,this.compare,this.keySelector))}}class m extends n.L{constructor(d,u,h){super(d),this.keySelector=h,this.hasKey=!1,"function"==typeof u&&(this.compare=u)}compare(d,u){return d===u}_next(d){let u;try{const{keySelector:r}=this;u=r?r(d):d}catch(r){return this.destination.error(r)}let h=!1;if(this.hasKey)try{const{compare:r}=this;h=r(this.key,u)}catch(r){return this.destination.error(r)}else this.hasKey=!0;h||(this.key=u,this.destination.next(d))}}},2198:(ye,W,p)=>{"use strict";p.d(W,{h:()=>f});var n=p(3489);function f(s,d){return function(h){return h.lift(new _(s,d))}}class _{constructor(d,u){this.predicate=d,this.thisArg=u}call(d,u){return u.subscribe(new m(d,this.predicate,this.thisArg))}}class m extends n.L{constructor(d,u,h){super(d),this.predicate=u,this.thisArg=h,this.count=0}_next(d){let u;try{u=this.predicate.call(this.thisArg,d,this.count++)}catch(h){return void this.destination.error(h)}u&&this.destination.next(d)}}},537:(ye,W,p)=>{"use strict";p.d(W,{x:()=>_});var n=p(3489),f=p(2654);function _(d){return u=>u.lift(new m(d))}class m{constructor(u){this.callback=u}call(u,h){return h.subscribe(new s(u,this.callback))}}class s extends n.L{constructor(u,h){super(u),this.add(new f.w(h))}}},7224:(ye,W,p)=>{"use strict";p.d(W,{P:()=>u});var n=p(4450),f=p(2198),_=p(2986),m=p(7314),s=p(4907),d=p(5379);function u(h,r){const o=arguments.length>=2;return i=>i.pipe(h?(0,f.h)((c,l)=>h(c,l,i)):d.y,(0,_.q)(1),o?(0,m.d)(r):(0,s.T)(()=>new n.K))}},8127:(ye,W,p)=>{"use strict";p.d(W,{Z:()=>u});var n=p(4450),f=p(2198),_=p(2821),m=p(4907),s=p(7314),d=p(5379);function u(h,r){const o=arguments.length>=2;return i=>i.pipe(h?(0,f.h)((c,l)=>h(c,l,i)):d.y,(0,_.h)(1),o?(0,s.d)(r):(0,m.T)(()=>new n.K))}},4850:(ye,W,p)=>{"use strict";p.d(W,{U:()=>f});var n=p(3489);function f(s,d){return function(h){if("function"!=typeof s)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return h.lift(new _(s,d))}}class _{constructor(d,u){this.project=d,this.thisArg=u}call(d,u){return u.subscribe(new m(d,this.project,this.thisArg))}}class m extends n.L{constructor(d,u,h){super(d),this.project=u,this.count=0,this.thisArg=h||this}_next(d){let u;try{u=this.project.call(this.thisArg,d,this.count++)}catch(h){return void this.destination.error(h)}this.destination.next(u)}}},9146:(ye,W,p)=>{"use strict";p.d(W,{J:()=>_});var n=p(1709),f=p(5379);function _(m=Number.POSITIVE_INFINITY){return(0,n.zg)(f.y,m)}},1709:(ye,W,p)=>{"use strict";p.d(W,{zg:()=>m,VS:()=>u});var n=p(4850),f=p(5254),_=p(1177);function m(h,r,o=Number.POSITIVE_INFINITY){return"function"==typeof r?i=>i.pipe(m((c,l)=>(0,f.D)(h(c,l)).pipe((0,n.U)((g,b)=>r(c,g,l,b))),o)):("number"==typeof r&&(o=r),i=>i.lift(new s(h,o)))}class s{constructor(r,o=Number.POSITIVE_INFINITY){this.project=r,this.concurrent=o}call(r,o){return o.subscribe(new d(r,this.project,this.concurrent))}}class d extends _.Ds{constructor(r,o,i=Number.POSITIVE_INFINITY){super(r),this.project=o,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(r){this.active0?this._next(r.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const u=m},2536:(ye,W,p)=>{"use strict";p.d(W,{O:()=>f});var n=p(1762);function f(m,s){return function(u){let h;if(h="function"==typeof m?m:function(){return m},"function"==typeof s)return u.lift(new _(h,s));const r=Object.create(u,n.N);return r.source=u,r.subjectFactory=h,r}}class _{constructor(s,d){this.subjectFactory=s,this.selector=d}call(s,d){const{selector:u}=this,h=this.subjectFactory(),r=u(h).subscribe(s);return r.add(d.subscribe(h)),r}}},8077:(ye,W,p)=>{"use strict";p.d(W,{u:()=>s});var n=p(2014),f=p(2821),_=p(7314),m=p(4843);function s(d,u){return arguments.length>=2?function(r){return(0,m.z)((0,n.R)(d,u),(0,f.h)(1),(0,_.d)(u))(r)}:function(r){return(0,m.z)((0,n.R)((o,i,c)=>d(o,i,c+1)),(0,f.h)(1))(r)}}},4327:(ye,W,p)=>{"use strict";p.d(W,{x:()=>f});var n=p(3489);function f(){return function(d){return d.lift(new _(d))}}class _{constructor(d){this.connectable=d}call(d,u){const{connectable:h}=this;h._refCount++;const r=new m(d,h),o=u.subscribe(r);return r.closed||(r.connection=h.connect()),o}}class m extends n.L{constructor(d,u){super(d),this.connectable=u}_unsubscribe(){const{connectable:d}=this;if(!d)return void(this.connection=null);this.connectable=null;const u=d._refCount;if(u<=0)return void(this.connection=null);if(d._refCount=u-1,u>1)return void(this.connection=null);const{connection:h}=this,r=d._connection;this.connection=null,r&&(!h||r===h)&&r.unsubscribe()}}},2014:(ye,W,p)=>{"use strict";p.d(W,{R:()=>f});var n=p(3489);function f(s,d){let u=!1;return arguments.length>=2&&(u=!0),function(r){return r.lift(new _(s,d,u))}}class _{constructor(d,u,h=!1){this.accumulator=d,this.seed=u,this.hasSeed=h}call(d,u){return u.subscribe(new m(d,this.accumulator,this.seed,this.hasSeed))}}class m extends n.L{constructor(d,u,h,r){super(d),this.accumulator=u,this._seed=h,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(d){this.hasSeed=!0,this._seed=d}_next(d){if(this.hasSeed)return this._tryNext(d);this.seed=d,this.destination.next(d)}_tryNext(d){const u=this.index++;let h;try{h=this.accumulator(this.seed,d,u)}catch(r){this.destination.error(r)}this.seed=h,this.destination.next(h)}}},8117:(ye,W,p)=>{"use strict";p.d(W,{B:()=>s});var n=p(2536),f=p(4327),_=p(8929);function m(){return new _.xQ}function s(){return d=>(0,f.x)()((0,n.O)(m)(d))}},1307:(ye,W,p)=>{"use strict";p.d(W,{T:()=>f});var n=p(3489);function f(s){return d=>d.lift(new _(s))}class _{constructor(d){this.total=d}call(d,u){return u.subscribe(new m(d,this.total))}}class m extends n.L{constructor(d,u){super(d),this.total=u,this.count=0}_next(d){++this.count>this.total&&this.destination.next(d)}}},1059:(ye,W,p)=>{"use strict";p.d(W,{O:()=>_});var n=p(1961),f=p(2866);function _(...m){const s=m[m.length-1];return(0,f.K)(s)?(m.pop(),d=>(0,n.z)(m,d,s)):d=>(0,n.z)(m,d)}},7545:(ye,W,p)=>{"use strict";p.d(W,{w:()=>m});var n=p(4850),f=p(5254),_=p(1177);function m(u,h){return"function"==typeof h?r=>r.pipe(m((o,i)=>(0,f.D)(u(o,i)).pipe((0,n.U)((c,l)=>h(o,c,i,l))))):r=>r.lift(new s(u))}class s{constructor(h){this.project=h}call(h,r){return r.subscribe(new d(h,this.project))}}class d extends _.Ds{constructor(h,r){super(h),this.project=r,this.index=0}_next(h){let r;const o=this.index++;try{r=this.project(h,o)}catch(i){return void this.destination.error(i)}this._innerSub(r)}_innerSub(h){const r=this.innerSubscription;r&&r.unsubscribe();const o=new _.IY(this),i=this.destination;i.add(o),this.innerSubscription=(0,_.ft)(h,o),this.innerSubscription!==o&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:h}=this;(!h||h.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(h){this.destination.next(h)}}},2986:(ye,W,p)=>{"use strict";p.d(W,{q:()=>m});var n=p(3489),f=p(4231),_=p(8896);function m(u){return h=>0===u?(0,_.c)():h.lift(new s(u))}class s{constructor(h){if(this.total=h,this.total<0)throw new f.W}call(h,r){return r.subscribe(new d(h,this.total))}}class d extends n.L{constructor(h,r){super(h),this.total=r,this.count=0}_next(h){const r=this.total,o=++this.count;o<=r&&(this.destination.next(h),o===r&&(this.destination.complete(),this.unsubscribe()))}}},2821:(ye,W,p)=>{"use strict";p.d(W,{h:()=>m});var n=p(3489),f=p(4231),_=p(8896);function m(u){return function(r){return 0===u?(0,_.c)():r.lift(new s(u))}}class s{constructor(h){if(this.total=h,this.total<0)throw new f.W}call(h,r){return r.subscribe(new d(h,this.total))}}class d extends n.L{constructor(h,r){super(h),this.total=r,this.ring=new Array,this.count=0}_next(h){const r=this.ring,o=this.total,i=this.count++;r.length0){const o=this.count>=this.total?this.total:this.count,i=this.ring;for(let c=0;c{"use strict";p.d(W,{R:()=>f});var n=p(1177);function f(s){return d=>d.lift(new _(s))}class _{constructor(d){this.notifier=d}call(d,u){const h=new m(d),r=(0,n.ft)(this.notifier,new n.IY(h));return r&&!h.seenValue?(h.add(r),u.subscribe(h)):h}}class m extends n.Ds{constructor(d){super(d),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},4290:(ye,W,p)=>{"use strict";p.d(W,{o:()=>f});var n=p(3489);function f(s,d=!1){return u=>u.lift(new _(s,d))}class _{constructor(d,u){this.predicate=d,this.inclusive=u}call(d,u){return u.subscribe(new m(d,this.predicate,this.inclusive))}}class m extends n.L{constructor(d,u,h){super(d),this.predicate=u,this.inclusive=h,this.index=0}_next(d){const u=this.destination;let h;try{h=this.predicate(d,this.index++)}catch(r){return void u.error(r)}this.nextOrComplete(d,h)}nextOrComplete(d,u){const h=this.destination;Boolean(u)?h.next(d):(this.inclusive&&h.next(d),h.complete())}}},2868:(ye,W,p)=>{"use strict";p.d(W,{b:()=>m});var n=p(3489);function f(){}var _=p(7043);function m(u,h,r){return function(i){return i.lift(new s(u,h,r))}}class s{constructor(h,r,o){this.nextOrObserver=h,this.error=r,this.complete=o}call(h,r){return r.subscribe(new d(h,this.nextOrObserver,this.error,this.complete))}}class d extends n.L{constructor(h,r,o,i){super(h),this._tapNext=f,this._tapError=f,this._tapComplete=f,this._tapError=o||f,this._tapComplete=i||f,(0,_.m)(r)?(this._context=this,this._tapNext=r):r&&(this._context=r,this._tapNext=r.next||f,this._tapError=r.error||f,this._tapComplete=r.complete||f)}_next(h){try{this._tapNext.call(this._context,h)}catch(r){return void this.destination.error(r)}this.destination.next(h)}_error(h){try{this._tapError.call(this._context,h)}catch(r){return void this.destination.error(r)}this.destination.error(h)}_complete(){try{this._tapComplete.call(this._context)}catch(h){return void this.destination.error(h)}return this.destination.complete()}}},4907:(ye,W,p)=>{"use strict";p.d(W,{T:()=>_});var n=p(4450),f=p(3489);function _(u=d){return h=>h.lift(new m(u))}class m{constructor(h){this.errorFactory=h}call(h,r){return r.subscribe(new s(h,this.errorFactory))}}class s extends f.L{constructor(h,r){super(h),this.errorFactory=r,this.hasValue=!1}_next(h){this.hasValue=!0,this.destination.next(h)}_complete(){if(this.hasValue)return this.destination.complete();{let h;try{h=this.errorFactory()}catch(r){h=r}this.destination.error(h)}}}function d(){return new n.K}},7e3:(ye,W,p)=>{"use strict";p.d(W,{V:()=>d});var n=p(353);const _=(()=>{function u(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return u.prototype=Object.create(Error.prototype),u})();var m=p(2431),s=p(1737);function d(u,h=n.P){return(0,m.L)(u,(0,s._)(new _),h)}},2431:(ye,W,p)=>{"use strict";p.d(W,{L:()=>m});var n=p(353),f=p(2697),_=p(1177);function m(u,h,r=n.P){return o=>{let i=(0,f.J)(u),c=i?+u-r.now():Math.abs(u);return o.lift(new s(c,i,h,r))}}class s{constructor(h,r,o,i){this.waitFor=h,this.absoluteTimeout=r,this.withObservable=o,this.scheduler=i}call(h,r){return r.subscribe(new d(h,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class d extends _.Ds{constructor(h,r,o,i,c){super(h),this.absoluteTimeout=r,this.waitFor=o,this.withObservable=i,this.scheduler=c,this.scheduleTimeout()}static dispatchTimeout(h){const{withObservable:r}=h;h._unsubscribeAndRecycle(),h.add((0,_.ft)(r,new _.IY(h)))}scheduleTimeout(){const{action:h}=this;h?this.action=h.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(d.dispatchTimeout,this.waitFor,this))}_next(h){this.absoluteTimeout||this.scheduleTimeout(),super._next(h)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}},864:(ye,W,p)=>{"use strict";p.d(W,{q:()=>_});var n=p(8077);function f(m,s,d){return 0===d?[s]:(m.push(s),m)}function _(){return(0,n.u)(f,[])}},6454:(ye,W,p)=>{"use strict";p.d(W,{r:()=>_});var n=p(6498),f=p(2654);function _(m,s){return new n.y(d=>{const u=new f.w;let h=0;return u.add(s.schedule(function(){h!==m.length?(d.next(m[h++]),d.closed||u.add(this.schedule())):d.complete()})),u})}},6686:(ye,W,p)=>{"use strict";p.d(W,{o:()=>_});var n=p(2654);class f extends n.w{constructor(s,d){super()}schedule(s,d=0){return this}}class _ extends f{constructor(s,d){super(s,d),this.scheduler=s,this.work=d,this.pending=!1}schedule(s,d=0){if(this.closed)return this;this.state=s;const u=this.id,h=this.scheduler;return null!=u&&(this.id=this.recycleAsyncId(h,u,d)),this.pending=!0,this.delay=d,this.id=this.id||this.requestAsyncId(h,this.id,d),this}requestAsyncId(s,d,u=0){return setInterval(s.flush.bind(s,this),u)}recycleAsyncId(s,d,u=0){if(null!==u&&this.delay===u&&!1===this.pending)return d;clearInterval(d)}execute(s,d){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const u=this._execute(s,d);if(u)return u;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(s,d){let h,u=!1;try{this.work(s)}catch(r){u=!0,h=!!r&&r||new Error(r)}if(u)return this.unsubscribe(),h}_unsubscribe(){const s=this.id,d=this.scheduler,u=d.actions,h=u.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==h&&u.splice(h,1),null!=s&&(this.id=this.recycleAsyncId(d,s,null)),this.delay=null}}},2268:(ye,W,p)=>{"use strict";p.d(W,{v:()=>f});let n=(()=>{class _{constructor(s,d=_.now){this.SchedulerAction=s,this.now=d}schedule(s,d=0,u){return new this.SchedulerAction(this,s).schedule(u,d)}}return _.now=()=>Date.now(),_})();class f extends n{constructor(m,s=n.now){super(m,()=>f.delegate&&f.delegate!==this?f.delegate.now():s()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(m,s=0,d){return f.delegate&&f.delegate!==this?f.delegate.schedule(m,s,d):super.schedule(m,s,d)}flush(m){const{actions:s}=this;if(this.active)return void s.push(m);let d;this.active=!0;do{if(d=m.execute(m.state,m.delay))break}while(m=s.shift());if(this.active=!1,d){for(;m=s.shift();)m.unsubscribe();throw d}}}},352:(ye,W,p)=>{"use strict";p.d(W,{Z:()=>s});var n=p(6686),_=p(2268);const s=new class extends _.v{flush(h){this.active=!0,this.scheduled=void 0;const{actions:r}=this;let o,i=-1,c=r.length;h=h||r.shift();do{if(o=h.execute(h.state,h.delay))break}while(++i0?super.requestAsyncId(h,r,o):(h.actions.push(this),h.scheduled||(h.scheduled=requestAnimationFrame(()=>h.flush(null))))}recycleAsyncId(h,r,o=0){if(null!==o&&o>0||null===o&&this.delay>0)return super.recycleAsyncId(h,r,o);0===h.actions.length&&(cancelAnimationFrame(r),h.scheduled=void 0)}})},8139:(ye,W,p)=>{"use strict";p.d(W,{e:()=>c,E:()=>i});let n=1;const f=Promise.resolve(),_={};function m(l){return l in _&&(delete _[l],!0)}const s={setImmediate(l){const g=n++;return _[g]=!0,f.then(()=>m(g)&&l()),g},clearImmediate(l){m(l)}};var u=p(6686),r=p(2268);const i=new class extends r.v{flush(g){this.active=!0,this.scheduled=void 0;const{actions:b}=this;let y,S=-1,I=b.length;g=g||b.shift();do{if(y=g.execute(g.state,g.delay))break}while(++S0?super.requestAsyncId(g,b,y):(g.actions.push(this),g.scheduled||(g.scheduled=s.setImmediate(g.flush.bind(g,null))))}recycleAsyncId(g,b,y=0){if(null!==y&&y>0||null===y&&this.delay>0)return super.recycleAsyncId(g,b,y);0===g.actions.length&&(s.clearImmediate(b),g.scheduled=void 0)}}),c=i},353:(ye,W,p)=>{"use strict";p.d(W,{P:()=>m});var n=p(6686);const m=new(p(2268).v)(n.o)},5430:(ye,W,p)=>{"use strict";p.d(W,{hZ:()=>f});const f="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},3821:(ye,W,p)=>{"use strict";p.d(W,{L:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(ye,W,p)=>{"use strict";p.d(W,{b:()=>n});const n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(ye,W,p)=>{"use strict";p.d(W,{W:()=>f});const f=(()=>{function _(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return _.prototype=Object.create(Error.prototype),_})()},4450:(ye,W,p)=>{"use strict";p.d(W,{K:()=>f});const f=(()=>{function _(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return _.prototype=Object.create(Error.prototype),_})()},5279:(ye,W,p)=>{"use strict";p.d(W,{N:()=>f});const f=(()=>{function _(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return _.prototype=Object.create(Error.prototype),_})()},2782:(ye,W,p)=>{"use strict";function n(f){setTimeout(()=>{throw f},0)}p.d(W,{z:()=>n})},5379:(ye,W,p)=>{"use strict";function n(f){return f}p.d(W,{y:()=>n})},6688:(ye,W,p)=>{"use strict";p.d(W,{k:()=>n});const n=Array.isArray||(f=>f&&"number"==typeof f.length)},8515:(ye,W,p)=>{"use strict";p.d(W,{z:()=>n});const n=f=>f&&"number"==typeof f.length&&"function"!=typeof f},2697:(ye,W,p)=>{"use strict";function n(f){return f instanceof Date&&!isNaN(+f)}p.d(W,{J:()=>n})},7043:(ye,W,p)=>{"use strict";function n(f){return"function"==typeof f}p.d(W,{m:()=>n})},4241:(ye,W,p)=>{"use strict";p.d(W,{k:()=>f});var n=p(6688);function f(_){return!(0,n.k)(_)&&_-parseFloat(_)+1>=0}},7830:(ye,W,p)=>{"use strict";function n(f){return null!==f&&"object"==typeof f}p.d(W,{K:()=>n})},8955:(ye,W,p)=>{"use strict";function n(f){return!!f&&"function"!=typeof f.subscribe&&"function"==typeof f.then}p.d(W,{t:()=>n})},2866:(ye,W,p)=>{"use strict";function n(f){return f&&"function"==typeof f.schedule}p.d(W,{K:()=>n})},4843:(ye,W,p)=>{"use strict";p.d(W,{z:()=>f,U:()=>_});var n=p(5379);function f(...m){return _(m)}function _(m){return 0===m.length?n.y:1===m.length?m[0]:function(d){return m.reduce((u,h)=>h(u),d)}}},9249:(ye,W,p)=>{"use strict";p.d(W,{s:()=>i});var n=p(3650),f=p(2782),m=p(5430),d=p(3821),h=p(8515),r=p(8955),o=p(7830);const i=c=>{if(c&&"function"==typeof c[d.L])return(c=>l=>{const g=c[d.L]();if("function"!=typeof g.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return g.subscribe(l)})(c);if((0,h.z)(c))return(0,n.V)(c);if((0,r.t)(c))return(c=>l=>(c.then(g=>{l.closed||(l.next(g),l.complete())},g=>l.error(g)).then(null,f.z),l))(c);if(c&&"function"==typeof c[m.hZ])return(c=>l=>{const g=c[m.hZ]();for(;;){let b;try{b=g.next()}catch(y){return l.error(y),l}if(b.done){l.complete();break}if(l.next(b.value),l.closed)break}return"function"==typeof g.return&&l.add(()=>{g.return&&g.return()}),l})(c);{const g=`You provided ${(0,o.K)(c)?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(g)}}},3650:(ye,W,p)=>{"use strict";p.d(W,{V:()=>n});const n=f=>_=>{for(let m=0,s=f.length;m{"use strict";p.d(W,{D:()=>s});var n=p(3489);class f extends n.L{constructor(u,h,r){super(),this.parent=u,this.outerValue=h,this.outerIndex=r,this.index=0}_next(u){this.parent.notifyNext(this.outerValue,u,this.outerIndex,this.index++,this)}_error(u){this.parent.notifyError(u,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var _=p(9249),m=p(6498);function s(d,u,h,r,o=new f(d,h,r)){if(!o.closed)return u instanceof m.y?u.subscribe(o):(0,_.s)(u)(o)}},3460:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{audit:()=>n.U,auditTime:()=>f.e,buffer:()=>m,bufferCount:()=>h,bufferTime:()=>g,bufferToggle:()=>x,bufferWhen:()=>F,catchError:()=>X.K,combineAll:()=>$,combineLatest:()=>ae,concat:()=>Ie,concatAll:()=>We.u,concatMap:()=>Xe.b,concatMapTo:()=>ft,count:()=>Pe,debounce:()=>pt,debounceTime:()=>ot.b,defaultIfEmpty:()=>_t.d,delay:()=>At.g,delayWhen:()=>Bt,dematerialize:()=>T,distinct:()=>_e,distinctUntilChanged:()=>st.x,distinctUntilKeyChanged:()=>ut,elementAt:()=>Kt,endWith:()=>xt,every:()=>Lt,exhaust:()=>Vt,exhaustMap:()=>te,expand:()=>Ke,filter:()=>Xt.h,finalize:()=>cn.x,find:()=>An,findIndex:()=>He,first:()=>mt.P,flatMap:()=>zn.VS,groupBy:()=>un,ignoreElements:()=>Ni,isEmpty:()=>Vi,last:()=>qe.Z,map:()=>Se.U,mapTo:()=>ue,materialize:()=>Fe,max:()=>Ht,merge:()=>an,mergeAll:()=>Tn.J,mergeMap:()=>zn.zg,mergeMapTo:()=>$n,mergeScan:()=>ti,min:()=>kn,multicast:()=>Mi.O,observeOn:()=>Zi,onErrorResumeNext:()=>Ui,pairwise:()=>qi,partition:()=>mi,pluck:()=>Gn,publish:()=>gn,publishBehavior:()=>Sn,publishLast:()=>Ri,publishReplay:()=>ir,race:()=>Sr,reduce:()=>Ft.u,refCount:()=>Tr.x,repeat:()=>Hr,repeatWhen:()=>Wr,retry:()=>Lr,retryWhen:()=>ls,sample:()=>us,sampleTime:()=>Er,scan:()=>V.R,sequenceEqual:()=>ve,share:()=>In.B,shareReplay:()=>ni,single:()=>hi,skip:()=>xn.T,skipLast:()=>Kr,skipUntil:()=>cs,skipWhile:()=>Bs,startWith:()=>G.O,subscribeOn:()=>rt,switchAll:()=>rn,switchMap:()=>Rt.w,switchMapTo:()=>pn,take:()=>Dt.q,takeLast:()=>Pn.h,takeUntil:()=>Ln.R,takeWhile:()=>_n.o,tap:()=>Bn.b,throttle:()=>_i,throttleTime:()=>Qi,throwIfEmpty:()=>tn.T,timeInterval:()=>zi,timeout:()=>ys.V,timeoutWith:()=>Yi.L,timestamp:()=>Ur,toArray:()=>Cs.q,window:()=>mn,windowCount:()=>li,windowTime:()=>Zn,windowToggle:()=>Ir,windowWhen:()=>Br,withLatestFrom:()=>ns,zip:()=>Ms,zipAll:()=>Ss});var n=p(384),f=p(7568),_=p(1177);function m(Ge){return function(ce){return ce.lift(new s(Ge))}}class s{constructor(z){this.closingNotifier=z}call(z,ce){return ce.subscribe(new d(z,this.closingNotifier))}}class d extends _.Ds{constructor(z,ce){super(z),this.buffer=[],this.add((0,_.ft)(ce,new _.IY(this)))}_next(z){this.buffer.push(z)}notifyNext(){const z=this.buffer;this.buffer=[],this.destination.next(z)}}var u=p(3489);function h(Ge,z=null){return function(je){return je.lift(new r(Ge,z))}}class r{constructor(z,ce){this.bufferSize=z,this.startBufferEvery=ce,this.subscriberClass=ce&&z!==ce?i:o}call(z,ce){return ce.subscribe(new this.subscriberClass(z,this.bufferSize,this.startBufferEvery))}}class o extends u.L{constructor(z,ce){super(z),this.bufferSize=ce,this.buffer=[]}_next(z){const ce=this.buffer;ce.push(z),ce.length==this.bufferSize&&(this.destination.next(ce),this.buffer=[])}_complete(){const z=this.buffer;z.length>0&&this.destination.next(z),super._complete()}}class i extends u.L{constructor(z,ce,je){super(z),this.bufferSize=ce,this.startBufferEvery=je,this.buffers=[],this.count=0}_next(z){const{bufferSize:ce,startBufferEvery:je,buffers:Mt,count:jt}=this;this.count++,jt%je==0&&Mt.push([]);for(let ln=Mt.length;ln--;){const Hn=Mt[ln];Hn.push(z),Hn.length===ce&&(Mt.splice(ln,1),this.destination.next(Hn))}}_complete(){const{buffers:z,destination:ce}=this;for(;z.length>0;){let je=z.shift();je.length>0&&ce.next(je)}super._complete()}}var c=p(353),l=p(2866);function g(Ge){let z=arguments.length,ce=c.P;(0,l.K)(arguments[arguments.length-1])&&(ce=arguments[arguments.length-1],z--);let je=null;z>=2&&(je=arguments[1]);let Mt=Number.POSITIVE_INFINITY;return z>=3&&(Mt=arguments[2]),function(ln){return ln.lift(new b(Ge,je,Mt,ce))}}class b{constructor(z,ce,je,Mt){this.bufferTimeSpan=z,this.bufferCreationInterval=ce,this.maxBufferSize=je,this.scheduler=Mt}call(z,ce){return ce.subscribe(new S(z,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class y{constructor(){this.buffer=[]}}class S extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.bufferTimeSpan=ce,this.bufferCreationInterval=je,this.maxBufferSize=Mt,this.scheduler=jt,this.contexts=[];const ln=this.openContext();if(this.timespanOnly=null==je||je<0,this.timespanOnly)this.add(ln.closeAction=jt.schedule(I,ce,{subscriber:this,context:ln,bufferTimeSpan:ce}));else{const Ki={bufferTimeSpan:ce,bufferCreationInterval:je,subscriber:this,scheduler:jt};this.add(ln.closeAction=jt.schedule(M,ce,{subscriber:this,context:ln})),this.add(jt.schedule(R,je,Ki))}}_next(z){const ce=this.contexts,je=ce.length;let Mt;for(let jt=0;jt0;){const je=z.shift();ce.next(je.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(z){this.closeContext(z);const ce=z.closeAction;if(ce.unsubscribe(),this.remove(ce),!this.closed&&this.timespanOnly){z=this.openContext();const je=this.bufferTimeSpan;this.add(z.closeAction=this.scheduler.schedule(I,je,{subscriber:this,context:z,bufferTimeSpan:je}))}}openContext(){const z=new y;return this.contexts.push(z),z}closeContext(z){this.destination.next(z.buffer);const ce=this.contexts;(ce?ce.indexOf(z):-1)>=0&&ce.splice(ce.indexOf(z),1)}}function I(Ge){const z=Ge.subscriber,ce=Ge.context;ce&&z.closeContext(ce),z.closed||(Ge.context=z.openContext(),Ge.context.closeAction=this.schedule(Ge,Ge.bufferTimeSpan))}function R(Ge){const{bufferCreationInterval:z,bufferTimeSpan:ce,subscriber:je,scheduler:Mt}=Ge,jt=je.openContext();je.closed||(je.add(jt.closeAction=Mt.schedule(M,ce,{subscriber:je,context:jt})),this.schedule(Ge,z))}function M(Ge){const{subscriber:z,context:ce}=Ge;z.closeContext(ce)}var A=p(2654),D=p(448),w=p(826);function x(Ge,z){return function(je){return je.lift(new C(Ge,z))}}class C{constructor(z,ce){this.openings=z,this.closingSelector=ce}call(z,ce){return ce.subscribe(new L(z,this.openings,this.closingSelector))}}class L extends w.L{constructor(z,ce,je){super(z),this.closingSelector=je,this.contexts=[],this.add((0,D.D)(this,ce))}_next(z){const ce=this.contexts,je=ce.length;for(let Mt=0;Mt0;){const je=ce.shift();je.subscription.unsubscribe(),je.buffer=null,je.subscription=null}this.contexts=null,super._error(z)}_complete(){const z=this.contexts;for(;z.length>0;){const ce=z.shift();this.destination.next(ce.buffer),ce.subscription.unsubscribe(),ce.buffer=null,ce.subscription=null}this.contexts=null,super._complete()}notifyNext(z,ce){z?this.closeBuffer(z):this.openBuffer(ce)}notifyComplete(z){this.closeBuffer(z.context)}openBuffer(z){try{const je=this.closingSelector.call(this,z);je&&this.trySubscribe(je)}catch(ce){this._error(ce)}}closeBuffer(z){const ce=this.contexts;if(ce&&z){const{buffer:je,subscription:Mt}=z;this.destination.next(je),ce.splice(ce.indexOf(z),1),this.remove(Mt),Mt.unsubscribe()}}trySubscribe(z){const ce=this.contexts,Mt=new A.w,jt={buffer:[],subscription:Mt};ce.push(jt);const ln=(0,D.D)(this,z,jt);!ln||ln.closed?this.closeBuffer(jt):(ln.context=jt,this.add(ln),Mt.add(ln))}}function F(Ge){return function(z){return z.lift(new re(Ge))}}class re{constructor(z){this.closingSelector=z}call(z,ce){return ce.subscribe(new Y(z,this.closingSelector))}}class Y extends _.Ds{constructor(z,ce){super(z),this.closingSelector=ce,this.subscribing=!1,this.openBuffer()}_next(z){this.buffer.push(z)}_complete(){const z=this.buffer;z&&this.destination.next(z),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let je,{closingSubscription:z}=this;z&&(this.remove(z),z.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:Mt}=this;je=Mt()}catch(Mt){return this.error(Mt)}z=new A.w,this.closingSubscription=z,this.add(z),this.subscribing=!0,z.add((0,_.ft)(je,new _.IY(this))),this.subscribing=!1}}var X=p(7221),ee=p(6053);function $(Ge){return z=>z.lift(new ee.Ms(Ge))}var J=p(6688),ie=p(5254);function ae(...Ge){let z=null;return"function"==typeof Ge[Ge.length-1]&&(z=Ge.pop()),1===Ge.length&&(0,J.k)(Ge[0])&&(Ge=Ge[0].slice()),ce=>ce.lift.call((0,ie.D)([ce,...Ge]),new ee.Ms(z))}var xe=p(1961);function Ie(...Ge){return z=>z.lift.call((0,xe.z)(z,...Ge))}var We=p(534),Xe=p(1406);function ft(Ge,z){return(0,Xe.b)(()=>Ge,z)}function Pe(Ge){return z=>z.lift(new et(Ge,z))}class et{constructor(z,ce){this.predicate=z,this.source=ce}call(z,ce){return ce.subscribe(new at(z,this.predicate,this.source))}}class at extends u.L{constructor(z,ce,je){super(z),this.predicate=ce,this.source=je,this.count=0,this.index=0}_next(z){this.predicate?this._tryPredicate(z):this.count++}_tryPredicate(z){let ce;try{ce=this.predicate(z,this.index++,this.source)}catch(je){return void this.destination.error(je)}ce&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function pt(Ge){return z=>z.lift(new vt(Ge))}class vt{constructor(z){this.durationSelector=z}call(z,ce){return ce.subscribe(new yt(z,this.durationSelector))}}class yt extends _.Ds{constructor(z,ce){super(z),this.durationSelector=ce,this.hasValue=!1}_next(z){try{const ce=this.durationSelector.call(this,z);ce&&this._tryNext(z,ce)}catch(ce){this.destination.error(ce)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(z,ce){let je=this.durationSubscription;this.value=z,this.hasValue=!0,je&&(je.unsubscribe(),this.remove(je)),je=(0,_.ft)(ce,new _.IY(this)),je&&!je.closed&&this.add(this.durationSubscription=je)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const z=this.value,ce=this.durationSubscription;ce&&(this.durationSubscription=void 0,ce.unsubscribe(),this.remove(ce)),this.value=void 0,this.hasValue=!1,super._next(z)}}}var ot=p(13),_t=p(7314),At=p(943),Tt=p(6498);function Bt(Ge,z){return z?ce=>new fe(ce,z).lift(new Et(Ge)):ce=>ce.lift(new Et(Ge))}class Et{constructor(z){this.delayDurationSelector=z}call(z,ce){return ce.subscribe(new Ee(z,this.delayDurationSelector))}}class Ee extends w.L{constructor(z,ce){super(z),this.delayDurationSelector=ce,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(z,ce,je,Mt,jt){this.destination.next(z),this.removeSubscription(jt),this.tryComplete()}notifyError(z,ce){this._error(z)}notifyComplete(z){const ce=this.removeSubscription(z);ce&&this.destination.next(ce),this.tryComplete()}_next(z){const ce=this.index++;try{const je=this.delayDurationSelector(z,ce);je&&this.tryDelay(je,z)}catch(je){this.destination.error(je)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(z){z.unsubscribe();const ce=this.delayNotifierSubscriptions.indexOf(z);return-1!==ce&&this.delayNotifierSubscriptions.splice(ce,1),z.outerValue}tryDelay(z,ce){const je=(0,D.D)(this,z,ce);je&&!je.closed&&(this.destination.add(je),this.delayNotifierSubscriptions.push(je))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class fe extends Tt.y{constructor(z,ce){super(),this.source=z,this.subscriptionDelay=ce}_subscribe(z){this.subscriptionDelay.subscribe(new H(z,this.source))}}class H extends u.L{constructor(z,ce){super(),this.parent=z,this.source=ce,this.sourceSubscribed=!1}_next(z){this.subscribeToSource()}_error(z){this.unsubscribe(),this.parent.error(z)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function T(){return function(z){return z.lift(new U)}}class U{call(z,ce){return ce.subscribe(new Z(z))}}class Z extends u.L{constructor(z){super(z)}_next(z){z.observe(this.destination)}}function _e(Ge,z){return ce=>ce.lift(new Be(Ge,z))}class Be{constructor(z,ce){this.keySelector=z,this.flushes=ce}call(z,ce){return ce.subscribe(new $e(z,this.keySelector,this.flushes))}}class $e extends _.Ds{constructor(z,ce,je){super(z),this.keySelector=ce,this.values=new Set,je&&this.add((0,_.ft)(je,new _.IY(this)))}notifyNext(){this.values.clear()}notifyError(z){this._error(z)}_next(z){this.keySelector?this._useKeySelector(z):this._finalizeNext(z,z)}_useKeySelector(z){let ce;const{destination:je}=this;try{ce=this.keySelector(z)}catch(Mt){return void je.error(Mt)}this._finalizeNext(ce,z)}_finalizeNext(z,ce){const{values:je}=this;je.has(z)||(je.add(z),this.destination.next(ce))}}var st=p(5778);function ut(Ge,z){return(0,st.x)((ce,je)=>z?z(ce[Ge],je[Ge]):ce[Ge]===je[Ge])}var St=p(4231),Xt=p(2198),tn=p(4907),Dt=p(2986);function Kt(Ge,z){if(Ge<0)throw new St.W;const ce=arguments.length>=2;return je=>je.pipe((0,Xt.h)((Mt,jt)=>jt===Ge),(0,Dt.q)(1),ce?(0,_t.d)(z):(0,tn.T)(()=>new St.W))}var tt=p(1086);function xt(...Ge){return z=>(0,xe.z)(z,(0,tt.of)(...Ge))}function Lt(Ge,z){return ce=>ce.lift(new Qe(Ge,z,ce))}class Qe{constructor(z,ce,je){this.predicate=z,this.thisArg=ce,this.source=je}call(z,ce){return ce.subscribe(new gt(z,this.predicate,this.thisArg,this.source))}}class gt extends u.L{constructor(z,ce,je,Mt){super(z),this.predicate=ce,this.thisArg=je,this.source=Mt,this.index=0,this.thisArg=je||this}notifyComplete(z){this.destination.next(z),this.destination.complete()}_next(z){let ce=!1;try{ce=this.predicate.call(this.thisArg,z,this.index++,this.source)}catch(je){return void this.destination.error(je)}ce||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Vt(){return Ge=>Ge.lift(new qt)}class qt{call(z,ce){return ce.subscribe(new Ue(z))}}class Ue extends _.Ds{constructor(z){super(z),this.hasCompleted=!1,this.hasSubscription=!1}_next(z){this.hasSubscription||(this.hasSubscription=!0,this.add((0,_.ft)(z,new _.IY(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var Se=p(4850);function te(Ge,z){return z?ce=>ce.pipe(te((je,Mt)=>(0,ie.D)(Ge(je,Mt)).pipe((0,Se.U)((jt,ln)=>z(je,jt,Mt,ln))))):ce=>ce.lift(new se(Ge))}class se{constructor(z){this.project=z}call(z,ce){return ce.subscribe(new Me(z,this.project))}}class Me extends _.Ds{constructor(z,ce){super(z),this.project=ce,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(z){this.hasSubscription||this.tryNext(z)}tryNext(z){let ce;const je=this.index++;try{ce=this.project(z,je)}catch(Mt){return void this.destination.error(Mt)}this.hasSubscription=!0,this._innerSub(ce)}_innerSub(z){const ce=new _.IY(this),je=this.destination;je.add(ce);const Mt=(0,_.ft)(z,ce);Mt!==ce&&je.add(Mt)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(z){this.destination.next(z)}notifyError(z){this.destination.error(z)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function Ke(Ge,z=Number.POSITIVE_INFINITY,ce){return z=(z||0)<1?Number.POSITIVE_INFINITY:z,je=>je.lift(new It(Ge,z,ce))}class It{constructor(z,ce,je){this.project=z,this.concurrent=ce,this.scheduler=je}call(z,ce){return ce.subscribe(new Qt(z,this.project,this.concurrent,this.scheduler))}}class Qt extends _.Ds{constructor(z,ce,je,Mt){super(z),this.project=ce,this.concurrent=je,this.scheduler=Mt,this.index=0,this.active=0,this.hasCompleted=!1,je0&&this._next(z.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var cn=p(537);function An(Ge,z){if("function"!=typeof Ge)throw new TypeError("predicate is not a function");return ce=>ce.lift(new lt(Ge,ce,!1,z))}class lt{constructor(z,ce,je,Mt){this.predicate=z,this.source=ce,this.yieldIndex=je,this.thisArg=Mt}call(z,ce){return ce.subscribe(new ct(z,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class ct extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.predicate=ce,this.source=je,this.yieldIndex=Mt,this.thisArg=jt,this.index=0}notifyComplete(z){const ce=this.destination;ce.next(z),ce.complete(),this.unsubscribe()}_next(z){const{predicate:ce,thisArg:je}=this,Mt=this.index++;try{ce.call(je||this,z,Mt,this.source)&&this.notifyComplete(this.yieldIndex?Mt:z)}catch(jt){this.destination.error(jt)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function He(Ge,z){return ce=>ce.lift(new lt(Ge,ce,!0,z))}var mt=p(7224),Ot=p(8929);function un(Ge,z,ce,je){return Mt=>Mt.lift(new on(Ge,z,ce,je))}class on{constructor(z,ce,je,Mt){this.keySelector=z,this.elementSelector=ce,this.durationSelector=je,this.subjectSelector=Mt}call(z,ce){return ce.subscribe(new On(z,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class On extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.keySelector=ce,this.elementSelector=je,this.durationSelector=Mt,this.subjectSelector=jt,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(z){let ce;try{ce=this.keySelector(z)}catch(je){return void this.error(je)}this._group(z,ce)}_group(z,ce){let je=this.groups;je||(je=this.groups=new Map);let jt,Mt=je.get(ce);if(this.elementSelector)try{jt=this.elementSelector(z)}catch(ln){this.error(ln)}else jt=z;if(!Mt){Mt=this.subjectSelector?this.subjectSelector():new Ot.xQ,je.set(ce,Mt);const ln=new ji(ce,Mt,this);if(this.destination.next(ln),this.durationSelector){let Hn;try{Hn=this.durationSelector(new ji(ce,Mt))}catch(Ki){return void this.error(Ki)}this.add(Hn.subscribe(new Yn(ce,Mt,this)))}}Mt.closed||Mt.next(jt)}_error(z){const ce=this.groups;ce&&(ce.forEach((je,Mt)=>{je.error(z)}),ce.clear()),this.destination.error(z)}_complete(){const z=this.groups;z&&(z.forEach((ce,je)=>{ce.complete()}),z.clear()),this.destination.complete()}removeGroup(z){this.groups.delete(z)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class Yn extends u.L{constructor(z,ce,je){super(ce),this.key=z,this.group=ce,this.parent=je}_next(z){this.complete()}_unsubscribe(){const{parent:z,key:ce}=this;this.key=this.parent=null,z&&z.removeGroup(ce)}}class ji extends Tt.y{constructor(z,ce,je){super(),this.key=z,this.groupSubject=ce,this.refCountSubscription=je}_subscribe(z){const ce=new A.w,{refCountSubscription:je,groupSubject:Mt}=this;return je&&!je.closed&&ce.add(new Oi(je)),ce.add(Mt.subscribe(z)),ce}}class Oi extends A.w{constructor(z){super(),this.parent=z,z.count++}unsubscribe(){const z=this.parent;!z.closed&&!this.closed&&(super.unsubscribe(),z.count-=1,0===z.count&&z.attemptedToUnsubscribe&&z.unsubscribe())}}function Ni(){return function(z){return z.lift(new Ti)}}class Ti{call(z,ce){return ce.subscribe(new qn(z))}}class qn extends u.L{_next(z){}}function Vi(){return Ge=>Ge.lift(new ci)}class ci{call(z,ce){return ce.subscribe(new Ae(z))}}class Ae extends u.L{constructor(z){super(z)}notifyComplete(z){const ce=this.destination;ce.next(z),ce.complete()}_next(z){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var qe=p(8127);function ue(Ge){return z=>z.lift(new Le(Ge))}class Le{constructor(z){this.value=z}call(z,ce){return ce.subscribe(new B(z,this.value))}}class B extends u.L{constructor(z,ce){super(z),this.value=ce}_next(z){this.destination.next(this.value)}}var de=p(9312);function Fe(){return function(z){return z.lift(new Ze)}}class Ze{call(z,ce){return ce.subscribe(new Wt(z))}}class Wt extends u.L{constructor(z){super(z)}_next(z){this.destination.next(de.P.createNext(z))}_error(z){const ce=this.destination;ce.next(de.P.createError(z)),ce.complete()}_complete(){const z=this.destination;z.next(de.P.createComplete()),z.complete()}}var Ft=p(8077);function Ht(Ge){return(0,Ft.u)("function"==typeof Ge?(ce,je)=>Ge(ce,je)>0?ce:je:(ce,je)=>ce>je?ce:je)}var Zt=p(6787);function an(...Ge){return z=>z.lift.call((0,Zt.T)(z,...Ge))}var Tn=p(9146),zn=p(1709);function $n(Ge,z,ce=Number.POSITIVE_INFINITY){return"function"==typeof z?(0,zn.zg)(()=>Ge,z,ce):("number"==typeof z&&(ce=z),(0,zn.zg)(()=>Ge,ce))}function ti(Ge,z,ce=Number.POSITIVE_INFINITY){return je=>je.lift(new jn(Ge,z,ce))}class jn{constructor(z,ce,je){this.accumulator=z,this.seed=ce,this.concurrent=je}call(z,ce){return ce.subscribe(new Qn(z,this.accumulator,this.seed,this.concurrent))}}class Qn extends _.Ds{constructor(z,ce,je,Mt){super(z),this.accumulator=ce,this.acc=je,this.concurrent=Mt,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(z){if(this.active0?this._next(z.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function kn(Ge){return(0,Ft.u)("function"==typeof Ge?(ce,je)=>Ge(ce,je)<0?ce:je:(ce,je)=>cez.lift(new bi(Ge))}class bi{constructor(z){this.nextSources=z}call(z,ce){return ce.subscribe(new Rn(z,this.nextSources))}}class Rn extends _.Ds{constructor(z,ce){super(z),this.destination=z,this.nextSources=ce}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(z){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const z=this.nextSources.shift();if(z){const ce=new _.IY(this),je=this.destination;je.add(ce);const Mt=(0,_.ft)(z,ce);Mt!==ce&&je.add(Mt)}else this.destination.complete()}}function qi(){return Ge=>Ge.lift(new oi)}class oi{call(z,ce){return ce.subscribe(new Fn(z))}}class Fn extends u.L{constructor(z){super(z),this.hasPrev=!1}_next(z){let ce;this.hasPrev?ce=[this.prev,z]:this.hasPrev=!0,this.prev=z,ce&&this.destination.next(ce)}}function $i(Ge,z){function ce(){return!ce.pred.apply(ce.thisArg,arguments)}return ce.pred=Ge,ce.thisArg=z,ce}function mi(Ge,z){return ce=>[(0,Xt.h)(Ge,z)(ce),(0,Xt.h)($i(Ge,z))(ce)]}function Gn(...Ge){const z=Ge.length;if(0===z)throw new Error("list of properties cannot be empty.");return ce=>(0,Se.U)(function(Ge,z){return je=>{let Mt=je;for(let jt=0;jtnew Ot.xQ,Ge):(0,Mi.O)(new Ot.xQ)}var yn=p(591);function Sn(Ge){return z=>(0,Mi.O)(new yn.X(Ge))(z)}class Wn extends Ot.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(z){return this.hasError?(z.error(this.thrownError),A.w.EMPTY):this.hasCompleted&&this.hasNext?(z.next(this.value),z.complete(),A.w.EMPTY):super._subscribe(z)}next(z){this.hasCompleted||(this.value=z,this.hasNext=!0)}error(z){this.hasCompleted||super.error(z)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}function Ri(){return Ge=>(0,Mi.O)(new Wn)(Ge)}var Li=p(6686),Vr=p(2268);const Mr=new class extends Vr.v{}(class extends Li.o{constructor(z,ce){super(z,ce),this.scheduler=z,this.work=ce}schedule(z,ce=0){return ce>0?super.schedule(z,ce):(this.delay=ce,this.state=z,this.scheduler.flush(this),this)}execute(z,ce){return ce>0||this.closed?super.execute(z,ce):this._execute(z,ce)}requestAsyncId(z,ce,je=0){return null!==je&&je>0||null===je&&this.delay>0?super.requestAsyncId(z,ce,je):z.flush(this)}});var cr=p(5279),$r=p(5283);class hr extends Ot.xQ{constructor(z=Number.POSITIVE_INFINITY,ce=Number.POSITIVE_INFINITY,je){super(),this.scheduler=je,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=z<1?1:z,this._windowTime=ce<1?1:ce,ce===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(z){if(!this.isStopped){const ce=this._events;ce.push(z),ce.length>this._bufferSize&&ce.shift()}super.next(z)}nextTimeWindow(z){this.isStopped||(this._events.push(new qr(this._getNow(),z)),this._trimBufferThenGetEvents()),super.next(z)}_subscribe(z){const ce=this._infiniteTimeWindow,je=ce?this._events:this._trimBufferThenGetEvents(),Mt=this.scheduler,jt=je.length;let ln;if(this.closed)throw new cr.N;if(this.isStopped||this.hasError?ln=A.w.EMPTY:(this.observers.push(z),ln=new $r.W(this,z)),Mt&&z.add(z=new pi(z,Mt)),ce)for(let Hn=0;Hnce&&(ln=Math.max(ln,jt-ce)),ln>0&&Mt.splice(0,ln),Mt}}class qr{constructor(z,ce){this.time=z,this.value=ce}}function ir(Ge,z,ce,je){ce&&"function"!=typeof ce&&(je=ce);const Mt="function"==typeof ce?ce:void 0,jt=new hr(Ge,z,je);return ln=>(0,Mi.O)(()=>jt,Mt)(ln)}var Cr=p(1946);function Sr(...Ge){return function(ce){return 1===Ge.length&&(0,J.k)(Ge[0])&&(Ge=Ge[0]),ce.lift.call((0,Cr.S3)(ce,...Ge))}}var mr=p(8896);function Hr(Ge=-1){return z=>0===Ge?(0,mr.c)():z.lift(new jr(Ge<0?-1:Ge-1,z))}class jr{constructor(z,ce){this.count=z,this.source=ce}call(z,ce){return ce.subscribe(new Wi(z,this.count,this.source))}}class Wi extends u.L{constructor(z,ce,je){super(z),this.count=ce,this.source=je}complete(){if(!this.isStopped){const{source:z,count:ce}=this;if(0===ce)return super.complete();ce>-1&&(this.count=ce-1),z.subscribe(this._unsubscribeAndRecycle())}}}function Wr(Ge){return z=>z.lift(new Rr(Ge))}class Rr{constructor(z){this.notifier=z}call(z,ce){return ce.subscribe(new Dr(z,this.notifier,ce))}}class Dr extends _.Ds{constructor(z,ce,je){super(z),this.notifier=ce,this.source=je,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:z,retriesSubscription:ce}=this;z&&(z.unsubscribe(),this.notifications=void 0),ce&&(ce.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:z}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=z,this}subscribeToRetries(){let z;this.notifications=new Ot.xQ;try{const{notifier:ce}=this;z=ce(this.notifications)}catch(ce){return super.complete()}this.retries=z,this.retriesSubscription=(0,_.ft)(z,new _.IY(this))}}function Lr(Ge=-1){return z=>z.lift(new Ji(Ge,z))}class Ji{constructor(z,ce){this.count=z,this.source=ce}call(z,ce){return ce.subscribe(new Fr(z,this.count,this.source))}}class Fr extends u.L{constructor(z,ce,je){super(z),this.count=ce,this.source=je}error(z){if(!this.isStopped){const{source:ce,count:je}=this;if(0===je)return super.error(z);je>-1&&(this.count=je-1),ce.subscribe(this._unsubscribeAndRecycle())}}}function ls(Ge){return z=>z.lift(new kr(Ge,z))}class kr{constructor(z,ce){this.notifier=z,this.source=ce}call(z,ce){return ce.subscribe(new Jr(z,this.notifier,this.source))}}class Jr extends _.Ds{constructor(z,ce,je){super(z),this.notifier=ce,this.source=je}error(z){if(!this.isStopped){let ce=this.errors,je=this.retries,Mt=this.retriesSubscription;if(je)this.errors=void 0,this.retriesSubscription=void 0;else{ce=new Ot.xQ;try{const{notifier:jt}=this;je=jt(ce)}catch(jt){return super.error(jt)}Mt=(0,_.ft)(je,new _.IY(this))}this._unsubscribeAndRecycle(),this.errors=ce,this.retries=je,this.retriesSubscription=Mt,ce.next(z)}}_unsubscribe(){const{errors:z,retriesSubscription:ce}=this;z&&(z.unsubscribe(),this.errors=void 0),ce&&(ce.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:z}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=z,this.source.subscribe(this)}}var Tr=p(4327);function us(Ge){return z=>z.lift(new si(Ge))}class si{constructor(z){this.notifier=z}call(z,ce){const je=new zr(z),Mt=ce.subscribe(je);return Mt.add((0,_.ft)(this.notifier,new _.IY(je))),Mt}}class zr extends _.Ds{constructor(){super(...arguments),this.hasValue=!1}_next(z){this.value=z,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function Er(Ge,z=c.P){return ce=>ce.lift(new be(Ge,z))}class be{constructor(z,ce){this.period=z,this.scheduler=ce}call(z,ce){return ce.subscribe(new Q(z,this.period,this.scheduler))}}class Q extends u.L{constructor(z,ce,je){super(z),this.period=ce,this.scheduler=je,this.hasValue=!1,this.add(je.schedule(k,ce,{subscriber:this,period:ce}))}_next(z){this.lastValue=z,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function k(Ge){let{subscriber:z,period:ce}=Ge;z.notifyNext(),this.schedule(Ge,ce)}var V=p(2014);function ve(Ge,z){return ce=>ce.lift(new nt(Ge,z))}class nt{constructor(z,ce){this.compareTo=z,this.comparator=ce}call(z,ce){return ce.subscribe(new Nt(z,this.compareTo,this.comparator))}}class Nt extends u.L{constructor(z,ce,je){super(z),this.compareTo=ce,this.comparator=je,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(ce.subscribe(new nn(z,this)))}_next(z){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(z),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:z,_b:ce,comparator:je}=this;for(;z.length>0&&ce.length>0;){let Mt=z.shift(),jt=ce.shift(),ln=!1;try{ln=je?je(Mt,jt):Mt===jt}catch(Hn){this.destination.error(Hn)}ln||this.emit(!1)}}emit(z){const{destination:ce}=this;ce.next(z),ce.complete()}nextB(z){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(z),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class nn extends u.L{constructor(z,ce){super(z),this.parent=ce}_next(z){this.parent.nextB(z)}_error(z){this.parent.error(z),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var In=p(8117);function ni(Ge,z,ce){let je;return je=Ge&&"object"==typeof Ge?Ge:{bufferSize:Ge,windowTime:z,refCount:!1,scheduler:ce},Mt=>Mt.lift(function({bufferSize:Ge=Number.POSITIVE_INFINITY,windowTime:z=Number.POSITIVE_INFINITY,refCount:ce,scheduler:je}){let Mt,ln,jt=0,Hn=!1,Ki=!1;return function(le){let q;jt++,!Mt||Hn?(Hn=!1,Mt=new hr(Ge,z,je),q=Mt.subscribe(this),ln=le.subscribe({next(Ce){Mt.next(Ce)},error(Ce){Hn=!0,Mt.error(Ce)},complete(){Ki=!0,ln=void 0,Mt.complete()}}),Ki&&(ln=void 0)):q=Mt.subscribe(this),this.add(()=>{jt--,q.unsubscribe(),q=void 0,ln&&!Ki&&ce&&0===jt&&(ln.unsubscribe(),ln=void 0,Mt=void 0)})}}(je))}var ai=p(4450);function hi(Ge){return z=>z.lift(new Ei(Ge,z))}class Ei{constructor(z,ce){this.predicate=z,this.source=ce}call(z,ce){return ce.subscribe(new ki(z,this.predicate,this.source))}}class ki extends u.L{constructor(z,ce,je){super(z),this.predicate=ce,this.source=je,this.seenValue=!1,this.index=0}applySingleValue(z){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=z)}_next(z){const ce=this.index++;this.predicate?this.tryNext(z,ce):this.applySingleValue(z)}tryNext(z,ce){try{this.predicate(z,ce,this.source)&&this.applySingleValue(z)}catch(je){this.destination.error(je)}}_complete(){const z=this.destination;this.index>0?(z.next(this.seenValue?this.singleValue:void 0),z.complete()):z.error(new ai.K)}}var xn=p(1307);function Kr(Ge){return z=>z.lift(new rr(Ge))}class rr{constructor(z){if(this._skipCount=z,this._skipCount<0)throw new St.W}call(z,ce){return ce.subscribe(0===this._skipCount?new u.L(z):new xr(z,this._skipCount))}}class xr extends u.L{constructor(z,ce){super(z),this._skipCount=ce,this._count=0,this._ring=new Array(ce)}_next(z){const ce=this._skipCount,je=this._count++;if(jez.lift(new es(Ge))}class es{constructor(z){this.notifier=z}call(z,ce){return ce.subscribe(new ds(z,this.notifier))}}class ds extends _.Ds{constructor(z,ce){super(z),this.hasValue=!1;const je=new _.IY(this);this.add(je),this.innerSubscription=je;const Mt=(0,_.ft)(ce,je);Mt!==je&&(this.add(Mt),this.innerSubscription=Mt)}_next(z){this.hasValue&&super._next(z)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function Bs(Ge){return z=>z.lift(new we(Ge))}class we{constructor(z){this.predicate=z}call(z,ce){return ce.subscribe(new N(z,this.predicate))}}class N extends u.L{constructor(z,ce){super(z),this.predicate=ce,this.skipping=!0,this.index=0}_next(z){const ce=this.destination;this.skipping&&this.tryCallPredicate(z),this.skipping||ce.next(z)}tryCallPredicate(z){try{const ce=this.predicate(z,this.index++);this.skipping=Boolean(ce)}catch(ce){this.destination.error(ce)}}}var G=p(1059),pe=p(8139),Re=p(4241);class ze extends Tt.y{constructor(z,ce=0,je=pe.e){super(),this.source=z,this.delayTime=ce,this.scheduler=je,(!(0,Re.k)(ce)||ce<0)&&(this.delayTime=0),(!je||"function"!=typeof je.schedule)&&(this.scheduler=pe.e)}static create(z,ce=0,je=pe.e){return new ze(z,ce,je)}static dispatch(z){const{source:ce,subscriber:je}=z;return this.add(ce.subscribe(je))}_subscribe(z){return this.scheduler.schedule(ze.dispatch,this.delayTime,{source:this.source,subscriber:z})}}function rt(Ge,z=0){return function(je){return je.lift(new dt(Ge,z))}}class dt{constructor(z,ce){this.scheduler=z,this.delay=ce}call(z,ce){return new ze(ce,this.delay,this.scheduler).subscribe(z)}}var Rt=p(7545),Gt=p(5379);function rn(){return(0,Rt.w)(Gt.y)}function pn(Ge,z){return z?(0,Rt.w)(()=>Ge,z):(0,Rt.w)(()=>Ge)}var Pn=p(2821),Ln=p(7625),_n=p(4290),Bn=p(2868);const Kn={leading:!0,trailing:!1};function _i(Ge,z=Kn){return ce=>ce.lift(new xi(Ge,!!z.leading,!!z.trailing))}class xi{constructor(z,ce,je){this.durationSelector=z,this.leading=ce,this.trailing=je}call(z,ce){return ce.subscribe(new sr(z,this.durationSelector,this.leading,this.trailing))}}class sr extends _.Ds{constructor(z,ce,je,Mt){super(z),this.destination=z,this.durationSelector=ce,this._leading=je,this._trailing=Mt,this._hasValue=!1}_next(z){this._hasValue=!0,this._sendValue=z,this._throttled||(this._leading?this.send():this.throttle(z))}send(){const{_hasValue:z,_sendValue:ce}=this;z&&(this.destination.next(ce),this.throttle(ce)),this._hasValue=!1,this._sendValue=void 0}throttle(z){const ce=this.tryDurationSelector(z);ce&&this.add(this._throttled=(0,_.ft)(ce,new _.IY(this)))}tryDurationSelector(z){try{return this.durationSelector(z)}catch(ce){return this.destination.error(ce),null}}throttlingDone(){const{_throttled:z,_trailing:ce}=this;z&&z.unsubscribe(),this._throttled=void 0,ce&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}function Qi(Ge,z=c.P,ce=Kn){return je=>je.lift(new Nr(Ge,z,ce.leading,ce.trailing))}class Nr{constructor(z,ce,je,Mt){this.duration=z,this.scheduler=ce,this.leading=je,this.trailing=Mt}call(z,ce){return ce.subscribe(new fr(z,this.duration,this.scheduler,this.leading,this.trailing))}}class fr extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.duration=ce,this.scheduler=je,this.leading=Mt,this.trailing=jt,this._hasTrailingValue=!1,this._trailingValue=null}_next(z){this.throttled?this.trailing&&(this._trailingValue=z,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Xi,this.duration,{subscriber:this})),this.leading?this.destination.next(z):this.trailing&&(this._trailingValue=z,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const z=this.throttled;z&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),z.unsubscribe(),this.remove(z),this.throttled=null)}}function Xi(Ge){const{subscriber:z}=Ge;z.clearThrottle()}var gr=p(8514);function zi(Ge=c.P){return z=>(0,gr.P)(()=>z.pipe((0,V.R)(({current:ce},je)=>({value:je,current:Ge.now(),last:ce}),{current:Ge.now(),value:void 0,last:void 0}),(0,Se.U)(({current:ce,last:je,value:Mt})=>new Pr(Mt,ce-je))))}class Pr{constructor(z,ce){this.value=z,this.interval=ce}}var ys=p(7e3),Yi=p(2431);function Ur(Ge=c.P){return(0,Se.U)(z=>new bs(z,Ge.now()))}class bs{constructor(z,ce){this.value=z,this.timestamp=ce}}var Cs=p(864);function mn(Ge){return function(ce){return ce.lift(new Mn(Ge))}}class Mn{constructor(z){this.windowBoundaries=z}call(z,ce){const je=new En(z),Mt=ce.subscribe(je);return Mt.closed||je.add((0,_.ft)(this.windowBoundaries,new _.IY(je))),Mt}}class En extends _.Ds{constructor(z){super(z),this.window=new Ot.xQ,z.next(this.window)}notifyNext(){this.openWindow()}notifyError(z){this._error(z)}notifyComplete(){this._complete()}_next(z){this.window.next(z)}_error(z){this.window.error(z),this.destination.error(z)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const z=this.window;z&&z.complete();const ce=this.destination,je=this.window=new Ot.xQ;ce.next(je)}}function li(Ge,z=0){return function(je){return je.lift(new ii(Ge,z))}}class ii{constructor(z,ce){this.windowSize=z,this.startWindowEvery=ce}call(z,ce){return ce.subscribe(new Hi(z,this.windowSize,this.startWindowEvery))}}class Hi extends u.L{constructor(z,ce,je){super(z),this.destination=z,this.windowSize=ce,this.startWindowEvery=je,this.windows=[new Ot.xQ],this.count=0,z.next(this.windows[0])}_next(z){const ce=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,je=this.destination,Mt=this.windowSize,jt=this.windows,ln=jt.length;for(let Ki=0;Ki=0&&Hn%ce==0&&!this.closed&&jt.shift().complete(),++this.count%ce==0&&!this.closed){const Ki=new Ot.xQ;jt.push(Ki),je.next(Ki)}}_error(z){const ce=this.windows;if(ce)for(;ce.length>0&&!this.closed;)ce.shift().error(z);this.destination.error(z)}_complete(){const z=this.windows;if(z)for(;z.length>0&&!this.closed;)z.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function Zn(Ge){let z=c.P,ce=null,je=Number.POSITIVE_INFINITY;return(0,l.K)(arguments[3])&&(z=arguments[3]),(0,l.K)(arguments[2])?z=arguments[2]:(0,Re.k)(arguments[2])&&(je=Number(arguments[2])),(0,l.K)(arguments[1])?z=arguments[1]:(0,Re.k)(arguments[1])&&(ce=Number(arguments[1])),function(jt){return jt.lift(new dr(Ge,ce,je,z))}}class dr{constructor(z,ce,je,Mt){this.windowTimeSpan=z,this.windowCreationInterval=ce,this.maxWindowSize=je,this.scheduler=Mt}call(z,ce){return ce.subscribe(new Es(z,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Si extends Ot.xQ{constructor(){super(...arguments),this._numberOfNextedValues=0}next(z){this._numberOfNextedValues++,super.next(z)}get numberOfNextedValues(){return this._numberOfNextedValues}}class Es extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.destination=z,this.windowTimeSpan=ce,this.windowCreationInterval=je,this.maxWindowSize=Mt,this.scheduler=jt,this.windows=[];const ln=this.openWindow();if(null!==je&&je>=0){const Ki={windowTimeSpan:ce,windowCreationInterval:je,subscriber:this,scheduler:jt};this.add(jt.schedule(ar,ce,{subscriber:this,window:ln,context:null})),this.add(jt.schedule(or,je,Ki))}else this.add(jt.schedule(ws,ce,{subscriber:this,window:ln,windowTimeSpan:ce}))}_next(z){const ce=this.windows,je=ce.length;for(let Mt=0;Mt=this.maxWindowSize&&this.closeWindow(jt))}}_error(z){const ce=this.windows;for(;ce.length>0;)ce.shift().error(z);this.destination.error(z)}_complete(){const z=this.windows;for(;z.length>0;){const ce=z.shift();ce.closed||ce.complete()}this.destination.complete()}openWindow(){const z=new Si;return this.windows.push(z),this.destination.next(z),z}closeWindow(z){z.complete();const ce=this.windows;ce.splice(ce.indexOf(z),1)}}function ws(Ge){const{subscriber:z,windowTimeSpan:ce,window:je}=Ge;je&&z.closeWindow(je),Ge.window=z.openWindow(),this.schedule(Ge,ce)}function or(Ge){const{windowTimeSpan:z,subscriber:ce,scheduler:je,windowCreationInterval:Mt}=Ge,jt=ce.openWindow();let Hn={action:this,subscription:null};Hn.subscription=je.schedule(ar,z,{subscriber:ce,window:jt,context:Hn}),this.add(Hn.subscription),this.schedule(Ge,Mt)}function ar(Ge){const{subscriber:z,window:ce,context:je}=Ge;je&&je.action&&je.subscription&&je.action.remove(je.subscription),z.closeWindow(ce)}function Ir(Ge,z){return ce=>ce.lift(new _r(Ge,z))}class _r{constructor(z,ce){this.openings=z,this.closingSelector=ce}call(z,ce){return ce.subscribe(new ts(z,this.openings,this.closingSelector))}}class ts extends w.L{constructor(z,ce,je){super(z),this.openings=ce,this.closingSelector=je,this.contexts=[],this.add(this.openSubscription=(0,D.D)(this,ce,ce))}_next(z){const{contexts:ce}=this;if(ce){const je=ce.length;for(let Mt=0;Mt{let ce;return"function"==typeof Ge[Ge.length-1]&&(ce=Ge.pop()),z.lift(new rs(Ge,ce))}}class rs{constructor(z,ce){this.observables=z,this.project=ce}call(z,ce){return ce.subscribe(new $s(z,this.observables,this.project))}}class $s extends w.L{constructor(z,ce,je){super(z),this.observables=ce,this.project=je,this.toRespond=[];const Mt=ce.length;this.values=new Array(Mt);for(let jt=0;jt0){const jt=Mt.indexOf(je);-1!==jt&&Mt.splice(jt,1)}}notifyComplete(){}_next(z){if(0===this.toRespond.length){const ce=[z,...this.values];this.project?this._tryProject(ce):this.destination.next(ce)}}_tryProject(z){let ce;try{ce=this.project.apply(this,z)}catch(je){return void this.destination.error(je)}this.destination.next(ce)}}var Js=p(1746);function Ms(...Ge){return function(ce){return ce.lift.call((0,Js.$R)(ce,...Ge))}}function Ss(Ge){return z=>z.lift(new Js.mx(Ge))}},8926:ye=>{function W(n,f,_,m,s,d,u){try{var h=n[d](u),r=h.value}catch(o){return void _(o)}h.done?f(r):Promise.resolve(r).then(m,s)}ye.exports=function(n){return function(){var f=this,_=arguments;return new Promise(function(m,s){var d=n.apply(f,_);function u(r){W(d,m,s,u,h,"next",r)}function h(r){W(d,m,s,u,h,"throw",r)}u(void 0)})}},ye.exports.default=ye.exports,ye.exports.__esModule=!0},655:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{__extends:()=>f,__assign:()=>_,__rest:()=>m,__decorate:()=>s,__param:()=>d,__metadata:()=>u,__awaiter:()=>h,__generator:()=>r,__createBinding:()=>o,__exportStar:()=>i,__values:()=>c,__read:()=>l,__spread:()=>g,__spreadArrays:()=>b,__spreadArray:()=>y,__await:()=>S,__asyncGenerator:()=>I,__asyncDelegator:()=>R,__asyncValues:()=>M,__makeTemplateObject:()=>A,__importStar:()=>w,__importDefault:()=>x,__classPrivateFieldGet:()=>C,__classPrivateFieldSet:()=>L});var n=function(F,re){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,X){Y.__proto__=X}||function(Y,X){for(var ee in X)Object.prototype.hasOwnProperty.call(X,ee)&&(Y[ee]=X[ee])})(F,re)};function f(F,re){if("function"!=typeof re&&null!==re)throw new TypeError("Class extends value "+String(re)+" is not a constructor or null");function Y(){this.constructor=F}n(F,re),F.prototype=null===re?Object.create(re):(Y.prototype=re.prototype,new Y)}var _=function(){return _=Object.assign||function(re){for(var Y,X=1,ee=arguments.length;X=0;ie--)(J=F[ie])&&($=(ee<3?J($):ee>3?J(re,Y,$):J(re,Y))||$);return ee>3&&$&&Object.defineProperty(re,Y,$),$}function d(F,re){return function(Y,X){re(Y,X,F)}}function u(F,re){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,re)}function h(F,re,Y,X){return new(Y||(Y=Promise))(function($,J){function ie(xe){try{ae(X.next(xe))}catch(Ie){J(Ie)}}function ne(xe){try{ae(X.throw(xe))}catch(Ie){J(Ie)}}function ae(xe){xe.done?$(xe.value):function($){return $ instanceof Y?$:new Y(function(J){J($)})}(xe.value).then(ie,ne)}ae((X=X.apply(F,re||[])).next())})}function r(F,re){var X,ee,$,J,Y={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return J={next:ie(0),throw:ie(1),return:ie(2)},"function"==typeof Symbol&&(J[Symbol.iterator]=function(){return this}),J;function ie(ae){return function(xe){return function(ae){if(X)throw new TypeError("Generator is already executing.");for(;Y;)try{if(X=1,ee&&($=2&ae[0]?ee.return:ae[0]?ee.throw||(($=ee.return)&&$.call(ee),0):ee.next)&&!($=$.call(ee,ae[1])).done)return $;switch(ee=0,$&&(ae=[2&ae[0],$.value]),ae[0]){case 0:case 1:$=ae;break;case 4:return Y.label++,{value:ae[1],done:!1};case 5:Y.label++,ee=ae[1],ae=[0];continue;case 7:ae=Y.ops.pop(),Y.trys.pop();continue;default:if(!($=($=Y.trys).length>0&&$[$.length-1])&&(6===ae[0]||2===ae[0])){Y=0;continue}if(3===ae[0]&&(!$||ae[1]>$[0]&&ae[1]<$[3])){Y.label=ae[1];break}if(6===ae[0]&&Y.label<$[1]){Y.label=$[1],$=ae;break}if($&&Y.label<$[2]){Y.label=$[2],Y.ops.push(ae);break}$[2]&&Y.ops.pop(),Y.trys.pop();continue}ae=re.call(F,Y)}catch(xe){ae=[6,xe],ee=0}finally{X=$=0}if(5&ae[0])throw ae[1];return{value:ae[0]?ae[1]:void 0,done:!0}}([ae,xe])}}}var o=Object.create?function(F,re,Y,X){void 0===X&&(X=Y),Object.defineProperty(F,X,{enumerable:!0,get:function(){return re[Y]}})}:function(F,re,Y,X){void 0===X&&(X=Y),F[X]=re[Y]};function i(F,re){for(var Y in F)"default"!==Y&&!Object.prototype.hasOwnProperty.call(re,Y)&&o(re,F,Y)}function c(F){var re="function"==typeof Symbol&&Symbol.iterator,Y=re&&F[re],X=0;if(Y)return Y.call(F);if(F&&"number"==typeof F.length)return{next:function(){return F&&X>=F.length&&(F=void 0),{value:F&&F[X++],done:!F}}};throw new TypeError(re?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(F,re){var Y="function"==typeof Symbol&&F[Symbol.iterator];if(!Y)return F;var ee,J,X=Y.call(F),$=[];try{for(;(void 0===re||re-- >0)&&!(ee=X.next()).done;)$.push(ee.value)}catch(ie){J={error:ie}}finally{try{ee&&!ee.done&&(Y=X.return)&&Y.call(X)}finally{if(J)throw J.error}}return $}function g(){for(var F=[],re=0;re1||ie(We,Xe)})})}function ie(We,Xe){try{!function(We){We.value instanceof S?Promise.resolve(We.value.v).then(ae,xe):Ie($[0][2],We)}(X[We](Xe))}catch(ft){Ie($[0][3],ft)}}function ae(We){ie("next",We)}function xe(We){ie("throw",We)}function Ie(We,Xe){We(Xe),$.shift(),$.length&&ie($[0][0],$[0][1])}}function R(F){var re,Y;return re={},X("next"),X("throw",function(ee){throw ee}),X("return"),re[Symbol.iterator]=function(){return this},re;function X(ee,$){re[ee]=F[ee]?function(J){return(Y=!Y)?{value:S(F[ee](J)),done:"return"===ee}:$?$(J):J}:$}}function M(F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Y,re=F[Symbol.asyncIterator];return re?re.call(F):(F=c(F),Y={},X("next"),X("throw"),X("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function X($){Y[$]=F[$]&&function(J){return new Promise(function(ie,ne){!function($,J,ie,ne){Promise.resolve(ne).then(function(ae){$({value:ae,done:ie})},J)}(ie,ne,(J=F[$](J)).done,J.value)})}}}function A(F,re){return Object.defineProperty?Object.defineProperty(F,"raw",{value:re}):F.raw=re,F}var D=Object.create?function(F,re){Object.defineProperty(F,"default",{enumerable:!0,value:re})}:function(F,re){F.default=re};function w(F){if(F&&F.__esModule)return F;var re={};if(null!=F)for(var Y in F)"default"!==Y&&Object.prototype.hasOwnProperty.call(F,Y)&&o(re,F,Y);return D(re,F),re}function x(F){return F&&F.__esModule?F:{default:F}}function C(F,re){if(!re.has(F))throw new TypeError("attempted to get private field on non-instance");return re.get(F)}function L(F,re,Y){if(!re.has(F))throw new TypeError("attempted to set private field on non-instance");return re.set(F,Y),Y}},918:(ye,W,p)=>{"use strict";p.r(W);const n=new WeakMap,f=new WeakMap;function _(ne){const ae=n.get(ne);return console.assert(null!=ae,"'this' is expected an Event object, but got",ne),ae}function m(ne){null==ne.passiveListener?!ne.event.cancelable||(ne.canceled=!0,"function"==typeof ne.event.preventDefault&&ne.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",ne.passiveListener)}function s(ne,ae){n.set(this,{eventTarget:ne,event:ae,eventPhase:2,currentTarget:ne,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:ae.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const xe=Object.keys(ae);for(let Ie=0;Ie0){const ne=new Array(arguments.length);for(let ae=0;ae{"use strict";p.d(W,{l3:()=>_,_j:()=>n,LC:()=>f,ZN:()=>I,jt:()=>s,pV:()=>l,F4:()=>o,IO:()=>b,vP:()=>u,SB:()=>r,oB:()=>h,eR:()=>i,X$:()=>m,ZE:()=>R,k1:()=>M});class n{}class f{}const _="*";function m(A,D){return{type:7,name:A,definitions:D,options:{}}}function s(A,D=null){return{type:4,styles:D,timings:A}}function u(A,D=null){return{type:2,steps:A,options:D}}function h(A){return{type:6,styles:A,offset:null}}function r(A,D,w){return{type:0,name:A,styles:D,options:w}}function o(A){return{type:5,steps:A}}function i(A,D,w=null){return{type:1,expr:A,animation:D,options:w}}function l(A=null){return{type:9,options:A}}function b(A,D,w=null){return{type:11,selector:A,animation:D,options:w}}function S(A){Promise.resolve(null).then(A)}class I{constructor(D=0,w=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=D+w}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(D=>D()),this._onDoneFns=[])}onStart(D){this._onStartFns.push(D)}onDone(D){this._onDoneFns.push(D)}onDestroy(D){this._onDestroyFns.push(D)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){S(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(D=>D()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(D=>D()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(D){this._position=this.totalTime?D*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(D){const w="start"==D?this._onStartFns:this._onDoneFns;w.forEach(x=>x()),w.length=0}}class R{constructor(D){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=D;let w=0,x=0,C=0;const L=this.players.length;0==L?S(()=>this._onFinish()):this.players.forEach(F=>{F.onDone(()=>{++w==L&&this._onFinish()}),F.onDestroy(()=>{++x==L&&this._onDestroy()}),F.onStart(()=>{++C==L&&this._onStart()})}),this.totalTime=this.players.reduce((F,re)=>Math.max(F,re.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(D=>D()),this._onDoneFns=[])}init(){this.players.forEach(D=>D.init())}onStart(D){this._onStartFns.push(D)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(D=>D()),this._onStartFns=[])}onDone(D){this._onDoneFns.push(D)}onDestroy(D){this._onDestroyFns.push(D)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(D=>D.play())}pause(){this.players.forEach(D=>D.pause())}restart(){this.players.forEach(D=>D.restart())}finish(){this._onFinish(),this.players.forEach(D=>D.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(D=>D.destroy()),this._onDestroyFns.forEach(D=>D()),this._onDestroyFns=[])}reset(){this.players.forEach(D=>D.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(D){const w=D*this.totalTime;this.players.forEach(x=>{const C=x.totalTime?Math.min(1,w/x.totalTime):1;x.setPosition(C)})}getPosition(){const D=this.players.reduce((w,x)=>null===w||x.totalTime>w.totalTime?x:w,null);return null!=D?D.getPosition():0}beforeDestroy(){this.players.forEach(D=>{D.beforeDestroy&&D.beforeDestroy()})}triggerCallback(D){const w="start"==D?this._onStartFns:this._onDoneFns;w.forEach(x=>x()),w.length=0}}const M="!"},5664:(ye,W,p)=>{"use strict";p.d(W,{rt:()=>Ue,s1:()=>J,$s:()=>Y,Qr:()=>Dt,kH:()=>Lt,mK:()=>Tt,Em:()=>ie,tE:()=>xt,qm:()=>qt,Kd:()=>tn,X6:()=>T,yG:()=>U});var n=p(9808),f=p(5e3),_=p(8929),m=p(2654),s=p(591),d=p(1086),u=p(1159),h=p(2868),r=p(13),o=p(2198),i=p(4850),c=p(2986),l=p(1307),g=p(5778),b=p(7625),y=p(3191),S=p(925),I=p(7144);function D(Se,te){return(Se.getAttribute(te)||"").match(/\S+/g)||[]}const w="cdk-describedby-message-container",x="cdk-describedby-message",C="cdk-describedby-host";let L=0;const F=new Map;let re=null,Y=(()=>{class Se{constructor(se){this._document=se}describe(se,Me,Ke){if(!this._canBeDescribed(se,Me))return;const It=X(Me,Ke);"string"!=typeof Me?(ee(Me),F.set(It,{messageElement:Me,referenceCount:0})):F.has(It)||this._createMessageElement(Me,Ke),this._isElementDescribedByMessage(se,It)||this._addMessageReference(se,It)}removeDescription(se,Me,Ke){if(!Me||!this._isElementNode(se))return;const It=X(Me,Ke);if(this._isElementDescribedByMessage(se,It)&&this._removeMessageReference(se,It),"string"==typeof Me){const Qt=F.get(It);Qt&&0===Qt.referenceCount&&this._deleteMessageElement(It)}re&&0===re.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const se=this._document.querySelectorAll(`[${C}]`);for(let Me=0;Me0!=Ke.indexOf(x));se.setAttribute("aria-describedby",Me.join(" "))}_addMessageReference(se,Me){const Ke=F.get(Me);(function(Se,te,se){const Me=D(Se,te);Me.some(Ke=>Ke.trim()==se.trim())||(Me.push(se.trim()),Se.setAttribute(te,Me.join(" ")))})(se,"aria-describedby",Ke.messageElement.id),se.setAttribute(C,""),Ke.referenceCount++}_removeMessageReference(se,Me){const Ke=F.get(Me);Ke.referenceCount--,function(Se,te,se){const Ke=D(Se,te).filter(It=>It!=se.trim());Ke.length?Se.setAttribute(te,Ke.join(" ")):Se.removeAttribute(te)}(se,"aria-describedby",Ke.messageElement.id),se.removeAttribute(C)}_isElementDescribedByMessage(se,Me){const Ke=D(se,"aria-describedby"),It=F.get(Me),Qt=It&&It.messageElement.id;return!!Qt&&-1!=Ke.indexOf(Qt)}_canBeDescribed(se,Me){if(!this._isElementNode(se))return!1;if(Me&&"object"==typeof Me)return!0;const Ke=null==Me?"":`${Me}`.trim(),It=se.getAttribute("aria-label");return!(!Ke||It&&It.trim()===Ke)}_isElementNode(se){return se.nodeType===this._document.ELEMENT_NODE}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275inject(n.DOCUMENT))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function X(Se,te){return"string"==typeof Se?`${te||""}/${Se}`:Se}function ee(Se){Se.id||(Se.id=`${x}-${L++}`)}class ${constructor(te){this._items=te,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new _.xQ,this._typeaheadSubscription=m.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=se=>se.disabled,this._pressedLetters=[],this.tabOut=new _.xQ,this.change=new _.xQ,te instanceof f.QueryList&&te.changes.subscribe(se=>{if(this._activeItem){const Ke=se.toArray().indexOf(this._activeItem);Ke>-1&&Ke!==this._activeItemIndex&&(this._activeItemIndex=Ke)}})}skipPredicate(te){return this._skipPredicateFn=te,this}withWrap(te=!0){return this._wrap=te,this}withVerticalOrientation(te=!0){return this._vertical=te,this}withHorizontalOrientation(te){return this._horizontal=te,this}withAllowedModifierKeys(te){return this._allowedModifierKeys=te,this}withTypeAhead(te=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,h.b)(se=>this._pressedLetters.push(se)),(0,r.b)(te),(0,o.h)(()=>this._pressedLetters.length>0),(0,i.U)(()=>this._pressedLetters.join(""))).subscribe(se=>{const Me=this._getItemsArray();for(let Ke=1;Ke!te[It]||this._allowedModifierKeys.indexOf(It)>-1);switch(se){case u.Mf:return void this.tabOut.next();case u.JH:if(this._vertical&&Ke){this.setNextItemActive();break}return;case u.LH:if(this._vertical&&Ke){this.setPreviousItemActive();break}return;case u.SV:if(this._horizontal&&Ke){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case u.oh:if(this._horizontal&&Ke){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case u.Sd:if(this._homeAndEnd&&Ke){this.setFirstItemActive();break}return;case u.uR:if(this._homeAndEnd&&Ke){this.setLastItemActive();break}return;default:return void((Ke||(0,u.Vb)(te,"shiftKey"))&&(te.key&&1===te.key.length?this._letterKeyStream.next(te.key.toLocaleUpperCase()):(se>=u.A&&se<=u.Z||se>=u.xE&&se<=u.aO)&&this._letterKeyStream.next(String.fromCharCode(se))))}this._pressedLetters=[],te.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(te){const se=this._getItemsArray(),Me="number"==typeof te?te:se.indexOf(te),Ke=se[Me];this._activeItem=null==Ke?null:Ke,this._activeItemIndex=Me}_setActiveItemByDelta(te){this._wrap?this._setActiveInWrapMode(te):this._setActiveInDefaultMode(te)}_setActiveInWrapMode(te){const se=this._getItemsArray();for(let Me=1;Me<=se.length;Me++){const Ke=(this._activeItemIndex+te*Me+se.length)%se.length;if(!this._skipPredicateFn(se[Ke]))return void this.setActiveItem(Ke)}}_setActiveInDefaultMode(te){this._setActiveItemByIndex(this._activeItemIndex+te,te)}_setActiveItemByIndex(te,se){const Me=this._getItemsArray();if(Me[te]){for(;this._skipPredicateFn(Me[te]);)if(!Me[te+=se])return;this.setActiveItem(te)}}_getItemsArray(){return this._items instanceof f.QueryList?this._items.toArray():this._items}}class J extends ${setActiveItem(te){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(te),this.activeItem&&this.activeItem.setActiveStyles()}}class ie extends ${constructor(){super(...arguments),this._origin="program"}setFocusOrigin(te){return this._origin=te,this}setActiveItem(te){super.setActiveItem(te),this.activeItem&&this.activeItem.focus(this._origin)}}let ae=(()=>{class Se{constructor(se){this._platform=se}isDisabled(se){return se.hasAttribute("disabled")}isVisible(se){return function(Se){return!!(Se.offsetWidth||Se.offsetHeight||"function"==typeof Se.getClientRects&&Se.getClientRects().length)}(se)&&"visible"===getComputedStyle(se).visibility}isTabbable(se){if(!this._platform.isBrowser)return!1;const Me=function(Se){try{return Se.frameElement}catch(te){return null}}(function(Se){return Se.ownerDocument&&Se.ownerDocument.defaultView||window}(se));if(Me&&(-1===pt(Me)||!this.isVisible(Me)))return!1;let Ke=se.nodeName.toLowerCase(),It=pt(se);return se.hasAttribute("contenteditable")?-1!==It:!("iframe"===Ke||"object"===Ke||this._platform.WEBKIT&&this._platform.IOS&&!function(Se){let te=Se.nodeName.toLowerCase(),se="input"===te&&Se.type;return"text"===se||"password"===se||"select"===te||"textarea"===te}(se))&&("audio"===Ke?!!se.hasAttribute("controls")&&-1!==It:"video"===Ke?-1!==It&&(null!==It||this._platform.FIREFOX||se.hasAttribute("controls")):se.tabIndex>=0)}isFocusable(se,Me){return function(Se){return!function(Se){return function(Se){return"input"==Se.nodeName.toLowerCase()}(Se)&&"hidden"==Se.type}(Se)&&(function(Se){let te=Se.nodeName.toLowerCase();return"input"===te||"select"===te||"button"===te||"textarea"===te}(Se)||function(Se){return function(Se){return"a"==Se.nodeName.toLowerCase()}(Se)&&Se.hasAttribute("href")}(Se)||Se.hasAttribute("contenteditable")||at(Se))}(se)&&!this.isDisabled(se)&&((null==Me?void 0:Me.ignoreVisibility)||this.isVisible(se))}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275inject(S.t4))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function at(Se){if(!Se.hasAttribute("tabindex")||void 0===Se.tabIndex)return!1;let te=Se.getAttribute("tabindex");return!(!te||isNaN(parseInt(te,10)))}function pt(Se){if(!at(Se))return null;const te=parseInt(Se.getAttribute("tabindex")||"",10);return isNaN(te)?-1:te}class _t{constructor(te,se,Me,Ke,It=!1){this._element=te,this._checker=se,this._ngZone=Me,this._document=Ke,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,It||this.attachAnchors()}get enabled(){return this._enabled}set enabled(te){this._enabled=te,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(te,this._startAnchor),this._toggleAnchorTabIndex(te,this._endAnchor))}destroy(){const te=this._startAnchor,se=this._endAnchor;te&&(te.removeEventListener("focus",this.startAnchorListener),te.remove()),se&&(se.removeEventListener("focus",this.endAnchorListener),se.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(te){return new Promise(se=>{this._executeOnStable(()=>se(this.focusInitialElement(te)))})}focusFirstTabbableElementWhenReady(te){return new Promise(se=>{this._executeOnStable(()=>se(this.focusFirstTabbableElement(te)))})}focusLastTabbableElementWhenReady(te){return new Promise(se=>{this._executeOnStable(()=>se(this.focusLastTabbableElement(te)))})}_getRegionBoundary(te){const se=this._element.querySelectorAll(`[cdk-focus-region-${te}], [cdkFocusRegion${te}], [cdk-focus-${te}]`);return"start"==te?se.length?se[0]:this._getFirstTabbableElement(this._element):se.length?se[se.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(te){const se=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(se){if(!this._checker.isFocusable(se)){const Me=this._getFirstTabbableElement(se);return null==Me||Me.focus(te),!!Me}return se.focus(te),!0}return this.focusFirstTabbableElement(te)}focusFirstTabbableElement(te){const se=this._getRegionBoundary("start");return se&&se.focus(te),!!se}focusLastTabbableElement(te){const se=this._getRegionBoundary("end");return se&&se.focus(te),!!se}hasAttached(){return this._hasAttached}_getFirstTabbableElement(te){if(this._checker.isFocusable(te)&&this._checker.isTabbable(te))return te;const se=te.children;for(let Me=0;Me=0;Me--){const Ke=se[Me].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(se[Me]):null;if(Ke)return Ke}return null}_createAnchor(){const te=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,te),te.classList.add("cdk-visually-hidden"),te.classList.add("cdk-focus-trap-anchor"),te.setAttribute("aria-hidden","true"),te}_toggleAnchorTabIndex(te,se){te?se.setAttribute("tabindex","0"):se.removeAttribute("tabindex")}toggleAnchors(te){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(te,this._startAnchor),this._toggleAnchorTabIndex(te,this._endAnchor))}_executeOnStable(te){this._ngZone.isStable?te():this._ngZone.onStable.pipe((0,c.q)(1)).subscribe(te)}}let At=(()=>{class Se{constructor(se,Me,Ke){this._checker=se,this._ngZone=Me,this._document=Ke}create(se,Me=!1){return new _t(se,this._checker,this._ngZone,this._document,Me)}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275inject(ae),f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(n.DOCUMENT))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Tt=(()=>{class Se{constructor(se,Me,Ke){this._elementRef=se,this._focusTrapFactory=Me,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(se){this.focusTrap.enabled=(0,y.Ig)(se)}get autoCapture(){return this._autoCapture}set autoCapture(se){this._autoCapture=(0,y.Ig)(se)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(se){const Me=se.autoCapture;Me&&!Me.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,S.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(At),f.\u0275\u0275directiveInject(n.DOCUMENT))},Se.\u0275dir=f.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[f.\u0275\u0275NgOnChangesFeature]}),Se})();function T(Se){return 0===Se.offsetX&&0===Se.offsetY}function U(Se){const te=Se.touches&&Se.touches[0]||Se.changedTouches&&Se.changedTouches[0];return!(!te||-1!==te.identifier||null!=te.radiusX&&1!==te.radiusX||null!=te.radiusY&&1!==te.radiusY)}const Z=new f.InjectionToken("cdk-input-modality-detector-options"),_e={ignoreKeys:[u.zL,u.jx,u.b2,u.MW,u.JU]},$e=(0,S.i$)({passive:!0,capture:!0});let st=(()=>{class Se{constructor(se,Me,Ke,It){this._platform=se,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=Qt=>{var cn,An;(null===(An=null===(cn=this._options)||void 0===cn?void 0:cn.ignoreKeys)||void 0===An?void 0:An.some(lt=>lt===Qt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,S.sA)(Qt))},this._onMousedown=Qt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(T(Qt)?"keyboard":"mouse"),this._mostRecentTarget=(0,S.sA)(Qt))},this._onTouchstart=Qt=>{U(Qt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,S.sA)(Qt))},this._options=Object.assign(Object.assign({},_e),It),this.modalityDetected=this._modality.pipe((0,l.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),se.isBrowser&&Me.runOutsideAngular(()=>{Ke.addEventListener("keydown",this._onKeydown,$e),Ke.addEventListener("mousedown",this._onMousedown,$e),Ke.addEventListener("touchstart",this._onTouchstart,$e)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,$e),document.removeEventListener("mousedown",this._onMousedown,$e),document.removeEventListener("touchstart",this._onTouchstart,$e))}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275inject(S.t4),f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(n.DOCUMENT),f.\u0275\u0275inject(Z,8))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ut=new f.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Xt=new f.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let tn=(()=>{class Se{constructor(se,Me,Ke,It){this._ngZone=Me,this._defaultOptions=It,this._document=Ke,this._liveElement=se||this._createLiveElement()}announce(se,...Me){const Ke=this._defaultOptions;let It,Qt;return 1===Me.length&&"number"==typeof Me[0]?Qt=Me[0]:[It,Qt]=Me,this.clear(),clearTimeout(this._previousTimeout),It||(It=Ke&&Ke.politeness?Ke.politeness:"polite"),null==Qt&&Ke&&(Qt=Ke.duration),this._liveElement.setAttribute("aria-live",It),this._ngZone.runOutsideAngular(()=>new Promise(cn=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=se,cn(),"number"==typeof Qt&&(this._previousTimeout=setTimeout(()=>this.clear(),Qt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var se;clearTimeout(this._previousTimeout),null===(se=this._liveElement)||void 0===se||se.remove(),this._liveElement=null}_createLiveElement(){const se="cdk-live-announcer-element",Me=this._document.getElementsByClassName(se),Ke=this._document.createElement("div");for(let It=0;It{class Se{constructor(se,Me,Ke,It){this._elementRef=se,this._liveAnnouncer=Me,this._contentObserver=Ke,this._ngZone=It,this._politeness="polite"}get politeness(){return this._politeness}set politeness(se){this._politeness="off"===se||"assertive"===se?se:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const Me=this._elementRef.nativeElement.textContent;Me!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(Me,this._politeness),this._previousAnnouncedText=Me)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(tn),f.\u0275\u0275directiveInject(I.yq),f.\u0275\u0275directiveInject(f.NgZone))},Se.\u0275dir=f.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Se})();const Kt=new f.InjectionToken("cdk-focus-monitor-default-options"),tt=(0,S.i$)({passive:!0,capture:!0});let xt=(()=>{class Se{constructor(se,Me,Ke,It,Qt){this._ngZone=se,this._platform=Me,this._inputModalityDetector=Ke,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new _.xQ,this._rootNodeFocusAndBlurListener=cn=>{const An=(0,S.sA)(cn),lt="focus"===cn.type?this._onFocus:this._onBlur;for(let ct=An;ct;ct=ct.parentElement)lt.call(this,cn,ct)},this._document=It,this._detectionMode=(null==Qt?void 0:Qt.detectionMode)||0}monitor(se,Me=!1){const Ke=(0,y.fI)(se);if(!this._platform.isBrowser||1!==Ke.nodeType)return(0,d.of)(null);const It=(0,S.kV)(Ke)||this._getDocument(),Qt=this._elementInfo.get(Ke);if(Qt)return Me&&(Qt.checkChildren=!0),Qt.subject;const cn={checkChildren:Me,subject:new _.xQ,rootNode:It};return this._elementInfo.set(Ke,cn),this._registerGlobalListeners(cn),cn.subject}stopMonitoring(se){const Me=(0,y.fI)(se),Ke=this._elementInfo.get(Me);Ke&&(Ke.subject.complete(),this._setClasses(Me),this._elementInfo.delete(Me),this._removeGlobalListeners(Ke))}focusVia(se,Me,Ke){const It=(0,y.fI)(se);It===this._getDocument().activeElement?this._getClosestElementsInfo(It).forEach(([cn,An])=>this._originChanged(cn,Me,An)):(this._setOrigin(Me),"function"==typeof It.focus&&It.focus(Ke))}ngOnDestroy(){this._elementInfo.forEach((se,Me)=>this.stopMonitoring(Me))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(se){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(se)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(se){return 1===this._detectionMode||!!(null==se?void 0:se.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(se,Me){se.classList.toggle("cdk-focused",!!Me),se.classList.toggle("cdk-touch-focused","touch"===Me),se.classList.toggle("cdk-keyboard-focused","keyboard"===Me),se.classList.toggle("cdk-mouse-focused","mouse"===Me),se.classList.toggle("cdk-program-focused","program"===Me)}_setOrigin(se,Me=!1){this._ngZone.runOutsideAngular(()=>{this._origin=se,this._originFromTouchInteraction="touch"===se&&Me,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(se,Me){const Ke=this._elementInfo.get(Me),It=(0,S.sA)(se);!Ke||!Ke.checkChildren&&Me!==It||this._originChanged(Me,this._getFocusOrigin(It),Ke)}_onBlur(se,Me){const Ke=this._elementInfo.get(Me);!Ke||Ke.checkChildren&&se.relatedTarget instanceof Node&&Me.contains(se.relatedTarget)||(this._setClasses(Me),this._emitOrigin(Ke.subject,null))}_emitOrigin(se,Me){this._ngZone.run(()=>se.next(Me))}_registerGlobalListeners(se){if(!this._platform.isBrowser)return;const Me=se.rootNode,Ke=this._rootNodeFocusListenerCount.get(Me)||0;Ke||this._ngZone.runOutsideAngular(()=>{Me.addEventListener("focus",this._rootNodeFocusAndBlurListener,tt),Me.addEventListener("blur",this._rootNodeFocusAndBlurListener,tt)}),this._rootNodeFocusListenerCount.set(Me,Ke+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,b.R)(this._stopInputModalityDetector)).subscribe(It=>{this._setOrigin(It,!0)}))}_removeGlobalListeners(se){const Me=se.rootNode;if(this._rootNodeFocusListenerCount.has(Me)){const Ke=this._rootNodeFocusListenerCount.get(Me);Ke>1?this._rootNodeFocusListenerCount.set(Me,Ke-1):(Me.removeEventListener("focus",this._rootNodeFocusAndBlurListener,tt),Me.removeEventListener("blur",this._rootNodeFocusAndBlurListener,tt),this._rootNodeFocusListenerCount.delete(Me))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(se,Me,Ke){this._setClasses(se,Me),this._emitOrigin(Ke.subject,Me),this._lastFocusOrigin=Me}_getClosestElementsInfo(se){const Me=[];return this._elementInfo.forEach((Ke,It)=>{(It===se||Ke.checkChildren&&It.contains(se))&&Me.push([It,Ke])}),Me}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(S.t4),f.\u0275\u0275inject(st),f.\u0275\u0275inject(n.DOCUMENT,8),f.\u0275\u0275inject(Kt,8))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Lt=(()=>{class Se{constructor(se,Me){this._elementRef=se,this._focusMonitor=Me,this.cdkFocusChange=new f.EventEmitter}ngAfterViewInit(){const se=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(se,1===se.nodeType&&se.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Me=>this.cdkFocusChange.emit(Me))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(xt))},Se.\u0275dir=f.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Se})();const Qe="cdk-high-contrast-black-on-white",gt="cdk-high-contrast-white-on-black",Vt="cdk-high-contrast-active";let qt=(()=>{class Se{constructor(se,Me){this._platform=se,this._document=Me}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const se=this._document.createElement("div");se.style.backgroundColor="rgb(1,2,3)",se.style.position="absolute",this._document.body.appendChild(se);const Me=this._document.defaultView||window,Ke=Me&&Me.getComputedStyle?Me.getComputedStyle(se):null,It=(Ke&&Ke.backgroundColor||"").replace(/ /g,"");switch(se.remove(),It){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const se=this._document.body.classList;se.remove(Vt),se.remove(Qe),se.remove(gt),this._hasCheckedHighContrastMode=!0;const Me=this.getHighContrastMode();1===Me?(se.add(Vt),se.add(Qe)):2===Me&&(se.add(Vt),se.add(gt))}}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275inject(S.t4),f.\u0275\u0275inject(n.DOCUMENT))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Ue=(()=>{class Se{constructor(se){se._applyBodyHighContrastModeCssClasses()}}return Se.\u0275fac=function(se){return new(se||Se)(f.\u0275\u0275inject(qt))},Se.\u0275mod=f.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=f.\u0275\u0275defineInjector({imports:[[S.ud,I.Q8]]}),Se})()},226:(ye,W,p)=>{"use strict";p.d(W,{vT:()=>r,Is:()=>u});var n=p(5e3),f=p(9808);const _=new n.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.inject)(f.DOCUMENT)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let u=(()=>{class o{constructor(c){if(this.value="ltr",this.change=new n.EventEmitter,c){const g=c.documentElement?c.documentElement.dir:null;this.value=function(o){const i=(null==o?void 0:o.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((c.body?c.body.dir:null)||g||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(c){return new(c||o)(n.\u0275\u0275inject(_,8))},o.\u0275prov=n.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),r=(()=>{class o{}return o.\u0275fac=function(c){return new(c||o)},o.\u0275mod=n.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=n.\u0275\u0275defineInjector({}),o})()},3191:(ye,W,p)=>{"use strict";p.d(W,{t6:()=>m,Eq:()=>s,Ig:()=>f,HM:()=>d,fI:()=>u,su:()=>_,du:()=>h});var n=p(5e3);function f(r){return null!=r&&"false"!=`${r}`}function _(r,o=0){return m(r)?Number(r):o}function m(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}function s(r){return Array.isArray(r)?r:[r]}function d(r){return null==r?"":"string"==typeof r?r:`${r}px`}function u(r){return r instanceof n.ElementRef?r.nativeElement:r}function h(r,o=/\s+/){const i=[];if(null!=r){const c=Array.isArray(r)?r:`${r}`.split(o);for(const l of c){const g=`${l}`.trim();g&&i.push(g)}}return i}},449:(ye,W,p)=>{"use strict";p.d(W,{o2:()=>_,Ov:()=>h,A8:()=>o,yy:()=>d,eX:()=>u,k:()=>i,Z9:()=>m});var n=p(8929),f=p(5e3);class _{}function m(c){return c&&"function"==typeof c.connect}class d{applyChanges(l,g,b,y,S){l.forEachOperation((I,R,M)=>{let A,D;if(null==I.previousIndex){const w=b(I,R,M);A=g.createEmbeddedView(w.templateRef,w.context,w.index),D=1}else null==M?(g.remove(R),D=3):(A=g.get(R),g.move(A,M),D=2);S&&S({context:null==A?void 0:A.context,operation:D,record:I})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(l,g,b,y,S){l.forEachOperation((I,R,M)=>{let A,D;null==I.previousIndex?(A=this._insertView(()=>b(I,R,M),M,g,y(I)),D=A?1:0):null==M?(this._detachAndCacheView(R,g),D=3):(A=this._moveView(R,M,g,y(I)),D=2),S&&S({context:null==A?void 0:A.context,operation:D,record:I})})}detach(){for(const l of this._viewCache)l.destroy();this._viewCache=[]}_insertView(l,g,b,y){const S=this._insertViewFromCache(g,b);if(S)return void(S.context.$implicit=y);const I=l();return b.createEmbeddedView(I.templateRef,I.context,I.index)}_detachAndCacheView(l,g){const b=g.detach(l);this._maybeCacheView(b,g)}_moveView(l,g,b,y){const S=b.get(l);return b.move(S,g),S.context.$implicit=y,S}_maybeCacheView(l,g){if(this._viewCache.lengththis._markSelected(y)):this._markSelected(g[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...l){this._verifyValueAssignment(l),l.forEach(g=>this._markSelected(g)),this._emitChangeEvent()}deselect(...l){this._verifyValueAssignment(l),l.forEach(g=>this._unmarkSelected(g)),this._emitChangeEvent()}toggle(l){this.isSelected(l)?this.deselect(l):this.select(l)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(l){return this._selection.has(l)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(l){this._multiple&&this.selected&&this._selected.sort(l)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(l){this.isSelected(l)||(this._multiple||this._unmarkAll(),this._selection.add(l),this._emitChanges&&this._selectedToEmit.push(l))}_unmarkSelected(l){this.isSelected(l)&&(this._selection.delete(l),this._emitChanges&&this._deselectedToEmit.push(l))}_unmarkAll(){this.isEmpty()||this._selection.forEach(l=>this._unmarkSelected(l))}_verifyValueAssignment(l){}}let o=(()=>{class c{constructor(){this._listeners=[]}notify(g,b){for(let y of this._listeners)y(g,b)}listen(g){return this._listeners.push(g),()=>{this._listeners=this._listeners.filter(b=>g!==b)}}ngOnDestroy(){this._listeners=[]}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=f.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const i=new f.InjectionToken("_ViewRepeater")},1159:(ye,W,p)=>{"use strict";p.d(W,{A:()=>We,zL:()=>h,ZH:()=>f,jx:()=>u,JH:()=>M,uR:()=>b,K5:()=>s,hY:()=>i,Sd:()=>y,oh:()=>S,b2:()=>ti,MW:()=>St,aO:()=>ie,VM:()=>g,Ku:()=>l,SV:()=>R,JU:()=>d,L_:()=>c,Mf:()=>_,LH:()=>I,Z:()=>ut,xE:()=>C,Vb:()=>jn});const f=8,_=9,s=13,d=16,u=17,h=18,i=27,c=32,l=33,g=34,b=35,y=36,S=37,I=38,R=39,M=40,C=48,ie=57,We=65,ut=90,St=91,ti=224;function jn(Qn,...kn){return kn.length?kn.some(Mi=>Qn[Mi]):Qn.altKey||Qn.shiftKey||Qn.ctrlKey||Qn.metaKey}},7144:(ye,W,p)=>{"use strict";p.d(W,{wD:()=>h,yq:()=>u,Q8:()=>r});var n=p(3191),f=p(5e3),_=p(6498),m=p(8929),s=p(13);let d=(()=>{class o{create(c){return"undefined"==typeof MutationObserver?null:new MutationObserver(c)}}return o.\u0275fac=function(c){return new(c||o)},o.\u0275prov=f.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),u=(()=>{class o{constructor(c){this._mutationObserverFactory=c,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((c,l)=>this._cleanupObserver(l))}observe(c){const l=(0,n.fI)(c);return new _.y(g=>{const y=this._observeElement(l).subscribe(g);return()=>{y.unsubscribe(),this._unobserveElement(l)}})}_observeElement(c){if(this._observedElements.has(c))this._observedElements.get(c).count++;else{const l=new m.xQ,g=this._mutationObserverFactory.create(b=>l.next(b));g&&g.observe(c,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(c,{observer:g,stream:l,count:1})}return this._observedElements.get(c).stream}_unobserveElement(c){this._observedElements.has(c)&&(this._observedElements.get(c).count--,this._observedElements.get(c).count||this._cleanupObserver(c))}_cleanupObserver(c){if(this._observedElements.has(c)){const{observer:l,stream:g}=this._observedElements.get(c);l&&l.disconnect(),g.complete(),this._observedElements.delete(c)}}}return o.\u0275fac=function(c){return new(c||o)(f.\u0275\u0275inject(d))},o.\u0275prov=f.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),h=(()=>{class o{constructor(c,l,g){this._contentObserver=c,this._elementRef=l,this._ngZone=g,this.event=new f.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(c){this._disabled=(0,n.Ig)(c),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(c){this._debounce=(0,n.su)(c),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const c=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?c.pipe((0,s.b)(this.debounce)):c).subscribe(this.event)})}_unsubscribe(){var c;null===(c=this._currentSubscription)||void 0===c||c.unsubscribe()}}return o.\u0275fac=function(c){return new(c||o)(f.\u0275\u0275directiveInject(u),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(f.NgZone))},o.\u0275dir=f.\u0275\u0275defineDirective({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),r=(()=>{class o{}return o.\u0275fac=function(c){return new(c||o)},o.\u0275mod=f.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=f.\u0275\u0275defineInjector({providers:[d]}),o})()},1314:(ye,W,p)=>{"use strict";p.d(W,{pI:()=>_t,xu:()=>ot,_G:()=>ie,aV:()=>pt,X_:()=>x,U8:()=>Bt});var n=p(9071),f=p(9808),_=p(5e3),m=p(3191),s=p(925),d=p(226),u=p(7429),h=p(8929),r=p(2654),o=p(6787),i=p(2986),c=p(7625),l=p(4290),g=p(1159);const b=(0,s.Mq)();class y{constructor(fe,H){this._viewportRuler=fe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=H}attach(){}enable(){if(this._canBeEnabled()){const fe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=fe.style.left||"",this._previousHTMLStyles.top=fe.style.top||"",fe.style.left=(0,m.HM)(-this._previousScrollPosition.left),fe.style.top=(0,m.HM)(-this._previousScrollPosition.top),fe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const fe=this._document.documentElement,T=fe.style,U=this._document.body.style,Z=T.scrollBehavior||"",_e=U.scrollBehavior||"";this._isEnabled=!1,T.left=this._previousHTMLStyles.left,T.top=this._previousHTMLStyles.top,fe.classList.remove("cdk-global-scrollblock"),b&&(T.scrollBehavior=U.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(T.scrollBehavior=Z,U.scrollBehavior=_e)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const H=this._document.body,T=this._viewportRuler.getViewportSize();return H.scrollHeight>T.height||H.scrollWidth>T.width}}class I{constructor(fe,H,T,U){this._scrollDispatcher=fe,this._ngZone=H,this._viewportRuler=T,this._config=U,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(fe){this._overlayRef=fe}enable(){if(this._scrollSubscription)return;const fe=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=fe.subscribe(()=>{const H=this._viewportRuler.getViewportScrollPosition().top;Math.abs(H-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=fe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class R{enable(){}disable(){}attach(){}}function M(Ee,fe){return fe.some(H=>Ee.bottomH.bottom||Ee.rightH.right)}function A(Ee,fe){return fe.some(H=>Ee.topH.bottom||Ee.leftH.right)}class D{constructor(fe,H,T,U){this._scrollDispatcher=fe,this._viewportRuler=H,this._ngZone=T,this._config=U,this._scrollSubscription=null}attach(fe){this._overlayRef=fe}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const H=this._overlayRef.overlayElement.getBoundingClientRect(),{width:T,height:U}=this._viewportRuler.getViewportSize();M(H,[{width:T,height:U,bottom:U,right:T,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let w=(()=>{class Ee{constructor(H,T,U,Z){this._scrollDispatcher=H,this._viewportRuler=T,this._ngZone=U,this.noop=()=>new R,this.close=_e=>new I(this._scrollDispatcher,this._ngZone,this._viewportRuler,_e),this.block=()=>new y(this._viewportRuler,this._document),this.reposition=_e=>new D(this._scrollDispatcher,this._viewportRuler,this._ngZone,_e),this._document=Z}}return Ee.\u0275fac=function(H){return new(H||Ee)(_.\u0275\u0275inject(n.mF),_.\u0275\u0275inject(n.rL),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(f.DOCUMENT))},Ee.\u0275prov=_.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();class x{constructor(fe){if(this.scrollStrategy=new R,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,fe){const H=Object.keys(fe);for(const T of H)void 0!==fe[T]&&(this[T]=fe[T])}}}class F{constructor(fe,H){this.connectionPair=fe,this.scrollableViewProperties=H}}class X{constructor(fe,H,T,U,Z,_e,Be,$e,st){this._portalOutlet=fe,this._host=H,this._pane=T,this._config=U,this._ngZone=Z,this._keyboardDispatcher=_e,this._document=Be,this._location=$e,this._outsideClickDispatcher=st,this._backdropElement=null,this._backdropClick=new h.xQ,this._attachments=new h.xQ,this._detachments=new h.xQ,this._locationChanges=r.w.EMPTY,this._backdropClickHandler=ut=>this._backdropClick.next(ut),this._keydownEvents=new h.xQ,this._outsidePointerEvents=new h.xQ,U.scrollStrategy&&(this._scrollStrategy=U.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=U.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(fe){let H=this._portalOutlet.attach(fe);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,i.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),H}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const fe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),fe}dispose(){var fe;const H=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(fe=this._host)||void 0===fe||fe.remove(),this._previousHostParent=this._pane=this._host=null,H&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(fe){fe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=fe,this.hasAttached()&&(fe.attach(this),this.updatePosition()))}updateSize(fe){this._config=Object.assign(Object.assign({},this._config),fe),this._updateElementSize()}setDirection(fe){this._config=Object.assign(Object.assign({},this._config),{direction:fe}),this._updateElementDirection()}addPanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!0)}removePanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!1)}getDirection(){const fe=this._config.direction;return fe?"string"==typeof fe?fe:fe.value:"ltr"}updateScrollStrategy(fe){fe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=fe,this.hasAttached()&&(fe.attach(this),fe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const fe=this._pane.style;fe.width=(0,m.HM)(this._config.width),fe.height=(0,m.HM)(this._config.height),fe.minWidth=(0,m.HM)(this._config.minWidth),fe.minHeight=(0,m.HM)(this._config.minHeight),fe.maxWidth=(0,m.HM)(this._config.maxWidth),fe.maxHeight=(0,m.HM)(this._config.maxHeight)}_togglePointerEvents(fe){this._pane.style.pointerEvents=fe?"":"none"}_attachBackdrop(){const fe="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(fe)})}):this._backdropElement.classList.add(fe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const fe=this._backdropElement;if(!fe)return;let H;const T=()=>{fe&&(fe.removeEventListener("click",this._backdropClickHandler),fe.removeEventListener("transitionend",T),this._disposeBackdrop(fe)),this._config.backdropClass&&this._toggleClasses(fe,this._config.backdropClass,!1),clearTimeout(H)};fe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{fe.addEventListener("transitionend",T)}),fe.style.pointerEvents="none",H=this._ngZone.runOutsideAngular(()=>setTimeout(T,500))}_toggleClasses(fe,H,T){const U=(0,m.Eq)(H||[]).filter(Z=>!!Z);U.length&&(T?fe.classList.add(...U):fe.classList.remove(...U))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const fe=this._ngZone.onStable.pipe((0,c.R)((0,o.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),fe.unsubscribe())})})}_disposeScrollStrategy(){const fe=this._scrollStrategy;fe&&(fe.disable(),fe.detach&&fe.detach())}_disposeBackdrop(fe){fe&&(fe.remove(),this._backdropElement===fe&&(this._backdropElement=null))}}let ee=(()=>{class Ee{constructor(H,T){this._platform=T,this._document=H}ngOnDestroy(){var H;null===(H=this._containerElement)||void 0===H||H.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const H="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const U=this._document.querySelectorAll(`.${H}[platform="server"], .${H}[platform="test"]`);for(let Z=0;Z{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const fe=this._originRect,H=this._overlayRect,T=this._viewportRect,U=[];let Z;for(let _e of this._preferredPositions){let Be=this._getOriginPoint(fe,_e),$e=this._getOverlayPoint(Be,H,_e),st=this._getOverlayFit($e,H,T,_e);if(st.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(_e,Be);this._canFitWithFlexibleDimensions(st,$e,T)?U.push({position:_e,origin:Be,overlayRect:H,boundingBoxRect:this._calculateBoundingBoxRect(Be,_e)}):(!Z||Z.overlayFit.visibleAreaBe&&(Be=st,_e=$e)}return this._isPushed=!1,void this._applyPosition(_e.position,_e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Z.position,Z.originPoint);this._applyPosition(Z.position,Z.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ne(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove($),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const fe=this._lastPosition||this._preferredPositions[0],H=this._getOriginPoint(this._originRect,fe);this._applyPosition(fe,H)}}withScrollableContainers(fe){return this._scrollables=fe,this}withPositions(fe){return this._preferredPositions=fe,-1===fe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(fe){return this._viewportMargin=fe,this}withFlexibleDimensions(fe=!0){return this._hasFlexibleDimensions=fe,this}withGrowAfterOpen(fe=!0){return this._growAfterOpen=fe,this}withPush(fe=!0){return this._canPush=fe,this}withLockedPosition(fe=!0){return this._positionLocked=fe,this}setOrigin(fe){return this._origin=fe,this}withDefaultOffsetX(fe){return this._offsetX=fe,this}withDefaultOffsetY(fe){return this._offsetY=fe,this}withTransformOriginOn(fe){return this._transformOriginSelector=fe,this}_getOriginPoint(fe,H){let T,U;if("center"==H.originX)T=fe.left+fe.width/2;else{const Z=this._isRtl()?fe.right:fe.left,_e=this._isRtl()?fe.left:fe.right;T="start"==H.originX?Z:_e}return U="center"==H.originY?fe.top+fe.height/2:"top"==H.originY?fe.top:fe.bottom,{x:T,y:U}}_getOverlayPoint(fe,H,T){let U,Z;return U="center"==T.overlayX?-H.width/2:"start"===T.overlayX?this._isRtl()?-H.width:0:this._isRtl()?0:-H.width,Z="center"==T.overlayY?-H.height/2:"top"==T.overlayY?0:-H.height,{x:fe.x+U,y:fe.y+Z}}_getOverlayFit(fe,H,T,U){const Z=xe(H);let{x:_e,y:Be}=fe,$e=this._getOffset(U,"x"),st=this._getOffset(U,"y");$e&&(_e+=$e),st&&(Be+=st);let Xt=0-Be,tn=Be+Z.height-T.height,Dt=this._subtractOverflows(Z.width,0-_e,_e+Z.width-T.width),Kt=this._subtractOverflows(Z.height,Xt,tn),tt=Dt*Kt;return{visibleArea:tt,isCompletelyWithinViewport:Z.width*Z.height===tt,fitsInViewportVertically:Kt===Z.height,fitsInViewportHorizontally:Dt==Z.width}}_canFitWithFlexibleDimensions(fe,H,T){if(this._hasFlexibleDimensions){const U=T.bottom-H.y,Z=T.right-H.x,_e=ae(this._overlayRef.getConfig().minHeight),Be=ae(this._overlayRef.getConfig().minWidth),st=fe.fitsInViewportHorizontally||null!=Be&&Be<=Z;return(fe.fitsInViewportVertically||null!=_e&&_e<=U)&&st}return!1}_pushOverlayOnScreen(fe,H,T){if(this._previousPushAmount&&this._positionLocked)return{x:fe.x+this._previousPushAmount.x,y:fe.y+this._previousPushAmount.y};const U=xe(H),Z=this._viewportRect,_e=Math.max(fe.x+U.width-Z.width,0),Be=Math.max(fe.y+U.height-Z.height,0),$e=Math.max(Z.top-T.top-fe.y,0),st=Math.max(Z.left-T.left-fe.x,0);let ut=0,St=0;return ut=U.width<=Z.width?st||-_e:fe.xDt&&!this._isInitialRender&&!this._growAfterOpen&&(_e=fe.y-Dt/2)}if("end"===H.overlayX&&!U||"start"===H.overlayX&&U)Xt=T.width-fe.x+this._viewportMargin,ut=fe.x-this._viewportMargin;else if("start"===H.overlayX&&!U||"end"===H.overlayX&&U)St=fe.x,ut=T.right-fe.x;else{const tn=Math.min(T.right-fe.x+T.left,fe.x),Dt=this._lastBoundingBoxSize.width;ut=2*tn,St=fe.x-tn,ut>Dt&&!this._isInitialRender&&!this._growAfterOpen&&(St=fe.x-Dt/2)}return{top:_e,left:St,bottom:Be,right:Xt,width:ut,height:Z}}_setBoundingBoxStyles(fe,H){const T=this._calculateBoundingBoxRect(fe,H);!this._isInitialRender&&!this._growAfterOpen&&(T.height=Math.min(T.height,this._lastBoundingBoxSize.height),T.width=Math.min(T.width,this._lastBoundingBoxSize.width));const U={};if(this._hasExactPosition())U.top=U.left="0",U.bottom=U.right=U.maxHeight=U.maxWidth="",U.width=U.height="100%";else{const Z=this._overlayRef.getConfig().maxHeight,_e=this._overlayRef.getConfig().maxWidth;U.height=(0,m.HM)(T.height),U.top=(0,m.HM)(T.top),U.bottom=(0,m.HM)(T.bottom),U.width=(0,m.HM)(T.width),U.left=(0,m.HM)(T.left),U.right=(0,m.HM)(T.right),U.alignItems="center"===H.overlayX?"center":"end"===H.overlayX?"flex-end":"flex-start",U.justifyContent="center"===H.overlayY?"center":"bottom"===H.overlayY?"flex-end":"flex-start",Z&&(U.maxHeight=(0,m.HM)(Z)),_e&&(U.maxWidth=(0,m.HM)(_e))}this._lastBoundingBoxSize=T,ne(this._boundingBox.style,U)}_resetBoundingBoxStyles(){ne(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ne(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(fe,H){const T={},U=this._hasExactPosition(),Z=this._hasFlexibleDimensions,_e=this._overlayRef.getConfig();if(U){const ut=this._viewportRuler.getViewportScrollPosition();ne(T,this._getExactOverlayY(H,fe,ut)),ne(T,this._getExactOverlayX(H,fe,ut))}else T.position="static";let Be="",$e=this._getOffset(H,"x"),st=this._getOffset(H,"y");$e&&(Be+=`translateX(${$e}px) `),st&&(Be+=`translateY(${st}px)`),T.transform=Be.trim(),_e.maxHeight&&(U?T.maxHeight=(0,m.HM)(_e.maxHeight):Z&&(T.maxHeight="")),_e.maxWidth&&(U?T.maxWidth=(0,m.HM)(_e.maxWidth):Z&&(T.maxWidth="")),ne(this._pane.style,T)}_getExactOverlayY(fe,H,T){let U={top:"",bottom:""},Z=this._getOverlayPoint(H,this._overlayRect,fe);this._isPushed&&(Z=this._pushOverlayOnScreen(Z,this._overlayRect,T));let _e=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Z.y-=_e,"bottom"===fe.overlayY?U.bottom=this._document.documentElement.clientHeight-(Z.y+this._overlayRect.height)+"px":U.top=(0,m.HM)(Z.y),U}_getExactOverlayX(fe,H,T){let _e,U={left:"",right:""},Z=this._getOverlayPoint(H,this._overlayRect,fe);return this._isPushed&&(Z=this._pushOverlayOnScreen(Z,this._overlayRect,T)),_e=this._isRtl()?"end"===fe.overlayX?"left":"right":"end"===fe.overlayX?"right":"left","right"===_e?U.right=this._document.documentElement.clientWidth-(Z.x+this._overlayRect.width)+"px":U.left=(0,m.HM)(Z.x),U}_getScrollVisibility(){const fe=this._getOriginRect(),H=this._pane.getBoundingClientRect(),T=this._scrollables.map(U=>U.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:A(fe,T),isOriginOutsideView:M(fe,T),isOverlayClipped:A(H,T),isOverlayOutsideView:M(H,T)}}_subtractOverflows(fe,...H){return H.reduce((T,U)=>T-Math.max(U,0),fe)}_getNarrowedViewportRect(){const fe=this._document.documentElement.clientWidth,H=this._document.documentElement.clientHeight,T=this._viewportRuler.getViewportScrollPosition();return{top:T.top+this._viewportMargin,left:T.left+this._viewportMargin,right:T.left+fe-this._viewportMargin,bottom:T.top+H-this._viewportMargin,width:fe-2*this._viewportMargin,height:H-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(fe,H){return"x"===H?null==fe.offsetX?this._offsetX:fe.offsetX:null==fe.offsetY?this._offsetY:fe.offsetY}_validatePositions(){}_addPanelClasses(fe){this._pane&&(0,m.Eq)(fe).forEach(H=>{""!==H&&-1===this._appliedPanelClasses.indexOf(H)&&(this._appliedPanelClasses.push(H),this._pane.classList.add(H))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(fe=>{this._pane.classList.remove(fe)}),this._appliedPanelClasses=[])}_getOriginRect(){const fe=this._origin;if(fe instanceof _.ElementRef)return fe.nativeElement.getBoundingClientRect();if(fe instanceof Element)return fe.getBoundingClientRect();const H=fe.width||0,T=fe.height||0;return{top:fe.y,bottom:fe.y+T,left:fe.x,right:fe.x+H,height:T,width:H}}}function ne(Ee,fe){for(let H in fe)fe.hasOwnProperty(H)&&(Ee[H]=fe[H]);return Ee}function ae(Ee){if("number"!=typeof Ee&&null!=Ee){const[fe,H]=Ee.split(J);return H&&"px"!==H?null:parseFloat(fe)}return Ee||null}function xe(Ee){return{top:Math.floor(Ee.top),right:Math.floor(Ee.right),bottom:Math.floor(Ee.bottom),left:Math.floor(Ee.left),width:Math.floor(Ee.width),height:Math.floor(Ee.height)}}const Ie="cdk-global-overlay-wrapper";class We{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(fe){const H=fe.getConfig();this._overlayRef=fe,this._width&&!H.width&&fe.updateSize({width:this._width}),this._height&&!H.height&&fe.updateSize({height:this._height}),fe.hostElement.classList.add(Ie),this._isDisposed=!1}top(fe=""){return this._bottomOffset="",this._topOffset=fe,this._alignItems="flex-start",this}left(fe=""){return this._rightOffset="",this._leftOffset=fe,this._justifyContent="flex-start",this}bottom(fe=""){return this._topOffset="",this._bottomOffset=fe,this._alignItems="flex-end",this}right(fe=""){return this._leftOffset="",this._rightOffset=fe,this._justifyContent="flex-end",this}width(fe=""){return this._overlayRef?this._overlayRef.updateSize({width:fe}):this._width=fe,this}height(fe=""){return this._overlayRef?this._overlayRef.updateSize({height:fe}):this._height=fe,this}centerHorizontally(fe=""){return this.left(fe),this._justifyContent="center",this}centerVertically(fe=""){return this.top(fe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const fe=this._overlayRef.overlayElement.style,H=this._overlayRef.hostElement.style,T=this._overlayRef.getConfig(),{width:U,height:Z,maxWidth:_e,maxHeight:Be}=T,$e=!("100%"!==U&&"100vw"!==U||_e&&"100%"!==_e&&"100vw"!==_e),st=!("100%"!==Z&&"100vh"!==Z||Be&&"100%"!==Be&&"100vh"!==Be);fe.position=this._cssPosition,fe.marginLeft=$e?"0":this._leftOffset,fe.marginTop=st?"0":this._topOffset,fe.marginBottom=this._bottomOffset,fe.marginRight=this._rightOffset,$e?H.justifyContent="flex-start":"center"===this._justifyContent?H.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?H.justifyContent="flex-end":"flex-end"===this._justifyContent&&(H.justifyContent="flex-start"):H.justifyContent=this._justifyContent,H.alignItems=st?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const fe=this._overlayRef.overlayElement.style,H=this._overlayRef.hostElement,T=H.style;H.classList.remove(Ie),T.justifyContent=T.alignItems=fe.marginTop=fe.marginBottom=fe.marginLeft=fe.marginRight=fe.position="",this._overlayRef=null,this._isDisposed=!0}}let Xe=(()=>{class Ee{constructor(H,T,U,Z){this._viewportRuler=H,this._document=T,this._platform=U,this._overlayContainer=Z}global(){return new We}flexibleConnectedTo(H){return new ie(H,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ee.\u0275fac=function(H){return new(H||Ee)(_.\u0275\u0275inject(n.rL),_.\u0275\u0275inject(f.DOCUMENT),_.\u0275\u0275inject(s.t4),_.\u0275\u0275inject(ee))},Ee.\u0275prov=_.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),ft=(()=>{class Ee{constructor(H){this._attachedOverlays=[],this._document=H}ngOnDestroy(){this.detach()}add(H){this.remove(H),this._attachedOverlays.push(H)}remove(H){const T=this._attachedOverlays.indexOf(H);T>-1&&this._attachedOverlays.splice(T,1),0===this._attachedOverlays.length&&this.detach()}}return Ee.\u0275fac=function(H){return new(H||Ee)(_.\u0275\u0275inject(f.DOCUMENT))},Ee.\u0275prov=_.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Pe=(()=>{class Ee extends ft{constructor(H){super(H),this._keydownListener=T=>{const U=this._attachedOverlays;for(let Z=U.length-1;Z>-1;Z--)if(U[Z]._keydownEvents.observers.length>0){U[Z]._keydownEvents.next(T);break}}}add(H){super.add(H),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ee.\u0275fac=function(H){return new(H||Ee)(_.\u0275\u0275inject(f.DOCUMENT))},Ee.\u0275prov=_.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),et=(()=>{class Ee extends ft{constructor(H,T){super(H),this._platform=T,this._cursorStyleIsSet=!1,this._pointerDownListener=U=>{this._pointerDownEventTarget=(0,s.sA)(U)},this._clickListener=U=>{const Z=(0,s.sA)(U),_e="click"===U.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Z;this._pointerDownEventTarget=null;const Be=this._attachedOverlays.slice();for(let $e=Be.length-1;$e>-1;$e--){const st=Be[$e];if(!(st._outsidePointerEvents.observers.length<1)&&st.hasAttached()){if(st.overlayElement.contains(Z)||st.overlayElement.contains(_e))break;st._outsidePointerEvents.next(U)}}}}add(H){if(super.add(H),!this._isAttached){const T=this._document.body;T.addEventListener("pointerdown",this._pointerDownListener,!0),T.addEventListener("click",this._clickListener,!0),T.addEventListener("auxclick",this._clickListener,!0),T.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=T.style.cursor,T.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const H=this._document.body;H.removeEventListener("pointerdown",this._pointerDownListener,!0),H.removeEventListener("click",this._clickListener,!0),H.removeEventListener("auxclick",this._clickListener,!0),H.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(H.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ee.\u0275fac=function(H){return new(H||Ee)(_.\u0275\u0275inject(f.DOCUMENT),_.\u0275\u0275inject(s.t4))},Ee.\u0275prov=_.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),at=0,pt=(()=>{class Ee{constructor(H,T,U,Z,_e,Be,$e,st,ut,St,Xt){this.scrollStrategies=H,this._overlayContainer=T,this._componentFactoryResolver=U,this._positionBuilder=Z,this._keyboardDispatcher=_e,this._injector=Be,this._ngZone=$e,this._document=st,this._directionality=ut,this._location=St,this._outsideClickDispatcher=Xt}create(H){const T=this._createHostElement(),U=this._createPaneElement(T),Z=this._createPortalOutlet(U),_e=new x(H);return _e.direction=_e.direction||this._directionality.value,new X(Z,T,U,_e,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(H){const T=this._document.createElement("div");return T.id="cdk-overlay-"+at++,T.classList.add("cdk-overlay-pane"),H.appendChild(T),T}_createHostElement(){const H=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(H),H}_createPortalOutlet(H){return this._appRef||(this._appRef=this._injector.get(_.ApplicationRef)),new u.u0(H,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ee.\u0275fac=function(H){return new(H||Ee)(_.\u0275\u0275inject(w),_.\u0275\u0275inject(ee),_.\u0275\u0275inject(_.ComponentFactoryResolver),_.\u0275\u0275inject(Xe),_.\u0275\u0275inject(Pe),_.\u0275\u0275inject(_.Injector),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(f.DOCUMENT),_.\u0275\u0275inject(d.Is),_.\u0275\u0275inject(f.Location),_.\u0275\u0275inject(et))},Ee.\u0275prov=_.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})();const vt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],yt=new _.InjectionToken("cdk-connected-overlay-scroll-strategy");let ot=(()=>{class Ee{constructor(H){this.elementRef=H}}return Ee.\u0275fac=function(H){return new(H||Ee)(_.\u0275\u0275directiveInject(_.ElementRef))},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Ee})(),_t=(()=>{class Ee{constructor(H,T,U,Z,_e){this._overlay=H,this._dir=_e,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=r.w.EMPTY,this._attachSubscription=r.w.EMPTY,this._detachSubscription=r.w.EMPTY,this._positionSubscription=r.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new _.EventEmitter,this.positionChange=new _.EventEmitter,this.attach=new _.EventEmitter,this.detach=new _.EventEmitter,this.overlayKeydown=new _.EventEmitter,this.overlayOutsideClick=new _.EventEmitter,this._templatePortal=new u.UE(T,U),this._scrollStrategyFactory=Z,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(H){this._offsetX=H,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(H){this._offsetY=H,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(H){this._hasBackdrop=(0,m.Ig)(H)}get lockPosition(){return this._lockPosition}set lockPosition(H){this._lockPosition=(0,m.Ig)(H)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(H){this._flexibleDimensions=(0,m.Ig)(H)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(H){this._growAfterOpen=(0,m.Ig)(H)}get push(){return this._push}set push(H){this._push=(0,m.Ig)(H)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(H){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),H.origin&&this.open&&this._position.apply()),H.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=vt);const H=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=H.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=H.detachments().subscribe(()=>this.detach.emit()),H.keydownEvents().subscribe(T=>{this.overlayKeydown.next(T),T.keyCode===g.hY&&!this.disableClose&&!(0,g.Vb)(T)&&(T.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(T=>{this.overlayOutsideClick.next(T)})}_buildConfig(){const H=this._position=this.positionStrategy||this._createPositionStrategy(),T=new x({direction:this._dir,positionStrategy:H,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(T.width=this.width),(this.height||0===this.height)&&(T.height=this.height),(this.minWidth||0===this.minWidth)&&(T.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(T.minHeight=this.minHeight),this.backdropClass&&(T.backdropClass=this.backdropClass),this.panelClass&&(T.panelClass=this.panelClass),T}_updatePositionStrategy(H){const T=this.positions.map(U=>({originX:U.originX,originY:U.originY,overlayX:U.overlayX,overlayY:U.overlayY,offsetX:U.offsetX||this.offsetX,offsetY:U.offsetY||this.offsetY,panelClass:U.panelClass||void 0}));return H.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(T).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const H=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(H),H}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ot?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(H=>{this.backdropClick.emit(H)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,l.o)(()=>this.positionChange.observers.length>0)).subscribe(H=>{this.positionChange.emit(H),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Ee.\u0275fac=function(H){return new(H||Ee)(_.\u0275\u0275directiveInject(pt),_.\u0275\u0275directiveInject(_.TemplateRef),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(yt),_.\u0275\u0275directiveInject(d.Is,8))},Ee.\u0275dir=_.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[_.\u0275\u0275NgOnChangesFeature]}),Ee})();const Tt={provide:yt,deps:[pt],useFactory:function(Ee){return()=>Ee.scrollStrategies.reposition()}};let Bt=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=_.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=_.\u0275\u0275defineInjector({providers:[pt,Tt],imports:[[d.vT,u.eL,n.Cl],n.Cl]}),Ee})()},925:(ye,W,p)=>{"use strict";p.d(W,{t4:()=>m,ud:()=>s,sA:()=>M,ht:()=>R,kV:()=>I,Oy:()=>A,qK:()=>h,i$:()=>i,Mq:()=>g});var n=p(5e3),f=p(9808);let _;try{_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(D){_=!1}let d,m=(()=>{class D{constructor(x){this._platformId=x,this.isBrowser=this._platformId?(0,f.isPlatformBrowser)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return D.\u0275fac=function(x){return new(x||D)(n.\u0275\u0275inject(n.PLATFORM_ID))},D.\u0275prov=n.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),s=(()=>{class D{}return D.\u0275fac=function(x){return new(x||D)},D.\u0275mod=n.\u0275\u0275defineNgModule({type:D}),D.\u0275inj=n.\u0275\u0275defineInjector({}),D})();const u=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(d)return d;if("object"!=typeof document||!document)return d=new Set(u),d;let D=document.createElement("input");return d=new Set(u.filter(w=>(D.setAttribute("type",w),D.type===w))),d}let r,l,y;function i(D){return function(){if(null==r&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>r=!0}))}finally{r=r||!1}return r}()?D:!!D.capture}function g(){if(null==l){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return l=!1,l;if("scrollBehavior"in document.documentElement.style)l=!0;else{const D=Element.prototype.scrollTo;l=!!D&&!/\{\s*\[native code\]\s*\}/.test(D.toString())}}return l}function I(D){if(function(){if(null==y){const D="undefined"!=typeof document?document.head:null;y=!(!D||!D.createShadowRoot&&!D.attachShadow)}return y}()){const w=D.getRootNode?D.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&w instanceof ShadowRoot)return w}return null}function R(){let D="undefined"!=typeof document&&document?document.activeElement:null;for(;D&&D.shadowRoot;){const w=D.shadowRoot.activeElement;if(w===D)break;D=w}return D}function M(D){return D.composedPath?D.composedPath()[0]:D.target}function A(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(ye,W,p)=>{"use strict";p.d(W,{ig:()=>S,Pl:()=>R,C5:()=>o,u0:()=>b,eL:()=>A,UE:()=>i});var n=p(5e3),f=p(9808);class r{attach(x){return this._attachedHost=x,x.attach(this)}detach(){let x=this._attachedHost;null!=x&&(this._attachedHost=null,x.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(x){this._attachedHost=x}}class o extends r{constructor(x,C,L,F){super(),this.component=x,this.viewContainerRef=C,this.injector=L,this.componentFactoryResolver=F}}class i extends r{constructor(x,C,L){super(),this.templateRef=x,this.viewContainerRef=C,this.context=L}get origin(){return this.templateRef.elementRef}attach(x,C=this.context){return this.context=C,super.attach(x)}detach(){return this.context=void 0,super.detach()}}class c extends r{constructor(x){super(),this.element=x instanceof n.ElementRef?x.nativeElement:x}}class l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(x){return x instanceof o?(this._attachedPortal=x,this.attachComponentPortal(x)):x instanceof i?(this._attachedPortal=x,this.attachTemplatePortal(x)):this.attachDomPortal&&x instanceof c?(this._attachedPortal=x,this.attachDomPortal(x)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(x){this._disposeFn=x}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class b extends l{constructor(x,C,L,F,re){super(),this.outletElement=x,this._componentFactoryResolver=C,this._appRef=L,this._defaultInjector=F,this.attachDomPortal=Y=>{const X=Y.element,ee=this._document.createComment("dom-portal");X.parentNode.insertBefore(ee,X),this.outletElement.appendChild(X),this._attachedPortal=Y,super.setDisposeFn(()=>{ee.parentNode&&ee.parentNode.replaceChild(X,ee)})},this._document=re}attachComponentPortal(x){const L=(x.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(x.component);let F;return x.viewContainerRef?(F=x.viewContainerRef.createComponent(L,x.viewContainerRef.length,x.injector||x.viewContainerRef.injector),this.setDisposeFn(()=>F.destroy())):(F=L.create(x.injector||this._defaultInjector),this._appRef.attachView(F.hostView),this.setDisposeFn(()=>{this._appRef.detachView(F.hostView),F.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(F)),this._attachedPortal=x,F}attachTemplatePortal(x){let C=x.viewContainerRef,L=C.createEmbeddedView(x.templateRef,x.context);return L.rootNodes.forEach(F=>this.outletElement.appendChild(F)),L.detectChanges(),this.setDisposeFn(()=>{let F=C.indexOf(L);-1!==F&&C.remove(F)}),this._attachedPortal=x,L}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(x){return x.hostView.rootNodes[0]}}let S=(()=>{class w extends i{constructor(C,L){super(C,L)}}return w.\u0275fac=function(C){return new(C||w)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef))},w.\u0275dir=n.\u0275\u0275defineDirective({type:w,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.\u0275\u0275InheritDefinitionFeature]}),w})(),R=(()=>{class w extends l{constructor(C,L,F){super(),this._componentFactoryResolver=C,this._viewContainerRef=L,this._isInitialized=!1,this.attached=new n.EventEmitter,this.attachDomPortal=re=>{const Y=re.element,X=this._document.createComment("dom-portal");re.setAttachedHost(this),Y.parentNode.insertBefore(X,Y),this._getRootNode().appendChild(Y),this._attachedPortal=re,super.setDisposeFn(()=>{X.parentNode&&X.parentNode.replaceChild(Y,X)})},this._document=F}get portal(){return this._attachedPortal}set portal(C){this.hasAttached()&&!C&&!this._isInitialized||(this.hasAttached()&&super.detach(),C&&super.attach(C),this._attachedPortal=C||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(C){C.setAttachedHost(this);const L=null!=C.viewContainerRef?C.viewContainerRef:this._viewContainerRef,re=(C.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(C.component),Y=L.createComponent(re,L.length,C.injector||L.injector);return L!==this._viewContainerRef&&this._getRootNode().appendChild(Y.hostView.rootNodes[0]),super.setDisposeFn(()=>Y.destroy()),this._attachedPortal=C,this._attachedRef=Y,this.attached.emit(Y),Y}attachTemplatePortal(C){C.setAttachedHost(this);const L=this._viewContainerRef.createEmbeddedView(C.templateRef,C.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=C,this._attachedRef=L,this.attached.emit(L),L}_getRootNode(){const C=this._viewContainerRef.element.nativeElement;return C.nodeType===C.ELEMENT_NODE?C:C.parentNode}}return w.\u0275fac=function(C){return new(C||w)(n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(f.DOCUMENT))},w.\u0275dir=n.\u0275\u0275defineDirective({type:w,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.\u0275\u0275InheritDefinitionFeature]}),w})(),A=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=n.\u0275\u0275defineNgModule({type:w}),w.\u0275inj=n.\u0275\u0275defineInjector({}),w})()},9071:(ye,W,p)=>{"use strict";p.d(W,{ZD:()=>X,mF:()=>A,Cl:()=>ee,rL:()=>x});var n=p(3191),f=p(5e3),_=p(8929),m=p(1086),s=p(6498),d=p(3753),r=(p(352),p(8139),p(7568)),o=p(2198),i=p(9808),c=p(925),l=p(226);let A=(()=>{class ${constructor(ie,ne,ae){this._ngZone=ie,this._platform=ne,this._scrolled=new _.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ae}register(ie){this.scrollContainers.has(ie)||this.scrollContainers.set(ie,ie.elementScrolled().subscribe(()=>this._scrolled.next(ie)))}deregister(ie){const ne=this.scrollContainers.get(ie);ne&&(ne.unsubscribe(),this.scrollContainers.delete(ie))}scrolled(ie=20){return this._platform.isBrowser?new s.y(ne=>{this._globalSubscription||this._addGlobalListener();const ae=ie>0?this._scrolled.pipe((0,r.e)(ie)).subscribe(ne):this._scrolled.subscribe(ne);return this._scrolledCount++,()=>{ae.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,m.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ie,ne)=>this.deregister(ne)),this._scrolled.complete()}ancestorScrolled(ie,ne){const ae=this.getAncestorScrollContainers(ie);return this.scrolled(ne).pipe((0,o.h)(xe=>!xe||ae.indexOf(xe)>-1))}getAncestorScrollContainers(ie){const ne=[];return this.scrollContainers.forEach((ae,xe)=>{this._scrollableContainsElement(xe,ie)&&ne.push(xe)}),ne}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ie,ne){let ae=(0,n.fI)(ne),xe=ie.getElementRef().nativeElement;do{if(ae==xe)return!0}while(ae=ae.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();return(0,d.R)(ie.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return $.\u0275fac=function(ie){return new(ie||$)(f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(c.t4),f.\u0275\u0275inject(i.DOCUMENT,8))},$.\u0275prov=f.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),x=(()=>{class ${constructor(ie,ne,ae){this._platform=ie,this._change=new _.xQ,this._changeListener=xe=>{this._change.next(xe)},this._document=ae,ne.runOutsideAngular(()=>{if(ie.isBrowser){const xe=this._getWindow();xe.addEventListener("resize",this._changeListener),xe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ie=this._getWindow();ie.removeEventListener("resize",this._changeListener),ie.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ie={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ie}getViewportRect(){const ie=this.getViewportScrollPosition(),{width:ne,height:ae}=this.getViewportSize();return{top:ie.top,left:ie.left,bottom:ie.top+ae,right:ie.left+ne,height:ae,width:ne}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ie=this._document,ne=this._getWindow(),ae=ie.documentElement,xe=ae.getBoundingClientRect();return{top:-xe.top||ie.body.scrollTop||ne.scrollY||ae.scrollTop||0,left:-xe.left||ie.body.scrollLeft||ne.scrollX||ae.scrollLeft||0}}change(ie=20){return ie>0?this._change.pipe((0,r.e)(ie)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ie=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ie.innerWidth,height:ie.innerHeight}:{width:0,height:0}}}return $.\u0275fac=function(ie){return new(ie||$)(f.\u0275\u0275inject(c.t4),f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(i.DOCUMENT,8))},$.\u0275prov=f.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),X=(()=>{class ${}return $.\u0275fac=function(ie){return new(ie||$)},$.\u0275mod=f.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=f.\u0275\u0275defineInjector({}),$})(),ee=(()=>{class ${}return $.\u0275fac=function(ie){return new(ie||$)},$.\u0275mod=f.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=f.\u0275\u0275defineInjector({imports:[[l.vT,c.ud,X],l.vT,X]}),$})()},9808:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{APP_BASE_HREF:()=>R,AsyncPipe:()=>ur,CommonModule:()=>jr,CurrencyPipe:()=>ir,DATE_PIPE_DEFAULT_TIMEZONE:()=>Ri,DOCUMENT:()=>u,DatePipe:()=>Li,DecimalPipe:()=>hr,FormStyle:()=>Y,FormatWidth:()=>ee,HashLocationStrategy:()=>A,I18nPluralPipe:()=>Vr,I18nSelectPipe:()=>nr,JsonPipe:()=>Or,KeyValuePipe:()=>cr,LOCATION_INITIALIZED:()=>o,Location:()=>D,LocationStrategy:()=>S,LowerCasePipe:()=>gn,NgClass:()=>Zt,NgComponentOutlet:()=>an,NgForOf:()=>zn,NgForOfContext:()=>Tn,NgIf:()=>jn,NgIfContext:()=>Qn,NgLocaleLocalization:()=>Wt,NgLocalization:()=>Fe,NgPlural:()=>Ui,NgPluralCase:()=>tr,NgStyle:()=>bi,NgSwitch:()=>Zi,NgSwitchCase:()=>Xn,NgSwitchDefault:()=>pi,NgTemplateOutlet:()=>Rn,NumberFormatStyle:()=>F,NumberSymbol:()=>$,PathLocationStrategy:()=>M,PercentPipe:()=>qr,PlatformLocation:()=>h,Plural:()=>re,SlicePipe:()=>mr,TitleCasePipe:()=>Sn,TranslationWidth:()=>X,UpperCasePipe:()=>Wn,VERSION:()=>kr,ViewportScroller:()=>Jr,WeekDay:()=>J,XhrFactory:()=>Er,formatCurrency:()=>Vi,formatDate:()=>Xt,formatNumber:()=>Ae,formatPercent:()=>ci,getCurrencySymbol:()=>T,getLocaleCurrencyCode:()=>ot,getLocaleCurrencyName:()=>yt,getLocaleCurrencySymbol:()=>vt,getLocaleDateFormat:()=>ft,getLocaleDateTimeFormat:()=>et,getLocaleDayNames:()=>ae,getLocaleDayPeriods:()=>ne,getLocaleDirection:()=>Ee,getLocaleEraNames:()=>Ie,getLocaleExtraDayPeriodRules:()=>Bt,getLocaleExtraDayPeriods:()=>Et,getLocaleFirstDayOfWeek:()=>We,getLocaleId:()=>ie,getLocaleMonthNames:()=>xe,getLocaleNumberFormat:()=>pt,getLocaleNumberSymbol:()=>at,getLocalePluralCase:()=>At,getLocaleTimeFormat:()=>Pe,getLocaleWeekEndRange:()=>Xe,getNumberOfCurrencyDigits:()=>Z,isPlatformBrowser:()=>Lr,isPlatformServer:()=>Ji,isPlatformWorkerApp:()=>Fr,isPlatformWorkerUi:()=>ls,registerLocaleData:()=>Ft,\u0275BrowserPlatformLocation:()=>i,\u0275DomAdapter:()=>d,\u0275NullViewportScroller:()=>zr,\u0275PLATFORM_BROWSER_ID:()=>Wi,\u0275PLATFORM_SERVER_ID:()=>Wr,\u0275PLATFORM_WORKER_APP_ID:()=>Rr,\u0275PLATFORM_WORKER_UI_ID:()=>Dr,\u0275getDOM:()=>_,\u0275parseCookieValue:()=>Ht,\u0275setRootDomAdapter:()=>s});var n=p(5e3);let f=null;function _(){return f}function s(be){f||(f=be)}class d{}const u=new n.InjectionToken("DocumentToken");let h=(()=>{class be{historyGo(k){throw new Error("Not implemented")}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return(0,n.\u0275\u0275inject)(i)},providedIn:"platform"}),be})();const o=new n.InjectionToken("Location Initialized");let i=(()=>{class be extends h{constructor(k){super(),this._doc=k,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(k){const V=_().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",k,!1),()=>V.removeEventListener("popstate",k)}onHashChange(k){const V=_().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",k,!1),()=>V.removeEventListener("hashchange",k)}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(k){this.location.pathname=k}pushState(k,V,ve){c()?this._history.pushState(k,V,ve):this.location.hash=ve}replaceState(k,V,ve){c()?this._history.replaceState(k,V,ve):this.location.hash=ve}forward(){this._history.forward()}back(){this._history.back()}historyGo(k=0){this._history.go(k)}getState(){return this._history.state}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(u))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return new i((0,n.\u0275\u0275inject)(u))},providedIn:"platform"}),be})();function c(){return!!window.history.pushState}function g(be,Q){if(0==be.length)return Q;if(0==Q.length)return be;let k=0;return be.endsWith("/")&&k++,Q.startsWith("/")&&k++,2==k?be+Q.substring(1):1==k?be+Q:be+"/"+Q}function b(be){const Q=be.match(/#|\?|$/),k=Q&&Q.index||be.length;return be.slice(0,k-("/"===be[k-1]?1:0))+be.slice(k)}function y(be){return be&&"?"!==be[0]?"?"+be:be}let S=(()=>{class be{historyGo(k){throw new Error("Not implemented")}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return function(be){const Q=(0,n.\u0275\u0275inject)(u).location;return new M((0,n.\u0275\u0275inject)(h),Q&&Q.origin||"")}()},providedIn:"root"}),be})();const R=new n.InjectionToken("appBaseHref");let M=(()=>{class be extends S{constructor(k,V){if(super(),this._platformLocation=k,this._removeListenerFns=[],null==V&&(V=this._platformLocation.getBaseHrefFromDOM()),null==V)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=V}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}prepareExternalUrl(k){return g(this._baseHref,k)}path(k=!1){const V=this._platformLocation.pathname+y(this._platformLocation.search),ve=this._platformLocation.hash;return ve&&k?`${V}${ve}`:V}pushState(k,V,ve,nt){const Nt=this.prepareExternalUrl(ve+y(nt));this._platformLocation.pushState(k,V,Nt)}replaceState(k,V,ve,nt){const Nt=this.prepareExternalUrl(ve+y(nt));this._platformLocation.replaceState(k,V,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var V,ve;null===(ve=(V=this._platformLocation).historyGo)||void 0===ve||ve.call(V,k)}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(R,8))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),A=(()=>{class be extends S{constructor(k,V){super(),this._platformLocation=k,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}path(k=!1){let V=this._platformLocation.hash;return null==V&&(V="#"),V.length>0?V.substring(1):V}prepareExternalUrl(k){const V=g(this._baseHref,k);return V.length>0?"#"+V:V}pushState(k,V,ve,nt){let Nt=this.prepareExternalUrl(ve+y(nt));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.pushState(k,V,Nt)}replaceState(k,V,ve,nt){let Nt=this.prepareExternalUrl(ve+y(nt));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.replaceState(k,V,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var V,ve;null===(ve=(V=this._platformLocation).historyGo)||void 0===ve||ve.call(V,k)}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(R,8))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),D=(()=>{class be{constructor(k,V){this._subject=new n.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=k;const ve=this._platformStrategy.getBaseHref();this._platformLocation=V,this._baseHref=b(C(ve)),this._platformStrategy.onPopState(nt=>{this._subject.emit({url:this.path(!0),pop:!0,state:nt.state,type:nt.type})})}path(k=!1){return this.normalize(this._platformStrategy.path(k))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(k,V=""){return this.path()==this.normalize(k+y(V))}normalize(k){return be.stripTrailingSlash(function(be,Q){return be&&Q.startsWith(be)?Q.substring(be.length):Q}(this._baseHref,C(k)))}prepareExternalUrl(k){return k&&"/"!==k[0]&&(k="/"+k),this._platformStrategy.prepareExternalUrl(k)}go(k,V="",ve=null){this._platformStrategy.pushState(ve,"",k,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+y(V)),ve)}replaceState(k,V="",ve=null){this._platformStrategy.replaceState(ve,"",k,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+y(V)),ve)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(k=0){var V,ve;null===(ve=(V=this._platformStrategy).historyGo)||void 0===ve||ve.call(V,k)}onUrlChange(k){this._urlChangeListeners.push(k),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}))}_notifyUrlChangeListeners(k="",V){this._urlChangeListeners.forEach(ve=>ve(k,V))}subscribe(k,V,ve){return this._subject.subscribe({next:k,error:V,complete:ve})}}return be.normalizeQueryParams=y,be.joinWithSlash=g,be.stripTrailingSlash=b,be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(S),n.\u0275\u0275inject(h))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return new D((0,n.\u0275\u0275inject)(S),(0,n.\u0275\u0275inject)(h))},providedIn:"root"}),be})();function C(be){return be.replace(/\/index.html$/,"")}const L={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var F=(()=>((F=F||{})[F.Decimal=0]="Decimal",F[F.Percent=1]="Percent",F[F.Currency=2]="Currency",F[F.Scientific=3]="Scientific",F))(),re=(()=>((re=re||{})[re.Zero=0]="Zero",re[re.One=1]="One",re[re.Two=2]="Two",re[re.Few=3]="Few",re[re.Many=4]="Many",re[re.Other=5]="Other",re))(),Y=(()=>((Y=Y||{})[Y.Format=0]="Format",Y[Y.Standalone=1]="Standalone",Y))(),X=(()=>((X=X||{})[X.Narrow=0]="Narrow",X[X.Abbreviated=1]="Abbreviated",X[X.Wide=2]="Wide",X[X.Short=3]="Short",X))(),ee=(()=>((ee=ee||{})[ee.Short=0]="Short",ee[ee.Medium=1]="Medium",ee[ee.Long=2]="Long",ee[ee.Full=3]="Full",ee))(),$=(()=>(($=$||{})[$.Decimal=0]="Decimal",$[$.Group=1]="Group",$[$.List=2]="List",$[$.PercentSign=3]="PercentSign",$[$.PlusSign=4]="PlusSign",$[$.MinusSign=5]="MinusSign",$[$.Exponential=6]="Exponential",$[$.SuperscriptingExponent=7]="SuperscriptingExponent",$[$.PerMille=8]="PerMille",$[$.Infinity=9]="Infinity",$[$.NaN=10]="NaN",$[$.TimeSeparator=11]="TimeSeparator",$[$.CurrencyDecimal=12]="CurrencyDecimal",$[$.CurrencyGroup=13]="CurrencyGroup",$))(),J=(()=>((J=J||{})[J.Sunday=0]="Sunday",J[J.Monday=1]="Monday",J[J.Tuesday=2]="Tuesday",J[J.Wednesday=3]="Wednesday",J[J.Thursday=4]="Thursday",J[J.Friday=5]="Friday",J[J.Saturday=6]="Saturday",J))();function ie(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.LocaleId]}function ne(be,Q,k){const V=(0,n.\u0275findLocaleData)(be),nt=fe([V[n.\u0275LocaleDataIndex.DayPeriodsFormat],V[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],Q);return fe(nt,k)}function ae(be,Q,k){const V=(0,n.\u0275findLocaleData)(be),nt=fe([V[n.\u0275LocaleDataIndex.DaysFormat],V[n.\u0275LocaleDataIndex.DaysStandalone]],Q);return fe(nt,k)}function xe(be,Q,k){const V=(0,n.\u0275findLocaleData)(be),nt=fe([V[n.\u0275LocaleDataIndex.MonthsFormat],V[n.\u0275LocaleDataIndex.MonthsStandalone]],Q);return fe(nt,k)}function Ie(be,Q){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.Eras],Q)}function We(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.FirstDayOfWeek]}function Xe(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.WeekendRange]}function ft(be,Q){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.DateFormat],Q)}function Pe(be,Q){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.TimeFormat],Q)}function et(be,Q){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.DateTimeFormat],Q)}function at(be,Q){const k=(0,n.\u0275findLocaleData)(be),V=k[n.\u0275LocaleDataIndex.NumberSymbols][Q];if(void 0===V){if(Q===$.CurrencyDecimal)return k[n.\u0275LocaleDataIndex.NumberSymbols][$.Decimal];if(Q===$.CurrencyGroup)return k[n.\u0275LocaleDataIndex.NumberSymbols][$.Group]}return V}function pt(be,Q){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.NumberFormats][Q]}function vt(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.CurrencySymbol]||null}function yt(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.CurrencyName]||null}function ot(be){return(0,n.\u0275getLocaleCurrencyCode)(be)}const At=n.\u0275getLocalePluralCase;function Tt(be){if(!be[n.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${be[n.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Bt(be){const Q=(0,n.\u0275findLocaleData)(be);return Tt(Q),(Q[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map(V=>"string"==typeof V?H(V):[H(V[0]),H(V[1])])}function Et(be,Q,k){const V=(0,n.\u0275findLocaleData)(be);Tt(V);const nt=fe([V[n.\u0275LocaleDataIndex.ExtraData][0],V[n.\u0275LocaleDataIndex.ExtraData][1]],Q)||[];return fe(nt,k)||[]}function Ee(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.Directionality]}function fe(be,Q){for(let k=Q;k>-1;k--)if(void 0!==be[k])return be[k];throw new Error("Locale data API: locale data undefined")}function H(be){const[Q,k]=be.split(":");return{hours:+Q,minutes:+k}}function T(be,Q,k="en"){const V=function(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.Currencies]}(k)[be]||L[be]||[],ve=V[1];return"narrow"===Q&&"string"==typeof ve?ve:V[0]||be}function Z(be){let Q;const k=L[be];return k&&(Q=k[2]),"number"==typeof Q?Q:2}const _e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Be={},$e=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var st=(()=>((st=st||{})[st.Short=0]="Short",st[st.ShortGMT=1]="ShortGMT",st[st.Long=2]="Long",st[st.Extended=3]="Extended",st))(),ut=(()=>((ut=ut||{})[ut.FullYear=0]="FullYear",ut[ut.Month=1]="Month",ut[ut.Date=2]="Date",ut[ut.Hours=3]="Hours",ut[ut.Minutes=4]="Minutes",ut[ut.Seconds=5]="Seconds",ut[ut.FractionalSeconds=6]="FractionalSeconds",ut[ut.Day=7]="Day",ut))(),St=(()=>((St=St||{})[St.DayPeriods=0]="DayPeriods",St[St.Days=1]="Days",St[St.Months=2]="Months",St[St.Eras=3]="Eras",St))();function Xt(be,Q,k,V){let ve=function(be){if(mt(be))return be;if("number"==typeof be&&!isNaN(be))return new Date(be);if("string"==typeof be){if(be=be.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(be)){const[ve,nt=1,Nt=1]=be.split("-").map(nn=>+nn);return tn(ve,nt-1,Nt)}const k=parseFloat(be);if(!isNaN(be-k))return new Date(k);let V;if(V=be.match(_e))return function(be){const Q=new Date(0);let k=0,V=0;const ve=be[8]?Q.setUTCFullYear:Q.setFullYear,nt=be[8]?Q.setUTCHours:Q.setHours;be[9]&&(k=Number(be[9]+be[10]),V=Number(be[9]+be[11])),ve.call(Q,Number(be[1]),Number(be[2])-1,Number(be[3]));const Nt=Number(be[4]||0)-k,nn=Number(be[5]||0)-V,In=Number(be[6]||0),ni=Math.floor(1e3*parseFloat("0."+(be[7]||0)));return nt.call(Q,Nt,nn,In,ni),Q}(V)}const Q=new Date(be);if(!mt(Q))throw new Error(`Unable to convert "${be}" into a date`);return Q}(be);Q=Dt(k,Q)||Q;let nn,Nt=[];for(;Q;){if(nn=$e.exec(Q),!nn){Nt.push(Q);break}{Nt=Nt.concat(nn.slice(1));const di=Nt.pop();if(!di)break;Q=di}}let In=ve.getTimezoneOffset();V&&(In=cn(V,In),ve=function(be,Q,k){const ve=be.getTimezoneOffset();return function(be,Q){return(be=new Date(be.getTime())).setMinutes(be.getMinutes()+Q),be}(be,-1*(cn(Q,ve)-ve))}(ve,V));let ni="";return Nt.forEach(di=>{const ai=function(be){if(It[be])return It[be];let Q;switch(be){case"G":case"GG":case"GGG":Q=gt(St.Eras,X.Abbreviated);break;case"GGGG":Q=gt(St.Eras,X.Wide);break;case"GGGGG":Q=gt(St.Eras,X.Narrow);break;case"y":Q=Lt(ut.FullYear,1,0,!1,!0);break;case"yy":Q=Lt(ut.FullYear,2,0,!0,!0);break;case"yyy":Q=Lt(ut.FullYear,3,0,!1,!0);break;case"yyyy":Q=Lt(ut.FullYear,4,0,!1,!0);break;case"Y":Q=Ke(1);break;case"YY":Q=Ke(2,!0);break;case"YYY":Q=Ke(3);break;case"YYYY":Q=Ke(4);break;case"M":case"L":Q=Lt(ut.Month,1,1);break;case"MM":case"LL":Q=Lt(ut.Month,2,1);break;case"MMM":Q=gt(St.Months,X.Abbreviated);break;case"MMMM":Q=gt(St.Months,X.Wide);break;case"MMMMM":Q=gt(St.Months,X.Narrow);break;case"LLL":Q=gt(St.Months,X.Abbreviated,Y.Standalone);break;case"LLLL":Q=gt(St.Months,X.Wide,Y.Standalone);break;case"LLLLL":Q=gt(St.Months,X.Narrow,Y.Standalone);break;case"w":Q=Me(1);break;case"ww":Q=Me(2);break;case"W":Q=Me(1,!0);break;case"d":Q=Lt(ut.Date,1);break;case"dd":Q=Lt(ut.Date,2);break;case"c":case"cc":Q=Lt(ut.Day,1);break;case"ccc":Q=gt(St.Days,X.Abbreviated,Y.Standalone);break;case"cccc":Q=gt(St.Days,X.Wide,Y.Standalone);break;case"ccccc":Q=gt(St.Days,X.Narrow,Y.Standalone);break;case"cccccc":Q=gt(St.Days,X.Short,Y.Standalone);break;case"E":case"EE":case"EEE":Q=gt(St.Days,X.Abbreviated);break;case"EEEE":Q=gt(St.Days,X.Wide);break;case"EEEEE":Q=gt(St.Days,X.Narrow);break;case"EEEEEE":Q=gt(St.Days,X.Short);break;case"a":case"aa":case"aaa":Q=gt(St.DayPeriods,X.Abbreviated);break;case"aaaa":Q=gt(St.DayPeriods,X.Wide);break;case"aaaaa":Q=gt(St.DayPeriods,X.Narrow);break;case"b":case"bb":case"bbb":Q=gt(St.DayPeriods,X.Abbreviated,Y.Standalone,!0);break;case"bbbb":Q=gt(St.DayPeriods,X.Wide,Y.Standalone,!0);break;case"bbbbb":Q=gt(St.DayPeriods,X.Narrow,Y.Standalone,!0);break;case"B":case"BB":case"BBB":Q=gt(St.DayPeriods,X.Abbreviated,Y.Format,!0);break;case"BBBB":Q=gt(St.DayPeriods,X.Wide,Y.Format,!0);break;case"BBBBB":Q=gt(St.DayPeriods,X.Narrow,Y.Format,!0);break;case"h":Q=Lt(ut.Hours,1,-12);break;case"hh":Q=Lt(ut.Hours,2,-12);break;case"H":Q=Lt(ut.Hours,1);break;case"HH":Q=Lt(ut.Hours,2);break;case"m":Q=Lt(ut.Minutes,1);break;case"mm":Q=Lt(ut.Minutes,2);break;case"s":Q=Lt(ut.Seconds,1);break;case"ss":Q=Lt(ut.Seconds,2);break;case"S":Q=Lt(ut.FractionalSeconds,1);break;case"SS":Q=Lt(ut.FractionalSeconds,2);break;case"SSS":Q=Lt(ut.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Q=qt(st.Short);break;case"ZZZZZ":Q=qt(st.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Q=qt(st.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Q=qt(st.Long);break;default:return null}return It[be]=Q,Q}(di);ni+=ai?ai(ve,k,In):"''"===di?"'":di.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ni}function tn(be,Q,k){const V=new Date(0);return V.setFullYear(be,Q,k),V.setHours(0,0,0),V}function Dt(be,Q){const k=ie(be);if(Be[k]=Be[k]||{},Be[k][Q])return Be[k][Q];let V="";switch(Q){case"shortDate":V=ft(be,ee.Short);break;case"mediumDate":V=ft(be,ee.Medium);break;case"longDate":V=ft(be,ee.Long);break;case"fullDate":V=ft(be,ee.Full);break;case"shortTime":V=Pe(be,ee.Short);break;case"mediumTime":V=Pe(be,ee.Medium);break;case"longTime":V=Pe(be,ee.Long);break;case"fullTime":V=Pe(be,ee.Full);break;case"short":const ve=Dt(be,"shortTime"),nt=Dt(be,"shortDate");V=Kt(et(be,ee.Short),[ve,nt]);break;case"medium":const Nt=Dt(be,"mediumTime"),nn=Dt(be,"mediumDate");V=Kt(et(be,ee.Medium),[Nt,nn]);break;case"long":const In=Dt(be,"longTime"),ni=Dt(be,"longDate");V=Kt(et(be,ee.Long),[In,ni]);break;case"full":const di=Dt(be,"fullTime"),ai=Dt(be,"fullDate");V=Kt(et(be,ee.Full),[di,ai])}return V&&(Be[k][Q]=V),V}function Kt(be,Q){return Q&&(be=be.replace(/\{([^}]+)}/g,function(k,V){return null!=Q&&V in Q?Q[V]:k})),be}function tt(be,Q,k="-",V,ve){let nt="";(be<0||ve&&be<=0)&&(ve?be=1-be:(be=-be,nt=k));let Nt=String(be);for(;Nt.length0||nn>-k)&&(nn+=k),be===ut.Hours)0===nn&&-12===k&&(nn=12);else if(be===ut.FractionalSeconds)return function(be,Q){return tt(be,3).substr(0,Q)}(nn,Q);const In=at(Nt,$.MinusSign);return tt(nn,Q,In,V,ve)}}function gt(be,Q,k=Y.Format,V=!1){return function(ve,nt){return function(be,Q,k,V,ve,nt){switch(k){case St.Months:return xe(Q,ve,V)[be.getMonth()];case St.Days:return ae(Q,ve,V)[be.getDay()];case St.DayPeriods:const Nt=be.getHours(),nn=be.getMinutes();if(nt){const ni=Bt(Q),di=Et(Q,ve,V),ai=ni.findIndex(hi=>{if(Array.isArray(hi)){const[Ei,ki]=hi,xn=Nt>=Ei.hours&&nn>=Ei.minutes,Kr=Nt0?Math.floor(ve/60):Math.ceil(ve/60);switch(be){case st.Short:return(ve>=0?"+":"")+tt(Nt,2,nt)+tt(Math.abs(ve%60),2,nt);case st.ShortGMT:return"GMT"+(ve>=0?"+":"")+tt(Nt,1,nt);case st.Long:return"GMT"+(ve>=0?"+":"")+tt(Nt,2,nt)+":"+tt(Math.abs(ve%60),2,nt);case st.Extended:return 0===V?"Z":(ve>=0?"+":"")+tt(Nt,2,nt)+":"+tt(Math.abs(ve%60),2,nt);default:throw new Error(`Unknown zone width "${be}"`)}}}function se(be){return tn(be.getFullYear(),be.getMonth(),be.getDate()+(4-be.getDay()))}function Me(be,Q=!1){return function(k,V){let ve;if(Q){const nt=new Date(k.getFullYear(),k.getMonth(),1).getDay()-1,Nt=k.getDate();ve=1+Math.floor((Nt+nt)/7)}else{const nt=se(k),Nt=function(be){const Q=tn(be,0,1).getDay();return tn(be,0,1+(Q<=4?4:11)-Q)}(nt.getFullYear()),nn=nt.getTime()-Nt.getTime();ve=1+Math.round(nn/6048e5)}return tt(ve,be,at(V,$.MinusSign))}}function Ke(be,Q=!1){return function(k,V){return tt(se(k).getFullYear(),be,at(V,$.MinusSign),Q)}}const It={};function cn(be,Q){be=be.replace(/:/g,"");const k=Date.parse("Jan 01, 1970 00:00:00 "+be)/6e4;return isNaN(k)?Q:k}function mt(be){return be instanceof Date&&!isNaN(be.valueOf())}const Ot=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function qn(be,Q,k,V,ve,nt,Nt=!1){let nn="",In=!1;if(isFinite(be)){let ni=function(be){let V,ve,nt,Nt,nn,Q=Math.abs(be)+"",k=0;for((ve=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(nt=Q.search(/e/i))>0?(ve<0&&(ve=nt),ve+=+Q.slice(nt+1),Q=Q.substring(0,nt)):ve<0&&(ve=Q.length),nt=0;"0"===Q.charAt(nt);nt++);if(nt===(nn=Q.length))V=[0],ve=1;else{for(nn--;"0"===Q.charAt(nn);)nn--;for(ve-=nt,V=[],Nt=0;nt<=nn;nt++,Nt++)V[Nt]=Number(Q.charAt(nt))}return ve>22&&(V=V.splice(0,21),k=ve-1,ve=1),{digits:V,exponent:k,integerLen:ve}}(be);Nt&&(ni=function(be){if(0===be.digits[0])return be;const Q=be.digits.length-be.integerLen;return be.exponent?be.exponent+=2:(0===Q?be.digits.push(0,0):1===Q&&be.digits.push(0),be.integerLen+=2),be}(ni));let di=Q.minInt,ai=Q.minFrac,hi=Q.maxFrac;if(nt){const xr=nt.match(Ot);if(null===xr)throw new Error(`${nt} is not a valid digit info`);const cs=xr[1],es=xr[3],ds=xr[5];null!=cs&&(di=de(cs)),null!=es&&(ai=de(es)),null!=ds?hi=de(ds):null!=es&&ai>hi&&(hi=ai)}!function(be,Q,k){if(Q>k)throw new Error(`The minimum number of digits after fraction (${Q}) is higher than the maximum (${k}).`);let V=be.digits,ve=V.length-be.integerLen;const nt=Math.min(Math.max(Q,ve),k);let Nt=nt+be.integerLen,nn=V[Nt];if(Nt>0){V.splice(Math.max(be.integerLen,Nt));for(let ai=Nt;ai=5)if(Nt-1<0){for(let ai=0;ai>Nt;ai--)V.unshift(0),be.integerLen++;V.unshift(1),be.integerLen++}else V[Nt-1]++;for(;ve=ni?ki.pop():In=!1),hi>=10?1:0},0);di&&(V.unshift(di),be.integerLen++)}(ni,ai,hi);let Ei=ni.digits,ki=ni.integerLen;const xn=ni.exponent;let Kr=[];for(In=Ei.every(xr=>!xr);ki0?Kr=Ei.splice(ki,Ei.length):(Kr=Ei,Ei=[0]);const rr=[];for(Ei.length>=Q.lgSize&&rr.unshift(Ei.splice(-Q.lgSize,Ei.length).join(""));Ei.length>Q.gSize;)rr.unshift(Ei.splice(-Q.gSize,Ei.length).join(""));Ei.length&&rr.unshift(Ei.join("")),nn=rr.join(at(k,V)),Kr.length&&(nn+=at(k,ve)+Kr.join("")),xn&&(nn+=at(k,$.Exponential)+"+"+xn)}else nn=at(k,$.Infinity);return nn=be<0&&!In?Q.negPre+nn+Q.negSuf:Q.posPre+nn+Q.posSuf,nn}function Vi(be,Q,k,V,ve){const Nt=qe(pt(Q,F.Currency),at(Q,$.MinusSign));return Nt.minFrac=Z(V),Nt.maxFrac=Nt.minFrac,qn(be,Nt,Q,$.CurrencyGroup,$.CurrencyDecimal,ve).replace("\xa4",k).replace("\xa4","").trim()}function ci(be,Q,k){return qn(be,qe(pt(Q,F.Percent),at(Q,$.MinusSign)),Q,$.Group,$.Decimal,k,!0).replace(new RegExp("%","g"),at(Q,$.PercentSign))}function Ae(be,Q,k){return qn(be,qe(pt(Q,F.Decimal),at(Q,$.MinusSign)),Q,$.Group,$.Decimal,k)}function qe(be,Q="-"){const k={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},V=be.split(";"),ve=V[0],nt=V[1],Nt=-1!==ve.indexOf(".")?ve.split("."):[ve.substring(0,ve.lastIndexOf("0")+1),ve.substring(ve.lastIndexOf("0")+1)],nn=Nt[0],In=Nt[1]||"";k.posPre=nn.substr(0,nn.indexOf("#"));for(let di=0;di-1||(ve=k.getPluralCategory(be,V),Q.indexOf(ve)>-1))return ve;if(Q.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${be}"`)}let Wt=(()=>{class be extends Fe{constructor(k){super(),this.locale=k}getPluralCategory(k,V){switch(At(V||this.locale)(k)){case re.Zero:return"zero";case re.One:return"one";case re.Two:return"two";case re.Few:return"few";case re.Many:return"many";default:return"other"}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(n.LOCALE_ID))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();function Ft(be,Q,k){return(0,n.\u0275registerLocaleData)(be,Q,k)}function Ht(be,Q){Q=encodeURIComponent(Q);for(const k of be.split(";")){const V=k.indexOf("="),[ve,nt]=-1==V?[k,""]:[k.slice(0,V),k.slice(V+1)];if(ve.trim()===Q)return decodeURIComponent(nt)}return null}let Zt=(()=>{class be{constructor(k,V,ve,nt){this._iterableDiffers=k,this._keyValueDiffers=V,this._ngEl=ve,this._renderer=nt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(k){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof k?k.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(k){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof k?k.split(/\s+/):k,this._rawClass&&((0,n.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const k=this._iterableDiffer.diff(this._rawClass);k&&this._applyIterableChanges(k)}else if(this._keyValueDiffer){const k=this._keyValueDiffer.diff(this._rawClass);k&&this._applyKeyValueChanges(k)}}_applyKeyValueChanges(k){k.forEachAddedItem(V=>this._toggleClass(V.key,V.currentValue)),k.forEachChangedItem(V=>this._toggleClass(V.key,V.currentValue)),k.forEachRemovedItem(V=>{V.previousValue&&this._toggleClass(V.key,!1)})}_applyIterableChanges(k){k.forEachAddedItem(V=>{if("string"!=typeof V.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.\u0275stringify)(V.item)}`);this._toggleClass(V.item,!0)}),k.forEachRemovedItem(V=>this._toggleClass(V.item,!1))}_applyClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(V=>this._toggleClass(V,!0)):Object.keys(k).forEach(V=>this._toggleClass(V,!!k[V])))}_removeClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(V=>this._toggleClass(V,!1)):Object.keys(k).forEach(V=>this._toggleClass(V,!1)))}_toggleClass(k,V){(k=k.trim())&&k.split(/\s+/g).forEach(ve=>{V?this._renderer.addClass(this._ngEl.nativeElement,ve):this._renderer.removeClass(this._ngEl.nativeElement,ve)})}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),be})(),an=(()=>{class be{constructor(k){this._viewContainerRef=k,this._componentRef=null,this._moduleRef=null}ngOnChanges(k){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const V=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(k.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const Nt=V.get(n.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Nt.injector)}else this._moduleRef=null;const nt=(this._moduleRef?this._moduleRef.componentFactoryResolver:V.get(n.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(nt,this._viewContainerRef.length,V,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[n.\u0275\u0275NgOnChangesFeature]}),be})();class Tn{constructor(Q,k,V,ve){this.$implicit=Q,this.ngForOf=k,this.index=V,this.count=ve}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}}let zn=(()=>{class be{constructor(k,V,ve){this._viewContainer=k,this._template=V,this._differs=ve,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(k){this._ngForOf=k,this._ngForOfDirty=!0}set ngForTrackBy(k){this._trackByFn=k}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(k){k&&(this._template=k)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const k=this._ngForOf;!this._differ&&k&&(this._differ=this._differs.find(k).create(this.ngForTrackBy))}if(this._differ){const k=this._differ.diff(this._ngForOf);k&&this._applyChanges(k)}}_applyChanges(k){const V=this._viewContainer;k.forEachOperation((ve,nt,Nt)=>{if(null==ve.previousIndex)V.createEmbeddedView(this._template,new Tn(ve.item,this._ngForOf,-1,-1),null===Nt?void 0:Nt);else if(null==Nt)V.remove(null===nt?void 0:nt);else if(null!==nt){const nn=V.get(nt);V.move(nn,Nt),$n(nn,ve)}});for(let ve=0,nt=V.length;ve{$n(V.get(ve.currentIndex),ve)})}static ngTemplateContextGuard(k,V){return!0}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),be})();function $n(be,Q){be.context.$implicit=Q.item}let jn=(()=>{class be{constructor(k,V){this._viewContainer=k,this._context=new Qn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(k){this._context.$implicit=this._context.ngIf=k,this._updateView()}set ngIfThen(k){kn("ngIfThen",k),this._thenTemplateRef=k,this._thenViewRef=null,this._updateView()}set ngIfElse(k){kn("ngIfElse",k),this._elseTemplateRef=k,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 ngTemplateContextGuard(k,V){return!0}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),be})();class Qn{constructor(){this.$implicit=null,this.ngIf=null}}function kn(be,Q){if(Q&&!Q.createEmbeddedView)throw new Error(`${be} must be a TemplateRef, but received '${(0,n.\u0275stringify)(Q)}'.`)}class Mi{constructor(Q,k){this._viewContainerRef=Q,this._templateRef=k,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Q){Q&&!this._created?this.create():!Q&&this._created&&this.destroy()}}let Zi=(()=>{class be{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(k){this._ngSwitch=k,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(k){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(k)}_matchCase(k){const V=k==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(k){if(this._defaultViews&&k!==this._defaultUsed){this._defaultUsed=k;for(let V=0;V{class be{constructor(k,V,ve){this.ngSwitch=ve,ve._addCase(),this._view=new Mi(k,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Zi,9))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),be})(),pi=(()=>{class be{constructor(k,V,ve){ve._addDefault(new Mi(k,V))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Zi,9))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngSwitchDefault",""]]}),be})(),Ui=(()=>{class be{constructor(k){this._localization=k,this._caseViews={}}set ngPlural(k){this._switchValue=k,this._updateView()}addCase(k,V){this._caseViews[k]=V}_updateView(){this._clearViews();const k=Object.keys(this._caseViews),V=Ze(this._switchValue,k,this._localization);this._activateView(this._caseViews[V])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(k){k&&(this._activeView=k,this._activeView.create())}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(Fe))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),be})(),tr=(()=>{class be{constructor(k,V,ve,nt){this.value=k;const Nt=!isNaN(Number(k));nt.addCase(Nt?`=${k}`:k,new Mi(ve,V))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275injectAttribute("ngPluralCase"),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(Ui,1))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngPluralCase",""]]}),be})(),bi=(()=>{class be{constructor(k,V,ve){this._ngEl=k,this._differs=V,this._renderer=ve,this._ngStyle=null,this._differ=null}set ngStyle(k){this._ngStyle=k,!this._differ&&k&&(this._differ=this._differs.find(k).create())}ngDoCheck(){if(this._differ){const k=this._differ.diff(this._ngStyle);k&&this._applyChanges(k)}}_setStyle(k,V){const[ve,nt]=k.split(".");null!=(V=null!=V&&nt?`${V}${nt}`:V)?this._renderer.setStyle(this._ngEl.nativeElement,ve,V):this._renderer.removeStyle(this._ngEl.nativeElement,ve)}_applyChanges(k){k.forEachRemovedItem(V=>this._setStyle(V.key,null)),k.forEachAddedItem(V=>this._setStyle(V.key,V.currentValue)),k.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.Renderer2))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),be})(),Rn=(()=>{class be{constructor(k){this._viewContainerRef=k,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(k){if(k.ngTemplateOutlet){const V=this._viewContainerRef;this._viewRef&&V.remove(V.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?V.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&k.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.\u0275\u0275NgOnChangesFeature]}),be})();function oi(be,Q){return Error(`InvalidPipeArgument: '${Q}' for pipe '${(0,n.\u0275stringify)(be)}'`)}class Fn{createSubscription(Q,k){return Q.subscribe({next:k,error:V=>{throw V}})}dispose(Q){Q.unsubscribe()}onDestroy(Q){Q.unsubscribe()}}class $i{createSubscription(Q,k){return Q.then(k,V=>{throw V})}dispose(Q){}onDestroy(Q){}}const mi=new $i,Gn=new Fn;let ur=(()=>{class be{constructor(k){this._ref=k,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(k){return this._obj?k!==this._obj?(this._dispose(),this.transform(k)):this._latestValue:(k&&this._subscribe(k),this._latestValue)}_subscribe(k){this._obj=k,this._strategy=this._selectStrategy(k),this._subscription=this._strategy.createSubscription(k,V=>this._updateLatestValue(k,V))}_selectStrategy(k){if((0,n.\u0275isPromise)(k))return mi;if((0,n.\u0275isSubscribable)(k))return Gn;throw oi(be,k)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(k,V){k===this._obj&&(this._latestValue=V,this._ref.markForCheck())}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"async",type:be,pure:!1}),be})(),gn=(()=>{class be{transform(k){if(null==k)return null;if("string"!=typeof k)throw oi(be,k);return k.toLowerCase()}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"lowercase",type:be,pure:!0}),be})();const yn=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Sn=(()=>{class be{transform(k){if(null==k)return null;if("string"!=typeof k)throw oi(be,k);return k.replace(yn,V=>V[0].toUpperCase()+V.substr(1).toLowerCase())}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"titlecase",type:be,pure:!0}),be})(),Wn=(()=>{class be{transform(k){if(null==k)return null;if("string"!=typeof k)throw oi(be,k);return k.toUpperCase()}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"uppercase",type:be,pure:!0}),be})();const Ri=new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Li=(()=>{class be{constructor(k,V){this.locale=k,this.defaultTimezone=V}transform(k,V="mediumDate",ve,nt){var Nt;if(null==k||""===k||k!=k)return null;try{return Xt(k,V,nt||this.locale,null!==(Nt=null!=ve?ve:this.defaultTimezone)&&void 0!==Nt?Nt:void 0)}catch(nn){throw oi(be,nn.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(Ri,24))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"date",type:be,pure:!0}),be})();const as=/#/g;let Vr=(()=>{class be{constructor(k){this._localization=k}transform(k,V,ve){if(null==k)return"";if("object"!=typeof V||null===V)throw oi(be,V);return V[Ze(k,Object.keys(V),this._localization,ve)].replace(as,k.toString())}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(Fe,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nPlural",type:be,pure:!0}),be})(),nr=(()=>{class be{transform(k,V){if(null==k)return"";if("object"!=typeof V||"string"!=typeof k)throw oi(be,V);return V.hasOwnProperty(k)?V[k]:V.hasOwnProperty("other")?V.other:""}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nSelect",type:be,pure:!0}),be})(),Or=(()=>{class be{transform(k){return JSON.stringify(k,null,2)}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"json",type:be,pure:!1}),be})(),cr=(()=>{class be{constructor(k){this.differs=k,this.keyValues=[],this.compareFn=$r}transform(k,V=$r){if(!k||!(k instanceof Map)&&"object"!=typeof k)return null;this.differ||(this.differ=this.differs.find(k).create());const ve=this.differ.diff(k),nt=V!==this.compareFn;return ve&&(this.keyValues=[],ve.forEachItem(Nt=>{this.keyValues.push(function(be,Q){return{key:be,value:Q}}(Nt.key,Nt.currentValue))})),(ve||nt)&&(this.keyValues.sort(V),this.compareFn=V),this.keyValues}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.KeyValueDiffers,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"keyvalue",type:be,pure:!1}),be})();function $r(be,Q){const k=be.key,V=Q.key;if(k===V)return 0;if(void 0===k)return 1;if(void 0===V)return-1;if(null===k)return 1;if(null===V)return-1;if("string"==typeof k&&"string"==typeof V)return k{class be{constructor(k){this._locale=k}transform(k,V,ve){if(!Cr(k))return null;ve=ve||this._locale;try{return Ae(Sr(k),ve,V)}catch(nt){throw oi(be,nt.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"number",type:be,pure:!0}),be})(),qr=(()=>{class be{constructor(k){this._locale=k}transform(k,V,ve){if(!Cr(k))return null;ve=ve||this._locale;try{return ci(Sr(k),ve,V)}catch(nt){throw oi(be,nt.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"percent",type:be,pure:!0}),be})(),ir=(()=>{class be{constructor(k,V="USD"){this._locale=k,this._defaultCurrencyCode=V}transform(k,V=this._defaultCurrencyCode,ve="symbol",nt,Nt){if(!Cr(k))return null;Nt=Nt||this._locale,"boolean"==typeof ve&&(ve=ve?"symbol":"code");let nn=V||this._defaultCurrencyCode;"code"!==ve&&(nn="symbol"===ve||"symbol-narrow"===ve?T(nn,"symbol"===ve?"wide":"narrow",Nt):ve);try{return Vi(Sr(k),Nt,nn,V,nt)}catch(In){throw oi(be,In.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(n.DEFAULT_CURRENCY_CODE,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"currency",type:be,pure:!0}),be})();function Cr(be){return!(null==be||""===be||be!=be)}function Sr(be){if("string"==typeof be&&!isNaN(Number(be)-parseFloat(be)))return Number(be);if("number"!=typeof be)throw new Error(`${be} is not a number`);return be}let mr=(()=>{class be{transform(k,V,ve){if(null==k)return null;if(!this.supports(k))throw oi(be,k);return k.slice(V,ve)}supports(k){return"string"==typeof k||Array.isArray(k)}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"slice",type:be,pure:!1}),be})(),jr=(()=>{class be{}return be.\u0275fac=function(k){return new(k||be)},be.\u0275mod=n.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:Fe,useClass:Wt}]}),be})();const Wi="browser",Wr="server",Rr="browserWorkerApp",Dr="browserWorkerUi";function Lr(be){return be===Wi}function Ji(be){return be===Wr}function Fr(be){return be===Rr}function ls(be){return be===Dr}const kr=new n.Version("13.1.1");let Jr=(()=>{class be{}return be.\u0275prov=(0,n.\u0275\u0275defineInjectable)({token:be,providedIn:"root",factory:()=>new Tr((0,n.\u0275\u0275inject)(u),window)}),be})();class Tr{constructor(Q,k){this.document=Q,this.window=k,this.offset=()=>[0,0]}setOffset(Q){this.offset=Array.isArray(Q)?()=>Q:Q}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Q){this.supportsScrolling()&&this.window.scrollTo(Q[0],Q[1])}scrollToAnchor(Q){if(!this.supportsScrolling())return;const k=function(be,Q){const k=be.getElementById(Q)||be.getElementsByName(Q)[0];if(k)return k;if("function"==typeof be.createTreeWalker&&be.body&&(be.body.createShadowRoot||be.body.attachShadow)){const V=be.createTreeWalker(be.body,NodeFilter.SHOW_ELEMENT);let ve=V.currentNode;for(;ve;){const nt=ve.shadowRoot;if(nt){const Nt=nt.getElementById(Q)||nt.querySelector(`[name="${Q}"]`);if(Nt)return Nt}ve=V.nextNode()}}return null}(this.document,Q);k&&(this.scrollToElement(k),this.attemptFocus(k))}setHistoryScrollRestoration(Q){if(this.supportScrollRestoration()){const k=this.window.history;k&&k.scrollRestoration&&(k.scrollRestoration=Q)}}scrollToElement(Q){const k=Q.getBoundingClientRect(),V=k.left+this.window.pageXOffset,ve=k.top+this.window.pageYOffset,nt=this.offset();this.window.scrollTo(V-nt[0],ve-nt[1])}attemptFocus(Q){return Q.focus(),this.document.activeElement===Q}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Q=us(this.window.history)||us(Object.getPrototypeOf(this.window.history));return!(!Q||!Q.writable&&!Q.set)}catch(Q){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Q){return!1}}}function us(be){return Object.getOwnPropertyDescriptor(be,"scrollRestoration")}class zr{setOffset(Q){}getScrollPosition(){return[0,0]}scrollToPosition(Q){}scrollToAnchor(Q){}setHistoryScrollRestoration(Q){}}class Er{}},520:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{HTTP_INTERCEPTORS:()=>ie,HttpBackend:()=>r,HttpClient:()=>$,HttpClientJsonpModule:()=>H,HttpClientModule:()=>fe,HttpClientXsrfModule:()=>Ee,HttpContext:()=>R,HttpContextToken:()=>I,HttpErrorResponse:()=>X,HttpEventType:()=>L,HttpHandler:()=>h,HttpHeaderResponse:()=>re,HttpHeaders:()=>o,HttpParams:()=>S,HttpRequest:()=>C,HttpResponse:()=>Y,HttpResponseBase:()=>F,HttpUrlEncodingCodec:()=>i,HttpXhrBackend:()=>pt,HttpXsrfTokenExtractor:()=>ot,JsonpClientBackend:()=>ft,JsonpInterceptor:()=>Pe,XhrFactory:()=>T,\u0275HttpInterceptingHandler:()=>Tt});var n=p(9808),f=p(5e3),_=p(1086),m=p(6498),s=p(1406),d=p(2198),u=p(4850);class h{}class r{}class o{constructor(Z){this.normalizedNames=new Map,this.lazyUpdate=null,Z?this.lazyInit="string"==typeof Z?()=>{this.headers=new Map,Z.split("\n").forEach(_e=>{const Be=_e.indexOf(":");if(Be>0){const $e=_e.slice(0,Be),st=$e.toLowerCase(),ut=_e.slice(Be+1).trim();this.maybeSetNormalizedName($e,st),this.headers.has(st)?this.headers.get(st).push(ut):this.headers.set(st,[ut])}})}:()=>{this.headers=new Map,Object.keys(Z).forEach(_e=>{let Be=Z[_e];const $e=_e.toLowerCase();"string"==typeof Be&&(Be=[Be]),Be.length>0&&(this.headers.set($e,Be),this.maybeSetNormalizedName(_e,$e))})}:this.headers=new Map}has(Z){return this.init(),this.headers.has(Z.toLowerCase())}get(Z){this.init();const _e=this.headers.get(Z.toLowerCase());return _e&&_e.length>0?_e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Z){return this.init(),this.headers.get(Z.toLowerCase())||null}append(Z,_e){return this.clone({name:Z,value:_e,op:"a"})}set(Z,_e){return this.clone({name:Z,value:_e,op:"s"})}delete(Z,_e){return this.clone({name:Z,value:_e,op:"d"})}maybeSetNormalizedName(Z,_e){this.normalizedNames.has(_e)||this.normalizedNames.set(_e,Z)}init(){this.lazyInit&&(this.lazyInit instanceof o?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Z=>this.applyUpdate(Z)),this.lazyUpdate=null))}copyFrom(Z){Z.init(),Array.from(Z.headers.keys()).forEach(_e=>{this.headers.set(_e,Z.headers.get(_e)),this.normalizedNames.set(_e,Z.normalizedNames.get(_e))})}clone(Z){const _e=new o;return _e.lazyInit=this.lazyInit&&this.lazyInit instanceof o?this.lazyInit:this,_e.lazyUpdate=(this.lazyUpdate||[]).concat([Z]),_e}applyUpdate(Z){const _e=Z.name.toLowerCase();switch(Z.op){case"a":case"s":let Be=Z.value;if("string"==typeof Be&&(Be=[Be]),0===Be.length)return;this.maybeSetNormalizedName(Z.name,_e);const $e=("a"===Z.op?this.headers.get(_e):void 0)||[];$e.push(...Be),this.headers.set(_e,$e);break;case"d":const st=Z.value;if(st){let ut=this.headers.get(_e);if(!ut)return;ut=ut.filter(St=>-1===st.indexOf(St)),0===ut.length?(this.headers.delete(_e),this.normalizedNames.delete(_e)):this.headers.set(_e,ut)}else this.headers.delete(_e),this.normalizedNames.delete(_e)}}forEach(Z){this.init(),Array.from(this.normalizedNames.keys()).forEach(_e=>Z(this.normalizedNames.get(_e),this.headers.get(_e)))}}class i{encodeKey(Z){return b(Z)}encodeValue(Z){return b(Z)}decodeKey(Z){return decodeURIComponent(Z)}decodeValue(Z){return decodeURIComponent(Z)}}const l=/%(\d[a-f0-9])/gi,g={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function b(U){return encodeURIComponent(U).replace(l,(Z,_e)=>{var Be;return null!==(Be=g[_e])&&void 0!==Be?Be:Z})}function y(U){return`${U}`}class S{constructor(Z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Z.encoder||new i,Z.fromString){if(Z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(U,Z){const _e=new Map;return U.length>0&&U.replace(/^\?/,"").split("&").forEach($e=>{const st=$e.indexOf("="),[ut,St]=-1==st?[Z.decodeKey($e),""]:[Z.decodeKey($e.slice(0,st)),Z.decodeValue($e.slice(st+1))],Xt=_e.get(ut)||[];Xt.push(St),_e.set(ut,Xt)}),_e}(Z.fromString,this.encoder)}else Z.fromObject?(this.map=new Map,Object.keys(Z.fromObject).forEach(_e=>{const Be=Z.fromObject[_e];this.map.set(_e,Array.isArray(Be)?Be:[Be])})):this.map=null}has(Z){return this.init(),this.map.has(Z)}get(Z){this.init();const _e=this.map.get(Z);return _e?_e[0]:null}getAll(Z){return this.init(),this.map.get(Z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Z,_e){return this.clone({param:Z,value:_e,op:"a"})}appendAll(Z){const _e=[];return Object.keys(Z).forEach(Be=>{const $e=Z[Be];Array.isArray($e)?$e.forEach(st=>{_e.push({param:Be,value:st,op:"a"})}):_e.push({param:Be,value:$e,op:"a"})}),this.clone(_e)}set(Z,_e){return this.clone({param:Z,value:_e,op:"s"})}delete(Z,_e){return this.clone({param:Z,value:_e,op:"d"})}toString(){return this.init(),this.keys().map(Z=>{const _e=this.encoder.encodeKey(Z);return this.map.get(Z).map(Be=>_e+"="+this.encoder.encodeValue(Be)).join("&")}).filter(Z=>""!==Z).join("&")}clone(Z){const _e=new S({encoder:this.encoder});return _e.cloneFrom=this.cloneFrom||this,_e.updates=(this.updates||[]).concat(Z),_e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Z=>this.map.set(Z,this.cloneFrom.map.get(Z))),this.updates.forEach(Z=>{switch(Z.op){case"a":case"s":const _e=("a"===Z.op?this.map.get(Z.param):void 0)||[];_e.push(y(Z.value)),this.map.set(Z.param,_e);break;case"d":if(void 0===Z.value){this.map.delete(Z.param);break}{let Be=this.map.get(Z.param)||[];const $e=Be.indexOf(y(Z.value));-1!==$e&&Be.splice($e,1),Be.length>0?this.map.set(Z.param,Be):this.map.delete(Z.param)}}}),this.cloneFrom=this.updates=null)}}class I{constructor(Z){this.defaultValue=Z}}class R{constructor(){this.map=new Map}set(Z,_e){return this.map.set(Z,_e),this}get(Z){return this.map.has(Z)||this.map.set(Z,Z.defaultValue()),this.map.get(Z)}delete(Z){return this.map.delete(Z),this}has(Z){return this.map.has(Z)}keys(){return this.map.keys()}}function A(U){return"undefined"!=typeof ArrayBuffer&&U instanceof ArrayBuffer}function D(U){return"undefined"!=typeof Blob&&U instanceof Blob}function w(U){return"undefined"!=typeof FormData&&U instanceof FormData}class C{constructor(Z,_e,Be,$e){let st;if(this.url=_e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Z.toUpperCase(),function(U){switch(U){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||$e?(this.body=void 0!==Be?Be:null,st=$e):st=Be,st&&(this.reportProgress=!!st.reportProgress,this.withCredentials=!!st.withCredentials,st.responseType&&(this.responseType=st.responseType),st.headers&&(this.headers=st.headers),st.context&&(this.context=st.context),st.params&&(this.params=st.params)),this.headers||(this.headers=new o),this.context||(this.context=new R),this.params){const ut=this.params.toString();if(0===ut.length)this.urlWithParams=_e;else{const St=_e.indexOf("?");this.urlWithParams=_e+(-1===St?"?":St<_e.length-1?"&":"")+ut}}else this.params=new S,this.urlWithParams=_e}serializeBody(){return null===this.body?null:A(this.body)||D(this.body)||w(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof S?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||w(this.body)?null:D(this.body)?this.body.type||null:A(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof S?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Z={}){var _e;const Be=Z.method||this.method,$e=Z.url||this.url,st=Z.responseType||this.responseType,ut=void 0!==Z.body?Z.body:this.body,St=void 0!==Z.withCredentials?Z.withCredentials:this.withCredentials,Xt=void 0!==Z.reportProgress?Z.reportProgress:this.reportProgress;let tn=Z.headers||this.headers,Dt=Z.params||this.params;const Kt=null!==(_e=Z.context)&&void 0!==_e?_e:this.context;return void 0!==Z.setHeaders&&(tn=Object.keys(Z.setHeaders).reduce((tt,xt)=>tt.set(xt,Z.setHeaders[xt]),tn)),Z.setParams&&(Dt=Object.keys(Z.setParams).reduce((tt,xt)=>tt.set(xt,Z.setParams[xt]),Dt)),new C(Be,$e,ut,{params:Dt,headers:tn,context:Kt,reportProgress:Xt,responseType:st,withCredentials:St})}}var L=(()=>((L=L||{})[L.Sent=0]="Sent",L[L.UploadProgress=1]="UploadProgress",L[L.ResponseHeader=2]="ResponseHeader",L[L.DownloadProgress=3]="DownloadProgress",L[L.Response=4]="Response",L[L.User=5]="User",L))();class F{constructor(Z,_e=200,Be="OK"){this.headers=Z.headers||new o,this.status=void 0!==Z.status?Z.status:_e,this.statusText=Z.statusText||Be,this.url=Z.url||null,this.ok=this.status>=200&&this.status<300}}class re extends F{constructor(Z={}){super(Z),this.type=L.ResponseHeader}clone(Z={}){return new re({headers:Z.headers||this.headers,status:void 0!==Z.status?Z.status:this.status,statusText:Z.statusText||this.statusText,url:Z.url||this.url||void 0})}}class Y extends F{constructor(Z={}){super(Z),this.type=L.Response,this.body=void 0!==Z.body?Z.body:null}clone(Z={}){return new Y({body:void 0!==Z.body?Z.body:this.body,headers:Z.headers||this.headers,status:void 0!==Z.status?Z.status:this.status,statusText:Z.statusText||this.statusText,url:Z.url||this.url||void 0})}}class X extends F{constructor(Z){super(Z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Z.url||"(unknown url)"}`:`Http failure response for ${Z.url||"(unknown url)"}: ${Z.status} ${Z.statusText}`,this.error=Z.error||null}}function ee(U,Z){return{body:Z,headers:U.headers,context:U.context,observe:U.observe,params:U.params,reportProgress:U.reportProgress,responseType:U.responseType,withCredentials:U.withCredentials}}let $=(()=>{class U{constructor(_e){this.handler=_e}request(_e,Be,$e={}){let st;if(_e instanceof C)st=_e;else{let Xt,tn;Xt=$e.headers instanceof o?$e.headers:new o($e.headers),$e.params&&(tn=$e.params instanceof S?$e.params:new S({fromObject:$e.params})),st=new C(_e,Be,void 0!==$e.body?$e.body:null,{headers:Xt,context:$e.context,params:tn,reportProgress:$e.reportProgress,responseType:$e.responseType||"json",withCredentials:$e.withCredentials})}const ut=(0,_.of)(st).pipe((0,s.b)(Xt=>this.handler.handle(Xt)));if(_e instanceof C||"events"===$e.observe)return ut;const St=ut.pipe((0,d.h)(Xt=>Xt instanceof Y));switch($e.observe||"body"){case"body":switch(st.responseType){case"arraybuffer":return St.pipe((0,u.U)(Xt=>{if(null!==Xt.body&&!(Xt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Xt.body}));case"blob":return St.pipe((0,u.U)(Xt=>{if(null!==Xt.body&&!(Xt.body instanceof Blob))throw new Error("Response is not a Blob.");return Xt.body}));case"text":return St.pipe((0,u.U)(Xt=>{if(null!==Xt.body&&"string"!=typeof Xt.body)throw new Error("Response is not a string.");return Xt.body}));default:return St.pipe((0,u.U)(Xt=>Xt.body))}case"response":return St;default:throw new Error(`Unreachable: unhandled observe type ${$e.observe}}`)}}delete(_e,Be={}){return this.request("DELETE",_e,Be)}get(_e,Be={}){return this.request("GET",_e,Be)}head(_e,Be={}){return this.request("HEAD",_e,Be)}jsonp(_e,Be){return this.request("JSONP",_e,{params:(new S).append(Be,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(_e,Be={}){return this.request("OPTIONS",_e,Be)}patch(_e,Be,$e={}){return this.request("PATCH",_e,ee($e,Be))}post(_e,Be,$e={}){return this.request("POST",_e,ee($e,Be))}put(_e,Be,$e={}){return this.request("PUT",_e,ee($e,Be))}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(h))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();class J{constructor(Z,_e){this.next=Z,this.interceptor=_e}handle(Z){return this.interceptor.intercept(Z,this.next)}}const ie=new f.InjectionToken("HTTP_INTERCEPTORS");let ne=(()=>{class U{intercept(_e,Be){return Be.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),ae=0;class Xe{}let ft=(()=>{class U{constructor(_e,Be){this.callbackMap=_e,this.document=Be,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ae++}handle(_e){if("JSONP"!==_e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==_e.responseType)throw new Error("JSONP requests must use Json response type.");return new m.y(Be=>{const $e=this.nextCallback(),st=_e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${$e}$1`),ut=this.document.createElement("script");ut.src=st;let St=null,Xt=!1,tn=!1;this.callbackMap[$e]=xt=>{delete this.callbackMap[$e],!tn&&(St=xt,Xt=!0)};const Dt=()=>{ut.parentNode&&ut.parentNode.removeChild(ut),delete this.callbackMap[$e]},Kt=xt=>{tn||this.resolvedPromise.then(()=>{Dt(),Xt?(Be.next(new Y({body:St,status:200,statusText:"OK",url:st})),Be.complete()):Be.error(new X({url:st,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},tt=xt=>{tn||(Dt(),Be.error(new X({error:xt,status:0,statusText:"JSONP Error",url:st})))};return ut.addEventListener("load",Kt),ut.addEventListener("error",tt),this.document.body.appendChild(ut),Be.next({type:L.Sent}),()=>{tn=!0,ut.removeEventListener("load",Kt),ut.removeEventListener("error",tt),Dt()}})}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(Xe),f.\u0275\u0275inject(n.DOCUMENT))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),Pe=(()=>{class U{constructor(_e){this.jsonp=_e}intercept(_e,Be){return"JSONP"===_e.method?this.jsonp.handle(_e):Be.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(ft))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();const et=/^\)\]\}',?\n/;let pt=(()=>{class U{constructor(_e){this.xhrFactory=_e}handle(_e){if("JSONP"===_e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new m.y(Be=>{const $e=this.xhrFactory.build();if($e.open(_e.method,_e.urlWithParams),_e.withCredentials&&($e.withCredentials=!0),_e.headers.forEach((xt,Lt)=>$e.setRequestHeader(xt,Lt.join(","))),_e.headers.has("Accept")||$e.setRequestHeader("Accept","application/json, text/plain, */*"),!_e.headers.has("Content-Type")){const xt=_e.detectContentTypeHeader();null!==xt&&$e.setRequestHeader("Content-Type",xt)}if(_e.responseType){const xt=_e.responseType.toLowerCase();$e.responseType="json"!==xt?xt:"text"}const st=_e.serializeBody();let ut=null;const St=()=>{if(null!==ut)return ut;const xt=1223===$e.status?204:$e.status,Lt=$e.statusText||"OK",Qe=new o($e.getAllResponseHeaders()),gt=function(U){return"responseURL"in U&&U.responseURL?U.responseURL:/^X-Request-URL:/m.test(U.getAllResponseHeaders())?U.getResponseHeader("X-Request-URL"):null}($e)||_e.url;return ut=new re({headers:Qe,status:xt,statusText:Lt,url:gt}),ut},Xt=()=>{let{headers:xt,status:Lt,statusText:Qe,url:gt}=St(),Vt=null;204!==Lt&&(Vt=void 0===$e.response?$e.responseText:$e.response),0===Lt&&(Lt=Vt?200:0);let qt=Lt>=200&&Lt<300;if("json"===_e.responseType&&"string"==typeof Vt){const Ue=Vt;Vt=Vt.replace(et,"");try{Vt=""!==Vt?JSON.parse(Vt):null}catch(Se){Vt=Ue,qt&&(qt=!1,Vt={error:Se,text:Vt})}}qt?(Be.next(new Y({body:Vt,headers:xt,status:Lt,statusText:Qe,url:gt||void 0})),Be.complete()):Be.error(new X({error:Vt,headers:xt,status:Lt,statusText:Qe,url:gt||void 0}))},tn=xt=>{const{url:Lt}=St(),Qe=new X({error:xt,status:$e.status||0,statusText:$e.statusText||"Unknown Error",url:Lt||void 0});Be.error(Qe)};let Dt=!1;const Kt=xt=>{Dt||(Be.next(St()),Dt=!0);let Lt={type:L.DownloadProgress,loaded:xt.loaded};xt.lengthComputable&&(Lt.total=xt.total),"text"===_e.responseType&&!!$e.responseText&&(Lt.partialText=$e.responseText),Be.next(Lt)},tt=xt=>{let Lt={type:L.UploadProgress,loaded:xt.loaded};xt.lengthComputable&&(Lt.total=xt.total),Be.next(Lt)};return $e.addEventListener("load",Xt),$e.addEventListener("error",tn),$e.addEventListener("timeout",tn),$e.addEventListener("abort",tn),_e.reportProgress&&($e.addEventListener("progress",Kt),null!==st&&$e.upload&&$e.upload.addEventListener("progress",tt)),$e.send(st),Be.next({type:L.Sent}),()=>{$e.removeEventListener("error",tn),$e.removeEventListener("abort",tn),$e.removeEventListener("load",Xt),$e.removeEventListener("timeout",tn),_e.reportProgress&&($e.removeEventListener("progress",Kt),null!==st&&$e.upload&&$e.upload.removeEventListener("progress",tt)),$e.readyState!==$e.DONE&&$e.abort()}})}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(n.XhrFactory))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();const vt=new f.InjectionToken("XSRF_COOKIE_NAME"),yt=new f.InjectionToken("XSRF_HEADER_NAME");class ot{}let _t=(()=>{class U{constructor(_e,Be,$e){this.doc=_e,this.platform=Be,this.cookieName=$e,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const _e=this.doc.cookie||"";return _e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.\u0275parseCookieValue)(_e,this.cookieName),this.lastCookieString=_e),this.lastToken}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(n.DOCUMENT),f.\u0275\u0275inject(f.PLATFORM_ID),f.\u0275\u0275inject(vt))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),At=(()=>{class U{constructor(_e,Be){this.tokenService=_e,this.headerName=Be}intercept(_e,Be){const $e=_e.url.toLowerCase();if("GET"===_e.method||"HEAD"===_e.method||$e.startsWith("http://")||$e.startsWith("https://"))return Be.handle(_e);const st=this.tokenService.getToken();return null!==st&&!_e.headers.has(this.headerName)&&(_e=_e.clone({headers:_e.headers.set(this.headerName,st)})),Be.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(ot),f.\u0275\u0275inject(yt))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),Tt=(()=>{class U{constructor(_e,Be){this.backend=_e,this.injector=Be,this.chain=null}handle(_e){if(null===this.chain){const Be=this.injector.get(ie,[]);this.chain=Be.reduceRight(($e,st)=>new J($e,st),this.backend)}return this.chain.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(r),f.\u0275\u0275inject(f.Injector))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();function Et(){return"object"==typeof window?window:{}}let Ee=(()=>{class U{static disable(){return{ngModule:U,providers:[{provide:At,useClass:ne}]}}static withOptions(_e={}){return{ngModule:U,providers:[_e.cookieName?{provide:vt,useValue:_e.cookieName}:[],_e.headerName?{provide:yt,useValue:_e.headerName}:[]]}}}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275mod=f.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=f.\u0275\u0275defineInjector({providers:[At,{provide:ie,useExisting:At,multi:!0},{provide:ot,useClass:_t},{provide:vt,useValue:"XSRF-TOKEN"},{provide:yt,useValue:"X-XSRF-TOKEN"}]}),U})(),fe=(()=>{class U{}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275mod=f.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=f.\u0275\u0275defineInjector({providers:[$,{provide:h,useClass:Tt},pt,{provide:r,useExisting:pt}],imports:[[Ee.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),U})(),H=(()=>{class U{}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275mod=f.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=f.\u0275\u0275defineInjector({providers:[ft,{provide:Xe,useFactory:Et},{provide:ie,useClass:Pe,multi:!0}]}),U})();const T=n.XhrFactory},5e3:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>vo,APP_BOOTSTRAP_LISTENER:()=>sg,APP_ID:()=>tg,APP_INITIALIZER:()=>bd,ApplicationInitStatus:()=>la,ApplicationModule:()=>XC,ApplicationRef:()=>Wa,Attribute:()=>ha,COMPILER_OPTIONS:()=>ug,CUSTOM_ELEMENTS_SCHEMA:()=>Mh,ChangeDetectionStrategy:()=>Be,ChangeDetectorRef:()=>Mg,Compiler:()=>Ed,CompilerFactory:()=>oC,Component:()=>Q1,ComponentFactory:()=>El,ComponentFactoryResolver:()=>Na,ComponentRef:()=>V0,ContentChild:()=>Vl,ContentChildren:()=>Bl,DEFAULT_CURRENCY_CODE:()=>ag,DebugElement:()=>kC,DebugEventListener:()=>DC,DebugNode:()=>LC,DefaultIterableDiffer:()=>Ag,Directive:()=>eg,ElementRef:()=>Ua,EmbeddedViewRef:()=>SC,ErrorHandler:()=>Ca,EventEmitter:()=>Xs,Host:()=>Qd,HostBinding:()=>J1,HostListener:()=>eC,INJECTOR:()=>dl,Inject:()=>fo,InjectFlags:()=>Ee,Injectable:()=>by,InjectionToken:()=>lr,Injector:()=>gs,Input:()=>Z1,IterableDiffers:()=>kl,KeyValueDiffers:()=>Pl,LOCALE_ID:()=>Rl,MissingTranslationStrategy:()=>Zs,ModuleWithComponentFactories:()=>lg,NO_ERRORS_SCHEMA:()=>Sh,NgModule:()=>tC,NgModuleFactory:()=>X0,NgModuleRef:()=>sa,NgProbeToken:()=>mC,NgZone:()=>_s,Optional:()=>Is,Output:()=>q1,PACKAGE_ROOT_URL:()=>iC,PLATFORM_ID:()=>rg,PLATFORM_INITIALIZER:()=>ig,Pipe:()=>X1,PlatformRef:()=>Ad,Query:()=>yo,QueryList:()=>Tl,ReflectiveInjector:()=>Jo,ReflectiveKey:()=>ao,Renderer2:()=>c1,RendererFactory2:()=>H0,RendererStyleFlags2:()=>Ks,ResolvedReflectiveFactory:()=>mp,Sanitizer:()=>j0,SecurityContext:()=>br,Self:()=>io,SimpleChange:()=>Cr,SkipSelf:()=>Eo,TRANSLATIONS:()=>rC,TRANSLATIONS_FORMAT:()=>sC,TemplateRef:()=>$a,Testability:()=>fg,TestabilityRegistry:()=>Dd,Type:()=>Oo,VERSION:()=>z0,Version:()=>W0,ViewChild:()=>Hl,ViewChildren:()=>$l,ViewContainerRef:()=>Il,ViewEncapsulation:()=>ut,ViewRef:()=>Dg,asNativeElements:()=>TC,assertPlatform:()=>vg,createNgModuleRef:()=>v1,createPlatform:()=>gg,createPlatformFactory:()=>_g,defineInjectable:()=>et,destroyPlatform:()=>gC,enableProdMode:()=>CC,forwardRef:()=>i,getDebugNode:()=>Ll,getModuleFactory:()=>EC,getNgModuleById:()=>wC,getPlatform:()=>Id,inject:()=>Fi,isDevMode:()=>bC,platformCore:()=>jC,resolveForwardRef:()=>c,setTestabilityGetter:()=>fC,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>xd,\u0275APP_ID_RANDOM_PROVIDER:()=>ng,\u0275ChangeDetectorStatus:()=>$e,\u0275ComponentFactory:()=>El,\u0275Console:()=>og,\u0275DEFAULT_LOCALE_ID:()=>Ra,\u0275INJECTOR_SCOPE:()=>Uu,\u0275LifecycleHooksFeature:()=>tp,\u0275LocaleDataIndex:()=>Vn,\u0275NG_COMP_DEF:()=>gt,\u0275NG_DIR_DEF:()=>Vt,\u0275NG_ELEMENT_ID:()=>te,\u0275NG_INJ_DEF:()=>Tt,\u0275NG_MOD_DEF:()=>Ue,\u0275NG_PIPE_DEF:()=>qt,\u0275NG_PROV_DEF:()=>At,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>wl,\u0275NO_CHANGE:()=>ei,\u0275NgModuleFactory:()=>Dl,\u0275NoopNgZone:()=>hg,\u0275ReflectionCapabilities:()=>bn,\u0275Render3ComponentFactory:()=>Sl,\u0275Render3ComponentRef:()=>Y0,\u0275Render3NgModuleRef:()=>sd,\u0275RuntimeError:()=>b,\u0275ViewRef:()=>ra,\u0275_sanitizeHtml:()=>hh,\u0275_sanitizeUrl:()=>_a,\u0275allowSanitizationBypassAndThrow:()=>Po,\u0275bypassSanitizationTrustHtml:()=>Xg,\u0275bypassSanitizationTrustResourceUrl:()=>e_,\u0275bypassSanitizationTrustScript:()=>qg,\u0275bypassSanitizationTrustStyle:()=>Zg,\u0275bypassSanitizationTrustUrl:()=>Jg,\u0275clearResolutionOfComponentResourcesQueue:()=>eh,\u0275compileComponent:()=>Hm,\u0275compileDirective:()=>yd,\u0275compileNgModule:()=>Fm,\u0275compileNgModuleDefs:()=>Nm,\u0275compileNgModuleFactory:()=>pg,\u0275compilePipe:()=>qm,\u0275createInjector:()=>Vu,\u0275defaultIterableDiffers:()=>Fg,\u0275defaultKeyValueDiffers:()=>Ng,\u0275detectChanges:()=>Nf,\u0275devModeEqual:()=>rp,\u0275findLocaleData:()=>Qc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>km,\u0275getDebugNode:()=>Ll,\u0275getDebugNodeR2:()=>RC,\u0275getDirectives:()=>Yf,\u0275getHostElement:()=>ju,\u0275getInjectableDef:()=>pt,\u0275getLContext:()=>Qr,\u0275getLocaleCurrencyCode:()=>ub,\u0275getLocalePluralCase:()=>c0,\u0275getSanitizationBypassType:()=>rh,\u0275global:()=>Kt,\u0275injectChangeDetectorRef:()=>Sg,\u0275isBoundToModule:()=>mg,\u0275isDefaultChangeDetectionStrategy:()=>st,\u0275isListLikeIterable:()=>Ta,\u0275isObservable:()=>Mp,\u0275isPromise:()=>fc,\u0275isSubscribable:()=>wp,\u0275ivyEnabled:()=>ZC,\u0275makeDecorator:()=>Ts,\u0275markDirty:()=>Uf,\u0275noSideEffects:()=>_e,\u0275patchComponentDefWithScope:()=>gd,\u0275publishDefaultGlobalUtils:()=>iy,\u0275publishGlobalUtil:()=>As,\u0275registerLocaleData:()=>lb,\u0275registerNgModuleType:()=>q0,\u0275renderComponent:()=>ry,\u0275resetCompiledComponents:()=>B1,\u0275resetJitOptions:()=>N1,\u0275resolveComponentResources:()=>qd,\u0275setClassMetadata:()=>Q0,\u0275setCurrentInjector:()=>wi,\u0275setDocument:()=>Jr,\u0275setLocaleId:()=>f0,\u0275store:()=>op,\u0275stringify:()=>h,\u0275transitiveScopesFor:()=>ja,\u0275unregisterLocaleData:()=>cb,\u0275unwrapSafeValue:()=>ro,\u0275whenRendered:()=>sy,\u0275\u0275CopyDefinitionFeature:()=>ip,\u0275\u0275FactoryTarget:()=>vr,\u0275\u0275InheritDefinitionFeature:()=>zu,\u0275\u0275NgOnChangesFeature:()=>Sr,\u0275\u0275ProvidersFeature:()=>B0,\u0275\u0275advance:()=>nf,\u0275\u0275attribute:()=>Yu,\u0275\u0275attributeInterpolate1:()=>Qu,\u0275\u0275attributeInterpolate2:()=>Xu,\u0275\u0275attributeInterpolate3:()=>Zu,\u0275\u0275attributeInterpolate4:()=>qu,\u0275\u0275attributeInterpolate5:()=>Ju,\u0275\u0275attributeInterpolate6:()=>ec,\u0275\u0275attributeInterpolate7:()=>tc,\u0275\u0275attributeInterpolate8:()=>nc,\u0275\u0275attributeInterpolateV:()=>ic,\u0275\u0275classMap:()=>Np,\u0275\u0275classMapInterpolate1:()=>zp,\u0275\u0275classMapInterpolate2:()=>Kp,\u0275\u0275classMapInterpolate3:()=>Gp,\u0275\u0275classMapInterpolate4:()=>Yp,\u0275\u0275classMapInterpolate5:()=>Qp,\u0275\u0275classMapInterpolate6:()=>Xp,\u0275\u0275classMapInterpolate7:()=>Zp,\u0275\u0275classMapInterpolate8:()=>qp,\u0275\u0275classMapInterpolateV:()=>Jp,\u0275\u0275classProp:()=>Tc,\u0275\u0275contentQuery:()=>xm,\u0275\u0275defineComponent:()=>Me,\u0275\u0275defineDirective:()=>He,\u0275\u0275defineInjectable:()=>Pe,\u0275\u0275defineInjector:()=>at,\u0275\u0275defineNgModule:()=>An,\u0275\u0275definePipe:()=>mt,\u0275\u0275directiveInject:()=>Aa,\u0275\u0275disableBindings:()=>Bs,\u0275\u0275element:()=>bp,\u0275\u0275elementContainer:()=>Cp,\u0275\u0275elementContainerEnd:()=>hc,\u0275\u0275elementContainerStart:()=>dc,\u0275\u0275elementEnd:()=>cc,\u0275\u0275elementStart:()=>uc,\u0275\u0275enableBindings:()=>ds,\u0275\u0275getCurrentView:()=>Ep,\u0275\u0275getInheritedFactory:()=>Ds,\u0275\u0275hostProperty:()=>Gc,\u0275\u0275i18n:()=>k0,\u0275\u0275i18nApply:()=>F0,\u0275\u0275i18nAttributes:()=>P0,\u0275\u0275i18nEnd:()=>Jc,\u0275\u0275i18nExp:()=>ed,\u0275\u0275i18nPostprocess:()=>N0,\u0275\u0275i18nStart:()=>qc,\u0275\u0275inject:()=>Cn,\u0275\u0275injectAttribute:()=>da,\u0275\u0275invalidFactory:()=>yp,\u0275\u0275invalidFactoryDep:()=>Pi,\u0275\u0275listener:()=>pc,\u0275\u0275loadQuery:()=>Im,\u0275\u0275namespaceHTML:()=>Es,\u0275\u0275namespaceMathML:()=>Si,\u0275\u0275namespaceSVG:()=>dr,\u0275\u0275nextContext:()=>Tp,\u0275\u0275ngDeclareClassMetadata:()=>JC,\u0275\u0275ngDeclareComponent:()=>eE,\u0275\u0275ngDeclareDirective:()=>qC,\u0275\u0275ngDeclareFactory:()=>tE,\u0275\u0275ngDeclareInjectable:()=>iE,\u0275\u0275ngDeclareInjector:()=>rE,\u0275\u0275ngDeclareNgModule:()=>sE,\u0275\u0275ngDeclarePipe:()=>oE,\u0275\u0275pipe:()=>mm,\u0275\u0275pipeBind1:()=>gm,\u0275\u0275pipeBind2:()=>_m,\u0275\u0275pipeBind3:()=>vm,\u0275\u0275pipeBind4:()=>ym,\u0275\u0275pipeBindV:()=>bm,\u0275\u0275projection:()=>Ip,\u0275\u0275projectionDef:()=>xp,\u0275\u0275property:()=>ac,\u0275\u0275propertyInterpolate:()=>_c,\u0275\u0275propertyInterpolate1:()=>ml,\u0275\u0275propertyInterpolate2:()=>vc,\u0275\u0275propertyInterpolate3:()=>yc,\u0275\u0275propertyInterpolate4:()=>bc,\u0275\u0275propertyInterpolate5:()=>Cc,\u0275\u0275propertyInterpolate6:()=>Ec,\u0275\u0275propertyInterpolate7:()=>wc,\u0275\u0275propertyInterpolate8:()=>Mc,\u0275\u0275propertyInterpolateV:()=>Sc,\u0275\u0275pureFunction0:()=>em,\u0275\u0275pureFunction1:()=>tm,\u0275\u0275pureFunction2:()=>nm,\u0275\u0275pureFunction3:()=>im,\u0275\u0275pureFunction4:()=>rm,\u0275\u0275pureFunction5:()=>sm,\u0275\u0275pureFunction6:()=>om,\u0275\u0275pureFunction7:()=>am,\u0275\u0275pureFunction8:()=>lm,\u0275\u0275pureFunctionV:()=>um,\u0275\u0275queryRefresh:()=>Dm,\u0275\u0275reference:()=>ap,\u0275\u0275resolveBody:()=>Ah,\u0275\u0275resolveDocument:()=>Ih,\u0275\u0275resolveWindow:()=>xh,\u0275\u0275restoreView:()=>G,\u0275\u0275sanitizeHtml:()=>fh,\u0275\u0275sanitizeResourceUrl:()=>eu,\u0275\u0275sanitizeScript:()=>mh,\u0275\u0275sanitizeStyle:()=>ph,\u0275\u0275sanitizeUrl:()=>Jl,\u0275\u0275sanitizeUrlOrResourceUrl:()=>vh,\u0275\u0275setComponentScope:()=>Ke,\u0275\u0275setNgModuleScope:()=>lt,\u0275\u0275styleMap:()=>Ps,\u0275\u0275styleMapInterpolate1:()=>e0,\u0275\u0275styleMapInterpolate2:()=>t0,\u0275\u0275styleMapInterpolate3:()=>n0,\u0275\u0275styleMapInterpolate4:()=>r0,\u0275\u0275styleMapInterpolate5:()=>s0,\u0275\u0275styleMapInterpolate6:()=>o0,\u0275\u0275styleMapInterpolate7:()=>a0,\u0275\u0275styleMapInterpolate8:()=>l0,\u0275\u0275styleMapInterpolateV:()=>u0,\u0275\u0275styleProp:()=>Dc,\u0275\u0275stylePropInterpolate1:()=>Uc,\u0275\u0275stylePropInterpolate2:()=>Bc,\u0275\u0275stylePropInterpolate3:()=>Vc,\u0275\u0275stylePropInterpolate4:()=>$c,\u0275\u0275stylePropInterpolate5:()=>Hc,\u0275\u0275stylePropInterpolate6:()=>jc,\u0275\u0275stylePropInterpolate7:()=>Wc,\u0275\u0275stylePropInterpolate8:()=>zc,\u0275\u0275stylePropInterpolateV:()=>Kc,\u0275\u0275syntheticHostListener:()=>mc,\u0275\u0275syntheticHostProperty:()=>Yc,\u0275\u0275template:()=>sp,\u0275\u0275templateRefExtractor:()=>Lm,\u0275\u0275text:()=>Wp,\u0275\u0275textInterpolate:()=>Ic,\u0275\u0275textInterpolate1:()=>_l,\u0275\u0275textInterpolate2:()=>Ac,\u0275\u0275textInterpolate3:()=>Oc,\u0275\u0275textInterpolate4:()=>Rc,\u0275\u0275textInterpolate5:()=>Lc,\u0275\u0275textInterpolate6:()=>kc,\u0275\u0275textInterpolate7:()=>Pc,\u0275\u0275textInterpolate8:()=>Fc,\u0275\u0275textInterpolateV:()=>Nc,\u0275\u0275trustConstantHtml:()=>gh,\u0275\u0275trustConstantResourceUrl:()=>_h,\u0275\u0275viewQuery:()=>Tm});var n=p(8929),f=p(2654),_=p(6498),m=p(6787),s=p(8117);function d(e){for(let t in e)if(e[t]===d)return t;throw Error("Could not find renamed property on target object.")}function u(e,t){for(const a in t)t.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=t[a])}function h(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(h).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 a=t.indexOf("\n");return-1===a?t:t.substring(0,a)}function r(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const o=d({__forward_ref__:d});function i(e){return e.__forward_ref__=i,e.toString=function(){return h(this())},e}function c(e){return l(e)?e():e}function l(e){return"function"==typeof e&&e.hasOwnProperty(o)&&e.__forward_ref__===i}class b extends Error{constructor(t,a){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,a)),this.code=t}}function I(e){return"string"==typeof e?e:null==e?"":String(e)}function R(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():I(e)}function w(e,t){const a=t?` in ${t}`:"";throw new b("201",`No provider for ${R(e)} found${a}`)}function Ie(e,t,a,v){throw new Error(`ASSERTION ERROR: ${e}`+(null==v?"":` [Expected=> ${a} ${v} ${t} <=Actual]`))}function Pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const et=Pe;function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function pt(e){return vt(e,At)||vt(e,Bt)}function vt(e,t){return e.hasOwnProperty(t)?e[t]:null}function _t(e){return e&&(e.hasOwnProperty(Tt)||e.hasOwnProperty(Et))?e[Tt]:null}const At=d({\u0275prov:d}),Tt=d({\u0275inj:d}),Bt=d({ngInjectableDef:d}),Et=d({ngInjectorDef:d});var Ee=(()=>((Ee=Ee||{})[Ee.Default=0]="Default",Ee[Ee.Host=1]="Host",Ee[Ee.Self=2]="Self",Ee[Ee.SkipSelf=4]="SkipSelf",Ee[Ee.Optional=8]="Optional",Ee))();let fe;function T(e){const t=fe;return fe=e,t}function U(e,t,a){const v=pt(e);return v&&"root"==v.providedIn?void 0===v.value?v.value=v.factory():v.value:a&Ee.Optional?null:void 0!==t?t:void w(h(e),"Injector")}function _e(e){return{toString:e}.toString()}var Be=(()=>((Be=Be||{})[Be.OnPush=0]="OnPush",Be[Be.Default=1]="Default",Be))(),$e=(()=>(($e=$e||{})[$e.CheckOnce=0]="CheckOnce",$e[$e.Checked=1]="Checked",$e[$e.CheckAlways=2]="CheckAlways",$e[$e.Detached=3]="Detached",$e[$e.Errored=4]="Errored",$e[$e.Destroyed=5]="Destroyed",$e))();function st(e){return null==e||e===Be.Default}var ut=(()=>{return(e=ut||(ut={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ut;var e})();const St="undefined"!=typeof globalThis&&globalThis,Xt="undefined"!=typeof window&&window,tn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Kt=St||"undefined"!=typeof global&&global||Xt||tn,Lt={},Qe=[],gt=d({\u0275cmp:d}),Vt=d({\u0275dir:d}),qt=d({\u0275pipe:d}),Ue=d({\u0275mod:d}),Se=d({\u0275fac:d}),te=d({__NG_ELEMENT_ID__:d});let se=0;function Me(e){return _e(()=>{const a={},v={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:a,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Be.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Qe,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ut.Emulated,id:"c",styles:e.styles||Qe,_:null,setInput:null,schemas:e.schemas||null,tView:null},E=e.directives,O=e.features,j=e.pipes;return v.id+=se++,v.inputs=ct(e.inputs,a),v.outputs=ct(e.outputs),O&&O.forEach(oe=>oe(v)),v.directiveDefs=E?()=>("function"==typeof E?E():E).map(It):null,v.pipeDefs=j?()=>("function"==typeof j?j():j).map(Qt):null,v})}function Ke(e,t,a){const v=e.\u0275cmp;v.directiveDefs=()=>t.map(It),v.pipeDefs=()=>a.map(Qt)}function It(e){return Ot(e)||un(e)}function Qt(e){return on(e)}const cn={};function An(e){return _e(()=>{const t={type:e.type,bootstrap:e.bootstrap||Qe,declarations:e.declarations||Qe,imports:e.imports||Qe,exports:e.exports||Qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(cn[e.id]=e.type),t})}function lt(e,t){return _e(()=>{const a=On(e,!0);a.declarations=t.declarations||Qe,a.imports=t.imports||Qe,a.exports=t.exports||Qe})}function ct(e,t){if(null==e)return Lt;const a={};for(const v in e)if(e.hasOwnProperty(v)){let E=e[v],O=E;Array.isArray(E)&&(O=E[1],E=E[0]),a[E]=v,t&&(t[E]=O)}return a}const He=Me;function mt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ot(e){return e[gt]||null}function un(e){return e[Vt]||null}function on(e){return e[qt]||null}function On(e,t){const a=e[Ue]||null;if(!a&&!0===t)throw new Error(`Type ${h(e)} does not have '\u0275mod' property.`);return a}function Xn(e){return Array.isArray(e)&&"object"==typeof e[1]}function pi(e){return Array.isArray(e)&&!0===e[1]}function Gi(e){return 0!=(8&e.flags)}function Ui(e){return 2==(2&e.flags)}function tr(e){return 1==(1&e.flags)}function bi(e){return null!==e.template}function Rn(e){return 0!=(512&e[2])}function ir(e,t){return e.hasOwnProperty(Se)?e[Se]:null}class Cr{constructor(t,a,v){this.previousValue=t,this.currentValue=a,this.firstChange=v}isFirstChange(){return this.firstChange}}function Sr(){return mr}function mr(e){return e.type.prototype.ngOnChanges&&(e.setInput=jr),Hr}function Hr(){const e=Wr(this),t=null==e?void 0:e.current;if(t){const a=e.previous;if(a===Lt)e.previous=t;else for(let v in t)a[v]=t[v];e.current=null,this.ngOnChanges(t)}}function jr(e,t,a,v){const E=Wr(e)||function(e,t){return e[Wi]=t}(e,{previous:Lt,current:null}),O=E.current||(E.current={}),j=E.previous,oe=this.declaredInputs[a],ge=j[oe];O[oe]=new Cr(ge&&ge.currentValue,t,j===Lt),e[v]=t}Sr.ngInherit=!0;const Wi="__ngSimpleChanges__";function Wr(e){return e[Wi]||null}let Dr=null;const Lr=e=>{Dr=e},Ji=function(e,t,a){null!=Dr&&Dr(e,t,a)},Fr="http://www.w3.org/2000/svg",ls="http://www.w3.org/1998/MathML/";let kr;function Jr(e){kr=e}function Tr(){return void 0!==kr?kr:"undefined"!=typeof document?document:void 0}function si(e){return!!e.listen}const zr={createRenderer:(e,t)=>Tr()};function be(e){for(;Array.isArray(e);)e=e[0];return e}function V(e,t){return be(t[e])}function ve(e,t){return be(t[e.index])}function Nt(e,t){return e.data[t]}function nn(e,t){return e[t]}function In(e,t){const a=t[e];return Xn(a)?a:a[0]}function ni(e){return 4==(4&e[2])}function di(e){return 128==(128&e[2])}function hi(e,t){return null==t?null:e[t]}function Ei(e){e[18]=0}function ki(e,t){e[5]+=t;let a=e,v=e[3];for(;null!==v&&(1===t&&1===a[5]||-1===t&&0===a[5]);)v[5]+=t,a=v,v=v[3]}const xn={lFrame:bs(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function es(){return xn.bindingsEnabled}function ds(){xn.bindingsEnabled=!0}function Bs(){xn.bindingsEnabled=!1}function we(){return xn.lFrame.lView}function N(){return xn.lFrame.tView}function G(e){return xn.lFrame.contextLView=e,e[8]}function pe(){let e=Re();for(;null!==e&&64===e.type;)e=e.parent;return e}function Re(){return xn.lFrame.currentTNode}function ze(){const e=xn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function rt(e,t){const a=xn.lFrame;a.currentTNode=e,a.isParent=t}function dt(){return xn.lFrame.isParent}function Rt(){xn.lFrame.isParent=!1}function pn(){return xn.isInCheckNoChangesMode}function Pn(e){xn.isInCheckNoChangesMode=e}function Ln(){const e=xn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _n(){return xn.lFrame.bindingIndex}function Bn(e){return xn.lFrame.bindingIndex=e}function Kn(){return xn.lFrame.bindingIndex++}function _i(e){const t=xn.lFrame,a=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,a}function sr(e){xn.lFrame.inI18n=e}function Qi(e,t){const a=xn.lFrame;a.bindingIndex=a.bindingRootIndex=e,fr(t)}function fr(e){xn.lFrame.currentDirectiveIndex=e}function Xi(e){const t=xn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function gr(){return xn.lFrame.currentQueryIndex}function zi(e){xn.lFrame.currentQueryIndex=e}function Pr(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ys(e,t,a){if(a&Ee.SkipSelf){let E=t,O=e;for(;!(E=E.parent,null!==E||a&Ee.Host||(E=Pr(O),null===E||(O=O[15],10&E.type))););if(null===E)return!1;t=E,e=O}const v=xn.lFrame=Ur();return v.currentTNode=t,v.lView=e,!0}function Yi(e){const t=Ur(),a=e[1];xn.lFrame=t,t.currentTNode=a.firstChild,t.lView=e,t.tView=a,t.contextLView=e,t.bindingIndex=a.bindingStartIndex,t.inI18n=!1}function Ur(){const e=xn.lFrame,t=null===e?null:e.child;return null===t?bs(e):t}function bs(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Cs(){const e=xn.lFrame;return xn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const mn=Cs;function Mn(){const e=Cs();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ii(){return xn.lFrame.selectedIndex}function Hi(e){xn.lFrame.selectedIndex=e}function Zn(){const e=xn.lFrame;return Nt(e.tView,e.selectedIndex)}function dr(){xn.lFrame.currentNamespace=Fr}function Si(){xn.lFrame.currentNamespace=ls}function Es(){xn.lFrame.currentNamespace=null}function Ir(e,t){for(let a=t.directiveStart,v=t.directiveEnd;a=v)break}else t[ge]<0&&(e[18]+=65536),(oe>11>16&&(3&e[2])===t){e[2]+=2048,Ji(4,oe,O);try{O.call(oe)}finally{Ji(5,oe,O)}}}else{Ji(4,oe,O);try{O.call(oe)}finally{Ji(5,oe,O)}}}class rs{constructor(t,a,v){this.factory=t,this.resolving=!1,this.canSeeViewProviders=a,this.injectImpl=v}}function Mt(e,t,a){const v=si(e);let E=0;for(;Et){j=O-1;break}}}for(;O>16}(e),v=t;for(;a>0;)v=v[15],a--;return v}let Te=!0;function Ve(e){const t=Te;return Te=e,t}let vn=0;function Dn(e,t){const a=Di(e,t);if(-1!==a)return a;const v=t[1];v.firstCreatePass&&(e.injectorIndex=t.length,vi(v.data,e),vi(t,null),vi(v.blueprint,null));const E=hs(e,t),O=e.injectorIndex;if(me(E)){const j=le(E),oe=Ce(E,t),ge=oe[1].data;for(let De=0;De<8;De++)t[O+De]=oe[j+De]|ge[j+De]}return t[O+8]=E,O}function vi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Di(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function hs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let a=0,v=null,E=t;for(;null!==E;){const O=E[1],j=O.type;if(v=2===j?O.declTNode:1===j?E[6]:null,null===v)return-1;if(a++,E=E[15],-1!==v.injectorIndex)return v.injectorIndex|a<<16}return-1}function Gr(e,t,a){!function(e,t,a){let v;"string"==typeof a?v=a.charCodeAt(0)||0:a.hasOwnProperty(te)&&(v=a[te]),null==v&&(v=a[te]=vn++);const E=255&v;t.data[e+(E>>5)]|=1<=0?255&t:ua:t}(a);if("function"==typeof O){if(!ys(t,e,v))return v&Ee.Host?ps(E,a,v):eo(t,a,v,E);try{const j=O(v);if(null!=j||v&Ee.Optional)return j;w(a)}finally{mn()}}else if("number"==typeof O){let j=null,oe=Di(e,t),ge=-1,De=v&Ee.Host?t[16][6]:null;for((-1===oe||v&Ee.SkipSelf)&&(ge=-1===oe?hs(e,t):t[oe+8],-1!==ge&&Ga(v,!1)?(j=t[1],oe=le(ge),t=Ce(ge,t)):oe=-1);-1!==oe;){const ke=t[1];if(Ka(O,oe,ke.data)){const Je=Nl(oe,t,a,j,v,De);if(Je!==Rs)return Je}ge=t[oe+8],-1!==ge&&Ga(v,t[1].data[oe+8]===De)&&Ka(O,oe,t)?(j=ke,oe=le(ge),t=Ce(ge,t)):oe=-1}}}return eo(t,a,v,E)}const Rs={};function ua(){return new lo(pe(),we())}function Nl(e,t,a,v,E,O){const j=t[1],oe=j.data[e+8],ke=Io(oe,j,a,null==v?Ui(oe)&&Te:v!=j&&0!=(3&oe.type),E&Ee.Host&&O===oe);return null!==ke?go(t,j,ke,oe):Rs}function Io(e,t,a,v,E){const O=e.providerIndexes,j=t.data,oe=1048575&O,ge=e.directiveStart,ke=O>>20,Ct=E?oe+ke:e.directiveEnd;for(let Pt=v?oe:oe+ke;Pt=ge&&Yt.type===a)return Pt}if(E){const Pt=j[ge];if(Pt&&bi(Pt)&&Pt.type===a)return ge}return null}function go(e,t,a,v){let E=e[a];const O=t.data;if(function(e){return e instanceof rs}(E)){const j=E;j.resolving&&function(e,t){throw new b("200",`Circular dependency in DI detected for ${e}`)}(R(O[a]));const oe=Ve(j.canSeeViewProviders);j.resolving=!0;const ge=j.injectImpl?T(j.injectImpl):null;ys(e,v,Ee.Default);try{E=e[a]=j.factory(void 0,O,e,v),t.firstCreatePass&&a>=v.directiveStart&&function(e,t,a){const{ngOnChanges:v,ngOnInit:E,ngDoCheck:O}=t.type.prototype;if(v){const j=mr(t);(a.preOrderHooks||(a.preOrderHooks=[])).push(e,j),(a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(e,j)}E&&(a.preOrderHooks||(a.preOrderHooks=[])).push(0-e,E),O&&((a.preOrderHooks||(a.preOrderHooks=[])).push(e,O),(a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(e,O))}(a,O[a],t)}finally{null!==ge&&T(ge),Ve(oe),j.resolving=!1,mn()}}return E}function Ka(e,t,a){return!!(a[t+(e>>5)]&1<{const t=e.prototype.constructor,a=t[Se]||ca(t),v=Object.prototype;let E=Object.getPrototypeOf(e.prototype).constructor;for(;E&&E!==v;){const O=E[Se]||ca(E);if(O&&O!==a)return O;E=Object.getPrototypeOf(E)}return O=>new O})}function ca(e){return l(e)?()=>{const t=ca(c(e));return t&&t()}:ir(e)}function da(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const a=e.attrs;if(a){const v=a.length;let E=0;for(;E{const O=_o(t);function j(...oe){if(this instanceof j)return O.call(this,...oe),this;const ge=new j(...oe);return function(ke){return E&&E(ke,...oe),(ke.hasOwnProperty(to)?ke[to]:Object.defineProperty(ke,to,{value:[]})[to]).push(ge),v&&v(ke),ke}}return a&&(j.prototype=Object.create(a.prototype)),j.prototype.ngMetadataName=e,j.annotationCls=j,j})}function _o(e){return function(...a){if(e){const v=e(...a);for(const E in v)this[E]=v[E]}}}function Hs(e,t,a){return _e(()=>{const v=_o(t);function E(...O){if(this instanceof E)return v.apply(this,O),this;const j=new E(...O);return oe.annotation=j,oe;function oe(ge,De,ke){const Je=ge.hasOwnProperty(uo)?ge[uo]:Object.defineProperty(ge,uo,{value:[]})[uo];for(;Je.length<=ke;)Je.push(null);return(Je[ke]=Je[ke]||[]).push(j),ge}}return a&&(E.prototype=Object.create(a.prototype)),E.prototype.ngMetadataName=e,E.annotationCls=E,E})}function js(e,t,a,v){return _e(()=>{const E=_o(t);function O(...j){if(this instanceof O)return E.apply(this,j),this;const oe=new O(...j);return function(De,ke){const Je=De.constructor,Ct=Je.hasOwnProperty(co)?Je[co]:Object.defineProperty(Je,co,{value:{}})[co];Ct[ke]=Ct.hasOwnProperty(ke)&&Ct[ke]||[],Ct[ke].unshift(oe),v&&v(De,ke,...j)}}return a&&(O.prototype=Object.create(a.prototype)),O.prototype.ngMetadataName=e,O.annotationCls=O,O})}const ha=Hs("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>da(e)}));class lr{constructor(t,a){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof a?this.__NG_ELEMENT_ID__=a:void 0!==a&&(this.\u0275prov=Pe({token:this,providedIn:a.providedIn||"root",factory:a.factory}))}toString(){return`InjectionToken ${this._desc}`}}const vo=new lr("AnalyzeForEntryComponents");class yo{}const Bl=js("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),yo),Vl=js("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),yo),$l=js("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),yo),Hl=js("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),yo);var vr=(()=>((vr=vr||{})[vr.Directive=0]="Directive",vr[vr.Component=1]="Component",vr[vr.Injectable=2]="Injectable",vr[vr.Pipe=3]="Pipe",vr[vr.NgModule=4]="NgModule",vr))();function yr(e){const t=Kt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Oo=Function;function bo(e){return"function"==typeof e}function os(e,t){void 0===t&&(t=e);for(let a=0;aArray.isArray(a)?xs(a,t):t(a))}function Ya(e,t,a){t>=e.length?e.push(a):e.splice(t,0,a)}function Co(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ho(e,t){const a=[];for(let v=0;v=0?e[1|v]=a:(v=~v,function(e,t,a,v){let E=e.length;if(E==t)e.push(a,v);else if(1===E)e.push(v,e[0]),e[0]=a;else{for(E--,e.push(e[E-1],e[E]);E>t;)e[E]=e[E-2],E--;e[t]=a,e[t+1]=v}}(e,v,t,a)),v}function ma(e,t){const a=P(e,t);if(a>=0)return e[1|a]}function P(e,t){return function(e,t,a){let v=0,E=e.length>>a;for(;E!==v;){const O=v+(E-v>>1),j=e[O<t?E=O:v=O+1}return~(E<new t(...a)}_zipTypesAndAnnotations(t,a){let v;v=ho(void 0===t?a.length:t.length);for(let E=0;Eke&&ke.type),De=oe.map(ke=>ke&&wt(ke.decorators));return this._zipTypesAndAnnotations(ge,De)}const O=t.hasOwnProperty(uo)&&t[uo],j=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return j||O?this._zipTypesAndAnnotations(j,O):ho(t.length)}parameters(t){if(!bo(t))return[];const a=$t(t);let v=this._ownParameters(t,a);return!v&&a!==Object&&(v=this.parameters(a)),v||[]}_ownAnnotations(t,a){if(t.annotations&&t.annotations!==a.annotations){let v=t.annotations;return"function"==typeof v&&v.annotations&&(v=v.annotations),v}return t.decorators&&t.decorators!==a.decorators?wt(t.decorators):t.hasOwnProperty(to)?t[to]:null}annotations(t){if(!bo(t))return[];const a=$t(t),v=this._ownAnnotations(t,a)||[];return(a!==Object?this.annotations(a):[]).concat(v)}_ownPropMetadata(t,a){if(t.propMetadata&&t.propMetadata!==a.propMetadata){let v=t.propMetadata;return"function"==typeof v&&v.propMetadata&&(v=v.propMetadata),v}if(t.propDecorators&&t.propDecorators!==a.propDecorators){const v=t.propDecorators,E={};return Object.keys(v).forEach(O=>{E[O]=wt(v[O])}),E}return t.hasOwnProperty(co)?t[co]:null}propMetadata(t){if(!bo(t))return{};const a=$t(t),v={};if(a!==Object){const O=this.propMetadata(a);Object.keys(O).forEach(j=>{v[j]=O[j]})}const E=this._ownPropMetadata(t,a);return E&&Object.keys(E).forEach(O=>{const j=[];v.hasOwnProperty(O)&&j.push(...v[O]),j.push(...E[O]),v[O]=j}),v}ownPropMetadata(t){return bo(t)&&this._ownPropMetadata(t,$t(t))||{}}hasLifecycleHook(t,a){return t instanceof Oo&&a in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${h(t)}`}resourceUri(t){return`./${h(t)}`}resolveIdentifier(t,a,v,E){return E}resolveEnum(t,a){return t[a]}}function wt(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function $t(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const hn={},en="__NG_DI_FLAG__",Nn="ngTempTokenPath",Ci=/\n/gm,Ai="__source",gi=d({provide:String,useValue:d});let fn;function wi(e){const t=fn;return fn=e,t}function wr(e,t=Ee.Default){if(void 0===fn)throw new Error("inject() must be called from an injection context");return null===fn?U(e,void 0,t):fn.get(e,t&Ee.Optional?null:void 0,t)}function Cn(e,t=Ee.Default){return(fe||wr)(c(e),t)}function Pi(e){throw new Error("invalid")}const Fi=Cn;function ri(e){const t=[];for(let a=0;a({token:e})),-1),Is=Jn(Hs("Optional"),8),io=Jn(Hs("Self"),2),Eo=Jn(Hs("SkipSelf"),4),Qd=Jn(Hs("Host"),1);let Xd=null;function Kl(){return Xd=Xd||new bn}function qa(e){return Zd(Kl().parameters(e))}function Zd(e){return e.map(t=>function(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let a=0;a{const j=[];E.templateUrl&&j.push(v(E.templateUrl).then(Je=>{E.template=Je}));const oe=E.styleUrls,ge=E.styles||(E.styles=[]),De=E.styles.length;oe&&oe.forEach((Je,Ct)=>{ge.push(""),j.push(v(Je).then(Pt=>{ge[De+Ct]=Pt,oe.splice(oe.indexOf(Je),1),0==oe.length&&(E.styleUrls=void 0)}))});const ke=Promise.all(j).then(()=>function(e){ga.delete(e)}(O));t.push(ke)}),eh(),Promise.all(t).then(()=>{})}let Lo=new Map;const ga=new Set;function Jd(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function eh(){const e=Lo;return Lo=new Map,e}function $g(e){return"string"==typeof e?e:e.text()}let Ja,el;function Gl(){if(void 0===Ja&&(Ja=null,Kt.trustedTypes))try{Ja=Kt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ja}function ko(e){var t;return(null===(t=Gl())||void 0===t?void 0:t.createHTML(e))||e}function Yl(){if(void 0===el&&(el=null,Kt.trustedTypes))try{el=Kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return el}function th(e){var t;return(null===(t=Yl())||void 0===t?void 0:t.createHTML(e))||e}function nh(e){var t;return(null===(t=Yl())||void 0===t?void 0:t.createScript(e))||e}function ih(e){var t;return(null===(t=Yl())||void 0===t?void 0:t.createScriptURL(e))||e}class wo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zg extends wo{getTypeName(){return"HTML"}}class Kg extends wo{getTypeName(){return"Style"}}class Gg extends wo{getTypeName(){return"Script"}}class Yg extends wo{getTypeName(){return"URL"}}class Qg extends wo{getTypeName(){return"ResourceURL"}}function ro(e){return e instanceof wo?e.changingThisBreaksApplicationSecurity:e}function Po(e,t){const a=rh(e);if(null!=a&&a!==t){if("ResourceURL"===a&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${a} (see https://g.co/ng/security#xss)`)}return a===t}function rh(e){return e instanceof wo&&e.getTypeName()||null}function Xg(e){return new zg(e)}function Zg(e){return new Kg(e)}function qg(e){return new Gg(e)}function Jg(e){return new Yg(e)}function e_(e){return new Qg(e)}function sh(e){const t=new n_(e);return function(){try{return!!(new window.DOMParser).parseFromString(ko(""),"text/html")}catch(e){return!1}}()?new t_(t):t}class t_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const a=(new window.DOMParser).parseFromString(ko(t),"text/html").body;return null===a?this.inertDocumentHelper.getInertBodyElement(t):(a.removeChild(a.firstChild),a)}catch(a){return null}}}class n_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const a=this.inertDocument.createElement("html");this.inertDocument.appendChild(a);const v=this.inertDocument.createElement("body");a.appendChild(v)}}getInertBodyElement(t){const a=this.inertDocument.createElement("template");if("content"in a)return a.innerHTML=ko(t),a;const v=this.inertDocument.createElement("body");return v.innerHTML=ko(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(v),v}stripCustomNsAttrs(t){const a=t.attributes;for(let E=a.length-1;0_a(t.trim())).join(", ")}function Ws(e){const t={};for(const a of e.split(","))t[a]=!0;return t}function va(...e){const t={};for(const a of e)for(const v in a)a.hasOwnProperty(v)&&(t[v]=!0);return t}const ah=Ws("area,br,col,hr,img,wbr"),lh=Ws("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),uh=Ws("rp,rt"),Ql=va(ah,va(lh,Ws("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")),va(uh,Ws("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")),va(uh,lh)),Xl=Ws("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zl=Ws("srcset"),ch=va(Xl,Zl,Ws("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"),Ws("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")),o_=Ws("script,style,template");class a_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let a=t.firstChild,v=!0;for(;a;)if(a.nodeType===Node.ELEMENT_NODE?v=this.startElement(a):a.nodeType===Node.TEXT_NODE?this.chars(a.nodeValue):this.sanitizedSomething=!0,v&&a.firstChild)a=a.firstChild;else for(;a;){a.nodeType===Node.ELEMENT_NODE&&this.endElement(a);let E=this.checkClobberedElement(a,a.nextSibling);if(E){a=E;break}a=this.checkClobberedElement(a,a.parentNode)}return this.buf.join("")}startElement(t){const a=t.nodeName.toLowerCase();if(!Ql.hasOwnProperty(a))return this.sanitizedSomething=!0,!o_.hasOwnProperty(a);this.buf.push("<"),this.buf.push(a);const v=t.attributes;for(let E=0;E"),!0}endElement(t){const a=t.nodeName.toLowerCase();Ql.hasOwnProperty(a)&&!ah.hasOwnProperty(a)&&(this.buf.push(""))}chars(t){this.buf.push(dh(t))}checkClobberedElement(t,a){if(a&&(t.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return a}}const l_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u_=/([^\#-~ |!])/g;function dh(e){return e.replace(/&/g,"&").replace(l_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(u_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let tl;function hh(e,t){let a=null;try{tl=tl||sh(e);let v=t?String(t):"";a=tl.getInertBodyElement(v);let E=5,O=v;do{if(0===E)throw new Error("Failed to sanitize html because the input is unstable");E--,v=O,O=a.innerHTML,a=tl.getInertBodyElement(v)}while(v!==O);return ko((new a_).sanitizeChildren(ql(a)||a))}finally{if(a){const v=ql(a)||a;for(;v.firstChild;)v.removeChild(v.firstChild)}}}function ql(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var br=(()=>((br=br||{})[br.NONE=0]="NONE",br[br.HTML=1]="HTML",br[br.STYLE=2]="STYLE",br[br.SCRIPT=3]="SCRIPT",br[br.URL=4]="URL",br[br.RESOURCE_URL=5]="RESOURCE_URL",br))();function fh(e){const t=ya();return t?th(t.sanitize(br.HTML,e)||""):Po(e,"HTML")?th(ro(e)):hh(Tr(),I(e))}function ph(e){const t=ya();return t?t.sanitize(br.STYLE,e)||"":Po(e,"Style")?ro(e):I(e)}function Jl(e){const t=ya();return t?t.sanitize(br.URL,e)||"":Po(e,"URL")?ro(e):_a(I(e))}function eu(e){const t=ya();if(t)return ih(t.sanitize(br.RESOURCE_URL,e)||"");if(Po(e,"ResourceURL"))return ih(ro(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function mh(e){const t=ya();if(t)return nh(t.sanitize(br.SCRIPT,e)||"");if(Po(e,"Script"))return nh(ro(e));throw new Error("unsafe value used in a script context")}function gh(e){return ko(e[0])}function _h(e){return function(e){var t;return(null===(t=Gl())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function vh(e,t,a){return function(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?eu:Jl}(t,a)(e)}function ya(){const e=we();return e&&e[12]}function Qr(e){let t=ba(e);if(t){if(Array.isArray(t)){const a=t;let v,E,O;if(function(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(v=Eh(a,e),-1==v)throw new Error("The provided component was not found in the application");E=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(v=function(e,t){let a=e[1].firstChild;for(;a;){const E=a.directiveEnd;for(let O=a.directiveStart;O=0){const oe=be(O[j]),ge=tu(O,j,oe);Xr(oe,ge),t=ge;break}}}}return t||null}function tu(e,t,a){return{lView:e,nodeIndex:t,native:a,component:void 0,directives:void 0,localRefs:void 0}}function yh(e){let a,t=ba(e);if(Array.isArray(t)){const v=Eh(t,e);a=In(v,t);const E=tu(t,v,a[0]);E.component=e,Xr(e,E),Xr(E.native,E)}else a=In(t.nodeIndex,t.lView);return a}const bh="__ngContext__";function Xr(e,t){e[bh]=t}function ba(e){return e[bh]||null}function nu(e){const t=ba(e);return t?Array.isArray(t)?t:t.lView:null}function Ch(e,t){const a=e[1];for(let v=20;v|^->||--!>|)/;const Th=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Kt))();function xh(e){return e.ownerDocument.defaultView}function Ih(e){return e.ownerDocument}function Ah(e){return e.ownerDocument.body}function zs(e){return e instanceof Function?e():e}var Ks=(()=>((Ks=Ks||{})[Ks.Important=1]="Important",Ks[Ks.DashCase=2]="DashCase",Ks))();let su;function ou(e,t){return su(e,t)}function Ea(e){const t=e[3];return pi(t)?t[3]:t}function kh(e){return function(e){let t=Xn(e)?e:nu(e);for(;t&&!(512&t[2]);)t=Ea(t);return t}(e)[8]}function au(e){return Ph(e[13])}function lu(e){return Ph(e[4])}function Ph(e){for(;null!==e&&!pi(e);)e=e[4];return e}function No(e,t,a,v,E){if(null!=v){let O,j=!1;pi(v)?O=v:Xn(v)&&(j=!0,v=v[0]);const oe=be(v);0===e&&null!==a?null==E?$h(t,a,oe):Mo(t,a,oe,E||null,!0):1===e&&null!==a?Mo(t,a,oe,E||null,!0):2===e?Yh(t,oe,j):3===e&&t.destroyNode(oe),null!=O&&function(e,t,a,v,E){const O=a[7];O!==be(a)&&No(t,e,v,O,E);for(let oe=10;oet.replace(M_,"\u200b$1\u200b"))}(t))}function cu(e,t,a){return si(e)?e.createElement(t,a):null===a?e.createElement(t):e.createElementNS(a,t)}function Nh(e,t){const a=e[9],v=a.indexOf(t),E=t[3];1024&t[2]&&(t[2]&=-1025,ki(E,-1)),a.splice(v,1)}function du(e,t){if(e.length<=10)return;const a=10+t,v=e[a];if(v){const E=v[17];null!==E&&E!==e&&Nh(E,v),t>0&&(e[a-1][4]=v[4]);const O=Co(e,10+t);!function(e,t){wa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(v[1],v);const j=O[19];null!==j&&j.detachView(O[1]),v[3]=null,v[4]=null,v[2]&=-129}return v}function Uh(e,t){if(!(256&t[2])){const a=t[11];si(a)&&a.destroyNode&&wa(e,t,a,3,null,null),function(e){let t=e[13];if(!t)return hu(e[1],e);for(;t;){let a=null;if(Xn(t))a=t[13];else{const v=t[10];v&&(a=v)}if(!a){for(;t&&!t[4]&&t!==e;)Xn(t)&&hu(t[1],t),t=t[3];null===t&&(t=e),Xn(t)&&hu(t[1],t),a=t&&t[4]}t=a}}(t)}}function hu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let a;if(null!=e&&null!=(a=e.destroyHooks))for(let v=0;v=0?v[E=De]():v[E=-De].unsubscribe(),O+=2}else{const j=v[E=a[O+1]];a[O].call(j)}if(null!==v){for(let O=E+1;OO?"":E[Je+1].toLowerCase();const Pt=8&v?Ct:null;if(Pt&&-1!==Zh(Pt,De,0)||2&v&&De!==Ct){if(Ls(v))return!1;j=!0}}}}else{if(!j&&!Ls(v)&&!Ls(ge))return!1;if(j&&Ls(ge))continue;j=!1,v=ge|1&v}}return Ls(v)||j}function Ls(e){return 0==(1&e)}function Y_(e,t,a,v){if(null===t)return-1;let E=0;if(v||!a){let O=!1;for(;E-1)for(a++;a0?'="'+oe+'"':"")+"]"}else 8&v?E+="."+j:4&v&&(E+=" "+j);else""!==E&&!Ls(j)&&(t+=tf(O,E),E=""),v=j,O=O||!Ls(v);a++}return""!==E&&(t+=tf(O,E)),t}const ei={};function nf(e){rf(N(),we(),ii()+e,pn())}function rf(e,t,a,v){if(!v)if(3==(3&t[2])){const O=e.preOrderCheckHooks;null!==O&&_r(t,O,a)}else{const O=e.preOrderHooks;null!==O&&ts(t,O,0,a)}Hi(a)}function sl(e,t){return e<<17|t<<2}function ks(e){return e>>17&32767}function _u(e){return 2|e}function so(e){return(131068&e)>>2}function vu(e,t){return-131069&e|t<<2}function yu(e){return 1|e}const Tu=(()=>Promise.resolve(null))();function gf(e,t){const a=e.contentQueries;if(null!==a)for(let v=0;v20&&rf(e,t,20,pn()),Ji(j?2:0,E),a(v,E)}finally{Hi(O),Ji(j?3:1,E)}}function vf(e,t,a){if(Gi(t)){const E=t.directiveEnd;for(let O=t.directiveStart;O0;){const a=e[--t];if("number"==typeof a&&a<0)return a}return 0})(oe)!=ge&&oe.push(ge),oe.push(v,E,j)}}function Df(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Tf(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function xv(e,t,a){if(a){if(t.exportAs)for(let v=0;v0&&Lu(a)}}function Lu(e){for(let v=au(e);null!==v;v=lu(v))for(let E=10;E0&&Lu(O)}const a=e[1].components;if(null!==a)for(let v=0;v0&&Lu(E)}}function Pv(e,t){const a=In(t,e),v=a[1];(function(e,t){for(let a=t.length;av=E),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Pu(e)),2&e.flags){e.flags&=-3;const E=e.playerHandler;E&&E.flushPlayers()}e.clean=Tu,v(null)})}}(ku(yh(e))[8])}const dl=new lr("INJECTOR",-1);class Bf{get(t,a=hn){if(a===hn){const v=new Error(`NullInjectorError: No provider for ${h(t)}!`);throw v.name="NullInjectorError",v}return a}}const Uu=new lr("Set Injector scope."),Da={},$v={};let Bu;function Vf(){return void 0===Bu&&(Bu=new Bf),Bu}function Vu(e,t=null,a=null,v){const E=$f(e,t,a,v);return E._resolveInjectorDefTypes(),E}function $f(e,t=null,a=null,v){return new Hv(e,a,t||Vf(),v)}class Hv{constructor(t,a,v,E=null){this.parent=v,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const O=[];a&&xs(a,oe=>this.processProvider(oe,t,a)),xs([t],oe=>this.processInjectorType(oe,[],O)),this.records.set(dl,$o(void 0,this));const j=this.records.get(Uu);this.scope=null!=j?j.value:null,this.source=E||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,a=hn,v=Ee.Default){this.assertNotDestroyed();const E=wi(this),O=T(void 0);try{if(!(v&Ee.SkipSelf)){let oe=this.records.get(t);if(void 0===oe){const ge=("function"==typeof(e=t)||"object"==typeof e&&e instanceof lr)&&pt(t);oe=ge&&this.injectableDefInScope(ge)?$o($u(t),Da):null,this.records.set(t,oe)}if(null!=oe)return this.hydrate(t,oe)}return(v&Ee.Self?Vf():this.parent).get(t,a=v&Ee.Optional&&a===hn?null:a)}catch(j){if("NullInjectorError"===j.name){if((j[Nn]=j[Nn]||[]).unshift(h(t)),E)throw j;return function(e,t,a,v){const E=e[Nn];throw t[Ai]&&E.unshift(t[Ai]),e.message=function(e,t,a,v=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let E=h(t);if(Array.isArray(t))E=t.map(h).join(" -> ");else if("object"==typeof t){let O=[];for(let j in t)if(t.hasOwnProperty(j)){let oe=t[j];O.push(j+":"+("string"==typeof oe?JSON.stringify(oe):h(oe)))}E=`{${O.join(", ")}}`}return`${a}${v?"("+v+")":""}[${E}]: ${e.replace(Ci,"\n ")}`}("\n"+e.message,E,a,v),e.ngTokenPath=E,e[Nn]=null,e}(j,t,"R3InjectorError",this.source)}throw j}finally{T(O),wi(E)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((v,E)=>t.push(h(E))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,a,v){if(!(t=c(t)))return!1;let E=_t(t);const O=null==E&&t.ngModule||void 0,j=void 0===O?t:O,oe=-1!==v.indexOf(j);if(void 0!==O&&(E=_t(O)),null==E)return!1;if(null!=E.imports&&!oe){let ke;v.push(j);try{xs(E.imports,Je=>{this.processInjectorType(Je,a,v)&&(void 0===ke&&(ke=[]),ke.push(Je))})}finally{}if(void 0!==ke)for(let Je=0;Jethis.processProvider(Yt,Ct,Pt||Qe))}}this.injectorDefTypes.add(j);const ge=ir(j)||(()=>new j);this.records.set(j,$o(ge,Da));const De=E.providers;if(null!=De&&!oe){const ke=t;xs(De,Je=>this.processProvider(Je,ke,De))}return void 0!==O&&void 0!==t.providers}processProvider(t,a,v){let E=Ho(t=c(t))?t:c(t&&t.provide);const O=(e=t,jf(e)?$o(void 0,e.useValue):$o(Hf(e),Da));var e;if(Ho(t)||!0!==t.multi)this.records.get(E);else{let j=this.records.get(E);j||(j=$o(void 0,Da,!0),j.factory=()=>ri(j.multi),this.records.set(E,j)),E=t,j.multi.push(t)}this.records.set(E,O)}hydrate(t,a){return a.value===Da&&(a.value=$v,a.value=a.factory()),"object"==typeof a.value&&a.value&&null!==(e=a.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(a.value),a.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const a=c(t.providedIn);return"string"==typeof a?"any"===a||a===this.scope:this.injectorDefTypes.has(a)}}function $u(e){const t=pt(e),a=null!==t?t.factory:ir(e);if(null!==a)return a;if(e instanceof lr)throw new Error(`Token ${h(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const v=ho(t,"?");throw new Error(`Can't resolve all parameters for ${h(e)}: (${v.join(", ")}).`)}const a=function(e){const t=e&&(e[At]||e[Bt]);if(t){const a=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${a}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${a}" class.`),t}return null}(e);return null!==a?()=>a.factory(e):()=>new e}(e);throw new Error("unreachable")}function Hf(e,t,a){let v;if(Ho(e)){const E=c(e);return ir(E)||$u(E)}if(jf(e))v=()=>c(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))v=()=>e.useFactory(...ri(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))v=()=>Cn(c(e.useExisting));else{const E=c(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ir(E)||$u(E);v=()=>new E(...ri(e.deps))}return v}function $o(e,t,a=!1){return{factory:e,value:t,multi:a?[]:void 0}}function jf(e){return null!==e&&"object"==typeof e&&gi in e}function Ho(e){return"function"==typeof e}let gs=(()=>{class e{static create(a,v){var E;if(Array.isArray(a))return Vu({name:""},v,a,"");{const O=null!==(E=a.name)&&void 0!==E?E:"";return Vu({name:O},a.parent,a.providers,O)}}}return e.THROW_IF_NOT_FOUND=hn,e.NULL=new Bf,e.\u0275prov=Pe({token:e,providedIn:"any",factory:()=>Cn(dl)}),e.__NG_ELEMENT_ID__=-1,e})();function Hu(e){Wu(e);const t=Qr(e);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const a=t[1].data[e];return 2&a.flags?t[a.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Wf(e){Wu(e);const t=Qr(e);return null===t?null:t.lView[8]}function zf(e){const t=Qr(e);if(null===t)return null;let v,a=t.lView;for(;2===a[1].type&&(v=Ea(a));)a=v;return 512&a[2]?null:a[8]}function Kf(e){return[...kh(e).components]}function Gf(e){const t=Qr(e);return null===t?gs.NULL:new lo(t.lView[1].data[t.nodeIndex],t.lView)}function Yf(e){if(e instanceof Text)return[];const t=Qr(e);if(null===t)return[];const a=t.lView,v=a[1],E=t.nodeIndex;return(null==v?void 0:v.data[E])?(void 0===t.directives&&(t.directives=wh(E,a,!1)),null===t.directives?[]:[...t.directives]):[]}function qv(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const a=Ot(t);if(a)return{inputs:a.inputs,outputs:a.outputs,encapsulation:a.encapsulation,changeDetection:a.onPush?Be.OnPush:Be.Default};const v=un(t);return v?{inputs:v.inputs,outputs:v.outputs}:null}function ju(e){return Qr(e).native}function Qf(e){Wu(e);const t=Qr(e);if(null===t)return[];const a=t.lView,E=a[7],O=a[1].cleanup,j=[];if(O&&E)for(let oe=0;oe=0?"dom":"output",sn="boolean"==typeof Pt&&Pt;e==Je&&j.push({element:e,name:ke,callback:Ct,useCapture:sn,type:Yt})}}return j.sort(ey),j}function ey(e,t){return e.name==t.name?0:e.nameNf(t))}let Zf=!1;function iy(){Zf||(Zf=!0,As("\u0275setProfiler",Lr),As("getDirectiveMetadata",qv),As("getComponent",Hu),As("getContext",Wf),As("getListeners",Qf),As("getOwningComponent",zf),As("getHostElement",ju),As("getInjector",Gf),As("getRootComponents",Kf),As("getDirectives",Yf),As("applyChanges",ny))}function As(e,t){if("undefined"==typeof COMPILED||!COMPILED){const a=Kt;if(a){let v=a.ng;v||(v=a.ng={}),v[e]=t}}}function ry(e,t={}){const a=t.rendererFactory||zr,v=t.sanitizer||null,E=Ot(e);E.type!=e&&(E.type=e);const O=E.selectors[0][0],oe=Cf(a.createRenderer(null,null),t.host||O,E.encapsulation),ge=E.onPush?576:528,De=ep(t.scheduler,t.playerHandler),ke=a.createRenderer(oe,E),Je=ll(0,null,null,1,0,null,null,null,null,null),Ct=Ma(null,Je,De,ge,null,null,a,ke,null,t.injector||null);let Pt;Yi(Ct);try{a.begin&&a.begin(),Pt=Jf(qf(oe,E,Ct,a,ke,v),E,Ct,De,t.hostFeatures||null),Sa(Je,Ct,null),Vo(Je,Ct,null,null)}finally{Mn(),a.end&&a.end()}return Pt}function qf(e,t,a,v,E,O){const j=a[1];a[20]=e;const ge=Uo(j,20,2,"#host",null),De=ge.mergedAttrs=t.hostAttrs;null!==De&&(cl(ge,De,!0),null!==e&&(Mt(E,e,De),null!==ge.classes&&gu(E,e,ge.classes),null!==ge.styles&&Xh(E,e,ge.styles)));const ke=v.createRenderer(e,t),Je=Ma(a,yf(t),null,t.onPush?64:16,a[20],ge,v,ke,O||null,null);return j.firstCreatePass&&(Gr(Dn(ge,a),j,t.type),Tf(j,ge),xf(ge,a.length,1)),ul(a,Je),a[20]=Je}function Jf(e,t,a,v,E){const O=a[1],j=function(e,t,a){const v=pe();e.firstCreatePass&&(a.providersResolver&&a.providersResolver(a),If(e,v,t,Bo(e,t,1,null),a));const E=go(t,e,v.directiveStart,v);Xr(E,t);const O=ve(v,t);return O&&Xr(O,t),E}(O,a,t);if(v.components.push(j),e[8]=j,E&&E.forEach(ge=>ge(j,t)),t.contentQueries){const ge=pe();t.contentQueries(1,j,ge.directiveStart)}const oe=pe();return!O.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Hi(oe.index),Sf(a[1],oe,0,oe.directiveStart,oe.directiveEnd,t),Df(t,j)),j}function ep(e,t){return{components:[],scheduler:e||Th,clean:Vv,playerHandler:t||null,flags:0}}function tp(e,t){Ir(nu(e)[1],pe())}function sy(e){return kh(e).clean}function np(e){return Object.getPrototypeOf(e.prototype).constructor}function zu(e){let t=np(e.type),a=!0;const v=[e];for(;t;){let E;if(bi(e))E=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");E=t.\u0275dir}if(E){if(a){v.push(E);const j=e;j.inputs=Ku(e.inputs),j.declaredInputs=Ku(e.declaredInputs),j.outputs=Ku(e.outputs);const oe=E.hostBindings;oe&&uy(e,oe);const ge=E.viewQuery,De=E.contentQueries;if(ge&&ay(e,ge),De&&ly(e,De),u(e.inputs,E.inputs),u(e.declaredInputs,E.declaredInputs),u(e.outputs,E.outputs),bi(E)&&E.data.animation){const ke=e.data;ke.animation=(ke.animation||[]).concat(E.data.animation)}}const O=E.features;if(O)for(let j=0;j=0;v--){const E=e[v];E.hostVars=t+=E.hostVars,E.hostAttrs=Hn(E.hostAttrs,a=Hn(a,E.hostAttrs))}}(v)}function Ku(e){return e===Lt?{}:e===Qe?[]:e}function ay(e,t){const a=e.viewQuery;e.viewQuery=a?(v,E)=>{t(v,E),a(v,E)}:t}function ly(e,t){const a=e.contentQueries;e.contentQueries=a?(v,E,O)=>{t(v,E,O),a(v,E,O)}:t}function uy(e,t){const a=e.hostBindings;e.hostBindings=a?(v,E)=>{t(v,E),a(v,E)}:t}const cy=["providersResolver"],dy=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function ip(e){let a,t=np(e.type);a=bi(e)?t.\u0275cmp:t.\u0275dir;const v=e;for(const E of cy)v[E]=a[E];if(bi(a))for(const E of dy)v[E]=a[E]}let hl=null;function jo(){if(!hl){const e=Kt.Symbol;if(e&&e.iterator)hl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let a=0;a=e.data.length&&(e.data[a]=null,e.blueprint[a]=null),t[a]=v}function ap(e){return nn(xn.lFrame.contextLView,20+e)}const lp={\u0275\u0275defineInjectable:Pe,\u0275\u0275defineInjector:at,\u0275\u0275inject:Cn,\u0275\u0275invalidFactoryDep:Pi,resolveForwardRef:c};const gy=d({provide:String,useValue:d});function up(e){return void 0!==e.useClass}function cp(e){return void 0!==e.useFactory}const by=Ts("Injectable",void 0,void 0,void 0,(e,t)=>function(e,t){let a=null,v=null;e.hasOwnProperty(At)||Object.defineProperty(e,At,{get:()=>(null===a&&(a=yr().compileInjectable(lp,`ng:///${e.name}/\u0275prov.js`,function(e,t){const a=t||{providedIn:null},v={name:e.name,type:e,typeArgumentCount:0,providedIn:a.providedIn};return(up(a)||cp(a))&&void 0!==a.deps&&(v.deps=Zd(a.deps)),up(a)?v.useClass=a.useClass:function(e){return gy in e}(a)?v.useValue=a.useValue:cp(a)?v.useFactory=a.useFactory:function(e){return void 0!==e.useExisting}(a)&&(v.useExisting=a.useExisting),v}(e,t))),a)}),e.hasOwnProperty(Se)||Object.defineProperty(e,Se,{get:()=>{if(null===v){const E=yr();v=E.compileFactory(lp,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:qa(e),target:E.FactoryTarget.Injectable})}return v},configurable:!0})}(e,t));function rc(e){return e.length>1?" ("+function(e){const t=[];for(let a=0;a-1)return t.push(e[a]),t;t.push(e[a])}return t}(e.slice().reverse()).map(v=>h(v.token)).join(" -> ")+")":""}function sc(e,t,a,v){const E=[t],O=a(E),j=v?function(e,t){const a=`${e} caused by: ${t instanceof Error?t.message:t}`,v=Error(a);return v[iu]=t,v}(O,v):Error(O);return j.addKey=Ey,j.keys=E,j.injectors=[e],j.constructResolvingMessage=a,j[iu]=v,j}function Ey(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function dp(e,t){const a=[];for(let v=0,E=t.length;vv,a=[pl.fromKey(ao.get(e.useExisting))]):e.useFactory?(t=e.useFactory,a=function(e,t){if(t){const a=t.map(v=>[v]);return t.map(v=>vp(e,v,a))}return _p(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,a=Oy);return new mp(t,a)}function Ly(e){return new pp(ao.get(e.provide),[Ry(e)],e.multi||!1)}function ky(e){const v=function(e,t){for(let a=0;a{if(a instanceof Oo)t.push({provide:a,useClass:a});else if(a&&"object"==typeof a&&void 0!==a.provide)t.push(a);else{if(!Array.isArray(a))throw function(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(a);gp(a,t)}}),t}function _p(e){const t=fp.parameters(e);if(!t)return[];if(t.some(a=>null==a))throw dp(e,t);return t.map(a=>vp(e,a,t))}function vp(e,t,a){let v=null,E=!1;if(!Array.isArray(t))return oc(t instanceof fo?t.token:t,E,null);let O=null;for(let j=0;j{class e{constructor(a,v){this._constructionCounter=0,this._providers=a,this.parent=v||null;const E=a.length;this.keyIds=[],this.objs=[];for(let O=0;O=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(a);return this._providers[a]}_new(a){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(e,t){return sc(e,t,function(a){return`Cannot instantiate cyclic dependency!${rc(a)}`})}(this,a.key);return this._instantiateProvider(a)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(a){if(a.multiProvider){const v=[];for(let E=0;Ethis._getByReflectiveDependency(oe))}catch(oe){throw oe.addKey&&oe.addKey(this,a.key),oe}try{j=E(...O)}catch(oe){throw function(e,t,a,v){return sc(e,v,function(E){const O=h(E[0].token);return`${t.message}: Error during instantiation of ${O}!${rc(E)}.`},t)}(this,oe,0,a.key)}return j}_getByReflectiveDependency(a){return this._getByKey(a.key,a.visibility,a.optional?null:hn)}_getByKey(a,v,E){return a===e.INJECTOR_KEY?this:v instanceof io?this._getByKeySelf(a,E):this._getByKeyDefault(a,E,v)}_getObjByKeyId(a){for(let v=0;v' "'+v.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=ao.get(gs),e})();function Aa(e,t=Ee.Default){const a=we();return null===a?Cn(e,t):ss(pe(),a,c(e),t)}function yp(){throw new Error("invalid")}function ac(e,t,a){const v=we();return Zr(v,Kn(),t)&&ms(N(),Zn(),v,e,t,v[11],a,!1),ac}function lc(e,t,a,v,E){const j=E?"class":"style";Ff(e,a,t.inputs[j],j,v)}function uc(e,t,a,v){const E=we(),O=N(),j=20+e,oe=E[11],ge=E[j]=cu(oe,t,xn.lFrame.currentNamespace),De=O.firstCreatePass?function(e,t,a,v,E,O,j){const oe=t.consts,De=Uo(t,e,2,E,hi(oe,O));return Ou(t,a,De,hi(oe,j)),null!==De.attrs&&cl(De,De.attrs,!1),null!==De.mergedAttrs&&cl(De,De.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,De),De}(j,O,E,0,t,a,v):O.data[j];rt(De,!0);const ke=De.mergedAttrs;null!==ke&&Mt(oe,ge,ke);const Je=De.classes;null!==Je&&gu(oe,ge,Je);const Ct=De.styles;null!==Ct&&Xh(oe,ge,Ct),64!=(64&De.flags)&&il(O,E,ge,De),0===xn.lFrame.elementDepthCount&&Xr(ge,E),xn.lFrame.elementDepthCount++,tr(De)&&(Iu(O,E,De),vf(O,De,E)),null!==v&&Au(E,De)}function cc(){let e=pe();dt()?Rt():(e=e.parent,rt(e,!1));const t=e;xn.lFrame.elementDepthCount--;const a=N();a.firstCreatePass&&(Ir(a,e),Gi(e)&&a.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&lc(a,t,we(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&lc(a,t,we(),t.stylesWithoutHost,!1)}function bp(e,t,a,v){uc(e,t,a,v),cc()}function dc(e,t,a){const v=we(),E=N(),O=e+20,j=E.firstCreatePass?function(e,t,a,v,E){const O=t.consts,j=hi(O,v),oe=Uo(t,e,8,"ng-container",j);return null!==j&&cl(oe,j,!0),Ou(t,a,oe,hi(O,E)),null!==t.queries&&t.queries.elementStart(t,oe),oe}(O,E,v,t,a):E.data[O];rt(j,!0);const oe=v[O]=v[11].createComment("");il(E,v,oe,j),Xr(oe,v),tr(j)&&(Iu(E,v,j),vf(E,j,v)),null!=a&&Au(v,j)}function hc(){let e=pe();const t=N();dt()?Rt():(e=e.parent,rt(e,!1)),t.firstCreatePass&&(Ir(t,e),Gi(e)&&t.queries.elementEnd(e))}function Cp(e,t,a){dc(e,t,a),hc()}function Ep(){return we()}function fc(e){return!!e&&"function"==typeof e.then}function wp(e){return!!e&&"function"==typeof e.subscribe}const Mp=wp;function pc(e,t,a,v){const E=we(),O=N(),j=pe();return Sp(O,E,E[11],j,e,t,!!a,v),pc}function mc(e,t){const a=pe(),v=we(),E=N();return Sp(E,v,kf(Xi(E.data),a,v),a,e,t,!1),mc}function Sp(e,t,a,v,E,O,j,oe){const ge=tr(v),ke=e.firstCreatePass&&Lf(e),Je=t[8],Ct=Rf(t);let Pt=!0;if(3&v.type||oe){const dn=ve(v,t),wn=oe?oe(dn):dn,Jt=Ct.length,Un=oe?yi=>oe(be(yi[v.index])):v.index;if(si(a)){let yi=null;if(!oe&&ge&&(yi=function(e,t,a,v){const E=e.cleanup;if(null!=E)for(let O=0;Oge?oe[ge]:null}"string"==typeof j&&(O+=2)}return null}(e,t,E,v.index)),null!==yi)(yi.__ngLastListenerFn__||yi).__ngNextListenerFn__=O,yi.__ngLastListenerFn__=O,Pt=!1;else{O=gc(v,t,Je,O,!1);const Bi=a.listen(wn,E,O);Ct.push(O,Bi),ke&&ke.push(E,Un,Jt,Jt+1)}}else O=gc(v,t,Je,O,!0),wn.addEventListener(E,O,j),Ct.push(O),ke&&ke.push(E,Un,Jt,j)}else O=gc(v,t,Je,O,!1);const Yt=v.outputs;let sn;if(Pt&&null!==Yt&&(sn=Yt[E])){const dn=sn.length;if(dn)for(let wn=0;wn0;)t=t[15],e--;return t}(e,xn.lFrame.contextLView))[8]}(e)}function Hy(e,t){let a=null;const v=function(e){const t=e.attrs;if(null!=t){const a=t.indexOf(5);if(0==(1&a))return t[a+1]}return null}(e);for(let E=0;E=0}const Ar={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Op(e){return e.substring(Ar.key,Ar.keyEnd)}function Ky(e){return e.substring(Ar.value,Ar.valueEnd)}function Rp(e,t){const a=Ar.textEnd;return a===t?-1:(t=Ar.keyEnd=function(e,t,a){for(;t32;)t++;return t}(e,Ar.key=t,a),ea(e,t,a))}function Lp(e,t){const a=Ar.textEnd;let v=Ar.key=ea(e,t,a);return a===v?-1:(v=Ar.keyEnd=function(e,t,a){let v;for(;t=65&&(-33&v)<=90||v>=48&&v<=57);)t++;return t}(e,v,a),v=Pp(e,v,a),v=Ar.value=ea(e,v,a),v=Ar.valueEnd=function(e,t,a){let v=-1,E=-1,O=-1,j=t,oe=j;for(;j32&&(oe=j),O=E,E=v,v=-33&ge}return oe}(e,v,a),Pp(e,v,a))}function kp(e){Ar.key=0,Ar.keyEnd=0,Ar.value=0,Ar.valueEnd=0,Ar.textEnd=e.length}function ea(e,t,a){for(;t=0;a=Lp(t,a))Vp(e,Op(t),Ky(t))}function Np(e){Ns(Yr,Qs,e,!0)}function Qs(e,t){for(let a=function(e){return kp(e),Rp(e,ea(e,0,Ar.textEnd))}(t);a>=0;a=Rp(t,a))Yr(e,Op(t),!0)}function Fs(e,t,a,v){const E=we(),O=N(),j=_i(2);O.firstUpdatePass&&Bp(O,e,j,v),t!==ei&&Zr(E,j,t)&&$p(O,O.data[ii()],E,E[11],e,E[j+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=h(ro(e)))),e}(t,a),v,j)}function Ns(e,t,a,v){const E=N(),O=_i(2);E.firstUpdatePass&&Bp(E,null,O,v);const j=we();if(a!==ei&&Zr(j,O,a)){const oe=E.data[ii()];if(jp(oe,v)&&!Up(E,O)){let ge=v?oe.classesWithoutHost:oe.stylesWithoutHost;null!==ge&&(a=r(ge,a||"")),lc(E,oe,j,a,v)}else!function(e,t,a,v,E,O,j,oe){E===ei&&(E=Qe);let ge=0,De=0,ke=0=e.expandoStartIndex}function Bp(e,t,a,v){const E=e.data;if(null===E[a+1]){const O=E[ii()],j=Up(e,a);jp(O,v)&&null===t&&!j&&(t=!1),t=function(e,t,a,v){const E=Xi(e);let O=v?t.residualClasses:t.residualStyles;if(null===E)0===(v?t.classBindings:t.styleBindings)&&(a=Oa(a=xc(null,e,t,a,v),t.attrs,v),O=null);else{const j=t.directiveStylingLast;if(-1===j||e[j]!==E)if(a=xc(E,e,t,a,v),null===O){let ge=function(e,t,a){const v=a?t.classBindings:t.styleBindings;if(0!==so(v))return e[ks(v)]}(e,t,v);void 0!==ge&&Array.isArray(ge)&&(ge=xc(null,e,t,ge[1],v),ge=Oa(ge,t.attrs,v),function(e,t,a,v){e[ks(a?t.classBindings:t.styleBindings)]=v}(e,t,v,ge))}else O=function(e,t,a){let v;const E=t.directiveEnd;for(let O=1+t.directiveStylingLast;O0)&&(De=!0)}else ke=a;if(E)if(0!==ge){const Ct=ks(e[oe+1]);e[v+1]=sl(Ct,oe),0!==Ct&&(e[Ct+1]=vu(e[Ct+1],v)),e[oe+1]=function(e,t){return 131071&e|t<<17}(e[oe+1],v)}else e[v+1]=sl(oe,0),0!==oe&&(e[oe+1]=vu(e[oe+1],v)),oe=v;else e[v+1]=sl(ge,0),0===oe?oe=v:e[ge+1]=vu(e[ge+1],v),ge=v;De&&(e[v+1]=_u(e[v+1])),Ap(e,ke,v,!0),Ap(e,ke,v,!1),function(e,t,a,v,E){const O=E?e.residualClasses:e.residualStyles;null!=O&&"string"==typeof t&&P(O,t)>=0&&(a[v+1]=yu(a[v+1]))}(t,ke,e,v,O),j=sl(oe,ge),O?t.classBindings=j:t.styleBindings=j}(E,O,t,a,j,v)}}function xc(e,t,a,v,E){let O=null;const j=a.directiveEnd;let oe=a.directiveStylingLast;for(-1===oe?oe=a.directiveStart:oe++;oe0;){const ge=e[E],De=Array.isArray(ge),ke=De?ge[1]:ge,Je=null===ke;let Ct=a[E+1];Ct===ei&&(Ct=Je?Qe:void 0);let Pt=Je?ma(Ct,v):ke===v?Ct:void 0;if(De&&!gl(Pt)&&(Pt=ma(ge,v)),gl(Pt)&&(oe=Pt,j))return oe;const Yt=e[E+1];E=j?ks(Yt):so(Yt)}if(null!==t){let ge=O?t.residualClasses:t.residualStyles;null!=ge&&(oe=ma(ge,v))}return oe}function gl(e){return void 0!==e}function jp(e,t){return 0!=(e.flags&(t?16:32))}function Wp(e,t=""){const a=we(),v=N(),E=e+20,O=v.firstCreatePass?Uo(v,E,1,t,null):v.data[E],j=a[E]=uu(a[11],t);il(v,a,j,O),rt(O,!1)}function Ic(e){return _l("",e,""),Ic}function _l(e,t,a){const v=we(),E=zo(v,e,t,a);return E!==ei&&oo(v,ii(),E),_l}function Ac(e,t,a,v,E){const O=we(),j=Ko(O,e,t,a,v,E);return j!==ei&&oo(O,ii(),j),Ac}function Oc(e,t,a,v,E,O,j){const oe=we(),ge=Go(oe,e,t,a,v,E,O,j);return ge!==ei&&oo(oe,ii(),ge),Oc}function Rc(e,t,a,v,E,O,j,oe,ge){const De=we(),ke=Yo(De,e,t,a,v,E,O,j,oe,ge);return ke!==ei&&oo(De,ii(),ke),Rc}function Lc(e,t,a,v,E,O,j,oe,ge,De,ke){const Je=we(),Ct=Qo(Je,e,t,a,v,E,O,j,oe,ge,De,ke);return Ct!==ei&&oo(Je,ii(),Ct),Lc}function kc(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct){const Pt=we(),Yt=Xo(Pt,e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct);return Yt!==ei&&oo(Pt,ii(),Yt),kc}function Pc(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt){const sn=we(),dn=Zo(sn,e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt);return dn!==ei&&oo(sn,ii(),dn),Pc}function Fc(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn,dn){const wn=we(),Jt=qo(wn,e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn,dn);return Jt!==ei&&oo(wn,ii(),Jt),Fc}function Nc(e){const t=we(),a=Wo(t,e);return a!==ei&&oo(t,ii(),a),Nc}function zp(e,t,a){Ns(Yr,Qs,zo(we(),e,t,a),!0)}function Kp(e,t,a,v,E){Ns(Yr,Qs,Ko(we(),e,t,a,v,E),!0)}function Gp(e,t,a,v,E,O,j){Ns(Yr,Qs,Go(we(),e,t,a,v,E,O,j),!0)}function Yp(e,t,a,v,E,O,j,oe,ge){Ns(Yr,Qs,Yo(we(),e,t,a,v,E,O,j,oe,ge),!0)}function Qp(e,t,a,v,E,O,j,oe,ge,De,ke){Ns(Yr,Qs,Qo(we(),e,t,a,v,E,O,j,oe,ge,De,ke),!0)}function Xp(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct){Ns(Yr,Qs,Xo(we(),e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct),!0)}function Zp(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt){Ns(Yr,Qs,Zo(we(),e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt),!0)}function qp(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn,dn){Ns(Yr,Qs,qo(we(),e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn,dn),!0)}function Jp(e){Ns(Yr,Qs,Wo(we(),e),!0)}function e0(e,t,a){Ps(zo(we(),e,t,a))}function t0(e,t,a,v,E){Ps(Ko(we(),e,t,a,v,E))}function n0(e,t,a,v,E,O,j){Ps(Go(we(),e,t,a,v,E,O,j))}function r0(e,t,a,v,E,O,j,oe,ge){Ps(Yo(we(),e,t,a,v,E,O,j,oe,ge))}function s0(e,t,a,v,E,O,j,oe,ge,De,ke){Ps(Qo(we(),e,t,a,v,E,O,j,oe,ge,De,ke))}function o0(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct){Ps(Xo(we(),e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct))}function a0(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt){Ps(Zo(we(),e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt))}function l0(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn,dn){Ps(qo(we(),e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn,dn))}function u0(e){Ps(Wo(we(),e))}function Uc(e,t,a,v,E){return Fs(e,zo(we(),t,a,v),E,!1),Uc}function Bc(e,t,a,v,E,O,j){return Fs(e,Ko(we(),t,a,v,E,O),j,!1),Bc}function Vc(e,t,a,v,E,O,j,oe,ge){return Fs(e,Go(we(),t,a,v,E,O,j,oe),ge,!1),Vc}function $c(e,t,a,v,E,O,j,oe,ge,De,ke){return Fs(e,Yo(we(),t,a,v,E,O,j,oe,ge,De),ke,!1),$c}function Hc(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct){return Fs(e,Qo(we(),t,a,v,E,O,j,oe,ge,De,ke,Je),Ct,!1),Hc}function jc(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt){return Fs(e,Xo(we(),t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt),Yt,!1),jc}function Wc(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn,dn){return Fs(e,Zo(we(),t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn),dn,!1),Wc}function zc(e,t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn,dn,wn,Jt){return Fs(e,qo(we(),t,a,v,E,O,j,oe,ge,De,ke,Je,Ct,Pt,Yt,sn,dn,wn),Jt,!1),zc}function Kc(e,t,a){return Fs(e,Wo(we(),t),a,!1),Kc}function Gc(e,t,a){const v=we();return Zr(v,Kn(),t)&&ms(N(),Zn(),v,e,t,v[11],a,!0),Gc}function Yc(e,t,a){const v=we();if(Zr(v,Kn(),t)){const O=N(),j=Zn();ms(O,j,v,e,t,kf(Xi(O.data),j,v),a,!0)}return Yc}const Do=void 0;var ab=["en",[["a","p"],["AM","PM"],Do],[["AM","PM"],Do,Do],[["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"]],Do,[["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"]],Do,[["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}",Do,"{1} 'at' {0}",Do],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const a=Math.floor(Math.abs(e)),v=e.toString().replace(/^[^.]*\.?/,"").length;return 1===a&&0===v?1:5}];let ta={};function lb(e,t,a){"string"!=typeof t&&(a=t,t=e[Vn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ta[t]=e,a&&(ta[t][Vn.ExtraData]=a)}function Qc(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let a=d0(t);if(a)return a;const v=t.split("-")[0];if(a=d0(v),a)return a;if("en"===v)return ab;throw new Error(`Missing locale data for the locale "${e}".`)}function ub(e){return Qc(e)[Vn.CurrencyCode]||null}function c0(e){return Qc(e)[Vn.PluralCase]}function d0(e){return e in ta||(ta[e]=Kt.ng&&Kt.ng.common&&Kt.ng.common.locales&&Kt.ng.common.locales[e]),ta[e]}function cb(){ta={}}var Vn=(()=>((Vn=Vn||{})[Vn.LocaleId=0]="LocaleId",Vn[Vn.DayPeriodsFormat=1]="DayPeriodsFormat",Vn[Vn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Vn[Vn.DaysFormat=3]="DaysFormat",Vn[Vn.DaysStandalone=4]="DaysStandalone",Vn[Vn.MonthsFormat=5]="MonthsFormat",Vn[Vn.MonthsStandalone=6]="MonthsStandalone",Vn[Vn.Eras=7]="Eras",Vn[Vn.FirstDayOfWeek=8]="FirstDayOfWeek",Vn[Vn.WeekendRange=9]="WeekendRange",Vn[Vn.DateFormat=10]="DateFormat",Vn[Vn.TimeFormat=11]="TimeFormat",Vn[Vn.DateTimeFormat=12]="DateTimeFormat",Vn[Vn.NumberSymbols=13]="NumberSymbols",Vn[Vn.NumberFormats=14]="NumberFormats",Vn[Vn.CurrencyCode=15]="CurrencyCode",Vn[Vn.CurrencySymbol=16]="CurrencySymbol",Vn[Vn.CurrencyName=17]="CurrencyName",Vn[Vn.Currencies=18]="Currencies",Vn[Vn.Directionality=19]="Directionality",Vn[Vn.PluralCase=20]="PluralCase",Vn[Vn.ExtraData=21]="ExtraData",Vn))();const hb=["zero","one","two","few","many"],Ra="en-US",vl={marker:"element"},yl={marker:"ICU"};var pr=(()=>((pr=pr||{})[pr.SHIFT=2]="SHIFT",pr[pr.APPEND_EAGERLY=1]="APPEND_EAGERLY",pr[pr.COMMENT=2]="COMMENT",pr))();let h0=Ra;function f0(e){(function(e,t){null==e&&Ie(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(h0=e.toLowerCase().replace(/_/g,"-"))}function p0(e,t,a){const v=t.insertBeforeIndex,E=Array.isArray(v)?v[0]:v;return null===E?Wh(e,0,a):be(a[E])}function m0(e,t,a,v,E){const O=t.insertBeforeIndex;if(Array.isArray(O)){let j=v,oe=null;if(3&t.type||(oe=j,j=E),null!==j&&0==(2&t.flags))for(let ge=1;ge1)for(let a=e.length-2;a>=0;a--){const v=e[a];_0(v)||gb(v,t)&&null===_b(v)&&vb(v,t.index)}}function _0(e){return!(64&e.type)}function gb(e,t){return _0(t)||e.index>t.index}function _b(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function vb(e,t){const a=e.insertBeforeIndex;Array.isArray(a)?a[0]=t:(Kh(p0,m0),e.insertBeforeIndex=t)}function La(e,t){const a=e.data[t];return null===a||"string"==typeof a?null:a.hasOwnProperty("currentCaseLViewIndex")?a:a.value}function Cb(e,t,a){const v=xu(e,a,64,null,null);return g0(t,v),v}function bl(e,t){const a=t[e.currentCaseLViewIndex];return null===a?a:a<0?~a:a}function v0(e){return e>>>17}function y0(e){return(131070&e)>>>1}let ka=0,Pa=0;function C0(e,t,a,v){const E=a[11];let j,O=null;for(let oe=0;oe>>1,a),null,null,Pt,Yt,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${ge}"`)}else switch(ge){case yl:const De=t[++oe],ke=t[++oe];null===a[ke]&&Xr(a[ke]=O_(E,De),a);break;case vl:const Je=t[++oe],Ct=t[++oe];null===a[Ct]&&Xr(a[Ct]=cu(E,Je,null),a)}}}function E0(e,t,a,v,E){for(let O=0;O>>2;switch(3&ke){case 1:const Ct=a[++De],Pt=a[++De],Yt=e.data[Je];"string"==typeof Yt?Ru(t[11],t[Je],null,Yt,Ct,ge,Pt):ms(e,Yt,t,Ct,ge,t[11],Pt,!1);break;case 0:const sn=t[Je];null!==sn&&Fh(t[11],sn,ge);break;case 2:Db(e,La(e,Je),t,ge);break;case 3:w0(e,La(e,Je),v,t)}}}}else{const ge=a[O+1];if(ge>0&&3==(3&ge)){const ke=La(e,ge>>>2);t[ke.currentCaseLViewIndex]<0&&w0(e,ke,v,t)}}O+=oe}}function w0(e,t,a,v){let E=v[t.currentCaseLViewIndex];if(null!==E){let O=ka;E<0&&(E=v[t.currentCaseLViewIndex]=~E,O=-1),E0(e,v,t.update[E],a,O)}}function Db(e,t,a,v){const E=function(e,t){let a=e.cases.indexOf(t);if(-1===a)switch(e.type){case 1:{const v=function(e,t){const a=c0(t)(parseInt(e,10)),v=hb[a];return void 0!==v?v:"other"}(t,h0);a=e.cases.indexOf(v),-1===a&&"other"!==v&&(a=e.cases.indexOf("other"));break}case 0:a=e.cases.indexOf("other")}return-1===a?null:a}(t,v);if(bl(t,a)!==E&&(M0(e,t,a),a[t.currentCaseLViewIndex]=null===E?null:~E,null!==E)){const j=a[t.anchorIdx];j&&C0(e,t.create[E],a,j)}}function M0(e,t,a){let v=bl(t,a);if(null!==v){const E=t.remove[v];for(let O=0;O0){const oe=V(j,a);null!==oe&&Yh(a[11],oe)}else M0(e,La(e,~j),a)}}}function xb(){const e=[];let a,v,t=-1;function O(oe,ge){t=0;const De=bl(oe,ge);v=null!==De?oe.remove[De]:Qe}function j(){if(t0?a[oe]:(e.push(t,v),O(a[1].data[~oe],a),j())}return 0===e.length?null:(v=e.pop(),t=e.pop(),j())}return function(oe,ge){for(a=ge;e.length;)e.pop();return O(oe.value,ge),j}}const Cl=/\ufffd(\d+):?\d*\ufffd/gi,Ib=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ab=/\ufffd(\d+)\ufffd/,D0=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ob=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Rb=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Lb=/\uE500/g;function T0(e,t,a,v,E,O,j){const oe=Bo(e,v,1,null);let ge=oe<a.length&&a.push(ge)}return{type:v,mainBinding:E,cases:t,values:a}}function Xc(e){if(!e)return[];let t=0;const a=[],v=[],E=/[{}]/g;let O;for(E.lastIndex=0;O=E.exec(e);){const oe=O.index;if("}"==O[0]){if(a.pop(),0==a.length){const ge=e.substring(t,oe);D0.test(ge)?v.push($b(ge)):v.push(ge),t=oe+1}}else{if(0==a.length){const ge=e.substring(t,oe);v.push(ge),t=oe+1}a.push("{")}}const j=e.substring(t);return v.push(j),v}function Hb(e,t,a,v,E,O,j,oe){const ge=[],De=[],ke=[];t.cases.push(O),t.create.push(ge),t.remove.push(De),t.update.push(ke);const Ct=sh(Tr()).getInertBodyElement(j),Pt=ql(Ct)||Ct;return Pt?O0(e,t,a,v,ge,De,ke,Pt,E,oe,0):0}function O0(e,t,a,v,E,O,j,oe,ge,De,ke){let Je=0,Ct=oe.firstChild;for(;Ct;){const Pt=Bo(e,a,1,null);switch(Ct.nodeType){case Node.ELEMENT_NODE:const Yt=Ct,sn=Yt.tagName.toLowerCase();if(Ql.hasOwnProperty(sn)){Zc(E,vl,sn,ge,Pt),e.data[Pt]=sn;const Un=Yt.attributes;for(let yi=0;yi>>pr.SHIFT;let Je=e[ke];null===Je&&(Je=e[ke]=ge?E.createComment(oe):uu(E,oe)),De&&null!==a&&Mo(E,a,Je,v,!1)}})(E,ge.create,ke,oe&&8&oe.type?E[oe.index]:null),sr(!0)}function Jc(){sr(!1)}function k0(e,t,a){qc(e,t,a),Jc()}function P0(e,t){const a=N();!function(e,t,a){const E=pe().index,O=[];if(e.firstCreatePass&&null===e.data[t]){for(let j=0;j0){const v=e.data[a];E0(e,t,Array.isArray(v)?v:v.update,_n()-Pa-1,ka)}ka=0,Pa=0}(N(),we(),e+20)}function N0(e,t={}){return function(e,t={}){let a=e;if(Gb.test(e)){const v={},E=[0];a=a.replace(Yb,(O,j,oe)=>{const ge=j||oe,De=v[ge]||[];if(De.length||(ge.split("|").forEach(sn=>{const dn=sn.match(Jb),wn=dn?parseInt(dn[1],10):0,Jt=qb.test(sn);De.push([wn,Jt,sn])}),v[ge]=De),!De.length)throw new Error(`i18n postprocess: unmatched placeholder - ${ge}`);const ke=E[E.length-1];let Je=0;for(let sn=0;snt.hasOwnProperty(O)?`${E}${t[O]}${ge}`:v),a=a.replace(Xb,(v,E)=>t.hasOwnProperty(E)?t[E]:v),a=a.replace(Zb,(v,E)=>{if(t.hasOwnProperty(E)){const O=t[E];if(!O.length)throw new Error(`i18n postprocess: unmatched ICU - ${v} with key: ${E}`);return O.shift()}return v})),a}(e,t)}function td(e,t,a,v,E){if(e=c(e),Array.isArray(e))for(let O=0;O>20;if(Ho(e)||!e.multi){const Pt=new rs(ge,E,Aa),Yt=id(oe,t,E?ke:ke+Ct,Je);-1===Yt?(Gr(Dn(De,j),O,oe),nd(O,e,t.length),t.push(oe),De.directiveStart++,De.directiveEnd++,E&&(De.providerIndexes+=1048576),a.push(Pt),j.push(Pt)):(a[Yt]=Pt,j[Yt]=Pt)}else{const Pt=id(oe,t,ke+Ct,Je),Yt=id(oe,t,ke,ke+Ct),sn=Pt>=0&&a[Pt],dn=Yt>=0&&a[Yt];if(E&&!dn||!E&&!sn){Gr(Dn(De,j),O,oe);const wn=function(e,t,a,v,E){const O=new rs(e,a,Aa);return O.multi=[],O.index=t,O.componentProviders=0,U0(O,E,v&&!a),O}(E?r1:n1,a.length,E,v,ge);!E&&dn&&(a[Yt].providerFactory=wn),nd(O,e,t.length,0),t.push(oe),De.directiveStart++,De.directiveEnd++,E&&(De.providerIndexes+=1048576),a.push(wn),j.push(wn)}else nd(O,e,Pt>-1?Pt:Yt,U0(a[E?Yt:Pt],ge,!E&&v));!E&&v&&dn&&a[Yt].componentProviders++}}}function nd(e,t,a,v){const E=Ho(t),O=function(e){return!!e.useClass}(t);if(E||O){const ge=(O?c(t.useClass):t).prototype.ngOnDestroy;if(ge){const De=e.destroyHooks||(e.destroyHooks=[]);if(!E&&t.multi){const ke=De.indexOf(a);-1===ke?De.push(a,[v,ge]):De[ke+1].push(v,ge)}else De.push(a,ge)}}}function U0(e,t,a){return a&&e.componentProviders++,e.multi.push(t)-1}function id(e,t,a,v){for(let E=a;E{a.providersResolver=(v,E)=>function(e,t,a){const v=N();if(v.firstCreatePass){const E=bi(e);td(a,v.data,v.blueprint,E,!0),td(t,v.data,v.blueprint,E,!1)}}(v,E?E(e):e,t)}}class V0{}class El{}class a1{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${h(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Na=(()=>{class e{}return e.NULL=new a1,e})();function l1(){return ia(pe(),we())}function ia(e,t){return new Ua(ve(e,t))}let Ua=(()=>{class e{constructor(a){this.nativeElement=a}}return e.__NG_ELEMENT_ID__=l1,e})();function u1(e){return e instanceof Ua?e.nativeElement:e}class H0{}let c1=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function(){const e=we(),a=In(pe().index,e);return function(e){return e[11]}(Xn(a)?a:e)}(),e})(),j0=(()=>{class e{}return e.\u0275prov=Pe({token:e,providedIn:"root",factory:()=>null}),e})();class W0{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const z0=new W0("13.1.1"),wl={};function Ml(e,t,a,v,E=!1){for(;null!==a;){const O=t[a.index];if(null!==O&&v.push(be(O)),pi(O))for(let oe=10;oe-1&&(du(t,v),Co(a,v))}this._attachedToViewContainer=!1}Uh(this._lView[1],this._lView)}onDestroy(t){Ef(this._lView[1],this._lView,null,t)}markForCheck(){ku(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Fu(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,a){Pn(!0);try{Fu(e,t,a)}finally{Pn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,wa(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class f1 extends ra{constructor(t){super(t),this._view=t}detectChanges(){Of(this._view)}checkNoChanges(){!function(e){Pn(!0);try{Of(e)}finally{Pn(!1)}}(this._view)}get context(){return null}}class K0 extends Na{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const a=Ot(t);return new Sl(a,this.ngModule)}}function G0(e){const t=[];for(let a in e)e.hasOwnProperty(a)&&t.push({propName:e[a],templateName:a});return t}const m1=new lr("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Th});class Sl extends El{constructor(t,a){super(),this.componentDef=t,this.ngModule=a,this.componentType=t.type,this.selector=t.selectors.map(J_).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!a}get inputs(){return G0(this.componentDef.inputs)}get outputs(){return G0(this.componentDef.outputs)}create(t,a,v,E){const O=(E=E||this.ngModule)?function(e,t){return{get:(a,v,E)=>{const O=e.get(a,wl,E);return O!==wl||v===wl?O:t.get(a,v,E)}}}(t,E.injector):t,j=O.get(H0,zr),oe=O.get(j0,null),ge=j.createRenderer(null,this.componentDef),De=this.componentDef.selectors[0][0]||"div",ke=v?Cf(ge,v,this.componentDef.encapsulation):cu(j.createRenderer(null,this.componentDef),De,function(e){const t=e.toLowerCase();return"svg"===t?Fr:"math"===t?ls:null}(De)),Je=this.componentDef.onPush?576:528,Ct=ep(),Pt=ll(0,null,null,1,0,null,null,null,null,null),Yt=Ma(null,Pt,Ct,Je,null,null,j,ge,oe,O);let sn,dn;Yi(Yt);try{const wn=qf(ke,this.componentDef,Yt,j,ge);if(ke)if(v)Mt(ge,ke,["ng-version",z0.full]);else{const{attrs:Jt,classes:Un}=function(e){const t=[],a=[];let v=1,E=2;for(;v0&&gu(ge,ke,Un.join(" "))}if(dn=Nt(Pt,20),void 0!==a){const Jt=dn.projection=[];for(let Un=0;Un{const E=e;null!==t&&(E.hasOwnProperty("decorators")&&void 0!==E.decorators?E.decorators.push(...t):E.decorators=t),null!==a&&(E.ctorParameters=a),null!==v&&(E.propDecorators=E.hasOwnProperty("propDecorators")&&void 0!==E.propDecorators?Object.assign(Object.assign({},E.propDecorators),v):v)})}class sa{}class X0{}const oa=new Map;function q0(e){const t=new Set;!function a(v){const E=On(v,!0),O=E.id;if(null!==O){(function(e,t,a){if(t&&t!==a)throw new Error(`Duplicate module registered for ${e} - ${h(t)} vs ${h(t.name)}`)})(O,oa.get(O),v),oa.set(O,v)}const j=zs(E.imports);for(const oe of j)t.has(oe)||(t.add(oe),a(oe))}(e)}function J0(e){return oa.get(e)||cn[e]}function v1(e,t){return new sd(e,null!=t?t:null)}class sd extends sa{constructor(t,a){super(),this._parent=a,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new K0(this);const v=On(t);this._bootstrapComponents=zs(v.bootstrap),this._r3Injector=$f(t,a,[{provide:sa,useValue:this},{provide:Na,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,a=gs.THROW_IF_NOT_FOUND,v=Ee.Default){return t===gs||t===sa||t===dl?this:this._r3Injector.get(t,a,v)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(a=>a()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Dl extends X0{constructor(t){super(),this.moduleType=t,null!==On(t)&&q0(t)}create(t){return new sd(this.moduleType,t)}}function em(e,t,a){const v=Ln()+e,E=we();return E[v]===ei?Ys(E,v,a?t.call(a):t()):xa(E,v)}function tm(e,t,a,v){return cm(we(),Ln(),e,t,a,v)}function nm(e,t,a,v,E){return dm(we(),Ln(),e,t,a,v,E)}function im(e,t,a,v,E,O){return hm(we(),Ln(),e,t,a,v,E,O)}function rm(e,t,a,v,E,O,j){return fm(we(),Ln(),e,t,a,v,E,O,j)}function sm(e,t,a,v,E,O,j,oe){const ge=Ln()+e,De=we(),ke=Os(De,ge,a,v,E,O);return Zr(De,ge+4,j)||ke?Ys(De,ge+5,oe?t.call(oe,a,v,E,O,j):t(a,v,E,O,j)):xa(De,ge+5)}function om(e,t,a,v,E,O,j,oe,ge){const De=Ln()+e,ke=we(),Je=Os(ke,De,a,v,E,O);return So(ke,De+4,j,oe)||Je?Ys(ke,De+6,ge?t.call(ge,a,v,E,O,j,oe):t(a,v,E,O,j,oe)):xa(ke,De+6)}function am(e,t,a,v,E,O,j,oe,ge,De){const ke=Ln()+e,Je=we();let Ct=Os(Je,ke,a,v,E,O);return fl(Je,ke+4,j,oe,ge)||Ct?Ys(Je,ke+7,De?t.call(De,a,v,E,O,j,oe,ge):t(a,v,E,O,j,oe,ge)):xa(Je,ke+7)}function lm(e,t,a,v,E,O,j,oe,ge,De,ke){const Je=Ln()+e,Ct=we(),Pt=Os(Ct,Je,a,v,E,O);return Os(Ct,Je+4,j,oe,ge,De)||Pt?Ys(Ct,Je+8,ke?t.call(ke,a,v,E,O,j,oe,ge,De):t(a,v,E,O,j,oe,ge,De)):xa(Ct,Je+8)}function um(e,t,a,v){return pm(we(),Ln(),e,t,a,v)}function Ba(e,t){const a=e[t];return a===ei?void 0:a}function cm(e,t,a,v,E,O){const j=t+a;return Zr(e,j,E)?Ys(e,j+1,O?v.call(O,E):v(E)):Ba(e,j+1)}function dm(e,t,a,v,E,O,j){const oe=t+a;return So(e,oe,E,O)?Ys(e,oe+2,j?v.call(j,E,O):v(E,O)):Ba(e,oe+2)}function hm(e,t,a,v,E,O,j,oe){const ge=t+a;return fl(e,ge,E,O,j)?Ys(e,ge+3,oe?v.call(oe,E,O,j):v(E,O,j)):Ba(e,ge+3)}function fm(e,t,a,v,E,O,j,oe,ge){const De=t+a;return Os(e,De,E,O,j,oe)?Ys(e,De+4,ge?v.call(ge,E,O,j,oe):v(E,O,j,oe)):Ba(e,De+4)}function pm(e,t,a,v,E,O){let j=t+a,oe=!1;for(let ge=0;ge=0;a--){const v=t[a];if(e===v.name)return v}}(t,a.pipeRegistry),a.data[E]=v,v.onDestroy&&(a.destroyHooks||(a.destroyHooks=[])).push(E,v.onDestroy)):v=a.data[E];const O=v.factory||(v.factory=ir(v.type)),j=T(Aa);try{const oe=Ve(!1),ge=O();return Ve(oe),op(a,we(),E,ge),ge}finally{T(j)}}function gm(e,t,a){const v=e+20,E=we(),O=nn(E,v);return Va(E,v)?cm(E,Ln(),t,O.transform,a,O):O.transform(a)}function _m(e,t,a,v){const E=e+20,O=we(),j=nn(O,E);return Va(O,E)?dm(O,Ln(),t,j.transform,a,v,j):j.transform(a,v)}function vm(e,t,a,v,E){const O=e+20,j=we(),oe=nn(j,O);return Va(j,O)?hm(j,Ln(),t,oe.transform,a,v,E,oe):oe.transform(a,v,E)}function ym(e,t,a,v,E,O){const j=e+20,oe=we(),ge=nn(oe,j);return Va(oe,j)?fm(oe,Ln(),t,ge.transform,a,v,E,O,ge):ge.transform(a,v,E,O)}function bm(e,t,a){const v=e+20,E=we(),O=nn(E,v);return Va(E,v)?pm(E,Ln(),t,O.transform,a,O):O.transform.apply(O,a)}function Va(e,t){return e[1].data[t].pure}function od(e){return t=>{setTimeout(e,void 0,t)}}const Xs=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,a,v){var E,O,j;let oe=t,ge=a||(()=>null),De=v;if(t&&"object"==typeof t){const Je=t;oe=null===(E=Je.next)||void 0===E?void 0:E.bind(Je),ge=null===(O=Je.error)||void 0===O?void 0:O.bind(Je),De=null===(j=Je.complete)||void 0===j?void 0:j.bind(Je)}this.__isAsync&&(ge=od(ge),oe&&(oe=od(oe)),De&&(De=od(De)));const ke=super.subscribe({next:oe,error:ge,complete:De});return t instanceof f.w&&t.add(ke),ke}};function C1(){return this._results[jo()]()}class Tl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const a=jo(),v=Tl.prototype;v[a]||(v[a]=C1)}get changes(){return this._changes||(this._changes=new Xs)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,a){return this._results.reduce(t,a)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,a){const v=this;v.dirty=!1;const E=os(t);(this._changesDetected=!function(e,t,a){if(e.length!==t.length)return!1;for(let v=0;v{class e{}return e.__NG_ELEMENT_ID__=M1,e})();const E1=$a,w1=class extends E1{constructor(t,a,v){super(),this._declarationLView=t,this._declarationTContainer=a,this.elementRef=v}createEmbeddedView(t){const a=this._declarationTContainer.tViews,v=Ma(this._declarationLView,a,t,16,null,a.declTNode,null,null,null,null);v[17]=this._declarationLView[this._declarationTContainer.index];const O=this._declarationLView[19];return null!==O&&(v[19]=O.createEmbeddedView(a)),Sa(a,v,t),new ra(v)}};function M1(){return xl(pe(),we())}function xl(e,t){return 4&e.type?new w1(t,e,ia(e,t)):null}let Il=(()=>{class e{}return e.__NG_ELEMENT_ID__=S1,e})();function S1(){return wm(pe(),we())}const D1=Il,Cm=class extends D1{constructor(t,a,v){super(),this._lContainer=t,this._hostTNode=a,this._hostLView=v}get element(){return ia(this._hostTNode,this._hostLView)}get injector(){return new lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=hs(this._hostTNode,this._hostLView);if(me(t)){const a=Ce(t,this._hostLView),v=le(t);return new lo(a[1].data[v+8],a)}return new lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const a=Em(this._lContainer);return null!==a&&a[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,a,v){const E=t.createEmbeddedView(a||{});return this.insert(E,v),E}createComponent(t,a,v,E,O){const j=t&&!bo(t);let oe;if(j)oe=a;else{const Je=a||{};oe=Je.index,v=Je.injector,E=Je.projectableNodes,O=Je.ngModuleRef}const ge=j?t:new Sl(Ot(t)),De=v||this.parentInjector;if(!O&&null==ge.ngModule&&De){const Je=De.get(sa,null);Je&&(O=Je)}const ke=ge.create(De,E,void 0,O);return this.insert(ke.hostView,oe),ke}insert(t,a){const v=t._lView,E=v[1];if(pi(v[3])){const ke=this.indexOf(t);if(-1!==ke)this.detach(ke);else{const Je=v[3],Ct=new Cm(Je,Je[6],Je[3]);Ct.detach(Ct.indexOf(t))}}const O=this._adjustIndex(a),j=this._lContainer;!function(e,t,a,v){const E=10+v,O=a.length;v>0&&(a[E-1][4]=t),v0)v.push(j[oe/2]);else{const De=O[oe+1],ke=t[-ge];for(let Je=10;Je({\u0275\u0275attribute:Yu,\u0275\u0275attributeInterpolate1:Qu,\u0275\u0275attributeInterpolate2:Xu,\u0275\u0275attributeInterpolate3:Zu,\u0275\u0275attributeInterpolate4:qu,\u0275\u0275attributeInterpolate5:Ju,\u0275\u0275attributeInterpolate6:ec,\u0275\u0275attributeInterpolate7:tc,\u0275\u0275attributeInterpolate8:nc,\u0275\u0275attributeInterpolateV:ic,\u0275\u0275defineComponent:Me,\u0275\u0275defineDirective:He,\u0275\u0275defineInjectable:Pe,\u0275\u0275defineInjector:at,\u0275\u0275defineNgModule:An,\u0275\u0275definePipe:mt,\u0275\u0275directiveInject:Aa,\u0275\u0275getInheritedFactory:Ds,\u0275\u0275inject:Cn,\u0275\u0275injectAttribute:da,\u0275\u0275invalidFactory:yp,\u0275\u0275invalidFactoryDep:Pi,\u0275\u0275templateRefExtractor:Lm,\u0275\u0275NgOnChangesFeature:Sr,\u0275\u0275ProvidersFeature:B0,\u0275\u0275CopyDefinitionFeature:ip,\u0275\u0275InheritDefinitionFeature:zu,\u0275\u0275nextContext:Tp,\u0275\u0275namespaceHTML:Es,\u0275\u0275namespaceMathML:Si,\u0275\u0275namespaceSVG:dr,\u0275\u0275enableBindings:ds,\u0275\u0275disableBindings:Bs,\u0275\u0275elementStart:uc,\u0275\u0275elementEnd:cc,\u0275\u0275element:bp,\u0275\u0275elementContainerStart:dc,\u0275\u0275elementContainerEnd:hc,\u0275\u0275elementContainer:Cp,\u0275\u0275pureFunction0:em,\u0275\u0275pureFunction1:tm,\u0275\u0275pureFunction2:nm,\u0275\u0275pureFunction3:im,\u0275\u0275pureFunction4:rm,\u0275\u0275pureFunction5:sm,\u0275\u0275pureFunction6:om,\u0275\u0275pureFunction7:am,\u0275\u0275pureFunction8:lm,\u0275\u0275pureFunctionV:um,\u0275\u0275getCurrentView:Ep,\u0275\u0275restoreView:G,\u0275\u0275listener:pc,\u0275\u0275projection:Ip,\u0275\u0275syntheticHostProperty:Yc,\u0275\u0275syntheticHostListener:mc,\u0275\u0275pipeBind1:gm,\u0275\u0275pipeBind2:_m,\u0275\u0275pipeBind3:vm,\u0275\u0275pipeBind4:ym,\u0275\u0275pipeBindV:bm,\u0275\u0275projectionDef:xp,\u0275\u0275hostProperty:Gc,\u0275\u0275property:ac,\u0275\u0275propertyInterpolate:_c,\u0275\u0275propertyInterpolate1:ml,\u0275\u0275propertyInterpolate2:vc,\u0275\u0275propertyInterpolate3:yc,\u0275\u0275propertyInterpolate4:bc,\u0275\u0275propertyInterpolate5:Cc,\u0275\u0275propertyInterpolate6:Ec,\u0275\u0275propertyInterpolate7:wc,\u0275\u0275propertyInterpolate8:Mc,\u0275\u0275propertyInterpolateV:Sc,\u0275\u0275pipe:mm,\u0275\u0275queryRefresh:Dm,\u0275\u0275viewQuery:Tm,\u0275\u0275loadQuery:Im,\u0275\u0275contentQuery:xm,\u0275\u0275reference:ap,\u0275\u0275classMap:Np,\u0275\u0275classMapInterpolate1:zp,\u0275\u0275classMapInterpolate2:Kp,\u0275\u0275classMapInterpolate3:Gp,\u0275\u0275classMapInterpolate4:Yp,\u0275\u0275classMapInterpolate5:Qp,\u0275\u0275classMapInterpolate6:Xp,\u0275\u0275classMapInterpolate7:Zp,\u0275\u0275classMapInterpolate8:qp,\u0275\u0275classMapInterpolateV:Jp,\u0275\u0275styleMap:Ps,\u0275\u0275styleMapInterpolate1:e0,\u0275\u0275styleMapInterpolate2:t0,\u0275\u0275styleMapInterpolate3:n0,\u0275\u0275styleMapInterpolate4:r0,\u0275\u0275styleMapInterpolate5:s0,\u0275\u0275styleMapInterpolate6:o0,\u0275\u0275styleMapInterpolate7:a0,\u0275\u0275styleMapInterpolate8:l0,\u0275\u0275styleMapInterpolateV:u0,\u0275\u0275styleProp:Dc,\u0275\u0275stylePropInterpolate1:Uc,\u0275\u0275stylePropInterpolate2:Bc,\u0275\u0275stylePropInterpolate3:Vc,\u0275\u0275stylePropInterpolate4:$c,\u0275\u0275stylePropInterpolate5:Hc,\u0275\u0275stylePropInterpolate6:jc,\u0275\u0275stylePropInterpolate7:Wc,\u0275\u0275stylePropInterpolate8:zc,\u0275\u0275stylePropInterpolateV:Kc,\u0275\u0275classProp:Tc,\u0275\u0275advance:nf,\u0275\u0275template:sp,\u0275\u0275text:Wp,\u0275\u0275textInterpolate:Ic,\u0275\u0275textInterpolate1:_l,\u0275\u0275textInterpolate2:Ac,\u0275\u0275textInterpolate3:Oc,\u0275\u0275textInterpolate4:Rc,\u0275\u0275textInterpolate5:Lc,\u0275\u0275textInterpolate6:kc,\u0275\u0275textInterpolate7:Pc,\u0275\u0275textInterpolate8:Fc,\u0275\u0275textInterpolateV:Nc,\u0275\u0275i18n:k0,\u0275\u0275i18nAttributes:P0,\u0275\u0275i18nExp:ed,\u0275\u0275i18nStart:qc,\u0275\u0275i18nEnd:Jc,\u0275\u0275i18nApply:F0,\u0275\u0275i18nPostprocess:N0,\u0275\u0275resolveWindow:xh,\u0275\u0275resolveDocument:Ih,\u0275\u0275resolveBody:Ah,\u0275\u0275setComponentScope:Ke,\u0275\u0275setNgModuleScope:lt,\u0275\u0275sanitizeHtml:fh,\u0275\u0275sanitizeStyle:ph,\u0275\u0275sanitizeResourceUrl:eu,\u0275\u0275sanitizeScript:mh,\u0275\u0275sanitizeUrl:Jl,\u0275\u0275sanitizeUrlOrResourceUrl:vh,\u0275\u0275trustConstantHtml:gh,\u0275\u0275trustConstantResourceUrl:_h,forwardRef:i,resolveForwardRef:c}))();let aa=null;function N1(){aa=null}const Ha=[];let fd=!1;function km(){if(!fd){fd=!0;try{for(let e=Ha.length-1;e>=0;e--){const{moduleType:t,ngModule:a}=Ha[e];a.declarations&&a.declarations.every(Pm)&&(Ha.splice(e,1),V1(t,a))}}finally{fd=!1}}}function Pm(e){return Array.isArray(e)?e.every(Pm):!!c(e)}function Fm(e,t={}){Nm(e,t),function(e,t){Ha.push({moduleType:e,ngModule:t})}(e,t)}function Nm(e,t,a=!1){const v=os(t.declarations||Qe);let E=null;Object.defineProperty(e,Ue,{configurable:!0,get:()=>(null===E&&(E=yr().compileNgModule(is,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:os(t.bootstrap||Qe).map(c),declarations:v.map(c),imports:os(t.imports||Qe).map(c).map($m),exports:os(t.exports||Qe).map(c).map($m),schemas:t.schemas?os(t.schemas):null,id:t.id||null}),E.schemas||(E.schemas=[])),E)});let O=null;Object.defineProperty(e,Se,{get:()=>{if(null===O){const oe=yr();O=oe.compileFactory(is,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:qa(e),target:oe.FactoryTarget.NgModule,typeArgumentCount:0})}return O},configurable:!1});let j=null;Object.defineProperty(e,Tt,{get:()=>{if(null===j){const oe={name:e.name,type:e,providers:t.providers||Qe,imports:[(t.imports||Qe).map(c),(t.exports||Qe).map(c)]};j=yr().compileInjector(is,`ng:///${e.name}/\u0275inj.js`,oe)}return j},configurable:!1})}let Al=new WeakMap,md=new WeakMap;function B1(){Al=new WeakMap,md=new WeakMap,Ha.length=0}function V1(e,t){const a=os(t.declarations||Qe),v=ja(e);a.forEach(E=>{E.hasOwnProperty(gt)?gd(Ot(E),v):!E.hasOwnProperty(Vt)&&!E.hasOwnProperty(qt)&&(E.ngSelectorScope=e)})}function gd(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(a=>a.hasOwnProperty(gt)?Ot(a):un(a)).filter(a=>!!a),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(a=>on(a)),e.schemas=t.schemas,e.tView=null}function ja(e){if(!_d(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=On(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const a={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return zs(t.imports).forEach(v=>{const E=v;if(!_d(E))throw new Error(`Importing ${E.name} which does not have a \u0275mod property`);const O=ja(E);O.exported.directives.forEach(j=>a.compilation.directives.add(j)),O.exported.pipes.forEach(j=>a.compilation.pipes.add(j))}),zs(t.declarations).forEach(v=>{on(v)?a.compilation.pipes.add(v):a.compilation.directives.add(v)}),zs(t.exports).forEach(v=>{const E=v;if(_d(E)){const O=ja(E);O.exported.directives.forEach(j=>{a.compilation.directives.add(j),a.exported.directives.add(j)}),O.exported.pipes.forEach(j=>{a.compilation.pipes.add(j),a.exported.pipes.add(j)})}else on(E)?a.exported.pipes.add(E):a.exported.directives.add(E)}),t.transitiveCompileScopes=a,a}function $m(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function _d(e){return!!On(e)}let vd=0;function Hm(e,t){let a=null;(function(e,t){Jd(t)&&(Lo.set(e,t),ga.add(e))})(e,t),Wm(e,t),Object.defineProperty(e,gt,{get:()=>{if(null===a){const v=yr();if(Jd(t)){const De=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&De.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&De.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),De.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(De.join("\n"))}const E=aa;let O=t.preserveWhitespaces;void 0===O&&(O=null!==E&&void 0!==E.preserveWhitespaces&&E.preserveWhitespaces);let j=t.encapsulation;void 0===j&&(j=null!==E&&void 0!==E.defaultEncapsulation?E.defaultEncapsulation:ut.Emulated);const oe=t.templateUrl||`ng:///${e.name}/template.html`,ge=Object.assign(Object.assign({},zm(e,t)),{typeSourceSpan:v.createParseSourceSpan("Component",e.name,oe),template:t.template||"",preserveWhitespaces:O,styles:t.styles||Qe,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:j,interpolation:t.interpolation,viewProviders:t.viewProviders||null});vd++;try{ge.usesInheritance&&Km(e),a=v.compileComponent(is,oe,ge)}finally{vd--}if(0===vd&&km(),function(e){return void 0!==e.ngSelectorScope}(e)){const De=ja(e.ngSelectorScope);gd(a,De)}}return a},configurable:!1})}function yd(e,t){let a=null;Wm(e,t||{}),Object.defineProperty(e,Vt,{get:()=>{if(null===a){const v=jm(e,t||{});a=yr().compileDirective(is,v.sourceMapUrl,v.metadata)}return a},configurable:!1})}function jm(e,t){const a=e&&e.name,v=`ng:///${a}/\u0275dir.js`,E=yr(),O=zm(e,t);return O.typeSourceSpan=E.createParseSourceSpan("Directive",a,v),O.usesInheritance&&Km(e),{metadata:O,sourceMapUrl:v}}function Wm(e,t){let a=null;Object.defineProperty(e,Se,{get:()=>{if(null===a){const v=jm(e,t),E=yr();a=E.compileFactory(is,`ng:///${e.name}/\u0275fac.js`,{name:v.metadata.name,type:v.metadata.type,typeArgumentCount:0,deps:qa(e),target:E.FactoryTarget.Directive})}return a},configurable:!1})}function j1(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function zm(e,t){const a=Kl(),v=a.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||Lt,propMetadata:v,inputs:t.inputs||Qe,outputs:t.outputs||Qe,queries:Gm(e,v,Ym),lifecycle:{usesOnChanges:a.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!j1(e),exportAs:K1(t.exportAs),providers:t.providers||null,viewQueries:Gm(e,v,Qm)}}function Km(e){const t=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==t;)!un(a)&&!Ot(a)&&Y1(a)&&yd(a,null),a=Object.getPrototypeOf(a)}function W1(e){return"string"==typeof e?Zm(e):c(e)}function z1(e,t){return{propertyName:e,predicate:W1(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Gm(e,t,a){const v=[];for(const E in t)if(t.hasOwnProperty(E)){const O=t[E];O.forEach(j=>{if(a(j)){if(!j.selector)throw new Error(`Can't construct a query for the property "${E}" of "${R(e)}" since the query selector wasn't defined.`);if(O.some(Xm))throw new Error("Cannot combine @Input decorators with query decorators");v.push(z1(E,j))}})}return v}function K1(e){return void 0===e?null:Zm(e)}function Ym(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function Qm(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Xm(e){return"Input"===e.ngMetadataName}function Zm(e){return e.split(",").map(t=>t.trim())}const G1=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Y1(e){const t=Kl();if(G1.some(v=>t.hasLifecycleHook(e,v)))return!0;const a=t.propMetadata(e);for(const v in a){const E=a[v];for(let O=0;O{if(null===v){const E=Jm(e,t),O=yr();v=O.compileFactory(is,`ng:///${E.name}/\u0275fac.js`,{name:E.name,type:E.type,typeArgumentCount:0,deps:qa(e),target:O.FactoryTarget.Pipe})}return v},configurable:!1}),Object.defineProperty(e,qt,{get:()=>{if(null===a){const E=Jm(e,t);a=yr().compilePipe(is,`ng:///${E.name}/\u0275pipe.js`,E)}return a},configurable:!1})}function Jm(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const eg=Ts("Directive",(e={})=>e,void 0,void 0,(e,t)=>yd(e,t)),Q1=Ts("Component",(e={})=>Object.assign({changeDetection:Be.Default},e),eg,void 0,(e,t)=>Hm(e,t)),X1=Ts("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>qm(e,t)),Z1=js("Input",e=>({bindingPropertyName:e})),q1=js("Output",e=>({bindingPropertyName:e})),J1=js("HostBinding",e=>({hostPropertyName:e})),eC=js("HostListener",(e,t)=>({eventName:e,args:t})),tC=Ts("NgModule",e=>e,void 0,void 0,(e,t)=>Fm(e,t));function Ol(...e){}const bd=new lr("Application Initializer");let la=(()=>{class e{constructor(a){this.appInits=a,this.resolve=Ol,this.reject=Ol,this.initialized=!1,this.done=!1,this.donePromise=new Promise((v,E)=>{this.resolve=v,this.reject=E})}runInitializers(){if(this.initialized)return;const a=[],v=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let E=0;E{O.subscribe({complete:oe,error:ge})});a.push(j)}}Promise.all(a).then(()=>{v()}).catch(E=>{this.reject(E)}),0===a.length&&v(),this.initialized=!0}}return e.\u0275fac=function(a){return new(a||e)(Cn(bd,8))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e})();const tg=new lr("AppId"),ng={provide:tg,useFactory:function(){return`${Cd()}${Cd()}${Cd()}`},deps:[]};function Cd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ig=new lr("Platform Initializer"),rg=new lr("Platform ID"),sg=new lr("appBootstrapListener"),iC=new lr("Application Packages Root URL");let og=(()=>{class e{log(a){console.log(a)}warn(a){console.warn(a)}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e})();const Rl=new lr("LocaleId"),ag=new lr("DefaultCurrencyCode"),rC=new lr("Translations"),sC=new lr("TranslationsFormat");var Zs=(()=>((Zs=Zs||{})[Zs.Error=0]="Error",Zs[Zs.Warning=1]="Warning",Zs[Zs.Ignore=2]="Ignore",Zs))();class lg{constructor(t,a){this.ngModuleFactory=t,this.componentFactories=a}}let Ed=(()=>{class e{compileModuleSync(a){return new Dl(a)}compileModuleAsync(a){return Promise.resolve(this.compileModuleSync(a))}compileModuleAndAllComponentsSync(a){const v=this.compileModuleSync(a),O=zs(On(a).declarations).reduce((j,oe)=>{const ge=Ot(oe);return ge&&j.push(new Sl(ge)),j},[]);return new lg(v,O)}compileModuleAndAllComponentsAsync(a){return Promise.resolve(this.compileModuleAndAllComponentsSync(a))}clearCache(){}clearCacheFor(a){}getModuleId(a){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e})();const ug=new lr("compilerOptions");class oC{}const aC=(()=>Promise.resolve(0))();function wd(e){"undefined"==typeof Zone?aC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class _s{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:a=!1,shouldCoalesceRunChangeDetection:v=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xs(!1),this.onMicrotaskEmpty=new Xs(!1),this.onStable=new Xs(!1),this.onError=new Xs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const E=this;E._nesting=0,E._outer=E._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(E._inner=E._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(E._inner=E._inner.fork(Zone.longStackTraceZoneSpec)),E.shouldCoalesceEventChangeDetection=!v&&a,E.shouldCoalesceRunChangeDetection=v,E.lastRequestAnimationFrameId=-1,E.nativeRequestAnimationFrame=function(){let e=Kt.requestAnimationFrame,t=Kt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const a=e[Zone.__symbol__("OriginalDelegate")];a&&(e=a);const v=t[Zone.__symbol__("OriginalDelegate")];v&&(t=v)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Kt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Sd(e),e.isCheckStableRunning=!0,Md(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Sd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(a,v,E,O,j,oe)=>{try{return cg(e),a.invokeTask(E,O,j,oe)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===O.type||e.shouldCoalesceRunChangeDetection)&&t(),dg(e)}},onInvoke:(a,v,E,O,j,oe,ge)=>{try{return cg(e),a.invoke(E,O,j,oe,ge)}finally{e.shouldCoalesceRunChangeDetection&&t(),dg(e)}},onHasTask:(a,v,E,O)=>{a.hasTask(E,O),v===E&&("microTask"==O.change?(e._hasPendingMicrotasks=O.microTask,Sd(e),Md(e)):"macroTask"==O.change&&(e.hasPendingMacrotasks=O.macroTask))},onHandleError:(a,v,E,O)=>(a.handleError(E,O),e.runOutsideAngular(()=>e.onError.emit(O)),!1)})}(E)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_s.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_s.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,a,v){return this._inner.run(t,a,v)}runTask(t,a,v,E){const O=this._inner,j=O.scheduleEventTask("NgZoneEvent: "+E,t,uC,Ol,Ol);try{return O.runTask(j,a,v)}finally{O.cancelTask(j)}}runGuarded(t,a,v){return this._inner.runGuarded(t,a,v)}runOutsideAngular(t){return this._outer.run(t)}}const uC={};function Md(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 Sd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dg(e){e._nesting--,Md(e)}class hg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xs,this.onMicrotaskEmpty=new Xs,this.onStable=new Xs,this.onError=new Xs}run(t,a,v){return t.apply(a,v)}runGuarded(t,a,v){return t.apply(a,v)}runOutsideAngular(t){return t()}runTask(t,a,v,E){return t.apply(a,v)}}let fg=(()=>{class e{constructor(a){this._ngZone=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),a.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:()=>{_s.assertNotInAngularZone(),wd(()=>{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())wd(()=>{for(;0!==this._callbacks.length;){let a=this._callbacks.pop();clearTimeout(a.timeoutId),a.doneCb(this._didWork)}this._didWork=!1});else{let a=this.getPendingTasks();this._callbacks=this._callbacks.filter(v=>!v.updateCb||!v.updateCb(a)||(clearTimeout(v.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(a=>({source:a.source,creationLocation:a.creationLocation,data:a.data})):[]}addCallback(a,v,E){let O=-1;v&&v>0&&(O=setTimeout(()=>{this._callbacks=this._callbacks.filter(j=>j.timeoutId!==O),a(this._didWork,this.getPendingTasks())},v)),this._callbacks.push({doneCb:a,timeoutId:O,updateCb:E})}whenStable(a,v,E){if(E&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(a,v,E),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(a,v,E){return[]}}return e.\u0275fac=function(a){return new(a||e)(Cn(_s))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e})(),Dd=(()=>{class e{constructor(){this._applications=new Map,Td.addToWindow(this)}registerApplication(a,v){this._applications.set(a,v)}unregisterApplication(a){this._applications.delete(a)}unregisterAllApplications(){this._applications.clear()}getTestability(a){return this._applications.get(a)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(a,v=!0){return Td.findTestabilityInTree(this,a,v)}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e})();class hC{addToWindow(t){}findTestabilityInTree(t,a,v){return null}}function fC(e){Td=e}let Us,Td=new hC;function pg(e,t,a){const v=new Dl(a);return Promise.resolve(v)}function mg(e){return e.isBoundToModule}const xd=new lr("AllowMultipleToken");class mC{constructor(t,a){this.name=t,this.token=a}}function gg(e){if(Us&&!Us.destroyed&&!Us.injector.get(xd,!1))throw new b("400","");Us=e.get(Ad);const t=e.get(ig,null);return t&&t.forEach(a=>a()),Us}function _g(e,t,a=[]){const v=`Platform: ${t}`,E=new lr(v);return(O=[])=>{let j=Id();if(!j||j.injector.get(xd,!1))if(e)e(a.concat(O).concat({provide:E,useValue:!0}));else{const oe=a.concat(O).concat({provide:E,useValue:!0},{provide:Uu,useValue:"platform"});gg(gs.create({providers:oe,name:v}))}return vg()}}function vg(e){const t=Id();if(!t)throw new b("401","");return t}function gC(){Us&&!Us.destroyed&&Us.destroy()}function Id(){return Us&&!Us.destroyed?Us:null}let Ad=(()=>{class e{constructor(a){this._injector=a,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(a,v){const oe=function(e,t){let a;return a="noop"===e?new hg:("zone.js"===e?void 0:e)||new _s({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),a}(v?v.ngZone:void 0,{ngZoneEventCoalescing:v&&v.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:v&&v.ngZoneRunCoalescing||!1}),ge=[{provide:_s,useValue:oe}];return oe.run(()=>{const De=gs.create({providers:ge,parent:this.injector,name:a.moduleType.name}),ke=a.create(De),Je=ke.injector.get(Ca,null);if(!Je)throw new b("402","");return oe.runOutsideAngular(()=>{const Ct=oe.onError.subscribe({next:Pt=>{Je.handleError(Pt)}});ke.onDestroy(()=>{Od(this._modules,ke),Ct.unsubscribe()})}),function(e,t,a){try{const v=a();return fc(v)?v.catch(E=>{throw t.runOutsideAngular(()=>e.handleError(E)),E}):v}catch(v){throw t.runOutsideAngular(()=>e.handleError(v)),v}}(Je,oe,()=>{const Ct=ke.injector.get(la);return Ct.runInitializers(),Ct.donePromise.then(()=>(f0(ke.injector.get(Rl,Ra)||Ra),this._moduleDoBootstrap(ke),ke))})})}bootstrapModule(a,v=[]){const E=yg({},v);return pg(0,0,a).then(O=>this.bootstrapModuleFactory(O,E))}_moduleDoBootstrap(a){const v=a.injector.get(Wa);if(a._bootstrapComponents.length>0)a._bootstrapComponents.forEach(E=>v.bootstrap(E));else{if(!a.instance.ngDoBootstrap)throw new b("403","");a.instance.ngDoBootstrap(v)}this._modules.push(a)}onDestroy(a){this._destroyListeners.push(a)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b("404","");this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(a){return new(a||e)(Cn(gs))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e})();function yg(e,t){return Array.isArray(t)?t.reduce(yg,e):Object.assign(Object.assign({},e),t)}let Wa=(()=>{class e{constructor(a,v,E,O,j){this._zone=a,this._injector=v,this._exceptionHandler=E,this._componentFactoryResolver=O,this._initStatus=j,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const oe=new _.y(De=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{De.next(this._stable),De.complete()})}),ge=new _.y(De=>{let ke;this._zone.runOutsideAngular(()=>{ke=this._zone.onStable.subscribe(()=>{_s.assertNotInAngularZone(),wd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,De.next(!0))})})});const Je=this._zone.onUnstable.subscribe(()=>{_s.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{De.next(!1)}))});return()=>{ke.unsubscribe(),Je.unsubscribe()}});this.isStable=(0,m.T)(oe,ge.pipe((0,s.B)()))}bootstrap(a,v){if(!this._initStatus.done)throw new b("405","");let E;E=a instanceof El?a:this._componentFactoryResolver.resolveComponentFactory(a),this.componentTypes.push(E.componentType);const O=mg(E)?void 0:this._injector.get(sa),oe=E.create(gs.NULL,[],v||E.selector,O),ge=oe.location.nativeElement,De=oe.injector.get(fg,null),ke=De&&oe.injector.get(Dd);return De&&ke&&ke.registerApplication(ge,De),oe.onDestroy(()=>{this.detachView(oe.hostView),Od(this.components,oe),ke&&ke.unregisterApplication(ge)}),this._loadComponent(oe),oe}tick(){if(this._runningTick)throw new b("101","");try{this._runningTick=!0;for(let a of this._views)a.detectChanges()}catch(a){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(a))}finally{this._runningTick=!1}}attachView(a){const v=a;this._views.push(v),v.attachToAppRef(this)}detachView(a){const v=a;Od(this._views,v),v.detachFromAppRef()}_loadComponent(a){this.attachView(a.hostView),this.tick(),this.components.push(a),this._injector.get(sg,[]).concat(this._bootstrapListeners).forEach(E=>E(a))}ngOnDestroy(){this._views.slice().forEach(a=>a.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(a){return new(a||e)(Cn(_s),Cn(gs),Cn(Ca),Cn(Na),Cn(la))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e})();function Od(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}let Cg=!0,Eg=!1;function bC(){return Eg=!0,Cg}function CC(){if(Eg)throw new Error("Cannot enable prod mode after platform setup.");Cg=!1}function EC(e){const t=J0(e);if(!t)throw wg(e);return new Dl(t)}function wC(e){const t=J0(e);if(!t)throw wg(e);return t}function wg(e){return new Error(`No module with ID ${e} loaded`)}let Mg=(()=>{class e{}return e.__NG_ELEMENT_ID__=Sg,e})();function Sg(e){return function(e,t,a){if(Ui(e)&&!a){const v=In(e.index,t);return new ra(v,v)}return 47&e.type?new ra(t[16],t):null}(pe(),we(),16==(16&e))}class Dg extends Mg{}class SC extends Dg{}class DC{constructor(t,a){this.name=t,this.callback=a}}function TC(e){return e.map(t=>t.nativeElement)}class Rd{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new za(t):null}get injector(){return Gf(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Hu(t)||zf(t))}get context(){return Hu(this.nativeNode)||Wf(this.nativeNode)}get listeners(){return Qf(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(e){const t=Qr(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const a=e[1].data[t];if(a&&a.localNames){const v={};let E=a.index+1;for(let O=0;O1){let ke=ge[1];for(let Je=1;Jet[O]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,a=[];for(let v=0;v{if(O.name===t){const j=O.callback;j.call(v,a),E.push(j)}}),"function"==typeof v.eventListeners&&v.eventListeners(t).forEach(O=>{if(-1!==O.toString().indexOf("__ngUnwrap__")){const j=O("__ngUnwrap__");return-1===E.indexOf(j)&&j.call(v,a)}})}}function IC(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Tg(e,t,a,v){const E=Qr(e.nativeNode);null!==E?To(E.lView[1].data[E.nodeIndex],E.lView,t,a,v,e.nativeNode):kd(e.nativeNode,t,a,v)}function To(e,t,a,v,E,O){const j=function(e,t){const a=null===e?-1:e.index;return-1!==a?be(t[a]):null}(e,t);if(11&e.type){if(Ld(j,a,v,E,O),Ui(e)){const ge=In(e.index,t);ge&&ge[1].firstChild&&To(ge[1].firstChild,ge,a,v,E,O)}else e.child&&To(e.child,t,a,v,E,O),j&&kd(j,a,v,E);const oe=t[e.index];pi(oe)&&xg(oe,a,v,E,O)}else if(4&e.type){const oe=t[e.index];Ld(oe[7],a,v,E,O),xg(oe,a,v,E,O)}else if(16&e.type){const oe=t[16],De=oe[6].projection[e.projection];if(Array.isArray(De))for(let ke of De)Ld(ke,a,v,E,O);else if(De){const ke=oe[3];To(ke[1].data[De.index],ke,a,v,E,O)}}else e.child&&To(e.child,t,a,v,E,O);if(O!==j){const oe=4&e.flags?e.projectionNext:e.next;oe&&To(oe,t,a,v,E,O)}}function xg(e,t,a,v,E){for(let O=10;Ot;class Ag{constructor(t){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=t||PC}forEachItem(t){let a;for(a=this._itHead;null!==a;a=a._next)t(a)}forEachOperation(t){let a=this._itHead,v=this._removalsHead,E=0,O=null;for(;a||v;){const j=!v||a&&a.currentIndex{j=this._trackByFn(E,oe),null!==a&&Object.is(a.trackById,j)?(v&&(a=this._verifyReinsertion(a,oe,j,E)),Object.is(a.item,oe)||this._addIdentityChange(a,oe)):(a=this._mismatch(a,oe,j,E),v=!0),a=a._next,E++}),this.length=E;return this._truncate(a),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,a,v,E){let O;return null===t?O=this._itTail:(O=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(v,null))?(Object.is(t.item,a)||this._addIdentityChange(t,a),this._reinsertAfter(t,O,E)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(v,E))?(Object.is(t.item,a)||this._addIdentityChange(t,a),this._moveAfter(t,O,E)):t=this._addAfter(new FC(a,v),O,E),t}_verifyReinsertion(t,a,v,E){let O=null===this._unlinkedRecords?null:this._unlinkedRecords.get(v,null);return null!==O?t=this._reinsertAfter(O,t._prev,E):t.currentIndex!=E&&(t.currentIndex=E,this._addToMoves(t,E)),t}_truncate(t){for(;null!==t;){const a=t._next;this._addToRemovals(this._unlink(t)),t=a}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(t,a,v){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const E=t._prevRemoved,O=t._nextRemoved;return null===E?this._removalsHead=O:E._nextRemoved=O,null===O?this._removalsTail=E:O._prevRemoved=E,this._insertAfter(t,a,v),this._addToMoves(t,v),t}_moveAfter(t,a,v){return this._unlink(t),this._insertAfter(t,a,v),this._addToMoves(t,v),t}_addAfter(t,a,v){return this._insertAfter(t,a,v),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,a,v){const E=null===a?this._itHead:a._next;return t._next=E,t._prev=a,null===E?this._itTail=t:E._prev=t,null===a?this._itHead=t:a._next=t,null===this._linkedRecords&&(this._linkedRecords=new Og),this._linkedRecords.put(t),t.currentIndex=v,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const a=t._prev,v=t._next;return null===a?this._itHead=v:a._next=v,null===v?this._itTail=a:v._prev=a,t}_addToMoves(t,a){return t.previousIndex===a||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Og),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,a){return t.item=a,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class FC{constructor(t,a){this.item=t,this.trackById=a,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 NC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,a){let v;for(v=this._head;null!==v;v=v._nextDup)if((null===a||a<=v.currentIndex)&&Object.is(v.trackById,t))return v;return null}remove(t){const a=t._prevDup,v=t._nextDup;return null===a?this._head=v:a._nextDup=v,null===v?this._tail=a:v._prevDup=a,null===this._head}}class Og{constructor(){this.map=new Map}put(t){const a=t.trackById;let v=this.map.get(a);v||(v=new NC,this.map.set(a,v)),v.add(t)}get(t,a){const E=this.map.get(t);return E?E.get(t,a):null}remove(t){const a=t.trackById;return this.map.get(a).remove(t)&&this.map.delete(a),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Rg(e,t,a){const v=e.previousIndex;if(null===v)return v;let E=0;return a&&v{if(a&&a.key===E)this._maybeAddToChanges(a,v),this._appendAfter=a,a=a._next;else{const O=this._getOrCreateRecordForKey(E,v);a=this._insertBeforeOrAppend(a,O)}}),a){a._prev&&(a._prev._next=null),this._removalsHead=a;for(let v=a;null!==v;v=v._nextRemoved)v===this._mapHead&&(this._mapHead=null),this._records.delete(v.key),v._nextRemoved=v._next,v.previousValue=v.currentValue,v.currentValue=null,v._prev=null,v._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,a){if(t){const v=t._prev;return a._next=t,a._prev=v,t._prev=a,v&&(v._next=a),t===this._mapHead&&(this._mapHead=a),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=a,a._prev=this._appendAfter):this._mapHead=a,this._appendAfter=a,null}_getOrCreateRecordForKey(t,a){if(this._records.has(t)){const E=this._records.get(t);this._maybeAddToChanges(E,a);const O=E._prev,j=E._next;return O&&(O._next=j),j&&(j._prev=O),E._next=null,E._prev=null,E}const v=new BC(t);return this._records.set(t,v),v.currentValue=a,this._addToAdditions(v),v}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,a){Object.is(a,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=a,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,a){t instanceof Map?t.forEach(a):Object.keys(t).forEach(v=>a(t[v],v))}}class BC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function kg(){return new kl([new Ig])}let kl=(()=>{class e{constructor(a){this.factories=a}static create(a,v){if(null!=v){const E=v.factories.slice();a=a.concat(E)}return new e(a)}static extend(a){return{provide:e,useFactory:v=>e.create(a,v||kg()),deps:[[e,new Eo,new Is]]}}find(a){const v=this.factories.find(E=>E.supports(a));if(null!=v)return v;throw new Error(`Cannot find a differ supporting object '${a}' of type '${function(e){return e.name||typeof e}(a)}'`)}}return e.\u0275prov=Pe({token:e,providedIn:"root",factory:kg}),e})();function Pg(){return new Pl([new Lg])}let Pl=(()=>{class e{constructor(a){this.factories=a}static create(a,v){if(v){const E=v.factories.slice();a=a.concat(E)}return new e(a)}static extend(a){return{provide:e,useFactory:v=>e.create(a,v||Pg()),deps:[[e,new Eo,new Is]]}}find(a){const v=this.factories.find(E=>E.supports(a));if(v)return v;throw new Error(`Cannot find a differ supporting object '${a}'`)}}return e.\u0275prov=Pe({token:e,providedIn:"root",factory:Pg}),e})();const $C=[new Lg],Fg=new kl([new Ig]),Ng=new Pl($C),jC=_g(null,"core",[{provide:rg,useValue:"unknown"},{provide:Ad,deps:[gs]},{provide:Dd,deps:[]},{provide:og,deps:[]}]),YC=[{provide:Wa,useClass:Wa,deps:[_s,gs,Ca,Na,la]},{provide:m1,deps:[_s],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(a){t.push(a)}}},{provide:la,useClass:la,deps:[[new Is,bd]]},{provide:Ed,useClass:Ed,deps:[]},ng,{provide:kl,useFactory:function(){return Fg},deps:[]},{provide:Pl,useFactory:function(){return Ng},deps:[]},{provide:Rl,useFactory:function(e){return e||"undefined"!=typeof $localize&&$localize.locale||Ra},deps:[[new fo(Rl),new Is,new Eo]]},{provide:ag,useValue:"USD"}];let XC=(()=>{class e{constructor(a){}}return e.\u0275fac=function(a){return new(a||e)(Cn(Wa))},e.\u0275mod=An({type:e}),e.\u0275inj=at({providers:YC}),e})();const ZC=!0;function qC(e){return yr().compileDirectiveDeclaration(is,`ng:///${e.type.name}/\u0275fac.js`,e)}function JC(e){var t,a;Q0(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(a=e.propDecorators)&&void 0!==a?a:null)}function eE(e){return yr().compileComponentDeclaration(is,`ng:///${e.type.name}/\u0275cmp.js`,e)}function tE(e){return yr(function(e){switch(e){case vr.Directive:return"directive";case vr.Component:return"component";case vr.Injectable:return"injectable";case vr.Pipe:return"pipe";case vr.NgModule:;}}(e.target)).compileFactoryDeclaration(is,`ng:///${e.type.name}/\u0275fac.js`,e)}function iE(e){return yr().compileInjectableDeclaration(is,`ng:///${e.type.name}/\u0275prov.js`,e)}function rE(e){return yr().compileInjectorDeclaration(is,`ng:///${e.type.name}/\u0275inj.js`,e)}function sE(e){return yr().compileNgModuleDeclaration(is,`ng:///${e.type.name}/\u0275mod.js`,e)}function oE(e){return yr().compilePipeDeclaration(is,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{AbstractControl:()=>Ni,AbstractControlDirective:()=>yt,AbstractFormGroupDirective:()=>ue,COMPOSITION_BUFFER_MODE:()=>l,CheckboxControlValueAccessor:()=>o,CheckboxRequiredValidator:()=>Hr,ControlContainer:()=>_t,DefaultValueAccessor:()=>g,EmailValidator:()=>Wi,FormArray:()=>Vi,FormArrayName:()=>oi,FormBuilder:()=>Er,FormControl:()=>Ti,FormControlDirective:()=>Gi,FormControlName:()=>mi,FormGroup:()=>qn,FormGroupDirective:()=>tr,FormGroupName:()=>Rn,FormsModule:()=>us,MaxLengthValidator:()=>Lr,MaxValidator:()=>hr,MinLengthValidator:()=>Rr,MinValidator:()=>ir,NG_ASYNC_VALIDATORS:()=>I,NG_VALIDATORS:()=>S,NG_VALUE_ACCESSOR:()=>h,NgControl:()=>ot,NgControlStatus:()=>Et,NgControlStatusGroup:()=>Ee,NgForm:()=>qe,NgModel:()=>Zt,NgModelGroup:()=>Wt,NgSelectOption:()=>Sn,NumberValueAccessor:()=>zn,PatternValidator:()=>Fr,RadioControlValueAccessor:()=>kn,RangeValueAccessor:()=>Zi,ReactiveFormsModule:()=>si,RequiredValidator:()=>mr,SelectControlValueAccessor:()=>yn,SelectMultipleControlValueAccessor:()=>Vr,VERSION:()=>be,Validators:()=>M,\u0275InternalFormsSharedModule:()=>Tr,\u0275NgNoValidate:()=>an,\u0275NgSelectMultipleOption:()=>nr});var n=p(5e3),f=p(9808),_=p(5254),m=p(567),s=p(4850);let d=(()=>{class Q{constructor(V,ve){this._renderer=V,this._elementRef=ve,this.onChange=nt=>{},this.onTouched=()=>{}}setProperty(V,ve){this._renderer.setProperty(this._elementRef.nativeElement,V,ve)}registerOnTouched(V){this.onTouched=V}registerOnChange(V){this.onChange=V}setDisabledState(V){this.setProperty("disabled",V)}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q}),Q})(),u=(()=>{class Q extends d{}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,features:[n.\u0275\u0275InheritDefinitionFeature]}),Q})();const h=new n.InjectionToken("NgValueAccessor"),r={provide:h,useExisting:(0,n.forwardRef)(()=>o),multi:!0};let o=(()=>{class Q extends u{writeValue(V){this.setProperty("checked",V)}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(Nt){return ve.onChange(Nt.target.checked)})("blur",function(){return ve.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([r]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const i={provide:h,useExisting:(0,n.forwardRef)(()=>g),multi:!0},l=new n.InjectionToken("CompositionEventMode");let g=(()=>{class Q extends d{constructor(V,ve,nt){super(V,ve),this._compositionMode=nt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const Q=(0,f.\u0275getDOM)()?(0,f.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(Q.toLowerCase())}())}writeValue(V){this.setProperty("value",null==V?"":V)}_handleInput(V){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(V)}_compositionStart(){this._composing=!0}_compositionEnd(V){this._composing=!1,this._compositionMode&&this.onChange(V)}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(l,8))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("input",function(Nt){return ve._handleInput(Nt.target.value)})("blur",function(){return ve.onTouched()})("compositionstart",function(){return ve._compositionStart()})("compositionend",function(Nt){return ve._compositionEnd(Nt.target.value)})},features:[n.\u0275\u0275ProvidersFeature([i]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();function b(Q){return null==Q||0===Q.length}function y(Q){return null!=Q&&"number"==typeof Q.length}const S=new n.InjectionToken("NgValidators"),I=new n.InjectionToken("NgAsyncValidators"),R=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[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 M{static min(k){return A(k)}static max(k){return D(k)}static required(k){return w(k)}static requiredTrue(k){return x(k)}static email(k){return C(k)}static minLength(k){return L(k)}static maxLength(k){return F(k)}static pattern(k){return re(k)}static nullValidator(k){return null}static compose(k){return ae(k)}static composeAsync(k){return Ie(k)}}function A(Q){return k=>{if(b(k.value)||b(Q))return null;const V=parseFloat(k.value);return!isNaN(V)&&V{if(b(k.value)||b(Q))return null;const V=parseFloat(k.value);return!isNaN(V)&&V>Q?{max:{max:Q,actual:k.value}}:null}}function w(Q){return b(Q.value)?{required:!0}:null}function x(Q){return!0===Q.value?null:{required:!0}}function C(Q){return b(Q.value)||R.test(Q.value)?null:{email:!0}}function L(Q){return k=>b(k.value)||!y(k.value)?null:k.value.lengthy(k.value)&&k.value.length>Q?{maxlength:{requiredLength:Q,actualLength:k.value.length}}:null}function re(Q){if(!Q)return Y;let k,V;return"string"==typeof Q?(V="","^"!==Q.charAt(0)&&(V+="^"),V+=Q,"$"!==Q.charAt(Q.length-1)&&(V+="$"),k=new RegExp(V)):(V=Q.toString(),k=Q),ve=>{if(b(ve.value))return null;const nt=ve.value;return k.test(nt)?null:{pattern:{requiredPattern:V,actualValue:nt}}}}function Y(Q){return null}function X(Q){return null!=Q}function ee(Q){const k=(0,n.\u0275isPromise)(Q)?(0,_.D)(Q):Q;return(0,n.\u0275isObservable)(k),k}function $(Q){let k={};return Q.forEach(V=>{k=null!=V?Object.assign(Object.assign({},k),V):k}),0===Object.keys(k).length?null:k}function J(Q,k){return k.map(V=>V(Q))}function ne(Q){return Q.map(k=>function(Q){return!Q.validate}(k)?k:V=>k.validate(V))}function ae(Q){if(!Q)return null;const k=Q.filter(X);return 0==k.length?null:function(V){return $(J(V,k))}}function xe(Q){return null!=Q?ae(ne(Q)):null}function Ie(Q){if(!Q)return null;const k=Q.filter(X);return 0==k.length?null:function(V){const ve=J(V,k).map(ee);return(0,m.D)(ve).pipe((0,s.U)($))}}function We(Q){return null!=Q?Ie(ne(Q)):null}function Xe(Q,k){return null===Q?[k]:Array.isArray(Q)?[...Q,k]:[Q,k]}function ft(Q){return Q._rawValidators}function Pe(Q){return Q._rawAsyncValidators}function et(Q){return Q?Array.isArray(Q)?Q:[Q]:[]}function at(Q,k){return Array.isArray(Q)?Q.includes(k):Q===k}function pt(Q,k){const V=et(k);return et(Q).forEach(nt=>{at(V,nt)||V.push(nt)}),V}function vt(Q,k){return et(k).filter(V=>!at(Q,V))}class yt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(k){this._rawValidators=k||[],this._composedValidatorFn=xe(this._rawValidators)}_setAsyncValidators(k){this._rawAsyncValidators=k||[],this._composedAsyncValidatorFn=We(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(k){this._onDestroyCallbacks.push(k)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(k=>k()),this._onDestroyCallbacks=[]}reset(k){this.control&&this.control.reset(k)}hasError(k,V){return!!this.control&&this.control.hasError(k,V)}getError(k,V){return this.control?this.control.getError(k,V):null}}class ot extends yt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _t extends yt{get formDirective(){return null}get path(){return null}}class At{constructor(k){this._cd=k}is(k){var V,ve,nt;return"submitted"===k?!!(null===(V=this._cd)||void 0===V?void 0:V.submitted):!!(null===(nt=null===(ve=this._cd)||void 0===ve?void 0:ve.control)||void 0===nt?void 0:nt[k])}}let Et=(()=>{class Q extends At{constructor(V){super(V)}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(ot,2))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(V,ve){2&V&&n.\u0275\u0275classProp("ng-untouched",ve.is("untouched"))("ng-touched",ve.is("touched"))("ng-pristine",ve.is("pristine"))("ng-dirty",ve.is("dirty"))("ng-valid",ve.is("valid"))("ng-invalid",ve.is("invalid"))("ng-pending",ve.is("pending"))},features:[n.\u0275\u0275InheritDefinitionFeature]}),Q})(),Ee=(()=>{class Q extends At{constructor(V){super(V)}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(_t,10))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(V,ve){2&V&&n.\u0275\u0275classProp("ng-untouched",ve.is("untouched"))("ng-touched",ve.is("touched"))("ng-pristine",ve.is("pristine"))("ng-dirty",ve.is("dirty"))("ng-valid",ve.is("valid"))("ng-invalid",ve.is("invalid"))("ng-pending",ve.is("pending"))("ng-submitted",ve.is("submitted"))},features:[n.\u0275\u0275InheritDefinitionFeature]}),Q})();function tn(Q,k){return[...k.path,Q]}function Dt(Q,k){Lt(Q,k),k.valueAccessor.writeValue(Q.value),function(Q,k){k.valueAccessor.registerOnChange(V=>{Q._pendingValue=V,Q._pendingChange=!0,Q._pendingDirty=!0,"change"===Q.updateOn&&qt(Q,k)})}(Q,k),function(Q,k){const V=(ve,nt)=>{k.valueAccessor.writeValue(ve),nt&&k.viewToModelUpdate(ve)};Q.registerOnChange(V),k._registerOnDestroy(()=>{Q._unregisterOnChange(V)})}(Q,k),function(Q,k){k.valueAccessor.registerOnTouched(()=>{Q._pendingTouched=!0,"blur"===Q.updateOn&&Q._pendingChange&&qt(Q,k),"submit"!==Q.updateOn&&Q.markAsTouched()})}(Q,k),function(Q,k){if(k.valueAccessor.setDisabledState){const V=ve=>{k.valueAccessor.setDisabledState(ve)};Q.registerOnDisabledChange(V),k._registerOnDestroy(()=>{Q._unregisterOnDisabledChange(V)})}}(Q,k)}function Kt(Q,k,V=!0){const ve=()=>{};k.valueAccessor&&(k.valueAccessor.registerOnChange(ve),k.valueAccessor.registerOnTouched(ve)),Qe(Q,k),Q&&(k._invokeOnDestroyCallbacks(),Q._registerOnCollectionChange(()=>{}))}function tt(Q,k){Q.forEach(V=>{V.registerOnValidatorChange&&V.registerOnValidatorChange(k)})}function Lt(Q,k){const V=ft(Q);null!==k.validator?Q.setValidators(Xe(V,k.validator)):"function"==typeof V&&Q.setValidators([V]);const ve=Pe(Q);null!==k.asyncValidator?Q.setAsyncValidators(Xe(ve,k.asyncValidator)):"function"==typeof ve&&Q.setAsyncValidators([ve]);const nt=()=>Q.updateValueAndValidity();tt(k._rawValidators,nt),tt(k._rawAsyncValidators,nt)}function Qe(Q,k){let V=!1;if(null!==Q){if(null!==k.validator){const nt=ft(Q);if(Array.isArray(nt)&&nt.length>0){const Nt=nt.filter(nn=>nn!==k.validator);Nt.length!==nt.length&&(V=!0,Q.setValidators(Nt))}}if(null!==k.asyncValidator){const nt=Pe(Q);if(Array.isArray(nt)&&nt.length>0){const Nt=nt.filter(nn=>nn!==k.asyncValidator);Nt.length!==nt.length&&(V=!0,Q.setAsyncValidators(Nt))}}}const ve=()=>{};return tt(k._rawValidators,ve),tt(k._rawAsyncValidators,ve),V}function qt(Q,k){Q._pendingDirty&&Q.markAsDirty(),Q.setValue(Q._pendingValue,{emitModelToViewChange:!1}),k.viewToModelUpdate(Q._pendingValue),Q._pendingChange=!1}function Se(Q,k){Lt(Q,k)}function Ke(Q,k){if(!Q.hasOwnProperty("model"))return!1;const V=Q.model;return!!V.isFirstChange()||!Object.is(k,V.currentValue)}function Qt(Q,k){Q._syncPendingControls(),k.forEach(V=>{const ve=V.control;"submit"===ve.updateOn&&ve._pendingChange&&(V.viewToModelUpdate(ve._pendingValue),ve._pendingChange=!1)})}function cn(Q,k){if(!k)return null;let V,ve,nt;return Array.isArray(k),k.forEach(Nt=>{Nt.constructor===g?V=Nt:function(Q){return Object.getPrototypeOf(Q.constructor)===u}(Nt)?ve=Nt:nt=Nt}),nt||ve||V||null}function An(Q,k){const V=Q.indexOf(k);V>-1&&Q.splice(V,1)}const ct="VALID",He="INVALID",mt="PENDING",Ot="DISABLED";function on(Q){return(Oi(Q)?Q.validators:Q)||null}function On(Q){return Array.isArray(Q)?xe(Q):Q||null}function Yn(Q,k){return(Oi(k)?k.asyncValidators:Q)||null}function ji(Q){return Array.isArray(Q)?We(Q):Q||null}function Oi(Q){return null!=Q&&!Array.isArray(Q)&&"object"==typeof Q}class Ni{constructor(k,V){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=k,this._rawAsyncValidators=V,this._composedValidatorFn=On(this._rawValidators),this._composedAsyncValidatorFn=ji(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(k){this._rawValidators=this._composedValidatorFn=k}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(k){this._rawAsyncValidators=this._composedAsyncValidatorFn=k}get parent(){return this._parent}get valid(){return this.status===ct}get invalid(){return this.status===He}get pending(){return this.status==mt}get disabled(){return this.status===Ot}get enabled(){return this.status!==Ot}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(k){this._rawValidators=k,this._composedValidatorFn=On(k)}setAsyncValidators(k){this._rawAsyncValidators=k,this._composedAsyncValidatorFn=ji(k)}addValidators(k){this.setValidators(pt(k,this._rawValidators))}addAsyncValidators(k){this.setAsyncValidators(pt(k,this._rawAsyncValidators))}removeValidators(k){this.setValidators(vt(k,this._rawValidators))}removeAsyncValidators(k){this.setAsyncValidators(vt(k,this._rawAsyncValidators))}hasValidator(k){return at(this._rawValidators,k)}hasAsyncValidator(k){return at(this._rawAsyncValidators,k)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(k={}){this.touched=!0,this._parent&&!k.onlySelf&&this._parent.markAsTouched(k)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(k=>k.markAllAsTouched())}markAsUntouched(k={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(V=>{V.markAsUntouched({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}markAsDirty(k={}){this.pristine=!1,this._parent&&!k.onlySelf&&this._parent.markAsDirty(k)}markAsPristine(k={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(V=>{V.markAsPristine({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}markAsPending(k={}){this.status=mt,!1!==k.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!k.onlySelf&&this._parent.markAsPending(k)}disable(k={}){const V=this._parentMarkedDirty(k.onlySelf);this.status=Ot,this.errors=null,this._forEachChild(ve=>{ve.disable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this._updateValue(),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:V})),this._onDisabledChange.forEach(ve=>ve(!0))}enable(k={}){const V=this._parentMarkedDirty(k.onlySelf);this.status=ct,this._forEachChild(ve=>{ve.enable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:V})),this._onDisabledChange.forEach(ve=>ve(!1))}_updateAncestors(k){this._parent&&!k.onlySelf&&(this._parent.updateValueAndValidity(k),k.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(k){this._parent=k}updateValueAndValidity(k={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ct||this.status===mt)&&this._runAsyncValidator(k.emitEvent)),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!k.onlySelf&&this._parent.updateValueAndValidity(k)}_updateTreeValidity(k={emitEvent:!0}){this._forEachChild(V=>V._updateTreeValidity(k)),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ot:ct}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(k){if(this.asyncValidator){this.status=mt,this._hasOwnPendingAsyncValidator=!0;const V=ee(this.asyncValidator(this));this._asyncValidationSubscription=V.subscribe(ve=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ve,{emitEvent:k})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(k,V={}){this.errors=k,this._updateControlsErrors(!1!==V.emitEvent)}get(k){return function(Q,k,V){if(null==k||(Array.isArray(k)||(k=k.split(".")),Array.isArray(k)&&0===k.length))return null;let ve=Q;return k.forEach(nt=>{ve=ve instanceof qn?ve.controls.hasOwnProperty(nt)?ve.controls[nt]:null:ve instanceof Vi&&ve.at(nt)||null}),ve}(this,k)}getError(k,V){const ve=V?this.get(V):this;return ve&&ve.errors?ve.errors[k]:null}hasError(k,V){return!!this.getError(k,V)}get root(){let k=this;for(;k._parent;)k=k._parent;return k}_updateControlsErrors(k){this.status=this._calculateStatus(),k&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(k)}_initObservables(){this.valueChanges=new n.EventEmitter,this.statusChanges=new n.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Ot:this.errors?He:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mt)?mt:this._anyControlsHaveStatus(He)?He:ct}_anyControlsHaveStatus(k){return this._anyControls(V=>V.status===k)}_anyControlsDirty(){return this._anyControls(k=>k.dirty)}_anyControlsTouched(){return this._anyControls(k=>k.touched)}_updatePristine(k={}){this.pristine=!this._anyControlsDirty(),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}_updateTouched(k={}){this.touched=this._anyControlsTouched(),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}_isBoxedValue(k){return"object"==typeof k&&null!==k&&2===Object.keys(k).length&&"value"in k&&"disabled"in k}_registerOnCollectionChange(k){this._onCollectionChange=k}_setUpdateStrategy(k){Oi(k)&&null!=k.updateOn&&(this._updateOn=k.updateOn)}_parentMarkedDirty(k){return!k&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ti extends Ni{constructor(k=null,V,ve){super(on(V),Yn(ve,V)),this._onChange=[],this._pendingChange=!1,this._applyFormState(k),this._setUpdateStrategy(V),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(k,V={}){this.value=this._pendingValue=k,this._onChange.length&&!1!==V.emitModelToViewChange&&this._onChange.forEach(ve=>ve(this.value,!1!==V.emitViewToModelChange)),this.updateValueAndValidity(V)}patchValue(k,V={}){this.setValue(k,V)}reset(k=null,V={}){this._applyFormState(k),this.markAsPristine(V),this.markAsUntouched(V),this.setValue(this.value,V),this._pendingChange=!1}_updateValue(){}_anyControls(k){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(k){this._onChange.push(k)}_unregisterOnChange(k){An(this._onChange,k)}registerOnDisabledChange(k){this._onDisabledChange.push(k)}_unregisterOnDisabledChange(k){An(this._onDisabledChange,k)}_forEachChild(k){}_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(k){this._isBoxedValue(k)?(this.value=this._pendingValue=k.value,k.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=k}}class qn extends Ni{constructor(k,V,ve){super(on(V),Yn(ve,V)),this.controls=k,this._initObservables(),this._setUpdateStrategy(V),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(k,V){return this.controls[k]?this.controls[k]:(this.controls[k]=V,V.setParent(this),V._registerOnCollectionChange(this._onCollectionChange),V)}addControl(k,V,ve={}){this.registerControl(k,V),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}removeControl(k,V={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}setControl(k,V,ve={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],V&&this.registerControl(k,V),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}contains(k){return this.controls.hasOwnProperty(k)&&this.controls[k].enabled}setValue(k,V={}){this._checkAllValuesPresent(k),Object.keys(k).forEach(ve=>{this._throwIfControlMissing(ve),this.controls[ve].setValue(k[ve],{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V)}patchValue(k,V={}){null!=k&&(Object.keys(k).forEach(ve=>{this.controls[ve]&&this.controls[ve].patchValue(k[ve],{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V))}reset(k={},V={}){this._forEachChild((ve,nt)=>{ve.reset(k[nt],{onlySelf:!0,emitEvent:V.emitEvent})}),this._updatePristine(V),this._updateTouched(V),this.updateValueAndValidity(V)}getRawValue(){return this._reduceChildren({},(k,V,ve)=>(k[ve]=V instanceof Ti?V.value:V.getRawValue(),k))}_syncPendingControls(){let k=this._reduceChildren(!1,(V,ve)=>!!ve._syncPendingControls()||V);return k&&this.updateValueAndValidity({onlySelf:!0}),k}_throwIfControlMissing(k){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[k])throw new Error(`Cannot find form control with name: ${k}.`)}_forEachChild(k){Object.keys(this.controls).forEach(V=>{const ve=this.controls[V];ve&&k(ve,V)})}_setUpControls(){this._forEachChild(k=>{k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(k){for(const V of Object.keys(this.controls)){const ve=this.controls[V];if(this.contains(V)&&k(ve))return!0}return!1}_reduceValue(){return this._reduceChildren({},(k,V,ve)=>((V.enabled||this.disabled)&&(k[ve]=V.value),k))}_reduceChildren(k,V){let ve=k;return this._forEachChild((nt,Nt)=>{ve=V(ve,nt,Nt)}),ve}_allControlsDisabled(){for(const k of Object.keys(this.controls))if(this.controls[k].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(k){this._forEachChild((V,ve)=>{if(void 0===k[ve])throw new Error(`Must supply a value for form control with name: '${ve}'.`)})}}class Vi extends Ni{constructor(k,V,ve){super(on(V),Yn(ve,V)),this.controls=k,this._initObservables(),this._setUpdateStrategy(V),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(k){return this.controls[k]}push(k,V={}){this.controls.push(k),this._registerControl(k),this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}insert(k,V,ve={}){this.controls.splice(k,0,V),this._registerControl(V),this.updateValueAndValidity({emitEvent:ve.emitEvent})}removeAt(k,V={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),this.controls.splice(k,1),this.updateValueAndValidity({emitEvent:V.emitEvent})}setControl(k,V,ve={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),this.controls.splice(k,1),V&&(this.controls.splice(k,0,V),this._registerControl(V)),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(k,V={}){this._checkAllValuesPresent(k),k.forEach((ve,nt)=>{this._throwIfControlMissing(nt),this.at(nt).setValue(ve,{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V)}patchValue(k,V={}){null!=k&&(k.forEach((ve,nt)=>{this.at(nt)&&this.at(nt).patchValue(ve,{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V))}reset(k=[],V={}){this._forEachChild((ve,nt)=>{ve.reset(k[nt],{onlySelf:!0,emitEvent:V.emitEvent})}),this._updatePristine(V),this._updateTouched(V),this.updateValueAndValidity(V)}getRawValue(){return this.controls.map(k=>k instanceof Ti?k.value:k.getRawValue())}clear(k={}){this.controls.length<1||(this._forEachChild(V=>V._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:k.emitEvent}))}_syncPendingControls(){let k=this.controls.reduce((V,ve)=>!!ve._syncPendingControls()||V,!1);return k&&this.updateValueAndValidity({onlySelf:!0}),k}_throwIfControlMissing(k){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(k))throw new Error(`Cannot find form control at index ${k}`)}_forEachChild(k){this.controls.forEach((V,ve)=>{k(V,ve)})}_updateValue(){this.value=this.controls.filter(k=>k.enabled||this.disabled).map(k=>k.value)}_anyControls(k){return this.controls.some(V=>V.enabled&&k(V))}_setUpControls(){this._forEachChild(k=>this._registerControl(k))}_checkAllValuesPresent(k){this._forEachChild((V,ve)=>{if(void 0===k[ve])throw new Error(`Must supply a value for form control at index: ${ve}.`)})}_allControlsDisabled(){for(const k of this.controls)if(k.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(k){k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange)}}const ci={provide:_t,useExisting:(0,n.forwardRef)(()=>qe)},Ae=(()=>Promise.resolve(null))();let qe=(()=>{class Q extends _t{constructor(V,ve){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.EventEmitter,this.form=new qn({},xe(V),We(ve))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(V){Ae.then(()=>{const ve=this._findContainer(V.path);V.control=ve.registerControl(V.name,V.control),Dt(V.control,V),V.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(V)})}getControl(V){return this.form.get(V.path)}removeControl(V){Ae.then(()=>{const ve=this._findContainer(V.path);ve&&ve.removeControl(V.name),An(this._directives,V)})}addFormGroup(V){Ae.then(()=>{const ve=this._findContainer(V.path),nt=new qn({});Se(nt,V),ve.registerControl(V.name,nt),nt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(V){Ae.then(()=>{const ve=this._findContainer(V.path);ve&&ve.removeControl(V.name)})}getFormGroup(V){return this.form.get(V.path)}updateModel(V,ve){Ae.then(()=>{this.form.get(V.path).setValue(ve)})}setValue(V){this.control.setValue(V)}onSubmit(V){return this.submitted=!0,Qt(this.form,this._directives),this.ngSubmit.emit(V),!1}onReset(){this.resetForm()}resetForm(V){this.form.reset(V),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(V){return V.pop(),V.length?this.form.get(V):this.form}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(S,10),n.\u0275\u0275directiveInject(I,10))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("submit",function(Nt){return ve.onSubmit(Nt)})("reset",function(){return ve.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([ci]),n.\u0275\u0275InheritDefinitionFeature]}),Q})(),ue=(()=>{class Q extends _t{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return tn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,features:[n.\u0275\u0275InheritDefinitionFeature]}),Q})();const Ze={provide:_t,useExisting:(0,n.forwardRef)(()=>Wt)};let Wt=(()=>{class Q extends ue{constructor(V,ve,nt){super(),this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt)}_checkParentType(){}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(_t,5),n.\u0275\u0275directiveInject(S,10),n.\u0275\u0275directiveInject(I,10))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.\u0275\u0275ProvidersFeature([Ze]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const Ft={provide:ot,useExisting:(0,n.forwardRef)(()=>Zt)},Ht=(()=>Promise.resolve(null))();let Zt=(()=>{class Q extends ot{constructor(V,ve,nt,Nt){super(),this.control=new Ti,this._registered=!1,this.update=new n.EventEmitter,this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt),this.valueAccessor=cn(0,Nt)}ngOnChanges(V){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in V&&this._updateDisabled(V),Ke(V,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?tn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}_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(){Dt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(V){Ht.then(()=>{this.control.setValue(V,{emitViewToModelChange:!1})})}_updateDisabled(V){const ve=V.isDisabled.currentValue,nt=""===ve||ve&&"false"!==ve;Ht.then(()=>{nt&&!this.control.disabled?this.control.disable():!nt&&this.control.disabled&&this.control.enable()})}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(_t,9),n.\u0275\u0275directiveInject(S,10),n.\u0275\u0275directiveInject(I,10),n.\u0275\u0275directiveInject(h,10))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.\u0275\u0275ProvidersFeature([Ft]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Q})(),an=(()=>{class Q{}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Q})();const Tn={provide:h,useExisting:(0,n.forwardRef)(()=>zn),multi:!0};let zn=(()=>{class Q extends u{writeValue(V){this.setProperty("value",null==V?"":V)}registerOnChange(V){this.onChange=ve=>{V(""==ve?null:parseFloat(ve))}}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("input",function(Nt){return ve.onChange(Nt.target.value)})("blur",function(){return ve.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Tn]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const $n={provide:h,useExisting:(0,n.forwardRef)(()=>kn),multi:!0};let jn=(()=>{class Q{}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275mod=n.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=n.\u0275\u0275defineInjector({}),Q})(),Qn=(()=>{class Q{constructor(){this._accessors=[]}add(V,ve){this._accessors.push([V,ve])}remove(V){for(let ve=this._accessors.length-1;ve>=0;--ve)if(this._accessors[ve][1]===V)return void this._accessors.splice(ve,1)}select(V){this._accessors.forEach(ve=>{this._isSameGroup(ve,V)&&ve[1]!==V&&ve[1].fireUncheck(V.value)})}_isSameGroup(V,ve){return!!V[0].control&&V[0]._parent===ve._control._parent&&V[1].name===ve.name}}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac,providedIn:jn}),Q})(),kn=(()=>{class Q extends u{constructor(V,ve,nt,Nt){super(V,ve),this._registry=nt,this._injector=Nt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(ot),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(V){this._state=V===this.value,this.setProperty("checked",this._state)}registerOnChange(V){this._fn=V,this.onChange=()=>{V(this.value),this._registry.select(this)}}fireUncheck(V){this.writeValue(V)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Qn),n.\u0275\u0275directiveInject(n.Injector))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(){return ve.onChange()})("blur",function(){return ve.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.\u0275\u0275ProvidersFeature([$n]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const Mi={provide:h,useExisting:(0,n.forwardRef)(()=>Zi),multi:!0};let Zi=(()=>{class Q extends u{writeValue(V){this.setProperty("value",parseFloat(V))}registerOnChange(V){this.onChange=ve=>{V(""==ve?null:parseFloat(ve))}}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(Nt){return ve.onChange(Nt.target.value)})("input",function(Nt){return ve.onChange(Nt.target.value)})("blur",function(){return ve.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Mi]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const Xn=new n.InjectionToken("NgModelWithFormControlWarning"),pi={provide:ot,useExisting:(0,n.forwardRef)(()=>Gi)};let Gi=(()=>{class Q extends ot{constructor(V,ve,nt,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(V),this._setAsyncValidators(ve),this.valueAccessor=cn(0,nt)}set isDisabled(V){}ngOnChanges(V){if(this._isControlChanged(V)){const ve=V.form.previousValue;ve&&Kt(ve,this,!1),Dt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ke(V,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}_isControlChanged(V){return V.hasOwnProperty("form")}}return Q._ngModelWarningSentOnce=!1,Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(S,10),n.\u0275\u0275directiveInject(I,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(Xn,8))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([pi]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Q})();const Ui={provide:_t,useExisting:(0,n.forwardRef)(()=>tr)};let tr=(()=>{class Q extends _t{constructor(V,ve){super(),this.validators=V,this.asyncValidators=ve,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.EventEmitter,this._setValidators(V),this._setAsyncValidators(ve)}ngOnChanges(V){this._checkFormPresent(),V.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Qe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(V){const ve=this.form.get(V.path);return Dt(ve,V),ve.updateValueAndValidity({emitEvent:!1}),this.directives.push(V),ve}getControl(V){return this.form.get(V.path)}removeControl(V){Kt(V.control||null,V,!1),An(this.directives,V)}addFormGroup(V){this._setUpFormContainer(V)}removeFormGroup(V){this._cleanUpFormContainer(V)}getFormGroup(V){return this.form.get(V.path)}addFormArray(V){this._setUpFormContainer(V)}removeFormArray(V){this._cleanUpFormContainer(V)}getFormArray(V){return this.form.get(V.path)}updateModel(V,ve){this.form.get(V.path).setValue(ve)}onSubmit(V){return this.submitted=!0,Qt(this.form,this.directives),this.ngSubmit.emit(V),!1}onReset(){this.resetForm()}resetForm(V){this.form.reset(V),this.submitted=!1}_updateDomValue(){this.directives.forEach(V=>{const ve=V.control,nt=this.form.get(V.path);ve!==nt&&(Kt(ve||null,V),nt instanceof Ti&&(Dt(nt,V),V.control=nt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(V){const ve=this.form.get(V.path);Se(ve,V),ve.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(V){if(this.form){const ve=this.form.get(V.path);ve&&function(Q,k){return Qe(Q,k)}(ve,V)&&ve.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Lt(this.form,this),this._oldForm&&Qe(this._oldForm,this)}_checkFormPresent(){}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(S,10),n.\u0275\u0275directiveInject(I,10))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","formGroup",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("submit",function(Nt){return ve.onSubmit(Nt)})("reset",function(){return ve.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([Ui]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Q})();const bi={provide:_t,useExisting:(0,n.forwardRef)(()=>Rn)};let Rn=(()=>{class Q extends ue{constructor(V,ve,nt){super(),this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt)}_checkParentType(){Fn(this._parent)}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(_t,13),n.\u0275\u0275directiveInject(S,10),n.\u0275\u0275directiveInject(I,10))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.\u0275\u0275ProvidersFeature([bi]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const qi={provide:_t,useExisting:(0,n.forwardRef)(()=>oi)};let oi=(()=>{class Q extends _t{constructor(V,ve,nt){super(),this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return tn(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Fn(this._parent)}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(_t,13),n.\u0275\u0275directiveInject(S,10),n.\u0275\u0275directiveInject(I,10))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.\u0275\u0275ProvidersFeature([qi]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();function Fn(Q){return!(Q instanceof Rn||Q instanceof tr||Q instanceof oi)}const $i={provide:ot,useExisting:(0,n.forwardRef)(()=>mi)};let mi=(()=>{class Q extends ot{constructor(V,ve,nt,Nt,nn){super(),this._ngModelWarningConfig=nn,this._added=!1,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt),this.valueAccessor=cn(0,Nt)}set isDisabled(V){}ngOnChanges(V){this._added||this._setUpControl(),Ke(V,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}get path(){return tn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return Q._ngModelWarningSentOnce=!1,Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(_t,13),n.\u0275\u0275directiveInject(S,10),n.\u0275\u0275directiveInject(I,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(Xn,8))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.\u0275\u0275ProvidersFeature([$i]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Q})();const Gn={provide:h,useExisting:(0,n.forwardRef)(()=>yn),multi:!0};function ur(Q,k){return null==Q?`${k}`:(k&&"object"==typeof k&&(k="Object"),`${Q}: ${k}`.slice(0,50))}let yn=(()=>{class Q extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(V){this._compareWith=V}writeValue(V){this.value=V;const ve=this._getOptionId(V);null==ve&&this.setProperty("selectedIndex",-1);const nt=ur(ve,V);this.setProperty("value",nt)}registerOnChange(V){this.onChange=ve=>{this.value=this._getOptionValue(ve),V(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(V){for(const ve of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ve),V))return ve;return null}_getOptionValue(V){const ve=function(Q){return Q.split(":")[0]}(V);return this._optionMap.has(ve)?this._optionMap.get(ve):V}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(Nt){return ve.onChange(Nt.target.value)})("blur",function(){return ve.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([Gn]),n.\u0275\u0275InheritDefinitionFeature]}),Q})(),Sn=(()=>{class Q{constructor(V,ve,nt){this._element=V,this._renderer=ve,this._select=nt,this._select&&(this.id=this._select._registerOption())}set ngValue(V){null!=this._select&&(this._select._optionMap.set(this.id,V),this._setElementValue(ur(this.id,V)),this._select.writeValue(this._select.value))}set value(V){this._setElementValue(V),this._select&&this._select.writeValue(this._select.value)}_setElementValue(V){this._renderer.setProperty(this._element.nativeElement,"value",V)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(yn,9))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Q})();const Wn={provide:h,useExisting:(0,n.forwardRef)(()=>Vr),multi:!0};function Ri(Q,k){return null==Q?`${k}`:("string"==typeof k&&(k=`'${k}'`),k&&"object"==typeof k&&(k="Object"),`${Q}: ${k}`.slice(0,50))}let Vr=(()=>{class Q extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(V){this._compareWith=V}writeValue(V){let ve;if(this.value=V,Array.isArray(V)){const nt=V.map(Nt=>this._getOptionId(Nt));ve=(Nt,nn)=>{Nt._setSelected(nt.indexOf(nn.toString())>-1)}}else ve=(nt,Nt)=>{nt._setSelected(!1)};this._optionMap.forEach(ve)}registerOnChange(V){this.onChange=ve=>{const nt=[],Nt=ve.selectedOptions;if(void 0!==Nt){const nn=Nt;for(let In=0;In{class Q{constructor(V,ve,nt){this._element=V,this._renderer=ve,this._select=nt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(V){null!=this._select&&(this._value=V,this._setElementValue(Ri(this.id,V)),this._select.writeValue(this._select.value))}set value(V){this._select?(this._value=V,this._setElementValue(Ri(this.id,V)),this._select.writeValue(this._select.value)):this._setElementValue(V)}_setElementValue(V){this._renderer.setProperty(this._element.nativeElement,"value",V)}_setSelected(V){this._renderer.setProperty(this._element.nativeElement,"selected",V)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Q.\u0275fac=function(V){return new(V||Q)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(Vr,9))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Q})();function Or(Q){return"number"==typeof Q?Q:parseInt(Q,10)}function Mr(Q){return"number"==typeof Q?Q:parseFloat(Q)}let cr=(()=>{class Q{constructor(){this._validator=Y}ngOnChanges(V){if(this.inputName in V){const ve=this.normalizeInput(V[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(ve):Y,this._onChange&&this._onChange()}}validate(V){return this._validator(V)}registerOnValidatorChange(V){this._onChange=V}enabled(){return null!=this[this.inputName]}}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,features:[n.\u0275\u0275NgOnChangesFeature]}),Q})();const $r={provide:S,useExisting:(0,n.forwardRef)(()=>hr),multi:!0};let hr=(()=>{class Q extends cr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=V=>Mr(V),this.createValidator=V=>D(V)}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("max",ve.enabled()?ve.max:null)},inputs:{max:"max"},features:[n.\u0275\u0275ProvidersFeature([$r]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const qr={provide:S,useExisting:(0,n.forwardRef)(()=>ir),multi:!0};let ir=(()=>{class Q extends cr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=V=>Mr(V),this.createValidator=V=>A(V)}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("min",ve.enabled()?ve.min:null)},inputs:{min:"min"},features:[n.\u0275\u0275ProvidersFeature([qr]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const Cr={provide:S,useExisting:(0,n.forwardRef)(()=>mr),multi:!0},Sr={provide:S,useExisting:(0,n.forwardRef)(()=>Hr),multi:!0};let mr=(()=>{class Q{constructor(){this._required=!1}get required(){return this._required}set required(V){this._required=null!=V&&!1!==V&&"false"!=`${V}`,this._onChange&&this._onChange()}validate(V){return this.required?w(V):null}registerOnValidatorChange(V){this._onChange=V}}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("required",ve.required?"":null)},inputs:{required:"required"},features:[n.\u0275\u0275ProvidersFeature([Cr])]}),Q})(),Hr=(()=>{class Q extends mr{validate(V){return this.required?x(V):null}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("required",ve.required?"":null)},features:[n.\u0275\u0275ProvidersFeature([Sr]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const jr={provide:S,useExisting:(0,n.forwardRef)(()=>Wi),multi:!0};let Wi=(()=>{class Q{constructor(){this._enabled=!1}set email(V){this._enabled=""===V||!0===V||"true"===V,this._onChange&&this._onChange()}validate(V){return this._enabled?C(V):null}registerOnValidatorChange(V){this._onChange=V}}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n.\u0275\u0275ProvidersFeature([jr])]}),Q})();const Wr={provide:S,useExisting:(0,n.forwardRef)(()=>Rr),multi:!0};let Rr=(()=>{class Q extends cr{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=V=>Or(V),this.createValidator=V=>L(V)}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("minlength",ve.enabled()?ve.minlength:null)},inputs:{minlength:"minlength"},features:[n.\u0275\u0275ProvidersFeature([Wr]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const Dr={provide:S,useExisting:(0,n.forwardRef)(()=>Lr),multi:!0};let Lr=(()=>{class Q extends cr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=V=>Or(V),this.createValidator=V=>F(V)}}return Q.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(Q)))(ve||Q)}}(),Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("maxlength",ve.enabled()?ve.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.\u0275\u0275ProvidersFeature([Dr]),n.\u0275\u0275InheritDefinitionFeature]}),Q})();const Ji={provide:S,useExisting:(0,n.forwardRef)(()=>Fr),multi:!0};let Fr=(()=>{class Q{constructor(){this._validator=Y}ngOnChanges(V){"pattern"in V&&(this._createValidator(),this._onChange&&this._onChange())}validate(V){return this._validator(V)}registerOnValidatorChange(V){this._onChange=V}_createValidator(){this._validator=re(this.pattern)}}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("pattern",ve.pattern?ve.pattern:null)},inputs:{pattern:"pattern"},features:[n.\u0275\u0275ProvidersFeature([Ji]),n.\u0275\u0275NgOnChangesFeature]}),Q})(),Tr=(()=>{class Q{}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275mod=n.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=n.\u0275\u0275defineInjector({imports:[[jn]]}),Q})(),us=(()=>{class Q{}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275mod=n.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=n.\u0275\u0275defineInjector({imports:[Tr]}),Q})(),si=(()=>{class Q{static withConfig(V){return{ngModule:Q,providers:[{provide:Xn,useValue:V.warnOnNgModelWithFormControl}]}}}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275mod=n.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=n.\u0275\u0275defineInjector({imports:[Tr]}),Q})(),Er=(()=>{class Q{group(V,ve=null){const nt=this._reduceControls(V);let In,Nt=null,nn=null;return null!=ve&&(function(Q){return void 0!==Q.asyncValidators||void 0!==Q.validators||void 0!==Q.updateOn}(ve)?(Nt=null!=ve.validators?ve.validators:null,nn=null!=ve.asyncValidators?ve.asyncValidators:null,In=null!=ve.updateOn?ve.updateOn:void 0):(Nt=null!=ve.validator?ve.validator:null,nn=null!=ve.asyncValidator?ve.asyncValidator:null)),new qn(nt,{asyncValidators:nn,updateOn:In,validators:Nt})}control(V,ve,nt){return new Ti(V,ve,nt)}array(V,ve,nt){const Nt=V.map(nn=>this._createControl(nn));return new Vi(Nt,ve,nt)}_reduceControls(V){const ve={};return Object.keys(V).forEach(nt=>{ve[nt]=this._createControl(V[nt])}),ve}_createControl(V){return V instanceof Ti||V instanceof qn||V instanceof Vi?V:Array.isArray(V)?this.control(V[0],V.length>1?V[1]:null,V.length>2?V[2]:null):this.control(V)}}return Q.\u0275fac=function(V){return new(V||Q)},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac,providedIn:si}),Q})();const be=new n.Version("13.1.1")},1079:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_AUTOCOMPLETE_DEFAULT_OPTIONS:()=>$,MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY:()=>J,MAT_AUTOCOMPLETE_SCROLL_STRATEGY:()=>ae,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY:()=>xe,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>Ie,MAT_AUTOCOMPLETE_VALUE_ACCESSOR:()=>We,MatAutocomplete:()=>ne,MatAutocompleteModule:()=>pt,MatAutocompleteOrigin:()=>at,MatAutocompleteSelectedEvent:()=>X,MatAutocompleteTrigger:()=>Pe,_MatAutocompleteBase:()=>ie,_MatAutocompleteOriginBase:()=>et,_MatAutocompleteTriggerBase:()=>ft,getMatAutocompleteMissingPanelError:()=>Xe});var n=p(5664),f=p(3191),_=p(5e3),m=p(508),s=p(2654),d=p(8929),u=p(8514),h=p(6787),r=p(1086),o=p(3753),i=p(925),c=p(9808),l=p(1314),g=p(9071),b=p(1159),y=p(7429),S=p(3075),I=p(7322),R=p(2986),M=p(7545),A=p(2198),D=p(4850),w=p(2868),x=p(943),C=p(226);const L=["panel"];function F(vt,yt){if(1&vt&&(_.\u0275\u0275elementStart(0,"div",0,1),_.\u0275\u0275projection(2),_.\u0275\u0275elementEnd()),2&vt){const ot=yt.id,_t=_.\u0275\u0275nextContext();_.\u0275\u0275property("id",_t.id)("ngClass",_t._classList),_.\u0275\u0275attribute("aria-label",_t.ariaLabel||null)("aria-labelledby",_t._getPanelAriaLabelledby(ot))}}const re=["*"];let Y=0;class X{constructor(yt,ot){this.source=yt,this.option=ot}}const ee=(0,m.mixinDisableRipple)(class{}),$=new _.InjectionToken("mat-autocomplete-default-options",{providedIn:"root",factory:J});function J(){return{autoActiveFirstOption:!1}}let ie=(()=>{class vt extends ee{constructor(ot,_t,At,Tt){super(),this._changeDetectorRef=ot,this._elementRef=_t,this._activeOptionChanges=s.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new _.EventEmitter,this.opened=new _.EventEmitter,this.closed=new _.EventEmitter,this.optionActivated=new _.EventEmitter,this._classList={},this.id="mat-autocomplete-"+Y++,this.inertGroups=(null==Tt?void 0:Tt.SAFARI)||!1,this._autoActiveFirstOption=!!At.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ot){this._autoActiveFirstOption=(0,f.Ig)(ot)}set classList(ot){this._classList=ot&&ot.length?(0,f.du)(ot).reduce((_t,At)=>(_t[At]=!0,_t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ot=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ot]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(ot){this.panel&&(this.panel.nativeElement.scrollTop=ot)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ot){const _t=new X(this,ot);this.optionSelected.emit(_t)}_getPanelAriaLabelledby(ot){return this.ariaLabel?null:this.ariaLabelledby?(ot?ot+" ":"")+this.ariaLabelledby:ot}_setVisibilityClasses(ot){ot[this._visibleClass]=this.showPanel,ot[this._hiddenClass]=!this.showPanel}}return vt.\u0275fac=function(ot){return new(ot||vt)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject($),_.\u0275\u0275directiveInject(i.t4))},vt.\u0275dir=_.\u0275\u0275defineDirective({type:vt,viewQuery:function(ot,_t){if(1&ot&&(_.\u0275\u0275viewQuery(_.TemplateRef,7),_.\u0275\u0275viewQuery(L,5)),2&ot){let At;_.\u0275\u0275queryRefresh(At=_.\u0275\u0275loadQuery())&&(_t.template=At.first),_.\u0275\u0275queryRefresh(At=_.\u0275\u0275loadQuery())&&(_t.panel=At.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[_.\u0275\u0275InheritDefinitionFeature]}),vt})(),ne=(()=>{class vt extends ie{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return vt.\u0275fac=function(){let yt;return function(_t){return(yt||(yt=_.\u0275\u0275getInheritedFactory(vt)))(_t||vt)}}(),vt.\u0275cmp=_.\u0275\u0275defineComponent({type:vt,selectors:[["mat-autocomplete"]],contentQueries:function(ot,_t,At){if(1&ot&&(_.\u0275\u0275contentQuery(At,m.MAT_OPTGROUP,5),_.\u0275\u0275contentQuery(At,m.MatOption,5)),2&ot){let Tt;_.\u0275\u0275queryRefresh(Tt=_.\u0275\u0275loadQuery())&&(_t.optionGroups=Tt),_.\u0275\u0275queryRefresh(Tt=_.\u0275\u0275loadQuery())&&(_t.options=Tt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[_.\u0275\u0275ProvidersFeature([{provide:m.MAT_OPTION_PARENT_COMPONENT,useExisting:vt}]),_.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:re,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(ot,_t){1&ot&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275template(0,F,3,4,"ng-template"))},directives:[c.NgClass],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),vt})();const ae=new _.InjectionToken("mat-autocomplete-scroll-strategy");function xe(vt){return()=>vt.scrollStrategies.reposition()}const Ie={provide:ae,deps:[l.aV],useFactory:xe},We={provide:S.NG_VALUE_ACCESSOR,useExisting:(0,_.forwardRef)(()=>Pe),multi:!0};function Xe(){return Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}let ft=(()=>{class vt{constructor(ot,_t,At,Tt,Bt,Et,Ee,fe,H,T,U){this._element=ot,this._overlay=_t,this._viewContainerRef=At,this._zone=Tt,this._changeDetectorRef=Bt,this._dir=Ee,this._formField=fe,this._document=H,this._viewportRuler=T,this._defaults=U,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=s.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new d.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,u.P)(()=>this.autocomplete&&this.autocomplete.options?(0,h.T)(...this.autocomplete.options.map(Z=>Z.onSelectionChange)):this._zone.onStable.pipe((0,R.q)(1),(0,M.w)(()=>this.optionSelections))),this._scrollStrategy=Et}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ot){this._autocompleteDisabled=(0,f.Ig)(ot)}ngAfterViewInit(){const ot=this._getWindow();void 0!==ot&&this._zone.runOutsideAngular(()=>ot.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ot){ot.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ot=this._getWindow();void 0!==ot&&ot.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,A.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,A.h)(()=>this._overlayAttached)):(0,r.of)()).pipe((0,D.U)(ot=>ot instanceof m.MatOptionSelectionChange?ot:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,h.T)((0,o.R)(this._document,"click"),(0,o.R)(this._document,"auxclick"),(0,o.R)(this._document,"touchend")).pipe((0,A.h)(ot=>{const _t=(0,i.sA)(ot),At=this._formField?this._formField._elementRef.nativeElement:null,Tt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&_t!==this._element.nativeElement&&(!At||!At.contains(_t))&&(!Tt||!Tt.contains(_t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(_t)}))}writeValue(ot){Promise.resolve(null).then(()=>this._setTriggerValue(ot))}registerOnChange(ot){this._onChange=ot}registerOnTouched(ot){this._onTouched=ot}setDisabledState(ot){this._element.nativeElement.disabled=ot}_handleKeydown(ot){const _t=ot.keyCode;if(_t===b.hY&&!(0,b.Vb)(ot)&&ot.preventDefault(),this.activeOption&&_t===b.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ot.preventDefault();else if(this.autocomplete){const At=this.autocomplete._keyManager.activeItem,Tt=_t===b.LH||_t===b.JH;this.panelOpen||_t===b.Mf?this.autocomplete._keyManager.onKeydown(ot):Tt&&this._canOpen()&&this.openPanel(),(Tt||this.autocomplete._keyManager.activeItem!==At)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(ot){let _t=ot.target,At=_t.value;"number"===_t.type&&(At=""==At?null:parseFloat(At)),this._previousValue!==At&&(this._previousValue=At,this._onChange(At),this._canOpen()&&this._document.activeElement===ot.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(ot=!1){this._formField&&"auto"===this._formField.floatLabel&&(ot?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ot=this._zone.onStable.pipe((0,R.q)(1)),_t=this.autocomplete.options.changes.pipe((0,w.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,x.g)(0));return(0,h.T)(ot,_t).pipe((0,M.w)(()=>{const At=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),At!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,R.q)(1)).subscribe(At=>this._setValueAndClose(At))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(ot){const _t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ot):ot,At=null!=_t?_t:"";this._formField?this._formField._control.value=At:this._element.nativeElement.value=At,this._previousValue=At}_setValueAndClose(ot){ot&&ot.source&&(this._clearPreviousSelectedOption(ot.source),this._setTriggerValue(ot.source.value),this._onChange(ot.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(ot.source)),this.closePanel()}_clearPreviousSelectedOption(ot){this.autocomplete.options.forEach(_t=>{_t!==ot&&_t.selected&&_t.deselect()})}_attachOverlay(){var ot;let _t=this._overlayRef;_t?(this._positionStrategy.setOrigin(this._getConnectedElement()),_t.updateSize({width:this._getPanelWidth()})):(this._portal=new y.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(ot=this._formField)||void 0===ot?void 0:ot.getLabelId()}),_t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=_t,_t.keydownEvents().subscribe(Tt=>{(Tt.keyCode===b.hY&&!(0,b.Vb)(Tt)||Tt.keyCode===b.LH&&(0,b.Vb)(Tt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Tt.stopPropagation(),Tt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&_t&&_t.updateSize({width:this._getPanelWidth()})})),_t&&!_t.hasAttached()&&(_t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const At=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&At!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var ot;return new l.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(ot=this._defaults)||void 0===ot?void 0:ot.overlayPanelClass})}_getOverlayPosition(){const ot=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ot),this._positionStrategy=ot,ot}_setStrategyPositions(ot){const _t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],At=this._aboveClass,Tt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:At},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:At}];let Bt;Bt="above"===this.position?Tt:"below"===this.position?_t:[..._t,...Tt],ot.withPositions(Bt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const ot=this.autocomplete;ot.autoActiveFirstOption?ot._keyManager.setFirstItemActive():ot._keyManager.setActiveItem(-1)}_canOpen(){const ot=this._element.nativeElement;return!ot.readOnly&&!ot.disabled&&!this._autocompleteDisabled}_getWindow(){var ot;return(null===(ot=this._document)||void 0===ot?void 0:ot.defaultView)||window}_scrollToOption(ot){const _t=this.autocomplete,At=(0,m._countGroupLabelsBeforeOption)(ot,_t.options,_t.optionGroups);if(0===ot&&1===At)_t._setScrollTop(0);else if(_t.panel){const Tt=_t.options.toArray()[ot];if(Tt){const Bt=Tt._getHostElement(),Et=(0,m._getOptionScrollPosition)(Bt.offsetTop,Bt.offsetHeight,_t._getScrollTop(),_t.panel.nativeElement.offsetHeight);_t._setScrollTop(Et)}}}}return vt.\u0275fac=function(ot){return new(ot||vt)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(l.aV),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(ae),_.\u0275\u0275directiveInject(C.Is,8),_.\u0275\u0275directiveInject(I.MAT_FORM_FIELD,9),_.\u0275\u0275directiveInject(c.DOCUMENT,8),_.\u0275\u0275directiveInject(g.rL),_.\u0275\u0275directiveInject($,8))},vt.\u0275dir=_.\u0275\u0275defineDirective({type:vt,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[_.\u0275\u0275NgOnChangesFeature]}),vt})(),Pe=(()=>{class vt extends ft{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return vt.\u0275fac=function(){let yt;return function(_t){return(yt||(yt=_.\u0275\u0275getInheritedFactory(vt)))(_t||vt)}}(),vt.\u0275dir=_.\u0275\u0275defineDirective({type:vt,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(ot,_t){1&ot&&_.\u0275\u0275listener("focusin",function(){return _t._handleFocus()})("blur",function(){return _t._onTouched()})("input",function(Tt){return _t._handleInput(Tt)})("keydown",function(Tt){return _t._handleKeydown(Tt)}),2&ot&&_.\u0275\u0275attribute("autocomplete",_t.autocompleteAttribute)("role",_t.autocompleteDisabled?null:"combobox")("aria-autocomplete",_t.autocompleteDisabled?null:"list")("aria-activedescendant",_t.panelOpen&&_t.activeOption?_t.activeOption.id:null)("aria-expanded",_t.autocompleteDisabled?null:_t.panelOpen.toString())("aria-owns",_t.autocompleteDisabled||!_t.panelOpen||null==_t.autocomplete?null:_t.autocomplete.id)("aria-haspopup",!_t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[_.\u0275\u0275ProvidersFeature([We]),_.\u0275\u0275InheritDefinitionFeature]}),vt})(),et=(()=>{class vt{constructor(ot){this.elementRef=ot}}return vt.\u0275fac=function(ot){return new(ot||vt)(_.\u0275\u0275directiveInject(_.ElementRef))},vt.\u0275dir=_.\u0275\u0275defineDirective({type:vt}),vt})(),at=(()=>{class vt extends et{}return vt.\u0275fac=function(){let yt;return function(_t){return(yt||(yt=_.\u0275\u0275getInheritedFactory(vt)))(_t||vt)}}(),vt.\u0275dir=_.\u0275\u0275defineDirective({type:vt,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[_.\u0275\u0275InheritDefinitionFeature]}),vt})(),pt=(()=>{class vt{}return vt.\u0275fac=function(ot){return new(ot||vt)},vt.\u0275mod=_.\u0275\u0275defineNgModule({type:vt}),vt.\u0275inj=_.\u0275\u0275defineInjector({providers:[Ie],imports:[[l.U8,m.MatOptionModule,m.MatCommonModule,c.CommonModule],g.ZD,m.MatOptionModule,m.MatCommonModule]}),vt})()},7423:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MatAnchor:()=>c,MatButton:()=>i,MatButtonModule:()=>l});var n=p(5e3),f=p(508),_=p(6360),m=p(5664);const s=["mat-button",""],d=["*"],r=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],o=(0,f.mixinColor)((0,f.mixinDisabled)((0,f.mixinDisableRipple)(class{constructor(g){this._elementRef=g}})));let i=(()=>{class g extends o{constructor(y,S,I){super(y),this._focusMonitor=S,this._animationMode=I,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const R of r)this._hasHostAttributes(R)&&this._getHostElement().classList.add(R);y.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(y,S){y?this._focusMonitor.focusVia(this._getHostElement(),y,S):this._getHostElement().focus(S)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...y){return y.some(S=>this._getHostElement().hasAttribute(S))}}return g.\u0275fac=function(y){return new(y||g)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(m.tE),n.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))},g.\u0275cmp=n.\u0275\u0275defineComponent({type:g,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(y,S){if(1&y&&n.\u0275\u0275viewQuery(f.MatRipple,5),2&y){let I;n.\u0275\u0275queryRefresh(I=n.\u0275\u0275loadQuery())&&(S.ripple=I.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(y,S){2&y&&(n.\u0275\u0275attribute("disabled",S.disabled||null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===S._animationMode)("mat-button-disabled",S.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:d,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(y,S){1&y&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1),n.\u0275\u0275element(3,"span",2)),2&y&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",S.isRoundButton||S.isIconButton),n.\u0275\u0275property("matRippleDisabled",S._isRippleDisabled())("matRippleCentered",S.isIconButton)("matRippleTrigger",S._getHostElement()))},directives:[f.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),g})(),c=(()=>{class g extends i{constructor(y,S,I){super(S,y,I)}_haltDisabledEvents(y){this.disabled&&(y.preventDefault(),y.stopImmediatePropagation())}}return g.\u0275fac=function(y){return new(y||g)(n.\u0275\u0275directiveInject(m.tE),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))},g.\u0275cmp=n.\u0275\u0275defineComponent({type:g,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(y,S){1&y&&n.\u0275\u0275listener("click",function(R){return S._haltDisabledEvents(R)}),2&y&&(n.\u0275\u0275attribute("tabindex",S.disabled?-1:S.tabIndex||0)("disabled",S.disabled||null)("aria-disabled",S.disabled.toString()),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===S._animationMode)("mat-button-disabled",S.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:d,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(y,S){1&y&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1),n.\u0275\u0275element(3,"span",2)),2&y&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",S.isRoundButton||S.isIconButton),n.\u0275\u0275property("matRippleDisabled",S._isRippleDisabled())("matRippleCentered",S.isIconButton)("matRippleTrigger",S._getHostElement()))},directives:[f.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),g})(),l=(()=>{class g{}return g.\u0275fac=function(y){return new(y||g)},g.\u0275mod=n.\u0275\u0275defineNgModule({type:g}),g.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatRippleModule,f.MatCommonModule],f.MatCommonModule]}),g})()},9224:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MatCard:()=>A,MatCardActions:()=>l,MatCardAvatar:()=>M,MatCardContent:()=>o,MatCardFooter:()=>g,MatCardHeader:()=>D,MatCardImage:()=>b,MatCardLgImage:()=>I,MatCardMdImage:()=>S,MatCardModule:()=>x,MatCardSmImage:()=>y,MatCardSubtitle:()=>c,MatCardTitle:()=>i,MatCardTitleGroup:()=>w,MatCardXlImage:()=>R});var n=p(5e3),f=p(6360),_=p(508);const m=["*",[["mat-card-footer"]]],s=["*","mat-card-footer"],d=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],h=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],r=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let o=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),C})(),i=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),C})(),c=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),C})(),l=(()=>{class C{constructor(){this.align="start"}}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(F,re){2&F&&n.\u0275\u0275classProp("mat-card-actions-align-end","end"===re.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),C})(),g=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),C})(),b=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),C})(),y=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),C})(),S=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),C})(),I=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),C})(),R=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),C})(),M=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275dir=n.\u0275\u0275defineDirective({type:C,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),C})(),A=(()=>{class C{constructor(F){this._animationMode=F}}return C.\u0275fac=function(F){return new(F||C)(n.\u0275\u0275directiveInject(f.ANIMATION_MODULE_TYPE,8))},C.\u0275cmp=n.\u0275\u0275defineComponent({type:C,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(F,re){2&F&&n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===re._animationMode)},exportAs:["matCard"],ngContentSelectors:s,decls:2,vars:0,template:function(F,re){1&F&&(n.\u0275\u0275projectionDef(m),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),C})(),D=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275cmp=n.\u0275\u0275defineComponent({type:C,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(F,re){1&F&&(n.\u0275\u0275projectionDef(d),n.\u0275\u0275projection(0),n.\u0275\u0275elementStart(1,"div",0),n.\u0275\u0275projection(2,1),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0}),C})(),w=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275cmp=n.\u0275\u0275defineComponent({type:C,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:r,decls:4,vars:0,template:function(F,re){1&F&&(n.\u0275\u0275projectionDef(h),n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(2,1),n.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0}),C})(),x=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275mod=n.\u0275\u0275defineNgModule({type:C}),C.\u0275inj=n.\u0275\u0275defineInjector({imports:[[_.MatCommonModule],_.MatCommonModule]}),C})()},7446:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR:()=>b,MAT_CHECKBOX_DEFAULT_OPTIONS:()=>i,MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY:()=>c,MAT_CHECKBOX_REQUIRED_VALIDATOR:()=>R,MatCheckbox:()=>I,MatCheckboxChange:()=>y,MatCheckboxModule:()=>D,MatCheckboxRequiredValidator:()=>M,_MatCheckboxRequiredValidatorModule:()=>A});var n=p(3191),f=p(5e3),_=p(3075),m=p(508),s=p(6360),d=p(5664),u=p(7144);const h=["input"],r=function(w){return{enterDuration:w}},o=["*"],i=new f.InjectionToken("mat-checkbox-default-options",{providedIn:"root",factory:c});function c(){return{color:"accent",clickAction:"check-indeterminate"}}let l=0;const g=c(),b={provide:_.NG_VALUE_ACCESSOR,useExisting:(0,f.forwardRef)(()=>I),multi:!0};class y{}const S=(0,m.mixinTabIndex)((0,m.mixinColor)((0,m.mixinDisableRipple)((0,m.mixinDisabled)(class{constructor(w){this._elementRef=w}}))));let I=(()=>{class w extends S{constructor(C,L,F,re,Y,X,ee){super(C),this._changeDetectorRef=L,this._focusMonitor=F,this._ngZone=re,this._animationMode=X,this._options=ee,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++l,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new f.EventEmitter,this.indeterminateChange=new f.EventEmitter,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||g,this.color=this.defaultColor=this._options.color||g.color,this.tabIndex=parseInt(Y)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(C){this._required=(0,n.Ig)(C)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(C=>{C||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(C){C!=this.checked&&(this._checked=C,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(C){const L=(0,n.Ig)(C);L!==this.disabled&&(this._disabled=L,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(C){const L=C!=this._indeterminate;this._indeterminate=(0,n.Ig)(C),L&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(C){this.checked=!!C}registerOnChange(C){this._controlValueAccessorChangeFn=C}registerOnTouched(C){this._onTouched=C}setDisabledState(C){this.disabled=C}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(C){let L=this._currentCheckState,F=this._elementRef.nativeElement;if(L!==C&&(this._currentAnimationClass.length>0&&F.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(L,C),this._currentCheckState=C,this._currentAnimationClass.length>0)){F.classList.add(this._currentAnimationClass);const re=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{F.classList.remove(re)},1e3)})}}_emitChangeEvent(){const C=new y;C.source=this,C.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(C),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(C){var L;const F=null===(L=this._options)||void 0===L?void 0:L.clickAction;C.stopPropagation(),this.disabled||"noop"===F?!this.disabled&&"noop"===F&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==F&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(C,L){C?this._focusMonitor.focusVia(this._inputElement,C,L):this._inputElement.nativeElement.focus(L)}_onInteractionEvent(C){C.stopPropagation()}_getAnimationClassForCheckStateTransition(C,L){if("NoopAnimations"===this._animationMode)return"";let F="";switch(C){case 0:if(1===L)F="unchecked-checked";else{if(3!=L)return"";F="unchecked-indeterminate"}break;case 2:F=1===L?"unchecked-checked":"unchecked-indeterminate";break;case 1:F=2===L?"checked-unchecked":"checked-indeterminate";break;case 3:F=1===L?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${F}`}_syncIndeterminate(C){const L=this._inputElement;L&&(L.nativeElement.indeterminate=C)}}return w.\u0275fac=function(C){return new(C||w)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(d.tE),f.\u0275\u0275directiveInject(f.NgZone),f.\u0275\u0275injectAttribute("tabindex"),f.\u0275\u0275directiveInject(s.ANIMATION_MODULE_TYPE,8),f.\u0275\u0275directiveInject(i,8))},w.\u0275cmp=f.\u0275\u0275defineComponent({type:w,selectors:[["mat-checkbox"]],viewQuery:function(C,L){if(1&C&&(f.\u0275\u0275viewQuery(h,5),f.\u0275\u0275viewQuery(m.MatRipple,5)),2&C){let F;f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._inputElement=F.first),f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L.ripple=F.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(C,L){2&C&&(f.\u0275\u0275hostProperty("id",L.id),f.\u0275\u0275attribute("tabindex",null),f.\u0275\u0275classProp("mat-checkbox-indeterminate",L.indeterminate)("mat-checkbox-checked",L.checked)("mat-checkbox-disabled",L.disabled)("mat-checkbox-label-before","before"==L.labelPosition)("_mat-animation-noopable","NoopAnimations"===L._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[f.\u0275\u0275ProvidersFeature([b]),f.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:o,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(C,L){if(1&C&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"label",0,1),f.\u0275\u0275elementStart(2,"span",2),f.\u0275\u0275elementStart(3,"input",3,4),f.\u0275\u0275listener("change",function(re){return L._onInteractionEvent(re)})("click",function(re){return L._onInputClick(re)}),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(5,"span",5),f.\u0275\u0275element(6,"span",6),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(7,"span",7),f.\u0275\u0275elementStart(8,"span",8),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(9,"svg",9),f.\u0275\u0275element(10,"path",10),f.\u0275\u0275elementEnd(),f.\u0275\u0275namespaceHTML(),f.\u0275\u0275element(11,"span",11),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(12,"span",12,13),f.\u0275\u0275listener("cdkObserveContent",function(){return L._onLabelTextChange()}),f.\u0275\u0275elementStart(14,"span",14),f.\u0275\u0275text(15,"\xa0"),f.\u0275\u0275elementEnd(),f.\u0275\u0275projection(16),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&C){const F=f.\u0275\u0275reference(1),re=f.\u0275\u0275reference(13);f.\u0275\u0275attribute("for",L.inputId),f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-checkbox-inner-container-no-side-margin",!re.textContent||!re.textContent.trim()),f.\u0275\u0275advance(1),f.\u0275\u0275property("id",L.inputId)("required",L.required)("checked",L.checked)("disabled",L.disabled)("tabIndex",L.tabIndex),f.\u0275\u0275attribute("value",L.value)("name",L.name)("aria-label",L.ariaLabel||null)("aria-labelledby",L.ariaLabelledby)("aria-checked",L._getAriaChecked())("aria-describedby",L.ariaDescribedby),f.\u0275\u0275advance(2),f.\u0275\u0275property("matRippleTrigger",F)("matRippleDisabled",L._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",f.\u0275\u0275pureFunction1(19,r,"NoopAnimations"===L._animationMode?0:150))}},directives:[m.MatRipple,u.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),w})();const R={provide:_.NG_VALIDATORS,useExisting:(0,f.forwardRef)(()=>M),multi:!0};let M=(()=>{class w extends _.CheckboxRequiredValidator{}return w.\u0275fac=function(){let x;return function(L){return(x||(x=f.\u0275\u0275getInheritedFactory(w)))(L||w)}}(),w.\u0275dir=f.\u0275\u0275defineDirective({type:w,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[f.\u0275\u0275ProvidersFeature([R]),f.\u0275\u0275InheritDefinitionFeature]}),w})(),A=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=f.\u0275\u0275defineNgModule({type:w}),w.\u0275inj=f.\u0275\u0275defineInjector({}),w})(),D=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=f.\u0275\u0275defineNgModule({type:w}),w.\u0275inj=f.\u0275\u0275defineInjector({imports:[[m.MatRippleModule,m.MatCommonModule,u.Q8,A],m.MatCommonModule,A]}),w})()},508:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{AnimationCurves:()=>R,AnimationDurations:()=>M,DateAdapter:()=>ae,ErrorStateMatcher:()=>pt,MATERIAL_SANITY_CHECKS:()=>w,MAT_DATE_FORMATS:()=>xe,MAT_DATE_LOCALE:()=>ie,MAT_DATE_LOCALE_FACTORY:()=>ne,MAT_NATIVE_DATE_FORMATS:()=>ft,MAT_OPTGROUP:()=>Dt,MAT_OPTION_PARENT_COMPONENT:()=>ut,MAT_RIPPLE_GLOBAL_OPTIONS:()=>Z,MatCommonModule:()=>x,MatLine:()=>vt,MatLineModule:()=>_t,MatNativeDateModule:()=>et,MatOptgroup:()=>Kt,MatOption:()=>Qe,MatOptionModule:()=>qt,MatOptionSelectionChange:()=>xt,MatPseudoCheckbox:()=>$e,MatPseudoCheckboxModule:()=>st,MatRipple:()=>_e,MatRippleModule:()=>Be,NativeDateAdapter:()=>Xe,NativeDateModule:()=>Pe,RippleRef:()=>At,RippleRenderer:()=>H,ShowOnDirtyErrorStateMatcher:()=>at,VERSION:()=>I,_MatOptgroupBase:()=>tn,_MatOptionBase:()=>Lt,_countGroupLabelsBeforeOption:()=>gt,_getOptionScrollPosition:()=>Vt,defaultRippleAnimationConfig:()=>Tt,mixinColor:()=>Y,mixinDisableRipple:()=>X,mixinDisabled:()=>re,mixinErrorState:()=>$,mixinInitialized:()=>J,mixinTabIndex:()=>ee,setLines:()=>yt});var n=p(5e3),f=p(226),m=p(9808),s=p(925),d=p(5664),u=p(3191),h=p(8929),r=p(6498),o=p(1059),i=p(6360),c=p(1159);const l=["*",[["mat-option"],["ng-container"]]],g=["*","mat-option, ng-container"];function b(Ue,Se){if(1&Ue&&n.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&Ue){const te=n.\u0275\u0275nextContext();n.\u0275\u0275property("state",te.selected?"checked":"unchecked")("disabled",te.disabled)}}function y(Ue,Se){if(1&Ue&&(n.\u0275\u0275elementStart(0,"span",5),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Ue){const te=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("(",te.group.label,")")}}const S=["*"],I=new n.Version("13.1.1");let R=(()=>{class Ue{}return Ue.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ue.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ue.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ue.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ue})(),M=(()=>{class Ue{}return Ue.COMPLEX="375ms",Ue.ENTERING="225ms",Ue.EXITING="195ms",Ue})();const w=new n.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let x=(()=>{class Ue{constructor(te,se,Me){this._sanityChecks=se,this._document=Me,this._hasDoneGlobalChecks=!1,te._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(te){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[te])}}return Ue.\u0275fac=function(te){return new(te||Ue)(n.\u0275\u0275inject(d.qm),n.\u0275\u0275inject(w,8),n.\u0275\u0275inject(m.DOCUMENT))},Ue.\u0275mod=n.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.vT],f.vT]}),Ue})();function re(Ue){return class extends Ue{constructor(...Se){super(...Se),this._disabled=!1}get disabled(){return this._disabled}set disabled(Se){this._disabled=(0,u.Ig)(Se)}}}function Y(Ue,Se){return class extends Ue{constructor(...te){super(...te),this.defaultColor=Se,this.color=Se}get color(){return this._color}set color(te){const se=te||this.defaultColor;se!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),se&&this._elementRef.nativeElement.classList.add(`mat-${se}`),this._color=se)}}}function X(Ue){return class extends Ue{constructor(...Se){super(...Se),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Se){this._disableRipple=(0,u.Ig)(Se)}}}function ee(Ue,Se=0){return class extends Ue{constructor(...te){super(...te),this._tabIndex=Se,this.defaultTabIndex=Se}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(te){this._tabIndex=null!=te?(0,u.su)(te):this.defaultTabIndex}}}function $(Ue){return class extends Ue{constructor(...Se){super(...Se),this.stateChanges=new h.xQ,this.errorState=!1}updateErrorState(){const Se=this.errorState,Ke=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Ke!==Se&&(this.errorState=Ke,this.stateChanges.next())}}}function J(Ue){return class extends Ue{constructor(...Se){super(...Se),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new r.y(te=>{this._isInitialized?this._notifySubscriber(te):this._pendingSubscribers.push(te)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Se){Se.next(),Se.complete()}}}const ie=new n.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:ne});function ne(){return(0,n.inject)(n.LOCALE_ID)}class ae{constructor(){this._localeChanges=new h.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Se){return this.isDateInstance(Se)&&this.isValid(Se)?Se:null}deserialize(Se){return null==Se||this.isDateInstance(Se)&&this.isValid(Se)?Se:this.invalid()}setLocale(Se){this.locale=Se,this._localeChanges.next()}compareDate(Se,te){return this.getYear(Se)-this.getYear(te)||this.getMonth(Se)-this.getMonth(te)||this.getDate(Se)-this.getDate(te)}sameDate(Se,te){if(Se&&te){let se=this.isValid(Se),Me=this.isValid(te);return se&&Me?!this.compareDate(Se,te):se==Me}return Se==te}clampDate(Se,te,se){return te&&this.compareDate(Se,te)<0?te:se&&this.compareDate(Se,se)>0?se:Se}}const xe=new n.InjectionToken("mat-date-formats"),Ie=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function We(Ue,Se){const te=Array(Ue);for(let se=0;se{class Ue extends ae{constructor(te,se){super(),this.useUtcForDisplay=!1,super.setLocale(te)}getYear(te){return te.getFullYear()}getMonth(te){return te.getMonth()}getDate(te){return te.getDate()}getDayOfWeek(te){return te.getDay()}getMonthNames(te){const se=new Intl.DateTimeFormat(this.locale,{month:te,timeZone:"utc"});return We(12,Me=>this._format(se,new Date(2017,Me,1)))}getDateNames(){const te=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return We(31,se=>this._format(te,new Date(2017,0,se+1)))}getDayOfWeekNames(te){const se=new Intl.DateTimeFormat(this.locale,{weekday:te,timeZone:"utc"});return We(7,Me=>this._format(se,new Date(2017,0,Me+1)))}getYearName(te){const se=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(se,te)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(te){return this.getDate(this._createDateWithOverflow(this.getYear(te),this.getMonth(te)+1,0))}clone(te){return new Date(te.getTime())}createDate(te,se,Me){let Ke=this._createDateWithOverflow(te,se,Me);return Ke.getMonth(),Ke}today(){return new Date}parse(te){return"number"==typeof te?new Date(te):te?new Date(Date.parse(te)):null}format(te,se){if(!this.isValid(te))throw Error("NativeDateAdapter: Cannot format invalid date.");const Me=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},se),{timeZone:"utc"}));return this._format(Me,te)}addCalendarYears(te,se){return this.addCalendarMonths(te,12*se)}addCalendarMonths(te,se){let Me=this._createDateWithOverflow(this.getYear(te),this.getMonth(te)+se,this.getDate(te));return this.getMonth(Me)!=((this.getMonth(te)+se)%12+12)%12&&(Me=this._createDateWithOverflow(this.getYear(Me),this.getMonth(Me),0)),Me}addCalendarDays(te,se){return this._createDateWithOverflow(this.getYear(te),this.getMonth(te),this.getDate(te)+se)}toIso8601(te){return[te.getUTCFullYear(),this._2digit(te.getUTCMonth()+1),this._2digit(te.getUTCDate())].join("-")}deserialize(te){if("string"==typeof te){if(!te)return null;if(Ie.test(te)){let se=new Date(te);if(this.isValid(se))return se}}return super.deserialize(te)}isDateInstance(te){return te instanceof Date}isValid(te){return!isNaN(te.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(te,se,Me){const Ke=new Date;return Ke.setFullYear(te,se,Me),Ke.setHours(0,0,0,0),Ke}_2digit(te){return("00"+te).slice(-2)}_format(te,se){const Me=new Date;return Me.setUTCFullYear(se.getFullYear(),se.getMonth(),se.getDate()),Me.setUTCHours(se.getHours(),se.getMinutes(),se.getSeconds(),se.getMilliseconds()),te.format(Me)}}return Ue.\u0275fac=function(te){return new(te||Ue)(n.\u0275\u0275inject(ie,8),n.\u0275\u0275inject(s.t4))},Ue.\u0275prov=n.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})();const ft={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Pe=(()=>{class Ue{}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275mod=n.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:ae,useClass:Xe}],imports:[[s.ud]]}),Ue})(),et=(()=>{class Ue{}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275mod=n.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:xe,useValue:ft}],imports:[[Pe]]}),Ue})(),at=(()=>{class Ue{isErrorState(te,se){return!!(te&&te.invalid&&(te.dirty||se&&se.submitted))}}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275prov=n.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})(),pt=(()=>{class Ue{isErrorState(te,se){return!!(te&&te.invalid&&(te.touched||se&&se.submitted))}}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275prov=n.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),vt=(()=>{class Ue{}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275dir=n.\u0275\u0275defineDirective({type:Ue,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ue})();function yt(Ue,Se,te="mat"){Ue.changes.pipe((0,o.O)(Ue)).subscribe(({length:se})=>{ot(Se,`${te}-2-line`,!1),ot(Se,`${te}-3-line`,!1),ot(Se,`${te}-multi-line`,!1),2===se||3===se?ot(Se,`${te}-${se}-line`,!0):se>3&&ot(Se,`${te}-multi-line`,!0)})}function ot(Ue,Se,te){Ue.nativeElement.classList.toggle(Se,te)}let _t=(()=>{class Ue{}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275mod=n.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=n.\u0275\u0275defineInjector({imports:[[x],x]}),Ue})();class At{constructor(Se,te,se){this._renderer=Se,this.element=te,this.config=se,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tt={enterDuration:225,exitDuration:150},Et=(0,s.i$)({passive:!0}),Ee=["mousedown","touchstart"],fe=["mouseup","mouseleave","touchend","touchcancel"];class H{constructor(Se,te,se,Me){this._target=Se,this._ngZone=te,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Me.isBrowser&&(this._containerElement=(0,u.fI)(se))}fadeInRipple(Se,te,se={}){const Me=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ke=Object.assign(Object.assign({},Tt),se.animation);se.centered&&(Se=Me.left+Me.width/2,te=Me.top+Me.height/2);const It=se.radius||function(Ue,Se,te){const se=Math.max(Math.abs(Ue-te.left),Math.abs(Ue-te.right)),Me=Math.max(Math.abs(Se-te.top),Math.abs(Se-te.bottom));return Math.sqrt(se*se+Me*Me)}(Se,te,Me),Qt=Se-Me.left,cn=te-Me.top,An=Ke.enterDuration,lt=document.createElement("div");lt.classList.add("mat-ripple-element"),lt.style.left=Qt-It+"px",lt.style.top=cn-It+"px",lt.style.height=2*It+"px",lt.style.width=2*It+"px",null!=se.color&&(lt.style.backgroundColor=se.color),lt.style.transitionDuration=`${An}ms`,this._containerElement.appendChild(lt),window.getComputedStyle(lt).getPropertyValue("opacity"),lt.style.transform="scale(1)";const ct=new At(this,lt,se);return ct.state=0,this._activeRipples.add(ct),se.persistent||(this._mostRecentTransientRipple=ct),this._runTimeoutOutsideZone(()=>{const He=ct===this._mostRecentTransientRipple;ct.state=1,!se.persistent&&(!He||!this._isPointerDown)&&ct.fadeOut()},An),ct}fadeOutRipple(Se){const te=this._activeRipples.delete(Se);if(Se===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!te)return;const se=Se.element,Me=Object.assign(Object.assign({},Tt),Se.config.animation);se.style.transitionDuration=`${Me.exitDuration}ms`,se.style.opacity="0",Se.state=2,this._runTimeoutOutsideZone(()=>{Se.state=3,se.remove()},Me.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Se=>Se.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Se=>{Se.config.persistent||Se.fadeOut()})}setupTriggerEvents(Se){const te=(0,u.fI)(Se);!te||te===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=te,this._registerEvents(Ee))}handleEvent(Se){"mousedown"===Se.type?this._onMousedown(Se):"touchstart"===Se.type?this._onTouchStart(Se):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(fe),this._pointerUpEventsRegistered=!0)}_onMousedown(Se){const te=(0,d.X6)(Se),se=this._lastTouchStartEvent&&Date.now(){!Se.config.persistent&&(1===Se.state||Se.config.terminateOnPointerUp&&0===Se.state)&&Se.fadeOut()}))}_runTimeoutOutsideZone(Se,te=0){this._ngZone.runOutsideAngular(()=>setTimeout(Se,te))}_registerEvents(Se){this._ngZone.runOutsideAngular(()=>{Se.forEach(te=>{this._triggerElement.addEventListener(te,this,Et)})})}_removeTriggerEvents(){this._triggerElement&&(Ee.forEach(Se=>{this._triggerElement.removeEventListener(Se,this,Et)}),this._pointerUpEventsRegistered&&fe.forEach(Se=>{this._triggerElement.removeEventListener(Se,this,Et)}))}}const Z=new n.InjectionToken("mat-ripple-global-options");let _e=(()=>{class Ue{constructor(te,se,Me,Ke,It){this._elementRef=te,this._animationMode=It,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ke||{},this._rippleRenderer=new H(this,se,te,Me)}get disabled(){return this._disabled}set disabled(te){te&&this.fadeOutAllNonPersistent(),this._disabled=te,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(te){this._trigger=te,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(te,se=0,Me){return"number"==typeof te?this._rippleRenderer.fadeInRipple(te,se,Object.assign(Object.assign({},this.rippleConfig),Me)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),te))}}return Ue.\u0275fac=function(te){return new(te||Ue)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(s.t4),n.\u0275\u0275directiveInject(Z,8),n.\u0275\u0275directiveInject(i.ANIMATION_MODULE_TYPE,8))},Ue.\u0275dir=n.\u0275\u0275defineDirective({type:Ue,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(te,se){2&te&&n.\u0275\u0275classProp("mat-ripple-unbounded",se.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ue})(),Be=(()=>{class Ue{}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275mod=n.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=n.\u0275\u0275defineInjector({imports:[[x,s.ud],x]}),Ue})(),$e=(()=>{class Ue{constructor(te){this._animationMode=te,this.state="unchecked",this.disabled=!1}}return Ue.\u0275fac=function(te){return new(te||Ue)(n.\u0275\u0275directiveInject(i.ANIMATION_MODULE_TYPE,8))},Ue.\u0275cmp=n.\u0275\u0275defineComponent({type:Ue,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(te,se){2&te&&n.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===se.state)("mat-pseudo-checkbox-checked","checked"===se.state)("mat-pseudo-checkbox-disabled",se.disabled)("_mat-animation-noopable","NoopAnimations"===se._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(te,se){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Ue})(),st=(()=>{class Ue{}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275mod=n.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=n.\u0275\u0275defineInjector({imports:[[x]]}),Ue})();const ut=new n.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),St=re(class{});let Xt=0,tn=(()=>{class Ue extends St{constructor(te){var se;super(),this._labelId="mat-optgroup-label-"+Xt++,this._inert=null!==(se=null==te?void 0:te.inertGroups)&&void 0!==se&&se}}return Ue.\u0275fac=function(te){return new(te||Ue)(n.\u0275\u0275directiveInject(ut,8))},Ue.\u0275dir=n.\u0275\u0275defineDirective({type:Ue,inputs:{label:"label"},features:[n.\u0275\u0275InheritDefinitionFeature]}),Ue})();const Dt=new n.InjectionToken("MatOptgroup");let Kt=(()=>{class Ue extends tn{}return Ue.\u0275fac=function(){let Se;return function(se){return(Se||(Se=n.\u0275\u0275getInheritedFactory(Ue)))(se||Ue)}}(),Ue.\u0275cmp=n.\u0275\u0275defineComponent({type:Ue,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(te,se){2&te&&(n.\u0275\u0275attribute("role",se._inert?null:"group")("aria-disabled",se._inert?null:se.disabled.toString())("aria-labelledby",se._inert?null:se._labelId),n.\u0275\u0275classProp("mat-optgroup-disabled",se.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[n.\u0275\u0275ProvidersFeature([{provide:Dt,useExisting:Ue}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:g,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(te,se){1&te&&(n.\u0275\u0275projectionDef(l),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275text(1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(3,1)),2&te&&(n.\u0275\u0275property("id",se._labelId),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("",se.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ue})(),tt=0;class xt{constructor(Se,te=!1){this.source=Se,this.isUserInput=te}}let Lt=(()=>{class Ue{constructor(te,se,Me,Ke){this._element=te,this._changeDetectorRef=se,this._parent=Me,this.group=Ke,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+tt++,this.onSelectionChange=new n.EventEmitter,this._stateChanges=new h.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(te){this._disabled=(0,u.Ig)(te)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(te,se){const Me=this._getHostElement();"function"==typeof Me.focus&&Me.focus(se)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(te){(te.keyCode===c.K5||te.keyCode===c.L_)&&!(0,c.Vb)(te)&&(this._selectViaInteraction(),te.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const te=this.viewValue;te!==this._mostRecentViewValue&&(this._mostRecentViewValue=te,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(te=!1){this.onSelectionChange.emit(new xt(this,te))}}return Ue.\u0275fac=function(te){n.\u0275\u0275invalidFactory()},Ue.\u0275dir=n.\u0275\u0275defineDirective({type:Ue,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ue})(),Qe=(()=>{class Ue extends Lt{constructor(te,se,Me,Ke){super(te,se,Me,Ke)}}return Ue.\u0275fac=function(te){return new(te||Ue)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(ut,8),n.\u0275\u0275directiveInject(Dt,8))},Ue.\u0275cmp=n.\u0275\u0275defineComponent({type:Ue,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(te,se){1&te&&n.\u0275\u0275listener("click",function(){return se._selectViaInteraction()})("keydown",function(Ke){return se._handleKeydown(Ke)}),2&te&&(n.\u0275\u0275hostProperty("id",se.id),n.\u0275\u0275attribute("tabindex",se._getTabIndex())("aria-selected",se._getAriaSelected())("aria-disabled",se.disabled.toString()),n.\u0275\u0275classProp("mat-selected",se.selected)("mat-option-multiple",se.multiple)("mat-active",se.active)("mat-option-disabled",se.disabled))},exportAs:["matOption"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:S,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(te,se){1&te&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,b,1,2,"mat-pseudo-checkbox",0),n.\u0275\u0275elementStart(1,"span",1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(3,y,2,1,"span",2),n.\u0275\u0275element(4,"div",3)),2&te&&(n.\u0275\u0275property("ngIf",se.multiple),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",se.group&&se.group._inert),n.\u0275\u0275advance(1),n.\u0275\u0275property("matRippleTrigger",se._getHostElement())("matRippleDisabled",se.disabled||se.disableRipple))},directives:[m.NgIf,_e,$e],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ue})();function gt(Ue,Se,te){if(te.length){let se=Se.toArray(),Me=te.toArray(),Ke=0;for(let It=0;Itte+se?Math.max(0,Ue-se+Se):te}let qt=(()=>{class Ue{}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275mod=n.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=n.\u0275\u0275defineInjector({imports:[[Be,m.CommonModule,x,st]]}),Ue})()},4703:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{DateRange:()=>At,DefaultMatCalendarRangeStrategy:()=>Z,MAT_DATEPICKER_SCROLL_STRATEGY:()=>Se,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY:()=>te,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>se,MAT_DATEPICKER_VALIDATORS:()=>He,MAT_DATEPICKER_VALUE_ACCESSOR:()=>ct,MAT_DATE_RANGE_SELECTION_STRATEGY:()=>U,MAT_RANGE_DATE_SELECTION_MODEL_FACTORY:()=>H,MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER:()=>T,MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY:()=>Ee,MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER:()=>fe,MatCalendar:()=>Vt,MatCalendarBody:()=>pt,MatCalendarCell:()=>at,MatCalendarHeader:()=>gt,MatDateRangeInput:()=>Ti,MatDateRangePicker:()=>qn,MatDateSelectionModel:()=>Tt,MatDatepicker:()=>Qt,MatDatepickerActions:()=>Ae,MatDatepickerApply:()=>Vi,MatDatepickerCancel:()=>ci,MatDatepickerContent:()=>Ke,MatDatepickerInput:()=>mt,MatDatepickerInputEvent:()=>cn,MatDatepickerIntl:()=>Lt,MatDatepickerModule:()=>qe,MatDatepickerToggle:()=>un,MatDatepickerToggleIcon:()=>Ot,MatEndDate:()=>Oi,MatMonthView:()=>st,MatMultiYearView:()=>Xt,MatRangeDateSelectionModel:()=>Et,MatSingleDateSelectionModel:()=>Bt,MatStartDate:()=>ji,MatYearView:()=>xt,matDatepickerAnimations:()=>qt,yearsPerPage:()=>ut,yearsPerRow:()=>St});var n=p(5664),f=p(1314),_=p(7429),m=p(9808),s=p(5e3),d=p(7423),u=p(9071),h=p(508),r=p(8929),o=p(2654),i=p(6787),c=p(1086),l=p(1159),g=p(2986),b=p(1059),y=p(2198),S=p(226),I=p(3191),R=p(925),M=p(1777),A=p(3075),D=p(7322),w=p(7531);const x=["mat-calendar-body",""];function C(ue,Le){if(1&ue&&(s.\u0275\u0275elementStart(0,"tr",2),s.\u0275\u0275elementStart(1,"td",3),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&ue){const B=s.\u0275\u0275nextContext();s.\u0275\u0275advance(1),s.\u0275\u0275styleProp("padding-top",B._cellPadding)("padding-bottom",B._cellPadding),s.\u0275\u0275attribute("colspan",B.numCols),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1(" ",B.label," ")}}function L(ue,Le){if(1&ue&&(s.\u0275\u0275elementStart(0,"td",3),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&ue){const B=s.\u0275\u0275nextContext(2);s.\u0275\u0275styleProp("padding-top",B._cellPadding)("padding-bottom",B._cellPadding),s.\u0275\u0275attribute("colspan",B._firstRowOffset),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1(" ",B._firstRowOffset>=B.labelMinRequiredCells?B.label:""," ")}}function F(ue,Le){if(1&ue){const B=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"td",7),s.\u0275\u0275listener("click",function(Fe){const Wt=s.\u0275\u0275restoreView(B).$implicit;return s.\u0275\u0275nextContext(2)._cellClicked(Wt,Fe)}),s.\u0275\u0275elementStart(1,"div",8),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(3,"div",9),s.\u0275\u0275elementEnd()}if(2&ue){const B=Le.$implicit,de=Le.index,Fe=s.\u0275\u0275nextContext().index,Ze=s.\u0275\u0275nextContext();s.\u0275\u0275styleProp("width",Ze._cellWidth)("padding-top",Ze._cellPadding)("padding-bottom",Ze._cellPadding),s.\u0275\u0275classProp("mat-calendar-body-disabled",!B.enabled)("mat-calendar-body-active",Ze._isActiveCell(Fe,de))("mat-calendar-body-range-start",Ze._isRangeStart(B.compareValue))("mat-calendar-body-range-end",Ze._isRangeEnd(B.compareValue))("mat-calendar-body-in-range",Ze._isInRange(B.compareValue))("mat-calendar-body-comparison-bridge-start",Ze._isComparisonBridgeStart(B.compareValue,Fe,de))("mat-calendar-body-comparison-bridge-end",Ze._isComparisonBridgeEnd(B.compareValue,Fe,de))("mat-calendar-body-comparison-start",Ze._isComparisonStart(B.compareValue))("mat-calendar-body-comparison-end",Ze._isComparisonEnd(B.compareValue))("mat-calendar-body-in-comparison-range",Ze._isInComparisonRange(B.compareValue))("mat-calendar-body-preview-start",Ze._isPreviewStart(B.compareValue))("mat-calendar-body-preview-end",Ze._isPreviewEnd(B.compareValue))("mat-calendar-body-in-preview",Ze._isInPreview(B.compareValue)),s.\u0275\u0275property("ngClass",B.cssClasses)("tabindex",Ze._isActiveCell(Fe,de)?0:-1),s.\u0275\u0275attribute("data-mat-row",Fe)("data-mat-col",de)("aria-label",B.ariaLabel)("aria-disabled",!B.enabled||null)("aria-selected",Ze._isSelected(B.compareValue))("aria-current",Ze.todayValue===B.compareValue?"date":null),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("mat-calendar-body-selected",Ze._isSelected(B.compareValue))("mat-calendar-body-comparison-identical",Ze._isComparisonIdentical(B.compareValue))("mat-calendar-body-today",Ze.todayValue===B.compareValue),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1(" ",B.displayValue," ")}}function re(ue,Le){if(1&ue&&(s.\u0275\u0275elementStart(0,"tr",4),s.\u0275\u0275template(1,L,2,6,"td",5),s.\u0275\u0275template(2,F,4,47,"td",6),s.\u0275\u0275elementEnd()),2&ue){const B=Le.$implicit,de=Le.index,Fe=s.\u0275\u0275nextContext();s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",0===de&&Fe._firstRowOffset),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",B)}}function Y(ue,Le){if(1&ue&&(s.\u0275\u0275elementStart(0,"th",5),s.\u0275\u0275elementStart(1,"abbr",6),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&ue){const B=Le.$implicit;s.\u0275\u0275attribute("aria-label",B.long),s.\u0275\u0275advance(1),s.\u0275\u0275attribute("title",B.long),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(B.narrow)}}const X=["*"];function ee(ue,Le){}function $(ue,Le){if(1&ue){const B=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-month-view",5),s.\u0275\u0275listener("activeDateChange",function(Fe){return s.\u0275\u0275restoreView(B),s.\u0275\u0275nextContext().activeDate=Fe})("_userSelection",function(Fe){return s.\u0275\u0275restoreView(B),s.\u0275\u0275nextContext()._dateSelected(Fe)}),s.\u0275\u0275elementEnd()}if(2&ue){const B=s.\u0275\u0275nextContext();s.\u0275\u0275property("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)("comparisonStart",B.comparisonStart)("comparisonEnd",B.comparisonEnd)}}function J(ue,Le){if(1&ue){const B=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-year-view",6),s.\u0275\u0275listener("activeDateChange",function(Fe){return s.\u0275\u0275restoreView(B),s.\u0275\u0275nextContext().activeDate=Fe})("monthSelected",function(Fe){return s.\u0275\u0275restoreView(B),s.\u0275\u0275nextContext()._monthSelectedInYearView(Fe)})("selectedChange",function(Fe){return s.\u0275\u0275restoreView(B),s.\u0275\u0275nextContext()._goToDateInView(Fe,"month")}),s.\u0275\u0275elementEnd()}if(2&ue){const B=s.\u0275\u0275nextContext();s.\u0275\u0275property("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)}}function ie(ue,Le){if(1&ue){const B=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-multi-year-view",7),s.\u0275\u0275listener("activeDateChange",function(Fe){return s.\u0275\u0275restoreView(B),s.\u0275\u0275nextContext().activeDate=Fe})("yearSelected",function(Fe){return s.\u0275\u0275restoreView(B),s.\u0275\u0275nextContext()._yearSelectedInMultiYearView(Fe)})("selectedChange",function(Fe){return s.\u0275\u0275restoreView(B),s.\u0275\u0275nextContext()._goToDateInView(Fe,"year")}),s.\u0275\u0275elementEnd()}if(2&ue){const B=s.\u0275\u0275nextContext();s.\u0275\u0275property("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)}}function ne(ue,Le){}const ae=["button"];function xe(ue,Le){1&ue&&(s.\u0275\u0275namespaceSVG(),s.\u0275\u0275elementStart(0,"svg",3),s.\u0275\u0275element(1,"path",4),s.\u0275\u0275elementEnd())}const Ie=[[["","matDatepickerToggleIcon",""]]],We=["[matDatepickerToggleIcon]"],Xe=[[["input","matStartDate",""]],[["input","matEndDate",""]]],ft=["input[matStartDate]","input[matEndDate]"];function Pe(ue,Le){1&ue&&(s.\u0275\u0275elementStart(0,"div",0),s.\u0275\u0275projection(1),s.\u0275\u0275elementEnd())}class at{constructor(Le,B,de,Fe,Ze={},Wt=Le,Ft){this.value=Le,this.displayValue=B,this.ariaLabel=de,this.enabled=Fe,this.cssClasses=Ze,this.compareValue=Wt,this.rawValue=Ft}}let pt=(()=>{class ue{constructor(B,de){this._elementRef=B,this._ngZone=de,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.EventEmitter,this.previewChange=new s.EventEmitter,this._enterHandler=Fe=>{if(this._skipNextFocus&&"focus"===Fe.type)this._skipNextFocus=!1;else if(Fe.target&&this.isRange){const Ze=this._getCellFromElement(Fe.target);Ze&&this._ngZone.run(()=>this.previewChange.emit({value:Ze.enabled?Ze:null,event:Fe}))}},this._leaveHandler=Fe=>{null!==this.previewEnd&&this.isRange&&Fe.target&&vt(Fe.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Fe}))},de.runOutsideAngular(()=>{const Fe=B.nativeElement;Fe.addEventListener("mouseenter",this._enterHandler,!0),Fe.addEventListener("focus",this._enterHandler,!0),Fe.addEventListener("mouseleave",this._leaveHandler,!0),Fe.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(B,de){B.enabled&&this.selectedValueChange.emit({value:B.value,event:de})}_isSelected(B){return this.startValue===B||this.endValue===B}ngOnChanges(B){const de=B.numCols,{rows:Fe,numCols:Ze}=this;(B.rows||de)&&(this._firstRowOffset=Fe&&Fe.length&&Fe[0].length?Ze-Fe[0].length:0),(B.cellAspectRatio||de||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Ze+"%"),(de||!this._cellWidth)&&(this._cellWidth=100/Ze+"%")}ngOnDestroy(){const B=this._elementRef.nativeElement;B.removeEventListener("mouseenter",this._enterHandler,!0),B.removeEventListener("focus",this._enterHandler,!0),B.removeEventListener("mouseleave",this._leaveHandler,!0),B.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(B,de){let Fe=B*this.numCols+de;return B&&(Fe-=this._firstRowOffset),Fe==this.activeCell}_focusActiveCell(B=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{const de=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");de&&(B||(this._skipNextFocus=!0),de.focus())})})}_isRangeStart(B){return yt(B,this.startValue,this.endValue)}_isRangeEnd(B){return ot(B,this.startValue,this.endValue)}_isInRange(B){return _t(B,this.startValue,this.endValue,this.isRange)}_isComparisonStart(B){return yt(B,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(B,de,Fe){if(!this._isComparisonStart(B)||this._isRangeStart(B)||!this._isInRange(B))return!1;let Ze=this.rows[de][Fe-1];if(!Ze){const Wt=this.rows[de-1];Ze=Wt&&Wt[Wt.length-1]}return Ze&&!this._isRangeEnd(Ze.compareValue)}_isComparisonBridgeEnd(B,de,Fe){if(!this._isComparisonEnd(B)||this._isRangeEnd(B)||!this._isInRange(B))return!1;let Ze=this.rows[de][Fe+1];if(!Ze){const Wt=this.rows[de+1];Ze=Wt&&Wt[0]}return Ze&&!this._isRangeStart(Ze.compareValue)}_isComparisonEnd(B){return ot(B,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(B){return _t(B,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(B){return this.comparisonStart===this.comparisonEnd&&B===this.comparisonStart}_isPreviewStart(B){return yt(B,this.previewStart,this.previewEnd)}_isPreviewEnd(B){return ot(B,this.previewStart,this.previewEnd)}_isInPreview(B){return _t(B,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(B){let de;if(vt(B)?de=B:vt(B.parentNode)&&(de=B.parentNode),de){const Fe=de.getAttribute("data-mat-row"),Ze=de.getAttribute("data-mat-col");if(Fe&&Ze)return this.rows[parseInt(Fe)][parseInt(Ze)]}return null}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone))},ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[s.\u0275\u0275NgOnChangesFeature],attrs:x,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(B,de){1&B&&(s.\u0275\u0275template(0,C,3,6,"tr",0),s.\u0275\u0275template(1,re,3,2,"tr",1)),2&B&&(s.\u0275\u0275property("ngIf",de._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),ue})();function vt(ue){return"TD"===ue.nodeName}function yt(ue,Le,B){return null!==B&&Le!==B&&ue=Le&&ue===B}function _t(ue,Le,B,de){return de&&null!==Le&&null!==B&&Le!==B&&ue>=Le&&ue<=B}class At{constructor(Le,B){this.start=Le,this.end=B}}let Tt=(()=>{class ue{constructor(B,de){this.selection=B,this._adapter=de,this._selectionChanged=new r.xQ,this.selectionChanged=this._selectionChanged,this.selection=B}updateSelection(B,de){const Fe=this.selection;this.selection=B,this._selectionChanged.next({selection:B,source:de,oldValue:Fe})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(B){return this._adapter.isDateInstance(B)&&this._adapter.isValid(B)}}return ue.\u0275fac=function(B){s.\u0275\u0275invalidFactory()},ue.\u0275prov=s.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Bt=(()=>{class ue extends Tt{constructor(B){super(null,B)}add(B){super.updateSelection(B,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const B=new ue(this._adapter);return B.updateSelection(this.selection,this),B}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275inject(h.DateAdapter))},ue.\u0275prov=s.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Et=(()=>{class ue extends Tt{constructor(B){super(new At(null,null),B)}add(B){let{start:de,end:Fe}=this.selection;null==de?de=B:null==Fe?Fe=B:(de=B,Fe=null),super.updateSelection(new At(de,Fe),this)}isValid(){const{start:B,end:de}=this.selection;return null==B&&null==de||(null!=B&&null!=de?this._isValidDateInstance(B)&&this._isValidDateInstance(de)&&this._adapter.compareDate(B,de)<=0:(null==B||this._isValidDateInstance(B))&&(null==de||this._isValidDateInstance(de)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const B=new ue(this._adapter);return B.updateSelection(this.selection,this),B}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275inject(h.DateAdapter))},ue.\u0275prov=s.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();function Ee(ue,Le){return ue||new Bt(Le)}const fe={provide:Tt,deps:[[new s.Optional,new s.SkipSelf,Tt],h.DateAdapter],useFactory:Ee};function H(ue,Le){return ue||new Et(Le)}const T={provide:Tt,deps:[[new s.Optional,new s.SkipSelf,Tt],h.DateAdapter],useFactory:H},U=new s.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY");let Z=(()=>{class ue{constructor(B){this._dateAdapter=B}selectionFinished(B,de){let{start:Fe,end:Ze}=de;return null==Fe?Fe=B:null==Ze&&B&&this._dateAdapter.compareDate(B,Fe)>=0?Ze=B:(Fe=B,Ze=null),new At(Fe,Ze)}createPreview(B,de){let Fe=null,Ze=null;return de.start&&!de.end&&B&&(Fe=de.start,Ze=B),new At(Fe,Ze)}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275inject(h.DateAdapter))},ue.\u0275prov=s.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();const Be={provide:U,deps:[[new s.Optional,new s.SkipSelf,U],h.DateAdapter],useFactory:function(ue,Le){return ue||new Z(Le)}};let st=(()=>{class ue{constructor(B,de,Fe,Ze,Wt){this._changeDetectorRef=B,this._dateFormats=de,this._dateAdapter=Fe,this._dir=Ze,this._rangeStrategy=Wt,this._rerenderSubscription=o.w.EMPTY,this.selectedChange=new s.EventEmitter,this._userSelection=new s.EventEmitter,this.activeDateChange=new s.EventEmitter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){const de=this._activeDate,Fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Fe,this.minDate,this.maxDate),this._hasSameMonthAndYear(de,this._activeDate)||this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnChanges(B){const de=B.comparisonStart||B.comparisonEnd;de&&!de.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(B){const de=B.value,Fe=this._dateAdapter.getYear(this.activeDate),Ze=this._dateAdapter.getMonth(this.activeDate),Wt=this._dateAdapter.createDate(Fe,Ze,de);let Ft,Ht;this._selected instanceof At?(Ft=this._getDateInCurrentMonth(this._selected.start),Ht=this._getDateInCurrentMonth(this._selected.end)):Ft=Ht=this._getDateInCurrentMonth(this._selected),(Ft!==de||Ht!==de)&&this.selectedChange.emit(Wt),this._userSelection.emit({value:Wt,event:B.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(B){const de=this._activeDate,Fe=this._isRtl();switch(B.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Fe?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Fe?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case l.Ku:this.activeDate=B.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case l.VM:this.activeDate=B.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case l.K5:case l.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&B.preventDefault());case l.hY:return void(null!=this._previewEnd&&!(0,l.Vb)(B)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:B}),B.preventDefault(),B.stopPropagation()));default:return}this._dateAdapter.compareDate(de,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_handleCalendarBodyKeyup(B){(B.keyCode===l.L_||B.keyCode===l.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:B}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let B=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(B)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(B){this._matCalendarBody._focusActiveCell(B)}_previewChanged({event:B,value:de}){if(this._rangeStrategy){const Ze=this._rangeStrategy.createPreview(de?de.rawValue:null,this.selected,B);this._previewStart=this._getCellCompareValue(Ze.start),this._previewEnd=this._getCellCompareValue(Ze.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const B=this._dateAdapter.getFirstDayOfWeek(),de=this._dateAdapter.getDayOfWeekNames("narrow");let Ze=this._dateAdapter.getDayOfWeekNames("long").map((Wt,Ft)=>({long:Wt,narrow:de[Ft]}));this._weekdays=Ze.slice(B).concat(Ze.slice(0,B))}_createWeekCells(){const B=this._dateAdapter.getNumDaysInMonth(this.activeDate),de=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Fe=0,Ze=this._firstWeekOffset;Fe=0)&&(!this.maxDate||this._dateAdapter.compareDate(B,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(B))}_getDateInCurrentMonth(B){return B&&this._hasSameMonthAndYear(B,this.activeDate)?this._dateAdapter.getDate(B):null}_hasSameMonthAndYear(B,de){return!(!B||!de||this._dateAdapter.getMonth(B)!=this._dateAdapter.getMonth(de)||this._dateAdapter.getYear(B)!=this._dateAdapter.getYear(de))}_getCellCompareValue(B){if(B){const de=this._dateAdapter.getYear(B),Fe=this._dateAdapter.getMonth(B),Ze=this._dateAdapter.getDate(B);return new Date(de,Fe,Ze).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(B){B instanceof At?(this._rangeStart=this._getCellCompareValue(B.start),this._rangeEnd=this._getCellCompareValue(B.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(B),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(B){return!this.dateFilter||this.dateFilter(B)}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(S.Is,8),s.\u0275\u0275directiveInject(U,8))},ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["mat-month-view"]],viewQuery:function(B,de){if(1&B&&s.\u0275\u0275viewQuery(pt,5),2&B){let Fe;s.\u0275\u0275queryRefresh(Fe=s.\u0275\u0275loadQuery())&&(de._matCalendarBody=Fe.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[s.\u0275\u0275NgOnChangesFeature],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(B,de){1&B&&(s.\u0275\u0275elementStart(0,"table",0),s.\u0275\u0275elementStart(1,"thead",1),s.\u0275\u0275elementStart(2,"tr"),s.\u0275\u0275template(3,Y,3,3,"th",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(4,"tr"),s.\u0275\u0275element(5,"th",3),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(6,"tbody",4),s.\u0275\u0275listener("selectedValueChange",function(Ze){return de._dateSelected(Ze)})("previewChange",function(Ze){return de._previewChanged(Ze)})("keyup",function(Ze){return de._handleCalendarBodyKeyup(Ze)})("keydown",function(Ze){return de._handleCalendarBodyKeydown(Ze)}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&B&&(s.\u0275\u0275advance(3),s.\u0275\u0275property("ngForOf",de._weekdays),s.\u0275\u0275advance(3),s.\u0275\u0275property("label",de._monthLabel)("rows",de._weeks)("todayValue",de._todayDate)("startValue",de._rangeStart)("endValue",de._rangeEnd)("comparisonStart",de._comparisonRangeStart)("comparisonEnd",de._comparisonRangeEnd)("previewStart",de._previewStart)("previewEnd",de._previewEnd)("isRange",de._isRange)("labelMinRequiredCells",3)("activeCell",de._dateAdapter.getDate(de.activeDate)-1))},directives:[m.NgForOf,pt],encapsulation:2,changeDetection:0}),ue})();const ut=24,St=4;let Xt=(()=>{class ue{constructor(B,de,Fe){this._changeDetectorRef=B,this._dateAdapter=de,this._dir=Fe,this._rerenderSubscription=o.w.EMPTY,this.selectedChange=new s.EventEmitter,this.yearSelected=new s.EventEmitter,this.activeDateChange=new s.EventEmitter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){let de=this._activeDate;const Fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Fe,this.minDate,this.maxDate),tn(this._dateAdapter,de,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setSelectedYear(B)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const de=this._dateAdapter.getYear(this._activeDate)-Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Fe=0,Ze=[];Fethis._createCellForYear(Wt))),Ze=[]);this._changeDetectorRef.markForCheck()}_yearSelected(B){const de=B.value;this.yearSelected.emit(this._dateAdapter.createDate(de,0,1));let Fe=this._dateAdapter.getMonth(this.activeDate),Ze=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(de,Fe,1));this.selectedChange.emit(this._dateAdapter.createDate(de,Fe,Math.min(this._dateAdapter.getDate(this.activeDate),Ze)))}_handleCalendarBodyKeydown(B){const de=this._activeDate,Fe=this._isRtl();switch(B.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Fe?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Fe?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-St);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ut-Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case l.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10*-ut:-ut);break;case l.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10*ut:ut);break;case l.K5:case l.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(de,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_handleCalendarBodyKeyup(B){(B.keyCode===l.L_||B.keyCode===l.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:B}),this._selectionKeyPressed=!1)}_getActiveCell(){return Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(B){const de=this._dateAdapter.createDate(B,0,1),Fe=this._dateAdapter.getYearName(de),Ze=this.dateClass?this.dateClass(de,"multi-year"):void 0;return new at(B,Fe,Fe,this._shouldEnableYear(B),Ze)}_shouldEnableYear(B){if(null==B||this.maxDate&&B>this._dateAdapter.getYear(this.maxDate)||this.minDate&&B{class ue{constructor(B,de,Fe,Ze){this._changeDetectorRef=B,this._dateFormats=de,this._dateAdapter=Fe,this._dir=Ze,this._rerenderSubscription=o.w.EMPTY,this.selectedChange=new s.EventEmitter,this.monthSelected=new s.EventEmitter,this.activeDateChange=new s.EventEmitter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){let de=this._activeDate;const Fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Fe,this.minDate,this.maxDate),this._dateAdapter.getYear(de)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setSelectedMonth(B)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(B){const de=B.value,Fe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),de,1);this.monthSelected.emit(Fe);const Ze=this._dateAdapter.getNumDaysInMonth(Fe);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),de,Math.min(this._dateAdapter.getDate(this.activeDate),Ze)))}_handleCalendarBodyKeydown(B){const de=this._activeDate,Fe=this._isRtl();switch(B.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Fe?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Fe?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case l.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?-10:-1);break;case l.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10:1);break;case l.K5:case l.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(de,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_handleCalendarBodyKeyup(B){(B.keyCode===l.L_||B.keyCode===l.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:B}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let B=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(de=>de.map(Fe=>this._createCellForMonth(Fe,B[Fe]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(B){return B&&this._dateAdapter.getYear(B)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(B):null}_createCellForMonth(B,de){const Fe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),B,1),Ze=this._dateAdapter.format(Fe,this._dateFormats.display.monthYearA11yLabel),Wt=this.dateClass?this.dateClass(Fe,"year"):void 0;return new at(B,de.toLocaleUpperCase(),Ze,this._shouldEnableMonth(B),Wt)}_shouldEnableMonth(B){const de=this._dateAdapter.getYear(this.activeDate);if(null==B||this._isYearAndMonthAfterMaxDate(de,B)||this._isYearAndMonthBeforeMinDate(de,B))return!1;if(!this.dateFilter)return!0;for(let Ze=this._dateAdapter.createDate(de,B,1);this._dateAdapter.getMonth(Ze)==B;Ze=this._dateAdapter.addCalendarDays(Ze,1))if(this.dateFilter(Ze))return!0;return!1}_isYearAndMonthAfterMaxDate(B,de){if(this.maxDate){const Fe=this._dateAdapter.getYear(this.maxDate),Ze=this._dateAdapter.getMonth(this.maxDate);return B>Fe||B===Fe&&de>Ze}return!1}_isYearAndMonthBeforeMinDate(B,de){if(this.minDate){const Fe=this._dateAdapter.getYear(this.minDate),Ze=this._dateAdapter.getMonth(this.minDate);return B{class ue{constructor(){this.changes=new r.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(B,de){return`${B} \u2013 ${de}`}}return ue.\u0275fac=function(B){return new(B||ue)},ue.\u0275prov=s.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),Qe=0,gt=(()=>{class ue{constructor(B,de,Fe,Ze,Wt){this._intl=B,this.calendar=de,this._dateAdapter=Fe,this._dateFormats=Ze,this._buttonDescriptionId="mat-calendar-button-"+Qe++,this.calendar.stateChanges.subscribe(()=>Wt.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const de=this._dateAdapter.getYear(this.calendar.activeDate)-Dt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Fe=de+ut-1,Ze=this._dateAdapter.getYearName(this._dateAdapter.createDate(de,0,1)),Wt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Fe,0,1));return this._intl.formatYearRange(Ze,Wt)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-ut)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:ut)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(B,de){return"month"==this.calendar.currentView?this._dateAdapter.getYear(B)==this._dateAdapter.getYear(de)&&this._dateAdapter.getMonth(B)==this._dateAdapter.getMonth(de):"year"==this.calendar.currentView?this._dateAdapter.getYear(B)==this._dateAdapter.getYear(de):tn(this._dateAdapter,B,de,this.calendar.minDate,this.calendar.maxDate)}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(Lt),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>Vt)),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:X,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(B,de){1&B&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0),s.\u0275\u0275elementStart(1,"div",1),s.\u0275\u0275elementStart(2,"button",2),s.\u0275\u0275listener("click",function(){return de.currentPeriodClicked()}),s.\u0275\u0275elementStart(3,"span"),s.\u0275\u0275text(4),s.\u0275\u0275elementEnd(),s.\u0275\u0275namespaceSVG(),s.\u0275\u0275elementStart(5,"svg",3),s.\u0275\u0275element(6,"polygon",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275namespaceHTML(),s.\u0275\u0275element(7,"div",5),s.\u0275\u0275projection(8),s.\u0275\u0275elementStart(9,"button",6),s.\u0275\u0275listener("click",function(){return de.previousClicked()}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(10,"button",7),s.\u0275\u0275listener("click",function(){return de.nextClicked()}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&B&&(s.\u0275\u0275advance(2),s.\u0275\u0275attribute("aria-label",de.periodButtonLabel)("aria-describedby",de._buttonDescriptionId),s.\u0275\u0275advance(1),s.\u0275\u0275attribute("id",de._buttonDescriptionId),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(de.periodButtonText),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("mat-calendar-invert","month"!==de.calendar.currentView),s.\u0275\u0275advance(4),s.\u0275\u0275property("disabled",!de.previousEnabled()),s.\u0275\u0275attribute("aria-label",de.prevButtonLabel),s.\u0275\u0275advance(1),s.\u0275\u0275property("disabled",!de.nextEnabled()),s.\u0275\u0275attribute("aria-label",de.nextButtonLabel))},directives:[d.MatButton,n.Qr],encapsulation:2,changeDetection:0}),ue})(),Vt=(()=>{class ue{constructor(B,de,Fe,Ze){this._dateAdapter=de,this._dateFormats=Fe,this._changeDetectorRef=Ze,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new s.EventEmitter,this.yearSelected=new s.EventEmitter,this.monthSelected=new s.EventEmitter,this.viewChanged=new s.EventEmitter(!0),this._userSelection=new s.EventEmitter,this.stateChanges=new r.xQ,this._intlChanges=B.changes.subscribe(()=>{Ze.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(B){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get activeDate(){return this._clampedActiveDate}set activeDate(B){this._clampedActiveDate=this._dateAdapter.clampDate(B,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(B){const de=this._currentView!==B?B:null;this._currentView=B,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),de&&this.viewChanged.emit(de)}ngAfterContentInit(){this._calendarHeaderPortal=new _.C5(this.headerComponent||gt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(B){const de=B.minDate||B.maxDate||B.dateFilter;if(de&&!de.firstChange){const Fe=this._getCurrentViewComponent();Fe&&(this._changeDetectorRef.detectChanges(),Fe._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(B){const de=B.value;(this.selected instanceof At||de&&!this._dateAdapter.sameDate(de,this.selected))&&this.selectedChange.emit(de),this._userSelection.emit(B)}_yearSelectedInMultiYearView(B){this.yearSelected.emit(B)}_monthSelectedInYearView(B){this.monthSelected.emit(B)}_goToDateInView(B,de){this.activeDate=B,this.currentView=de}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(Lt),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["mat-calendar"]],viewQuery:function(B,de){if(1&B&&(s.\u0275\u0275viewQuery(st,5),s.\u0275\u0275viewQuery(xt,5),s.\u0275\u0275viewQuery(Xt,5)),2&B){let Fe;s.\u0275\u0275queryRefresh(Fe=s.\u0275\u0275loadQuery())&&(de.monthView=Fe.first),s.\u0275\u0275queryRefresh(Fe=s.\u0275\u0275loadQuery())&&(de.yearView=Fe.first),s.\u0275\u0275queryRefresh(Fe=s.\u0275\u0275loadQuery())&&(de.multiYearView=Fe.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[s.\u0275\u0275ProvidersFeature([fe]),s.\u0275\u0275NgOnChangesFeature],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(B,de){1&B&&(s.\u0275\u0275template(0,ee,0,0,"ng-template",0),s.\u0275\u0275elementStart(1,"div",1),s.\u0275\u0275template(2,$,1,8,"mat-month-view",2),s.\u0275\u0275template(3,J,1,6,"mat-year-view",3),s.\u0275\u0275template(4,ie,1,6,"mat-multi-year-view",4),s.\u0275\u0275elementEnd()),2&B&&(s.\u0275\u0275property("cdkPortalOutlet",de._calendarHeaderPortal),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitch",de.currentView),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase","month"),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase","year"),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase","multi-year"))},directives:[_.Pl,n.kH,m.NgSwitch,m.NgSwitchCase,st,xt,Xt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),ue})();const qt={transformPanel:(0,M.X$)("transformPanel",[(0,M.eR)("void => enter-dropdown",(0,M.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,M.F4)([(0,M.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,M.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,M.eR)("void => enter-dialog",(0,M.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,M.F4)([(0,M.oB)({opacity:0,transform:"scale(0.7)"}),(0,M.oB)({transform:"none",opacity:1})]))),(0,M.eR)("* => void",(0,M.jt)("100ms linear",(0,M.oB)({opacity:0})))]),fadeInCalendar:(0,M.X$)("fadeInCalendar",[(0,M.SB)("void",(0,M.oB)({opacity:0})),(0,M.SB)("enter",(0,M.oB)({opacity:1})),(0,M.eR)("void => *",(0,M.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ue=0;const Se=new s.InjectionToken("mat-datepicker-scroll-strategy");function te(ue){return()=>ue.scrollStrategies.reposition()}const se={provide:Se,deps:[f.aV],useFactory:te},Me=(0,h.mixinColor)(class{constructor(ue){this._elementRef=ue}});let Ke=(()=>{class ue extends Me{constructor(B,de,Fe,Ze,Wt,Ft){super(B),this._changeDetectorRef=de,this._globalModel=Fe,this._dateAdapter=Ze,this._rangeSelectionStrategy=Wt,this._subscriptions=new o.w,this._animationDone=new r.xQ,this._actionsPortal=null,this._closeButtonText=Ft.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(B){const de=this._model.selection,Fe=B.value,Ze=de instanceof At;if(Ze&&this._rangeSelectionStrategy){const Wt=this._rangeSelectionStrategy.selectionFinished(Fe,de,B.event);this._model.updateSelection(Wt,this)}else Fe&&(Ze||!this._dateAdapter.sameDate(Fe,de))&&this._model.add(Fe);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(Tt),s.\u0275\u0275directiveInject(h.DateAdapter),s.\u0275\u0275directiveInject(U,8),s.\u0275\u0275directiveInject(Lt))},ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker-content"]],viewQuery:function(B,de){if(1&B&&s.\u0275\u0275viewQuery(Vt,5),2&B){let Fe;s.\u0275\u0275queryRefresh(Fe=s.\u0275\u0275loadQuery())&&(de._calendar=Fe.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(B,de){1&B&&s.\u0275\u0275syntheticHostListener("@transformPanel.done",function(){return de._animationDone.next()}),2&B&&(s.\u0275\u0275syntheticHostProperty("@transformPanel",de._animationState),s.\u0275\u0275classProp("mat-datepicker-content-touch",de.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.\u0275\u0275InheritDefinitionFeature],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(B,de){1&B&&(s.\u0275\u0275elementStart(0,"div",0),s.\u0275\u0275elementStart(1,"mat-calendar",1),s.\u0275\u0275listener("yearSelected",function(Ze){return de.datepicker._selectYear(Ze)})("monthSelected",function(Ze){return de.datepicker._selectMonth(Ze)})("viewChanged",function(Ze){return de.datepicker._viewChanged(Ze)})("_userSelection",function(Ze){return de._handleUserSelection(Ze)}),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(2,ne,0,0,"ng-template",2),s.\u0275\u0275elementStart(3,"button",3),s.\u0275\u0275listener("focus",function(){return de._closeButtonFocused=!0})("blur",function(){return de._closeButtonFocused=!1})("click",function(){return de.datepicker.close()}),s.\u0275\u0275text(4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&B&&(s.\u0275\u0275classProp("mat-datepicker-content-container-with-actions",de._actionsPortal),s.\u0275\u0275advance(1),s.\u0275\u0275property("id",de.datepicker.id)("ngClass",de.datepicker.panelClass)("startAt",de.datepicker.startAt)("startView",de.datepicker.startView)("minDate",de.datepicker._getMinDate())("maxDate",de.datepicker._getMaxDate())("dateFilter",de.datepicker._getDateFilter())("headerComponent",de.datepicker.calendarHeaderComponent)("selected",de._getSelected())("dateClass",de.datepicker.dateClass)("comparisonStart",de.comparisonStart)("comparisonEnd",de.comparisonEnd)("@fadeInCalendar","enter"),s.\u0275\u0275advance(1),s.\u0275\u0275property("cdkPortalOutlet",de._actionsPortal),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("cdk-visually-hidden",!de._closeButtonFocused),s.\u0275\u0275property("color",de.color||"primary"),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(de._closeButtonText))},directives:[n.mK,Vt,m.NgClass,_.Pl,d.MatButton],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[qt.transformPanel,qt.fadeInCalendar]},changeDetection:0}),ue})(),It=(()=>{class ue{constructor(B,de,Fe,Ze,Wt,Ft,Ht){this._overlay=B,this._ngZone=de,this._viewContainerRef=Fe,this._dateAdapter=Wt,this._dir=Ft,this._model=Ht,this._inputStateChanges=o.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.EventEmitter,this.monthSelected=new s.EventEmitter,this.viewChanged=new s.EventEmitter(!0),this.openedStream=new s.EventEmitter,this.closedStream=new s.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+Ue++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new r.xQ,this._scrollStrategy=Ze}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(B){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(B){this._color=B}get touchUi(){return this._touchUi}set touchUi(B){this._touchUi=(0,I.Ig)(B)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(B){const de=(0,I.Ig)(B);de!==this._disabled&&(this._disabled=de,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(B){this._restoreFocus=(0,I.Ig)(B)}get panelClass(){return this._panelClass}set panelClass(B){this._panelClass=(0,I.du)(B)}get opened(){return this._opened}set opened(B){(0,I.Ig)(B)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(B){const de=B.xPosition||B.yPosition;if(de&&!de.firstChange&&this._overlayRef){const Fe=this._overlayRef.getConfig().positionStrategy;Fe instanceof f._G&&(this._setConnectedPositions(Fe),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(B){this._model.add(B)}_selectYear(B){this.yearSelected.emit(B)}_selectMonth(B){this.monthSelected.emit(B)}_viewChanged(B){this.viewChanged.emit(B)}registerInput(B){return this._inputStateChanges.unsubscribe(),this.datepickerInput=B,this._inputStateChanges=B.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(B){this._actionsPortal=B}removeActions(B){B===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,R.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const de=this._componentRef.instance;de._startExitAnimation(),de._animationDone.pipe((0,g.q)(1)).subscribe(()=>this._destroyOverlay())}const B=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(B)):B()}_applyPendingSelection(){var B,de;null===(de=null===(B=this._componentRef)||void 0===B?void 0:B.instance)||void 0===de||de._applyPendingSelection()}_forwardContentValues(B){B.datepicker=this,B.color=this.color,B._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const B=this.touchUi,de=this.datepickerInput.getOverlayLabelId(),Fe=new _.C5(Ke,this._viewContainerRef),Ze=this._overlayRef=this._overlay.create(new f.X_({positionStrategy:B?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[B?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:B?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(B?"dialog":"popup")})),Wt=Ze.overlayElement;Wt.setAttribute("role","dialog"),de&&Wt.setAttribute("aria-labelledby",de),B&&Wt.setAttribute("aria-modal","true"),this._getCloseStream(Ze).subscribe(Ft=>{Ft&&Ft.preventDefault(),this.close()}),this._componentRef=Ze.attach(Fe),this._forwardContentValues(this._componentRef.instance),B||this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>Ze.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const B=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(B)}_setConnectedPositions(B){const de="end"===this.xPosition?"end":"start",Fe="start"===de?"end":"start",Ze="above"===this.yPosition?"bottom":"top",Wt="top"===Ze?"bottom":"top";return B.withPositions([{originX:de,originY:Wt,overlayX:de,overlayY:Ze},{originX:de,originY:Ze,overlayX:de,overlayY:Wt},{originX:Fe,originY:Wt,overlayX:Fe,overlayY:Ze},{originX:Fe,originY:Ze,overlayX:Fe,overlayY:Wt}])}_getCloseStream(B){return(0,i.T)(B.backdropClick(),B.detachments(),B.keydownEvents().pipe((0,y.h)(de=>de.keyCode===l.hY&&!(0,l.Vb)(de)||this.datepickerInput&&(0,l.Vb)(de,"altKey")&&de.keyCode===l.LH)))}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(f.aV),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Se),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(S.Is,8),s.\u0275\u0275directiveInject(Tt))},ue.\u0275dir=s.\u0275\u0275defineDirective({type:ue,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[s.\u0275\u0275NgOnChangesFeature]}),ue})(),Qt=(()=>{class ue extends It{}return ue.\u0275fac=function(){let Le;return function(de){return(Le||(Le=s.\u0275\u0275getInheritedFactory(ue)))(de||ue)}}(),ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s.\u0275\u0275ProvidersFeature([fe,{provide:It,useExisting:ue}]),s.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(B,de){},encapsulation:2,changeDetection:0}),ue})();class cn{constructor(Le,B){this.target=Le,this.targetElement=B,this.value=this.target.value}}let An=(()=>{class ue{constructor(B,de,Fe){this._elementRef=B,this._dateAdapter=de,this._dateFormats=Fe,this.dateChange=new s.EventEmitter,this.dateInput=new s.EventEmitter,this.stateChanges=new r.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=o.w.EMPTY,this._localeSubscription=o.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Ze=>{const Wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ze.value));return!Wt||this._matchesFilter(Wt)?null:{matDatepickerFilter:!0}},this._minValidator=Ze=>{const Wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ze.value)),Ft=this._getMinDate();return!Ft||!Wt||this._dateAdapter.compareDate(Ft,Wt)<=0?null:{matDatepickerMin:{min:Ft,actual:Wt}}},this._maxValidator=Ze=>{const Wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ze.value)),Ft=this._getMaxDate();return!Ft||!Wt||this._dateAdapter.compareDate(Ft,Wt)>=0?null:{matDatepickerMax:{max:Ft,actual:Wt}}},this._lastValueValid=!1,this._localeSubscription=de.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(B){this._assignValueProgrammatically(B)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(B){const de=(0,I.Ig)(B),Fe=this._elementRef.nativeElement;this._disabled!==de&&(this._disabled=de,this.stateChanges.next(void 0)),de&&this._isInitialized&&Fe.blur&&Fe.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(B){this._model=B,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(de=>{if(this._shouldHandleChangeEvent(de)){const Fe=this._getValueFromModel(de.selection);this._lastValueValid=this._isValidValue(Fe),this._cvaOnChange(Fe),this._onTouched(),this._formatValue(Fe),this.dateInput.emit(new cn(this,this._elementRef.nativeElement)),this.dateChange.emit(new cn(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(B){lt(B,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(B){this._validatorOnChange=B}validate(B){return this._validator?this._validator(B):null}writeValue(B){this._assignValueProgrammatically(B)}registerOnChange(B){this._cvaOnChange=B}registerOnTouched(B){this._onTouched=B}setDisabledState(B){this.disabled=B}_onKeydown(B){B.altKey&&B.keyCode===l.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),B.preventDefault())}_onInput(B){const de=this._lastValueValid;let Fe=this._dateAdapter.parse(B,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Fe),Fe=this._dateAdapter.getValidDateOrNull(Fe),this._dateAdapter.sameDate(Fe,this.value)?(B&&!this.value&&this._cvaOnChange(Fe),de!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(Fe),this._cvaOnChange(Fe),this.dateInput.emit(new cn(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new cn(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(B){this._elementRef.nativeElement.value=B?this._dateAdapter.format(B,this._dateFormats.display.dateInput):""}_assignValue(B){this._model?(this._assignValueToModel(B),this._pendingValue=null):this._pendingValue=B}_isValidValue(B){return!B||this._dateAdapter.isValid(B)}_parentDisabled(){return!1}_assignValueProgrammatically(B){B=this._dateAdapter.deserialize(B),this._lastValueValid=this._isValidValue(B),B=this._dateAdapter.getValidDateOrNull(B),this._assignValue(B),this._formatValue(B)}_matchesFilter(B){const de=this._getDateFilter();return!de||de(B)}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=s.\u0275\u0275defineDirective({type:ue,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.\u0275\u0275NgOnChangesFeature]}),ue})();function lt(ue,Le){const B=Object.keys(ue);for(let de of B){const{previousValue:Fe,currentValue:Ze}=ue[de];if(!Le.isDateInstance(Fe)||!Le.isDateInstance(Ze))return!0;if(!Le.sameDate(Fe,Ze))return!0}return!1}const ct={provide:A.NG_VALUE_ACCESSOR,useExisting:(0,s.forwardRef)(()=>mt),multi:!0},He={provide:A.NG_VALIDATORS,useExisting:(0,s.forwardRef)(()=>mt),multi:!0};let mt=(()=>{class ue extends An{constructor(B,de,Fe,Ze){super(B,de,Fe),this._formField=Ze,this._closedSubscription=o.w.EMPTY,this._validator=A.Validators.compose(super._getValidators())}set matDatepicker(B){B&&(this._datepicker=B,this._closedSubscription=B.closedStream.subscribe(()=>this._onTouched()),this._registerModel(B.registerInput(this)))}get min(){return this._min}set min(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._min)||(this._min=de,this._validatorOnChange())}get max(){return this._max}set max(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._max)||(this._max=de,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(B){const de=this._matchesFilter(this.value);this._dateFilter=B,this._matchesFilter(this.value)!==de&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(B){return B}_assignValueToModel(B){this._model&&this._model.updateSelection(B,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(B){return B.source!==this}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),s.\u0275\u0275directiveInject(D.MAT_FORM_FIELD,8))},ue.\u0275dir=s.\u0275\u0275defineDirective({type:ue,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(B,de){1&B&&s.\u0275\u0275listener("input",function(Ze){return de._onInput(Ze.target.value)})("change",function(){return de._onChange()})("blur",function(){return de._onBlur()})("keydown",function(Ze){return de._onKeydown(Ze)}),2&B&&(s.\u0275\u0275hostProperty("disabled",de.disabled),s.\u0275\u0275attribute("aria-haspopup",de._datepicker?"dialog":null)("aria-owns",(null==de._datepicker?null:de._datepicker.opened)&&de._datepicker.id||null)("min",de.min?de._dateAdapter.toIso8601(de.min):null)("max",de.max?de._dateAdapter.toIso8601(de.max):null)("data-mat-calendar",de._datepicker?de._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s.\u0275\u0275ProvidersFeature([ct,He,{provide:w.MAT_INPUT_VALUE_ACCESSOR,useExisting:ue}]),s.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ot=(()=>{class ue{}return ue.\u0275fac=function(B){return new(B||ue)},ue.\u0275dir=s.\u0275\u0275defineDirective({type:ue,selectors:[["","matDatepickerToggleIcon",""]]}),ue})(),un=(()=>{class ue{constructor(B,de,Fe){this._intl=B,this._changeDetectorRef=de,this._stateChanges=o.w.EMPTY;const Ze=Number(Fe);this.tabIndex=Ze||0===Ze?Ze:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(B){this._disabled=(0,I.Ig)(B)}ngOnChanges(B){B.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(B){this.datepicker&&!this.disabled&&(this.datepicker.open(),B.stopPropagation())}_watchStateChanges(){const B=this.datepicker?this.datepicker.stateChanges:(0,c.of)(),de=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,c.of)(),Fe=this.datepicker?(0,i.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,c.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,i.T)(this._intl.changes,B,de,Fe).subscribe(()=>this._changeDetectorRef.markForCheck())}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(Lt),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275injectAttribute("tabindex"))},ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker-toggle"]],contentQueries:function(B,de,Fe){if(1&B&&s.\u0275\u0275contentQuery(Fe,Ot,5),2&B){let Ze;s.\u0275\u0275queryRefresh(Ze=s.\u0275\u0275loadQuery())&&(de._customIcon=Ze.first)}},viewQuery:function(B,de){if(1&B&&s.\u0275\u0275viewQuery(ae,5),2&B){let Fe;s.\u0275\u0275queryRefresh(Fe=s.\u0275\u0275loadQuery())&&(de._button=Fe.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(B,de){1&B&&s.\u0275\u0275listener("click",function(Ze){return de._open(Ze)}),2&B&&(s.\u0275\u0275attribute("tabindex",null)("data-mat-calendar",de.datepicker?de.datepicker.id:null),s.\u0275\u0275classProp("mat-datepicker-toggle-active",de.datepicker&&de.datepicker.opened)("mat-accent",de.datepicker&&"accent"===de.datepicker.color)("mat-warn",de.datepicker&&"warn"===de.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:We,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(B,de){1&B&&(s.\u0275\u0275projectionDef(Ie),s.\u0275\u0275elementStart(0,"button",0,1),s.\u0275\u0275template(2,xe,2,0,"svg",2),s.\u0275\u0275projection(3),s.\u0275\u0275elementEnd()),2&B&&(s.\u0275\u0275property("disabled",de.disabled)("disableRipple",de.disableRipple),s.\u0275\u0275attribute("aria-haspopup",de.datepicker?"dialog":null)("aria-label",de.ariaLabel||de._intl.openCalendarLabel)("tabindex",de.disabled?-1:de.tabIndex),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",!de._customIcon))},directives:[d.MatButton,m.NgIf],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),ue})();const on=new s.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT"),Yn=(0,h.mixinErrorState)((()=>{class ue extends An{constructor(B,de,Fe,Ze,Wt,Ft,Ht,Zt){super(de,Ht,Zt),this._rangeInput=B,this._defaultErrorStateMatcher=Fe,this._injector=Ze,this._parentForm=Wt,this._parentFormGroup=Ft}ngOnInit(){const B=this._injector.get(A.NgControl,null,s.InjectFlags.Self|s.InjectFlags.Optional);B&&(this.ngControl=B)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(B){super._onInput(B),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:B}){return B!==this._rangeInput._startInput&&B!==this._rangeInput._endInput}_assignValueProgrammatically(B){super._assignValueProgrammatically(B);const de=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput;null==de||de._validatorOnChange()}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(on),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(h.ErrorStateMatcher),s.\u0275\u0275directiveInject(s.Injector),s.\u0275\u0275directiveInject(A.NgForm,8),s.\u0275\u0275directiveInject(A.FormGroupDirective,8),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=s.\u0275\u0275defineDirective({type:ue,features:[s.\u0275\u0275InheritDefinitionFeature]}),ue})());let ji=(()=>{class ue extends Yn{constructor(B,de,Fe,Ze,Wt,Ft,Ht,Zt){super(B,de,Fe,Ze,Wt,Ft,Ht,Zt),this._startValidator=an=>{const Tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(an.value)),zn=this._model?this._model.selection.end:null;return!Tn||!zn||this._dateAdapter.compareDate(Tn,zn)<=0?null:{matStartDateInvalid:{end:zn,actual:Tn}}},this._validator=A.Validators.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(B){return B.start}_shouldHandleChangeEvent(B){var de;return!(!super._shouldHandleChangeEvent(B)||((null===(de=B.oldValue)||void 0===de?void 0:de.start)?B.selection.start&&!this._dateAdapter.compareDate(B.oldValue.start,B.selection.start):!B.selection.start))}_assignValueToModel(B){if(this._model){const de=new At(B,this._model.selection.end);this._model.updateSelection(de,this)}}_formatValue(B){super._formatValue(B),this._rangeInput._handleChildValueChange()}getMirrorValue(){const B=this._elementRef.nativeElement,de=B.value;return de.length>0?de:B.placeholder}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(on),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(h.ErrorStateMatcher),s.\u0275\u0275directiveInject(s.Injector),s.\u0275\u0275directiveInject(A.NgForm,8),s.\u0275\u0275directiveInject(A.FormGroupDirective,8),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=s.\u0275\u0275defineDirective({type:ue,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(B,de){1&B&&s.\u0275\u0275listener("input",function(Ze){return de._onInput(Ze.target.value)})("change",function(){return de._onChange()})("keydown",function(Ze){return de._onKeydown(Ze)})("blur",function(){return de._onBlur()}),2&B&&(s.\u0275\u0275hostProperty("disabled",de.disabled),s.\u0275\u0275attribute("id",de._rangeInput.id)("aria-haspopup",de._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==de._rangeInput.rangePicker?null:de._rangeInput.rangePicker.opened)&&de._rangeInput.rangePicker.id||null)("min",de._getMinDate()?de._dateAdapter.toIso8601(de._getMinDate()):null)("max",de._getMaxDate()?de._dateAdapter.toIso8601(de._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.\u0275\u0275ProvidersFeature([{provide:A.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0},{provide:A.NG_VALIDATORS,useExisting:ue,multi:!0}]),s.\u0275\u0275InheritDefinitionFeature]}),ue})(),Oi=(()=>{class ue extends Yn{constructor(B,de,Fe,Ze,Wt,Ft,Ht,Zt){super(B,de,Fe,Ze,Wt,Ft,Ht,Zt),this._endValidator=an=>{const Tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(an.value)),zn=this._model?this._model.selection.start:null;return!Tn||!zn||this._dateAdapter.compareDate(Tn,zn)>=0?null:{matEndDateInvalid:{start:zn,actual:Tn}}},this._validator=A.Validators.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(B){return B.end}_shouldHandleChangeEvent(B){var de;return!(!super._shouldHandleChangeEvent(B)||((null===(de=B.oldValue)||void 0===de?void 0:de.end)?B.selection.end&&!this._dateAdapter.compareDate(B.oldValue.end,B.selection.end):!B.selection.end))}_assignValueToModel(B){if(this._model){const de=new At(this._model.selection.start,B);this._model.updateSelection(de,this)}}_onKeydown(B){B.keyCode===l.ZH&&!this._elementRef.nativeElement.value&&this._rangeInput._startInput.focus(),super._onKeydown(B)}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(on),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(h.ErrorStateMatcher),s.\u0275\u0275directiveInject(s.Injector),s.\u0275\u0275directiveInject(A.NgForm,8),s.\u0275\u0275directiveInject(A.FormGroupDirective,8),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=s.\u0275\u0275defineDirective({type:ue,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(B,de){1&B&&s.\u0275\u0275listener("input",function(Ze){return de._onInput(Ze.target.value)})("change",function(){return de._onChange()})("keydown",function(Ze){return de._onKeydown(Ze)})("blur",function(){return de._onBlur()}),2&B&&(s.\u0275\u0275hostProperty("disabled",de.disabled),s.\u0275\u0275attribute("aria-haspopup",de._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==de._rangeInput.rangePicker?null:de._rangeInput.rangePicker.opened)&&de._rangeInput.rangePicker.id||null)("min",de._getMinDate()?de._dateAdapter.toIso8601(de._getMinDate()):null)("max",de._getMaxDate()?de._dateAdapter.toIso8601(de._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.\u0275\u0275ProvidersFeature([{provide:A.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0},{provide:A.NG_VALIDATORS,useExisting:ue,multi:!0}]),s.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ni=0,Ti=(()=>{class ue{constructor(B,de,Fe,Ze,Wt){if(this._changeDetectorRef=B,this._elementRef=de,this._dateAdapter=Ze,this._formField=Wt,this._closedSubscription=o.w.EMPTY,this.id="mat-date-range-input-"+Ni++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new r.xQ,null==Wt?void 0:Wt._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const Ft=de.nativeElement.classList;Ft.add("mat-mdc-input-element"),Ft.add("mat-mdc-form-field-input-control")}this.ngControl=Fe}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var B,de;const Fe=(null===(B=this._startInput)||void 0===B?void 0:B._getPlaceholder())||"",Ze=(null===(de=this._endInput)||void 0===de?void 0:de._getPlaceholder())||"";return Fe||Ze?`${Fe} ${this.separator} ${Ze}`:""}get rangePicker(){return this._rangePicker}set rangePicker(B){B&&(this._model=B.registerInput(this),this._rangePicker=B,this._closedSubscription.unsubscribe(),this._closedSubscription=B.closedStream.subscribe(()=>{var de,Fe;null===(de=this._startInput)||void 0===de||de._onTouched(),null===(Fe=this._endInput)||void 0===Fe||Fe._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(B){this._required=(0,I.Ig)(B)}get dateFilter(){return this._dateFilter}set dateFilter(B){const de=this._startInput,Fe=this._endInput,Ze=de&&de._matchesFilter(de.value),Wt=Fe&&Fe._matchesFilter(de.value);this._dateFilter=B,de&&de._matchesFilter(de.value)!==Ze&&de._validatorOnChange(),Fe&&Fe._matchesFilter(Fe.value)!==Wt&&Fe._validatorOnChange()}get min(){return this._min}set min(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._min)||(this._min=de,this._revalidate())}get max(){return this._max}set max(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._max)||(this._max=de,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(B){const de=(0,I.Ig)(B);de!==this._groupDisabled&&(this._groupDisabled=de,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const B=!!this._startInput&&this._startInput.isEmpty(),de=!!this._endInput&&this._endInput.isEmpty();return B&&de}setDescribedByIds(B){this._ariaDescribedBy=B.length?B.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,i.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(B){lt(B,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const B=this._formField;return B&&B._hasFloatingLabel()?B._labelId:null}_updateFocus(B){this.focused=null!==B,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(B){this._startInput&&this._startInput._registerModel(B),this._endInput&&this._endInput._registerModel(B)}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(A.ControlContainer,10),s.\u0275\u0275directiveInject(h.DateAdapter,8),s.\u0275\u0275directiveInject(D.MAT_FORM_FIELD,8))},ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["mat-date-range-input"]],contentQueries:function(B,de,Fe){if(1&B&&(s.\u0275\u0275contentQuery(Fe,ji,5),s.\u0275\u0275contentQuery(Fe,Oi,5)),2&B){let Ze;s.\u0275\u0275queryRefresh(Ze=s.\u0275\u0275loadQuery())&&(de._startInput=Ze.first),s.\u0275\u0275queryRefresh(Ze=s.\u0275\u0275loadQuery())&&(de._endInput=Ze.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(B,de){2&B&&(s.\u0275\u0275attribute("id",null)("aria-labelledby",de._getAriaLabelledby())("aria-describedby",de._ariaDescribedBy)("data-mat-calendar",de.rangePicker?de.rangePicker.id:null),s.\u0275\u0275classProp("mat-date-range-input-hide-placeholders",de._shouldHidePlaceholders())("mat-date-range-input-required",de.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[s.\u0275\u0275ProvidersFeature([{provide:D.MatFormFieldControl,useExisting:ue},{provide:on,useExisting:ue}]),s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:ft,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(B,de){1&B&&(s.\u0275\u0275projectionDef(Xe),s.\u0275\u0275elementStart(0,"div",0),s.\u0275\u0275listener("cdkFocusChange",function(Ze){return de._updateFocus(Ze)}),s.\u0275\u0275elementStart(1,"div",1),s.\u0275\u0275projection(2),s.\u0275\u0275elementStart(3,"span",2),s.\u0275\u0275text(4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(5,"span",3),s.\u0275\u0275text(6),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(7,"div",4),s.\u0275\u0275projection(8,1),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&B&&(s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(de._getInputMirrorValue()),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("mat-date-range-input-separator-hidden",de._shouldHideSeparator()),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(de.separator))},directives:[n.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"],encapsulation:2,changeDetection:0}),ue})(),qn=(()=>{class ue extends It{_forwardContentValues(B){super._forwardContentValues(B);const de=this.datepickerInput;de&&(B.comparisonStart=de.comparisonStart,B.comparisonEnd=de.comparisonEnd)}}return ue.\u0275fac=function(){let Le;return function(de){return(Le||(Le=s.\u0275\u0275getInheritedFactory(ue)))(de||ue)}}(),ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[s.\u0275\u0275ProvidersFeature([T,Be,{provide:It,useExisting:ue}]),s.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(B,de){},encapsulation:2,changeDetection:0}),ue})(),Vi=(()=>{class ue{constructor(B){this._datepicker=B}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(It))},ue.\u0275dir=s.\u0275\u0275defineDirective({type:ue,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(B,de){1&B&&s.\u0275\u0275listener("click",function(){return de._applySelection()})}}),ue})(),ci=(()=>{class ue{constructor(B){this._datepicker=B}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(It))},ue.\u0275dir=s.\u0275\u0275defineDirective({type:ue,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(B,de){1&B&&s.\u0275\u0275listener("click",function(){return de._datepicker.close()})}}),ue})(),Ae=(()=>{class ue{constructor(B,de){this._datepicker=B,this._viewContainerRef=de}ngAfterViewInit(){this._portal=new _.UE(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){var B;this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&(null===(B=this._portal)||void 0===B||B.detach())}}return ue.\u0275fac=function(B){return new(B||ue)(s.\u0275\u0275directiveInject(It),s.\u0275\u0275directiveInject(s.ViewContainerRef))},ue.\u0275cmp=s.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(B,de){if(1&B&&s.\u0275\u0275viewQuery(s.TemplateRef,5),2&B){let Fe;s.\u0275\u0275queryRefresh(Fe=s.\u0275\u0275loadQuery())&&(de._template=Fe.first)}},ngContentSelectors:X,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(B,de){1&B&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,Pe,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),ue})(),qe=(()=>{class ue{}return ue.\u0275fac=function(B){return new(B||ue)},ue.\u0275mod=s.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=s.\u0275\u0275defineInjector({providers:[Lt,se],imports:[[m.CommonModule,d.MatButtonModule,f.U8,n.rt,_.eL,h.MatCommonModule],u.ZD]}),ue})()},4834:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MatDivider:()=>m,MatDividerModule:()=>s});var n=p(5e3),f=p(3191),_=p(508);let m=(()=>{class d{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(h){this._vertical=(0,f.Ig)(h)}get inset(){return this._inset}set inset(h){this._inset=(0,f.Ig)(h)}}return d.\u0275fac=function(h){return new(h||d)},d.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(h,r){2&h&&(n.\u0275\u0275attribute("aria-orientation",r.vertical?"vertical":"horizontal"),n.\u0275\u0275classProp("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(h,r){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),d})(),s=(()=>{class d{}return d.\u0275fac=function(h){return new(h||d)},d.\u0275mod=n.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=n.\u0275\u0275defineInjector({imports:[[_.MatCommonModule],_.MatCommonModule]}),d})()},7322:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_ERROR:()=>J,MAT_FORM_FIELD:()=>Ee,MAT_FORM_FIELD_DEFAULT_OPTIONS:()=>Et,MAT_PREFIX:()=>pt,MAT_SUFFIX:()=>yt,MatError:()=>ie,MatFormField:()=>fe,MatFormFieldControl:()=>ae,MatFormFieldModule:()=>H,MatHint:()=>Pe,MatLabel:()=>et,MatPlaceholder:()=>at,MatPrefix:()=>vt,MatSuffix:()=>ot,_MAT_HINT:()=>ft,getMatFormFieldDuplicatedHintError:()=>Ie,getMatFormFieldMissingControlError:()=>We,getMatFormFieldPlaceholderConflictError:()=>xe,matFormFieldAnimations:()=>ne});var n=p(7144),f=p(9808),_=p(5e3),m=p(508),s=p(3191),d=p(8929),u=p(6787),h=p(3753),r=p(1059),o=p(7625),i=p(2986),c=p(1777),l=p(6360),g=p(226),b=p(925);const y=["connectionContainer"],S=["inputContainer"],I=["label"];function R(T,U){1&T&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"div",14),_.\u0275\u0275element(2,"div",15),_.\u0275\u0275element(3,"div",16),_.\u0275\u0275element(4,"div",17),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(5,"div",18),_.\u0275\u0275element(6,"div",15),_.\u0275\u0275element(7,"div",16),_.\u0275\u0275element(8,"div",17),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd())}function M(T,U){if(1&T){const Z=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",19),_.\u0275\u0275listener("cdkObserveContent",function(){return _.\u0275\u0275restoreView(Z),_.\u0275\u0275nextContext().updateOutlineGap()}),_.\u0275\u0275projection(1,1),_.\u0275\u0275elementEnd()}if(2&T){const Z=_.\u0275\u0275nextContext();_.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Z.appearance)}}function A(T,U){if(1&T&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275projection(1,2),_.\u0275\u0275elementStart(2,"span"),_.\u0275\u0275text(3),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd()),2&T){const Z=_.\u0275\u0275nextContext(2);_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(Z._control.placeholder)}}function D(T,U){1&T&&_.\u0275\u0275projection(0,3,["*ngSwitchCase","true"])}function w(T,U){1&T&&(_.\u0275\u0275elementStart(0,"span",23),_.\u0275\u0275text(1," *"),_.\u0275\u0275elementEnd())}function x(T,U){if(1&T){const Z=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"label",20,21),_.\u0275\u0275listener("cdkObserveContent",function(){return _.\u0275\u0275restoreView(Z),_.\u0275\u0275nextContext().updateOutlineGap()}),_.\u0275\u0275template(2,A,4,1,"ng-container",12),_.\u0275\u0275template(3,D,1,0,"ng-content",12),_.\u0275\u0275template(4,w,2,0,"span",22),_.\u0275\u0275elementEnd()}if(2&T){const Z=_.\u0275\u0275nextContext();_.\u0275\u0275classProp("mat-empty",Z._control.empty&&!Z._shouldAlwaysFloat())("mat-form-field-empty",Z._control.empty&&!Z._shouldAlwaysFloat())("mat-accent","accent"==Z.color)("mat-warn","warn"==Z.color),_.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Z.appearance)("id",Z._labelId)("ngSwitch",Z._hasLabel()),_.\u0275\u0275attribute("for",Z._control.id)("aria-owns",Z._control.id),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngSwitchCase",!1),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",!Z.hideRequiredMarker&&Z._control.required&&!Z._control.disabled)}}function C(T,U){1&T&&(_.\u0275\u0275elementStart(0,"div",24),_.\u0275\u0275projection(1,4),_.\u0275\u0275elementEnd())}function L(T,U){if(1&T&&(_.\u0275\u0275elementStart(0,"div",25),_.\u0275\u0275element(1,"span",26),_.\u0275\u0275elementEnd()),2&T){const Z=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275classProp("mat-accent","accent"==Z.color)("mat-warn","warn"==Z.color)}}function F(T,U){if(1&T&&(_.\u0275\u0275elementStart(0,"div"),_.\u0275\u0275projection(1,5),_.\u0275\u0275elementEnd()),2&T){const Z=_.\u0275\u0275nextContext();_.\u0275\u0275property("@transitionMessages",Z._subscriptAnimationState)}}function re(T,U){if(1&T&&(_.\u0275\u0275elementStart(0,"div",30),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&T){const Z=_.\u0275\u0275nextContext(2);_.\u0275\u0275property("id",Z._hintLabelId),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(Z.hintLabel)}}function Y(T,U){if(1&T&&(_.\u0275\u0275elementStart(0,"div",27),_.\u0275\u0275template(1,re,2,2,"div",28),_.\u0275\u0275projection(2,6),_.\u0275\u0275element(3,"div",29),_.\u0275\u0275projection(4,7),_.\u0275\u0275elementEnd()),2&T){const Z=_.\u0275\u0275nextContext();_.\u0275\u0275property("@transitionMessages",Z._subscriptAnimationState),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",Z.hintLabel)}}const X=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ee=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let $=0;const J=new _.InjectionToken("MatError");let ie=(()=>{class T{constructor(Z,_e){this.id="mat-error-"+$++,Z||_e.nativeElement.setAttribute("aria-live","polite")}}return T.\u0275fac=function(Z){return new(Z||T)(_.\u0275\u0275injectAttribute("aria-live"),_.\u0275\u0275directiveInject(_.ElementRef))},T.\u0275dir=_.\u0275\u0275defineDirective({type:T,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Z,_e){2&Z&&_.\u0275\u0275attribute("id",_e.id)},inputs:{id:"id"},features:[_.\u0275\u0275ProvidersFeature([{provide:J,useExisting:T}])]}),T})();const ne={transitionMessages:(0,c.X$)("transitionMessages",[(0,c.SB)("enter",(0,c.oB)({opacity:1,transform:"translateY(0%)"})),(0,c.eR)("void => enter",[(0,c.oB)({opacity:0,transform:"translateY(-5px)"}),(0,c.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ae=(()=>{class T{}return T.\u0275fac=function(Z){return new(Z||T)},T.\u0275dir=_.\u0275\u0275defineDirective({type:T}),T})();function xe(){return Error("Placeholder attribute and child element were both specified.")}function Ie(T){return Error(`A hint was already declared for 'align="${T}"'.`)}function We(){return Error("mat-form-field must contain a MatFormFieldControl.")}let Xe=0;const ft=new _.InjectionToken("MatHint");let Pe=(()=>{class T{constructor(){this.align="start",this.id="mat-hint-"+Xe++}}return T.\u0275fac=function(Z){return new(Z||T)},T.\u0275dir=_.\u0275\u0275defineDirective({type:T,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Z,_e){2&Z&&(_.\u0275\u0275attribute("id",_e.id)("align",null),_.\u0275\u0275classProp("mat-form-field-hint-end","end"===_e.align))},inputs:{align:"align",id:"id"},features:[_.\u0275\u0275ProvidersFeature([{provide:ft,useExisting:T}])]}),T})(),et=(()=>{class T{}return T.\u0275fac=function(Z){return new(Z||T)},T.\u0275dir=_.\u0275\u0275defineDirective({type:T,selectors:[["mat-label"]]}),T})(),at=(()=>{class T{}return T.\u0275fac=function(Z){return new(Z||T)},T.\u0275dir=_.\u0275\u0275defineDirective({type:T,selectors:[["mat-placeholder"]]}),T})();const pt=new _.InjectionToken("MatPrefix");let vt=(()=>{class T{}return T.\u0275fac=function(Z){return new(Z||T)},T.\u0275dir=_.\u0275\u0275defineDirective({type:T,selectors:[["","matPrefix",""]],features:[_.\u0275\u0275ProvidersFeature([{provide:pt,useExisting:T}])]}),T})();const yt=new _.InjectionToken("MatSuffix");let ot=(()=>{class T{}return T.\u0275fac=function(Z){return new(Z||T)},T.\u0275dir=_.\u0275\u0275defineDirective({type:T,selectors:[["","matSuffix",""]],features:[_.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:T}])]}),T})(),_t=0;const Bt=(0,m.mixinColor)(class{constructor(T){this._elementRef=T}},"primary"),Et=new _.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ee=new _.InjectionToken("MatFormField");let fe=(()=>{class T extends Bt{constructor(Z,_e,Be,$e,st,ut,St){super(Z),this._changeDetectorRef=_e,this._dir=Be,this._defaults=$e,this._platform=st,this._ngZone=ut,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new d.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+_t++,this._labelId="mat-form-field-label-"+_t++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==St,this.appearance=$e&&$e.appearance?$e.appearance:"legacy",this._hideRequiredMarker=!(!$e||null==$e.hideRequiredMarker)&&$e.hideRequiredMarker}get appearance(){return this._appearance}set appearance(Z){const _e=this._appearance;this._appearance=Z||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&_e!==Z&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Z){this._hideRequiredMarker=(0,s.Ig)(Z)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Z){this._hintLabel=Z,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Z){Z!==this._floatLabel&&(this._floatLabel=Z||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Z){this._explicitFormFieldControl=Z}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Z=this._control;Z.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Z.controlType}`),Z.stateChanges.pipe((0,r.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Z.ngControl&&Z.ngControl.valueChanges&&Z.ngControl.valueChanges.pipe((0,o.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,o.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,u.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,r.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,r.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,o.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(Z){const _e=this._control?this._control.ngControl:null;return _e&&_e[Z]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,h.R)(this._label.nativeElement,"transitionend").pipe((0,i.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let Z=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Z.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const _e=this._hintChildren?this._hintChildren.find($e=>"start"===$e.align):null,Be=this._hintChildren?this._hintChildren.find($e=>"end"===$e.align):null;_e?Z.push(_e.id):this._hintLabel&&Z.push(this._hintLabelId),Be&&Z.push(Be.id)}else this._errorChildren&&Z.push(...this._errorChildren.map(_e=>_e.id));this._control.setDescribedByIds(Z)}}_validateControlChild(){}updateOutlineGap(){const Z=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&Z&&Z.children.length&&Z.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let _e=0,Be=0;const $e=this._connectionContainerRef.nativeElement,st=$e.querySelectorAll(".mat-form-field-outline-start"),ut=$e.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const St=$e.getBoundingClientRect();if(0===St.width&&0===St.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Xt=this._getStartEnd(St),tn=Z.children,Dt=this._getStartEnd(tn[0].getBoundingClientRect());let Kt=0;for(let tt=0;tt0?.75*Kt+10:0}for(let St=0;St{class T{}return T.\u0275fac=function(Z){return new(Z||T)},T.\u0275mod=_.\u0275\u0275defineNgModule({type:T}),T.\u0275inj=_.\u0275\u0275defineInjector({imports:[[f.CommonModule,m.MatCommonModule,n.Q8],m.MatCommonModule]}),T})()},5245:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{ICON_REGISTRY_PROVIDER:()=>re,ICON_REGISTRY_PROVIDER_FACTORY:()=>F,MAT_ICON_LOCATION:()=>J,MAT_ICON_LOCATION_FACTORY:()=>ie,MatIcon:()=>Ie,MatIconModule:()=>We,MatIconRegistry:()=>L,getMatIconFailedToSanitizeLiteralError:()=>x,getMatIconFailedToSanitizeUrlError:()=>w,getMatIconNameNotFoundError:()=>A,getMatIconNoHttpProviderError:()=>D});var n=p(5e3),f=p(508),_=p(3191),m=p(9808),s=p(1086),d=p(1737),u=p(567),h=p(2654),r=p(2868),o=p(4850),i=p(7221),c=p(537),l=p(8117),g=p(2986),b=p(520),y=p(2313);const S=["*"];let I;function M(Xe){var ft;return(null===(ft=function(){if(void 0===I&&(I=null,"undefined"!=typeof window)){const Xe=window;void 0!==Xe.trustedTypes&&(I=Xe.trustedTypes.createPolicy("angular#components",{createHTML:ft=>ft}))}return I}())||void 0===ft?void 0:ft.createHTML(Xe))||Xe}function A(Xe){return Error(`Unable to find icon with the name "${Xe}"`)}function D(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function w(Xe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Xe}".`)}function x(Xe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Xe}".`)}class C{constructor(ft,Pe,et){this.url=ft,this.svgText=Pe,this.options=et}}let L=(()=>{class Xe{constructor(Pe,et,at,pt){this._httpClient=Pe,this._sanitizer=et,this._errorHandler=pt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=at}addSvgIcon(Pe,et,at){return this.addSvgIconInNamespace("",Pe,et,at)}addSvgIconLiteral(Pe,et,at){return this.addSvgIconLiteralInNamespace("",Pe,et,at)}addSvgIconInNamespace(Pe,et,at,pt){return this._addSvgIconConfig(Pe,et,new C(at,null,pt))}addSvgIconResolver(Pe){return this._resolvers.push(Pe),this}addSvgIconLiteralInNamespace(Pe,et,at,pt){const vt=this._sanitizer.sanitize(n.SecurityContext.HTML,at);if(!vt)throw x(at);const yt=M(vt);return this._addSvgIconConfig(Pe,et,new C("",yt,pt))}addSvgIconSet(Pe,et){return this.addSvgIconSetInNamespace("",Pe,et)}addSvgIconSetLiteral(Pe,et){return this.addSvgIconSetLiteralInNamespace("",Pe,et)}addSvgIconSetInNamespace(Pe,et,at){return this._addSvgIconSetConfig(Pe,new C(et,null,at))}addSvgIconSetLiteralInNamespace(Pe,et,at){const pt=this._sanitizer.sanitize(n.SecurityContext.HTML,et);if(!pt)throw x(et);const vt=M(pt);return this._addSvgIconSetConfig(Pe,new C("",vt,at))}registerFontClassAlias(Pe,et=Pe){return this._fontCssClassesByAlias.set(Pe,et),this}classNameForFontAlias(Pe){return this._fontCssClassesByAlias.get(Pe)||Pe}setDefaultFontSetClass(Pe){return this._defaultFontSetClass=Pe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Pe){const et=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Pe);if(!et)throw w(Pe);const at=this._cachedIconsByUrl.get(et);return at?(0,s.of)(Y(at)):this._loadSvgIconFromConfig(new C(Pe,null)).pipe((0,r.b)(pt=>this._cachedIconsByUrl.set(et,pt)),(0,o.U)(pt=>Y(pt)))}getNamedSvgIcon(Pe,et=""){const at=X(et,Pe);let pt=this._svgIconConfigs.get(at);if(pt)return this._getSvgFromConfig(pt);if(pt=this._getIconConfigFromResolvers(et,Pe),pt)return this._svgIconConfigs.set(at,pt),this._getSvgFromConfig(pt);const vt=this._iconSetConfigs.get(et);return vt?this._getSvgFromIconSetConfigs(Pe,vt):(0,d._)(A(at))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Pe){return Pe.svgText?(0,s.of)(Y(this._svgElementFromConfig(Pe))):this._loadSvgIconFromConfig(Pe).pipe((0,o.U)(et=>Y(et)))}_getSvgFromIconSetConfigs(Pe,et){const at=this._extractIconWithNameFromAnySet(Pe,et);if(at)return(0,s.of)(at);const pt=et.filter(vt=>!vt.svgText).map(vt=>this._loadSvgIconSetFromConfig(vt).pipe((0,i.K)(yt=>{const _t=`Loading icon set URL: ${this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,vt.url)} failed: ${yt.message}`;return this._errorHandler.handleError(new Error(_t)),(0,s.of)(null)})));return(0,u.D)(pt).pipe((0,o.U)(()=>{const vt=this._extractIconWithNameFromAnySet(Pe,et);if(!vt)throw A(Pe);return vt}))}_extractIconWithNameFromAnySet(Pe,et){for(let at=et.length-1;at>=0;at--){const pt=et[at];if(pt.svgText&&pt.svgText.toString().indexOf(Pe)>-1){const vt=this._svgElementFromConfig(pt),yt=this._extractSvgIconFromSet(vt,Pe,pt.options);if(yt)return yt}}return null}_loadSvgIconFromConfig(Pe){return this._fetchIcon(Pe).pipe((0,r.b)(et=>Pe.svgText=et),(0,o.U)(()=>this._svgElementFromConfig(Pe)))}_loadSvgIconSetFromConfig(Pe){return Pe.svgText?(0,s.of)(null):this._fetchIcon(Pe).pipe((0,r.b)(et=>Pe.svgText=et))}_extractSvgIconFromSet(Pe,et,at){const pt=Pe.querySelector(`[id="${et}"]`);if(!pt)return null;const vt=pt.cloneNode(!0);if(vt.removeAttribute("id"),"svg"===vt.nodeName.toLowerCase())return this._setSvgAttributes(vt,at);if("symbol"===vt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(vt),at);const yt=this._svgElementFromString(M(""));return yt.appendChild(vt),this._setSvgAttributes(yt,at)}_svgElementFromString(Pe){const et=this._document.createElement("DIV");et.innerHTML=Pe;const at=et.querySelector("svg");if(!at)throw Error(" tag not found");return at}_toSvgElement(Pe){const et=this._svgElementFromString(M("")),at=Pe.attributes;for(let pt=0;ptM(At)),(0,c.x)(()=>this._inProgressUrlFetches.delete(yt)),(0,l.B)());return this._inProgressUrlFetches.set(yt,_t),_t}_addSvgIconConfig(Pe,et,at){return this._svgIconConfigs.set(X(Pe,et),at),this}_addSvgIconSetConfig(Pe,et){const at=this._iconSetConfigs.get(Pe);return at?at.push(et):this._iconSetConfigs.set(Pe,[et]),this}_svgElementFromConfig(Pe){if(!Pe.svgElement){const et=this._svgElementFromString(Pe.svgText);this._setSvgAttributes(et,Pe.options),Pe.svgElement=et}return Pe.svgElement}_getIconConfigFromResolvers(Pe,et){for(let at=0;atft?ft.pathname+ft.search:""}}const ne=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ae=ne.map(Xe=>`[${Xe}]`).join(", "),xe=/^url\(['"]?#(.*?)['"]?\)$/;let Ie=(()=>{class Xe extends ${constructor(Pe,et,at,pt,vt){super(Pe),this._iconRegistry=et,this._location=pt,this._errorHandler=vt,this._inline=!1,this._currentIconFetch=h.w.EMPTY,at||Pe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Pe){this._inline=(0,_.Ig)(Pe)}get svgIcon(){return this._svgIcon}set svgIcon(Pe){Pe!==this._svgIcon&&(Pe?this._updateSvgIcon(Pe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Pe)}get fontSet(){return this._fontSet}set fontSet(Pe){const et=this._cleanupFontValue(Pe);et!==this._fontSet&&(this._fontSet=et,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Pe){const et=this._cleanupFontValue(Pe);et!==this._fontIcon&&(this._fontIcon=et,this._updateFontIconClasses())}_splitIconName(Pe){if(!Pe)return["",""];const et=Pe.split(":");switch(et.length){case 1:return["",et[0]];case 2:return et;default:throw Error(`Invalid icon name: "${Pe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Pe=this._elementsWithExternalReferences;if(Pe&&Pe.size){const et=this._location.getPathname();et!==this._previousPath&&(this._previousPath=et,this._prependPathToReferences(et))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Pe){this._clearSvgElement();const et=Pe.querySelectorAll("style");for(let pt=0;pt{at.forEach(vt=>{pt.setAttribute(vt.name,`url('${Pe}#${vt.value}')`)})})}_cacheChildrenWithExternalReferences(Pe){const et=Pe.querySelectorAll(ae),at=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let pt=0;pt{const yt=et[pt],ot=yt.getAttribute(vt),_t=ot?ot.match(xe):null;if(_t){let At=at.get(yt);At||(At=[],at.set(yt,At)),At.push({name:vt,value:_t[1]})}})}_updateSvgIcon(Pe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Pe){const[et,at]=this._splitIconName(Pe);et&&(this._svgNamespace=et),at&&(this._svgName=at),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(at,et).pipe((0,g.q)(1)).subscribe(pt=>this._setSvgElement(pt),pt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${et}:${at}! ${pt.message}`))})}}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(L),n.\u0275\u0275injectAttribute("aria-hidden"),n.\u0275\u0275directiveInject(J),n.\u0275\u0275directiveInject(n.ErrorHandler))},Xe.\u0275cmp=n.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Pe,et){2&Pe&&(n.\u0275\u0275attribute("data-mat-icon-type",et._usingFontIcon()?"font":"svg")("data-mat-icon-name",et._svgName||et.fontIcon)("data-mat-icon-namespace",et._svgNamespace||et.fontSet),n.\u0275\u0275classProp("mat-icon-inline",et.inline)("mat-icon-no-color","primary"!==et.color&&"accent"!==et.color&&"warn"!==et.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:S,decls:1,vars:0,template:function(Pe,et){1&Pe&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),Xe})(),We=(()=>{class Xe{}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)},Xe.\u0275mod=n.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatCommonModule],f.MatCommonModule]}),Xe})()},7531:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_INPUT_VALUE_ACCESSOR:()=>b,MatInput:()=>R,MatInputModule:()=>M,getMatInputUnsupportedTypeError:()=>g});var n=p(3191),f=p(925),_=p(5e3),m=p(3075),s=p(508),d=p(7322),u=p(8929),h=p(8896);const r=(0,f.i$)({passive:!0});let o=(()=>{class A{constructor(w,x){this._platform=w,this._ngZone=x,this._monitoredElements=new Map}monitor(w){if(!this._platform.isBrowser)return h.E;const x=(0,n.fI)(w),C=this._monitoredElements.get(x);if(C)return C.subject;const L=new u.xQ,F="cdk-text-field-autofilled",re=Y=>{"cdk-text-field-autofill-start"!==Y.animationName||x.classList.contains(F)?"cdk-text-field-autofill-end"===Y.animationName&&x.classList.contains(F)&&(x.classList.remove(F),this._ngZone.run(()=>L.next({target:Y.target,isAutofilled:!1}))):(x.classList.add(F),this._ngZone.run(()=>L.next({target:Y.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{x.addEventListener("animationstart",re,r),x.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(x,{subject:L,unlisten:()=>{x.removeEventListener("animationstart",re,r)}}),L}stopMonitoring(w){const x=(0,n.fI)(w),C=this._monitoredElements.get(x);C&&(C.unlisten(),C.subject.complete(),x.classList.remove("cdk-text-field-autofill-monitored"),x.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(x))}ngOnDestroy(){this._monitoredElements.forEach((w,x)=>this.stopMonitoring(x))}}return A.\u0275fac=function(w){return new(w||A)(_.\u0275\u0275inject(f.t4),_.\u0275\u0275inject(_.NgZone))},A.\u0275prov=_.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),l=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=_.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=_.\u0275\u0275defineInjector({imports:[[f.ud]]}),A})();function g(A){return Error(`Input type "${A}" isn't supported by matInput.`)}const b=new _.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),y=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let S=0;const I=(0,s.mixinErrorState)(class{constructor(A,D,w,x){this._defaultErrorStateMatcher=A,this._parentForm=D,this._parentFormGroup=w,this.ngControl=x}});let R=(()=>{class A extends I{constructor(w,x,C,L,F,re,Y,X,ee,$){super(re,L,F,C),this._elementRef=w,this._platform=x,this._autofillMonitor=X,this._formField=$,this._uid="mat-input-"+S++,this.focused=!1,this.stateChanges=new u.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(ne=>(0,f.qK)().has(ne));const J=this._elementRef.nativeElement,ie=J.nodeName.toLowerCase();this._inputValueAccessor=Y||J,this._previousNativeValue=this.value,this.id=this.id,x.IOS&&ee.runOutsideAngular(()=>{w.nativeElement.addEventListener("keyup",ne=>{const ae=ne.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ie,this._isTextarea="textarea"===ie,this._isInFormField=!!$,this._isNativeSelect&&(this.controlType=J.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(w){this._disabled=(0,n.Ig)(w),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(w){this._id=w||this._uid}get required(){var w,x,C,L;return null!==(L=null!==(w=this._required)&&void 0!==w?w:null===(C=null===(x=this.ngControl)||void 0===x?void 0:x.control)||void 0===C?void 0:C.hasValidator(m.Validators.required))&&void 0!==L&&L}set required(w){this._required=(0,n.Ig)(w)}get type(){return this._type}set type(w){this._type=w||"text",this._validateType(),!this._isTextarea&&(0,f.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(w){w!==this.value&&(this._inputValueAccessor.value=w,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(w){this._readonly=(0,n.Ig)(w)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(w=>{this.autofilled=w.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(w){this._elementRef.nativeElement.focus(w)}_focusChanged(w){w!==this.focused&&(this.focused=w,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var w,x;const C=(null===(x=null===(w=this._formField)||void 0===w?void 0:w._hideControlPlaceholder)||void 0===x?void 0:x.call(w))?null:this.placeholder;if(C!==this._previousPlaceholder){const L=this._elementRef.nativeElement;this._previousPlaceholder=C,C?L.setAttribute("placeholder",C):L.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const w=this._elementRef.nativeElement.value;this._previousNativeValue!==w&&(this._previousNativeValue=w,this.stateChanges.next())}_validateType(){y.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let w=this._elementRef.nativeElement.validity;return w&&w.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const w=this._elementRef.nativeElement,x=w.options[0];return this.focused||w.multiple||!this.empty||!!(w.selectedIndex>-1&&x&&x.label)}return this.focused||!this.empty}setDescribedByIds(w){w.length?this._elementRef.nativeElement.setAttribute("aria-describedby",w.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const w=this._elementRef.nativeElement;return this._isNativeSelect&&(w.multiple||w.size>1)}}return A.\u0275fac=function(w){return new(w||A)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(f.t4),_.\u0275\u0275directiveInject(m.NgControl,10),_.\u0275\u0275directiveInject(m.NgForm,8),_.\u0275\u0275directiveInject(m.FormGroupDirective,8),_.\u0275\u0275directiveInject(s.ErrorStateMatcher),_.\u0275\u0275directiveInject(b,10),_.\u0275\u0275directiveInject(o),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(d.MAT_FORM_FIELD,8))},A.\u0275dir=_.\u0275\u0275defineDirective({type:A,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(w,x){1&w&&_.\u0275\u0275listener("focus",function(){return x._focusChanged(!0)})("blur",function(){return x._focusChanged(!1)})("input",function(){return x._onInput()}),2&w&&(_.\u0275\u0275hostProperty("disabled",x.disabled)("required",x.required),_.\u0275\u0275attribute("id",x.id)("data-placeholder",x.placeholder)("readonly",x.readonly&&!x._isNativeSelect||null)("aria-invalid",x.empty&&x.required?null:x.errorState)("aria-required",x.required),_.\u0275\u0275classProp("mat-input-server",x._isServer)("mat-native-select-inline",x._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[_.\u0275\u0275ProvidersFeature([{provide:d.MatFormFieldControl,useExisting:A}]),_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275NgOnChangesFeature]}),A})(),M=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=_.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=_.\u0275\u0275defineInjector({providers:[s.ErrorStateMatcher],imports:[[l,d.MatFormFieldModule,s.MatCommonModule],l,d.MatFormFieldModule]}),A})()},2181:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_MENU_CONTENT:()=>ee,MAT_MENU_DEFAULT_OPTIONS:()=>ft,MAT_MENU_PANEL:()=>Ie,MAT_MENU_SCROLL_STRATEGY:()=>vt,MatMenu:()=>pt,MatMenuContent:()=>J,MatMenuItem:()=>Xe,MatMenuModule:()=>Et,MatMenuTrigger:()=>Bt,_MatMenuBase:()=>at,_MatMenuContentBase:()=>$,_MatMenuTriggerBase:()=>Tt,fadeInItems:()=>Y,matMenuAnimations:()=>re,transformMenu:()=>X});var n=p(5664),f=p(3191),_=p(1159),m=p(5e3),s=p(8929),d=p(2654),u=p(6787),h=p(1086),r=p(8139),o=p(1059),i=p(7545),c=p(2986),l=p(2198),g=p(7625),b=p(943),y=p(1777),S=p(7429),I=p(9808),R=p(508),M=p(1314),A=p(925),D=p(226),w=p(9071);const x=["mat-menu-item",""];function C(Ee,fe){1&Ee&&(m.\u0275\u0275namespaceSVG(),m.\u0275\u0275elementStart(0,"svg",2),m.\u0275\u0275element(1,"polygon",3),m.\u0275\u0275elementEnd())}const L=["*"];function F(Ee,fe){if(1&Ee){const H=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"div",0),m.\u0275\u0275listener("keydown",function(U){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext()._handleKeydown(U)})("click",function(){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(U){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext()._onAnimationStart(U)})("@transformMenu.done",function(U){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext()._onAnimationDone(U)}),m.\u0275\u0275elementStart(1,"div",1),m.\u0275\u0275projection(2),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()}if(2&Ee){const H=m.\u0275\u0275nextContext();m.\u0275\u0275property("id",H.panelId)("ngClass",H._classList)("@transformMenu",H._panelAnimationState),m.\u0275\u0275attribute("aria-label",H.ariaLabel||null)("aria-labelledby",H.ariaLabelledby||null)("aria-describedby",H.ariaDescribedby||null)}}const re={transformMenu:(0,y.X$)("transformMenu",[(0,y.SB)("void",(0,y.oB)({opacity:0,transform:"scale(0.8)"})),(0,y.eR)("void => enter",(0,y.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,y.oB)({opacity:1,transform:"scale(1)"}))),(0,y.eR)("* => void",(0,y.jt)("100ms 25ms linear",(0,y.oB)({opacity:0})))]),fadeInItems:(0,y.X$)("fadeInItems",[(0,y.SB)("showing",(0,y.oB)({opacity:1})),(0,y.eR)("void => *",[(0,y.oB)({opacity:0}),(0,y.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Y=re.fadeInItems,X=re.transformMenu,ee=new m.InjectionToken("MatMenuContent");let $=(()=>{class Ee{constructor(H,T,U,Z,_e,Be,$e){this._template=H,this._componentFactoryResolver=T,this._appRef=U,this._injector=Z,this._viewContainerRef=_e,this._document=Be,this._changeDetectorRef=$e,this._attached=new s.xQ}attach(H={}){this._portal||(this._portal=new S.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new S.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const T=this._template.elementRef.nativeElement;T.parentNode.insertBefore(this._outlet.outletElement,T),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,H),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(m.TemplateRef),m.\u0275\u0275directiveInject(m.ComponentFactoryResolver),m.\u0275\u0275directiveInject(m.ApplicationRef),m.\u0275\u0275directiveInject(m.Injector),m.\u0275\u0275directiveInject(m.ViewContainerRef),m.\u0275\u0275directiveInject(I.DOCUMENT),m.\u0275\u0275directiveInject(m.ChangeDetectorRef))},Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee}),Ee})(),J=(()=>{class Ee extends ${}return Ee.\u0275fac=function(){let fe;return function(T){return(fe||(fe=m.\u0275\u0275getInheritedFactory(Ee)))(T||Ee)}}(),Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,selectors:[["ng-template","matMenuContent",""]],features:[m.\u0275\u0275ProvidersFeature([{provide:ee,useExisting:Ee}]),m.\u0275\u0275InheritDefinitionFeature]}),Ee})();const Ie=new m.InjectionToken("MAT_MENU_PANEL"),We=(0,R.mixinDisableRipple)((0,R.mixinDisabled)(class{}));let Xe=(()=>{class Ee extends We{constructor(H,T,U,Z,_e){super(),this._elementRef=H,this._focusMonitor=U,this._parentMenu=Z,this._changeDetectorRef=_e,this.role="menuitem",this._hovered=new s.xQ,this._focused=new s.xQ,this._highlighted=!1,this._triggersSubmenu=!1,Z&&Z.addItem&&Z.addItem(this)}focus(H,T){this._focusMonitor&&H?this._focusMonitor.focusVia(this._getHostElement(),H,T):this._getHostElement().focus(T),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(H){this.disabled&&(H.preventDefault(),H.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var H;const T=this._elementRef.nativeElement.cloneNode(!0),U=T.querySelectorAll("mat-icon, .material-icons");for(let Z=0;Z{class Ee{constructor(H,T,U){this._elementRef=H,this._ngZone=T,this._defaultOptions=U,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new m.QueryList,this._tabSubscription=d.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new s.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new m.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+et++}get xPosition(){return this._xPosition}set xPosition(H){this._xPosition=H,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(H){this._yPosition=H,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(H){this._overlapTrigger=(0,f.Ig)(H)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(H){this._hasBackdrop=(0,f.Ig)(H)}set panelClass(H){const T=this._previousPanelClass;T&&T.length&&T.split(" ").forEach(U=>{this._classList[U]=!1}),this._previousPanelClass=H,H&&H.length&&(H.split(" ").forEach(U=>{this._classList[U]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(H){this.panelClass=H}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,o.O)(this._directDescendantItems),(0,i.w)(H=>(0,u.T)(...H.map(T=>T._focused)))).subscribe(H=>this._keyManager.updateActiveItem(H))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,o.O)(this._directDescendantItems),(0,i.w)(T=>(0,u.T)(...T.map(U=>U._hovered))))}addItem(H){}removeItem(H){}_handleKeydown(H){const T=H.keyCode,U=this._keyManager;switch(T){case _.hY:(0,_.Vb)(H)||(H.preventDefault(),this.closed.emit("keydown"));break;case _.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case _.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(T===_.LH||T===_.JH)&&U.setFocusOrigin("keyboard"),U.onKeydown(H)}}focusFirstItem(H="program"){this.lazyContent?this._ngZone.onStable.pipe((0,c.q)(1)).subscribe(()=>this._focusFirstItem(H)):this._focusFirstItem(H)}_focusFirstItem(H){const T=this._keyManager;if(T.setFocusOrigin(H).setFirstItemActive(),!T.activeItem&&this._directDescendantItems.length){let U=this._directDescendantItems.first._getHostElement().parentElement;for(;U;){if("menu"===U.getAttribute("role")){U.focus();break}U=U.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(H){const T=Math.min(this._baseElevation+H,24),U=`${this._elevationPrefix}${T}`,Z=Object.keys(this._classList).find(_e=>_e.startsWith(this._elevationPrefix));(!Z||Z===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[U]=!0,this._previousElevation=U)}setPositionClasses(H=this.xPosition,T=this.yPosition){const U=this._classList;U["mat-menu-before"]="before"===H,U["mat-menu-after"]="after"===H,U["mat-menu-above"]="above"===T,U["mat-menu-below"]="below"===T}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(H){this._animationDone.next(H),this._isAnimating=!1}_onAnimationStart(H){this._isAnimating=!0,"enter"===H.toState&&0===this._keyManager.activeItemIndex&&(H.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,o.O)(this._allItems)).subscribe(H=>{this._directDescendantItems.reset(H.filter(T=>T._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(ft))},Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,contentQueries:function(H,T,U){if(1&H&&(m.\u0275\u0275contentQuery(U,ee,5),m.\u0275\u0275contentQuery(U,Xe,5),m.\u0275\u0275contentQuery(U,Xe,4)),2&H){let Z;m.\u0275\u0275queryRefresh(Z=m.\u0275\u0275loadQuery())&&(T.lazyContent=Z.first),m.\u0275\u0275queryRefresh(Z=m.\u0275\u0275loadQuery())&&(T._allItems=Z),m.\u0275\u0275queryRefresh(Z=m.\u0275\u0275loadQuery())&&(T.items=Z)}},viewQuery:function(H,T){if(1&H&&m.\u0275\u0275viewQuery(m.TemplateRef,5),2&H){let U;m.\u0275\u0275queryRefresh(U=m.\u0275\u0275loadQuery())&&(T.templateRef=U.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Ee})(),pt=(()=>{class Ee extends at{constructor(H,T,U){super(H,T,U),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(ft))},Ee.\u0275cmp=m.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(H,T){2&H&&m.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[m.\u0275\u0275ProvidersFeature([{provide:Ie,useExisting:Ee}]),m.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:L,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(H,T){1&H&&(m.\u0275\u0275projectionDef(),m.\u0275\u0275template(0,F,3,6,"ng-template"))},directives:[I.NgClass],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[re.transformMenu,re.fadeInItems]},changeDetection:0}),Ee})();const vt=new m.InjectionToken("mat-menu-scroll-strategy"),ot={provide:vt,deps:[M.aV],useFactory:function(Ee){return()=>Ee.scrollStrategies.reposition()}},At=(0,A.i$)({passive:!0});let Tt=(()=>{class Ee{constructor(H,T,U,Z,_e,Be,$e,st){this._overlay=H,this._element=T,this._viewContainerRef=U,this._menuItemInstance=Be,this._dir=$e,this._focusMonitor=st,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=d.w.EMPTY,this._hoverSubscription=d.w.EMPTY,this._menuCloseSubscription=d.w.EMPTY,this._handleTouchStart=ut=>{(0,n.yG)(ut)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new m.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new m.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=Z,this._parentMaterialMenu=_e instanceof at?_e:void 0,T.nativeElement.addEventListener("touchstart",this._handleTouchStart,At),Be&&(Be._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(H){this.menu=H}get menu(){return this._menu}set menu(H){H!==this._menu&&(this._menu=H,this._menuCloseSubscription.unsubscribe(),H&&(this._menuCloseSubscription=H.close.subscribe(T=>{this._destroyMenu(T),("click"===T||"tab"===T)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(T)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,At),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const H=this._createOverlay(),T=H.getConfig();this._setPosition(T.positionStrategy),T.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,H.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof at&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(H,T){this._focusMonitor&&H?this._focusMonitor.focusVia(this._element,H,T):this._element.nativeElement.focus(T)}updatePosition(){var H;null===(H=this._overlayRef)||void 0===H||H.updatePosition()}_destroyMenu(H){if(!this._overlayRef||!this.menuOpen)return;const T=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===H||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,T instanceof at?(T._resetAnimation(),T.lazyContent?T._animationDone.pipe((0,l.h)(U=>"void"===U.toState),(0,c.q)(1),(0,g.R)(T.lazyContent._attached)).subscribe({next:()=>T.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),T.lazyContent&&T.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let H=0,T=this.menu.parentMenu;for(;T;)H++,T=T.parentMenu;this.menu.setElevation(H)}}_setIsMenuOpen(H){this._menuOpen=H,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(H)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const H=this._getOverlayConfig();this._subscribeToPositions(H.positionStrategy),this._overlayRef=this._overlay.create(H),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new M.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(H){this.menu.setPositionClasses&&H.positionChanges.subscribe(T=>{this.menu.setPositionClasses("start"===T.connectionPair.overlayX?"after":"before","top"===T.connectionPair.overlayY?"below":"above")})}_setPosition(H){let[T,U]="before"===this.menu.xPosition?["end","start"]:["start","end"],[Z,_e]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Be,$e]=[Z,_e],[st,ut]=[T,U],St=0;this.triggersSubmenu()?(ut=T="before"===this.menu.xPosition?"start":"end",U=st="end"===T?"start":"end",St="bottom"===Z?8:-8):this.menu.overlapTrigger||(Be="top"===Z?"bottom":"top",$e="top"===_e?"bottom":"top"),H.withPositions([{originX:T,originY:Be,overlayX:st,overlayY:Z,offsetY:St},{originX:U,originY:Be,overlayX:ut,overlayY:Z,offsetY:St},{originX:T,originY:$e,overlayX:st,overlayY:_e,offsetY:-St},{originX:U,originY:$e,overlayX:ut,overlayY:_e,offsetY:-St}])}_menuClosingActions(){const H=this._overlayRef.backdropClick(),T=this._overlayRef.detachments(),U=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,h.of)(),Z=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,l.h)(_e=>_e!==this._menuItemInstance),(0,l.h)(()=>this._menuOpen)):(0,h.of)();return(0,u.T)(H,U,Z,T)}_handleMousedown(H){(0,n.X6)(H)||(this._openedBy=0===H.button?"mouse":void 0,this.triggersSubmenu()&&H.preventDefault())}_handleKeydown(H){const T=H.keyCode;(T===_.K5||T===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(T===_.SV&&"ltr"===this.dir||T===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(H){this.triggersSubmenu()?(H.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,l.h)(H=>H===this._menuItemInstance&&!H.disabled),(0,b.g)(0,r.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof at&&this.menu._isAnimating?this.menu._animationDone.pipe((0,c.q)(1),(0,b.g)(0,r.E),(0,g.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new S.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(M.aV),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.ViewContainerRef),m.\u0275\u0275directiveInject(vt),m.\u0275\u0275directiveInject(Ie,8),m.\u0275\u0275directiveInject(Xe,10),m.\u0275\u0275directiveInject(D.Is,8),m.\u0275\u0275directiveInject(n.tE))},Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(H,T){1&H&&m.\u0275\u0275listener("click",function(Z){return T._handleClick(Z)})("mousedown",function(Z){return T._handleMousedown(Z)})("keydown",function(Z){return T._handleKeydown(Z)}),2&H&&m.\u0275\u0275attribute("aria-expanded",T.menuOpen||null)("aria-controls",T.menuOpen?T.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Ee})(),Bt=(()=>{class Ee extends Tt{}return Ee.\u0275fac=function(){let fe;return function(T){return(fe||(fe=m.\u0275\u0275getInheritedFactory(Ee)))(T||Ee)}}(),Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[m.\u0275\u0275InheritDefinitionFeature]}),Ee})(),Et=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=m.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=m.\u0275\u0275defineInjector({providers:[ot],imports:[[I.CommonModule,R.MatCommonModule,R.MatRippleModule,M.U8],w.ZD,R.MatCommonModule]}),Ee})()},7850:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_PAGINATOR_DEFAULT_OPTIONS:()=>st,MAT_PAGINATOR_INTL_PROVIDER:()=>_e,MAT_PAGINATOR_INTL_PROVIDER_FACTORY:()=>Z,MatPaginator:()=>Xt,MatPaginatorIntl:()=>U,MatPaginatorModule:()=>tn,PageEvent:()=>$e,_MatPaginatorBase:()=>St});var n=p(9808),f=p(5e3),_=p(508),m=p(7423),s=p(4107),d=p(1314),u=p(5664),h=p(9071),r=p(3191),o=p(1159),i=p(8929),c=p(6053),l=p(1961),g=p(6498),b=p(2986),y=p(1307),S=p(13),I=p(4850),R=p(1059),M=p(7625),A=p(925);const w=new Set;let x,C=(()=>{class Dt{constructor(tt){this._platform=tt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):F}matchMedia(tt){return(this._platform.WEBKIT||this._platform.BLINK)&&function(Dt){if(!w.has(Dt))try{x||(x=document.createElement("style"),x.setAttribute("type","text/css"),document.head.appendChild(x)),x.sheet&&(x.sheet.insertRule(`@media ${Dt} {body{ }}`,0),w.add(Dt))}catch(Kt){console.error(Kt)}}(tt),this._matchMedia(tt)}}return Dt.\u0275fac=function(tt){return new(tt||Dt)(f.\u0275\u0275inject(A.t4))},Dt.\u0275prov=f.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function F(Dt){return{matches:"all"===Dt||""===Dt,media:Dt,addListener:()=>{},removeListener:()=>{}}}let re=(()=>{class Dt{constructor(tt,xt){this._mediaMatcher=tt,this._zone=xt,this._queries=new Map,this._destroySubject=new i.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(tt){return Y((0,r.Eq)(tt)).some(Lt=>this._registerQuery(Lt).mql.matches)}observe(tt){const Lt=Y((0,r.Eq)(tt)).map(gt=>this._registerQuery(gt).observable);let Qe=(0,c.aj)(Lt);return Qe=(0,l.z)(Qe.pipe((0,b.q)(1)),Qe.pipe((0,y.T)(1),(0,S.b)(0))),Qe.pipe((0,I.U)(gt=>{const Vt={matches:!1,breakpoints:{}};return gt.forEach(({matches:qt,query:Ue})=>{Vt.matches=Vt.matches||qt,Vt.breakpoints[Ue]=qt}),Vt}))}_registerQuery(tt){if(this._queries.has(tt))return this._queries.get(tt);const xt=this._mediaMatcher.matchMedia(tt),Qe={observable:new g.y(gt=>{const Vt=qt=>this._zone.run(()=>gt.next(qt));return xt.addListener(Vt),()=>{xt.removeListener(Vt)}}).pipe((0,R.O)(xt),(0,I.U)(({matches:gt})=>({query:tt,matches:gt})),(0,M.R)(this._destroySubject)),mql:xt};return this._queries.set(tt,Qe),Qe}}return Dt.\u0275fac=function(tt){return new(tt||Dt)(f.\u0275\u0275inject(C),f.\u0275\u0275inject(f.NgZone))},Dt.\u0275prov=f.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function Y(Dt){return Dt.map(Kt=>Kt.split(",")).reduce((Kt,tt)=>Kt.concat(tt)).map(Kt=>Kt.trim())}var ee=p(7429),$=p(1777),J=p(226);const ie={tooltipState:(0,$.X$)("state",[(0,$.SB)("initial, void, hidden",(0,$.oB)({opacity:0,transform:"scale(0)"})),(0,$.SB)("visible",(0,$.oB)({transform:"scale(1)"})),(0,$.eR)("* => visible",(0,$.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,$.F4)([(0,$.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,$.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,$.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,$.eR)("* => hidden",(0,$.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,$.oB)({opacity:0})))])},xe="tooltip-panel",Ie=(0,A.i$)({passive:!0}),ft=new f.InjectionToken("mat-tooltip-scroll-strategy"),et={provide:ft,deps:[d.aV],useFactory:function(Dt){return()=>Dt.scrollStrategies.reposition({scrollThrottle:20})}},at=new f.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let vt=(()=>{class Dt{constructor(tt,xt,Lt,Qe,gt,Vt,qt,Ue,Se,te,se,Me){this._overlay=tt,this._elementRef=xt,this._scrollDispatcher=Lt,this._viewContainerRef=Qe,this._ngZone=gt,this._platform=Vt,this._ariaDescriber=qt,this._focusMonitor=Ue,this._dir=te,this._defaultOptions=se,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new i.xQ,this._handleKeydown=Ke=>{this._isTooltipVisible()&&Ke.keyCode===o.hY&&!(0,o.Vb)(Ke)&&(Ke.preventDefault(),Ke.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=Se,this._document=Me,se&&(se.position&&(this.position=se.position),se.touchGestures&&(this.touchGestures=se.touchGestures)),te.change.pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),gt.runOutsideAngular(()=>{xt.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(tt){var xt;tt!==this._position&&(this._position=tt,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(xt=this._tooltipInstance)||void 0===xt||xt.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(tt){this._disabled=(0,r.Ig)(tt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(tt){this._showDelay=(0,r.su)(tt)}get hideDelay(){return this._hideDelay}set hideDelay(tt){this._hideDelay=(0,r.su)(tt)}get message(){return this._message}set message(tt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=tt?String(tt).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(tt){this._tooltipClass=tt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,M.R)(this._destroyed)).subscribe(tt=>{tt?"keyboard"===tt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const tt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),tt.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([xt,Lt])=>{tt.removeEventListener(xt,Lt,Ie)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(tt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(tt)}show(tt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const xt=this._createOverlay();this._detach(),this._portal=this._portal||new ee.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=xt.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,M.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(tt)}hide(tt=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(tt)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const tt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),xt=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(tt);return xt.positionChanges.pipe((0,M.R)(this._destroyed)).subscribe(Lt=>{this._updateCurrentPositionClass(Lt.connectionPair),this._tooltipInstance&&Lt.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:xt,panelClass:`${this._cssClassPrefix}-${xe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,M.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,M.R)(this._destroyed)).subscribe(()=>{var Lt;return null===(Lt=this._tooltipInstance)||void 0===Lt?void 0:Lt._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(tt){const xt=tt.getConfig().positionStrategy,Lt=this._getOrigin(),Qe=this._getOverlayPosition();xt.withPositions([this._addOffset(Object.assign(Object.assign({},Lt.main),Qe.main)),this._addOffset(Object.assign(Object.assign({},Lt.fallback),Qe.fallback))])}_addOffset(tt){return tt}_getOrigin(){const tt=!this._dir||"ltr"==this._dir.value,xt=this.position;let Lt;"above"==xt||"below"==xt?Lt={originX:"center",originY:"above"==xt?"top":"bottom"}:"before"==xt||"left"==xt&&tt||"right"==xt&&!tt?Lt={originX:"start",originY:"center"}:("after"==xt||"right"==xt&&tt||"left"==xt&&!tt)&&(Lt={originX:"end",originY:"center"});const{x:Qe,y:gt}=this._invertPosition(Lt.originX,Lt.originY);return{main:Lt,fallback:{originX:Qe,originY:gt}}}_getOverlayPosition(){const tt=!this._dir||"ltr"==this._dir.value,xt=this.position;let Lt;"above"==xt?Lt={overlayX:"center",overlayY:"bottom"}:"below"==xt?Lt={overlayX:"center",overlayY:"top"}:"before"==xt||"left"==xt&&tt||"right"==xt&&!tt?Lt={overlayX:"end",overlayY:"center"}:("after"==xt||"right"==xt&&tt||"left"==xt&&!tt)&&(Lt={overlayX:"start",overlayY:"center"});const{x:Qe,y:gt}=this._invertPosition(Lt.overlayX,Lt.overlayY);return{main:Lt,fallback:{overlayX:Qe,overlayY:gt}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,b.q)(1),(0,M.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(tt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=tt,this._tooltipInstance._markForCheck())}_invertPosition(tt,xt){return"above"===this.position||"below"===this.position?"top"===xt?xt="bottom":"bottom"===xt&&(xt="top"):"end"===tt?tt="start":"start"===tt&&(tt="end"),{x:tt,y:xt}}_updateCurrentPositionClass(tt){const{overlayY:xt,originX:Lt,originY:Qe}=tt;let gt;if(gt="center"===xt?this._dir&&"rtl"===this._dir.value?"end"===Lt?"left":"right":"start"===Lt?"left":"right":"bottom"===xt&&"top"===Qe?"above":"below",gt!==this._currentPosition){const Vt=this._overlayRef;if(Vt){const qt=`${this._cssClassPrefix}-${xe}-`;Vt.removePanelClass(qt+this._currentPosition),Vt.addPanelClass(qt+gt)}this._currentPosition=gt}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const tt=[];if(this._platformSupportsMouseEvents())tt.push(["mouseleave",()=>this.hide()],["wheel",xt=>this._wheelListener(xt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const xt=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};tt.push(["touchend",xt],["touchcancel",xt])}this._addListeners(tt),this._passiveListeners.push(...tt)}_addListeners(tt){tt.forEach(([xt,Lt])=>{this._elementRef.nativeElement.addEventListener(xt,Lt,Ie)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(tt){if(this._isTooltipVisible()){const xt=this._document.elementFromPoint(tt.clientX,tt.clientY),Lt=this._elementRef.nativeElement;xt!==Lt&&!Lt.contains(xt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const tt=this.touchGestures;if("off"!==tt){const xt=this._elementRef.nativeElement,Lt=xt.style;("on"===tt||"INPUT"!==xt.nodeName&&"TEXTAREA"!==xt.nodeName)&&(Lt.userSelect=Lt.msUserSelect=Lt.webkitUserSelect=Lt.MozUserSelect="none"),("on"===tt||!xt.draggable)&&(Lt.webkitUserDrag="none"),Lt.touchAction="none",Lt.webkitTapHighlightColor="transparent"}}}return Dt.\u0275fac=function(tt){f.\u0275\u0275invalidFactory()},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Dt})(),yt=(()=>{class Dt extends vt{constructor(tt,xt,Lt,Qe,gt,Vt,qt,Ue,Se,te,se,Me){super(tt,xt,Lt,Qe,gt,Vt,qt,Ue,Se,te,se,Me),this._tooltipComponent=_t}}return Dt.\u0275fac=function(tt){return new(tt||Dt)(f.\u0275\u0275directiveInject(d.aV),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(h.mF),f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.NgZone),f.\u0275\u0275directiveInject(A.t4),f.\u0275\u0275directiveInject(u.$s),f.\u0275\u0275directiveInject(u.tE),f.\u0275\u0275directiveInject(ft),f.\u0275\u0275directiveInject(J.Is,8),f.\u0275\u0275directiveInject(at,8),f.\u0275\u0275directiveInject(n.DOCUMENT))},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[f.\u0275\u0275InheritDefinitionFeature]}),Dt})(),ot=(()=>{class Dt{constructor(tt){this._changeDetectorRef=tt,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new i.xQ}show(tt){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},tt)}hide(tt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},tt)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(tt){const xt=tt.toState;"hidden"===xt&&!this.isVisible()&&this._onHide.next(),("visible"===xt||"hidden"===xt)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return Dt.\u0275fac=function(tt){return new(tt||Dt)(f.\u0275\u0275directiveInject(f.ChangeDetectorRef))},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt}),Dt})(),_t=(()=>{class Dt extends ot{constructor(tt,xt){super(tt),this._breakpointObserver=xt,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return Dt.\u0275fac=function(tt){return new(tt||Dt)(f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(re))},Dt.\u0275cmp=f.\u0275\u0275defineComponent({type:Dt,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(tt,xt){2&tt&&f.\u0275\u0275styleProp("zoom","visible"===xt._visibility?1:null)},features:[f.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(tt,xt){if(1&tt&&(f.\u0275\u0275elementStart(0,"div",0),f.\u0275\u0275listener("@state.start",function(){return xt._animationStart()})("@state.done",function(Qe){return xt._animationDone(Qe)}),f.\u0275\u0275pipe(1,"async"),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd()),2&tt){let Lt;f.\u0275\u0275classProp("mat-tooltip-handset",null==(Lt=f.\u0275\u0275pipeBind1(1,5,xt._isHandset))?null:Lt.matches),f.\u0275\u0275property("ngClass",xt.tooltipClass)("@state",xt._visibility),f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate(xt.message)}},directives:[n.NgClass],pipes:[n.AsyncPipe],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ie.tooltipState]},changeDetection:0}),Dt})(),At=(()=>{class Dt{}return Dt.\u0275fac=function(tt){return new(tt||Dt)},Dt.\u0275mod=f.\u0275\u0275defineNgModule({type:Dt}),Dt.\u0275inj=f.\u0275\u0275defineInjector({providers:[et],imports:[[u.rt,n.CommonModule,d.U8,_.MatCommonModule],_.MatCommonModule,h.ZD]}),Dt})();var Tt=p(7322);function Bt(Dt,Kt){if(1&Dt&&(f.\u0275\u0275elementStart(0,"mat-option",19),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&Dt){const tt=Kt.$implicit;f.\u0275\u0275property("value",tt),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",tt," ")}}function Et(Dt,Kt){if(1&Dt){const tt=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"mat-form-field",16),f.\u0275\u0275elementStart(1,"mat-select",17),f.\u0275\u0275listener("selectionChange",function(Lt){return f.\u0275\u0275restoreView(tt),f.\u0275\u0275nextContext(2)._changePageSize(Lt.value)}),f.\u0275\u0275template(2,Bt,2,2,"mat-option",18),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&Dt){const tt=f.\u0275\u0275nextContext(2);f.\u0275\u0275property("appearance",tt._formFieldAppearance)("color",tt.color),f.\u0275\u0275advance(1),f.\u0275\u0275property("value",tt.pageSize)("disabled",tt.disabled)("aria-label",tt._intl.itemsPerPageLabel),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngForOf",tt._displayedPageSizeOptions)}}function Ee(Dt,Kt){if(1&Dt&&(f.\u0275\u0275elementStart(0,"div",20),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&Dt){const tt=f.\u0275\u0275nextContext(2);f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate(tt.pageSize)}}function fe(Dt,Kt){if(1&Dt&&(f.\u0275\u0275elementStart(0,"div",12),f.\u0275\u0275elementStart(1,"div",13),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(3,Et,3,6,"mat-form-field",14),f.\u0275\u0275template(4,Ee,2,1,"div",15),f.\u0275\u0275elementEnd()),2&Dt){const tt=f.\u0275\u0275nextContext();f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate1(" ",tt._intl.itemsPerPageLabel," "),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",tt._displayedPageSizeOptions.length>1),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",tt._displayedPageSizeOptions.length<=1)}}function H(Dt,Kt){if(1&Dt){const tt=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"button",21),f.\u0275\u0275listener("click",function(){return f.\u0275\u0275restoreView(tt),f.\u0275\u0275nextContext().firstPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(1,"svg",7),f.\u0275\u0275element(2,"path",22),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&Dt){const tt=f.\u0275\u0275nextContext();f.\u0275\u0275property("matTooltip",tt._intl.firstPageLabel)("matTooltipDisabled",tt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",tt._previousButtonsDisabled()),f.\u0275\u0275attribute("aria-label",tt._intl.firstPageLabel)}}function T(Dt,Kt){if(1&Dt){const tt=f.\u0275\u0275getCurrentView();f.\u0275\u0275namespaceSVG(),f.\u0275\u0275namespaceHTML(),f.\u0275\u0275elementStart(0,"button",23),f.\u0275\u0275listener("click",function(){return f.\u0275\u0275restoreView(tt),f.\u0275\u0275nextContext().lastPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(1,"svg",7),f.\u0275\u0275element(2,"path",24),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&Dt){const tt=f.\u0275\u0275nextContext();f.\u0275\u0275property("matTooltip",tt._intl.lastPageLabel)("matTooltipDisabled",tt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",tt._nextButtonsDisabled()),f.\u0275\u0275attribute("aria-label",tt._intl.lastPageLabel)}}let U=(()=>{class Dt{constructor(){this.changes=new i.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(tt,xt,Lt)=>{if(0==Lt||0==xt)return`0 of ${Lt}`;const Qe=tt*xt;return`${Qe+1} \u2013 ${Qe<(Lt=Math.max(Lt,0))?Math.min(Qe+xt,Lt):Qe+xt} of ${Lt}`}}}return Dt.\u0275fac=function(tt){return new(tt||Dt)},Dt.\u0275prov=f.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function Z(Dt){return Dt||new U}const _e={provide:U,deps:[[new f.Optional,new f.SkipSelf,U]],useFactory:Z};class $e{}const st=new f.InjectionToken("MAT_PAGINATOR_DEFAULT_OPTIONS"),ut=(0,_.mixinDisabled)((0,_.mixinInitialized)(class{}));let St=(()=>{class Dt extends ut{constructor(tt,xt,Lt){if(super(),this._intl=tt,this._changeDetectorRef=xt,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new f.EventEmitter,this._intlChanges=tt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Lt){const{pageSize:Qe,pageSizeOptions:gt,hidePageSize:Vt,showFirstLastButtons:qt}=Lt;null!=Qe&&(this._pageSize=Qe),null!=gt&&(this._pageSizeOptions=gt),null!=Vt&&(this._hidePageSize=Vt),null!=qt&&(this._showFirstLastButtons=qt)}}get pageIndex(){return this._pageIndex}set pageIndex(tt){this._pageIndex=Math.max((0,r.su)(tt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(tt){this._length=(0,r.su)(tt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(tt){this._pageSize=Math.max((0,r.su)(tt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(tt){this._pageSizeOptions=(tt||[]).map(xt=>(0,r.su)(xt)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(tt){this._hidePageSize=(0,r.Ig)(tt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(tt){this._showFirstLastButtons=(0,r.Ig)(tt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const tt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(tt)}previousPage(){if(!this.hasPreviousPage())return;const tt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(tt)}firstPage(){if(!this.hasPreviousPage())return;const tt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(tt)}lastPage(){if(!this.hasNextPage())return;const tt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(tt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const tt=this.getNumberOfPages()-1;return this.pageIndextt-xt),this._changeDetectorRef.markForCheck())}_emitPageEvent(tt){this.page.emit({previousPageIndex:tt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return Dt.\u0275fac=function(tt){f.\u0275\u0275invalidFactory()},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[f.\u0275\u0275InheritDefinitionFeature]}),Dt})(),Xt=(()=>{class Dt extends St{constructor(tt,xt,Lt){super(tt,xt,Lt),Lt&&null!=Lt.formFieldAppearance&&(this._formFieldAppearance=Lt.formFieldAppearance)}}return Dt.\u0275fac=function(tt){return new(tt||Dt)(f.\u0275\u0275directiveInject(U),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(st,8))},Dt.\u0275cmp=f.\u0275\u0275defineComponent({type:Dt,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[f.\u0275\u0275InheritDefinitionFeature],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(tt,xt){1&tt&&(f.\u0275\u0275elementStart(0,"div",0),f.\u0275\u0275elementStart(1,"div",1),f.\u0275\u0275template(2,fe,5,3,"div",2),f.\u0275\u0275elementStart(3,"div",3),f.\u0275\u0275elementStart(4,"div",4),f.\u0275\u0275text(5),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(6,H,3,5,"button",5),f.\u0275\u0275elementStart(7,"button",6),f.\u0275\u0275listener("click",function(){return xt.previousPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(8,"svg",7),f.\u0275\u0275element(9,"path",8),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275namespaceHTML(),f.\u0275\u0275elementStart(10,"button",9),f.\u0275\u0275listener("click",function(){return xt.nextPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(11,"svg",7),f.\u0275\u0275element(12,"path",10),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(13,T,3,5,"button",11),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&tt&&(f.\u0275\u0275advance(2),f.\u0275\u0275property("ngIf",!xt.hidePageSize),f.\u0275\u0275advance(3),f.\u0275\u0275textInterpolate1(" ",xt._intl.getRangeLabel(xt.pageIndex,xt.pageSize,xt.length)," "),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",xt.showFirstLastButtons),f.\u0275\u0275advance(1),f.\u0275\u0275property("matTooltip",xt._intl.previousPageLabel)("matTooltipDisabled",xt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",xt._previousButtonsDisabled()),f.\u0275\u0275attribute("aria-label",xt._intl.previousPageLabel),f.\u0275\u0275advance(3),f.\u0275\u0275property("matTooltip",xt._intl.nextPageLabel)("matTooltipDisabled",xt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",xt._nextButtonsDisabled()),f.\u0275\u0275attribute("aria-label",xt._intl.nextPageLabel),f.\u0275\u0275advance(3),f.\u0275\u0275property("ngIf",xt.showFirstLastButtons))},directives:[n.NgIf,m.MatButton,yt,Tt.MatFormField,s.MatSelect,n.NgForOf,_.MatOption],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),Dt})(),tn=(()=>{class Dt{}return Dt.\u0275fac=function(tt){return new(tt||Dt)},Dt.\u0275mod=f.\u0275\u0275defineNgModule({type:Dt}),Dt.\u0275inj=f.\u0275\u0275defineInjector({providers:[_e],imports:[[n.CommonModule,m.MatButtonModule,s.MatSelectModule,At,_.MatCommonModule]]}),Dt})()},773:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS:()=>b,MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY:()=>y,MatProgressSpinner:()=>I,MatProgressSpinnerModule:()=>M,MatSpinner:()=>R});var n=p(5e3),f=p(9808),_=p(508),m=p(3191),s=p(925),d=p(6360);function u(A,D){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const w=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("animation-name","mat-progress-spinner-stroke-rotate-"+w._spinnerAnimationLabel)("stroke-dashoffset",w._getStrokeDashOffset(),"px")("stroke-dasharray",w._getStrokeCircumference(),"px")("stroke-width",w._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",w._getCircleRadius())}}function h(A,D){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const w=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("stroke-dashoffset",w._getStrokeDashOffset(),"px")("stroke-dasharray",w._getStrokeCircumference(),"px")("stroke-width",w._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",w._getCircleRadius())}}function r(A,D){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const w=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("animation-name","mat-progress-spinner-stroke-rotate-"+w._spinnerAnimationLabel)("stroke-dashoffset",w._getStrokeDashOffset(),"px")("stroke-dasharray",w._getStrokeCircumference(),"px")("stroke-width",w._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",w._getCircleRadius())}}function o(A,D){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const w=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("stroke-dashoffset",w._getStrokeDashOffset(),"px")("stroke-dasharray",w._getStrokeCircumference(),"px")("stroke-width",w._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",w._getCircleRadius())}}const g=(0,_.mixinColor)(class{constructor(A){this._elementRef=A}},"primary"),b=new n.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:y});function y(){return{diameter:100}}class I extends g{constructor(D,w,x,C,L){super(D),this._document=x,this._diameter=100,this._value=0,this.mode="determinate";const F=I._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),F.has(x.head)||F.set(x.head,new Set([100])),this._noopAnimations="NoopAnimations"===C&&!!L&&!L._forceAnimations,L&&(L.diameter&&(this.diameter=L.diameter),L.strokeWidth&&(this.strokeWidth=L.strokeWidth))}get diameter(){return this._diameter}set diameter(D){this._diameter=(0,m.su)(D),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(D){this._strokeWidth=(0,m.su)(D)}get value(){return"determinate"===this.mode?this._value:0}set value(D){this._value=Math.max(0,Math.min(100,(0,m.su)(D)))}ngOnInit(){const D=this._elementRef.nativeElement;this._styleRoot=(0,s.kV)(D)||this._document.head,this._attachStyleNode(),D.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const D=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${D} ${D}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const D=this._styleRoot,w=this._diameter,x=I._diameters;let C=x.get(D);if(!C||!C.has(w)){const L=this._document.createElement("style");L.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),L.textContent=this._getAnimationText(),D.appendChild(L),C||(C=new Set,x.set(D,C)),C.add(w)}}_getAnimationText(){const D=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*D).replace(/END_VALUE/g,""+.2*D).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}I._diameters=new WeakMap,I.\u0275fac=function(D){return new(D||I)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(s.t4),n.\u0275\u0275directiveInject(f.DOCUMENT,8),n.\u0275\u0275directiveInject(d.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(b))},I.\u0275cmp=n.\u0275\u0275defineComponent({type:I,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(D,w){2&D&&(n.\u0275\u0275attribute("aria-valuemin","determinate"===w.mode?0:null)("aria-valuemax","determinate"===w.mode?100:null)("aria-valuenow","determinate"===w.mode?w.value:null)("mode",w.mode),n.\u0275\u0275styleProp("width",w.diameter,"px")("height",w.diameter,"px"),n.\u0275\u0275classProp("_mat-animation-noopable",w._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(D,w){1&D&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(0,"svg",0),n.\u0275\u0275template(1,u,1,9,"circle",1),n.\u0275\u0275template(2,h,1,7,"circle",2),n.\u0275\u0275elementEnd()),2&D&&(n.\u0275\u0275styleProp("width",w.diameter,"px")("height",w.diameter,"px"),n.\u0275\u0275property("ngSwitch","indeterminate"===w.mode),n.\u0275\u0275attribute("viewBox",w._getViewBox()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!0),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!1))},directives:[f.NgSwitch,f.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let R=(()=>{class A extends I{constructor(w,x,C,L,F){super(w,x,C,L,F),this.mode="indeterminate"}}return A.\u0275fac=function(w){return new(w||A)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(s.t4),n.\u0275\u0275directiveInject(f.DOCUMENT,8),n.\u0275\u0275directiveInject(d.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(b))},A.\u0275cmp=n.\u0275\u0275defineComponent({type:A,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(w,x){2&w&&(n.\u0275\u0275styleProp("width",x.diameter,"px")("height",x.diameter,"px"),n.\u0275\u0275classProp("_mat-animation-noopable",x._noopAnimations))},inputs:{color:"color"},features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(w,x){1&w&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(0,"svg",0),n.\u0275\u0275template(1,r,1,9,"circle",1),n.\u0275\u0275template(2,o,1,7,"circle",2),n.\u0275\u0275elementEnd()),2&w&&(n.\u0275\u0275styleProp("width",x.diameter,"px")("height",x.diameter,"px"),n.\u0275\u0275property("ngSwitch","indeterminate"===x.mode),n.\u0275\u0275attribute("viewBox",x._getViewBox()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!0),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!1))},directives:[f.NgSwitch,f.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),A})(),M=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=n.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=n.\u0275\u0275defineInjector({imports:[[_.MatCommonModule,f.CommonModule],_.MatCommonModule]}),A})()},9814:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_RADIO_DEFAULT_OPTIONS:()=>i,MAT_RADIO_DEFAULT_OPTIONS_FACTORY:()=>c,MAT_RADIO_GROUP:()=>y,MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR:()=>g,MatRadioButton:()=>D,MatRadioChange:()=>b,MatRadioGroup:()=>I,MatRadioModule:()=>w,_MatRadioButtonBase:()=>A,_MatRadioGroupBase:()=>S});var n=p(5e3),f=p(508),_=p(3191),m=p(3075),s=p(6360),d=p(5664),u=p(449);const h=["input"],r=function(x){return{enterDuration:x}},o=["*"],i=new n.InjectionToken("mat-radio-default-options",{providedIn:"root",factory:c});function c(){return{color:"accent"}}let l=0;const g={provide:m.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>I),multi:!0};class b{constructor(C,L){this.source=C,this.value=L}}const y=new n.InjectionToken("MatRadioGroup");let S=(()=>{class x{constructor(L){this._changeDetector=L,this._value=null,this._name="mat-radio-group-"+l++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.EventEmitter}get name(){return this._name}set name(L){this._name=L,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(L){this._labelPosition="before"===L?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(L){this._value!==L&&(this._value=L,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(L){this._selected=L,this.value=L?L.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(L){this._disabled=(0,_.Ig)(L),this._markRadiosForCheck()}get required(){return this._required}set required(L){this._required=(0,_.Ig)(L),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(L=>{L.name=this.name,L._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(F=>{F.checked=this.value===F.value,F.checked&&(this._selected=F)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new b(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(L=>L._markForCheck())}writeValue(L){this.value=L,this._changeDetector.markForCheck()}registerOnChange(L){this._controlValueAccessorChangeFn=L}registerOnTouched(L){this.onTouched=L}setDisabledState(L){this.disabled=L,this._changeDetector.markForCheck()}}return x.\u0275fac=function(L){return new(L||x)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),x})(),I=(()=>{class x extends S{}return x.\u0275fac=function(){let C;return function(F){return(C||(C=n.\u0275\u0275getInheritedFactory(x)))(F||x)}}(),x.\u0275dir=n.\u0275\u0275defineDirective({type:x,selectors:[["mat-radio-group"]],contentQueries:function(L,F,re){if(1&L&&n.\u0275\u0275contentQuery(re,D,5),2&L){let Y;n.\u0275\u0275queryRefresh(Y=n.\u0275\u0275loadQuery())&&(F._radios=Y)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n.\u0275\u0275ProvidersFeature([g,{provide:y,useExisting:x}]),n.\u0275\u0275InheritDefinitionFeature]}),x})();class R{constructor(C){this._elementRef=C}}const M=(0,f.mixinDisableRipple)((0,f.mixinTabIndex)(R));let A=(()=>{class x extends M{constructor(L,F,re,Y,X,ee,$,J){super(F),this._changeDetector=re,this._focusMonitor=Y,this._radioDispatcher=X,this._providerOverride=$,this._uniqueId="mat-radio-"+ ++l,this.id=this._uniqueId,this.change=new n.EventEmitter,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=L,this._noopAnimations="NoopAnimations"===ee,J&&(this.tabIndex=(0,_.su)(J,0)),this._removeUniqueSelectionListener=X.listen((ie,ne)=>{ie!==this.id&&ne===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(L){const F=(0,_.Ig)(L);this._checked!==F&&(this._checked=F,F&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!F&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),F&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(L){this._value!==L&&(this._value=L,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===L),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(L){this._labelPosition=L}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(L){this._setDisabled((0,_.Ig)(L))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(L){this._required=(0,_.Ig)(L)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(L){this._color=L}get inputId(){return`${this.id||this._uniqueId}-input`}focus(L,F){F?this._focusMonitor.focusVia(this._inputElement,F,L):this._inputElement.nativeElement.focus(L)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(L=>{!L&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new b(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(L){L.stopPropagation()}_onInputInteraction(L){if(L.stopPropagation(),!this.checked&&!this.disabled){const F=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),F&&this.radioGroup._emitChangeEvent())}}_setDisabled(L){this._disabled!==L&&(this._disabled=L,this._changeDetector.markForCheck())}}return x.\u0275fac=function(L){n.\u0275\u0275invalidFactory()},x.\u0275dir=n.\u0275\u0275defineDirective({type:x,viewQuery:function(L,F){if(1&L&&n.\u0275\u0275viewQuery(h,5),2&L){let re;n.\u0275\u0275queryRefresh(re=n.\u0275\u0275loadQuery())&&(F._inputElement=re.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[n.\u0275\u0275InheritDefinitionFeature]}),x})(),D=(()=>{class x extends A{constructor(L,F,re,Y,X,ee,$,J){super(L,F,re,Y,X,ee,$,J)}}return x.\u0275fac=function(L){return new(L||x)(n.\u0275\u0275directiveInject(y,8),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(d.tE),n.\u0275\u0275directiveInject(u.A8),n.\u0275\u0275directiveInject(s.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(i,8),n.\u0275\u0275injectAttribute("tabindex"))},x.\u0275cmp=n.\u0275\u0275defineComponent({type:x,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(L,F){1&L&&n.\u0275\u0275listener("focus",function(){return F._inputElement.nativeElement.focus()}),2&L&&(n.\u0275\u0275attribute("tabindex",null)("id",F.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.\u0275\u0275classProp("mat-radio-checked",F.checked)("mat-radio-disabled",F.disabled)("_mat-animation-noopable",F._noopAnimations)("mat-primary","primary"===F.color)("mat-accent","accent"===F.color)("mat-warn","warn"===F.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:o,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(L,F){if(1&L&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"label",0,1),n.\u0275\u0275elementStart(2,"span",2),n.\u0275\u0275element(3,"span",3),n.\u0275\u0275element(4,"span",4),n.\u0275\u0275elementStart(5,"input",5,6),n.\u0275\u0275listener("change",function(Y){return F._onInputInteraction(Y)})("click",function(Y){return F._onInputClick(Y)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(7,"span",7),n.\u0275\u0275element(8,"span",8),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"span",9),n.\u0275\u0275elementStart(10,"span",10),n.\u0275\u0275text(11,"\xa0"),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(12),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementEnd()),2&L){const re=n.\u0275\u0275reference(1);n.\u0275\u0275attribute("for",F.inputId),n.\u0275\u0275advance(5),n.\u0275\u0275property("id",F.inputId)("checked",F.checked)("disabled",F.disabled)("tabIndex",F.tabIndex)("required",F.required),n.\u0275\u0275attribute("name",F.name)("value",F.value)("aria-label",F.ariaLabel)("aria-labelledby",F.ariaLabelledby)("aria-describedby",F.ariaDescribedby),n.\u0275\u0275advance(2),n.\u0275\u0275property("matRippleTrigger",re)("matRippleDisabled",F._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.\u0275\u0275pureFunction1(18,r,F._noopAnimations?0:150)),n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-radio-label-before","before"==F.labelPosition)}},directives:[f.MatRipple],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),x})(),w=(()=>{class x{}return x.\u0275fac=function(L){return new(L||x)},x.\u0275mod=n.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatRippleModule,f.MatCommonModule],f.MatCommonModule]}),x})()},4107:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_SELECT_CONFIG:()=>vt,MAT_SELECT_SCROLL_STRATEGY:()=>at,MAT_SELECT_SCROLL_STRATEGY_PROVIDER:()=>yt,MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>pt,MAT_SELECT_TRIGGER:()=>At,MatSelect:()=>Et,MatSelectChange:()=>ot,MatSelectModule:()=>Ee,MatSelectTrigger:()=>Tt,_MatSelectBase:()=>Bt,matSelectAnimations:()=>J});var n=p(1314),f=p(9808),_=p(5e3),m=p(508),s=p(7322),d=p(9071),u=p(5664),h=p(3191),r=p(449),o=p(1159),i=p(3075),c=p(8929),l=p(8514),g=p(6787),b=p(1059),y=p(7545),S=p(2986),I=p(2198),R=p(4850),M=p(5778),A=p(7625),D=p(1777),w=p(226);const x=["trigger"],C=["panel"];function L(fe,H){if(1&fe&&(_.\u0275\u0275elementStart(0,"span",8),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&fe){const T=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(T.placeholder)}}function F(fe,H){if(1&fe&&(_.\u0275\u0275elementStart(0,"span",12),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&fe){const T=_.\u0275\u0275nextContext(2);_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(T.triggerValue)}}function re(fe,H){1&fe&&_.\u0275\u0275projection(0,0,["*ngSwitchCase","true"])}function Y(fe,H){if(1&fe&&(_.\u0275\u0275elementStart(0,"span",9),_.\u0275\u0275template(1,F,2,1,"span",10),_.\u0275\u0275template(2,re,1,0,"ng-content",11),_.\u0275\u0275elementEnd()),2&fe){const T=_.\u0275\u0275nextContext();_.\u0275\u0275property("ngSwitch",!!T.customTrigger),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngSwitchCase",!0)}}function X(fe,H){if(1&fe){const T=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",13),_.\u0275\u0275elementStart(1,"div",14,15),_.\u0275\u0275listener("@transformPanel.done",function(Z){return _.\u0275\u0275restoreView(T),_.\u0275\u0275nextContext()._panelDoneAnimatingStream.next(Z.toState)})("keydown",function(Z){return _.\u0275\u0275restoreView(T),_.\u0275\u0275nextContext()._handleKeydown(Z)}),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()}if(2&fe){const T=_.\u0275\u0275nextContext();_.\u0275\u0275property("@transformPanelWrap",void 0),_.\u0275\u0275advance(1),_.\u0275\u0275classMapInterpolate1("mat-select-panel ",T._getPanelTheme(),""),_.\u0275\u0275styleProp("transform-origin",T._transformOrigin)("font-size",T._triggerFontSize,"px"),_.\u0275\u0275property("ngClass",T.panelClass)("@transformPanel",T.multiple?"showing-multiple":"showing"),_.\u0275\u0275attribute("id",T.id+"-panel")("aria-multiselectable",T.multiple)("aria-label",T.ariaLabel||null)("aria-labelledby",T._getPanelAriaLabelledby())}}const ee=[[["mat-select-trigger"]],"*"],$=["mat-select-trigger","*"],J={transformPanelWrap:(0,D.X$)("transformPanelWrap",[(0,D.eR)("* => void",(0,D.IO)("@transformPanel",[(0,D.pV)()],{optional:!0}))]),transformPanel:(0,D.X$)("transformPanel",[(0,D.SB)("void",(0,D.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,D.SB)("showing",(0,D.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,D.SB)("showing-multiple",(0,D.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,D.eR)("void => *",(0,D.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,D.eR)("* => void",(0,D.jt)("100ms 25ms linear",(0,D.oB)({opacity:0})))])};let xe=0;const at=new _.InjectionToken("mat-select-scroll-strategy");function pt(fe){return()=>fe.scrollStrategies.reposition()}const vt=new _.InjectionToken("MAT_SELECT_CONFIG"),yt={provide:at,deps:[n.aV],useFactory:pt};class ot{constructor(H,T){this.source=H,this.value=T}}const _t=(0,m.mixinDisableRipple)((0,m.mixinTabIndex)((0,m.mixinDisabled)((0,m.mixinErrorState)(class{constructor(fe,H,T,U,Z){this._elementRef=fe,this._defaultErrorStateMatcher=H,this._parentForm=T,this._parentFormGroup=U,this.ngControl=Z}})))),At=new _.InjectionToken("MatSelectTrigger");let Tt=(()=>{class fe{}return fe.\u0275fac=function(T){return new(T||fe)},fe.\u0275dir=_.\u0275\u0275defineDirective({type:fe,selectors:[["mat-select-trigger"]],features:[_.\u0275\u0275ProvidersFeature([{provide:At,useExisting:fe}])]}),fe})(),Bt=(()=>{class fe extends _t{constructor(T,U,Z,_e,Be,$e,st,ut,St,Xt,tn,Dt,Kt,tt){var xt,Lt,Qe;super(Be,_e,st,ut,Xt),this._viewportRuler=T,this._changeDetectorRef=U,this._ngZone=Z,this._dir=$e,this._parentFormField=St,this._liveAnnouncer=Kt,this._defaultOptions=tt,this._panelOpen=!1,this._compareWith=(gt,Vt)=>gt===Vt,this._uid="mat-select-"+xe++,this._triggerAriaLabelledBy=null,this._destroy=new c.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+xe++,this._panelDoneAnimatingStream=new c.xQ,this._overlayPanelClass=(null===(xt=this._defaultOptions)||void 0===xt?void 0:xt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Qe=null===(Lt=this._defaultOptions)||void 0===Lt?void 0:Lt.disableOptionCentering)&&void 0!==Qe&&Qe,this.ariaLabel="",this.optionSelectionChanges=(0,l.P)(()=>{const gt=this.options;return gt?gt.changes.pipe((0,b.O)(gt),(0,y.w)(()=>(0,g.T)(...gt.map(Vt=>Vt.onSelectionChange)))):this._ngZone.onStable.pipe((0,S.q)(1),(0,y.w)(()=>this.optionSelectionChanges))}),this.openedChange=new _.EventEmitter,this._openedStream=this.openedChange.pipe((0,I.h)(gt=>gt),(0,R.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,I.h)(gt=>!gt),(0,R.U)(()=>{})),this.selectionChange=new _.EventEmitter,this.valueChange=new _.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==tt?void 0:tt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=tt.typeaheadDebounceInterval),this._scrollStrategyFactory=Dt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(tn)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(T){this._placeholder=T,this.stateChanges.next()}get required(){var T,U,Z,_e;return null!==(_e=null!==(T=this._required)&&void 0!==T?T:null===(Z=null===(U=this.ngControl)||void 0===U?void 0:U.control)||void 0===Z?void 0:Z.hasValidator(i.Validators.required))&&void 0!==_e&&_e}set required(T){this._required=(0,h.Ig)(T),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(T){this._multiple=(0,h.Ig)(T)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(T){this._disableOptionCentering=(0,h.Ig)(T)}get compareWith(){return this._compareWith}set compareWith(T){this._compareWith=T,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(T){(T!==this._value||this._multiple&&Array.isArray(T))&&(this.options&&this._setSelectionByValue(T),this._value=T)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(T){this._typeaheadDebounceInterval=(0,h.su)(T)}get id(){return this._id}set id(T){this._id=T||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new r.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,M.x)(),(0,A.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,A.R)(this._destroy)).subscribe(T=>{T.added.forEach(U=>U.select()),T.removed.forEach(U=>U.deselect())}),this.options.changes.pipe((0,b.O)(null),(0,A.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const T=this._getTriggerAriaLabelledby();if(T!==this._triggerAriaLabelledBy){const U=this._elementRef.nativeElement;this._triggerAriaLabelledBy=T,T?U.setAttribute("aria-labelledby",T):U.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(T){T.disabled&&this.stateChanges.next(),T.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(T){this.value=T}registerOnChange(T){this._onChange=T}registerOnTouched(T){this._onTouched=T}setDisabledState(T){this.disabled=T,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var T,U;return this.multiple?(null===(T=this._selectionModel)||void 0===T?void 0:T.selected)||[]:null===(U=this._selectionModel)||void 0===U?void 0:U.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const T=this._selectionModel.selected.map(U=>U.viewValue);return this._isRtl()&&T.reverse(),T.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(T){this.disabled||(this.panelOpen?this._handleOpenKeydown(T):this._handleClosedKeydown(T))}_handleClosedKeydown(T){const U=T.keyCode,Z=U===o.JH||U===o.LH||U===o.oh||U===o.SV,_e=U===o.K5||U===o.L_,Be=this._keyManager;if(!Be.isTyping()&&_e&&!(0,o.Vb)(T)||(this.multiple||T.altKey)&&Z)T.preventDefault(),this.open();else if(!this.multiple){const $e=this.selected;Be.onKeydown(T);const st=this.selected;st&&$e!==st&&this._liveAnnouncer.announce(st.viewValue,1e4)}}_handleOpenKeydown(T){const U=this._keyManager,Z=T.keyCode,_e=Z===o.JH||Z===o.LH,Be=U.isTyping();if(_e&&T.altKey)T.preventDefault(),this.close();else if(Be||Z!==o.K5&&Z!==o.L_||!U.activeItem||(0,o.Vb)(T))if(!Be&&this._multiple&&Z===o.A&&T.ctrlKey){T.preventDefault();const $e=this.options.some(st=>!st.disabled&&!st.selected);this.options.forEach(st=>{st.disabled||($e?st.select():st.deselect())})}else{const $e=U.activeItemIndex;U.onKeydown(T),this._multiple&&_e&&T.shiftKey&&U.activeItem&&U.activeItemIndex!==$e&&U.activeItem._selectViaInteraction()}else T.preventDefault(),U.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,S.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(T){if(this._selectionModel.selected.forEach(U=>U.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&T)Array.isArray(T),T.forEach(U=>this._selectValue(U)),this._sortValues();else{const U=this._selectValue(T);U?this._keyManager.updateActiveItem(U):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(T){const U=this.options.find(Z=>{if(this._selectionModel.isSelected(Z))return!1;try{return null!=Z.value&&this._compareWith(Z.value,T)}catch(_e){return!1}});return U&&this._selectionModel.select(U),U}_initKeyManager(){this._keyManager=new u.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,A.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,A.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const T=(0,g.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,A.R)(T)).subscribe(U=>{this._onSelect(U.source,U.isUserInput),U.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,g.T)(...this.options.map(U=>U._stateChanges)).pipe((0,A.R)(T)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(T,U){const Z=this._selectionModel.isSelected(T);null!=T.value||this._multiple?(Z!==T.selected&&(T.selected?this._selectionModel.select(T):this._selectionModel.deselect(T)),U&&this._keyManager.setActiveItem(T),this.multiple&&(this._sortValues(),U&&this.focus())):(T.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(T.value)),Z!==this._selectionModel.isSelected(T)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const T=this.options.toArray();this._selectionModel.sort((U,Z)=>this.sortComparator?this.sortComparator(U,Z,T):T.indexOf(U)-T.indexOf(Z)),this.stateChanges.next()}}_propagateChanges(T){let U=null;U=this.multiple?this.selected.map(Z=>Z.value):this.selected?this.selected.value:T,this._value=U,this.valueChange.emit(U),this._onChange(U),this.selectionChange.emit(this._getChangeEvent(U)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var T;return!this._panelOpen&&!this.disabled&&(null===(T=this.options)||void 0===T?void 0:T.length)>0}focus(T){this._elementRef.nativeElement.focus(T)}_getPanelAriaLabelledby(){var T;if(this.ariaLabel)return null;const U=null===(T=this._parentFormField)||void 0===T?void 0:T.getLabelId();return this.ariaLabelledby?(U?U+" ":"")+this.ariaLabelledby:U}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var T;if(this.ariaLabel)return null;const U=null===(T=this._parentFormField)||void 0===T?void 0:T.getLabelId();let Z=(U?U+" ":"")+this._valueId;return this.ariaLabelledby&&(Z+=" "+this.ariaLabelledby),Z}_panelDoneAnimating(T){this.openedChange.emit(T)}setDescribedByIds(T){this._ariaDescribedby=T.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return fe.\u0275fac=function(T){return new(T||fe)(_.\u0275\u0275directiveInject(d.rL),_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(m.ErrorStateMatcher),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(w.Is,8),_.\u0275\u0275directiveInject(i.NgForm,8),_.\u0275\u0275directiveInject(i.FormGroupDirective,8),_.\u0275\u0275directiveInject(s.MAT_FORM_FIELD,8),_.\u0275\u0275directiveInject(i.NgControl,10),_.\u0275\u0275injectAttribute("tabindex"),_.\u0275\u0275directiveInject(at),_.\u0275\u0275directiveInject(u.Kd),_.\u0275\u0275directiveInject(vt,8))},fe.\u0275dir=_.\u0275\u0275defineDirective({type:fe,viewQuery:function(T,U){if(1&T&&(_.\u0275\u0275viewQuery(x,5),_.\u0275\u0275viewQuery(C,5),_.\u0275\u0275viewQuery(n.pI,5)),2&T){let Z;_.\u0275\u0275queryRefresh(Z=_.\u0275\u0275loadQuery())&&(U.trigger=Z.first),_.\u0275\u0275queryRefresh(Z=_.\u0275\u0275loadQuery())&&(U.panel=Z.first),_.\u0275\u0275queryRefresh(Z=_.\u0275\u0275loadQuery())&&(U._overlayDir=Z.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275NgOnChangesFeature]}),fe})(),Et=(()=>{class fe extends Bt{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(T,U,Z){const _e=this._getItemHeight();return Math.min(Math.max(0,_e*T-U+_e/2),Z)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,A.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(T){const U=(0,m._countGroupLabelsBeforeOption)(T,this.options,this.optionGroups),Z=this._getItemHeight();this.panel.nativeElement.scrollTop=0===T&&1===U?0:(0,m._getOptionScrollPosition)((T+U)*Z,Z,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(T){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(T)}_getChangeEvent(T){return new ot(this,T)}_calculateOverlayOffsetX(){const T=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),U=this._viewportRuler.getViewportSize(),Z=this._isRtl(),_e=this.multiple?56:32;let Be;if(this.multiple)Be=40;else if(this.disableOptionCentering)Be=16;else{let ut=this._selectionModel.selected[0]||this.options.first;Be=ut&&ut.group?32:16}Z||(Be*=-1);const $e=0-(T.left+Be-(Z?_e:0)),st=T.right+Be-U.width+(Z?0:_e);$e>0?Be+=$e+8:st>0&&(Be-=st+8),this._overlayDir.offsetX=Math.round(Be),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(T,U,Z){const _e=this._getItemHeight(),Be=(_e-this._triggerRect.height)/2,$e=Math.floor(256/_e);let st;return this.disableOptionCentering?0:(st=0===this._scrollTop?T*_e:this._scrollTop===Z?(T-(this._getItemCount()-$e))*_e+(_e-(this._getItemCount()*_e-256)%_e):U-_e/2,Math.round(-1*st-Be))}_checkOverlayWithinViewport(T){const U=this._getItemHeight(),Z=this._viewportRuler.getViewportSize(),_e=this._triggerRect.top-8,Be=Z.height-this._triggerRect.bottom-8,$e=Math.abs(this._offsetY),ut=Math.min(this._getItemCount()*U,256)-$e-this._triggerRect.height;ut>Be?this._adjustPanelUp(ut,Be):$e>_e?this._adjustPanelDown($e,_e,T):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(T,U){const Z=Math.round(T-U);this._scrollTop-=Z,this._offsetY-=Z,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(T,U,Z){const _e=Math.round(T-U);if(this._scrollTop+=_e,this._offsetY+=_e,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Z)return this._scrollTop=Z,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const T=this._getItemHeight(),U=this._getItemCount(),Z=Math.min(U*T,256),Be=U*T-Z;let $e;$e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),$e+=(0,m._countGroupLabelsBeforeOption)($e,this.options,this.optionGroups);const st=Z/2;this._scrollTop=this._calculateOverlayScroll($e,st,Be),this._offsetY=this._calculateOverlayOffsetY($e,st,Be),this._checkOverlayWithinViewport(Be)}_getOriginBasedOnOption(){const T=this._getItemHeight(),U=(T-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-U+T/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return fe.\u0275fac=function(){let H;return function(U){return(H||(H=_.\u0275\u0275getInheritedFactory(fe)))(U||fe)}}(),fe.\u0275cmp=_.\u0275\u0275defineComponent({type:fe,selectors:[["mat-select"]],contentQueries:function(T,U,Z){if(1&T&&(_.\u0275\u0275contentQuery(Z,At,5),_.\u0275\u0275contentQuery(Z,m.MatOption,5),_.\u0275\u0275contentQuery(Z,m.MAT_OPTGROUP,5)),2&T){let _e;_.\u0275\u0275queryRefresh(_e=_.\u0275\u0275loadQuery())&&(U.customTrigger=_e.first),_.\u0275\u0275queryRefresh(_e=_.\u0275\u0275loadQuery())&&(U.options=_e),_.\u0275\u0275queryRefresh(_e=_.\u0275\u0275loadQuery())&&(U.optionGroups=_e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(T,U){1&T&&_.\u0275\u0275listener("keydown",function(_e){return U._handleKeydown(_e)})("focus",function(){return U._onFocus()})("blur",function(){return U._onBlur()}),2&T&&(_.\u0275\u0275attribute("id",U.id)("tabindex",U.tabIndex)("aria-controls",U.panelOpen?U.id+"-panel":null)("aria-expanded",U.panelOpen)("aria-label",U.ariaLabel||null)("aria-required",U.required.toString())("aria-disabled",U.disabled.toString())("aria-invalid",U.errorState)("aria-describedby",U._ariaDescribedby||null)("aria-activedescendant",U._getAriaActiveDescendant()),_.\u0275\u0275classProp("mat-select-disabled",U.disabled)("mat-select-invalid",U.errorState)("mat-select-required",U.required)("mat-select-empty",U.empty)("mat-select-multiple",U.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[_.\u0275\u0275ProvidersFeature([{provide:s.MatFormFieldControl,useExisting:fe},{provide:m.MAT_OPTION_PARENT_COMPONENT,useExisting:fe}]),_.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(T,U){if(1&T&&(_.\u0275\u0275projectionDef(ee),_.\u0275\u0275elementStart(0,"div",0,1),_.\u0275\u0275listener("click",function(){return U.toggle()}),_.\u0275\u0275elementStart(3,"div",2),_.\u0275\u0275template(4,L,2,1,"span",3),_.\u0275\u0275template(5,Y,3,2,"span",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(6,"div",5),_.\u0275\u0275element(7,"div",6),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(8,X,4,14,"ng-template",7),_.\u0275\u0275listener("backdropClick",function(){return U.close()})("attach",function(){return U._onAttached()})("detach",function(){return U.close()})),2&T){const Z=_.\u0275\u0275reference(1);_.\u0275\u0275attribute("aria-owns",U.panelOpen?U.id+"-panel":null),_.\u0275\u0275advance(3),_.\u0275\u0275property("ngSwitch",U.empty),_.\u0275\u0275attribute("id",U._valueId),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",!1),_.\u0275\u0275advance(3),_.\u0275\u0275property("cdkConnectedOverlayPanelClass",U._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",U._scrollStrategy)("cdkConnectedOverlayOrigin",Z)("cdkConnectedOverlayOpen",U.panelOpen)("cdkConnectedOverlayPositions",U._positions)("cdkConnectedOverlayMinWidth",null==U._triggerRect?null:U._triggerRect.width)("cdkConnectedOverlayOffsetY",U._offsetY)}},directives:[n.xu,f.NgSwitch,f.NgSwitchCase,n.pI,f.NgSwitchDefault,f.NgClass],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[J.transformPanelWrap,J.transformPanel]},changeDetection:0}),fe})(),Ee=(()=>{class fe{}return fe.\u0275fac=function(T){return new(T||fe)},fe.\u0275mod=_.\u0275\u0275defineNgModule({type:fe}),fe.\u0275inj=_.\u0275\u0275defineInjector({providers:[yt],imports:[[f.CommonModule,n.U8,m.MatOptionModule,m.MatCommonModule],d.ZD,s.MatFormFieldModule,m.MatOptionModule,m.MatCommonModule]}),fe})()},2368:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS:()=>l,MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR:()=>R,MAT_SLIDE_TOGGLE_VALUE_ACCESSOR:()=>b,MatSlideToggle:()=>I,MatSlideToggleChange:()=>y,MatSlideToggleModule:()=>D,MatSlideToggleRequiredValidator:()=>M,_MatSlideToggleRequiredValidatorModule:()=>A});var n=p(7144),f=p(5e3),_=p(508),m=p(3191),s=p(3075),d=p(6360),u=p(5664);const h=["thumbContainer"],r=["toggleBar"],o=["input"],i=function(w){return{enterDuration:w}},c=["*"],l=new f.InjectionToken("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let g=0;const b={provide:s.NG_VALUE_ACCESSOR,useExisting:(0,f.forwardRef)(()=>I),multi:!0};class y{constructor(x,C){this.source=x,this.checked=C}}const S=(0,_.mixinTabIndex)((0,_.mixinColor)((0,_.mixinDisableRipple)((0,_.mixinDisabled)(class{constructor(w){this._elementRef=w}}))));let I=(()=>{class w extends S{constructor(C,L,F,re,Y,X){super(C),this._focusMonitor=L,this._changeDetectorRef=F,this.defaults=Y,this._onChange=ee=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++g,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new f.EventEmitter,this.toggleChange=new f.EventEmitter,this.tabIndex=parseInt(re)||0,this.color=this.defaultColor=Y.color||"accent",this._noopAnimations="NoopAnimations"===X}get required(){return this._required}set required(C){this._required=(0,m.Ig)(C)}get checked(){return this._checked}set checked(C){this._checked=(0,m.Ig)(C),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(C=>{C||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(C){C.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(C){C.stopPropagation()}writeValue(C){this.checked=!!C}registerOnChange(C){this._onChange=C}registerOnTouched(C){this._onTouched=C}setDisabledState(C){this.disabled=C,this._changeDetectorRef.markForCheck()}focus(C,L){L?this._focusMonitor.focusVia(this._inputElement,L,C):this._inputElement.nativeElement.focus(C)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new y(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return w.\u0275fac=function(C){return new(C||w)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(u.tE),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275injectAttribute("tabindex"),f.\u0275\u0275directiveInject(l),f.\u0275\u0275directiveInject(d.ANIMATION_MODULE_TYPE,8))},w.\u0275cmp=f.\u0275\u0275defineComponent({type:w,selectors:[["mat-slide-toggle"]],viewQuery:function(C,L){if(1&C&&(f.\u0275\u0275viewQuery(h,5),f.\u0275\u0275viewQuery(r,5),f.\u0275\u0275viewQuery(o,5)),2&C){let F;f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._thumbEl=F.first),f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._thumbBarEl=F.first),f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._inputElement=F.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(C,L){2&C&&(f.\u0275\u0275hostProperty("id",L.id),f.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null),f.\u0275\u0275classProp("mat-checked",L.checked)("mat-disabled",L.disabled)("mat-slide-toggle-label-before","before"==L.labelPosition)("_mat-animation-noopable",L._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[f.\u0275\u0275ProvidersFeature([b]),f.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:c,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(C,L){if(1&C&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"label",0,1),f.\u0275\u0275elementStart(2,"div",2,3),f.\u0275\u0275elementStart(4,"input",4,5),f.\u0275\u0275listener("change",function(re){return L._onChangeEvent(re)})("click",function(re){return L._onInputClick(re)}),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(6,"div",6,7),f.\u0275\u0275element(8,"div",8),f.\u0275\u0275elementStart(9,"div",9),f.\u0275\u0275element(10,"div",10),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(11,"span",11,12),f.\u0275\u0275listener("cdkObserveContent",function(){return L._onLabelTextChange()}),f.\u0275\u0275elementStart(13,"span",13),f.\u0275\u0275text(14,"\xa0"),f.\u0275\u0275elementEnd(),f.\u0275\u0275projection(15),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&C){const F=f.\u0275\u0275reference(1),re=f.\u0275\u0275reference(12);f.\u0275\u0275attribute("for",L.inputId),f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-slide-toggle-bar-no-side-margin",!re.textContent||!re.textContent.trim()),f.\u0275\u0275advance(2),f.\u0275\u0275property("id",L.inputId)("required",L.required)("tabIndex",L.tabIndex)("checked",L.checked)("disabled",L.disabled),f.\u0275\u0275attribute("name",L.name)("aria-checked",L.checked.toString())("aria-label",L.ariaLabel)("aria-labelledby",L.ariaLabelledby)("aria-describedby",L.ariaDescribedby),f.\u0275\u0275advance(5),f.\u0275\u0275property("matRippleTrigger",F)("matRippleDisabled",L.disableRipple||L.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",f.\u0275\u0275pureFunction1(18,i,L._noopAnimations?0:150))}},directives:[_.MatRipple,n.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),w})();const R={provide:s.NG_VALIDATORS,useExisting:(0,f.forwardRef)(()=>M),multi:!0};let M=(()=>{class w extends s.CheckboxRequiredValidator{}return w.\u0275fac=function(){let x;return function(L){return(x||(x=f.\u0275\u0275getInheritedFactory(w)))(L||w)}}(),w.\u0275dir=f.\u0275\u0275defineDirective({type:w,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[f.\u0275\u0275ProvidersFeature([R]),f.\u0275\u0275InheritDefinitionFeature]}),w})(),A=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=f.\u0275\u0275defineNgModule({type:w}),w.\u0275inj=f.\u0275\u0275defineInjector({}),w})(),D=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=f.\u0275\u0275defineNgModule({type:w}),w.\u0275inj=f.\u0275\u0275defineInjector({imports:[[A,_.MatRippleModule,_.MatCommonModule,n.Q8],A,_.MatCommonModule]}),w})()},8029:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_SLIDER_VALUE_ACCESSOR:()=>I,MatSlider:()=>A,MatSliderChange:()=>R,MatSliderModule:()=>L});var n=p(9808),f=p(5e3),_=p(508),m=p(3191),s=p(1159),d=p(3075),u=p(6360),h=p(925),r=p(2654),o=p(5664),i=p(226);const c=["sliderWrapper"],l=(0,h.i$)({passive:!1}),I={provide:d.NG_VALUE_ACCESSOR,useExisting:(0,f.forwardRef)(()=>A),multi:!0};class R{}const M=(0,_.mixinTabIndex)((0,_.mixinColor)((0,_.mixinDisabled)(class{constructor(F){this._elementRef=F}}),"accent"));let A=(()=>{class F extends M{constructor(Y,X,ee,$,J,ie,ne,ae){super(Y),this._focusMonitor=X,this._changeDetectorRef=ee,this._dir=$,this._ngZone=ie,this._animationMode=ae,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new f.EventEmitter,this.input=new f.EventEmitter,this.valueChange=new f.EventEmitter,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=r.w.EMPTY,this._pointerDown=xe=>{this.disabled||this._isSliding||!D(xe)&&0!==xe.button||this._ngZone.run(()=>{this._touchId=D(xe)?function(F,re){for(let Y=0;Y{if("pointer"===this._isSliding){const Ie=w(xe,this._touchId);if(Ie){xe.preventDefault();const We=this.value;this._lastPointerEvent=xe,this._updateValueFromPosition(Ie),We!=this.value&&this._emitInputEvent()}}},this._pointerUp=xe=>{"pointer"===this._isSliding&&(!D(xe)||"number"!=typeof this._touchId||x(xe.changedTouches,this._touchId))&&(xe.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=ne,this.tabIndex=parseInt(J)||0,ie.runOutsideAngular(()=>{const xe=Y.nativeElement;xe.addEventListener("mousedown",this._pointerDown,l),xe.addEventListener("touchstart",this._pointerDown,l)})}get invert(){return this._invert}set invert(Y){this._invert=(0,m.Ig)(Y)}get max(){return this._max}set max(Y){this._max=(0,m.su)(Y,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(Y){this._min=(0,m.su)(Y,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(Y){this._step=(0,m.su)(Y,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(Y){this._thumbLabel=(0,m.Ig)(Y)}get tickInterval(){return this._tickInterval}set tickInterval(Y){this._tickInterval="auto"===Y?"auto":"number"==typeof Y||"string"==typeof Y?(0,m.su)(Y,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(Y){if(Y!==this._value){let X=(0,m.su)(Y,0);this._roundToDecimal&&X!==this.min&&X!==this.max&&(X=parseFloat(X.toFixed(this._roundToDecimal))),this._value=X,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(Y){this._vertical=(0,m.Ig)(Y)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(Y){this._focusHostElement(Y)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const X=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${X})`}}_getTrackFillStyles(){const Y=this.percent,ee=this.vertical?`1, ${Y}, 1`:`${Y}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${ee})`,display:0===Y?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let Y=100*this._tickIntervalPercent,ie={backgroundSize:this.vertical?`2px ${Y}%`:`${Y}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${Y/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const ne=this._shouldInvertAxis();let ae;ae=this.vertical?ne?"Bottom":"Top":ne?"Right":"Left",ie[`padding${ae}`]=`${this._getThumbGap()}px`}return ie}_getThumbContainerStyles(){const Y=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?Y:!Y)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const Y=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?Y:!Y}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Y=>{this._isActive=!!Y&&"keyboard"!==Y,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const Y=this._elementRef.nativeElement;Y.removeEventListener("mousedown",this._pointerDown,l),Y.removeEventListener("touchstart",this._pointerDown,l),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(Y){if(this.disabled||(0,s.Vb)(Y)||this._isSliding&&"keyboard"!==this._isSliding)return;const X=this.value;switch(Y.keyCode){case s.Ku:this._increment(10);break;case s.VM:this._increment(-10);break;case s.uR:this.value=this.max;break;case s.Sd:this.value=this.min;break;case s.oh:this._increment("rtl"==this._getDirection()?1:-1);break;case s.LH:this._increment(1);break;case s.SV:this._increment("rtl"==this._getDirection()?-1:1);break;case s.JH:this._increment(-1);break;default:return}X!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",Y.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(Y){const X=this._document,ee=D(Y),J=ee?"touchend":"mouseup";X.addEventListener(ee?"touchmove":"mousemove",this._pointerMove,l),X.addEventListener(J,this._pointerUp,l),ee&&X.addEventListener("touchcancel",this._pointerUp,l);const ie=this._getWindow();void 0!==ie&&ie&&ie.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const Y=this._document;Y.removeEventListener("mousemove",this._pointerMove,l),Y.removeEventListener("mouseup",this._pointerUp,l),Y.removeEventListener("touchmove",this._pointerMove,l),Y.removeEventListener("touchend",this._pointerUp,l),Y.removeEventListener("touchcancel",this._pointerUp,l);const X=this._getWindow();void 0!==X&&X&&X.removeEventListener("blur",this._windowBlur)}_increment(Y){this.value=this._clamp((this.value||0)+this.step*Y,this.min,this.max)}_updateValueFromPosition(Y){if(!this._sliderDimensions)return;let J=this._clamp(((this.vertical?Y.y:Y.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(J=1-J),0===J)this.value=this.min;else if(1===J)this.value=this.max;else{const ie=this._calculateValue(J),ne=Math.round((ie-this.min)/this.step)*this.step+this.min;this.value=this._clamp(ne,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let Y=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,$=Math.ceil(30/(Y*this.step/(this.max-this.min)))*this.step;this._tickIntervalPercent=$/Y}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(Y=this.value){let X=new R;return X.source=this,X.value=Y,X}_calculatePercentage(Y){return((Y||0)-this.min)/(this.max-this.min)}_calculateValue(Y){return this.min+Y*(this.max-this.min)}_clamp(Y,X=0,ee=1){return Math.max(X,Math.min(Y,ee))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(Y){this._elementRef.nativeElement.focus(Y)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(Y){this.value=Y}registerOnChange(Y){this._controlValueAccessorChangeFn=Y}registerOnTouched(Y){this.onTouched=Y}setDisabledState(Y){this.disabled=Y}}return F.\u0275fac=function(Y){return new(Y||F)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(o.tE),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(i.Is,8),f.\u0275\u0275injectAttribute("tabindex"),f.\u0275\u0275directiveInject(f.NgZone),f.\u0275\u0275directiveInject(n.DOCUMENT),f.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},F.\u0275cmp=f.\u0275\u0275defineComponent({type:F,selectors:[["mat-slider"]],viewQuery:function(Y,X){if(1&Y&&f.\u0275\u0275viewQuery(c,5),2&Y){let ee;f.\u0275\u0275queryRefresh(ee=f.\u0275\u0275loadQuery())&&(X._sliderWrapper=ee.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(Y,X){1&Y&&f.\u0275\u0275listener("focus",function(){return X._onFocus()})("blur",function(){return X._onBlur()})("keydown",function($){return X._onKeydown($)})("keyup",function(){return X._onKeyup()})("mouseenter",function(){return X._onMouseenter()})("selectstart",function($){return $.preventDefault()}),2&Y&&(f.\u0275\u0275hostProperty("tabIndex",X.tabIndex),f.\u0275\u0275attribute("aria-disabled",X.disabled)("aria-valuemax",X.max)("aria-valuemin",X.min)("aria-valuenow",X.value)("aria-valuetext",null==X.valueText?X.displayValue:X.valueText)("aria-orientation",X.vertical?"vertical":"horizontal"),f.\u0275\u0275classProp("mat-slider-disabled",X.disabled)("mat-slider-has-ticks",X.tickInterval)("mat-slider-horizontal",!X.vertical)("mat-slider-axis-inverted",X._shouldInvertAxis())("mat-slider-invert-mouse-coords",X._shouldInvertMouseCoords())("mat-slider-sliding",X._isSliding)("mat-slider-thumb-label-showing",X.thumbLabel)("mat-slider-vertical",X.vertical)("mat-slider-min-value",X._isMinValue())("mat-slider-hide-last-tick",X.disabled||X._isMinValue()&&X._getThumbGap()&&X._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===X._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[f.\u0275\u0275ProvidersFeature([I]),f.\u0275\u0275InheritDefinitionFeature],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(Y,X){1&Y&&(f.\u0275\u0275elementStart(0,"div",0,1),f.\u0275\u0275elementStart(2,"div",2),f.\u0275\u0275element(3,"div",3),f.\u0275\u0275element(4,"div",4),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(5,"div",5),f.\u0275\u0275element(6,"div",6),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(7,"div",7),f.\u0275\u0275element(8,"div",8),f.\u0275\u0275element(9,"div",9),f.\u0275\u0275elementStart(10,"div",10),f.\u0275\u0275elementStart(11,"span",11),f.\u0275\u0275text(12),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&Y&&(f.\u0275\u0275advance(3),f.\u0275\u0275property("ngStyle",X._getTrackBackgroundStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",X._getTrackFillStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",X._getTicksContainerStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",X._getTicksStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",X._getThumbContainerStyles()),f.\u0275\u0275advance(5),f.\u0275\u0275textInterpolate(X.displayValue))},directives:[n.NgStyle],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),F})();function D(F){return"t"===F.type[0]}function w(F,re){let Y;return Y=D(F)?"number"==typeof re?x(F.touches,re)||x(F.changedTouches,re):F.touches[0]||F.changedTouches[0]:F,Y?{x:Y.clientX,y:Y.clientY}:void 0}function x(F,re){for(let Y=0;Y{class F{}return F.\u0275fac=function(Y){return new(Y||F)},F.\u0275mod=f.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=f.\u0275\u0275defineInjector({imports:[[n.CommonModule,_.MatCommonModule],_.MatCommonModule]}),F})()},6346:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MatCell:()=>He,MatCellDef:()=>It,MatColumnDef:()=>An,MatFooterCell:()=>ct,MatFooterCellDef:()=>cn,MatFooterRow:()=>On,MatFooterRowDef:()=>Ot,MatHeaderCell:()=>lt,MatHeaderCellDef:()=>Qt,MatHeaderRow:()=>on,MatHeaderRowDef:()=>mt,MatNoDataRow:()=>ji,MatRecycleRows:()=>Me,MatRow:()=>Yn,MatRowDef:()=>un,MatTable:()=>Ke,MatTableDataSource:()=>ci,MatTableModule:()=>Ti,MatTextColumn:()=>Oi,_MatTableDataSource:()=>Vi});var n=p(5e3),f=p(3191),_=p(449),m=p(9808),s=p(8929),d=p(5254),u=p(591),h=p(6498),o=p(1086),i=p(7625),c=p(2986),l=p(226),g=p(925),b=p(9071);const y=[[["caption"]],[["colgroup"],["col"]]],S=["caption","colgroup, col"];function I(Ae,qe){if(1&Ae&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Ae){const ue=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",ue.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",ue.headerText," ")}}function R(Ae,qe){if(1&Ae&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Ae){const ue=qe.$implicit,Le=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Le.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Le.dataAccessor(ue,Le.name)," ")}}function M(Ae){return class extends Ae{constructor(...qe){super(...qe),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(qe){const ue=this._sticky;this._sticky=(0,f.Ig)(qe),this._hasStickyChanged=ue!==this._sticky}hasStickyChanged(){const qe=this._hasStickyChanged;return this._hasStickyChanged=!1,qe}resetStickyChanged(){this._hasStickyChanged=!1}}}const A=new n.InjectionToken("CDK_TABLE"),D=new n.InjectionToken("text-column-options");let w=(()=>{class Ae{constructor(ue){this.template=ue}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.TemplateRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","cdkCellDef",""]]}),Ae})(),x=(()=>{class Ae{constructor(ue){this.template=ue}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.TemplateRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","cdkHeaderCellDef",""]]}),Ae})(),C=(()=>{class Ae{constructor(ue){this.template=ue}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.TemplateRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","cdkFooterCellDef",""]]}),Ae})();class L{}const F=M(L);let re=(()=>{class Ae extends F{constructor(ue){super(),this._table=ue,this._stickyEnd=!1}get name(){return this._name}set name(ue){this._setNameInput(ue)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ue){const Le=this._stickyEnd;this._stickyEnd=(0,f.Ig)(ue),this._hasStickyChanged=Le!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ue){ue&&(this._name=ue,this.cssClassFriendlyName=ue.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(A,8))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","cdkColumnDef",""]],contentQueries:function(ue,Le,B){if(1&ue&&(n.\u0275\u0275contentQuery(B,w,5),n.\u0275\u0275contentQuery(B,x,5),n.\u0275\u0275contentQuery(B,C,5)),2&ue){let de;n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Le.cell=de.first),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Le.headerCell=de.first),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Le.footerCell=de.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature]}),Ae})();class Y{constructor(qe,ue){const Le=ue.nativeElement.classList;for(const B of qe._columnCssClassName)Le.add(B)}}let X=(()=>{class Ae extends Y{constructor(ue,Le){super(ue,Le)}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(re),n.\u0275\u0275directiveInject(n.ElementRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),ee=(()=>{class Ae extends Y{constructor(ue,Le){var B;if(super(ue,Le),1===(null===(B=ue._table)||void 0===B?void 0:B._elementRef.nativeElement.nodeType)){const de=ue._table._elementRef.nativeElement.getAttribute("role");Le.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(re),n.\u0275\u0275directiveInject(n.ElementRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),$=(()=>{class Ae extends Y{constructor(ue,Le){var B;if(super(ue,Le),1===(null===(B=ue._table)||void 0===B?void 0:B._elementRef.nativeElement.nodeType)){const de=ue._table._elementRef.nativeElement.getAttribute("role");Le.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(re),n.\u0275\u0275directiveInject(n.ElementRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),Ae})();class J{constructor(){this.tasks=[],this.endTasks=[]}}const ie=new n.InjectionToken("_COALESCED_STYLE_SCHEDULER");let ne=(()=>{class Ae{constructor(ue){this._ngZone=ue,this._currentSchedule=null,this._destroyed=new s.xQ}schedule(ue){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ue)}scheduleEnd(ue){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ue)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new J,this._getScheduleObservable().pipe((0,i.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ue=this._currentSchedule;this._currentSchedule=new J;for(const Le of ue.tasks)Le();for(const Le of ue.endTasks)Le()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,d.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,c.q)(1))}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275inject(n.NgZone))},Ae.\u0275prov=n.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac}),Ae})(),xe=(()=>{class Ae{constructor(ue,Le){this.template=ue,this._differs=Le}ngOnChanges(ue){if(!this._columnsDiffer){const Le=ue.columns&&ue.columns.currentValue||[];this._columnsDiffer=this._differs.find(Le).create(),this._columnsDiffer.diff(Le)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ue){return this instanceof Xe?ue.headerCell.template:this instanceof et?ue.footerCell.template:ue.cell.template}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,features:[n.\u0275\u0275NgOnChangesFeature]}),Ae})();class Ie extends xe{}const We=M(Ie);let Xe=(()=>{class Ae extends We{constructor(ue,Le,B){super(ue,Le),this._table=B}ngOnChanges(ue){super.ngOnChanges(ue)}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(A,8))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Ae})();class ft extends xe{}const Pe=M(ft);let et=(()=>{class Ae extends Pe{constructor(ue,Le,B){super(ue,Le),this._table=B}ngOnChanges(ue){super.ngOnChanges(ue)}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(A,8))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),Ae})(),at=(()=>{class Ae extends xe{constructor(ue,Le,B){super(ue,Le),this._table=B}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(A,8))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),pt=(()=>{class Ae{constructor(ue){this._viewContainer=ue,Ae.mostRecentCellOutlet=this}ngOnDestroy(){Ae.mostRecentCellOutlet===this&&(Ae.mostRecentCellOutlet=null)}}return Ae.mostRecentCellOutlet=null,Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","cdkCellOutlet",""]]}),Ae})(),vt=(()=>{class Ae{}return Ae.\u0275fac=function(ue){return new(ue||Ae)},Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Le){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[pt],encapsulation:2}),Ae})(),yt=(()=>{class Ae{}return Ae.\u0275fac=function(ue){return new(ue||Ae)},Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Le){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[pt],encapsulation:2}),Ae})(),ot=(()=>{class Ae{}return Ae.\u0275fac=function(ue){return new(ue||Ae)},Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Le){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[pt],encapsulation:2}),Ae})(),_t=(()=>{class Ae{constructor(ue){this.templateRef=ue,this._contentClassName="cdk-no-data-row"}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.TemplateRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["ng-template","cdkNoDataRow",""]]}),Ae})();const At=["top","bottom","left","right"];class Tt{constructor(qe,ue,Le,B,de=!0,Fe=!0,Ze){this._isNativeHtmlTable=qe,this._stickCellCss=ue,this.direction=Le,this._coalescedStyleScheduler=B,this._isBrowser=de,this._needsPositionStickyOnElement=Fe,this._positionListener=Ze,this._cachedCellWidths=[],this._borderCellCss={top:`${ue}-border-elem-top`,bottom:`${ue}-border-elem-bottom`,left:`${ue}-border-elem-left`,right:`${ue}-border-elem-right`}}clearStickyPositioning(qe,ue){const Le=[];for(const B of qe)if(B.nodeType===B.ELEMENT_NODE){Le.push(B);for(let de=0;de{for(const B of Le)this._removeStickyStyle(B,ue)})}updateStickyColumns(qe,ue,Le,B=!0){if(!qe.length||!this._isBrowser||!ue.some(an=>an)&&!Le.some(an=>an))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const de=qe[0],Fe=de.children.length,Ze=this._getCellWidths(de,B),Wt=this._getStickyStartColumnPositions(Ze,ue),Ft=this._getStickyEndColumnPositions(Ze,Le),Ht=ue.lastIndexOf(!0),Zt=Le.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const an="rtl"===this.direction,Tn=an?"right":"left",zn=an?"left":"right";for(const $n of qe)for(let ti=0;tiue[ti]?$n:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Zt?[]:Ze.slice(Zt).map(($n,ti)=>Le[ti+Zt]?$n:null).reverse()}))})}stickRows(qe,ue,Le){if(!this._isBrowser)return;const B="bottom"===Le?qe.slice().reverse():qe,de="bottom"===Le?ue.slice().reverse():ue,Fe=[],Ze=[],Wt=[];for(let Ht=0,Zt=0;Ht{var Ht,Zt;for(let an=0;an{ue.some(B=>!B)?this._removeStickyStyle(Le,["bottom"]):this._addStickyStyle(Le,"bottom",0,!1)})}_removeStickyStyle(qe,ue){for(const B of ue)qe.style[B]="",qe.classList.remove(this._borderCellCss[B]);At.some(B=>-1===ue.indexOf(B)&&qe.style[B])?qe.style.zIndex=this._getCalculatedZIndex(qe):(qe.style.zIndex="",this._needsPositionStickyOnElement&&(qe.style.position=""),qe.classList.remove(this._stickCellCss))}_addStickyStyle(qe,ue,Le,B){qe.classList.add(this._stickCellCss),B&&qe.classList.add(this._borderCellCss[ue]),qe.style[ue]=`${Le}px`,qe.style.zIndex=this._getCalculatedZIndex(qe),this._needsPositionStickyOnElement&&(qe.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(qe){const ue={top:100,bottom:10,left:1,right:1};let Le=0;for(const B of At)qe.style[B]&&(Le+=ue[B]);return Le?`${Le}`:""}_getCellWidths(qe,ue=!0){if(!ue&&this._cachedCellWidths.length)return this._cachedCellWidths;const Le=[],B=qe.children;for(let de=0;de0;de--)ue[de]&&(Le[de]=B,B+=qe[de]);return Le}}const _e=new n.InjectionToken("CDK_SPL");let $e=(()=>{class Ae{constructor(ue,Le){this.viewContainer=ue,this.elementRef=Le}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","rowOutlet",""]]}),Ae})(),st=(()=>{class Ae{constructor(ue,Le){this.viewContainer=ue,this.elementRef=Le}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","headerRowOutlet",""]]}),Ae})(),ut=(()=>{class Ae{constructor(ue,Le){this.viewContainer=ue,this.elementRef=Le}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","footerRowOutlet",""]]}),Ae})(),St=(()=>{class Ae{constructor(ue,Le){this.viewContainer=ue,this.elementRef=Le}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","noDataRowOutlet",""]]}),Ae})(),Dt=(()=>{class Ae{constructor(ue,Le,B,de,Fe,Ze,Wt,Ft,Ht,Zt,an){this._differs=ue,this._changeDetectorRef=Le,this._elementRef=B,this._dir=Fe,this._platform=Wt,this._viewRepeater=Ft,this._coalescedStyleScheduler=Ht,this._viewportRuler=Zt,this._stickyPositioningListener=an,this._onDestroy=new s.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new n.EventEmitter,this.viewChange=new u.X({start:0,end:Number.MAX_VALUE}),de||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Ze,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ue){this._trackByFn=ue}get dataSource(){return this._dataSource}set dataSource(ue){this._dataSource!==ue&&this._switchDataSource(ue)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ue){this._multiTemplateDataRows=(0,f.Ig)(ue),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ue){this._fixedLayout=(0,f.Ig)(ue),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ue,Le)=>this.trackBy?this.trackBy(Le.dataIndex,Le.data):Le),this._viewportRuler.change().pipe((0,i.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Le=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Le,this._forceRecalculateCellWidths=Le,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ue=this._dataDiffer.diff(this._renderRows);if(!ue)return this._updateNoDataRow(),void this.contentChanged.next();const Le=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ue,Le,(B,de,Fe)=>this._getEmbeddedViewArgs(B.item,Fe),B=>B.item.data,B=>{1===B.operation&&B.context&&this._renderCellTemplateForItem(B.record.item.rowDef,B.context)}),this._updateRowIndexContext(),ue.forEachIdentityChange(B=>{Le.get(B.currentIndex).context.$implicit=B.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ue){this._customColumnDefs.add(ue)}removeColumnDef(ue){this._customColumnDefs.delete(ue)}addRowDef(ue){this._customRowDefs.add(ue)}removeRowDef(ue){this._customRowDefs.delete(ue)}addHeaderRowDef(ue){this._customHeaderRowDefs.add(ue),this._headerRowDefChanged=!0}removeHeaderRowDef(ue){this._customHeaderRowDefs.delete(ue),this._headerRowDefChanged=!0}addFooterRowDef(ue){this._customFooterRowDefs.add(ue),this._footerRowDefChanged=!0}removeFooterRowDef(ue){this._customFooterRowDefs.delete(ue),this._footerRowDefChanged=!0}setNoDataRow(ue){this._customNoDataRow=ue}updateStickyHeaderRowStyles(){const ue=this._getRenderedRows(this._headerRowOutlet),B=this._elementRef.nativeElement.querySelector("thead");B&&(B.style.display=ue.length?"":"none");const de=this._headerRowDefs.map(Fe=>Fe.sticky);this._stickyStyler.clearStickyPositioning(ue,["top"]),this._stickyStyler.stickRows(ue,de,"top"),this._headerRowDefs.forEach(Fe=>Fe.resetStickyChanged())}updateStickyFooterRowStyles(){const ue=this._getRenderedRows(this._footerRowOutlet),B=this._elementRef.nativeElement.querySelector("tfoot");B&&(B.style.display=ue.length?"":"none");const de=this._footerRowDefs.map(Fe=>Fe.sticky);this._stickyStyler.clearStickyPositioning(ue,["bottom"]),this._stickyStyler.stickRows(ue,de,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,de),this._footerRowDefs.forEach(Fe=>Fe.resetStickyChanged())}updateStickyColumnStyles(){const ue=this._getRenderedRows(this._headerRowOutlet),Le=this._getRenderedRows(this._rowOutlet),B=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ue,...Le,...B],["left","right"]),this._stickyColumnStylesNeedReset=!1),ue.forEach((de,Fe)=>{this._addStickyColumnStyles([de],this._headerRowDefs[Fe])}),this._rowDefs.forEach(de=>{const Fe=[];for(let Ze=0;Ze{this._addStickyColumnStyles([de],this._footerRowDefs[Fe])}),Array.from(this._columnDefsByName.values()).forEach(de=>de.resetStickyChanged())}_getAllRenderRows(){const ue=[],Le=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let B=0;B{const Ze=B&&B.has(Fe)?B.get(Fe):[];if(Ze.length){const Wt=Ze.shift();return Wt.dataIndex=Le,Wt}return{data:ue,rowDef:Fe,dataIndex:Le}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Kt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Le=>{this._columnDefsByName.has(Le.name),this._columnDefsByName.set(Le.name,Le)})}_cacheRowDefs(){this._headerRowDefs=Kt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Kt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Kt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ue=this._rowDefs.filter(Le=>!Le.when);this._defaultRowDef=ue[0]}_renderUpdatedColumns(){const ue=(Fe,Ze)=>Fe||!!Ze.getColumnsDiff(),Le=this._rowDefs.reduce(ue,!1);Le&&this._forceRenderDataRows();const B=this._headerRowDefs.reduce(ue,!1);B&&this._forceRenderHeaderRows();const de=this._footerRowDefs.reduce(ue,!1);return de&&this._forceRenderFooterRows(),Le||B||de}_switchDataSource(ue){this._data=[],(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ue||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ue}_observeRenderChanges(){if(!this.dataSource)return;let ue;(0,_.Z9)(this.dataSource)?ue=this.dataSource.connect(this):function(Ae){return!!Ae&&(Ae instanceof h.y||"function"==typeof Ae.lift&&"function"==typeof Ae.subscribe)}(this.dataSource)?ue=this.dataSource:Array.isArray(this.dataSource)&&(ue=(0,o.of)(this.dataSource)),this._renderChangeSubscription=ue.pipe((0,i.R)(this._onDestroy)).subscribe(Le=>{this._data=Le||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ue,Le)=>this._renderRow(this._headerRowOutlet,ue,Le)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ue,Le)=>this._renderRow(this._footerRowOutlet,ue,Le)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ue,Le){const B=Array.from(Le.columns||[]).map(Ze=>this._columnDefsByName.get(Ze)),de=B.map(Ze=>Ze.sticky),Fe=B.map(Ze=>Ze.stickyEnd);this._stickyStyler.updateStickyColumns(ue,de,Fe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ue){const Le=[];for(let B=0;B!de.when||de.when(Le,ue));else{let de=this._rowDefs.find(Fe=>Fe.when&&Fe.when(Le,ue))||this._defaultRowDef;de&&B.push(de)}return B}_getEmbeddedViewArgs(ue,Le){return{templateRef:ue.rowDef.template,context:{$implicit:ue.data},index:Le}}_renderRow(ue,Le,B,de={}){const Fe=ue.viewContainer.createEmbeddedView(Le.template,de,B);return this._renderCellTemplateForItem(Le,de),Fe}_renderCellTemplateForItem(ue,Le){for(let B of this._getCellTemplates(ue))pt.mostRecentCellOutlet&&pt.mostRecentCellOutlet._viewContainer.createEmbeddedView(B,Le);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ue=this._rowOutlet.viewContainer;for(let Le=0,B=ue.length;Le{const B=this._columnDefsByName.get(Le);return ue.extractCellTemplate(B)}):[]}_applyNativeTableSections(){const ue=this._document.createDocumentFragment(),Le=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const B of Le){const de=this._document.createElement(B.tag);de.setAttribute("role","rowgroup");for(const Fe of B.outlets)de.appendChild(Fe.elementRef.nativeElement);ue.appendChild(de)}this._elementRef.nativeElement.appendChild(ue)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ue=(Le,B)=>Le||B.hasStickyChanged();this._headerRowDefs.reduce(ue,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ue,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ue,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Tt(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,o.of)()).pipe((0,i.R)(this._onDestroy)).subscribe(Le=>{this._stickyStyler.direction=Le,this.updateStickyColumnStyles()})}_getOwnDefs(ue){return ue.filter(Le=>!Le._table||Le._table===this)}_updateNoDataRow(){const ue=this._customNoDataRow||this._noDataRow;if(!ue)return;const Le=0===this._rowOutlet.viewContainer.length;if(Le===this._isShowingNoDataRow)return;const B=this._noDataRowOutlet.viewContainer;if(Le){const de=B.createEmbeddedView(ue.templateRef),Fe=de.rootNodes[0];1===de.rootNodes.length&&(null==Fe?void 0:Fe.nodeType)===this._document.ELEMENT_NODE&&(Fe.setAttribute("role","row"),Fe.classList.add(ue._contentClassName))}else B.clear();this._isShowingNoDataRow=Le}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275injectAttribute("role"),n.\u0275\u0275directiveInject(l.Is,8),n.\u0275\u0275directiveInject(m.DOCUMENT),n.\u0275\u0275directiveInject(g.t4),n.\u0275\u0275directiveInject(_.k),n.\u0275\u0275directiveInject(ie),n.\u0275\u0275directiveInject(b.rL),n.\u0275\u0275directiveInject(_e,12))},Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ue,Le,B){if(1&ue&&(n.\u0275\u0275contentQuery(B,_t,5),n.\u0275\u0275contentQuery(B,re,5),n.\u0275\u0275contentQuery(B,at,5),n.\u0275\u0275contentQuery(B,Xe,5),n.\u0275\u0275contentQuery(B,et,5)),2&ue){let de;n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Le._noDataRow=de.first),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Le._contentColumnDefs=de),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Le._contentRowDefs=de),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Le._contentHeaderRowDefs=de),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Le._contentFooterRowDefs=de)}},viewQuery:function(ue,Le){if(1&ue&&(n.\u0275\u0275viewQuery($e,7),n.\u0275\u0275viewQuery(st,7),n.\u0275\u0275viewQuery(ut,7),n.\u0275\u0275viewQuery(St,7)),2&ue){let B;n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Le._rowOutlet=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Le._headerRowOutlet=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Le._footerRowOutlet=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Le._noDataRowOutlet=B.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ue,Le){2&ue&&n.\u0275\u0275classProp("cdk-table-fixed-layout",Le.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:A,useExisting:Ae},{provide:_.k,useClass:_.yy},{provide:ie,useClass:ne},{provide:_e,useValue:null}])],ngContentSelectors:S,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ue,Le){1&ue&&(n.\u0275\u0275projectionDef(y),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0),n.\u0275\u0275elementContainer(3,1),n.\u0275\u0275elementContainer(4,2),n.\u0275\u0275elementContainer(5,3))},directives:[st,$e,St,ut],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ae})();function Kt(Ae,qe){return Ae.concat(Array.from(qe))}let tt=(()=>{class Ae{constructor(ue,Le){this._table=ue,this._options=Le,this.justify="start",this._options=Le||{}}get name(){return this._name}set name(ue){this._name=ue,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((ue,Le)=>ue[Le])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const ue=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(ue):ue[0].toUpperCase()+ue.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(n.\u0275\u0275directiveInject(Dt,8),n.\u0275\u0275directiveInject(D,8))},Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["cdk-text-column"]],viewQuery:function(ue,Le){if(1&ue&&(n.\u0275\u0275viewQuery(re,7),n.\u0275\u0275viewQuery(w,7),n.\u0275\u0275viewQuery(x,7)),2&ue){let B;n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Le.columnDef=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Le.cell=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Le.headerCell=B.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(ue,Le){1&ue&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,I,2,3,"th",1),n.\u0275\u0275template(2,R,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},directives:[re,x,w,X,$],encapsulation:2}),Ae})(),Lt=(()=>{class Ae{}return Ae.\u0275fac=function(ue){return new(ue||Ae)},Ae.\u0275mod=n.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=n.\u0275\u0275defineInjector({imports:[[b.Cl]]}),Ae})();var Qe=p(508),gt=p(6787),Vt=p(6053),qt=p(4850);const Ue=[[["caption"]],[["colgroup"],["col"]]],Se=["caption","colgroup, col"];function te(Ae,qe){if(1&Ae&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Ae){const ue=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",ue.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",ue.headerText," ")}}function se(Ae,qe){if(1&Ae&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Ae){const ue=qe.$implicit,Le=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Le.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Le.dataAccessor(ue,Le.name)," ")}}let Me=(()=>{class Ae{}return Ae.\u0275fac=function(ue){return new(ue||Ae)},Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:_.k,useClass:_.eX}])]}),Ae})(),Ke=(()=>{class Ae extends Dt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ue,Le){2&ue&&n.\u0275\u0275classProp("mat-table-fixed-layout",Le.fixedLayout)},exportAs:["matTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:_.k,useClass:_.yy},{provide:Dt,useExisting:Ae},{provide:A,useExisting:Ae},{provide:ie,useClass:ne},{provide:_e,useValue:null}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Se,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ue,Le){1&ue&&(n.\u0275\u0275projectionDef(Ue),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0),n.\u0275\u0275elementContainer(3,1),n.\u0275\u0275elementContainer(4,2),n.\u0275\u0275elementContainer(5,3))},directives:[st,$e,St,ut],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),Ae})(),It=(()=>{class Ae extends w{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","matCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:w,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),Qt=(()=>{class Ae extends x{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","matHeaderCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:x,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),cn=(()=>{class Ae extends C{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","matFooterCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:C,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),An=(()=>{class Ae extends re{get name(){return this._name}set name(ue){this._setNameInput(ue)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n.\u0275\u0275ProvidersFeature([{provide:re,useExisting:Ae},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),lt=(()=>{class Ae extends X{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),ct=(()=>{class Ae extends ee{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),He=(()=>{class Ae extends ${}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),mt=(()=>{class Ae extends Xe{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:Xe,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),Ot=(()=>{class Ae extends et{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:et,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),un=(()=>{class Ae extends at{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n.\u0275\u0275ProvidersFeature([{provide:at,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),on=(()=>{class Ae extends vt{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:vt,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Le){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[pt],encapsulation:2}),Ae})(),On=(()=>{class Ae extends yt{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Le){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[pt],encapsulation:2}),Ae})(),Yn=(()=>{class Ae extends ot{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:ot,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Le){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[pt],encapsulation:2}),Ae})(),ji=(()=>{class Ae extends _t{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275dir=n.\u0275\u0275defineDirective({type:Ae,selectors:[["ng-template","matNoDataRow",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:_t,useExisting:Ae}]),n.\u0275\u0275InheritDefinitionFeature]}),Ae})(),Oi=(()=>{class Ae extends tt{}return Ae.\u0275fac=function(){let qe;return function(Le){return(qe||(qe=n.\u0275\u0275getInheritedFactory(Ae)))(Le||Ae)}}(),Ae.\u0275cmp=n.\u0275\u0275defineComponent({type:Ae,selectors:[["mat-text-column"]],features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(ue,Le){1&ue&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,te,2,3,"th",1),n.\u0275\u0275template(2,se,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},directives:[An,Qt,It,lt,He],encapsulation:2}),Ae})(),Ti=(()=>{class Ae{}return Ae.\u0275fac=function(ue){return new(ue||Ae)},Ae.\u0275mod=n.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=n.\u0275\u0275defineInjector({imports:[[Lt,Qe.MatCommonModule],Qe.MatCommonModule]}),Ae})();class Vi extends _.o2{constructor(qe=[]){super(),this._renderData=new u.X([]),this._filter=new u.X(""),this._internalPageChanges=new s.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ue,Le)=>{const B=ue[Le];if((0,f.t6)(B)){const de=Number(B);return de<9007199254740991?de:B}return B},this.sortData=(ue,Le)=>{const B=Le.active,de=Le.direction;return B&&""!=de?ue.sort((Fe,Ze)=>{let Wt=this.sortingDataAccessor(Fe,B),Ft=this.sortingDataAccessor(Ze,B);const Ht=typeof Wt,Zt=typeof Ft;Ht!==Zt&&("number"===Ht&&(Wt+=""),"number"===Zt&&(Ft+=""));let an=0;return null!=Wt&&null!=Ft?Wt>Ft?an=1:Wt{const B=Object.keys(ue).reduce((Fe,Ze)=>Fe+ue[Ze]+"\u25ec","").toLowerCase(),de=Le.trim().toLowerCase();return-1!=B.indexOf(de)},this._data=new u.X(qe),this._updateChangeSubscription()}get data(){return this._data.value}set data(qe){this._data.next(qe),this._renderChangesSubscription||this._filterData(qe)}get filter(){return this._filter.value}set filter(qe){this._filter.next(qe),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(qe){this._sort=qe,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(qe){this._paginator=qe,this._updateChangeSubscription()}_updateChangeSubscription(){var qe;const ue=this._sort?(0,gt.T)(this._sort.sortChange,this._sort.initialized):(0,o.of)(null),Le=this._paginator?(0,gt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,o.of)(null),de=(0,Vt.aj)([this._data,this._filter]).pipe((0,qt.U)(([Wt])=>this._filterData(Wt))),Fe=(0,Vt.aj)([de,ue]).pipe((0,qt.U)(([Wt])=>this._orderData(Wt))),Ze=(0,Vt.aj)([Fe,Le]).pipe((0,qt.U)(([Wt])=>this._pageData(Wt)));null===(qe=this._renderChangesSubscription)||void 0===qe||qe.unsubscribe(),this._renderChangesSubscription=Ze.subscribe(Wt=>this._renderData.next(Wt))}_filterData(qe){return this.filteredData=null==this.filter||""===this.filter?qe:qe.filter(ue=>this.filterPredicate(ue,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(qe){return this.sort?this.sortData(qe.slice(),this.sort):qe}_pageData(qe){if(!this.paginator)return qe;const ue=this.paginator.pageIndex*this.paginator.pageSize;return qe.slice(ue,ue+this.paginator.pageSize)}_updatePaginator(qe){Promise.resolve().then(()=>{const ue=this.paginator;if(ue&&(ue.length=qe,ue.pageIndex>0)){const Le=Math.ceil(ue.length/ue.pageSize)-1||0,B=Math.min(ue.pageIndex,Le);B!==ue.pageIndex&&(ue.pageIndex=B,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var qe;null===(qe=this._renderChangesSubscription)||void 0===qe||qe.unsubscribe(),this._renderChangesSubscription=null}}class ci extends Vi{}},3251:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MAT_TAB:()=>yt,MAT_TABS_CONFIG:()=>H,MAT_TAB_GROUP:()=>At,MatInkBar:()=>et,MatTab:()=>Tt,MatTabBody:()=>fe,MatTabBodyPortal:()=>Et,MatTabChangeEvent:()=>tn,MatTabContent:()=>pt,MatTabGroup:()=>tt,MatTabHeader:()=>St,MatTabLabel:()=>ot,MatTabLabelWrapper:()=>U,MatTabLink:()=>Vt,MatTabNav:()=>Lt,MatTabsModule:()=>qt,_MAT_INK_BAR_POSITIONER:()=>ft,_MatTabBodyBase:()=>Ee,_MatTabGroupBase:()=>Kt,_MatTabHeaderBase:()=>ut,_MatTabLinkBase:()=>gt,_MatTabNavBase:()=>xt,matTabsAnimations:()=>Bt});var n=p(5664),f=p(7144),_=p(7429),m=p(9808),s=p(5e3),d=p(508),u=p(6360),h=p(8929),r=p(2654),o=p(3753),i=p(1086),c=p(6787),l=p(8723),g=p(1777),b=p(1059),y=p(5778),S=p(7625),I=p(226),R=p(3191),M=p(1159),A=p(925),D=p(9071);function w(Ue,Se){1&Ue&&s.\u0275\u0275projection(0)}const x=["*"];function C(Ue,Se){}const L=function(Ue){return{animationDuration:Ue}},F=function(Ue,Se){return{value:Ue,params:Se}},re=["tabListContainer"],Y=["tabList"],X=["tabListInner"],ee=["nextPaginator"],$=["previousPaginator"],J=["tabBodyWrapper"],ie=["tabHeader"];function ne(Ue,Se){}function ae(Ue,Se){if(1&Ue&&s.\u0275\u0275template(0,ne,0,0,"ng-template",9),2&Ue){const te=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275property("cdkPortalOutlet",te.templateLabel)}}function xe(Ue,Se){if(1&Ue&&s.\u0275\u0275text(0),2&Ue){const te=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(te.textLabel)}}function Ie(Ue,Se){if(1&Ue){const te=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const Me=s.\u0275\u0275restoreView(te),Ke=Me.$implicit,It=Me.index,Qt=s.\u0275\u0275nextContext(),cn=s.\u0275\u0275reference(1);return Qt._handleClick(Ke,cn,It)})("cdkFocusChange",function(Me){const It=s.\u0275\u0275restoreView(te).index;return s.\u0275\u0275nextContext()._tabFocusChanged(Me,It)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,ae,1,1,"ng-template",8),s.\u0275\u0275template(3,xe,1,1,"ng-template",8),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&Ue){const te=Se.$implicit,se=Se.index,Me=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-label-active",Me.selectedIndex==se),s.\u0275\u0275property("id",Me._getTabLabelId(se))("disabled",te.disabled)("matRippleDisabled",te.disabled||Me.disableRipple),s.\u0275\u0275attribute("tabIndex",Me._getTabIndex(te,se))("aria-posinset",se+1)("aria-setsize",Me._tabs.length)("aria-controls",Me._getTabContentId(se))("aria-selected",Me.selectedIndex==se)("aria-label",te.ariaLabel||null)("aria-labelledby",!te.ariaLabel&&te.ariaLabelledby?te.ariaLabelledby:null),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",te.templateLabel),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!te.templateLabel)}}function We(Ue,Se){if(1&Ue){const te=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-tab-body",10),s.\u0275\u0275listener("_onCentered",function(){return s.\u0275\u0275restoreView(te),s.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(Me){return s.\u0275\u0275restoreView(te),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(Me)}),s.\u0275\u0275elementEnd()}if(2&Ue){const te=Se.$implicit,se=Se.index,Me=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",Me.selectedIndex===se),s.\u0275\u0275property("id",Me._getTabContentId(se))("content",te.content)("position",te.position)("origin",te.origin)("animationDuration",Me.animationDuration),s.\u0275\u0275attribute("tabindex",null!=Me.contentTabIndex&&Me.selectedIndex===se?Me.contentTabIndex:null)("aria-labelledby",Me._getTabLabelId(se))}}const Xe=["mat-tab-nav-bar",""],ft=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function(){return Se=>({left:Se?(Se.offsetLeft||0)+"px":"0",width:Se?(Se.offsetWidth||0)+"px":"0"})}});let et=(()=>{class Ue{constructor(te,se,Me,Ke){this._elementRef=te,this._ngZone=se,this._inkBarPositioner=Me,this._animationMode=Ke}alignToElement(te){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(te))}):this._setStyles(te)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(te){const se=this._inkBarPositioner(te),Me=this._elementRef.nativeElement;Me.style.left=se.left,Me.style.width=se.width}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ft),s.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(te,se){2&te&&s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===se._animationMode)}}),Ue})();const at=new s.InjectionToken("MatTabContent");let pt=(()=>{class Ue{constructor(te){this.template=te}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.TemplateRef))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,selectors:[["","matTabContent",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:at,useExisting:Ue}])]}),Ue})();const vt=new s.InjectionToken("MatTabLabel"),yt=new s.InjectionToken("MAT_TAB");let ot=(()=>{class Ue extends _.ig{constructor(te,se,Me){super(te,se),this._closestTab=Me}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(yt,8))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:vt,useExisting:Ue}]),s.\u0275\u0275InheritDefinitionFeature]}),Ue})();const _t=(0,d.mixinDisabled)(class{}),At=new s.InjectionToken("MAT_TAB_GROUP");let Tt=(()=>{class Ue extends _t{constructor(te,se){super(),this._viewContainerRef=te,this._closestTabGroup=se,this.textLabel="",this._contentPortal=null,this._stateChanges=new h.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(te){this._setTemplateLabelInput(te)}get content(){return this._contentPortal}ngOnChanges(te){(te.hasOwnProperty("textLabel")||te.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(te){te&&te._closestTab===this&&(this._templateLabel=te)}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(At,8))},Ue.\u0275cmp=s.\u0275\u0275defineComponent({type:Ue,selectors:[["mat-tab"]],contentQueries:function(te,se,Me){if(1&te&&(s.\u0275\u0275contentQuery(Me,vt,5),s.\u0275\u0275contentQuery(Me,at,7,s.TemplateRef)),2&te){let Ke;s.\u0275\u0275queryRefresh(Ke=s.\u0275\u0275loadQuery())&&(se.templateLabel=Ke.first),s.\u0275\u0275queryRefresh(Ke=s.\u0275\u0275loadQuery())&&(se._explicitContent=Ke.first)}},viewQuery:function(te,se){if(1&te&&s.\u0275\u0275viewQuery(s.TemplateRef,7),2&te){let Me;s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._implicitContent=Me.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:Ue}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:x,decls:1,vars:0,template:function(te,se){1&te&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,w,1,0,"ng-template"))},encapsulation:2}),Ue})();const Bt={translateTab:(0,g.X$)("translateTab",[(0,g.SB)("center, void, left-origin-center, right-origin-center",(0,g.oB)({transform:"none"})),(0,g.SB)("left",(0,g.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,g.SB)("right",(0,g.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,g.eR)("* => left, * => right, left => center, right => center",(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,g.eR)("void => left-origin-center",[(0,g.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,g.eR)("void => right-origin-center",[(0,g.oB)({transform:"translate3d(100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Et=(()=>{class Ue extends _.Pl{constructor(te,se,Me,Ke){super(te,se,Ke),this._host=Me,this._centeringSub=r.w.EMPTY,this._leavingSub=r.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,b.O)(this._host._isCenterPosition(this._host._position))).subscribe(te=>{te&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ComponentFactoryResolver),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>fe)),s.\u0275\u0275directiveInject(m.DOCUMENT))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),Ue})(),Ee=(()=>{class Ue{constructor(te,se,Me){this._elementRef=te,this._dir=se,this._dirChangeSubscription=r.w.EMPTY,this._translateTabComplete=new h.xQ,this._onCentering=new s.EventEmitter,this._beforeCentering=new s.EventEmitter,this._afterLeavingCenter=new s.EventEmitter,this._onCentered=new s.EventEmitter(!0),this.animationDuration="500ms",se&&(this._dirChangeSubscription=se.change.subscribe(Ke=>{this._computePositionAnimationState(Ke),Me.markForCheck()})),this._translateTabComplete.pipe((0,y.x)((Ke,It)=>Ke.fromState===It.fromState&&Ke.toState===It.toState)).subscribe(Ke=>{this._isCenterPosition(Ke.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Ke.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(te){this._positionIndex=te,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(te){const se=this._isCenterPosition(te.toState);this._beforeCentering.emit(se),se&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(te){return"center"==te||"left-origin-center"==te||"right-origin-center"==te}_computePositionAnimationState(te=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==te?"left":"right":this._positionIndex>0?"ltr"==te?"right":"left":"center"}_computePositionFromOrigin(te){const se=this._getLayoutDirection();return"ltr"==se&&te<=0||"rtl"==se&&te>0?"left-origin-center":"right-origin-center"}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(I.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ue})(),fe=(()=>{class Ue extends Ee{constructor(te,se,Me){super(te,se,Me)}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(I.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},Ue.\u0275cmp=s.\u0275\u0275defineComponent({type:Ue,selectors:[["mat-tab-body"]],viewQuery:function(te,se){if(1&te&&s.\u0275\u0275viewQuery(_.Pl,5),2&te){let Me;s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._portalHost=Me.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(te,se){1&te&&(s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("@translateTab.start",function(Ke){return se._onTranslateTabStarted(Ke)})("@translateTab.done",function(Ke){return se._translateTabComplete.next(Ke)}),s.\u0275\u0275template(2,C,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&te&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,F,se._position,s.\u0275\u0275pureFunction1(1,L,se.animationDuration)))},directives:[Et],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Bt.translateTab]}}),Ue})();const H=new s.InjectionToken("MAT_TABS_CONFIG"),T=(0,d.mixinDisabled)(class{});let U=(()=>{class Ue extends T{constructor(te){super(),this.elementRef=te}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(te,se){2&te&&(s.\u0275\u0275attribute("aria-disabled",!!se.disabled),s.\u0275\u0275classProp("mat-tab-disabled",se.disabled))},inputs:{disabled:"disabled"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Ue})();const Z=(0,A.i$)({passive:!0});let st=(()=>{class Ue{constructor(te,se,Me,Ke,It,Qt,cn){this._elementRef=te,this._changeDetectorRef=se,this._viewportRuler=Me,this._dir=Ke,this._ngZone=It,this._platform=Qt,this._animationMode=cn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new h.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new h.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.EventEmitter,this.indexFocused=new s.EventEmitter,It.runOutsideAngular(()=>{(0,o.R)(te.nativeElement,"mouseleave").pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(te){te=(0,R.su)(te),this._selectedIndex!=te&&(this._selectedIndexChanged=!0,this._selectedIndex=te,this._keyManager&&this._keyManager.updateActiveItem(te))}ngAfterViewInit(){(0,o.R)(this._previousPaginator.nativeElement,"touchstart",Z).pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,o.R)(this._nextPaginator.nativeElement,"touchstart",Z).pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const te=this._dir?this._dir.change:(0,i.of)("ltr"),se=this._viewportRuler.change(150),Me=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Me):Me(),(0,c.T)(te,se,this._items.changes).pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(Me)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,S.R)(this._destroyed)).subscribe(Ke=>{this.indexFocused.emit(Ke),this._setTabFocus(Ke)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(te){if(!(0,M.Vb)(te))switch(te.keyCode){case M.K5:case M.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(te));break;default:this._keyManager.onKeydown(te)}}_onContentChanges(){const te=this._elementRef.nativeElement.textContent;te!==this._currentTextContent&&(this._currentTextContent=te||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(te){!this._isValidIndex(te)||this.focusIndex===te||!this._keyManager||this._keyManager.setActiveItem(te)}_isValidIndex(te){if(!this._items)return!0;const se=this._items?this._items.toArray()[te]:null;return!!se&&!se.disabled}_setTabFocus(te){if(this._showPaginationControls&&this._scrollToLabel(te),this._items&&this._items.length){this._items.toArray()[te].focus();const se=this._tabListContainer.nativeElement;se.scrollLeft="ltr"==this._getLayoutDirection()?0:se.scrollWidth-se.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const te=this.scrollDistance,se="ltr"===this._getLayoutDirection()?-te:te;this._tabList.nativeElement.style.transform=`translateX(${Math.round(se)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(te){this._scrollTo(te)}_scrollHeader(te){return this._scrollTo(this._scrollDistance+("before"==te?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(te){this._stopInterval(),this._scrollHeader(te)}_scrollToLabel(te){if(this.disablePagination)return;const se=this._items?this._items.toArray()[te]:null;if(!se)return;const Me=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Ke,offsetWidth:It}=se.elementRef.nativeElement;let Qt,cn;"ltr"==this._getLayoutDirection()?(Qt=Ke,cn=Qt+It):(cn=this._tabListInner.nativeElement.offsetWidth-Ke,Qt=cn-It);const An=this.scrollDistance,lt=this.scrollDistance+Me;Qtlt&&(this.scrollDistance+=cn-lt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const te=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;te||(this.scrollDistance=0),te!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=te}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const te=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,se=te?te.elementRef.nativeElement:null;se?this._inkBar.alignToElement(se):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(te,se){se&&null!=se.button&&0!==se.button||(this._stopInterval(),(0,l.H)(650,100).pipe((0,S.R)((0,c.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Me,distance:Ke}=this._scrollHeader(te);(0===Ke||Ke>=Me)&&this._stopInterval()}))}_scrollTo(te){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const se=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(se,te)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:se,distance:this._scrollDistance}}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(D.rL),s.\u0275\u0275directiveInject(I.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(A.t4),s.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,inputs:{disablePagination:"disablePagination"}}),Ue})(),ut=(()=>{class Ue extends st{constructor(te,se,Me,Ke,It,Qt,cn){super(te,se,Me,Ke,It,Qt,cn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(te){this._disableRipple=(0,R.Ig)(te)}_itemSelected(te){te.preventDefault()}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(D.rL),s.\u0275\u0275directiveInject(I.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(A.t4),s.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,inputs:{disableRipple:"disableRipple"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Ue})(),St=(()=>{class Ue extends ut{constructor(te,se,Me,Ke,It,Qt,cn){super(te,se,Me,Ke,It,Qt,cn)}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(D.rL),s.\u0275\u0275directiveInject(I.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(A.t4),s.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ue.\u0275cmp=s.\u0275\u0275defineComponent({type:Ue,selectors:[["mat-tab-header"]],contentQueries:function(te,se,Me){if(1&te&&s.\u0275\u0275contentQuery(Me,U,4),2&te){let Ke;s.\u0275\u0275queryRefresh(Ke=s.\u0275\u0275loadQuery())&&(se._items=Ke)}},viewQuery:function(te,se){if(1&te&&(s.\u0275\u0275viewQuery(et,7),s.\u0275\u0275viewQuery(re,7),s.\u0275\u0275viewQuery(Y,7),s.\u0275\u0275viewQuery(X,7),s.\u0275\u0275viewQuery(ee,5),s.\u0275\u0275viewQuery($,5)),2&te){let Me;s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._inkBar=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._tabListContainer=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._tabList=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._tabListInner=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._nextPaginator=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._previousPaginator=Me.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(te,se){2&te&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",se._showPaginationControls)("mat-tab-header-rtl","rtl"==se._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:x,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(te,se){1&te&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return se._handlePaginatorClick("before")})("mousedown",function(Ke){return se._handlePaginatorPress("before",Ke)})("touchend",function(){return se._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(Ke){return se._handleKeydown(Ke)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return se._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",9,10),s.\u0275\u0275listener("mousedown",function(Ke){return se._handlePaginatorPress("after",Ke)})("click",function(){return se._handlePaginatorClick("after")})("touchend",function(){return se._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&te&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",se._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",se._disableScrollBefore||se.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===se._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",se._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",se._disableScrollAfter||se.disableRipple))},directives:[d.MatRipple,f.wD,et],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Ue})(),Xt=0;class tn{}const Dt=(0,d.mixinColor)((0,d.mixinDisableRipple)(class{constructor(Ue){this._elementRef=Ue}}),"primary");let Kt=(()=>{class Ue extends Dt{constructor(te,se,Me,Ke){var It;super(te),this._changeDetectorRef=se,this._animationMode=Ke,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=r.w.EMPTY,this._tabLabelSubscription=r.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.EventEmitter,this.focusChange=new s.EventEmitter,this.animationDone=new s.EventEmitter,this.selectedTabChange=new s.EventEmitter(!0),this._groupId=Xt++,this.animationDuration=Me&&Me.animationDuration?Me.animationDuration:"500ms",this.disablePagination=!(!Me||null==Me.disablePagination)&&Me.disablePagination,this.dynamicHeight=!(!Me||null==Me.dynamicHeight)&&Me.dynamicHeight,this.contentTabIndex=null!==(It=null==Me?void 0:Me.contentTabIndex)&&void 0!==It?It:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(te){this._dynamicHeight=(0,R.Ig)(te)}get selectedIndex(){return this._selectedIndex}set selectedIndex(te){this._indexToSelect=(0,R.su)(te,null)}get animationDuration(){return this._animationDuration}set animationDuration(te){this._animationDuration=/^\d+$/.test(te+"")?te+"ms":te}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(te){this._contentTabIndex=(0,R.su)(te,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(te){const se=this._elementRef.nativeElement;se.classList.remove(`mat-background-${this.backgroundColor}`),te&&se.classList.add(`mat-background-${te}`),this._backgroundColor=te}ngAfterContentChecked(){const te=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=te){const se=null==this._selectedIndex;if(!se){this.selectedTabChange.emit(this._createChangeEvent(te));const Me=this._tabBodyWrapper.nativeElement;Me.style.minHeight=Me.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Me,Ke)=>Me.isActive=Ke===te),se||(this.selectedIndexChange.emit(te),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((se,Me)=>{se.position=Me-te,null!=this._selectedIndex&&0==se.position&&!se.origin&&(se.origin=te-this._selectedIndex)}),this._selectedIndex!==te&&(this._selectedIndex=te,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const se=this._tabs.toArray();for(let Me=0;Me{this._tabs.reset(te.filter(se=>se._closestTabGroup===this||!se._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(te){const se=this._tabHeader;se&&(se.focusIndex=te)}_focusChanged(te){this.focusChange.emit(this._createChangeEvent(te))}_createChangeEvent(te){const se=new tn;return se.index=te,this._tabs&&this._tabs.length&&(se.tab=this._tabs.toArray()[te]),se}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,c.T)(...this._tabs.map(te=>te._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(te){return Math.min(this._tabs.length-1,Math.max(te||0,0))}_getTabLabelId(te){return`mat-tab-label-${this._groupId}-${te}`}_getTabContentId(te){return`mat-tab-content-${this._groupId}-${te}`}_setTabBodyWrapperHeight(te){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const se=this._tabBodyWrapper.nativeElement;se.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(se.style.height=te+"px")}_removeTabBodyWrapperHeight(){const te=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=te.clientHeight,te.style.height="",this.animationDone.emit()}_handleClick(te,se,Me){te.disabled||(this.selectedIndex=se.focusIndex=Me)}_getTabIndex(te,se){return te.disabled?null:this.selectedIndex===se?0:-1}_tabFocusChanged(te,se){te&&"mouse"!==te&&"touch"!==te&&(this._tabHeader.focusIndex=se)}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(H,8),s.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Ue})(),tt=(()=>{class Ue extends Kt{constructor(te,se,Me,Ke){super(te,se,Me,Ke)}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(H,8),s.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ue.\u0275cmp=s.\u0275\u0275defineComponent({type:Ue,selectors:[["mat-tab-group"]],contentQueries:function(te,se,Me){if(1&te&&s.\u0275\u0275contentQuery(Me,Tt,5),2&te){let Ke;s.\u0275\u0275queryRefresh(Ke=s.\u0275\u0275loadQuery())&&(se._allTabs=Ke)}},viewQuery:function(te,se){if(1&te&&(s.\u0275\u0275viewQuery(J,5),s.\u0275\u0275viewQuery(ie,5)),2&te){let Me;s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._tabBodyWrapper=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._tabHeader=Me.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(te,se){2&te&&s.\u0275\u0275classProp("mat-tab-group-dynamic-height",se.dynamicHeight)("mat-tab-group-inverted-header","below"===se.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.\u0275\u0275ProvidersFeature([{provide:At,useExisting:Ue}]),s.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(te,se){1&te&&(s.\u0275\u0275elementStart(0,"mat-tab-header",0,1),s.\u0275\u0275listener("indexFocused",function(Ke){return se._focusChanged(Ke)})("selectFocusedIndex",function(Ke){return se.selectedIndex=Ke}),s.\u0275\u0275template(2,Ie,4,14,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275template(5,We,1,9,"mat-tab-body",5),s.\u0275\u0275elementEnd()),2&te&&(s.\u0275\u0275property("selectedIndex",se.selectedIndex||0)("disableRipple",se.disableRipple)("disablePagination",se.disablePagination),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",se._tabs),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===se._animationMode),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",se._tabs))},directives:[St,m.NgForOf,U,d.MatRipple,n.kH,m.NgIf,_.Pl,fe],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Ue})(),xt=(()=>{class Ue extends st{constructor(te,se,Me,Ke,It,Qt,cn){super(te,Ke,It,se,Me,Qt,cn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(te){const se=this._elementRef.nativeElement.classList;se.remove(`mat-background-${this.backgroundColor}`),te&&se.add(`mat-background-${te}`),this._backgroundColor=te}get disableRipple(){return this._disableRipple}set disableRipple(te){this._disableRipple=(0,R.Ig)(te)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,b.O)(null),(0,S.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const te=this._items.toArray();for(let se=0;se{class Ue extends xt{constructor(te,se,Me,Ke,It,Qt,cn){super(te,se,Me,Ke,It,Qt,cn)}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(I.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(D.rL),s.\u0275\u0275directiveInject(A.t4),s.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ue.\u0275cmp=s.\u0275\u0275defineComponent({type:Ue,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(te,se,Me){if(1&te&&s.\u0275\u0275contentQuery(Me,Vt,5),2&te){let Ke;s.\u0275\u0275queryRefresh(Ke=s.\u0275\u0275loadQuery())&&(se._items=Ke)}},viewQuery:function(te,se){if(1&te&&(s.\u0275\u0275viewQuery(et,7),s.\u0275\u0275viewQuery(re,7),s.\u0275\u0275viewQuery(Y,7),s.\u0275\u0275viewQuery(X,7),s.\u0275\u0275viewQuery(ee,5),s.\u0275\u0275viewQuery($,5)),2&te){let Me;s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._inkBar=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._tabListContainer=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._tabList=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._tabListInner=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._nextPaginator=Me.first),s.\u0275\u0275queryRefresh(Me=s.\u0275\u0275loadQuery())&&(se._previousPaginator=Me.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(te,se){2&te&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",se._showPaginationControls)("mat-tab-header-rtl","rtl"==se._getLayoutDirection())("mat-primary","warn"!==se.color&&"accent"!==se.color)("mat-accent","accent"===se.color)("mat-warn","warn"===se.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.\u0275\u0275InheritDefinitionFeature],attrs:Xe,ngContentSelectors:x,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(te,se){1&te&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return se._handlePaginatorClick("before")})("mousedown",function(Ke){return se._handlePaginatorPress("before",Ke)})("touchend",function(){return se._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(Ke){return se._handleKeydown(Ke)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return se._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",9,10),s.\u0275\u0275listener("mousedown",function(Ke){return se._handlePaginatorPress("after",Ke)})("click",function(){return se._handlePaginatorClick("after")})("touchend",function(){return se._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&te&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",se._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",se._disableScrollBefore||se.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===se._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",se._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",se._disableScrollAfter||se.disableRipple))},directives:[d.MatRipple,f.wD,et],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Ue})();const Qe=(0,d.mixinTabIndex)((0,d.mixinDisableRipple)((0,d.mixinDisabled)(class{})));let gt=(()=>{class Ue extends Qe{constructor(te,se,Me,Ke,It,Qt){super(),this._tabNavBar=te,this.elementRef=se,this._focusMonitor=It,this._isActive=!1,this.rippleConfig=Me||{},this.tabIndex=parseInt(Ke)||0,"NoopAnimations"===Qt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(te){const se=(0,R.Ig)(te);se!==this._isActive&&(this._isActive=se,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(xt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(d.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(n.tE),s.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,inputs:{active:"active"},features:[s.\u0275\u0275InheritDefinitionFeature]}),Ue})(),Vt=(()=>{class Ue extends gt{constructor(te,se,Me,Ke,It,Qt,cn,An){super(te,se,It,Qt,cn,An),this._tabLinkRipple=new d.RippleRenderer(this,Me,se,Ke),this._tabLinkRipple.setupTriggerEvents(se.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ue.\u0275fac=function(te){return new(te||Ue)(s.\u0275\u0275directiveInject(Lt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(A.t4),s.\u0275\u0275directiveInject(d.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(n.tE),s.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ue.\u0275dir=s.\u0275\u0275defineDirective({type:Ue,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(te,se){1&te&&s.\u0275\u0275listener("focus",function(){return se._handleFocus()}),2&te&&(s.\u0275\u0275attribute("aria-current",se.active?"page":null)("aria-disabled",se.disabled)("tabIndex",se.tabIndex),s.\u0275\u0275classProp("mat-tab-disabled",se.disabled)("mat-tab-label-active",se.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.\u0275\u0275InheritDefinitionFeature]}),Ue})(),qt=(()=>{class Ue{}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275mod=s.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=s.\u0275\u0275defineInjector({imports:[[m.CommonModule,d.MatCommonModule,_.eL,d.MatRippleModule,f.Q8,n.rt],d.MatCommonModule]}),Ue})()},4594:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{MatToolbar:()=>r,MatToolbarModule:()=>i,MatToolbarRow:()=>h,throwToolbarMixedModesError:()=>o});var n=p(5e3),f=p(508),_=p(9808),m=p(925);const s=["*",[["mat-toolbar-row"]]],d=["*","mat-toolbar-row"],u=(0,f.mixinColor)(class{constructor(c){this._elementRef=c}});let h=(()=>{class c{}return c.\u0275fac=function(g){return new(g||c)},c.\u0275dir=n.\u0275\u0275defineDirective({type:c,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),c})(),r=(()=>{class c extends u{constructor(g,b,y){super(g),this._platform=b,this._document=y}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return c.\u0275fac=function(g){return new(g||c)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(m.t4),n.\u0275\u0275directiveInject(_.DOCUMENT))},c.\u0275cmp=n.\u0275\u0275defineComponent({type:c,selectors:[["mat-toolbar"]],contentQueries:function(g,b,y){if(1&g&&n.\u0275\u0275contentQuery(y,h,5),2&g){let S;n.\u0275\u0275queryRefresh(S=n.\u0275\u0275loadQuery())&&(b._toolbarRows=S)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(g,b){2&g&&n.\u0275\u0275classProp("mat-toolbar-multiple-rows",b._toolbarRows.length>0)("mat-toolbar-single-row",0===b._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:2,vars:0,template:function(g,b){1&g&&(n.\u0275\u0275projectionDef(s),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),c})();function o(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}let i=(()=>{class c{}return c.\u0275fac=function(g){return new(g||c)},c.\u0275mod=n.\u0275\u0275defineNgModule({type:c}),c.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatCommonModule],f.MatCommonModule]}),c})()},6360:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{ANIMATION_MODULE_TYPE:()=>rr,BrowserAnimationsModule:()=>ds,NoopAnimationsModule:()=>Bs,\u0275AnimationRenderer:()=>di,\u0275AnimationRendererFactory:()=>In,\u0275BrowserAnimationBuilder:()=>k,\u0275BrowserAnimationFactory:()=>V,\u0275InjectableAnimationEngine:()=>Ei});var n=p(5e3),f=p(2313),_=p(1777);function m(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function d(we){switch(we.length){case 0:return new _.ZN;case 1:return we[0];default:return new _.ZE(we)}}function u(we,N,G,pe,Re={},ze={}){const rt=[],dt=[];let Rt=-1,Gt=null;if(pe.forEach(rn=>{const pn=rn.offset,Pn=pn==Rt,Ln=Pn&&Gt||{};Object.keys(rn).forEach(_n=>{let Bn=_n,Kn=rn[_n];if("offset"!==_n)switch(Bn=N.normalizePropertyName(Bn,rt),Kn){case _.k1:Kn=Re[_n];break;case _.l3:Kn=ze[_n];break;default:Kn=N.normalizeStyleValue(_n,Bn,Kn,rt)}Ln[Bn]=Kn}),Pn||dt.push(Ln),Gt=Ln,Rt=pn}),rt.length){const rn="\n - ";throw new Error(`Unable to animate due to the following errors:${rn}${rt.join(rn)}`)}return dt}function h(we,N,G,pe){switch(N){case"start":we.onStart(()=>pe(G&&r(G,"start",we)));break;case"done":we.onDone(()=>pe(G&&r(G,"done",we)));break;case"destroy":we.onDestroy(()=>pe(G&&r(G,"destroy",we)))}}function r(we,N,G){const pe=G.totalTime,ze=o(we.element,we.triggerName,we.fromState,we.toState,N||we.phaseName,null==pe?we.totalTime:pe,!!G.disabled),rt=we._data;return null!=rt&&(ze._data=rt),ze}function o(we,N,G,pe,Re="",ze=0,rt){return{element:we,triggerName:N,fromState:G,toState:pe,phaseName:Re,totalTime:ze,disabled:!!rt}}function i(we,N,G){let pe;return we instanceof Map?(pe=we.get(N),pe||we.set(N,pe=G)):(pe=we[N],pe||(pe=we[N]=G)),pe}function c(we){const N=we.indexOf(":");return[we.substring(1,N),we.substr(N+1)]}let l=(we,N)=>!1,g=(we,N,G)=>[];(s()||"undefined"!=typeof Element)&&(l=m()?(we,N)=>{for(;N&&N!==document.documentElement;){if(N===we)return!0;N=N.parentNode||N.host}return!1}:(we,N)=>we.contains(N),g=(we,N,G)=>{let pe=[];if(G){const Re=we.querySelectorAll(N);for(let ze=0;ze{const pe=G.replace(/([a-z])([A-Z])/g,"$1-$2");N[pe]=we[G]}),N}let x=(()=>{class we{validateStyleProperty(G){return R(G)}matchesElement(G,pe){return!1}containsElement(G,pe){return A(G,pe)}query(G,pe,Re){return D(G,pe,Re)}computeStyle(G,pe,Re){return Re||""}animate(G,pe,Re,ze,rt,dt=[],Rt){return new _.ZN(Re,ze)}}return we.\u0275fac=function(G){return new(G||we)},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),C=(()=>{class we{}return we.NOOP=new x,we})();const Y="ng-enter",X="ng-leave",ee="ng-trigger",$=".ng-trigger",J="ng-animating",ie=".ng-animating";function ne(we){if("number"==typeof we)return we;const N=we.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:ae(parseFloat(N[1]),N[2])}function ae(we,N){return"s"===N?1e3*we:we}function xe(we,N,G){return we.hasOwnProperty("duration")?we:function(we,N,G){let Re,ze=0,rt="";if("string"==typeof we){const dt=we.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===dt)return N.push(`The provided timing value "${we}" is invalid.`),{duration:0,delay:0,easing:""};Re=ae(parseFloat(dt[1]),dt[2]);const Rt=dt[3];null!=Rt&&(ze=ae(parseFloat(Rt),dt[4]));const Gt=dt[5];Gt&&(rt=Gt)}else Re=we;if(!G){let dt=!1,Rt=N.length;Re<0&&(N.push("Duration values below 0 are not allowed for this animation step."),dt=!0),ze<0&&(N.push("Delay values below 0 are not allowed for this animation step."),dt=!0),dt&&N.splice(Rt,0,`The provided timing value "${we}" is invalid.`)}return{duration:Re,delay:ze,easing:rt}}(we,N,G)}function We(we,N={}){return Object.keys(we).forEach(G=>{N[G]=we[G]}),N}function ft(we,N,G={}){if(N)for(let pe in we)G[pe]=we[pe];else We(we,G);return G}function Pe(we,N,G){return G?N+":"+G+";":""}function et(we){let N="";for(let G=0;G{const Re=Et(pe);G&&!G.hasOwnProperty(pe)&&(G[pe]=we.style[Re]),we.style[Re]=N[pe]}),s()&&et(we))}function pt(we,N){we.style&&(Object.keys(N).forEach(G=>{const pe=Et(G);we.style[pe]=""}),s()&&et(we))}function vt(we){return Array.isArray(we)?1==we.length?we[0]:(0,_.vP)(we):we}const ot=new RegExp("{{\\s*(.+?)\\s*}}","g");function _t(we){let N=[];if("string"==typeof we){let G;for(;G=ot.exec(we);)N.push(G[1]);ot.lastIndex=0}return N}function At(we,N,G){const pe=we.toString(),Re=pe.replace(ot,(ze,rt)=>{let dt=N[rt];return N.hasOwnProperty(rt)||(G.push(`Please provide a value for the animation param ${rt}`),dt=""),dt.toString()});return Re==pe?we:Re}function Tt(we){const N=[];let G=we.next();for(;!G.done;)N.push(G.value),G=we.next();return N}const Bt=/-+([a-z0-9])/g;function Et(we){return we.replace(Bt,(...N)=>N[1].toUpperCase())}function Ee(we){return we.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function fe(we,N){return 0===we||0===N}function H(we,N,G){const pe=Object.keys(G);if(pe.length&&N.length){let ze=N[0],rt=[];if(pe.forEach(dt=>{ze.hasOwnProperty(dt)||rt.push(dt),ze[dt]=G[dt]}),rt.length)for(var Re=1;Refunction(we,N,G){if(":"==we[0]){const Rt=function(we,N){switch(we){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(G,pe)=>parseFloat(pe)>parseFloat(G);case":decrement":return(G,pe)=>parseFloat(pe) *"}}(we,G);if("function"==typeof Rt)return void N.push(Rt);we=Rt}const pe=we.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==pe||pe.length<4)return G.push(`The provided transition expression "${we}" is not supported`),N;const Re=pe[1],ze=pe[2],rt=pe[3];N.push(St(Re,rt));"<"==ze[0]&&!(Re==Z&&rt==Z)&&N.push(St(rt,Re))}(pe,G,N)):G.push(we),G}const st=new Set(["true","1"]),ut=new Set(["false","0"]);function St(we,N){const G=st.has(we)||ut.has(we),pe=st.has(N)||ut.has(N);return(Re,ze)=>{let rt=we==Z||we==Re,dt=N==Z||N==ze;return!rt&&G&&"boolean"==typeof Re&&(rt=Re?st.has(we):ut.has(we)),!dt&&pe&&"boolean"==typeof ze&&(dt=ze?st.has(N):ut.has(N)),rt&&dt}}const tn=new RegExp("s*:selfs*,?","g");function Dt(we,N,G){return new tt(we).build(N,G)}class tt{constructor(N){this._driver=N}build(N,G){const pe=new Qe(G);return this._resetContextStyleTimingState(pe),T(this,vt(N),pe)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles={},N.collectedStyles[""]={},N.currentTime=0}visitTrigger(N,G){let pe=G.queryCount=0,Re=G.depCount=0;const ze=[],rt=[];return"@"==N.name.charAt(0)&&G.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),N.definitions.forEach(dt=>{if(this._resetContextStyleTimingState(G),0==dt.type){const Rt=dt,Gt=Rt.name;Gt.toString().split(/\s*,\s*/).forEach(rn=>{Rt.name=rn,ze.push(this.visitState(Rt,G))}),Rt.name=Gt}else if(1==dt.type){const Rt=this.visitTransition(dt,G);pe+=Rt.queryCount,Re+=Rt.depCount,rt.push(Rt)}else G.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:N.name,states:ze,transitions:rt,queryCount:pe,depCount:Re,options:null}}visitState(N,G){const pe=this.visitStyle(N.styles,G),Re=N.options&&N.options.params||null;if(pe.containsDynamicStyles){const ze=new Set,rt=Re||{};if(pe.styles.forEach(dt=>{if(Vt(dt)){const Rt=dt;Object.keys(Rt).forEach(Gt=>{_t(Rt[Gt]).forEach(rn=>{rt.hasOwnProperty(rn)||ze.add(rn)})})}}),ze.size){const dt=Tt(ze.values());G.errors.push(`state("${N.name}", ...) must define default values for all the following style substitutions: ${dt.join(", ")}`)}}return{type:0,name:N.name,style:pe,options:Re?{params:Re}:null}}visitTransition(N,G){G.queryCount=0,G.depCount=0;const pe=T(this,vt(N.animation),G);return{type:1,matchers:_e(N.expr,G.errors),animation:pe,queryCount:G.queryCount,depCount:G.depCount,options:Ue(N.options)}}visitSequence(N,G){return{type:2,steps:N.steps.map(pe=>T(this,pe,G)),options:Ue(N.options)}}visitGroup(N,G){const pe=G.currentTime;let Re=0;const ze=N.steps.map(rt=>{G.currentTime=pe;const dt=T(this,rt,G);return Re=Math.max(Re,G.currentTime),dt});return G.currentTime=Re,{type:3,steps:ze,options:Ue(N.options)}}visitAnimate(N,G){const pe=function(we,N){let G=null;if(we.hasOwnProperty("duration"))G=we;else if("number"==typeof we)return Se(xe(we,N).duration,0,"");const pe=we;if(pe.split(/\s+/).some(ze=>"{"==ze.charAt(0)&&"{"==ze.charAt(1))){const ze=Se(0,0,"");return ze.dynamic=!0,ze.strValue=pe,ze}return G=G||xe(pe,N),Se(G.duration,G.delay,G.easing)}(N.timings,G.errors);G.currentAnimateTimings=pe;let Re,ze=N.styles?N.styles:(0,_.oB)({});if(5==ze.type)Re=this.visitKeyframes(ze,G);else{let rt=N.styles,dt=!1;if(!rt){dt=!0;const Gt={};pe.easing&&(Gt.easing=pe.easing),rt=(0,_.oB)(Gt)}G.currentTime+=pe.duration+pe.delay;const Rt=this.visitStyle(rt,G);Rt.isEmptyStep=dt,Re=Rt}return G.currentAnimateTimings=null,{type:4,timings:pe,style:Re,options:null}}visitStyle(N,G){const pe=this._makeStyleAst(N,G);return this._validateStyleAst(pe,G),pe}_makeStyleAst(N,G){const pe=[];Array.isArray(N.styles)?N.styles.forEach(rt=>{"string"==typeof rt?rt==_.l3?pe.push(rt):G.errors.push(`The provided style string value ${rt} is not allowed.`):pe.push(rt)}):pe.push(N.styles);let Re=!1,ze=null;return pe.forEach(rt=>{if(Vt(rt)){const dt=rt,Rt=dt.easing;if(Rt&&(ze=Rt,delete dt.easing),!Re)for(let Gt in dt)if(dt[Gt].toString().indexOf("{{")>=0){Re=!0;break}}}),{type:6,styles:pe,easing:ze,offset:N.offset,containsDynamicStyles:Re,options:null}}_validateStyleAst(N,G){const pe=G.currentAnimateTimings;let Re=G.currentTime,ze=G.currentTime;pe&&ze>0&&(ze-=pe.duration+pe.delay),N.styles.forEach(rt=>{"string"!=typeof rt&&Object.keys(rt).forEach(dt=>{if(!this._driver.validateStyleProperty(dt))return void G.errors.push(`The provided animation property "${dt}" is not a supported CSS property for animations`);const Rt=G.collectedStyles[G.currentQuerySelector],Gt=Rt[dt];let rn=!0;Gt&&(ze!=Re&&ze>=Gt.startTime&&Re<=Gt.endTime&&(G.errors.push(`The CSS property "${dt}" that exists between the times of "${Gt.startTime}ms" and "${Gt.endTime}ms" is also being animated in a parallel animation between the times of "${ze}ms" and "${Re}ms"`),rn=!1),ze=Gt.startTime),rn&&(Rt[dt]={startTime:ze,endTime:Re}),G.options&&function(we,N,G){const pe=N.params||{},Re=_t(we);Re.length&&Re.forEach(ze=>{pe.hasOwnProperty(ze)||G.push(`Unable to resolve the local animation param ${ze} in the given list of values`)})}(rt[dt],G.options,G.errors)})})}visitKeyframes(N,G){const pe={type:5,styles:[],options:null};if(!G.currentAnimateTimings)return G.errors.push("keyframes() must be placed inside of a call to animate()"),pe;let ze=0;const rt=[];let dt=!1,Rt=!1,Gt=0;const rn=N.steps.map(_i=>{const xi=this._makeStyleAst(_i,G);let sr=null!=xi.offset?xi.offset:function(we){if("string"==typeof we)return null;let N=null;if(Array.isArray(we))we.forEach(G=>{if(Vt(G)&&G.hasOwnProperty("offset")){const pe=G;N=parseFloat(pe.offset),delete pe.offset}});else if(Vt(we)&&we.hasOwnProperty("offset")){const G=we;N=parseFloat(G.offset),delete G.offset}return N}(xi.styles),Qi=0;return null!=sr&&(ze++,Qi=xi.offset=sr),Rt=Rt||Qi<0||Qi>1,dt=dt||Qi0&&ze{const sr=Pn>0?xi==Ln?1:Pn*xi:rt[xi],Qi=sr*Kn;G.currentTime=_n+Bn.delay+Qi,Bn.duration=Qi,this._validateStyleAst(_i,G),_i.offset=sr,pe.styles.push(_i)}),pe}visitReference(N,G){return{type:8,animation:T(this,vt(N.animation),G),options:Ue(N.options)}}visitAnimateChild(N,G){return G.depCount++,{type:9,options:Ue(N.options)}}visitAnimateRef(N,G){return{type:10,animation:this.visitReference(N.animation,G),options:Ue(N.options)}}visitQuery(N,G){const pe=G.currentQuerySelector,Re=N.options||{};G.queryCount++,G.currentQuery=N;const[ze,rt]=function(we){const N=!!we.split(/\s*,\s*/).find(G=>":self"==G);return N&&(we=we.replace(tn,"")),we=we.replace(/@\*/g,$).replace(/@\w+/g,G=>$+"-"+G.substr(1)).replace(/:animating/g,ie),[we,N]}(N.selector);G.currentQuerySelector=pe.length?pe+" "+ze:ze,i(G.collectedStyles,G.currentQuerySelector,{});const dt=T(this,vt(N.animation),G);return G.currentQuery=null,G.currentQuerySelector=pe,{type:11,selector:ze,limit:Re.limit||0,optional:!!Re.optional,includeSelf:rt,animation:dt,originalSelector:N.selector,options:Ue(N.options)}}visitStagger(N,G){G.currentQuery||G.errors.push("stagger() can only be used inside of query()");const pe="full"===N.timings?{duration:0,delay:0,easing:"full"}:xe(N.timings,G.errors,!0);return{type:12,animation:T(this,vt(N.animation),G),timings:pe,options:null}}}class Qe{constructor(N){this.errors=N,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 Vt(we){return!Array.isArray(we)&&"object"==typeof we}function Ue(we){return we?(we=We(we)).params&&(we.params=function(we){return we?We(we):null}(we.params)):we={},we}function Se(we,N,G){return{duration:we,delay:N,easing:G}}function te(we,N,G,pe,Re,ze,rt=null,dt=!1){return{type:1,element:we,keyframes:N,preStyleProps:G,postStyleProps:pe,duration:Re,delay:ze,totalTime:Re+ze,easing:rt,subTimeline:dt}}class se{constructor(){this._map=new Map}get(N){return this._map.get(N)||[]}append(N,G){let pe=this._map.get(N);pe||this._map.set(N,pe=[]),pe.push(...G)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const It=new RegExp(":enter","g"),cn=new RegExp(":leave","g");function An(we,N,G,pe,Re,ze={},rt={},dt,Rt,Gt=[]){return(new lt).buildKeyframes(we,N,G,pe,Re,ze,rt,dt,Rt,Gt)}class lt{buildKeyframes(N,G,pe,Re,ze,rt,dt,Rt,Gt,rn=[]){Gt=Gt||new se;const pn=new He(N,G,Gt,Re,ze,rn,[]);pn.options=Rt,pn.currentTimeline.setStyles([rt],null,pn.errors,Rt),T(this,pe,pn);const Pn=pn.timelines.filter(Ln=>Ln.containsAnimation());if(Pn.length&&Object.keys(dt).length){const Ln=Pn[Pn.length-1];Ln.allowOnlyTimelineStyles()||Ln.setStyles([dt],null,pn.errors,Rt)}return Pn.length?Pn.map(Ln=>Ln.buildKeyframes()):[te(G,[],[],[],0,0,"",!1)]}visitTrigger(N,G){}visitState(N,G){}visitTransition(N,G){}visitAnimateChild(N,G){const pe=G.subInstructions.get(G.element);if(pe){const Re=G.createSubContext(N.options),ze=G.currentTimeline.currentTime,rt=this._visitSubInstructions(pe,Re,Re.options);ze!=rt&&G.transformIntoNewTimeline(rt)}G.previousNode=N}visitAnimateRef(N,G){const pe=G.createSubContext(N.options);pe.transformIntoNewTimeline(),this.visitReference(N.animation,pe),G.transformIntoNewTimeline(pe.currentTimeline.currentTime),G.previousNode=N}_visitSubInstructions(N,G,pe){let ze=G.currentTimeline.currentTime;const rt=null!=pe.duration?ne(pe.duration):null,dt=null!=pe.delay?ne(pe.delay):null;return 0!==rt&&N.forEach(Rt=>{const Gt=G.appendInstructionToTimeline(Rt,rt,dt);ze=Math.max(ze,Gt.duration+Gt.delay)}),ze}visitReference(N,G){G.updateOptions(N.options,!0),T(this,N.animation,G),G.previousNode=N}visitSequence(N,G){const pe=G.subContextCount;let Re=G;const ze=N.options;if(ze&&(ze.params||ze.delay)&&(Re=G.createSubContext(ze),Re.transformIntoNewTimeline(),null!=ze.delay)){6==Re.previousNode.type&&(Re.currentTimeline.snapshotCurrentStyles(),Re.previousNode=ct);const rt=ne(ze.delay);Re.delayNextStep(rt)}N.steps.length&&(N.steps.forEach(rt=>T(this,rt,Re)),Re.currentTimeline.applyStylesToKeyframe(),Re.subContextCount>pe&&Re.transformIntoNewTimeline()),G.previousNode=N}visitGroup(N,G){const pe=[];let Re=G.currentTimeline.currentTime;const ze=N.options&&N.options.delay?ne(N.options.delay):0;N.steps.forEach(rt=>{const dt=G.createSubContext(N.options);ze&&dt.delayNextStep(ze),T(this,rt,dt),Re=Math.max(Re,dt.currentTimeline.currentTime),pe.push(dt.currentTimeline)}),pe.forEach(rt=>G.currentTimeline.mergeTimelineCollectedStyles(rt)),G.transformIntoNewTimeline(Re),G.previousNode=N}_visitTiming(N,G){if(N.dynamic){const pe=N.strValue;return xe(G.params?At(pe,G.params,G.errors):pe,G.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,G){const pe=G.currentAnimateTimings=this._visitTiming(N.timings,G),Re=G.currentTimeline;pe.delay&&(G.incrementTime(pe.delay),Re.snapshotCurrentStyles());const ze=N.style;5==ze.type?this.visitKeyframes(ze,G):(G.incrementTime(pe.duration),this.visitStyle(ze,G),Re.applyStylesToKeyframe()),G.currentAnimateTimings=null,G.previousNode=N}visitStyle(N,G){const pe=G.currentTimeline,Re=G.currentAnimateTimings;!Re&&pe.getCurrentStyleProperties().length&&pe.forwardFrame();const ze=Re&&Re.easing||N.easing;N.isEmptyStep?pe.applyEmptyStep(ze):pe.setStyles(N.styles,ze,G.errors,G.options),G.previousNode=N}visitKeyframes(N,G){const pe=G.currentAnimateTimings,Re=G.currentTimeline.duration,ze=pe.duration,dt=G.createSubContext().currentTimeline;dt.easing=pe.easing,N.styles.forEach(Rt=>{dt.forwardTime((Rt.offset||0)*ze),dt.setStyles(Rt.styles,Rt.easing,G.errors,G.options),dt.applyStylesToKeyframe()}),G.currentTimeline.mergeTimelineCollectedStyles(dt),G.transformIntoNewTimeline(Re+ze),G.previousNode=N}visitQuery(N,G){const pe=G.currentTimeline.currentTime,Re=N.options||{},ze=Re.delay?ne(Re.delay):0;ze&&(6===G.previousNode.type||0==pe&&G.currentTimeline.getCurrentStyleProperties().length)&&(G.currentTimeline.snapshotCurrentStyles(),G.previousNode=ct);let rt=pe;const dt=G.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!Re.optional,G.errors);G.currentQueryTotal=dt.length;let Rt=null;dt.forEach((Gt,rn)=>{G.currentQueryIndex=rn;const pn=G.createSubContext(N.options,Gt);ze&&pn.delayNextStep(ze),Gt===G.element&&(Rt=pn.currentTimeline),T(this,N.animation,pn),pn.currentTimeline.applyStylesToKeyframe(),rt=Math.max(rt,pn.currentTimeline.currentTime)}),G.currentQueryIndex=0,G.currentQueryTotal=0,G.transformIntoNewTimeline(rt),Rt&&(G.currentTimeline.mergeTimelineCollectedStyles(Rt),G.currentTimeline.snapshotCurrentStyles()),G.previousNode=N}visitStagger(N,G){const pe=G.parentContext,Re=G.currentTimeline,ze=N.timings,rt=Math.abs(ze.duration),dt=rt*(G.currentQueryTotal-1);let Rt=rt*G.currentQueryIndex;switch(ze.duration<0?"reverse":ze.easing){case"reverse":Rt=dt-Rt;break;case"full":Rt=pe.currentStaggerTime}const rn=G.currentTimeline;Rt&&rn.delayNextStep(Rt);const pn=rn.currentTime;T(this,N.animation,G),G.previousNode=N,pe.currentStaggerTime=Re.currentTime-pn+(Re.startTime-pe.currentTimeline.startTime)}}const ct={};class He{constructor(N,G,pe,Re,ze,rt,dt,Rt){this._driver=N,this.element=G,this.subInstructions=pe,this._enterClassName=Re,this._leaveClassName=ze,this.errors=rt,this.timelines=dt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ct,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Rt||new mt(this._driver,G,0),dt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,G){if(!N)return;const pe=N;let Re=this.options;null!=pe.duration&&(Re.duration=ne(pe.duration)),null!=pe.delay&&(Re.delay=ne(pe.delay));const ze=pe.params;if(ze){let rt=Re.params;rt||(rt=this.options.params={}),Object.keys(ze).forEach(dt=>{(!G||!rt.hasOwnProperty(dt))&&(rt[dt]=At(ze[dt],rt,this.errors))})}}_copyOptions(){const N={};if(this.options){const G=this.options.params;if(G){const pe=N.params={};Object.keys(G).forEach(Re=>{pe[Re]=G[Re]})}}return N}createSubContext(N=null,G,pe){const Re=G||this.element,ze=new He(this._driver,Re,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Re,pe||0));return ze.previousNode=this.previousNode,ze.currentAnimateTimings=this.currentAnimateTimings,ze.options=this._copyOptions(),ze.updateOptions(N),ze.currentQueryIndex=this.currentQueryIndex,ze.currentQueryTotal=this.currentQueryTotal,ze.parentContext=this,this.subContextCount++,ze}transformIntoNewTimeline(N){return this.previousNode=ct,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,G,pe){const Re={duration:null!=G?G:N.duration,delay:this.currentTimeline.currentTime+(null!=pe?pe:0)+N.delay,easing:""},ze=new Ot(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,Re,N.stretchStartingKeyframe);return this.timelines.push(ze),Re}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,G,pe,Re,ze,rt){let dt=[];if(Re&&dt.push(this.element),N.length>0){N=(N=N.replace(It,"."+this._enterClassName)).replace(cn,"."+this._leaveClassName);let Gt=this._driver.query(this.element,N,1!=pe);0!==pe&&(Gt=pe<0?Gt.slice(Gt.length+pe,Gt.length):Gt.slice(0,pe)),dt.push(...Gt)}return!ze&&0==dt.length&&rt.push(`\`query("${G}")\` returned zero elements. (Use \`query("${G}", { optional: true })\` if you wish to allow this.)`),dt}}class mt{constructor(N,G,pe,Re){this._driver=N,this.element=G,this.startTime=pe,this._elementTimelineStylesLookup=Re,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(G),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(G,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(N){const G=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||G?(this.forwardTime(this.currentTime+N),G&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,G){return this.applyStylesToKeyframe(),new mt(this._driver,N,G||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+=1,this._loadKeyframe()}forwardTime(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,G){this._localTimelineStyles[N]=G,this._globalTimelineStyles[N]=G,this._styleSummary[N]={time:this.currentTime,value:G}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&(this._previousKeyframe.easing=N),Object.keys(this._globalTimelineStyles).forEach(G=>{this._backFill[G]=this._globalTimelineStyles[G]||_.l3,this._currentKeyframe[G]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,G,pe,Re){G&&(this._previousKeyframe.easing=G);const ze=Re&&Re.params||{},rt=function(we,N){const G={};let pe;return we.forEach(Re=>{"*"===Re?(pe=pe||Object.keys(N),pe.forEach(ze=>{G[ze]=_.l3})):ft(Re,!1,G)}),G}(N,this._globalTimelineStyles);Object.keys(rt).forEach(dt=>{const Rt=At(rt[dt],ze,pe);this._pendingStyles[dt]=Rt,this._localTimelineStyles.hasOwnProperty(dt)||(this._backFill[dt]=this._globalTimelineStyles.hasOwnProperty(dt)?this._globalTimelineStyles[dt]:_.l3),this._updateStyle(dt,Rt)})}applyStylesToKeyframe(){const N=this._pendingStyles,G=Object.keys(N);0!=G.length&&(this._pendingStyles={},G.forEach(pe=>{this._currentKeyframe[pe]=N[pe]}),Object.keys(this._localTimelineStyles).forEach(pe=>{this._currentKeyframe.hasOwnProperty(pe)||(this._currentKeyframe[pe]=this._localTimelineStyles[pe])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(N=>{const G=this._localTimelineStyles[N];this._pendingStyles[N]=G,this._updateStyle(N,G)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let G in this._currentKeyframe)N.push(G);return N}mergeTimelineCollectedStyles(N){Object.keys(N._styleSummary).forEach(G=>{const pe=this._styleSummary[G],Re=N._styleSummary[G];(!pe||Re.time>pe.time)&&this._updateStyle(G,Re.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,G=new Set,pe=1===this._keyframes.size&&0===this.duration;let Re=[];this._keyframes.forEach((dt,Rt)=>{const Gt=ft(dt,!0);Object.keys(Gt).forEach(rn=>{const pn=Gt[rn];pn==_.k1?N.add(rn):pn==_.l3&&G.add(rn)}),pe||(Gt.offset=Rt/this.duration),Re.push(Gt)});const ze=N.size?Tt(N.values()):[],rt=G.size?Tt(G.values()):[];if(pe){const dt=Re[0],Rt=We(dt);dt.offset=0,Rt.offset=1,Re=[dt,Rt]}return te(this.element,Re,ze,rt,this.duration,this.startTime,this.easing,!1)}}class Ot extends mt{constructor(N,G,pe,Re,ze,rt,dt=!1){super(N,G,rt.delay),this.keyframes=pe,this.preStyleProps=Re,this.postStyleProps=ze,this._stretchStartingKeyframe=dt,this.timings={duration:rt.duration,delay:rt.delay,easing:rt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:G,duration:pe,easing:Re}=this.timings;if(this._stretchStartingKeyframe&&G){const ze=[],rt=pe+G,dt=G/rt,Rt=ft(N[0],!1);Rt.offset=0,ze.push(Rt);const Gt=ft(N[0],!1);Gt.offset=un(dt),ze.push(Gt);const rn=N.length-1;for(let pn=1;pn<=rn;pn++){let Pn=ft(N[pn],!1);Pn.offset=un((G+Pn.offset*pe)/rt),ze.push(Pn)}pe=rt,G=0,Re="",N=ze}return te(this.element,N,this.preStyleProps,this.postStyleProps,pe,G,Re,!0)}}function un(we,N=3){const G=Math.pow(10,N-1);return Math.round(we*G)/G}class Yn{}class Oi extends Yn{normalizePropertyName(N,G){return Et(N)}normalizeStyleValue(N,G,pe,Re){let ze="";const rt=pe.toString().trim();if(Ni[G]&&0!==pe&&"0"!==pe)if("number"==typeof pe)ze="px";else{const dt=pe.match(/^[+-]?[\d\.]+([a-z]*)$/);dt&&0==dt[1].length&&Re.push(`Please provide a CSS unit value for ${N}:${pe}`)}return rt+ze}}const Ni=(()=>function(we){const N={};return we.forEach(G=>N[G]=!0),N}("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 qn(we,N,G,pe,Re,ze,rt,dt,Rt,Gt,rn,pn,Pn){return{type:0,element:we,triggerName:N,isRemovalTransition:Re,fromState:G,fromStyles:ze,toState:pe,toStyles:rt,timelines:dt,queriedElements:Rt,preStyleProps:Gt,postStyleProps:rn,totalTime:pn,errors:Pn}}const Vi={};class ci{constructor(N,G,pe){this._triggerName=N,this.ast=G,this._stateStyles=pe}match(N,G,pe,Re){return function(we,N,G,pe,Re){return we.some(ze=>ze(N,G,pe,Re))}(this.ast.matchers,N,G,pe,Re)}buildStyles(N,G,pe){const Re=this._stateStyles["*"],ze=this._stateStyles[N],rt=Re?Re.buildStyles(G,pe):{};return ze?ze.buildStyles(G,pe):rt}build(N,G,pe,Re,ze,rt,dt,Rt,Gt,rn){const pn=[],Pn=this.ast.options&&this.ast.options.params||Vi,_n=this.buildStyles(pe,dt&&dt.params||Vi,pn),Bn=Rt&&Rt.params||Vi,Kn=this.buildStyles(Re,Bn,pn),_i=new Set,xi=new Map,sr=new Map,Qi="void"===Re,Nr={params:Object.assign(Object.assign({},Pn),Bn)},fr=rn?[]:An(N,G,this.ast.animation,ze,rt,_n,Kn,Nr,Gt,pn);let Xi=0;if(fr.forEach(zi=>{Xi=Math.max(zi.duration+zi.delay,Xi)}),pn.length)return qn(G,this._triggerName,pe,Re,Qi,_n,Kn,[],[],xi,sr,Xi,pn);fr.forEach(zi=>{const Pr=zi.element,ys=i(xi,Pr,{});zi.preStyleProps.forEach(Ur=>ys[Ur]=!0);const Yi=i(sr,Pr,{});zi.postStyleProps.forEach(Ur=>Yi[Ur]=!0),Pr!==G&&_i.add(Pr)});const gr=Tt(_i.values());return qn(G,this._triggerName,pe,Re,Qi,_n,Kn,fr,gr,xi,sr,Xi)}}class qe{constructor(N,G,pe){this.styles=N,this.defaultParams=G,this.normalizer=pe}buildStyles(N,G){const pe={},Re=We(this.defaultParams);return Object.keys(N).forEach(ze=>{const rt=N[ze];null!=rt&&(Re[ze]=rt)}),this.styles.styles.forEach(ze=>{if("string"!=typeof ze){const rt=ze;Object.keys(rt).forEach(dt=>{let Rt=rt[dt];Rt.length>1&&(Rt=At(Rt,Re,G));const Gt=this.normalizer.normalizePropertyName(dt,G);Rt=this.normalizer.normalizeStyleValue(dt,Gt,Rt,G),pe[Gt]=Rt})}}),pe}}class Le{constructor(N,G,pe){this.name=N,this.ast=G,this._normalizer=pe,this.transitionFactories=[],this.states={},G.states.forEach(Re=>{this.states[Re.name]=new qe(Re.style,Re.options&&Re.options.params||{},pe)}),de(this.states,"true","1"),de(this.states,"false","0"),G.transitions.forEach(Re=>{this.transitionFactories.push(new ci(N,Re,this.states))}),this.fallbackTransition=function(we,N,G){return new ci(we,{type:1,animation:{type:2,steps:[],options:null},matchers:[(rt,dt)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,G,pe,Re){return this.transitionFactories.find(rt=>rt.match(N,G,pe,Re))||null}matchStyles(N,G,pe){return this.fallbackTransition.buildStyles(N,G,pe)}}function de(we,N,G){we.hasOwnProperty(N)?we.hasOwnProperty(G)||(we[G]=we[N]):we.hasOwnProperty(G)&&(we[N]=we[G])}const Fe=new se;class Ze{constructor(N,G,pe){this.bodyNode=N,this._driver=G,this._normalizer=pe,this._animations={},this._playersById={},this.players=[]}register(N,G){const pe=[],Re=Dt(this._driver,G,pe);if(pe.length)throw new Error(`Unable to build the animation due to the following errors: ${pe.join("\n")}`);this._animations[N]=Re}_buildPlayer(N,G,pe){const Re=N.element,ze=u(0,this._normalizer,0,N.keyframes,G,pe);return this._driver.animate(Re,ze,N.duration,N.delay,N.easing,[],!0)}create(N,G,pe={}){const Re=[],ze=this._animations[N];let rt;const dt=new Map;if(ze?(rt=An(this._driver,G,ze,Y,X,{},{},pe,Fe,Re),rt.forEach(rn=>{const pn=i(dt,rn.element,{});rn.postStyleProps.forEach(Pn=>pn[Pn]=null)})):(Re.push("The requested animation doesn't exist or has already been destroyed"),rt=[]),Re.length)throw new Error(`Unable to create the animation due to the following errors: ${Re.join("\n")}`);dt.forEach((rn,pn)=>{Object.keys(rn).forEach(Pn=>{rn[Pn]=this._driver.computeStyle(pn,Pn,_.l3)})});const Gt=d(rt.map(rn=>{const pn=dt.get(rn.element);return this._buildPlayer(rn,{},pn)}));return this._playersById[N]=Gt,Gt.onDestroy(()=>this.destroy(N)),this.players.push(Gt),Gt}destroy(N){const G=this._getPlayer(N);G.destroy(),delete this._playersById[N];const pe=this.players.indexOf(G);pe>=0&&this.players.splice(pe,1)}_getPlayer(N){const G=this._playersById[N];if(!G)throw new Error(`Unable to find the timeline player referenced by ${N}`);return G}listen(N,G,pe,Re){const ze=o(G,"","","");return h(this._getPlayer(N),pe,ze,Re),()=>{}}command(N,G,pe,Re){if("register"==pe)return void this.register(N,Re[0]);if("create"==pe)return void this.create(N,G,Re[0]||{});const ze=this._getPlayer(N);switch(pe){case"play":ze.play();break;case"pause":ze.pause();break;case"reset":ze.reset();break;case"restart":ze.restart();break;case"finish":ze.finish();break;case"init":ze.init();break;case"setPosition":ze.setPosition(parseFloat(Re[0]));break;case"destroy":this.destroy(N)}}}const Wt="ng-animate-queued",Ht="ng-animate-disabled",zn=[],$n={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ti={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},jn="__ng_removed";class Qn{constructor(N,G=""){this.namespaceId=G;const pe=N&&N.hasOwnProperty("value");if(this.value=null!=(we=pe?N.value:N)?we:null,pe){const ze=We(N);delete ze.value,this.options=ze}else this.options={};var we;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(N){const G=N.params;if(G){const pe=this.options.params;Object.keys(G).forEach(Re=>{null==pe[Re]&&(pe[Re]=G[Re])})}}}const kn="void",Mi=new Qn(kn);class Zi{constructor(N,G,pe){this.id=N,this.hostElement=G,this._engine=pe,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+N,Fn(G,this._hostClassName)}listen(N,G,pe,Re){if(!this._triggers.hasOwnProperty(G))throw new Error(`Unable to listen on the animation trigger event "${pe}" because the animation trigger "${G}" doesn't exist!`);if(null==pe||0==pe.length)throw new Error(`Unable to listen on the animation trigger "${G}" because the provided event is undefined!`);if("start"!=(we=pe)&&"done"!=we)throw new Error(`The provided animation trigger event "${pe}" for the animation trigger "${G}" is not supported!`);var we;const ze=i(this._elementListeners,N,[]),rt={name:G,phase:pe,callback:Re};ze.push(rt);const dt=i(this._engine.statesByElement,N,{});return dt.hasOwnProperty(G)||(Fn(N,ee),Fn(N,ee+"-"+G),dt[G]=Mi),()=>{this._engine.afterFlush(()=>{const Rt=ze.indexOf(rt);Rt>=0&&ze.splice(Rt,1),this._triggers[G]||delete dt[G]})}}register(N,G){return!this._triggers[N]&&(this._triggers[N]=G,!0)}_getTrigger(N){const G=this._triggers[N];if(!G)throw new Error(`The provided animation trigger "${N}" has not been registered!`);return G}trigger(N,G,pe,Re=!0){const ze=this._getTrigger(G),rt=new pi(this.id,G,N);let dt=this._engine.statesByElement.get(N);dt||(Fn(N,ee),Fn(N,ee+"-"+G),this._engine.statesByElement.set(N,dt={}));let Rt=dt[G];const Gt=new Qn(pe,this.id);if(!(pe&&pe.hasOwnProperty("value"))&&Rt&&Gt.absorbOptions(Rt.options),dt[G]=Gt,Rt||(Rt=Mi),Gt.value!==kn&&Rt.value===Gt.value){if(!function(we,N){const G=Object.keys(we),pe=Object.keys(N);if(G.length!=pe.length)return!1;for(let Re=0;Re{pt(N,Kn),at(N,_i)})}return}const Pn=i(this._engine.playersByElement,N,[]);Pn.forEach(Bn=>{Bn.namespaceId==this.id&&Bn.triggerName==G&&Bn.queued&&Bn.destroy()});let Ln=ze.matchTransition(Rt.value,Gt.value,N,Gt.params),_n=!1;if(!Ln){if(!Re)return;Ln=ze.fallbackTransition,_n=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:G,transition:Ln,fromState:Rt,toState:Gt,player:rt,isFallbackTransition:_n}),_n||(Fn(N,Wt),rt.onStart(()=>{$i(N,Wt)})),rt.onDone(()=>{let Bn=this.players.indexOf(rt);Bn>=0&&this.players.splice(Bn,1);const Kn=this._engine.playersByElement.get(N);if(Kn){let _i=Kn.indexOf(rt);_i>=0&&Kn.splice(_i,1)}}),this.players.push(rt),Pn.push(rt),rt}deregister(N){delete this._triggers[N],this._engine.statesByElement.forEach((G,pe)=>{delete G[N]}),this._elementListeners.forEach((G,pe)=>{this._elementListeners.set(pe,G.filter(Re=>Re.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const G=this._engine.playersByElement.get(N);G&&(G.forEach(pe=>pe.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,G){const pe=this._engine.driver.query(N,$,!0);pe.forEach(Re=>{if(Re[jn])return;const ze=this._engine.fetchNamespacesByElement(Re);ze.size?ze.forEach(rt=>rt.triggerLeaveAnimation(Re,G,!1,!0)):this.clearElementCache(Re)}),this._engine.afterFlushAnimationsDone(()=>pe.forEach(Re=>this.clearElementCache(Re)))}triggerLeaveAnimation(N,G,pe,Re){const ze=this._engine.statesByElement.get(N);if(ze){const rt=[];if(Object.keys(ze).forEach(dt=>{if(this._triggers[dt]){const Rt=this.trigger(N,dt,kn,Re);Rt&&rt.push(Rt)}}),rt.length)return this._engine.markElementAsRemoved(this.id,N,!0,G),pe&&d(rt).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const G=this._elementListeners.get(N),pe=this._engine.statesByElement.get(N);if(G&&pe){const Re=new Set;G.forEach(ze=>{const rt=ze.name;if(Re.has(rt))return;Re.add(rt);const Rt=this._triggers[rt].fallbackTransition,Gt=pe[rt]||Mi,rn=new Qn(kn),pn=new pi(this.id,rt,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:rt,transition:Rt,fromState:Gt,toState:rn,player:pn,isFallbackTransition:!0})})}}removeNode(N,G){const pe=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,G),this.triggerLeaveAnimation(N,G,!0))return;let Re=!1;if(pe.totalAnimations){const ze=pe.players.length?pe.playersByQueriedElement.get(N):[];if(ze&&ze.length)Re=!0;else{let rt=N;for(;rt=rt.parentNode;)if(pe.statesByElement.get(rt)){Re=!0;break}}}if(this.prepareLeaveAnimationListeners(N),Re)pe.markElementAsRemoved(this.id,N,!1,G);else{const ze=N[jn];(!ze||ze===$n)&&(pe.afterFlush(()=>this.clearElementCache(N)),pe.destroyInnerAnimations(N),pe._onRemovalComplete(N,G))}}insertNode(N,G){Fn(N,this._hostClassName)}drainQueuedTransitions(N){const G=[];return this._queue.forEach(pe=>{const Re=pe.player;if(Re.destroyed)return;const ze=pe.element,rt=this._elementListeners.get(ze);rt&&rt.forEach(dt=>{if(dt.name==pe.triggerName){const Rt=o(ze,pe.triggerName,pe.fromState.value,pe.toState.value);Rt._data=N,h(pe.player,dt.phase,Rt,dt.callback)}}),Re.markedForDestroy?this._engine.afterFlush(()=>{Re.destroy()}):G.push(pe)}),this._queue=[],G.sort((pe,Re)=>{const ze=pe.transition.ast.depCount,rt=Re.transition.ast.depCount;return 0==ze||0==rt?ze-rt:this._engine.driver.containsElement(pe.element,Re.element)?1:-1})}destroy(N){this.players.forEach(G=>G.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}elementContainsData(N){let G=!1;return this._elementListeners.has(N)&&(G=!0),G=!!this._queue.find(pe=>pe.element===N)||G,G}}class Xn{constructor(N,G,pe){this.bodyNode=N,this.driver=G,this._normalizer=pe,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=(Re,ze)=>{}}_onRemovalComplete(N,G){this.onRemovalComplete(N,G)}get queuedPlayers(){const N=[];return this._namespaceList.forEach(G=>{G.players.forEach(pe=>{pe.queued&&N.push(pe)})}),N}createNamespace(N,G){const pe=new Zi(N,G,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,G)?this._balanceNamespaceList(pe,G):(this.newHostElements.set(G,pe),this.collectEnterElement(G)),this._namespaceLookup[N]=pe}_balanceNamespaceList(N,G){const pe=this._namespaceList.length-1;if(pe>=0){let Re=!1;for(let ze=pe;ze>=0;ze--)if(this.driver.containsElement(this._namespaceList[ze].hostElement,G)){this._namespaceList.splice(ze+1,0,N),Re=!0;break}Re||this._namespaceList.splice(0,0,N)}else this._namespaceList.push(N);return this.namespacesByHostElement.set(G,N),N}register(N,G){let pe=this._namespaceLookup[N];return pe||(pe=this.createNamespace(N,G)),pe}registerTrigger(N,G,pe){let Re=this._namespaceLookup[N];Re&&Re.register(G,pe)&&this.totalAnimations++}destroy(N,G){if(!N)return;const pe=this._fetchNamespace(N);this.afterFlush(()=>{this.namespacesByHostElement.delete(pe.hostElement),delete this._namespaceLookup[N];const Re=this._namespaceList.indexOf(pe);Re>=0&&this._namespaceList.splice(Re,1)}),this.afterFlushAnimationsDone(()=>pe.destroy(G))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const G=new Set,pe=this.statesByElement.get(N);if(pe){const Re=Object.keys(pe);for(let ze=0;ze=0&&this.collectedLeaveElements.splice(rt,1)}if(N){const rt=this._fetchNamespace(N);rt&&rt.insertNode(G,pe)}Re&&this.collectEnterElement(G)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,G){G?this.disabledNodes.has(N)||(this.disabledNodes.add(N),Fn(N,Ht)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),$i(N,Ht))}removeNode(N,G,pe,Re){if(tr(G)){const ze=N?this._fetchNamespace(N):null;if(ze?ze.removeNode(G,Re):this.markElementAsRemoved(N,G,!1,Re),pe){const rt=this.namespacesByHostElement.get(G);rt&&rt.id!==N&&rt.removeNode(G,Re)}}else this._onRemovalComplete(G,Re)}markElementAsRemoved(N,G,pe,Re){this.collectedLeaveElements.push(G),G[jn]={namespaceId:N,setForRemoval:Re,hasAnimation:pe,removedBeforeQueried:!1}}listen(N,G,pe,Re,ze){return tr(G)?this._fetchNamespace(N).listen(G,pe,Re,ze):()=>{}}_buildInstruction(N,G,pe,Re,ze){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,pe,Re,N.fromState.options,N.toState.options,G,ze)}destroyInnerAnimations(N){let G=this.driver.query(N,$,!0);G.forEach(pe=>this.destroyActiveAnimationsForElement(pe)),0!=this.playersByQueriedElement.size&&(G=this.driver.query(N,ie,!0),G.forEach(pe=>this.finishActiveQueriedAnimationOnElement(pe)))}destroyActiveAnimationsForElement(N){const G=this.playersByElement.get(N);G&&G.forEach(pe=>{pe.queued?pe.markedForDestroy=!0:pe.destroy()})}finishActiveQueriedAnimationOnElement(N){const G=this.playersByQueriedElement.get(N);G&&G.forEach(pe=>pe.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return d(this.players).onDone(()=>N());N()})}processLeaveNode(N){var G;const pe=N[jn];if(pe&&pe.setForRemoval){if(N[jn]=$n,pe.namespaceId){this.destroyInnerAnimations(N);const Re=this._fetchNamespace(pe.namespaceId);Re&&Re.clearElementCache(N)}this._onRemovalComplete(N,pe.setForRemoval)}(null===(G=N.classList)||void 0===G?void 0:G.contains(Ht))&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(Re=>{this.markElementAsDisabled(Re,!1)})}flush(N=-1){let G=[];if(this.newHostElements.size&&(this.newHostElements.forEach((pe,Re)=>this._balanceNamespaceList(pe,Re)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let pe=0;pepe()),this._flushFns=[],this._whenQuietFns.length){const pe=this._whenQuietFns;this._whenQuietFns=[],G.length?d(G).onDone(()=>{pe.forEach(Re=>Re())}):pe.forEach(Re=>Re())}}reportError(N){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${N.join("\n")}`)}_flushAnimations(N,G){const pe=new se,Re=[],ze=new Map,rt=[],dt=new Map,Rt=new Map,Gt=new Map,rn=new Set;this.disabledNodes.forEach(mn=>{rn.add(mn);const Mn=this.driver.query(mn,".ng-animate-queued",!0);for(let En=0;En{const En=Y+Bn++;_n.set(Mn,En),mn.forEach(li=>Fn(li,En))});const Kn=[],_i=new Set,xi=new Set;for(let mn=0;mn_i.add(li)):xi.add(Mn))}const sr=new Map,Qi=oi(Pn,Array.from(_i));Qi.forEach((mn,Mn)=>{const En=X+Bn++;sr.set(Mn,En),mn.forEach(li=>Fn(li,En))}),N.push(()=>{Ln.forEach((mn,Mn)=>{const En=_n.get(Mn);mn.forEach(li=>$i(li,En))}),Qi.forEach((mn,Mn)=>{const En=sr.get(Mn);mn.forEach(li=>$i(li,En))}),Kn.forEach(mn=>{this.processLeaveNode(mn)})});const Nr=[],fr=[];for(let mn=this._namespaceList.length-1;mn>=0;mn--)this._namespaceList[mn].drainQueuedTransitions(G).forEach(En=>{const li=En.player,ii=En.element;if(Nr.push(li),this.collectedEnterElements.length){const or=ii[jn];if(or&&or.setForMove)return void li.destroy()}const Hi=!pn||!this.driver.containsElement(pn,ii),Zn=sr.get(ii),dr=_n.get(ii),Si=this._buildInstruction(En,pe,dr,Zn,Hi);if(Si.errors&&Si.errors.length)return void fr.push(Si);if(Hi)return li.onStart(()=>pt(ii,Si.fromStyles)),li.onDestroy(()=>at(ii,Si.toStyles)),void Re.push(li);if(En.isFallbackTransition)return li.onStart(()=>pt(ii,Si.fromStyles)),li.onDestroy(()=>at(ii,Si.toStyles)),void Re.push(li);const Es=[];Si.timelines.forEach(or=>{or.stretchStartingKeyframe=!0,this.disabledNodes.has(or.element)||Es.push(or)}),Si.timelines=Es,pe.append(ii,Si.timelines),rt.push({instruction:Si,player:li,element:ii}),Si.queriedElements.forEach(or=>i(dt,or,[]).push(li)),Si.preStyleProps.forEach((or,ar)=>{const Ir=Object.keys(or);if(Ir.length){let _r=Rt.get(ar);_r||Rt.set(ar,_r=new Set),Ir.forEach(ts=>_r.add(ts))}}),Si.postStyleProps.forEach((or,ar)=>{const Ir=Object.keys(or);let _r=Gt.get(ar);_r||Gt.set(ar,_r=new Set),Ir.forEach(ts=>_r.add(ts))})});if(fr.length){const mn=[];fr.forEach(Mn=>{mn.push(`@${Mn.triggerName} has failed due to:\n`),Mn.errors.forEach(En=>mn.push(`- ${En}\n`))}),Nr.forEach(Mn=>Mn.destroy()),this.reportError(mn)}const Xi=new Map,gr=new Map;rt.forEach(mn=>{const Mn=mn.element;pe.has(Mn)&&(gr.set(Mn,Mn),this._beforeAnimationBuild(mn.player.namespaceId,mn.instruction,Xi))}),Re.forEach(mn=>{const Mn=mn.element;this._getPreviousPlayers(Mn,!1,mn.namespaceId,mn.triggerName,null).forEach(li=>{i(Xi,Mn,[]).push(li),li.destroy()})});const zi=Kn.filter(mn=>yn(mn,Rt,Gt)),Pr=new Map;qi(Pr,this.driver,xi,Gt,_.l3).forEach(mn=>{yn(mn,Rt,Gt)&&zi.push(mn)});const Yi=new Map;Ln.forEach((mn,Mn)=>{qi(Yi,this.driver,new Set(mn),Rt,_.k1)}),zi.forEach(mn=>{const Mn=Pr.get(mn),En=Yi.get(mn);Pr.set(mn,Object.assign(Object.assign({},Mn),En))});const Ur=[],bs=[],Cs={};rt.forEach(mn=>{const{element:Mn,player:En,instruction:li}=mn;if(pe.has(Mn)){if(rn.has(Mn))return En.onDestroy(()=>at(Mn,li.toStyles)),En.disabled=!0,En.overrideTotalTime(li.totalTime),void Re.push(En);let ii=Cs;if(gr.size>1){let Zn=Mn;const dr=[];for(;Zn=Zn.parentNode;){const Si=gr.get(Zn);if(Si){ii=Si;break}dr.push(Zn)}dr.forEach(Si=>gr.set(Si,ii))}const Hi=this._buildAnimation(En.namespaceId,li,Xi,ze,Yi,Pr);if(En.setRealPlayer(Hi),ii===Cs)Ur.push(En);else{const Zn=this.playersByElement.get(ii);Zn&&Zn.length&&(En.parentPlayer=d(Zn)),Re.push(En)}}else pt(Mn,li.fromStyles),En.onDestroy(()=>at(Mn,li.toStyles)),bs.push(En),rn.has(Mn)&&Re.push(En)}),bs.forEach(mn=>{const Mn=ze.get(mn.element);if(Mn&&Mn.length){const En=d(Mn);mn.setRealPlayer(En)}}),Re.forEach(mn=>{mn.parentPlayer?mn.syncPlayerEvents(mn.parentPlayer):mn.destroy()});for(let mn=0;mn!Hi.destroyed);ii.length?mi(this,Mn,ii):this.processLeaveNode(Mn)}return Kn.length=0,Ur.forEach(mn=>{this.players.push(mn),mn.onDone(()=>{mn.destroy();const Mn=this.players.indexOf(mn);this.players.splice(Mn,1)}),mn.play()}),Ur}elementContainsData(N,G){let pe=!1;const Re=G[jn];return Re&&Re.setForRemoval&&(pe=!0),this.playersByElement.has(G)&&(pe=!0),this.playersByQueriedElement.has(G)&&(pe=!0),this.statesByElement.has(G)&&(pe=!0),this._fetchNamespace(N).elementContainsData(G)||pe}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,G,pe,Re,ze){let rt=[];if(G){const dt=this.playersByQueriedElement.get(N);dt&&(rt=dt)}else{const dt=this.playersByElement.get(N);if(dt){const Rt=!ze||ze==kn;dt.forEach(Gt=>{Gt.queued||!Rt&&Gt.triggerName!=Re||rt.push(Gt)})}}return(pe||Re)&&(rt=rt.filter(dt=>!(pe&&pe!=dt.namespaceId||Re&&Re!=dt.triggerName))),rt}_beforeAnimationBuild(N,G,pe){const ze=G.element,rt=G.isRemovalTransition?void 0:N,dt=G.isRemovalTransition?void 0:G.triggerName;for(const Rt of G.timelines){const Gt=Rt.element,rn=Gt!==ze,pn=i(pe,Gt,[]);this._getPreviousPlayers(Gt,rn,rt,dt,G.toState).forEach(Ln=>{const _n=Ln.getRealPlayer();_n.beforeDestroy&&_n.beforeDestroy(),Ln.destroy(),pn.push(Ln)})}pt(ze,G.fromStyles)}_buildAnimation(N,G,pe,Re,ze,rt){const dt=G.triggerName,Rt=G.element,Gt=[],rn=new Set,pn=new Set,Pn=G.timelines.map(_n=>{const Bn=_n.element;rn.add(Bn);const Kn=Bn[jn];if(Kn&&Kn.removedBeforeQueried)return new _.ZN(_n.duration,_n.delay);const _i=Bn!==Rt,xi=function(we){const N=[];return ur(we,N),N}((pe.get(Bn)||zn).map(Xi=>Xi.getRealPlayer())).filter(Xi=>!!Xi.element&&Xi.element===Bn),sr=ze.get(Bn),Qi=rt.get(Bn),Nr=u(0,this._normalizer,0,_n.keyframes,sr,Qi),fr=this._buildPlayer(_n,Nr,xi);if(_n.subTimeline&&Re&&pn.add(Bn),_i){const Xi=new pi(N,dt,Bn);Xi.setRealPlayer(fr),Gt.push(Xi)}return fr});Gt.forEach(_n=>{i(this.playersByQueriedElement,_n.element,[]).push(_n),_n.onDone(()=>function(we,N,G){let pe;if(we instanceof Map){if(pe=we.get(N),pe){if(pe.length){const Re=pe.indexOf(G);pe.splice(Re,1)}0==pe.length&&we.delete(N)}}else if(pe=we[N],pe){if(pe.length){const Re=pe.indexOf(G);pe.splice(Re,1)}0==pe.length&&delete we[N]}return pe}(this.playersByQueriedElement,_n.element,_n))}),rn.forEach(_n=>Fn(_n,J));const Ln=d(Pn);return Ln.onDestroy(()=>{rn.forEach(_n=>$i(_n,J)),at(Rt,G.toStyles)}),pn.forEach(_n=>{i(Re,_n,[]).push(Ln)}),Ln}_buildPlayer(N,G,pe){return G.length>0?this.driver.animate(N.element,G,N.duration,N.delay,N.easing,pe):new _.ZN(N.duration,N.delay)}}class pi{constructor(N,G,pe){this.namespaceId=N,this.triggerName=G,this.element=pe,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(N){this._containsRealPlayer||(this._player=N,Object.keys(this._queuedCallbacks).forEach(G=>{this._queuedCallbacks[G].forEach(pe=>h(N,G,void 0,pe))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const G=this._player;G.triggerCallback&&N.onStart(()=>G.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,G){i(this._queuedCallbacks,N,[]).push(G)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}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(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const G=this._player;G.triggerCallback&&G.triggerCallback(N)}}function tr(we){return we&&1===we.nodeType}function Rn(we,N){const G=we.style.display;return we.style.display=null!=N?N:"none",G}function qi(we,N,G,pe,Re){const ze=[];G.forEach(Rt=>ze.push(Rn(Rt)));const rt=[];pe.forEach((Rt,Gt)=>{const rn={};Rt.forEach(pn=>{const Pn=rn[pn]=N.computeStyle(Gt,pn,Re);(!Pn||0==Pn.length)&&(Gt[jn]=ti,rt.push(Gt))}),we.set(Gt,rn)});let dt=0;return G.forEach(Rt=>Rn(Rt,ze[dt++])),rt}function oi(we,N){const G=new Map;if(we.forEach(dt=>G.set(dt,[])),0==N.length)return G;const Re=new Set(N),ze=new Map;function rt(dt){if(!dt)return 1;let Rt=ze.get(dt);if(Rt)return Rt;const Gt=dt.parentNode;return Rt=G.has(Gt)?Gt:Re.has(Gt)?1:rt(Gt),ze.set(dt,Rt),Rt}return N.forEach(dt=>{const Rt=rt(dt);1!==Rt&&G.get(Rt).push(dt)}),G}function Fn(we,N){var G;null===(G=we.classList)||void 0===G||G.add(N)}function $i(we,N){var G;null===(G=we.classList)||void 0===G||G.remove(N)}function mi(we,N,G){d(G).onDone(()=>we.processLeaveNode(N))}function ur(we,N){for(let G=0;GRe.add(ze)):N.set(we,pe),G.delete(we),!0}class Sn{constructor(N,G,pe){this.bodyNode=N,this._driver=G,this._normalizer=pe,this._triggerCache={},this.onRemovalComplete=(Re,ze)=>{},this._transitionEngine=new Xn(N,G,pe),this._timelineEngine=new Ze(N,G,pe),this._transitionEngine.onRemovalComplete=(Re,ze)=>this.onRemovalComplete(Re,ze)}registerTrigger(N,G,pe,Re,ze){const rt=N+"-"+Re;let dt=this._triggerCache[rt];if(!dt){const Rt=[],Gt=Dt(this._driver,ze,Rt);if(Rt.length)throw new Error(`The animation trigger "${Re}" has failed to build due to the following errors:\n - ${Rt.join("\n - ")}`);dt=function(we,N,G){return new Le(we,N,G)}(Re,Gt,this._normalizer),this._triggerCache[rt]=dt}this._transitionEngine.registerTrigger(G,Re,dt)}register(N,G){this._transitionEngine.register(N,G)}destroy(N,G){this._transitionEngine.destroy(N,G)}onInsert(N,G,pe,Re){this._transitionEngine.insertNode(N,G,pe,Re)}onRemove(N,G,pe,Re){this._transitionEngine.removeNode(N,G,Re||!1,pe)}disableAnimations(N,G){this._transitionEngine.markElementAsDisabled(N,G)}process(N,G,pe,Re){if("@"==pe.charAt(0)){const[ze,rt]=c(pe);this._timelineEngine.command(ze,G,rt,Re)}else this._transitionEngine.trigger(N,G,pe,Re)}listen(N,G,pe,Re,ze){if("@"==pe.charAt(0)){const[rt,dt]=c(pe);return this._timelineEngine.listen(rt,G,dt,ze)}return this._transitionEngine.listen(N,G,pe,Re,ze)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Wn(we,N){let G=null,pe=null;return Array.isArray(N)&&N.length?(G=Li(N[0]),N.length>1&&(pe=Li(N[N.length-1]))):N&&(G=Li(N)),G||pe?new Ri(we,G,pe):null}let Ri=(()=>{class we{constructor(G,pe,Re){this._element=G,this._startStyles=pe,this._endStyles=Re,this._state=0;let ze=we.initialStylesByElement.get(G);ze||we.initialStylesByElement.set(G,ze={}),this._initialStyles=ze}start(){this._state<1&&(this._startStyles&&at(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(at(this._element,this._initialStyles),this._endStyles&&(at(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(we.initialStylesByElement.delete(this._element),this._startStyles&&(pt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pt(this._element,this._endStyles),this._endStyles=null),at(this._element,this._initialStyles),this._state=3)}}return we.initialStylesByElement=new WeakMap,we})();function Li(we){let N=null;const G=Object.keys(we);for(let pe=0;pethis._handleCallback(Rt)}apply(){(function(we,N){const G=Hr(we,"").trim();let pe=0;G.length&&(function(we,N){let G=0;for(let pe=0;pe=this._delay&&pe>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Sr(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(we,N){const pe=Hr(we,"").split(","),Re=Cr(pe,N);Re>=0&&(pe.splice(Re,1),mr(we,"",pe.join(",")))}(this._element,this._name))}}function $r(we,N,G){mr(we,"PlayState",G,ir(we,N))}function ir(we,N){const G=Hr(we,"");return G.indexOf(",")>0?Cr(G.split(","),N):Cr([G],N)}function Cr(we,N){for(let G=0;G=0)return G;return-1}function Sr(we,N,G){G?we.removeEventListener(Or,N):we.addEventListener(Or,N)}function mr(we,N,G,pe){const Re=nr+N;if(null!=pe){const ze=we.style[Re];if(ze.length){const rt=ze.split(",");rt[pe]=G,G=rt.join(",")}}we.style[Re]=G}function Hr(we,N){return we.style[nr+N]||""}class Rr{constructor(N,G,pe,Re,ze,rt,dt,Rt){this.element=N,this.keyframes=G,this.animationName=pe,this._duration=Re,this._delay=ze,this._finalStyles=dt,this._specialStyles=Rt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=rt||"linear",this.totalTime=Re+ze,this._buildStyler()}onStart(N){this._onStartFns.push(N)}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(N=>N()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(N=>N()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(N){this._styler.setPosition(N)}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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new cr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(N){const G="start"==N?this._onStartFns:this._onDoneFns;G.forEach(pe=>pe()),G.length=0}beforeDestroy(){this.init();const N={};if(this.hasStarted()){const G=this._state>=3;Object.keys(this._finalStyles).forEach(pe=>{"offset"!=pe&&(N[pe]=G?this._finalStyles[pe]:U(this.element,pe))})}this.currentSnapshot=N}}class Dr extends _.ZN{constructor(N,G){super(),this.element=N,this._startingStyles={},this.__initialized=!1,this._styles=w(G)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(N=>{this._startingStyles[N]=this.element.style[N]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(N=>this.element.style.setProperty(N,this._styles[N])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(N=>{const G=this._startingStyles[N];G?this.element.style.setProperty(N,G):this.element.style.removeProperty(N)}),this._startingStyles=null,super.destroy())}}class Fr{constructor(){this._count=0}validateStyleProperty(N){return R(N)}matchesElement(N,G){return!1}containsElement(N,G){return A(N,G)}query(N,G,pe){return D(N,G,pe)}computeStyle(N,G,pe){return window.getComputedStyle(N)[G]}buildKeyframeElement(N,G,pe){pe=pe.map(dt=>w(dt));let Re=`@keyframes ${G} {\n`,ze="";pe.forEach(dt=>{ze=" ";const Rt=parseFloat(dt.offset);Re+=`${ze}${100*Rt}% {\n`,ze+=" ",Object.keys(dt).forEach(Gt=>{const rn=dt[Gt];switch(Gt){case"offset":return;case"easing":return void(rn&&(Re+=`${ze}animation-timing-function: ${rn};\n`));default:return void(Re+=`${ze}${Gt}: ${rn};\n`)}}),Re+=`${ze}}\n`}),Re+="}\n";const rt=document.createElement("style");return rt.textContent=Re,rt}animate(N,G,pe,Re,ze,rt=[],dt){const Rt=rt.filter(Kn=>Kn instanceof Rr),Gt={};fe(pe,Re)&&Rt.forEach(Kn=>{let _i=Kn.currentSnapshot;Object.keys(_i).forEach(xi=>Gt[xi]=_i[xi])});const rn=function(we){let N={};return we&&(Array.isArray(we)?we:[we]).forEach(pe=>{Object.keys(pe).forEach(Re=>{"offset"==Re||"easing"==Re||(N[Re]=pe[Re])})}),N}(G=H(N,G,Gt));if(0==pe)return new Dr(N,rn);const pn="gen_css_kf_"+this._count++,Pn=this.buildKeyframeElement(N,pn,G);(function(we){var N;const G=null===(N=we.getRootNode)||void 0===N?void 0:N.call(we);return"undefined"!=typeof ShadowRoot&&G instanceof ShadowRoot?G:document.head})(N).appendChild(Pn);const _n=Wn(N,G),Bn=new Rr(N,G,pn,pe,Re,ze,rn,_n);return Bn.onDestroy(()=>{var we;(we=Pn).parentNode.removeChild(we)}),Bn}}class si{constructor(N,G,pe,Re){this.element=N,this.keyframes=G,this.options=pe,this._specialStyles=Re,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=pe.duration,this._delay=pe.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const N=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,N,this.options),this._finalKeyframe=N.length?N[N.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(N,G,pe){return N.animate(G,pe)}onStart(N){this._onStartFns.push(N)}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(N=>N()),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(N=>N()),this._onDestroyFns=[])}setPosition(N){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=N*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N={};if(this.hasStarted()){const G=this._finalKeyframe;Object.keys(G).forEach(pe=>{"offset"!=pe&&(N[pe]=this._finished?G[pe]:U(this.element,pe))})}this.currentSnapshot=N}triggerCallback(N){const G="start"==N?this._onStartFns:this._onDoneFns;G.forEach(pe=>pe()),G.length=0}}class zr{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(be().toString()),this._cssKeyframesDriver=new Fr}validateStyleProperty(N){return R(N)}matchesElement(N,G){return!1}containsElement(N,G){return A(N,G)}query(N,G,pe){return D(N,G,pe)}computeStyle(N,G,pe){return window.getComputedStyle(N)[G]}overrideWebAnimationsSupport(N){this._isNativeImpl=N}animate(N,G,pe,Re,ze,rt=[],dt){if(!dt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(N,G,pe,Re,ze,rt);const rn={duration:pe,delay:Re,fill:0==Re?"both":"forwards"};ze&&(rn.easing=ze);const pn={},Pn=rt.filter(_n=>_n instanceof si);fe(pe,Re)&&Pn.forEach(_n=>{let Bn=_n.currentSnapshot;Object.keys(Bn).forEach(Kn=>pn[Kn]=Bn[Kn])});const Ln=Wn(N,G=H(N,G=G.map(_n=>ft(_n,!1)),pn));return new si(N,G,rn,Ln)}}function be(){return m()&&Element.prototype.animate||{}}var Q=p(9808);let k=(()=>{class we extends _._j{constructor(G,pe){super(),this._nextAnimationId=0,this._renderer=G.createRenderer(pe.body,{id:"0",encapsulation:n.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(G){const pe=this._nextAnimationId.toString();this._nextAnimationId++;const Re=Array.isArray(G)?(0,_.vP)(G):G;return nt(this._renderer,null,pe,"register",[Re]),new V(pe,this._renderer)}}return we.\u0275fac=function(G){return new(G||we)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(Q.DOCUMENT))},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class V extends _.LC{constructor(N,G){super(),this._id=N,this._renderer=G}create(N,G){return new ve(this._id,N,G||{},this._renderer)}}class ve{constructor(N,G,pe,Re){this.id=N,this.element=G,this._renderer=Re,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",pe)}_listen(N,G){return this._renderer.listen(this.element,`@@${this.id}:${N}`,G)}_command(N,...G){return nt(this._renderer,this.element,this.id,N,G)}onDone(N){this._listen("done",N)}onStart(N){this._listen("start",N)}onDestroy(N){this._listen("destroy",N)}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"),this._started=!1}setPosition(N){this._command("setPosition",N)}getPosition(){var N,G;return null!==(G=null===(N=this._renderer.engine.players[+this.id])||void 0===N?void 0:N.getPosition())&&void 0!==G?G:0}}function nt(we,N,G,pe,Re){return we.setProperty(N,`@@${G}:${pe}`,Re)}const nn="@.disabled";let In=(()=>{class we{constructor(G,pe,Re){this.delegate=G,this.engine=pe,this._zone=Re,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),pe.onRemovalComplete=(ze,rt)=>{const dt=null==rt?void 0:rt.parentNode(ze);dt&&rt.removeChild(dt,ze)}}createRenderer(G,pe){const ze=this.delegate.createRenderer(G,pe);if(!(G&&pe&&pe.data&&pe.data.animation)){let rn=this._rendererCache.get(ze);return rn||(rn=new ni("",ze,this.engine),this._rendererCache.set(ze,rn)),rn}const rt=pe.id,dt=pe.id+"-"+this._currentId;this._currentId++,this.engine.register(dt,G);const Rt=rn=>{Array.isArray(rn)?rn.forEach(Rt):this.engine.registerTrigger(rt,dt,G,rn.name,rn)};return pe.data.animation.forEach(Rt),new di(this,dt,ze,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(G,pe,Re){G>=0&&Gpe(Re)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ze=>{const[rt,dt]=ze;rt(dt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([pe,Re]))}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()}}return we.\u0275fac=function(G){return new(G||we)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(Sn),n.\u0275\u0275inject(n.NgZone))},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class ni{constructor(N,G,pe){this.namespaceId=N,this.delegate=G,this.engine=pe,this.destroyNode=this.delegate.destroyNode?Re=>G.destroyNode(Re):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(N,G){return this.delegate.createElement(N,G)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,G){this.delegate.appendChild(N,G),this.engine.onInsert(this.namespaceId,G,N,!1)}insertBefore(N,G,pe,Re=!0){this.delegate.insertBefore(N,G,pe),this.engine.onInsert(this.namespaceId,G,N,Re)}removeChild(N,G,pe){this.engine.onRemove(this.namespaceId,G,this.delegate,pe)}selectRootElement(N,G){return this.delegate.selectRootElement(N,G)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,G,pe,Re){this.delegate.setAttribute(N,G,pe,Re)}removeAttribute(N,G,pe){this.delegate.removeAttribute(N,G,pe)}addClass(N,G){this.delegate.addClass(N,G)}removeClass(N,G){this.delegate.removeClass(N,G)}setStyle(N,G,pe,Re){this.delegate.setStyle(N,G,pe,Re)}removeStyle(N,G,pe){this.delegate.removeStyle(N,G,pe)}setProperty(N,G,pe){"@"==G.charAt(0)&&G==nn?this.disableAnimations(N,!!pe):this.delegate.setProperty(N,G,pe)}setValue(N,G){this.delegate.setValue(N,G)}listen(N,G,pe){return this.delegate.listen(N,G,pe)}disableAnimations(N,G){this.engine.disableAnimations(N,G)}}class di extends ni{constructor(N,G,pe,Re){super(G,pe,Re),this.factory=N,this.namespaceId=G}setProperty(N,G,pe){"@"==G.charAt(0)?"."==G.charAt(1)&&G==nn?this.disableAnimations(N,pe=void 0===pe||!!pe):this.engine.process(this.namespaceId,N,G.substr(1),pe):this.delegate.setProperty(N,G,pe)}listen(N,G,pe){if("@"==G.charAt(0)){const Re=function(we){switch(we){case"body":return document.body;case"document":return document;case"window":return window;default:return we}}(N);let ze=G.substr(1),rt="";return"@"!=ze.charAt(0)&&([ze,rt]=function(we){const N=we.indexOf(".");return[we.substring(0,N),we.substr(N+1)]}(ze)),this.engine.listen(this.namespaceId,Re,ze,rt,dt=>{this.factory.scheduleListenerCallback(dt._data||-1,pe,dt)})}return this.delegate.listen(N,G,pe)}}let Ei=(()=>{class we extends Sn{constructor(G,pe,Re){super(G.body,pe,Re)}ngOnDestroy(){this.flush()}}return we.\u0275fac=function(G){return new(G||we)(n.\u0275\u0275inject(Q.DOCUMENT),n.\u0275\u0275inject(C),n.\u0275\u0275inject(Yn))},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();const rr=new n.InjectionToken("AnimationModuleType"),xr=[{provide:_._j,useClass:k},{provide:Yn,useFactory:function(){return new Oi}},{provide:Sn,useClass:Ei},{provide:n.RendererFactory2,useFactory:function(we,N,G){return new In(we,N,G)},deps:[f.\u0275DomRendererFactory2,Sn,n.NgZone]}],cs=[{provide:C,useFactory:function(){return"function"==typeof be()?new zr:new Fr}},{provide:rr,useValue:"BrowserAnimations"},...xr],es=[{provide:C,useClass:x},{provide:rr,useValue:"NoopAnimations"},...xr];let ds=(()=>{class we{static withConfig(G){return{ngModule:we,providers:G.disableAnimations?es:cs}}}return we.\u0275fac=function(G){return new(G||we)},we.\u0275mod=n.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=n.\u0275\u0275defineInjector({providers:cs,imports:[f.BrowserModule]}),we})(),Bs=(()=>{class we{}return we.\u0275fac=function(G){return new(G||we)},we.\u0275mod=n.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=n.\u0275\u0275defineInjector({providers:es,imports:[f.BrowserModule]}),we})()},2313:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{\u0275getDOM:()=>n.\u0275getDOM,BrowserModule:()=>Tt,BrowserTransferStateModule:()=>gt,By:()=>Vt,DomSanitizer:()=>It,EVENT_MANAGER_PLUGINS:()=>g,EventManager:()=>b,HAMMER_GESTURE_CONFIG:()=>Se,HAMMER_LOADER:()=>te,HammerGestureConfig:()=>se,HammerModule:()=>Ke,Meta:()=>Et,Title:()=>H,TransferState:()=>Lt,VERSION:()=>An,disableDebugTools:()=>Dt,enableDebugTools:()=>tn,makeStateKey:()=>xt,platformBrowser:()=>_t,\u0275BrowserDomAdapter:()=>m,\u0275BrowserGetTestability:()=>c,\u0275DomEventsPlugin:()=>xe,\u0275DomRendererFactory2:()=>ee,\u0275DomSanitizerImpl:()=>cn,\u0275DomSharedStylesHost:()=>I,\u0275HammerGesturesPlugin:()=>Me,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>ot,\u0275KeyEventsPlugin:()=>et,\u0275NAMESPACE_URIS:()=>M,\u0275SharedStylesHost:()=>S,\u0275TRANSITION_ID:()=>r,\u0275escapeHtml:()=>Kt,\u0275flattenStyles:()=>re,\u0275initDomAdapter:()=>pt,\u0275shimContentAttribute:()=>L,\u0275shimHostAttribute:()=>F});var n=p(9808),f=p(5e3);class _ extends n.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class m extends _{static makeCurrent(){(0,n.\u0275setRootDomAdapter)(new m)}onAndCancel(ct,He,mt){return ct.addEventListener(He,mt,!1),()=>{ct.removeEventListener(He,mt,!1)}}dispatchEvent(ct,He){ct.dispatchEvent(He)}remove(ct){ct.parentNode&&ct.parentNode.removeChild(ct)}createElement(ct,He){return(He=He||this.getDefaultDocument()).createElement(ct)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ct){return ct.nodeType===Node.ELEMENT_NODE}isShadowRoot(ct){return ct instanceof DocumentFragment}getGlobalEventTarget(ct,He){return"window"===He?window:"document"===He?ct:"body"===He?ct.body:null}getBaseHref(ct){const He=(s=s||document.querySelector("base"),s?s.getAttribute("href"):null);return null==He?null:function(lt){u=u||document.createElement("a"),u.setAttribute("href",lt);const ct=u.pathname;return"/"===ct.charAt(0)?ct:`/${ct}`}(He)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(ct){return(0,n.\u0275parseCookieValue)(document.cookie,ct)}}let u,s=null;const r=new f.InjectionToken("TRANSITION_ID"),i=[{provide:f.APP_INITIALIZER,useFactory:function(lt,ct,He){return()=>{He.get(f.ApplicationInitStatus).donePromise.then(()=>{const mt=(0,n.\u0275getDOM)(),Ot=ct.querySelectorAll(`style[ng-transition="${lt}"]`);for(let un=0;un{const un=ct.findTestabilityInTree(mt,Ot);if(null==un)throw new Error("Could not find testability for element.");return un},f.\u0275global.getAllAngularTestabilities=()=>ct.getAllTestabilities(),f.\u0275global.getAllAngularRootElements=()=>ct.getAllRootElements(),f.\u0275global.frameworkStabilizers||(f.\u0275global.frameworkStabilizers=[]),f.\u0275global.frameworkStabilizers.push(mt=>{const Ot=f.\u0275global.getAllAngularTestabilities();let un=Ot.length,on=!1;const On=function(Yn){on=on||Yn,un--,0==un&&mt(on)};Ot.forEach(function(Yn){Yn.whenStable(On)})})}findTestabilityInTree(ct,He,mt){if(null==He)return null;const Ot=ct.getTestability(He);return null!=Ot?Ot:mt?(0,n.\u0275getDOM)().isShadowRoot(He)?this.findTestabilityInTree(ct,He.host,!0):this.findTestabilityInTree(ct,He.parentElement,!0):null}}let l=(()=>{class lt{build(){return new XMLHttpRequest}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();const g=new f.InjectionToken("EventManagerPlugins");let b=(()=>{class lt{constructor(He,mt){this._zone=mt,this._eventNameToPlugin=new Map,He.forEach(Ot=>Ot.manager=this),this._plugins=He.slice().reverse()}addEventListener(He,mt,Ot){return this._findPluginFor(mt).addEventListener(He,mt,Ot)}addGlobalEventListener(He,mt,Ot){return this._findPluginFor(mt).addGlobalEventListener(He,mt,Ot)}getZone(){return this._zone}_findPluginFor(He){const mt=this._eventNameToPlugin.get(He);if(mt)return mt;const Ot=this._plugins;for(let un=0;un{class lt{constructor(){this._stylesSet=new Set}addStyles(He){const mt=new Set;He.forEach(Ot=>{this._stylesSet.has(Ot)||(this._stylesSet.add(Ot),mt.add(Ot))}),this.onStylesAdded(mt)}onStylesAdded(He){}getAllStyles(){return Array.from(this._stylesSet)}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})(),I=(()=>{class lt extends S{constructor(He){super(),this._doc=He,this._hostNodes=new Map,this._hostNodes.set(He.head,[])}_addStylesToHost(He,mt,Ot){He.forEach(un=>{const on=this._doc.createElement("style");on.textContent=un,Ot.push(mt.appendChild(on))})}addHost(He){const mt=[];this._addStylesToHost(this._stylesSet,He,mt),this._hostNodes.set(He,mt)}removeHost(He){const mt=this._hostNodes.get(He);mt&&mt.forEach(R),this._hostNodes.delete(He)}onStylesAdded(He){this._hostNodes.forEach((mt,Ot)=>{this._addStylesToHost(He,Ot,mt)})}ngOnDestroy(){this._hostNodes.forEach(He=>He.forEach(R))}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();function R(lt){(0,n.\u0275getDOM)().remove(lt)}const M={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/"},A=/%COMP%/g,w="%COMP%",x=`_nghost-${w}`,C=`_ngcontent-${w}`;function L(lt){return C.replace(A,lt)}function F(lt){return x.replace(A,lt)}function re(lt,ct,He){for(let mt=0;mt{if("__ngUnwrap__"===ct)return lt;!1===lt(ct)&&(ct.preventDefault(),ct.returnValue=!1)}}let ee=(()=>{class lt{constructor(He,mt,Ot){this.eventManager=He,this.sharedStylesHost=mt,this.appId=Ot,this.rendererByCompId=new Map,this.defaultRenderer=new $(He)}createRenderer(He,mt){if(!He||!mt)return this.defaultRenderer;switch(mt.encapsulation){case f.ViewEncapsulation.Emulated:{let Ot=this.rendererByCompId.get(mt.id);return Ot||(Ot=new ne(this.eventManager,this.sharedStylesHost,mt,this.appId),this.rendererByCompId.set(mt.id,Ot)),Ot.applyToHost(He),Ot}case 1:case f.ViewEncapsulation.ShadowDom:return new ae(this.eventManager,this.sharedStylesHost,He,mt);default:if(!this.rendererByCompId.has(mt.id)){const Ot=re(mt.id,mt.styles,[]);this.sharedStylesHost.addStyles(Ot),this.rendererByCompId.set(mt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(b),f.\u0275\u0275inject(I),f.\u0275\u0275inject(f.APP_ID))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();class ${constructor(ct){this.eventManager=ct,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ct,He){return He?document.createElementNS(M[He]||He,ct):document.createElement(ct)}createComment(ct){return document.createComment(ct)}createText(ct){return document.createTextNode(ct)}appendChild(ct,He){ct.appendChild(He)}insertBefore(ct,He,mt){ct&&ct.insertBefore(He,mt)}removeChild(ct,He){ct&&ct.removeChild(He)}selectRootElement(ct,He){let mt="string"==typeof ct?document.querySelector(ct):ct;if(!mt)throw new Error(`The selector "${ct}" did not match any elements`);return He||(mt.textContent=""),mt}parentNode(ct){return ct.parentNode}nextSibling(ct){return ct.nextSibling}setAttribute(ct,He,mt,Ot){if(Ot){He=Ot+":"+He;const un=M[Ot];un?ct.setAttributeNS(un,He,mt):ct.setAttribute(He,mt)}else ct.setAttribute(He,mt)}removeAttribute(ct,He,mt){if(mt){const Ot=M[mt];Ot?ct.removeAttributeNS(Ot,He):ct.removeAttribute(`${mt}:${He}`)}else ct.removeAttribute(He)}addClass(ct,He){ct.classList.add(He)}removeClass(ct,He){ct.classList.remove(He)}setStyle(ct,He,mt,Ot){Ot&(f.RendererStyleFlags2.DashCase|f.RendererStyleFlags2.Important)?ct.style.setProperty(He,mt,Ot&f.RendererStyleFlags2.Important?"important":""):ct.style[He]=mt}removeStyle(ct,He,mt){mt&f.RendererStyleFlags2.DashCase?ct.style.removeProperty(He):ct.style[He]=""}setProperty(ct,He,mt){ct[He]=mt}setValue(ct,He){ct.nodeValue=He}listen(ct,He,mt){return"string"==typeof ct?this.eventManager.addGlobalEventListener(ct,He,Y(mt)):this.eventManager.addEventListener(ct,He,Y(mt))}}class ne extends ${constructor(ct,He,mt,Ot){super(ct),this.component=mt;const un=re(Ot+"-"+mt.id,mt.styles,[]);He.addStyles(un),this.contentAttr=L(Ot+"-"+mt.id),this.hostAttr=F(Ot+"-"+mt.id)}applyToHost(ct){super.setAttribute(ct,this.hostAttr,"")}createElement(ct,He){const mt=super.createElement(ct,He);return super.setAttribute(mt,this.contentAttr,""),mt}}class ae extends ${constructor(ct,He,mt,Ot){super(ct),this.sharedStylesHost=He,this.hostEl=mt,this.shadowRoot=mt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const un=re(Ot.id,Ot.styles,[]);for(let on=0;on{class lt extends y{constructor(He){super(He)}supports(He){return!0}addEventListener(He,mt,Ot){return He.addEventListener(mt,Ot,!1),()=>this.removeEventListener(He,mt,Ot)}removeEventListener(He,mt,Ot){return He.removeEventListener(mt,Ot)}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();const Ie=["alt","control","meta","shift"],Xe={"\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"},ft={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"},Pe={alt:lt=>lt.altKey,control:lt=>lt.ctrlKey,meta:lt=>lt.metaKey,shift:lt=>lt.shiftKey};let et=(()=>{class lt extends y{constructor(He){super(He)}supports(He){return null!=lt.parseEventName(He)}addEventListener(He,mt,Ot){const un=lt.parseEventName(mt),on=lt.eventCallback(un.fullKey,Ot,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.\u0275getDOM)().onAndCancel(He,un.domEventName,on))}static parseEventName(He){const mt=He.toLowerCase().split("."),Ot=mt.shift();if(0===mt.length||"keydown"!==Ot&&"keyup"!==Ot)return null;const un=lt._normalizeKey(mt.pop());let on="";if(Ie.forEach(Yn=>{const ji=mt.indexOf(Yn);ji>-1&&(mt.splice(ji,1),on+=Yn+".")}),on+=un,0!=mt.length||0===un.length)return null;const On={};return On.domEventName=Ot,On.fullKey=on,On}static getEventFullKey(He){let mt="",Ot=function(lt){let ct=lt.key;if(null==ct){if(ct=lt.keyIdentifier,null==ct)return"Unidentified";ct.startsWith("U+")&&(ct=String.fromCharCode(parseInt(ct.substring(2),16)),3===lt.location&&ft.hasOwnProperty(ct)&&(ct=ft[ct]))}return Xe[ct]||ct}(He);return Ot=Ot.toLowerCase()," "===Ot?Ot="space":"."===Ot&&(Ot="dot"),Ie.forEach(un=>{un!=Ot&&Pe[un](He)&&(mt+=un+".")}),mt+=Ot,mt}static eventCallback(He,mt,Ot){return un=>{lt.getEventFullKey(un)===He&&Ot.runGuarded(()=>mt(un))}}static _normalizeKey(He){return"esc"===He?"escape":He}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();function pt(){m.makeCurrent(),c.init()}const ot=[{provide:f.PLATFORM_ID,useValue:n.\u0275PLATFORM_BROWSER_ID},{provide:f.PLATFORM_INITIALIZER,useValue:pt,multi:!0},{provide:n.DOCUMENT,useFactory:function(){return(0,f.\u0275setDocument)(document),document},deps:[]}],_t=(0,f.createPlatformFactory)(f.platformCore,"browser",ot),At=[{provide:f.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:f.ErrorHandler,useFactory:function(){return new f.ErrorHandler},deps:[]},{provide:g,useClass:xe,multi:!0,deps:[n.DOCUMENT,f.NgZone,f.PLATFORM_ID]},{provide:g,useClass:et,multi:!0,deps:[n.DOCUMENT]},{provide:ee,useClass:ee,deps:[b,I,f.APP_ID]},{provide:f.RendererFactory2,useExisting:ee},{provide:S,useExisting:I},{provide:I,useClass:I,deps:[n.DOCUMENT]},{provide:f.Testability,useClass:f.Testability,deps:[f.NgZone]},{provide:b,useClass:b,deps:[g,f.NgZone]},{provide:n.XhrFactory,useClass:l,deps:[]}];let Tt=(()=>{class lt{constructor(He){if(He)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(He){return{ngModule:lt,providers:[{provide:f.APP_ID,useValue:He.appId},{provide:r,useExisting:f.APP_ID},i]}}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(lt,12))},lt.\u0275mod=f.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=f.\u0275\u0275defineInjector({providers:At,imports:[n.CommonModule,f.ApplicationModule]}),lt})(),Et=(()=>{class lt{constructor(He){this._doc=He,this._dom=(0,n.\u0275getDOM)()}addTag(He,mt=!1){return He?this._getOrCreateElement(He,mt):null}addTags(He,mt=!1){return He?He.reduce((Ot,un)=>(un&&Ot.push(this._getOrCreateElement(un,mt)),Ot),[]):[]}getTag(He){return He&&this._doc.querySelector(`meta[${He}]`)||null}getTags(He){if(!He)return[];const mt=this._doc.querySelectorAll(`meta[${He}]`);return mt?[].slice.call(mt):[]}updateTag(He,mt){if(!He)return null;mt=mt||this._parseSelector(He);const Ot=this.getTag(mt);return Ot?this._setMetaElementAttributes(He,Ot):this._getOrCreateElement(He,!0)}removeTag(He){this.removeTagElement(this.getTag(He))}removeTagElement(He){He&&this._dom.remove(He)}_getOrCreateElement(He,mt=!1){if(!mt){const on=this._parseSelector(He),On=this.getTags(on).filter(Yn=>this._containsAttributes(He,Yn))[0];if(void 0!==On)return On}const Ot=this._dom.createElement("meta");return this._setMetaElementAttributes(He,Ot),this._doc.getElementsByTagName("head")[0].appendChild(Ot),Ot}_setMetaElementAttributes(He,mt){return Object.keys(He).forEach(Ot=>mt.setAttribute(this._getMetaKeyMap(Ot),He[Ot])),mt}_parseSelector(He){const mt=He.name?"name":"property";return`${mt}="${He[mt]}"`}_containsAttributes(He,mt){return Object.keys(He).every(Ot=>mt.getAttribute(this._getMetaKeyMap(Ot))===He[Ot])}_getMetaKeyMap(He){return Ee[He]||He}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let mt=null;return mt=He?new He:new Et((0,f.\u0275\u0275inject)(n.DOCUMENT)),mt},providedIn:"root"}),lt})();const Ee={httpEquiv:"http-equiv"};let H=(()=>{class lt{constructor(He){this._doc=He}getTitle(){return this._doc.title}setTitle(He){this._doc.title=He||""}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let mt=null;return mt=He?new He:new H((0,f.\u0275\u0275inject)(n.DOCUMENT)),mt},providedIn:"root"}),lt})();function Be(lt,ct){"undefined"!=typeof COMPILED&&COMPILED||((f.\u0275global.ng=f.\u0275global.ng||{})[lt]=ct)}const $e="undefined"!=typeof window&&window||{};class st{constructor(ct,He){this.msPerTick=ct,this.numTicks=He}}class ut{constructor(ct){this.appRef=ct.injector.get(f.ApplicationRef)}timeChangeDetection(ct){const He=ct&&ct.record,mt="Change Detection",Ot=null!=$e.console.profile;He&&Ot&&$e.console.profile(mt);const un=St();let on=0;for(;on<5||St()-un<500;)this.appRef.tick(),on++;const On=St();He&&Ot&&$e.console.profileEnd(mt);const Yn=(On-un)/on;return $e.console.log(`ran ${on} change detection cycles`),$e.console.log(`${Yn.toFixed(2)} ms per check`),new st(Yn,on)}}function St(){return $e.performance&&$e.performance.now?$e.performance.now():(new Date).getTime()}const Xt="profiler";function tn(lt){return Be(Xt,new ut(lt)),lt}function Dt(){Be(Xt,null)}function Kt(lt){const ct={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return lt.replace(/[&"'<>]/g,He=>ct[He])}function xt(lt){return lt}let Lt=(()=>{class lt{constructor(){this.store={},this.onSerializeCallbacks={}}static init(He){const mt=new lt;return mt.store=He,mt}get(He,mt){return void 0!==this.store[He]?this.store[He]:mt}set(He,mt){this.store[He]=mt}remove(He){delete this.store[He]}hasKey(He){return this.store.hasOwnProperty(He)}onSerialize(He,mt){this.onSerializeCallbacks[He]=mt}toJson(){for(const He in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(He))try{this.store[He]=this.onSerializeCallbacks[He]()}catch(mt){console.warn("Exception in onSerialize callback: ",mt)}return JSON.stringify(this.store)}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();function Qe(lt,ct){const He=lt.getElementById(ct+"-state");let mt={};if(He&&He.textContent)try{mt=JSON.parse(function(lt){const ct={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return lt.replace(/&[^;]+;/g,He=>ct[He])}(He.textContent))}catch(Ot){console.warn("Exception while restoring TransferState for app "+ct,Ot)}return Lt.init(mt)}let gt=(()=>{class lt{}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275mod=f.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=f.\u0275\u0275defineInjector({providers:[{provide:Lt,useFactory:Qe,deps:[n.DOCUMENT,f.APP_ID]}]}),lt})();class Vt{static all(){return()=>!0}static css(ct){return He=>null!=He.nativeElement&&function(lt,ct){return!!(0,n.\u0275getDOM)().isElementNode(lt)&&(lt.matches&<.matches(ct)||lt.msMatchesSelector&<.msMatchesSelector(ct)||lt.webkitMatchesSelector&<.webkitMatchesSelector(ct))}(He.nativeElement,ct)}static directive(ct){return He=>-1!==He.providerTokens.indexOf(ct)}}const Ue={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,doubletap:!0},Se=new f.InjectionToken("HammerGestureConfig"),te=new f.InjectionToken("HammerLoader");let se=(()=>{class lt{constructor(){this.events=[],this.overrides={}}buildHammer(He){const mt=new Hammer(He,this.options);mt.get("pinch").set({enable:!0}),mt.get("rotate").set({enable:!0});for(const Ot in this.overrides)mt.get(Ot).set(this.overrides[Ot]);return mt}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})(),Me=(()=>{class lt extends y{constructor(He,mt,Ot,un){super(He),this._config=mt,this.console=Ot,this.loader=un,this._loaderPromise=null}supports(He){return!(!Ue.hasOwnProperty(He.toLowerCase())&&!this.isCustomEvent(He)||!window.Hammer&&!this.loader)}addEventListener(He,mt,Ot){const un=this.manager.getZone();if(mt=mt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let on=!1,On=()=>{on=!0};return this._loaderPromise.then(()=>{window.Hammer?on||(On=this.addEventListener(He,mt,Ot)):On=()=>{}}).catch(()=>{On=()=>{}}),()=>{On()}}return un.runOutsideAngular(()=>{const on=this._config.buildHammer(He),On=function(Yn){un.runGuarded(function(){Ot(Yn)})};return on.on(mt,On),()=>{on.off(mt,On),"function"==typeof on.destroy&&on.destroy()}})}isCustomEvent(He){return this._config.events.indexOf(He)>-1}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT),f.\u0275\u0275inject(Se),f.\u0275\u0275inject(f.\u0275Console),f.\u0275\u0275inject(te,8))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})(),Ke=(()=>{class lt{}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275mod=f.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=f.\u0275\u0275defineInjector({providers:[{provide:g,useClass:Me,multi:!0,deps:[n.DOCUMENT,Se,f.\u0275Console,[new f.Optional,te]]},{provide:Se,useClass:se,deps:[]}]}),lt})(),It=(()=>{class lt{}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let mt=null;return mt=He?new(He||lt):f.\u0275\u0275inject(cn),mt},providedIn:"root"}),lt})(),cn=(()=>{class lt extends It{constructor(He){super(),this._doc=He}sanitize(He,mt){if(null==mt)return null;switch(He){case f.SecurityContext.NONE:return mt;case f.SecurityContext.HTML:return(0,f.\u0275allowSanitizationBypassAndThrow)(mt,"HTML")?(0,f.\u0275unwrapSafeValue)(mt):(0,f.\u0275_sanitizeHtml)(this._doc,String(mt)).toString();case f.SecurityContext.STYLE:return(0,f.\u0275allowSanitizationBypassAndThrow)(mt,"Style")?(0,f.\u0275unwrapSafeValue)(mt):mt;case f.SecurityContext.SCRIPT:if((0,f.\u0275allowSanitizationBypassAndThrow)(mt,"Script"))return(0,f.\u0275unwrapSafeValue)(mt);throw new Error("unsafe value used in a script context");case f.SecurityContext.URL:return(0,f.\u0275getSanitizationBypassType)(mt),(0,f.\u0275allowSanitizationBypassAndThrow)(mt,"URL")?(0,f.\u0275unwrapSafeValue)(mt):(0,f.\u0275_sanitizeUrl)(String(mt));case f.SecurityContext.RESOURCE_URL:if((0,f.\u0275allowSanitizationBypassAndThrow)(mt,"ResourceURL"))return(0,f.\u0275unwrapSafeValue)(mt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${He} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(He){return(0,f.\u0275bypassSanitizationTrustHtml)(He)}bypassSecurityTrustStyle(He){return(0,f.\u0275bypassSanitizationTrustStyle)(He)}bypassSecurityTrustScript(He){return(0,f.\u0275bypassSanitizationTrustScript)(He)}bypassSecurityTrustUrl(He){return(0,f.\u0275bypassSanitizationTrustUrl)(He)}bypassSecurityTrustResourceUrl(He){return(0,f.\u0275bypassSanitizationTrustResourceUrl)(He)}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let mt=null;return mt=He?new He:function(lt){return new cn(lt.get(n.DOCUMENT))}(f.\u0275\u0275inject(f.Injector)),mt},providedIn:"root"}),lt})();const An=new f.Version("13.1.1")},4202:(ye,W,p)=>{"use strict";p.r(W),p.d(W,{ActivatedRoute:()=>B,ActivatedRouteSnapshot:()=>Ze,ActivationEnd:()=>pt,ActivationStart:()=>at,BaseRouteReuseStrategy:()=>Xi,ChildActivationEnd:()=>et,ChildActivationStart:()=>Pe,ChildrenOutletContexts:()=>hr,DefaultUrlSerializer:()=>te,GuardsCheckEnd:()=>xe,GuardsCheckStart:()=>ae,NavigationCancel:()=>J,NavigationEnd:()=>$,NavigationError:()=>ie,NavigationStart:()=>ee,NoPreloading:()=>ar,OutletContext:()=>$r,PRIMARY_OUTLET:()=>yt,PreloadAllModules:()=>or,PreloadingStrategy:()=>ws,ROUTER_CONFIGURATION:()=>Br,ROUTER_INITIALIZER:()=>ln,ROUTES:()=>zi,ResolveEnd:()=>We,ResolveStart:()=>Ie,RouteConfigLoadEnd:()=>ft,RouteConfigLoadStart:()=>Xe,RouteReuseStrategy:()=>fr,Router:()=>En,RouterEvent:()=>X,RouterLink:()=>Hi,RouterLinkActive:()=>Si,RouterLinkWithHref:()=>Zn,RouterModule:()=>rs,RouterOutlet:()=>qr,RouterPreloader:()=>Ir,RouterState:()=>qe,RouterStateSnapshot:()=>Wt,RoutesRecognized:()=>ne,Scroll:()=>vt,UrlHandlingStrategy:()=>ys,UrlSegment:()=>gt,UrlSegmentGroup:()=>Qe,UrlSerializer:()=>Se,UrlTree:()=>Lt,VERSION:()=>Ki,convertToParamMap:()=>_t,provideRoutes:()=>Ss,\u0275EmptyOutletComponent:()=>Cr,\u0275ROUTER_PROVIDERS:()=>qs,\u0275assignExtraOptionsToRouter:()=>z,\u0275flatten:()=>T});var n=p(5e3),f=p(5254),_=p(1086),m=p(591),s=p(6053),d=p(6498),u=p(4450),h=p(1961),r=p(8514),o=p(8896),i=p(1762),c=p(8929),l=p(4850),g=p(7545),b=p(2986),y=p(1059),S=p(2014),I=p(2198),R=p(7221),M=p(1406),A=p(8127),D=p(7224),w=p(1709),x=p(2868),C=p(2821),L=p(4327),F=p(537),re=p(9146),Y=p(9808);class X{constructor(le,q){this.id=le,this.url=q}}class ee extends X{constructor(le,q,Ce="imperative",Te=null){super(le,q),this.navigationTrigger=Ce,this.restoredState=Te}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $ extends X{constructor(le,q,Ce){super(le,q),this.urlAfterRedirects=Ce}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class J extends X{constructor(le,q,Ce){super(le,q),this.reason=Ce}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ie extends X{constructor(le,q,Ce){super(le,q),this.error=Ce}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ne extends X{constructor(le,q,Ce,Te){super(le,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ae extends X{constructor(le,q,Ce,Te){super(le,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xe extends X{constructor(le,q,Ce,Te,Ve){super(le,q),this.urlAfterRedirects=Ce,this.state=Te,this.shouldActivate=Ve}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ie extends X{constructor(le,q,Ce,Te){super(le,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class We extends X{constructor(le,q,Ce,Te){super(le,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xe{constructor(le){this.route=le}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ft{constructor(le){this.route=le}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Pe{constructor(le){this.snapshot=le}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class et{constructor(le){this.snapshot=le}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(le){this.snapshot=le}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pt{constructor(le){this.snapshot=le}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(le,q,Ce){this.routerEvent=le,this.position=q,this.anchor=Ce}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const yt="primary";class ot{constructor(le){this.params=le||{}}has(le){return Object.prototype.hasOwnProperty.call(this.params,le)}get(le){if(this.has(le)){const q=this.params[le];return Array.isArray(q)?q[0]:q}return null}getAll(le){if(this.has(le)){const q=this.params[le];return Array.isArray(q)?q:[q]}return[]}get keys(){return Object.keys(this.params)}}function _t(me){return new ot(me)}const At="ngNavigationCancelingError";function Tt(me){const le=Error("NavigationCancelingError: "+me);return le[At]=!0,le}function Et(me,le,q){const Ce=q.path.split("/");if(Ce.length>me.length||"full"===q.pathMatch&&(le.hasChildren()||Ce.lengthCe[Ve]===Te)}return me===le}function T(me){return Array.prototype.concat.apply([],me)}function U(me){return me.length>0?me[me.length-1]:null}function _e(me,le){for(const q in me)me.hasOwnProperty(q)&&le(me[q],q)}function Be(me){return(0,n.\u0275isObservable)(me)?me:(0,n.\u0275isPromise)(me)?(0,f.D)(Promise.resolve(me)):(0,_.of)(me)}const st={exact:function tn(me,le,q){if(!qt(me.segments,le.segments)||!xt(me.segments,le.segments,q)||me.numberOfChildren!==le.numberOfChildren)return!1;for(const Ce in le.children)if(!me.children[Ce]||!tn(me.children[Ce],le.children[Ce],q))return!1;return!0},subset:Kt},ut={exact:function(me,le){return fe(me,le)},subset:function(me,le){return Object.keys(le).length<=Object.keys(me).length&&Object.keys(le).every(q=>H(me[q],le[q]))},ignored:()=>!0};function St(me,le,q){return st[q.paths](me.root,le.root,q.matrixParams)&&ut[q.queryParams](me.queryParams,le.queryParams)&&!("exact"===q.fragment&&me.fragment!==le.fragment)}function Kt(me,le,q){return tt(me,le,le.segments,q)}function tt(me,le,q,Ce){if(me.segments.length>q.length){const Te=me.segments.slice(0,q.length);return!(!qt(Te,q)||le.hasChildren()||!xt(Te,q,Ce))}if(me.segments.length===q.length){if(!qt(me.segments,q)||!xt(me.segments,q,Ce))return!1;for(const Te in le.children)if(!me.children[Te]||!Kt(me.children[Te],le.children[Te],Ce))return!1;return!0}{const Te=q.slice(0,me.segments.length),Ve=q.slice(me.segments.length);return!!(qt(me.segments,Te)&&xt(me.segments,Te,Ce)&&me.children[yt])&&tt(me.children[yt],le,Ve,Ce)}}function xt(me,le,q){return le.every((Ce,Te)=>ut[q](me[Te].parameters,Ce.parameters))}class Lt{constructor(le,q,Ce){this.root=le,this.queryParams=q,this.fragment=Ce}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return se.serialize(this)}}class Qe{constructor(le,q){this.segments=le,this.children=q,this.parent=null,_e(q,(Ce,Te)=>Ce.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Me(this)}}class gt{constructor(le,q){this.path=le,this.parameters=q}get parameterMap(){return this._parameterMap||(this._parameterMap=_t(this.parameters)),this._parameterMap}toString(){return He(this)}}function qt(me,le){return me.length===le.length&&me.every((q,Ce)=>q.path===le[Ce].path)}class Se{}class te{parse(le){const q=new Ni(le);return new Lt(q.parseRootSegment(),q.parseQueryParams(),q.parseFragment())}serialize(le){const q=`/${Ke(le.root,!0)}`,Ce=function(me){const le=Object.keys(me).map(q=>{const Ce=me[q];return Array.isArray(Ce)?Ce.map(Te=>`${Qt(q)}=${Qt(Te)}`).join("&"):`${Qt(q)}=${Qt(Ce)}`}).filter(q=>!!q);return le.length?`?${le.join("&")}`:""}(le.queryParams);var me;return`${q}${Ce}${"string"==typeof le.fragment?`#${me=le.fragment,encodeURI(me)}`:""}`}}const se=new te;function Me(me){return me.segments.map(le=>He(le)).join("/")}function Ke(me,le){if(!me.hasChildren())return Me(me);if(le){const q=me.children[yt]?Ke(me.children[yt],!1):"",Ce=[];return _e(me.children,(Te,Ve)=>{Ve!==yt&&Ce.push(`${Ve}:${Ke(Te,!1)}`)}),Ce.length>0?`${q}(${Ce.join("//")})`:q}{const q=function(me,le){let q=[];return _e(me.children,(Ce,Te)=>{Te===yt&&(q=q.concat(le(Ce,Te)))}),_e(me.children,(Ce,Te)=>{Te!==yt&&(q=q.concat(le(Ce,Te)))}),q}(me,(Ce,Te)=>Te===yt?[Ke(me.children[yt],!1)]:[`${Te}:${Ke(Ce,!1)}`]);return 1===Object.keys(me.children).length&&null!=me.children[yt]?`${Me(me)}/${q[0]}`:`${Me(me)}/(${q.join("//")})`}}function It(me){return encodeURIComponent(me).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qt(me){return It(me).replace(/%3B/gi,";")}function An(me){return It(me).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lt(me){return decodeURIComponent(me)}function ct(me){return lt(me.replace(/\+/g,"%20"))}function He(me){return`${An(me.path)}${function(me){return Object.keys(me).map(le=>`;${An(le)}=${An(me[le])}`).join("")}(me.parameters)}`}const un=/^[^\/()?;=#]+/;function on(me){const le=me.match(un);return le?le[0]:""}const On=/^[^=?&#]+/,ji=/^[^&#]+/;class Ni{constructor(le){this.url=le,this.remaining=le}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qe([],{}):new Qe([],this.parseChildren())}parseQueryParams(){const le={};if(this.consumeOptional("?"))do{this.parseQueryParam(le)}while(this.consumeOptional("&"));return le}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const le=[];for(this.peekStartsWith("(")||le.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),le.push(this.parseSegment());let q={};this.peekStartsWith("/(")&&(this.capture("/"),q=this.parseParens(!0));let Ce={};return this.peekStartsWith("(")&&(Ce=this.parseParens(!1)),(le.length>0||Object.keys(q).length>0)&&(Ce[yt]=new Qe(le,q)),Ce}parseSegment(){const le=on(this.remaining);if(""===le&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(le),new gt(lt(le),this.parseMatrixParams())}parseMatrixParams(){const le={};for(;this.consumeOptional(";");)this.parseParam(le);return le}parseParam(le){const q=on(this.remaining);if(!q)return;this.capture(q);let Ce="";if(this.consumeOptional("=")){const Te=on(this.remaining);Te&&(Ce=Te,this.capture(Ce))}le[lt(q)]=lt(Ce)}parseQueryParam(le){const q=function(me){const le=me.match(On);return le?le[0]:""}(this.remaining);if(!q)return;this.capture(q);let Ce="";if(this.consumeOptional("=")){const it=function(me){const le=me.match(ji);return le?le[0]:""}(this.remaining);it&&(Ce=it,this.capture(Ce))}const Te=ct(q),Ve=ct(Ce);if(le.hasOwnProperty(Te)){let it=le[Te];Array.isArray(it)||(it=[it],le[Te]=it),it.push(Ve)}else le[Te]=Ve}parseParens(le){const q={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ce=on(this.remaining),Te=this.remaining[Ce.length];if("/"!==Te&&")"!==Te&&";"!==Te)throw new Error(`Cannot parse url '${this.url}'`);let Ve;Ce.indexOf(":")>-1?(Ve=Ce.substr(0,Ce.indexOf(":")),this.capture(Ve),this.capture(":")):le&&(Ve=yt);const it=this.parseChildren();q[Ve]=1===Object.keys(it).length?it[yt]:new Qe([],it),this.consumeOptional("//")}return q}peekStartsWith(le){return this.remaining.startsWith(le)}consumeOptional(le){return!!this.peekStartsWith(le)&&(this.remaining=this.remaining.substring(le.length),!0)}capture(le){if(!this.consumeOptional(le))throw new Error(`Expected "${le}".`)}}class Ti{constructor(le){this._root=le}get root(){return this._root.value}parent(le){const q=this.pathFromRoot(le);return q.length>1?q[q.length-2]:null}children(le){const q=qn(le,this._root);return q?q.children.map(Ce=>Ce.value):[]}firstChild(le){const q=qn(le,this._root);return q&&q.children.length>0?q.children[0].value:null}siblings(le){const q=Vi(le,this._root);return q.length<2?[]:q[q.length-2].children.map(Te=>Te.value).filter(Te=>Te!==le)}pathFromRoot(le){return Vi(le,this._root).map(q=>q.value)}}function qn(me,le){if(me===le.value)return le;for(const q of le.children){const Ce=qn(me,q);if(Ce)return Ce}return null}function Vi(me,le){if(me===le.value)return[le];for(const q of le.children){const Ce=Vi(me,q);if(Ce.length)return Ce.unshift(le),Ce}return[]}class ci{constructor(le,q){this.value=le,this.children=q}toString(){return`TreeNode(${this.value})`}}function Ae(me){const le={};return me&&me.children.forEach(q=>le[q.value.outlet]=q),le}class qe extends Ti{constructor(le,q){super(le),this.snapshot=q,Ft(this,le)}toString(){return this.snapshot.toString()}}function ue(me,le){const q=function(me,le){const it=new Ze([],{},{},"",{},yt,le,null,me.root,-1,{});return new Wt("",new ci(it,[]))}(me,le),Ce=new m.X([new gt("",{})]),Te=new m.X({}),Ve=new m.X({}),it=new m.X({}),bt=new m.X(""),zt=new B(Ce,Te,it,bt,Ve,yt,le,q.root);return zt.snapshot=q.root,new qe(new ci(zt,[]),q)}class B{constructor(le,q,Ce,Te,Ve,it,bt,zt){this.url=le,this.params=q,this.queryParams=Ce,this.fragment=Te,this.data=Ve,this.outlet=it,this.component=bt,this._futureSnapshot=zt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,l.U)(le=>_t(le)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,l.U)(le=>_t(le)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function de(me,le="emptyOnly"){const q=me.pathFromRoot;let Ce=0;if("always"!==le)for(Ce=q.length-1;Ce>=1;){const Te=q[Ce],Ve=q[Ce-1];if(Te.routeConfig&&""===Te.routeConfig.path)Ce--;else{if(Ve.component)break;Ce--}}return function(me){return me.reduce((le,q)=>({params:Object.assign(Object.assign({},le.params),q.params),data:Object.assign(Object.assign({},le.data),q.data),resolve:Object.assign(Object.assign({},le.resolve),q._resolvedData)}),{params:{},data:{},resolve:{}})}(q.slice(Ce))}class Ze{constructor(le,q,Ce,Te,Ve,it,bt,zt,vn,fi,Dn){this.url=le,this.params=q,this.queryParams=Ce,this.fragment=Te,this.data=Ve,this.outlet=it,this.component=bt,this.routeConfig=zt,this._urlSegment=vn,this._lastPathIndex=fi,this._resolve=Dn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_t(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ce=>Ce.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Wt extends Ti{constructor(le,q){super(q),this.url=le,Ft(this,q)}toString(){return Ht(this._root)}}function Ft(me,le){le.value._routerState=me,le.children.forEach(q=>Ft(me,q))}function Ht(me){const le=me.children.length>0?` { ${me.children.map(Ht).join(", ")} } `:"";return`${me.value}${le}`}function Zt(me){if(me.snapshot){const le=me.snapshot,q=me._futureSnapshot;me.snapshot=q,fe(le.queryParams,q.queryParams)||me.queryParams.next(q.queryParams),le.fragment!==q.fragment&&me.fragment.next(q.fragment),fe(le.params,q.params)||me.params.next(q.params),function(me,le){if(me.length!==le.length)return!1;for(let q=0;qfe(q.parameters,le[Ce].parameters))}(me.url,le.url);return q&&!(!me.parent!=!le.parent)&&(!me.parent||an(me.parent,le.parent))}function zn(me,le,q){if(q&&me.shouldReuseRoute(le.value,q.value.snapshot)){const Ce=q.value;Ce._futureSnapshot=le.value;const Te=function(me,le,q){return le.children.map(Ce=>{for(const Te of q.children)if(me.shouldReuseRoute(Ce.value,Te.value.snapshot))return zn(me,Ce,Te);return zn(me,Ce)})}(me,le,q);return new ci(Ce,Te)}{if(me.shouldAttach(le.value)){const Ve=me.retrieve(le.value);if(null!==Ve){const it=Ve.route;return it.value._futureSnapshot=le.value,it.children=le.children.map(bt=>zn(me,bt)),it}}const Ce=function(me){return new B(new m.X(me.url),new m.X(me.params),new m.X(me.queryParams),new m.X(me.fragment),new m.X(me.data),me.outlet,me.component,me)}(le.value),Te=le.children.map(Ve=>zn(me,Ve));return new ci(Ce,Te)}}function Qn(me){return"object"==typeof me&&null!=me&&!me.outlets&&!me.segmentPath}function kn(me){return"object"==typeof me&&null!=me&&me.outlets}function Mi(me,le,q,Ce,Te){let Ve={};return Ce&&_e(Ce,(it,bt)=>{Ve[bt]=Array.isArray(it)?it.map(zt=>`${zt}`):`${it}`}),new Lt(q.root===me?le:Zi(q.root,me,le),Ve,Te)}function Zi(me,le,q){const Ce={};return _e(me.children,(Te,Ve)=>{Ce[Ve]=Te===le?q:Zi(Te,le,q)}),new Qe(me.segments,Ce)}class Xn{constructor(le,q,Ce){if(this.isAbsolute=le,this.numberOfDoubleDots=q,this.commands=Ce,le&&Ce.length>0&&Qn(Ce[0]))throw new Error("Root segment cannot have matrix parameters");const Te=Ce.find(kn);if(Te&&Te!==U(Ce))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gi{constructor(le,q,Ce){this.segmentGroup=le,this.processChildren=q,this.index=Ce}}function Rn(me,le,q){if(me||(me=new Qe([],{})),0===me.segments.length&&me.hasChildren())return qi(me,le,q);const Ce=function(me,le,q){let Ce=0,Te=le;const Ve={match:!1,pathIndex:0,commandIndex:0};for(;Te=q.length)return Ve;const it=me.segments[Te],bt=q[Ce];if(kn(bt))break;const zt=`${bt}`,vn=Ce0&&void 0===zt)break;if(zt&&vn&&"object"==typeof vn&&void 0===vn.outlets){if(!Gn(zt,vn,it))return Ve;Ce+=2}else{if(!Gn(zt,{},it))return Ve;Ce++}Te++}return{match:!0,pathIndex:Te,commandIndex:Ce}}(me,le,q),Te=q.slice(Ce.commandIndex);if(Ce.match&&Ce.pathIndex{"string"==typeof Ve&&(Ve=[Ve]),null!==Ve&&(Te[it]=Rn(me.children[it],le,Ve))}),_e(me.children,(Ve,it)=>{void 0===Ce[it]&&(Te[it]=Ve)}),new Qe(me.segments,Te)}}function Fn(me,le,q){const Ce=me.segments.slice(0,le);let Te=0;for(;Te{"string"==typeof q&&(q=[q]),null!==q&&(le[Ce]=Fn(new Qe([],{}),0,q))}),le}function mi(me){const le={};return _e(me,(q,Ce)=>le[Ce]=`${q}`),le}function Gn(me,le,q){return me==q.path&&fe(le,q.parameters)}class gn{constructor(le,q,Ce,Te){this.routeReuseStrategy=le,this.futureState=q,this.currState=Ce,this.forwardEvent=Te}activate(le){const q=this.futureState._root,Ce=this.currState?this.currState._root:null;this.deactivateChildRoutes(q,Ce,le),Zt(this.futureState.root),this.activateChildRoutes(q,Ce,le)}deactivateChildRoutes(le,q,Ce){const Te=Ae(q);le.children.forEach(Ve=>{const it=Ve.value.outlet;this.deactivateRoutes(Ve,Te[it],Ce),delete Te[it]}),_e(Te,(Ve,it)=>{this.deactivateRouteAndItsChildren(Ve,Ce)})}deactivateRoutes(le,q,Ce){const Te=le.value,Ve=q?q.value:null;if(Te===Ve)if(Te.component){const it=Ce.getContext(Te.outlet);it&&this.deactivateChildRoutes(le,q,it.children)}else this.deactivateChildRoutes(le,q,Ce);else Ve&&this.deactivateRouteAndItsChildren(q,Ce)}deactivateRouteAndItsChildren(le,q){le.value.component&&this.routeReuseStrategy.shouldDetach(le.value.snapshot)?this.detachAndStoreRouteSubtree(le,q):this.deactivateRouteAndOutlet(le,q)}detachAndStoreRouteSubtree(le,q){const Ce=q.getContext(le.value.outlet),Te=Ce&&le.value.component?Ce.children:q,Ve=Ae(le);for(const it of Object.keys(Ve))this.deactivateRouteAndItsChildren(Ve[it],Te);if(Ce&&Ce.outlet){const it=Ce.outlet.detach(),bt=Ce.children.onOutletDeactivated();this.routeReuseStrategy.store(le.value.snapshot,{componentRef:it,route:le,contexts:bt})}}deactivateRouteAndOutlet(le,q){const Ce=q.getContext(le.value.outlet),Te=Ce&&le.value.component?Ce.children:q,Ve=Ae(le);for(const it of Object.keys(Ve))this.deactivateRouteAndItsChildren(Ve[it],Te);Ce&&Ce.outlet&&(Ce.outlet.deactivate(),Ce.children.onOutletDeactivated(),Ce.attachRef=null,Ce.resolver=null,Ce.route=null)}activateChildRoutes(le,q,Ce){const Te=Ae(q);le.children.forEach(Ve=>{this.activateRoutes(Ve,Te[Ve.value.outlet],Ce),this.forwardEvent(new pt(Ve.value.snapshot))}),le.children.length&&this.forwardEvent(new et(le.value.snapshot))}activateRoutes(le,q,Ce){const Te=le.value,Ve=q?q.value:null;if(Zt(Te),Te===Ve)if(Te.component){const it=Ce.getOrCreateContext(Te.outlet);this.activateChildRoutes(le,q,it.children)}else this.activateChildRoutes(le,q,Ce);else if(Te.component){const it=Ce.getOrCreateContext(Te.outlet);if(this.routeReuseStrategy.shouldAttach(Te.snapshot)){const bt=this.routeReuseStrategy.retrieve(Te.snapshot);this.routeReuseStrategy.store(Te.snapshot,null),it.children.onOutletReAttached(bt.contexts),it.attachRef=bt.componentRef,it.route=bt.route.value,it.outlet&&it.outlet.attach(bt.componentRef,bt.route.value),Zt(bt.route.value),this.activateChildRoutes(le,null,it.children)}else{const bt=function(me){for(let le=me.parent;le;le=le.parent){const q=le.routeConfig;if(q&&q._loadedConfig)return q._loadedConfig;if(q&&q.component)return null}return null}(Te.snapshot),zt=bt?bt.module.componentFactoryResolver:null;it.attachRef=null,it.route=Te,it.resolver=zt,it.outlet&&it.outlet.activateWith(Te,zt),this.activateChildRoutes(le,null,it.children)}}else this.activateChildRoutes(le,null,Ce)}}class Sn{constructor(le,q){this.routes=le,this.module=q}}function Wn(me){return"function"==typeof me}function Li(me){return me instanceof Lt}const Mr=Symbol("INITIAL_VALUE");function cr(){return(0,g.w)(me=>(0,s.aj)(me.map(le=>le.pipe((0,b.q)(1),(0,y.O)(Mr)))).pipe((0,S.R)((le,q)=>{let Ce=!1;return q.reduce((Te,Ve,it)=>Te!==Mr?Te:(Ve===Mr&&(Ce=!0),Ce||!1!==Ve&&it!==q.length-1&&!Li(Ve)?Te:Ve),le)},Mr),(0,I.h)(le=>le!==Mr),(0,l.U)(le=>Li(le)?le:!0===le),(0,b.q)(1)))}class $r{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new hr,this.attachRef=null}}class hr{constructor(){this.contexts=new Map}onChildOutletCreated(le,q){const Ce=this.getOrCreateContext(le);Ce.outlet=q,this.contexts.set(le,Ce)}onChildOutletDestroyed(le){const q=this.getContext(le);q&&(q.outlet=null,q.attachRef=null)}onOutletDeactivated(){const le=this.contexts;return this.contexts=new Map,le}onOutletReAttached(le){this.contexts=le}getOrCreateContext(le){let q=this.getContext(le);return q||(q=new $r,this.contexts.set(le,q)),q}getContext(le){return this.contexts.get(le)||null}}let qr=(()=>{class me{constructor(q,Ce,Te,Ve,it){this.parentContexts=q,this.location=Ce,this.resolver=Te,this.changeDetector=it,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,this.attachEvents=new n.EventEmitter,this.detachEvents=new n.EventEmitter,this.name=Ve||yt,q.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const q=this.parentContexts.getContext(this.name);q&&q.route&&(q.attachRef?this.attach(q.attachRef,q.route):this.activateWith(q.route,q.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const q=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(q.instance),q}attach(q,Ce){this.activated=q,this._activatedRoute=Ce,this.location.insert(q.hostView),this.attachEvents.emit(q.instance)}deactivate(){if(this.activated){const q=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(q)}}activateWith(q,Ce){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=q;const it=(Ce=Ce||this.resolver).resolveComponentFactory(q._futureSnapshot.routeConfig.component),bt=this.parentContexts.getOrCreateContext(this.name).children,zt=new ir(q,bt,this.location.injector);this.activated=this.location.createComponent(it,this.location.length,zt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(hr),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275injectAttribute("name"),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),me})();class ir{constructor(le,q,Ce){this.route=le,this.childContexts=q,this.parent=Ce}get(le,q){return le===B?this.route:le===hr?this.childContexts:this.parent.get(le,q)}}let Cr=(()=>{class me{}return me.\u0275fac=function(q){return new(q||me)},me.\u0275cmp=n.\u0275\u0275defineComponent({type:me,selectors:[["ng-component"]],decls:1,vars:0,template:function(q,Ce){1&q&&n.\u0275\u0275element(0,"router-outlet")},directives:[qr],encapsulation:2}),me})();function Sr(me,le=""){for(let q=0;qWi(Ce)===le);return q.push(...me.filter(Ce=>Wi(Ce)!==le)),q}const Rr={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Dr(me,le,q){var Ce;if(""===le.path)return"full"===le.pathMatch&&(me.hasChildren()||q.length>0)?Object.assign({},Rr):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ve=(le.matcher||Et)(q,me,le);if(!Ve)return Object.assign({},Rr);const it={};_e(Ve.posParams,(zt,vn)=>{it[vn]=zt.path});const bt=Ve.consumed.length>0?Object.assign(Object.assign({},it),Ve.consumed[Ve.consumed.length-1].parameters):it;return{matched:!0,consumedSegments:Ve.consumed,lastChild:Ve.consumed.length,parameters:bt,positionalParamSegments:null!==(Ce=Ve.posParams)&&void 0!==Ce?Ce:{}}}function Lr(me,le,q,Ce,Te="corrected"){if(q.length>0&&function(me,le,q){return q.some(Ce=>Jr(me,le,Ce)&&Wi(Ce)!==yt)}(me,q,Ce)){const it=new Qe(le,function(me,le,q,Ce){const Te={};Te[yt]=Ce,Ce._sourceSegment=me,Ce._segmentIndexShift=le.length;for(const Ve of q)if(""===Ve.path&&Wi(Ve)!==yt){const it=new Qe([],{});it._sourceSegment=me,it._segmentIndexShift=le.length,Te[Wi(Ve)]=it}return Te}(me,le,Ce,new Qe(q,me.children)));return it._sourceSegment=me,it._segmentIndexShift=le.length,{segmentGroup:it,slicedSegments:[]}}if(0===q.length&&function(me,le,q){return q.some(Ce=>Jr(me,le,Ce))}(me,q,Ce)){const it=new Qe(me.segments,function(me,le,q,Ce,Te,Ve){const it={};for(const bt of Ce)if(Jr(me,q,bt)&&!Te[Wi(bt)]){const zt=new Qe([],{});zt._sourceSegment=me,zt._segmentIndexShift="legacy"===Ve?me.segments.length:le.length,it[Wi(bt)]=zt}return Object.assign(Object.assign({},Te),it)}(me,le,q,Ce,me.children,Te));return it._sourceSegment=me,it._segmentIndexShift=le.length,{segmentGroup:it,slicedSegments:q}}const Ve=new Qe(me.segments,me.children);return Ve._sourceSegment=me,Ve._segmentIndexShift=le.length,{segmentGroup:Ve,slicedSegments:q}}function Jr(me,le,q){return(!(me.hasChildren()||le.length>0)||"full"!==q.pathMatch)&&""===q.path}function Tr(me,le,q,Ce){return!!(Wi(me)===Ce||Ce!==yt&&Jr(le,q,me))&&("**"===me.path||Dr(le,me,q).matched)}function us(me,le,q){return 0===le.length&&!me.children[q]}class si{constructor(le){this.segmentGroup=le||null}}class zr{constructor(le){this.urlTree=le}}function Er(me){return new d.y(le=>le.error(new si(me)))}function be(me){return new d.y(le=>le.error(new zr(me)))}function Q(me){return new d.y(le=>le.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${me}'`)))}class ve{constructor(le,q,Ce,Te,Ve){this.configLoader=q,this.urlSerializer=Ce,this.urlTree=Te,this.config=Ve,this.allowRedirects=!0,this.ngModule=le.get(n.NgModuleRef)}apply(){const le=Lr(this.urlTree.root,[],[],this.config).segmentGroup,q=new Qe(le.segments,le.children);return this.expandSegmentGroup(this.ngModule,this.config,q,yt).pipe((0,l.U)(Ve=>this.createUrlTree(Nt(Ve),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,R.K)(Ve=>{if(Ve instanceof zr)return this.allowRedirects=!1,this.match(Ve.urlTree);throw Ve instanceof si?this.noMatchError(Ve):Ve}))}match(le){return this.expandSegmentGroup(this.ngModule,this.config,le.root,yt).pipe((0,l.U)(Te=>this.createUrlTree(Nt(Te),le.queryParams,le.fragment))).pipe((0,R.K)(Te=>{throw Te instanceof si?this.noMatchError(Te):Te}))}noMatchError(le){return new Error(`Cannot match any routes. URL Segment: '${le.segmentGroup}'`)}createUrlTree(le,q,Ce){const Te=le.segments.length>0?new Qe([],{[yt]:le}):le;return new Lt(Te,q,Ce)}expandSegmentGroup(le,q,Ce,Te){return 0===Ce.segments.length&&Ce.hasChildren()?this.expandChildren(le,q,Ce).pipe((0,l.U)(Ve=>new Qe([],Ve))):this.expandSegment(le,Ce,q,Ce.segments,Te,!0)}expandChildren(le,q,Ce){const Te=[];for(const Ve of Object.keys(Ce.children))"primary"===Ve?Te.unshift(Ve):Te.push(Ve);return(0,f.D)(Te).pipe((0,M.b)(Ve=>{const it=Ce.children[Ve],bt=Wr(q,Ve);return this.expandSegmentGroup(le,bt,it,Ve).pipe((0,l.U)(zt=>({segment:zt,outlet:Ve})))}),(0,S.R)((Ve,it)=>(Ve[it.outlet]=it.segment,Ve),{}),(0,A.Z)())}expandSegment(le,q,Ce,Te,Ve,it){return(0,f.D)(Ce).pipe((0,M.b)(bt=>this.expandSegmentAgainstRoute(le,q,Ce,bt,Te,Ve,it).pipe((0,R.K)(vn=>{if(vn instanceof si)return(0,_.of)(null);throw vn}))),(0,D.P)(bt=>!!bt),(0,R.K)((bt,zt)=>{if(bt instanceof u.K||"EmptyError"===bt.name){if(us(q,Te,Ve))return(0,_.of)(new Qe([],{}));throw new si(q)}throw bt}))}expandSegmentAgainstRoute(le,q,Ce,Te,Ve,it,bt){return Tr(Te,q,Ve,it)?void 0===Te.redirectTo?this.matchSegmentAgainstRoute(le,q,Te,Ve,it):bt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(le,q,Ce,Te,Ve,it):Er(q):Er(q)}expandSegmentAgainstRouteUsingRedirect(le,q,Ce,Te,Ve,it){return"**"===Te.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(le,Ce,Te,it):this.expandRegularSegmentAgainstRouteUsingRedirect(le,q,Ce,Te,Ve,it)}expandWildCardWithParamsAgainstRouteUsingRedirect(le,q,Ce,Te){const Ve=this.applyRedirectCommands([],Ce.redirectTo,{});return Ce.redirectTo.startsWith("/")?be(Ve):this.lineralizeSegments(Ce,Ve).pipe((0,w.zg)(it=>{const bt=new Qe(it,{});return this.expandSegment(le,bt,q,it,Te,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(le,q,Ce,Te,Ve,it){const{matched:bt,consumedSegments:zt,lastChild:vn,positionalParamSegments:fi}=Dr(q,Te,Ve);if(!bt)return Er(q);const Dn=this.applyRedirectCommands(zt,Te.redirectTo,fi);return Te.redirectTo.startsWith("/")?be(Dn):this.lineralizeSegments(Te,Dn).pipe((0,w.zg)(vi=>this.expandSegment(le,q,Ce,vi.concat(Ve.slice(vn)),it,!1)))}matchSegmentAgainstRoute(le,q,Ce,Te,Ve){if("**"===Ce.path)return Ce.loadChildren?(Ce._loadedConfig?(0,_.of)(Ce._loadedConfig):this.configLoader.load(le.injector,Ce)).pipe((0,l.U)(vi=>(Ce._loadedConfig=vi,new Qe(Te,{})))):(0,_.of)(new Qe(Te,{}));const{matched:it,consumedSegments:bt,lastChild:zt}=Dr(q,Ce,Te);if(!it)return Er(q);const vn=Te.slice(zt);return this.getChildConfig(le,Ce,Te).pipe((0,w.zg)(Dn=>{const vi=Dn.module,Di=Dn.routes,{segmentGroup:hs,slicedSegments:Gr}=Lr(q,bt,vn,Di),fs=new Qe(hs.segments,hs.children);if(0===Gr.length&&fs.hasChildren())return this.expandChildren(vi,Di,fs).pipe((0,l.U)(Rs=>new Qe(bt,Rs)));if(0===Di.length&&0===Gr.length)return(0,_.of)(new Qe(bt,{}));const ps=Wi(Ce)===Ve;return this.expandSegment(vi,fs,Di,Gr,ps?yt:Ve,!0).pipe((0,l.U)(ss=>new Qe(bt.concat(ss.segments),ss.children)))}))}getChildConfig(le,q,Ce){return q.children?(0,_.of)(new Sn(q.children,le)):q.loadChildren?void 0!==q._loadedConfig?(0,_.of)(q._loadedConfig):this.runCanLoadGuards(le.injector,q,Ce).pipe((0,w.zg)(Te=>{return Te?this.configLoader.load(le.injector,q).pipe((0,l.U)(Ve=>(q._loadedConfig=Ve,Ve))):(me=q,new d.y(le=>le.error(Tt(`Cannot load children because the guard of the route "path: '${me.path}'" returned false`))));var me})):(0,_.of)(new Sn([],le))}runCanLoadGuards(le,q,Ce){const Te=q.canLoad;if(!Te||0===Te.length)return(0,_.of)(!0);const Ve=Te.map(it=>{const bt=le.get(it);let zt;if((me=bt)&&Wn(me.canLoad))zt=bt.canLoad(q,Ce);else{if(!Wn(bt))throw new Error("Invalid CanLoad guard");zt=bt(q,Ce)}var me;return Be(zt)});return(0,_.of)(Ve).pipe(cr(),(0,x.b)(it=>{if(!Li(it))return;const bt=Tt(`Redirecting to "${this.urlSerializer.serialize(it)}"`);throw bt.url=it,bt}),(0,l.U)(it=>!0===it))}lineralizeSegments(le,q){let Ce=[],Te=q.root;for(;;){if(Ce=Ce.concat(Te.segments),0===Te.numberOfChildren)return(0,_.of)(Ce);if(Te.numberOfChildren>1||!Te.children[yt])return Q(le.redirectTo);Te=Te.children[yt]}}applyRedirectCommands(le,q,Ce){return this.applyRedirectCreatreUrlTree(q,this.urlSerializer.parse(q),le,Ce)}applyRedirectCreatreUrlTree(le,q,Ce,Te){const Ve=this.createSegmentGroup(le,q.root,Ce,Te);return new Lt(Ve,this.createQueryParams(q.queryParams,this.urlTree.queryParams),q.fragment)}createQueryParams(le,q){const Ce={};return _e(le,(Te,Ve)=>{if("string"==typeof Te&&Te.startsWith(":")){const bt=Te.substring(1);Ce[Ve]=q[bt]}else Ce[Ve]=Te}),Ce}createSegmentGroup(le,q,Ce,Te){const Ve=this.createSegments(le,q.segments,Ce,Te);let it={};return _e(q.children,(bt,zt)=>{it[zt]=this.createSegmentGroup(le,bt,Ce,Te)}),new Qe(Ve,it)}createSegments(le,q,Ce,Te){return q.map(Ve=>Ve.path.startsWith(":")?this.findPosParam(le,Ve,Te):this.findOrReturn(Ve,Ce))}findPosParam(le,q,Ce){const Te=Ce[q.path.substring(1)];if(!Te)throw new Error(`Cannot redirect to '${le}'. Cannot find '${q.path}'.`);return Te}findOrReturn(le,q){let Ce=0;for(const Te of q){if(Te.path===le.path)return q.splice(Ce),Te;Ce++}return le}}function Nt(me){const le={};for(const Ce of Object.keys(me.children)){const Ve=Nt(me.children[Ce]);(Ve.segments.length>0||Ve.hasChildren())&&(le[Ce]=Ve)}return function(me){if(1===me.numberOfChildren&&me.children[yt]){const le=me.children[yt];return new Qe(me.segments.concat(le.segments),le.children)}return me}(new Qe(me.segments,le))}class In{constructor(le){this.path=le,this.route=this.path[this.path.length-1]}}class ni{constructor(le,q){this.component=le,this.route=q}}function di(me,le,q){const Ce=me._root;return ki(Ce,le?le._root:null,q,[Ce.value])}function hi(me,le,q){const Ce=function(me){if(!me)return null;for(let le=me.parent;le;le=le.parent){const q=le.routeConfig;if(q&&q._loadedConfig)return q._loadedConfig}return null}(le);return(Ce?Ce.module.injector:q).get(me)}function ki(me,le,q,Ce,Te={canDeactivateChecks:[],canActivateChecks:[]}){const Ve=Ae(le);return me.children.forEach(it=>{(function(me,le,q,Ce,Te={canDeactivateChecks:[],canActivateChecks:[]}){const Ve=me.value,it=le?le.value:null,bt=q?q.getContext(me.value.outlet):null;if(it&&Ve.routeConfig===it.routeConfig){const zt=function(me,le,q){if("function"==typeof q)return q(me,le);switch(q){case"pathParamsChange":return!qt(me.url,le.url);case"pathParamsOrQueryParamsChange":return!qt(me.url,le.url)||!fe(me.queryParams,le.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!an(me,le)||!fe(me.queryParams,le.queryParams);default:return!an(me,le)}}(it,Ve,Ve.routeConfig.runGuardsAndResolvers);zt?Te.canActivateChecks.push(new In(Ce)):(Ve.data=it.data,Ve._resolvedData=it._resolvedData),ki(me,le,Ve.component?bt?bt.children:null:q,Ce,Te),zt&&bt&&bt.outlet&&bt.outlet.isActivated&&Te.canDeactivateChecks.push(new ni(bt.outlet.component,it))}else it&&rr(le,bt,Te),Te.canActivateChecks.push(new In(Ce)),ki(me,null,Ve.component?bt?bt.children:null:q,Ce,Te)})(it,Ve[it.value.outlet],q,Ce.concat([it.value]),Te),delete Ve[it.value.outlet]}),_e(Ve,(it,bt)=>rr(it,q.getContext(bt),Te)),Te}function rr(me,le,q){const Ce=Ae(me),Te=me.value;_e(Ce,(Ve,it)=>{rr(Ve,Te.component?le?le.children.getContext(it):null:le,q)}),q.canDeactivateChecks.push(new ni(Te.component&&le&&le.outlet&&le.outlet.isActivated?le.outlet.component:null,Te))}class pe{}function Re(me){return new d.y(le=>le.error(me))}class rt{constructor(le,q,Ce,Te,Ve,it){this.rootComponentType=le,this.config=q,this.urlTree=Ce,this.url=Te,this.paramsInheritanceStrategy=Ve,this.relativeLinkResolution=it}recognize(){const le=Lr(this.urlTree.root,[],[],this.config.filter(it=>void 0===it.redirectTo),this.relativeLinkResolution).segmentGroup,q=this.processSegmentGroup(this.config,le,yt);if(null===q)return null;const Ce=new Ze([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},yt,this.rootComponentType,null,this.urlTree.root,-1,{}),Te=new ci(Ce,q),Ve=new Wt(this.url,Te);return this.inheritParamsAndData(Ve._root),Ve}inheritParamsAndData(le){const q=le.value,Ce=de(q,this.paramsInheritanceStrategy);q.params=Object.freeze(Ce.params),q.data=Object.freeze(Ce.data),le.children.forEach(Te=>this.inheritParamsAndData(Te))}processSegmentGroup(le,q,Ce){return 0===q.segments.length&&q.hasChildren()?this.processChildren(le,q):this.processSegment(le,q,q.segments,Ce)}processChildren(le,q){const Ce=[];for(const Ve of Object.keys(q.children)){const it=q.children[Ve],bt=Wr(le,Ve),zt=this.processSegmentGroup(bt,it,Ve);if(null===zt)return null;Ce.push(...zt)}const Te=rn(Ce);return Te.sort((le,q)=>le.value.outlet===yt?-1:q.value.outlet===yt?1:le.value.outlet.localeCompare(q.value.outlet)),Te}processSegment(le,q,Ce,Te){for(const Ve of le){const it=this.processSegmentAgainstRoute(Ve,q,Ce,Te);if(null!==it)return it}return us(q,Ce,Te)?[]:null}processSegmentAgainstRoute(le,q,Ce,Te){if(le.redirectTo||!Tr(le,q,Ce,Te))return null;let Ve,it=[],bt=[];if("**"===le.path){const Di=Ce.length>0?U(Ce).parameters:{};Ve=new Ze(Ce,Di,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(le),Wi(le),le.component,le,Pn(q),Ln(q)+Ce.length,Bn(le))}else{const Di=Dr(q,le,Ce);if(!Di.matched)return null;it=Di.consumedSegments,bt=Ce.slice(Di.lastChild),Ve=new Ze(it,Di.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(le),Wi(le),le.component,le,Pn(q),Ln(q)+it.length,Bn(le))}const zt=(me=le).children?me.children:me.loadChildren?me._loadedConfig.routes:[],{segmentGroup:vn,slicedSegments:fi}=Lr(q,it,bt,zt.filter(Di=>void 0===Di.redirectTo),this.relativeLinkResolution);var me;if(0===fi.length&&vn.hasChildren()){const Di=this.processChildren(zt,vn);return null===Di?null:[new ci(Ve,Di)]}if(0===zt.length&&0===fi.length)return[new ci(Ve,[])];const Dn=Wi(le)===Te,vi=this.processSegment(zt,vn,fi,Dn?yt:Te);return null===vi?null:[new ci(Ve,vi)]}}function Gt(me){const le=me.value.routeConfig;return le&&""===le.path&&void 0===le.redirectTo}function rn(me){const le=[],q=new Set;for(const Ce of me){if(!Gt(Ce)){le.push(Ce);continue}const Te=le.find(Ve=>Ce.value.routeConfig===Ve.value.routeConfig);void 0!==Te?(Te.children.push(...Ce.children),q.add(Te)):le.push(Ce)}for(const Ce of q){const Te=rn(Ce.children);le.push(new ci(Ce.value,Te))}return le.filter(Ce=>!q.has(Ce))}function Pn(me){let le=me;for(;le._sourceSegment;)le=le._sourceSegment;return le}function Ln(me){let le=me,q=le._segmentIndexShift?le._segmentIndexShift:0;for(;le._sourceSegment;)le=le._sourceSegment,q+=le._segmentIndexShift?le._segmentIndexShift:0;return q-1}function _n(me){return me.data||{}}function Bn(me){return me.resolve||{}}function Nr(me){return(0,g.w)(le=>{const q=me(le);return q?(0,f.D)(q).pipe((0,l.U)(()=>le)):(0,_.of)(le)})}class fr{}class Xi{shouldDetach(le){return!1}store(le,q){}shouldAttach(le){return!1}retrieve(le){return null}shouldReuseRoute(le,q){return le.routeConfig===q.routeConfig}}class gr extends Xi{}const zi=new n.InjectionToken("ROUTES");class Pr{constructor(le,q,Ce,Te){this.injector=le,this.compiler=q,this.onLoadStartListener=Ce,this.onLoadEndListener=Te}load(le,q){if(q._loader$)return q._loader$;this.onLoadStartListener&&this.onLoadStartListener(q);const Te=this.loadModuleFactory(q.loadChildren).pipe((0,l.U)(Ve=>{this.onLoadEndListener&&this.onLoadEndListener(q);const it=Ve.create(le);return new Sn(T(it.injector.get(zi,void 0,n.InjectFlags.Self|n.InjectFlags.Optional)).map(jr),it)}),(0,R.K)(Ve=>{throw q._loader$=void 0,Ve}));return q._loader$=new i.c(Te,()=>new c.xQ).pipe((0,L.x)()),q._loader$}loadModuleFactory(le){return Be(le()).pipe((0,w.zg)(q=>q instanceof n.NgModuleFactory?(0,_.of)(q):(0,f.D)(this.compiler.compileModuleAsync(q))))}}class ys{}class Yi{shouldProcessUrl(le){return!0}extract(le){return le}merge(le,q){return le}}function Ur(me){throw me}function bs(me,le,q){return le.parse("/")}function Cs(me,le){return(0,_.of)(null)}const mn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Mn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let En=(()=>{class me{constructor(q,Ce,Te,Ve,it,bt,zt){this.rootComponentType=q,this.urlSerializer=Ce,this.rootContexts=Te,this.location=Ve,this.config=zt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new c.xQ,this.errorHandler=Ur,this.malformedUriErrorHandler=bs,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Cs,afterPreactivation:Cs},this.urlHandlingStrategy=new Yi,this.routeReuseStrategy=new gr,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=it.get(n.NgModuleRef),this.console=it.get(n.\u0275Console);const Dn=it.get(n.NgZone);this.isNgZoneEnabled=Dn instanceof n.NgZone&&n.NgZone.isInAngularZone(),this.resetConfig(zt),this.currentUrlTree=new Lt(new Qe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pr(it,bt,vi=>this.triggerEvent(new Xe(vi)),vi=>this.triggerEvent(new ft(vi))),this.routerState=ue(this.currentUrlTree,this.rootComponentType),this.transitions=new m.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var q;return null===(q=this.location.getState())||void 0===q?void 0:q.\u0275routerPageId}setupNavigations(q){const Ce=this.events;return q.pipe((0,I.h)(Te=>0!==Te.id),(0,l.U)(Te=>Object.assign(Object.assign({},Te),{extractedUrl:this.urlHandlingStrategy.extract(Te.rawUrl)})),(0,g.w)(Te=>{let Ve=!1,it=!1;return(0,_.of)(Te).pipe((0,x.b)(bt=>{this.currentNavigation={id:bt.id,initialUrl:bt.currentRawUrl,extractedUrl:bt.extractedUrl,trigger:bt.source,extras:bt.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,g.w)(bt=>{const zt=this.browserUrlTree.toString(),vn=!this.navigated||bt.extractedUrl.toString()!==zt||zt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||vn)&&this.urlHandlingStrategy.shouldProcessUrl(bt.rawUrl))return ii(bt.source)&&(this.browserUrlTree=bt.extractedUrl),(0,_.of)(bt).pipe((0,g.w)(Dn=>{const vi=this.transitions.getValue();return Ce.next(new ee(Dn.id,this.serializeUrl(Dn.extractedUrl),Dn.source,Dn.restoredState)),vi!==this.transitions.getValue()?o.E:Promise.resolve(Dn)}),function(me,le,q,Ce){return(0,g.w)(Te=>function(me,le,q,Ce,Te){return new ve(me,le,q,Ce,Te).apply()}(me,le,q,Te.extractedUrl,Ce).pipe((0,l.U)(Ve=>Object.assign(Object.assign({},Te),{urlAfterRedirects:Ve}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,x.b)(Dn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Dn.urlAfterRedirects})}),function(me,le,q,Ce,Te){return(0,w.zg)(Ve=>function(me,le,q,Ce,Te="emptyOnly",Ve="legacy"){try{const it=new rt(me,le,q,Ce,Te,Ve).recognize();return null===it?Re(new pe):(0,_.of)(it)}catch(it){return Re(it)}}(me,le,Ve.urlAfterRedirects,q(Ve.urlAfterRedirects),Ce,Te).pipe((0,l.U)(it=>Object.assign(Object.assign({},Ve),{targetSnapshot:it}))))}(this.rootComponentType,this.config,Dn=>this.serializeUrl(Dn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,x.b)(Dn=>{if("eager"===this.urlUpdateStrategy){if(!Dn.extras.skipLocationChange){const Di=this.urlHandlingStrategy.merge(Dn.urlAfterRedirects,Dn.rawUrl);this.setBrowserUrl(Di,Dn)}this.browserUrlTree=Dn.urlAfterRedirects}const vi=new ne(Dn.id,this.serializeUrl(Dn.extractedUrl),this.serializeUrl(Dn.urlAfterRedirects),Dn.targetSnapshot);Ce.next(vi)}));if(vn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:vi,extractedUrl:Di,source:hs,restoredState:Gr,extras:fs}=bt,ps=new ee(vi,this.serializeUrl(Di),hs,Gr);Ce.next(ps);const eo=ue(Di,this.rootComponentType).snapshot;return(0,_.of)(Object.assign(Object.assign({},bt),{targetSnapshot:eo,urlAfterRedirects:Di,extras:Object.assign(Object.assign({},fs),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=bt.rawUrl,bt.resolve(null),o.E}),Nr(bt=>{const{targetSnapshot:zt,id:vn,extractedUrl:fi,rawUrl:Dn,extras:{skipLocationChange:vi,replaceUrl:Di}}=bt;return this.hooks.beforePreactivation(zt,{navigationId:vn,appliedUrlTree:fi,rawUrlTree:Dn,skipLocationChange:!!vi,replaceUrl:!!Di})}),(0,x.b)(bt=>{const zt=new ae(bt.id,this.serializeUrl(bt.extractedUrl),this.serializeUrl(bt.urlAfterRedirects),bt.targetSnapshot);this.triggerEvent(zt)}),(0,l.U)(bt=>Object.assign(Object.assign({},bt),{guards:di(bt.targetSnapshot,bt.currentSnapshot,this.rootContexts)})),function(me,le){return(0,w.zg)(q=>{const{targetSnapshot:Ce,currentSnapshot:Te,guards:{canActivateChecks:Ve,canDeactivateChecks:it}}=q;return 0===it.length&&0===Ve.length?(0,_.of)(Object.assign(Object.assign({},q),{guardsResult:!0})):function(me,le,q,Ce){return(0,f.D)(me).pipe((0,w.zg)(Te=>function(me,le,q,Ce,Te){const Ve=le&&le.routeConfig?le.routeConfig.canDeactivate:null;if(!Ve||0===Ve.length)return(0,_.of)(!0);const it=Ve.map(bt=>{const zt=hi(bt,le,Te);let vn;if(function(me){return me&&Wn(me.canDeactivate)}(zt))vn=Be(zt.canDeactivate(me,le,q,Ce));else{if(!Wn(zt))throw new Error("Invalid CanDeactivate guard");vn=Be(zt(me,le,q,Ce))}return vn.pipe((0,D.P)())});return(0,_.of)(it).pipe(cr())}(Te.component,Te.route,q,le,Ce)),(0,D.P)(Te=>!0!==Te,!0))}(it,Ce,Te,me).pipe((0,w.zg)(bt=>bt&&function(me){return"boolean"==typeof me}(bt)?function(me,le,q,Ce){return(0,f.D)(le).pipe((0,M.b)(Te=>(0,h.z)(function(me,le){return null!==me&&le&&le(new Pe(me)),(0,_.of)(!0)}(Te.route.parent,Ce),function(me,le){return null!==me&&le&&le(new at(me)),(0,_.of)(!0)}(Te.route,Ce),function(me,le,q){const Ce=le[le.length-1],Ve=le.slice(0,le.length-1).reverse().map(it=>function(me){const le=me.routeConfig?me.routeConfig.canActivateChild:null;return le&&0!==le.length?{node:me,guards:le}:null}(it)).filter(it=>null!==it).map(it=>(0,r.P)(()=>{const bt=it.guards.map(zt=>{const vn=hi(zt,it.node,q);let fi;if(function(me){return me&&Wn(me.canActivateChild)}(vn))fi=Be(vn.canActivateChild(Ce,me));else{if(!Wn(vn))throw new Error("Invalid CanActivateChild guard");fi=Be(vn(Ce,me))}return fi.pipe((0,D.P)())});return(0,_.of)(bt).pipe(cr())}));return(0,_.of)(Ve).pipe(cr())}(me,Te.path,q),function(me,le,q){const Ce=le.routeConfig?le.routeConfig.canActivate:null;if(!Ce||0===Ce.length)return(0,_.of)(!0);const Te=Ce.map(Ve=>(0,r.P)(()=>{const it=hi(Ve,le,q);let bt;if(function(me){return me&&Wn(me.canActivate)}(it))bt=Be(it.canActivate(le,me));else{if(!Wn(it))throw new Error("Invalid CanActivate guard");bt=Be(it(le,me))}return bt.pipe((0,D.P)())}));return(0,_.of)(Te).pipe(cr())}(me,Te.route,q))),(0,D.P)(Te=>!0!==Te,!0))}(Ce,Ve,me,le):(0,_.of)(bt)),(0,l.U)(bt=>Object.assign(Object.assign({},q),{guardsResult:bt})))})}(this.ngModule.injector,bt=>this.triggerEvent(bt)),(0,x.b)(bt=>{if(Li(bt.guardsResult)){const vn=Tt(`Redirecting to "${this.serializeUrl(bt.guardsResult)}"`);throw vn.url=bt.guardsResult,vn}const zt=new xe(bt.id,this.serializeUrl(bt.extractedUrl),this.serializeUrl(bt.urlAfterRedirects),bt.targetSnapshot,!!bt.guardsResult);this.triggerEvent(zt)}),(0,I.h)(bt=>!!bt.guardsResult||(this.restoreHistory(bt),this.cancelNavigationTransition(bt,""),!1)),Nr(bt=>{if(bt.guards.canActivateChecks.length)return(0,_.of)(bt).pipe((0,x.b)(zt=>{const vn=new Ie(zt.id,this.serializeUrl(zt.extractedUrl),this.serializeUrl(zt.urlAfterRedirects),zt.targetSnapshot);this.triggerEvent(vn)}),(0,g.w)(zt=>{let vn=!1;return(0,_.of)(zt).pipe(function(me,le){return(0,w.zg)(q=>{const{targetSnapshot:Ce,guards:{canActivateChecks:Te}}=q;if(!Te.length)return(0,_.of)(q);let Ve=0;return(0,f.D)(Te).pipe((0,M.b)(it=>function(me,le,q,Ce){return function(me,le,q,Ce){const Te=Object.keys(me);if(0===Te.length)return(0,_.of)({});const Ve={};return(0,f.D)(Te).pipe((0,w.zg)(it=>function(me,le,q,Ce){const Te=hi(me,le,Ce);return Be(Te.resolve?Te.resolve(le,q):Te(le,q))}(me[it],le,q,Ce).pipe((0,x.b)(bt=>{Ve[it]=bt}))),(0,C.h)(1),(0,w.zg)(()=>Object.keys(Ve).length===Te.length?(0,_.of)(Ve):o.E))}(me._resolve,me,le,Ce).pipe((0,l.U)(Ve=>(me._resolvedData=Ve,me.data=Object.assign(Object.assign({},me.data),de(me,q).resolve),null)))}(it.route,Ce,me,le)),(0,x.b)(()=>Ve++),(0,C.h)(1),(0,w.zg)(it=>Ve===Te.length?(0,_.of)(q):o.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,x.b)({next:()=>vn=!0,complete:()=>{vn||(this.restoreHistory(zt),this.cancelNavigationTransition(zt,"At least one route resolver didn't emit any value."))}}))}),(0,x.b)(zt=>{const vn=new We(zt.id,this.serializeUrl(zt.extractedUrl),this.serializeUrl(zt.urlAfterRedirects),zt.targetSnapshot);this.triggerEvent(vn)}))}),Nr(bt=>{const{targetSnapshot:zt,id:vn,extractedUrl:fi,rawUrl:Dn,extras:{skipLocationChange:vi,replaceUrl:Di}}=bt;return this.hooks.afterPreactivation(zt,{navigationId:vn,appliedUrlTree:fi,rawUrlTree:Dn,skipLocationChange:!!vi,replaceUrl:!!Di})}),(0,l.U)(bt=>{const zt=function(me,le,q){const Ce=zn(me,le._root,q?q._root:void 0);return new qe(Ce,le)}(this.routeReuseStrategy,bt.targetSnapshot,bt.currentRouterState);return Object.assign(Object.assign({},bt),{targetRouterState:zt})}),(0,x.b)(bt=>{this.currentUrlTree=bt.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(bt.urlAfterRedirects,bt.rawUrl),this.routerState=bt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(bt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,bt),this.browserUrlTree=bt.urlAfterRedirects)}),((me,le,q)=>(0,l.U)(Ce=>(new gn(le,Ce.targetRouterState,Ce.currentRouterState,q).activate(me),Ce)))(this.rootContexts,this.routeReuseStrategy,bt=>this.triggerEvent(bt)),(0,x.b)({next(){Ve=!0},complete(){Ve=!0}}),(0,F.x)(()=>{var bt;Ve||it||this.cancelNavigationTransition(Te,`Navigation ID ${Te.id} is not equal to the current navigation id ${this.navigationId}`),(null===(bt=this.currentNavigation)||void 0===bt?void 0:bt.id)===Te.id&&(this.currentNavigation=null)}),(0,R.K)(bt=>{if(it=!0,function(me){return me&&me[At]}(bt)){const zt=Li(bt.url);zt||(this.navigated=!0,this.restoreHistory(Te,!0));const vn=new J(Te.id,this.serializeUrl(Te.extractedUrl),bt.message);Ce.next(vn),zt?setTimeout(()=>{const fi=this.urlHandlingStrategy.merge(bt.url,this.rawUrlTree),Dn={skipLocationChange:Te.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ii(Te.source)};this.scheduleNavigation(fi,"imperative",null,Dn,{resolve:Te.resolve,reject:Te.reject,promise:Te.promise})},0):Te.resolve(!1)}else{this.restoreHistory(Te,!0);const zt=new ie(Te.id,this.serializeUrl(Te.extractedUrl),bt);Ce.next(zt);try{Te.resolve(this.errorHandler(bt))}catch(vn){Te.reject(vn)}}return o.E}))}))}resetRootComponentType(q){this.rootComponentType=q,this.routerState.root.component=this.rootComponentType}setTransition(q){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),q))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(q=>{const Ce="popstate"===q.type?"popstate":"hashchange";"popstate"===Ce&&setTimeout(()=>{var Te;const Ve={replaceUrl:!0},it=(null===(Te=q.state)||void 0===Te?void 0:Te.navigationId)?q.state:null;if(it){const zt=Object.assign({},it);delete zt.navigationId,delete zt.\u0275routerPageId,0!==Object.keys(zt).length&&(Ve.state=zt)}const bt=this.parseUrl(q.url);this.scheduleNavigation(bt,Ce,it,Ve)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(q){this.events.next(q)}resetConfig(q){Sr(q),this.config=q.map(jr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(q,Ce={}){const{relativeTo:Te,queryParams:Ve,fragment:it,queryParamsHandling:bt,preserveFragment:zt}=Ce,vn=Te||this.routerState.root,fi=zt?this.currentUrlTree.fragment:it;let Dn=null;switch(bt){case"merge":Dn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ve);break;case"preserve":Dn=this.currentUrlTree.queryParams;break;default:Dn=Ve||null}return null!==Dn&&(Dn=this.removeEmptyProps(Dn)),function(me,le,q,Ce,Te){if(0===q.length)return Mi(le.root,le.root,le,Ce,Te);const Ve=function(me){if("string"==typeof me[0]&&1===me.length&&"/"===me[0])return new Xn(!0,0,me);let le=0,q=!1;const Ce=me.reduce((Te,Ve,it)=>{if("object"==typeof Ve&&null!=Ve){if(Ve.outlets){const bt={};return _e(Ve.outlets,(zt,vn)=>{bt[vn]="string"==typeof zt?zt.split("/"):zt}),[...Te,{outlets:bt}]}if(Ve.segmentPath)return[...Te,Ve.segmentPath]}return"string"!=typeof Ve?[...Te,Ve]:0===it?(Ve.split("/").forEach((bt,zt)=>{0==zt&&"."===bt||(0==zt&&""===bt?q=!0:".."===bt?le++:""!=bt&&Te.push(bt))}),Te):[...Te,Ve]},[]);return new Xn(q,le,Ce)}(q);if(Ve.toRoot())return Mi(le.root,new Qe([],{}),le,Ce,Te);const it=function(me,le,q){if(me.isAbsolute)return new Gi(le.root,!0,0);if(-1===q.snapshot._lastPathIndex){const Ve=q.snapshot._urlSegment;return new Gi(Ve,Ve===le.root,0)}const Ce=Qn(me.commands[0])?0:1;return function(me,le,q){let Ce=me,Te=le,Ve=q;for(;Ve>Te;){if(Ve-=Te,Ce=Ce.parent,!Ce)throw new Error("Invalid number of '../'");Te=Ce.segments.length}return new Gi(Ce,!1,Te-Ve)}(q.snapshot._urlSegment,q.snapshot._lastPathIndex+Ce,me.numberOfDoubleDots)}(Ve,le,me),bt=it.processChildren?qi(it.segmentGroup,it.index,Ve.commands):Rn(it.segmentGroup,it.index,Ve.commands);return Mi(it.segmentGroup,bt,le,Ce,Te)}(vn,this.currentUrlTree,q,Dn,null!=fi?fi:null)}navigateByUrl(q,Ce={skipLocationChange:!1}){const Te=Li(q)?q:this.parseUrl(q),Ve=this.urlHandlingStrategy.merge(Te,this.rawUrlTree);return this.scheduleNavigation(Ve,"imperative",null,Ce)}navigate(q,Ce={skipLocationChange:!1}){return function(me){for(let le=0;le{const Ve=q[Te];return null!=Ve&&(Ce[Te]=Ve),Ce},{})}processNavigations(){this.navigations.subscribe(q=>{this.navigated=!0,this.lastSuccessfulId=q.id,this.currentPageId=q.targetPageId,this.events.next(new $(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,q.resolve(!0)},q=>{this.console.warn(`Unhandled Navigation Error: ${q}`)})}scheduleNavigation(q,Ce,Te,Ve,it){var bt,zt,vn;if(this.disposed)return Promise.resolve(!1);const fi=this.transitions.value,Dn=ii(Ce)&&fi&&!ii(fi.source),vi=fi.rawUrl.toString()===q.toString(),Di=fi.id===(null===(bt=this.currentNavigation)||void 0===bt?void 0:bt.id);if(Dn&&vi&&Di)return Promise.resolve(!0);let Gr,fs,ps;it?(Gr=it.resolve,fs=it.reject,ps=it.promise):ps=new Promise((Rs,ua)=>{Gr=Rs,fs=ua});const eo=++this.navigationId;let ss;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(Te=this.location.getState()),ss=Te&&Te.\u0275routerPageId?Te.\u0275routerPageId:Ve.replaceUrl||Ve.skipLocationChange?null!==(zt=this.browserPageId)&&void 0!==zt?zt:0:(null!==(vn=this.browserPageId)&&void 0!==vn?vn:0)+1):ss=0,this.setTransition({id:eo,targetPageId:ss,source:Ce,restoredState:Te,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:q,extras:Ve,resolve:Gr,reject:fs,promise:ps,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ps.catch(Rs=>Promise.reject(Rs))}setBrowserUrl(q,Ce){const Te=this.urlSerializer.serialize(q),Ve=Object.assign(Object.assign({},Ce.extras.state),this.generateNgRouterState(Ce.id,Ce.targetPageId));this.location.isCurrentPathEqualTo(Te)||Ce.extras.replaceUrl?this.location.replaceState(Te,"",Ve):this.location.go(Te,"",Ve)}restoreHistory(q,Ce=!1){var Te,Ve;if("computed"===this.canceledNavigationResolution){const it=this.currentPageId-q.targetPageId;"popstate"!==q.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(Te=this.currentNavigation)||void 0===Te?void 0:Te.finalUrl)||0===it?this.currentUrlTree===(null===(Ve=this.currentNavigation)||void 0===Ve?void 0:Ve.finalUrl)&&0===it&&(this.resetState(q),this.browserUrlTree=q.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(it)}else"replace"===this.canceledNavigationResolution&&(Ce&&this.resetState(q),this.resetUrlToCurrentUrlTree())}resetState(q){this.routerState=q.currentRouterState,this.currentUrlTree=q.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,q.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(q,Ce){const Te=new J(q.id,this.serializeUrl(q.extractedUrl),Ce);this.triggerEvent(Te),q.resolve(!1)}generateNgRouterState(q,Ce){return"computed"===this.canceledNavigationResolution?{navigationId:q,\u0275routerPageId:Ce}:{navigationId:q}}}return me.\u0275fac=function(q){n.\u0275\u0275invalidFactory()},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})();function ii(me){return"imperative"!==me}let Hi=(()=>{class me{constructor(q,Ce,Te,Ve,it){this.router=q,this.route=Ce,this.tabIndexAttribute=Te,this.renderer=Ve,this.el=it,this.commands=null,this.onChanges=new c.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(q){if(null!=this.tabIndexAttribute)return;const Ce=this.renderer,Te=this.el.nativeElement;null!==q?Ce.setAttribute(Te,"tabindex",q):Ce.removeAttribute(Te,"tabindex")}ngOnChanges(q){this.onChanges.next(this)}set routerLink(q){null!=q?(this.commands=Array.isArray(q)?q:[q],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const q={skipLocationChange:dr(this.skipLocationChange),replaceUrl:dr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,q),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dr(this.preserveFragment)})}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(En),n.\u0275\u0275directiveInject(B),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(q,Ce){1&q&&n.\u0275\u0275listener("click",function(){return Ce.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.\u0275\u0275NgOnChangesFeature]}),me})(),Zn=(()=>{class me{constructor(q,Ce,Te){this.router=q,this.route=Ce,this.locationStrategy=Te,this.commands=null,this.href=null,this.onChanges=new c.xQ,this.subscription=q.events.subscribe(Ve=>{Ve instanceof $&&this.updateTargetUrlAndHref()})}set routerLink(q){this.commands=null!=q?Array.isArray(q)?q:[q]:null}ngOnChanges(q){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(q,Ce,Te,Ve,it){if(0!==q||Ce||Te||Ve||it||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const bt={skipLocationChange:dr(this.skipLocationChange),replaceUrl:dr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,bt),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dr(this.preserveFragment)})}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(En),n.\u0275\u0275directiveInject(B),n.\u0275\u0275directiveInject(Y.LocationStrategy))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(q,Ce){1&q&&n.\u0275\u0275listener("click",function(Ve){return Ce.onClick(Ve.button,Ve.ctrlKey,Ve.shiftKey,Ve.altKey,Ve.metaKey)}),2&q&&n.\u0275\u0275attribute("target",Ce.target)("href",Ce.href,n.\u0275\u0275sanitizeUrl)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.\u0275\u0275NgOnChangesFeature]}),me})();function dr(me){return""===me||!!me}let Si=(()=>{class me{constructor(q,Ce,Te,Ve,it,bt){this.router=q,this.element=Ce,this.renderer=Te,this.cdr=Ve,this.link=it,this.linkWithHref=bt,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new n.EventEmitter,this.routerEventsSubscription=q.events.subscribe(zt=>{zt instanceof $&&this.update()})}ngAfterContentInit(){(0,_.of)(this.links.changes,this.linksWithHrefs.changes,(0,_.of)(null)).pipe((0,re.J)()).subscribe(q=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var q;null===(q=this.linkInputChangesSubscription)||void 0===q||q.unsubscribe();const Ce=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Te=>!!Te).map(Te=>Te.onChanges);this.linkInputChangesSubscription=(0,f.D)(Ce).pipe((0,re.J)()).subscribe(Te=>{this.isActive!==this.isLinkActive(this.router)(Te)&&this.update()})}set routerLinkActive(q){const Ce=Array.isArray(q)?q:q.split(" ");this.classes=Ce.filter(Te=>!!Te)}ngOnChanges(q){this.update()}ngOnDestroy(){var q;this.routerEventsSubscription.unsubscribe(),null===(q=this.linkInputChangesSubscription)||void 0===q||q.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const q=this.hasActiveLinks();this.isActive!==q&&(this.isActive=q,this.cdr.markForCheck(),this.classes.forEach(Ce=>{q?this.renderer.addClass(this.element.nativeElement,Ce):this.renderer.removeClass(this.element.nativeElement,Ce)}),this.isActiveChange.emit(q))})}isLinkActive(q){const Ce=function(me){return!!me.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Te=>!!Te.urlTree&&q.isActive(Te.urlTree,Ce)}hasActiveLinks(){const q=this.isLinkActive(this.router);return this.link&&q(this.link)||this.linkWithHref&&q(this.linkWithHref)||this.links.some(q)||this.linksWithHrefs.some(q)}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(En),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(Hi,8),n.\u0275\u0275directiveInject(Zn,8))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["","routerLinkActive",""]],contentQueries:function(q,Ce,Te){if(1&q&&(n.\u0275\u0275contentQuery(Te,Hi,5),n.\u0275\u0275contentQuery(Te,Zn,5)),2&q){let Ve;n.\u0275\u0275queryRefresh(Ve=n.\u0275\u0275loadQuery())&&(Ce.links=Ve),n.\u0275\u0275queryRefresh(Ve=n.\u0275\u0275loadQuery())&&(Ce.linksWithHrefs=Ve)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[n.\u0275\u0275NgOnChangesFeature]}),me})();class ws{}class or{preload(le,q){return q().pipe((0,R.K)(()=>(0,_.of)(null)))}}class ar{preload(le,q){return(0,_.of)(null)}}let Ir=(()=>{class me{constructor(q,Ce,Te,Ve){this.router=q,this.injector=Te,this.preloadingStrategy=Ve,this.loader=new Pr(Te,Ce,zt=>q.triggerEvent(new Xe(zt)),zt=>q.triggerEvent(new ft(zt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,I.h)(q=>q instanceof $),(0,M.b)(()=>this.preload())).subscribe(()=>{})}preload(){const q=this.injector.get(n.NgModuleRef);return this.processRoutes(q,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(q,Ce){const Te=[];for(const Ve of Ce)if(Ve.loadChildren&&!Ve.canLoad&&Ve._loadedConfig){const it=Ve._loadedConfig;Te.push(this.processRoutes(it.module,it.routes))}else Ve.loadChildren&&!Ve.canLoad?Te.push(this.preloadConfig(q,Ve)):Ve.children&&Te.push(this.processRoutes(q,Ve.children));return(0,f.D)(Te).pipe((0,re.J)(),(0,l.U)(Ve=>{}))}preloadConfig(q,Ce){return this.preloadingStrategy.preload(Ce,()=>(Ce._loadedConfig?(0,_.of)(Ce._loadedConfig):this.loader.load(q.injector,Ce)).pipe((0,w.zg)(Ve=>(Ce._loadedConfig=Ve,this.processRoutes(Ve.module,Ve.routes)))))}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275inject(En),n.\u0275\u0275inject(n.Compiler),n.\u0275\u0275inject(n.Injector),n.\u0275\u0275inject(ws))},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})(),_r=(()=>{class me{constructor(q,Ce,Te={}){this.router=q,this.viewportScroller=Ce,this.options=Te,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Te.scrollPositionRestoration=Te.scrollPositionRestoration||"disabled",Te.anchorScrolling=Te.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(q=>{q instanceof ee?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=q.navigationTrigger,this.restoredId=q.restoredState?q.restoredState.navigationId:0):q instanceof $&&(this.lastId=q.id,this.scheduleScrollEvent(q,this.router.parseUrl(q.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(q=>{q instanceof vt&&(q.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(q.position):q.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(q.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(q,Ce){this.router.triggerEvent(new vt(q,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ce))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return me.\u0275fac=function(q){n.\u0275\u0275invalidFactory()},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})();const Br=new n.InjectionToken("ROUTER_CONFIGURATION"),Vs=new n.InjectionToken("ROUTER_FORROOT_GUARD"),qs=[Y.Location,{provide:Se,useClass:te},{provide:En,useFactory:function(me,le,q,Ce,Te,Ve,it={},bt,zt){const vn=new En(null,me,le,q,Ce,Te,T(Ve));return bt&&(vn.urlHandlingStrategy=bt),zt&&(vn.routeReuseStrategy=zt),z(it,vn),it.enableTracing&&vn.events.subscribe(fi=>{var Dn,vi;null===(Dn=console.group)||void 0===Dn||Dn.call(console,`Router Event: ${fi.constructor.name}`),console.log(fi.toString()),console.log(fi),null===(vi=console.groupEnd)||void 0===vi||vi.call(console)}),vn},deps:[Se,hr,Y.Location,n.Injector,n.Compiler,zi,Br,[ys,new n.Optional],[fr,new n.Optional]]},hr,{provide:B,useFactory:function(me){return me.routerState.root},deps:[En]},Ir,ar,or,{provide:Br,useValue:{enableTracing:!1}}];function ns(){return new n.NgProbeToken("Router",En)}let rs=(()=>{class me{constructor(q,Ce){}static forRoot(q,Ce){return{ngModule:me,providers:[qs,Ss(q),{provide:Vs,useFactory:Ms,deps:[[En,new n.Optional,new n.SkipSelf]]},{provide:Br,useValue:Ce||{}},{provide:Y.LocationStrategy,useFactory:Js,deps:[Y.PlatformLocation,[new n.Inject(Y.APP_BASE_HREF),new n.Optional],Br]},{provide:_r,useFactory:$s,deps:[En,Y.ViewportScroller,Br]},{provide:ws,useExisting:Ce&&Ce.preloadingStrategy?Ce.preloadingStrategy:ar},{provide:n.NgProbeToken,multi:!0,useFactory:ns},[je,{provide:n.APP_INITIALIZER,multi:!0,useFactory:Mt,deps:[je]},{provide:ln,useFactory:jt,deps:[je]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:ln}]]}}static forChild(q){return{ngModule:me,providers:[Ss(q)]}}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275inject(Vs,8),n.\u0275\u0275inject(En,8))},me.\u0275mod=n.\u0275\u0275defineNgModule({type:me}),me.\u0275inj=n.\u0275\u0275defineInjector({}),me})();function $s(me,le,q){return q.scrollOffset&&le.setOffset(q.scrollOffset),new _r(me,le,q)}function Js(me,le,q={}){return q.useHash?new Y.HashLocationStrategy(me,le):new Y.PathLocationStrategy(me,le)}function Ms(me){return"guarded"}function Ss(me){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:me},{provide:zi,multi:!0,useValue:me}]}function z(me,le){me.errorHandler&&(le.errorHandler=me.errorHandler),me.malformedUriErrorHandler&&(le.malformedUriErrorHandler=me.malformedUriErrorHandler),me.onSameUrlNavigation&&(le.onSameUrlNavigation=me.onSameUrlNavigation),me.paramsInheritanceStrategy&&(le.paramsInheritanceStrategy=me.paramsInheritanceStrategy),me.relativeLinkResolution&&(le.relativeLinkResolution=me.relativeLinkResolution),me.urlUpdateStrategy&&(le.urlUpdateStrategy=me.urlUpdateStrategy),me.canceledNavigationResolution&&(le.canceledNavigationResolution=me.canceledNavigationResolution)}let je=(()=>{class me{constructor(q){this.injector=q,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new c.xQ}appInitializer(){return this.injector.get(Y.LOCATION_INITIALIZED,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Ce=null;const Te=new Promise(bt=>Ce=bt),Ve=this.injector.get(En),it=this.injector.get(Br);return"disabled"===it.initialNavigation?(Ve.setUpLocationChangeListener(),Ce(!0)):"enabled"===it.initialNavigation||"enabledBlocking"===it.initialNavigation?(Ve.hooks.afterPreactivation=()=>this.initNavigation?(0,_.of)(null):(this.initNavigation=!0,Ce(!0),this.resultOfPreactivationDone),Ve.initialNavigation()):Ce(!0),Te})}bootstrapListener(q){const Ce=this.injector.get(Br),Te=this.injector.get(Ir),Ve=this.injector.get(_r),it=this.injector.get(En),bt=this.injector.get(n.ApplicationRef);q===bt.components[0]&&(("enabledNonBlocking"===Ce.initialNavigation||void 0===Ce.initialNavigation)&&it.initialNavigation(),Te.setUpPreloading(),Ve.init(),it.resetRootComponentType(bt.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275inject(n.Injector))},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})();function Mt(me){return me.appInitializer.bind(me)}function jt(me){return me.bootstrapListener.bind(me)}const ln=new n.InjectionToken("Router Initializer"),Ki=new n.Version("13.1.1")},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AUTH_CONFIG:()=>AUTH_CONFIG,AbstractValidationHandler:()=>AbstractValidationHandler,AuthConfig:()=>AuthConfig,DateTimeProvider:()=>DateTimeProvider,DefaultHashHandler:()=>DefaultHashHandler,DefaultOAuthInterceptor:()=>DefaultOAuthInterceptor,HashHandler:()=>HashHandler,JwksValidationHandler:()=>JwksValidationHandler,LoginOptions:()=>LoginOptions,MemoryStorage:()=>MemoryStorage,NullValidationHandler:()=>NullValidationHandler,OAuthErrorEvent:()=>OAuthErrorEvent,OAuthEvent:()=>OAuthEvent,OAuthInfoEvent:()=>OAuthInfoEvent,OAuthLogger:()=>OAuthLogger,OAuthModule:()=>OAuthModule,OAuthModuleConfig:()=>OAuthModuleConfig,OAuthNoopResourceServerErrorHandler:()=>OAuthNoopResourceServerErrorHandler,OAuthResourceServerConfig:()=>OAuthResourceServerConfig,OAuthResourceServerErrorHandler:()=>OAuthResourceServerErrorHandler,OAuthService:()=>OAuthService,OAuthStorage:()=>OAuthStorage,OAuthSuccessEvent:()=>OAuthSuccessEvent,ReceivedTokens:()=>ReceivedTokens,SystemDateTimeProvider:()=>SystemDateTimeProvider,UrlHelperService:()=>UrlHelperService,ValidationHandler:()=>ValidationHandler});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7e3),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class ye extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return ye.\u0275fac=function(){let W;return function(n){return(W||(W=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275getInheritedFactory(ye)))(n||ye)}}(),ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class ye{constructor(){this.data=new Map}getItem(p){return this.data.get(p)}removeItem(p){this.data.delete(p)}setItem(p,n){this.data.set(p,n)}}return ye.\u0275fac=function(p){return new(p||ye)},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class ReceivedTokens{}class OAuthEvent{constructor(W){this.type=W}}class OAuthSuccessEvent extends OAuthEvent{constructor(W,p=null){super(W),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(W,p=null){super(W),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(W,p,n=null){super(W),this.reason=p,this.params=n}}function b64DecodeUnicode(ye){const W=ye.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(W).split("").map(function(p){return"%"+("00"+p.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(ye){return btoa(ye).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(W){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=p=>{location.href=p},W&&Object.assign(this,W)}}class WebHttpUrlEncodingCodec{encodeKey(W){return encodeURIComponent(W)}encodeValue(W){return encodeURIComponent(W)}decodeKey(W){return decodeURIComponent(W)}decodeValue(W){return decodeURIComponent(W)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(W){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){let p=this.inferHashAlgorithm(W.idTokenHeader),n=yield this.calcHash(W.accessToken,p),_=base64UrlEncode(n.substr(0,n.length/2)),m=W.idTokenClaims.at_hash.replace(/=/g,"");return _!==m&&(console.error("exptected at_hash: "+_),console.error("actual at_hash: "+m)),_===m})}inferHashAlgorithm(W){let p=W.alg;if(!p.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+p);return"sha-"+p.substr(2)}}let UrlHelperService=(()=>{class ye{getHashFragmentParams(p){let n=p||window.location.hash;if(n=decodeURIComponent(n),0!==n.indexOf("#"))return{};const f=n.indexOf("?");return n=n.substr(f>-1?f+1:1),this.parseQueryString(n)}parseQueryString(p){const n={};let f,_,m,s,d,u,h;if(null===p)return n;f=p.split("&");for(let r=0;r>6,_[s++]=128|63&d):d<55296||d>=57344?(_[s++]=224|d>>12,_[s++]=128|d>>6&63,_[s++]=128|63&d):(d=65536+((1023&d)<<10|1023&ye.charCodeAt(++n)),_[s++]=240|d>>18,_[s++]=128|d>>12&63,_[s++]=128|d>>6&63,_[s++]=128|63&d);ye=_}else{if("object"!==f)throw new Error(ERROR);if(null===ye)throw new Error(ERROR);if(ARRAY_BUFFER&&ye.constructor===ArrayBuffer)ye=new Uint8Array(ye);else if(!(Array.isArray(ye)||ARRAY_BUFFER&&ArrayBuffer.isView(ye)))throw new Error(ERROR)}ye.length>64&&(ye=new Sha256(W,!0).update(ye).array());var u=[],h=[];for(n=0;n<64;++n){var r=ye[n]||0;u[n]=92^r,h[n]=54^r}Sha256.call(this,W,p),this.update(h),this.oKeyPad=u,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function(ye){if(!this.finalized){var W,p=typeof ye;if("string"!==p){if("object"!==p)throw new Error(ERROR);if(null===ye)throw new Error(ERROR);if(ARRAY_BUFFER&&ye.constructor===ArrayBuffer)ye=new Uint8Array(ye);else if(!(Array.isArray(ye)||ARRAY_BUFFER&&ArrayBuffer.isView(ye)))throw new Error(ERROR);W=!0}for(var n,_,f=0,m=ye.length,s=this.blocks;f>2]|=ye[f]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(s[_>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=s[16],this.start=_-64,this.hash(),this.hashed=!0):this.start=_}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var ye=this.blocks,W=this.lastByteIndex;ye[16]=this.block,ye[W>>2]|=EXTRA[3&W],this.block=ye[16],W>=56&&(this.hashed||this.hash(),ye[0]=this.block,ye[16]=ye[1]=ye[2]=ye[3]=ye[4]=ye[5]=ye[6]=ye[7]=ye[8]=ye[9]=ye[10]=ye[11]=ye[12]=ye[13]=ye[14]=ye[15]=0),ye[14]=this.hBytes<<3|this.bytes>>>29,ye[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var u,i,g,b,y,S,ye=this.h0,W=this.h1,p=this.h2,n=this.h3,f=this.h4,_=this.h5,m=this.h6,s=this.h7,d=this.blocks;for(u=16;u<64;++u)d[u]=d[u-16]+(((i=d[u-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)+d[u-7]+(((i=d[u-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)<<0;for(S=W&p,u=0;u<64;u+=4)this.first?(this.is224?(g=300032,s=(i=d[0]-1413257819)-150054599<<0,n=i+24177077<<0):(g=704751109,s=(i=d[0]-210244248)-1521486534<<0,n=i+143694565<<0),this.first=!1):(s=n+(i=s+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&_^~f&m)+K[u]+d[u])<<0,n=i+(((ye>>>2|ye<<30)^(ye>>>13|ye<<19)^(ye>>>22|ye<<10))+((g=ye&W)^ye&p^S))<<0),m=p+(i=m+((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&f^~s&_)+K[u+1]+d[u+1])<<0,p=i+(((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+((b=n&ye)^n&W^g))<<0,_=W+(i=_+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&s^~m&f)+K[u+2]+d[u+2])<<0,W=i+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((y=p&n)^p&ye^b))<<0,f=ye+(i=f+((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&m^~_&s)+K[u+3]+d[u+3])<<0,ye=i+(((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+((S=W&p)^W&n^y))<<0;this.h0=this.h0+ye<<0,this.h1=this.h1+W<<0,this.h2=this.h2+p<<0,this.h3=this.h3+n<<0,this.h4=this.h4+f<<0,this.h5=this.h5+_<<0,this.h6=this.h6+m<<0,this.h7=this.h7+s<<0},Sha256.prototype.hex=function(){this.finalize();var ye=this.h0,W=this.h1,p=this.h2,n=this.h3,f=this.h4,_=this.h5,m=this.h6,s=this.h7,d=HEX_CHARS[ye>>28&15]+HEX_CHARS[ye>>24&15]+HEX_CHARS[ye>>20&15]+HEX_CHARS[ye>>16&15]+HEX_CHARS[ye>>12&15]+HEX_CHARS[ye>>8&15]+HEX_CHARS[ye>>4&15]+HEX_CHARS[15&ye]+HEX_CHARS[W>>28&15]+HEX_CHARS[W>>24&15]+HEX_CHARS[W>>20&15]+HEX_CHARS[W>>16&15]+HEX_CHARS[W>>12&15]+HEX_CHARS[W>>8&15]+HEX_CHARS[W>>4&15]+HEX_CHARS[15&W]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[15&f]+HEX_CHARS[_>>28&15]+HEX_CHARS[_>>24&15]+HEX_CHARS[_>>20&15]+HEX_CHARS[_>>16&15]+HEX_CHARS[_>>12&15]+HEX_CHARS[_>>8&15]+HEX_CHARS[_>>4&15]+HEX_CHARS[15&_]+HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[15&m];return this.is224||(d+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),d},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var ye=this.h0,W=this.h1,p=this.h2,n=this.h3,f=this.h4,_=this.h5,m=this.h6,s=this.h7,d=[ye>>24&255,ye>>16&255,ye>>8&255,255&ye,W>>24&255,W>>16&255,W>>8&255,255&W,p>>24&255,p>>16&255,p>>8&255,255&p,n>>24&255,n>>16&255,n>>8&255,255&n,f>>24&255,f>>16&255,f>>8&255,255&f,_>>24&255,_>>16&255,_>>8&255,255&_,m>>24&255,m>>16&255,m>>8&255,255&m];return this.is224||d.push(s>>24&255,s>>16&255,s>>8&255,255&s),d},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var ye=new ArrayBuffer(this.is224?28:32),W=new DataView(ye);return W.setUint32(0,this.h0),W.setUint32(4,this.h1),W.setUint32(8,this.h2),W.setUint32(12,this.h3),W.setUint32(16,this.h4),W.setUint32(20,this.h5),W.setUint32(24,this.h6),this.is224||W.setUint32(28,this.h7),ye},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var ye=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(ye),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(ye){if("string"!=typeof ye)throw new TypeError("expected string");var W,p=ye,n=new Uint8Array(p.length);for(W=0;W{class ye{calcHash(p,n){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})}toHashString2(p){let n="";for(let f of p)n+=String.fromCharCode(f);return n}toHashString(p){const n=new Uint8Array(p);let f="";for(let _ of n)f+=String.fromCharCode(_);return f}}return ye.\u0275fac=function(p){return new(p||ye)},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})(),OAuthService=(()=>{class ye extends AuthConfig{constructor(p,n,f,_,m,s,d,u,h,r){var o;super(),this.ngZone=p,this.http=n,this.config=m,this.urlHelper=s,this.logger=d,this.crypto=u,this.dateTimeService=r,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=h,m||(m={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),_&&(this.tokenValidationHandler=_),m&&this.configure(m);try{f?this.setStorage(f):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(i){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",i)}if(this.checkLocalStorageAccessable()){const i=null===(o=null==window?void 0:window.navigator)||void 0===o?void 0:o.userAgent;((null==i?void 0:i.includes("MSIE "))||(null==i?void 0:i.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const p="test";try{return void 0!==window.localStorage&&(localStorage.setItem(p,p),localStorage.removeItem(p),!0)}catch(n){return!1}}configure(p){Object.assign(this,new AuthConfig,p),this.config=Object.assign({},new AuthConfig,p),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(p={},n,f=!0){let _=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(m=>{"token_received"===m.type?_=!0:"logout"===m.type&&(_=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>"token_expires"===m.type&&(null==n||"any"===n||m.info===n)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(m=>{_&&this.refreshInternal(p,f).catch(s=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(p,n){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(p,n):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(p=null){return this.loadDiscoveryDocument().then(n=>this.tryLogin(p))}loadDiscoveryDocumentAndLogin(p=null){return this.loadDiscoveryDocumentAndTryLogin(p=p||{}).then(n=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof p.state?p.state:""),!1))}debug(...p){this.showDebugInformation&&this.logger.debug.apply(this.logger,p)}validateUrlFromDiscoveryDocument(p){const n=[],f=this.validateUrlForHttps(p),_=this.validateUrlAgainstIssuer(p);return f||n.push("https for all urls required. Also for urls received by discovery."),_||n.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),n}validateUrlForHttps(p){if(!p)return!0;const n=p.toLowerCase();return!(!1!==this.requireHttps&&(!n.match(/^http:\/\/localhost($|[:\/])/)&&!n.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||n.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(p,n){if(!p)throw new Error(`'${n}' should not be null`);if(!this.validateUrlForHttps(p))throw new Error(`'${n}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(p){return!this.strictDiscoveryDocumentValidation||!p||p.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),n=this.getAccessTokenStoredAt(),f=this.calcTimeout(n,p);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),n=this.getIdTokenStoredAt(),f=this.calcTimeout(n,p);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(p,n){const f=this.dateTimeService.now();return Math.max(0,(n-p)*this.timeoutFactor-(f-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((n,f)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(_=>{if(!this.validateDiscoveryDocument(_))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void f("discovery_document_validation_error");this.loginUrl=_.authorization_endpoint,this.logoutUrl=_.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=_.grant_types_supported,this.issuer=_.issuer,this.tokenEndpoint=_.token_endpoint,this.userinfoEndpoint=_.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=_.jwks_uri,this.sessionCheckIFrameUrl=_.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(_),this.revocationEndpoint=_.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(m=>{const d=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:_,jwks:m});this.eventsSubject.next(d),n(d)}).catch(m=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",m)),f(m)})},_=>{this.logger.error("error loading discovery document",_),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",_)),f(_)}):f("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((p,n)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(f=>{this.jwks=f,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(f)},f=>{this.logger.error("error loading jwks",f),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",f)),n(f)}):p(null)})}validateDiscoveryDocument(p){let n;return this.skipIssuerCheck||p.issuer===this.issuer?(n=this.validateUrlFromDiscoveryDocument(p.authorization_endpoint),n.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(p.end_session_endpoint),n.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(p.token_endpoint),n.length>0&&this.logger.error("error validating token_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(p.revocation_endpoint),n.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(p.userinfo_endpoint),n.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(p.jwks_uri),n.length>0?(this.logger.error("error validating jwks_uri in discovery document",n),!1):(this.sessionChecksEnabled&&!p.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+p.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(p,n,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders){return this.fetchTokenUsingPasswordFlow(p,n,f).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((p,n)=>{const f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:f,observe:"response",responseType:"text"}).subscribe(_=>{if(this.debug("userinfo received",JSON.stringify(_)),_.headers.get("content-type").startsWith("application/json")){let m=JSON.parse(_.body);const s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||m.sub!==s.sub))return void n("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");m=Object.assign({},s,m),this._storage.setItem("id_token_claims_obj",JSON.stringify(m)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:m})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(_.body))},_=>{this.logger.error("error loading user info",_),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",_)),n(_)})})}fetchTokenUsingPasswordFlow(p,n,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders){return this.fetchTokenUsingGrant("password",{username:p,password:n},f)}fetchTokenUsingGrant(p,n,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const m=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+m)}if(this.useHttpBasicAuth||(_=_.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_=_.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))_=_.set(m,this.customQueryParams[m]);for(const m of Object.keys(n))_=_.set(m,n[m]);return f=f.set("Content-Type","application/x-www-form-urlencoded"),new Promise((m,s)=>{this.http.post(this.tokenEndpoint,_,{headers:f}).subscribe(d=>{this.debug("tokenResponse",d),this.storeAccessTokenResponse(d.access_token,d.refresh_token,d.expires_in||this.fallbackAccessTokenExpirationTimeInSec,d.scope,this.extractRecognizedCustomParameters(d)),this.oidc&&d.id_token&&this.processIdToken(d.id_token,d.access_token).then(u=>{this.storeIdToken(u),m(d)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),m(d)},d=>{this.logger.error("Error performing ${grantType} flow",d),this.eventsSubject.next(new OAuthErrorEvent("token_error",d)),s(d)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,n)=>{let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),_=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const m=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+m)}if(this.useHttpBasicAuth||(f=f.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(f=f.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))f=f.set(m,this.customQueryParams[m]);this.http.post(this.tokenEndpoint,f,{headers:_}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(m=>m.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(m.id_token,m.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(s=>this.storeIdToken(s)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(s=>m)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(m))).subscribe(m=>{this.debug("refresh tokenResponse",m),this.storeAccessTokenResponse(m.access_token,m.refresh_token,m.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m.scope,this.extractRecognizedCustomParameters(m)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(m)},m=>{this.logger.error("Error refreshing token",m),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",m)),n(m)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=p=>{const n=this.processMessageEventMessage(p);this.tryLogin({customHashFragment:n,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(f=>this.debug("tryLogin during silent refresh failed",f))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},n=!0){const f=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(p.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const _=this.document.getElementById(this.silentRefreshIFrameName);_&&this.document.body.removeChild(_),this.silentRefreshSubject=f.sub;const m=this.document.createElement("iframe");m.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,n,p).then(r=>{m.setAttribute("src",r),this.silentRefreshShowIFrame||(m.style.display="none"),this.document.body.appendChild(m)});const d=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(r=>r instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),u=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(r=>"token_received"===r.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),h=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([d,u,h]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(r=>{if(r instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===r.type||(r=new OAuthErrorEvent("silent_refresh_error",r)),this.eventsSubject.next(r),r;return"token_received"===r.type&&(r=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(r)),r})).toPromise()}initImplicitFlowInPopup(p){return this.initLoginFlowInPopup(p)}initLoginFlowInPopup(p){return p=p||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(n=>new Promise((f,_)=>{let d,s=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(s=p.windowRef,s.location.href=n):s=window.open(n,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const u=c=>{this.tryLogin({customHashFragment:c,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{r(),f(!0)},l=>{r(),_(l)})};s?d=window.setInterval(()=>{(!s||s.closed)&&(r(),_(new OAuthErrorEvent("popup_closed",{})))},500):_(new OAuthErrorEvent("popup_blocked",{}));const r=()=>{window.clearInterval(d),window.removeEventListener("storage",i),window.removeEventListener("message",o),null!==s&&s.close(),s=null},o=c=>{const l=this.processMessageEventMessage(c);l&&null!==l?(window.removeEventListener("storage",i),u(l)):console.log("false event firing")},i=c=>{"auth_hash"===c.key&&(window.removeEventListener("message",o),u(c.newValue))};window.addEventListener("message",o),window.addEventListener("storage",i)}))}calculatePopupFeatures(p){const n=p.height||470,f=p.width||500,_=window.screenLeft+(window.outerWidth-f)/2;return`location=no,toolbar=no,width=${f},height=${n},top=${window.screenTop+(window.outerHeight-n)/2},left=${_}`}processMessageEventMessage(p){let n="#";if(this.silentRefreshMessagePrefix&&(n+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const f=p.data;return f.startsWith(n)?"#"+f.substr(n.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=p=>{const n=p.origin.toLowerCase(),f=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),f.startsWith(n)){switch(p.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",p)}else this.debug("sessionCheckEventListener","wrong origin",n,"expected",f,"event",p)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(p=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(p=>{this.debug("token refresh after session change worked")}).catch(p=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"silently_refreshed"===p.type||"silent_refresh_timeout"===p.type||"silent_refresh_error"===p.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(p=>{"silently_refreshed"!==p.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const p=this.document.getElementById(this.sessionCheckIFrameName);p&&this.document.body.removeChild(p);const n=this.document.createElement("iframe");n.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),n.setAttribute("src",this.sessionCheckIFrameUrl),n.style.display="none",this.document.body.appendChild(n),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const p=this.document.getElementById(this.sessionCheckIFrameName);p||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const n=this.getSessionState();n||this.stopSessionCheckTimer(),p.contentWindow.postMessage(this.clientId+" "+n,this.issuer)}createLoginUrl(p="",n="",f="",_=!1,m={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){const s=this;let d;d=f||this.redirectUri;const u=yield this.createAndSaveNonce();if(p=p?u+this.config.nonceStateSeparator+encodeURIComponent(p):u,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const h=s.loginUrl.indexOf("?")>-1?"&":"?";let r=s.scope;this.oidc&&!r.match(/(^|\s)openid($|\s)/)&&(r="openid "+r);let o=s.loginUrl+h+"response_type="+encodeURIComponent(s.responseType)+"&client_id="+encodeURIComponent(s.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(d)+"&scope="+encodeURIComponent(r);if(this.responseType.includes("code")&&!this.disablePKCE){const[i,c]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",c):this._storage.setItem("PKCE_verifier",c),o+="&code_challenge="+i,o+="&code_challenge_method=S256"}n&&(o+="&login_hint="+encodeURIComponent(n)),s.resource&&(o+="&resource="+encodeURIComponent(s.resource)),s.oidc&&(o+="&nonce="+encodeURIComponent(u)),_&&(o+="&prompt=none");for(const i of Object.keys(m))o+="&"+encodeURIComponent(i)+"="+encodeURIComponent(m[i]);if(this.customQueryParams)for(const i of Object.getOwnPropertyNames(this.customQueryParams))o+="&"+i+"="+encodeURIComponent(this.customQueryParams[i]);return o})}initImplicitFlowInternal(p="",n=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},_=null;"string"==typeof n?_=n:"object"==typeof n&&(f=n),this.createLoginUrl(p,_,null,!1,f).then(this.config.openUri).catch(m=>{console.error("Error in initImplicitFlow",m),this.inImplicitFlow=!1})}initImplicitFlow(p="",n=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,n):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"discovery_document_loaded"===f.type)).subscribe(f=>this.initImplicitFlowInternal(p,n))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const n=this;if(p.onTokenReceived){const f={idClaims:n.getIdentityClaims(),idToken:n.getIdToken(),accessToken:n.getAccessToken(),state:n.state};p.onTokenReceived(f)}}storeAccessTokenResponse(p,n,f,_,m){if(this._storage.setItem("access_token",p),_&&!Array.isArray(_)?this._storage.setItem("granted_scopes",JSON.stringify(_.split(" "))):_&&Array.isArray(_)&&this._storage.setItem("granted_scopes",JSON.stringify(_)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),f){const s=1e3*f,u=this.dateTimeService.new().getTime()+s;this._storage.setItem("expires_at",""+u)}n&&this._storage.setItem("refresh_token",n),m&&m.forEach((s,d)=>{this._storage.setItem(d,s)})}tryLogin(p=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(p).then(n=>!0):this.tryLoginImplicitFlow(p)}parseQueryString(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):{}}tryLoginCodeFlow(p=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){const n=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,f=this.getCodePartsFromUrl(n),_=f.code,m=f.state,s=f.session_state;if(!p.preventClearHashAfterLogin){const h=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,h)}let[d,u]=this.parseState(m);if(this.state=u,f.error){this.debug("error trying to login"),this.handleLoginError(p,f);const h=new OAuthErrorEvent("code_error",{},f);return this.eventsSubject.next(h),Promise.reject(h)}if(!p.disableNonceCheck){if(!d)return this.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!this.validateNonce(d)){const r=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(r),Promise.reject(r)}return this.storeSessionState(s),_&&(yield this.getTokenFromCode(_,p),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const p=this._storage.getItem("requested_route");p&&history.replaceState(null,"",window.location.origin+p)}getCodePartsFromUrl(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(p,n){let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",p).set("redirect_uri",n.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let _;_=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),_?f=f.set("code_verifier",_):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(f,n)}fetchAndProcessToken(p,n){n=n||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const _=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+_)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((_,m)=>{if(this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,p,{headers:f}).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.oidc&&s.id_token?this.processIdToken(s.id_token,s.access_token,n.disableNonceCheck).then(d=>{this.storeIdToken(d),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(s)}).catch(d=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",d)),console.error("Error validating tokens"),console.error(d),m(d)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(s))},s=>{console.error("Error getting token",s),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",s)),m(s)})})}tryLoginImplicitFlow(p=null){let n;n=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",n);const f=n.state;let[_,m]=this.parseState(f);if(this.state=m,n.error){this.debug("error trying to login"),this.handleLoginError(p,n);const r=new OAuthErrorEvent("token_error",{},n);return this.eventsSubject.next(r),Promise.reject(r)}const s=n.access_token,d=n.id_token,u=n.session_state,h=n.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!s||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!f||this.oidc&&!d)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!u&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!p.disableNonceCheck&&!this.validateNonce(_)){const o=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(o),Promise.reject(o)}return this.requestAccessToken&&this.storeAccessTokenResponse(s,null,n.expires_in||this.fallbackAccessTokenExpirationTimeInSec,h),this.oidc?this.processIdToken(d,s,p.disableNonceCheck).then(r=>p.validationHandler?p.validationHandler({accessToken:s,idClaims:r.idTokenClaims,idToken:r.idToken,state:f}).then(o=>r):r).then(r=>(this.storeIdToken(r),this.storeSessionState(u),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(r=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",r)),this.logger.error("Error validating tokens"),this.logger.error(r),Promise.reject(r))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let n=p,f="";if(p){const _=p.indexOf(this.config.nonceStateSeparator);_>-1&&(n=p.substr(0,_),f=p.substr(_+this.config.nonceStateSeparator.length))}return[n,f]}validateNonce(p){let n;return n=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),n===p||(console.error("Validating access_token failed, wrong state/nonce.",n,p),!1)}storeIdToken(p){this._storage.setItem("id_token",p.idToken),this._storage.setItem("id_token_claims_obj",p.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+p.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(p){this._storage.setItem("session_state",p)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(p,n){p.onLoginError&&p.onLoginError(n),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(p=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:p}processIdToken(p,n,f=!1){const _=p.split("."),s=b64DecodeUnicode(this.padBase64(_[0])),d=JSON.parse(s),h=b64DecodeUnicode(this.padBase64(_[1])),r=JSON.parse(h);let o;if(o=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(r.aud)){if(r.aud.every(y=>y!==this.clientId)){const y="Wrong audience: "+r.aud.join(",");return this.logger.warn(y),Promise.reject(y)}}else if(r.aud!==this.clientId){const y="Wrong audience: "+r.aud;return this.logger.warn(y),Promise.reject(y)}if(!r.sub){const y="No sub claim in id_token";return this.logger.warn(y),Promise.reject(y)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==r.sub){const y=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${r.sub}`;return this.logger.warn(y),Promise.reject(y)}if(!r.iat){const y="No iat claim in id_token";return this.logger.warn(y),Promise.reject(y)}if(!this.skipIssuerCheck&&r.iss!==this.issuer){const y="Wrong issuer: "+r.iss;return this.logger.warn(y),Promise.reject(y)}if(!f&&r.nonce!==o){const y="Wrong nonce: "+r.nonce;return this.logger.warn(y),Promise.reject(y)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!r.at_hash){const y="An at_hash is needed!";return this.logger.warn(y),Promise.reject(y)}const i=this.dateTimeService.now(),c=1e3*r.iat,l=1e3*r.exp,g=this.getClockSkewInMsec();if(c-g>=i||l+g<=i){const y="Token has expired";return console.error(y),console.error({now:i,issuedAtMSec:c,expiresAtMSec:l}),Promise.reject(y)}const b={accessToken:n,idToken:p,jwks:this.jwks,idTokenClaims:r,idTokenHeader:d,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(b).then(y=>({idToken:p,idTokenClaims:r,idTokenClaimsJson:h,idTokenHeader:d,idTokenHeaderJson:s,idTokenExpiresAt:l})):this.checkAtHash(b).then(y=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!y){const S="Wrong at_hash";return this.logger.warn(S),Promise.reject(S)}return this.checkSignature(b).then(S=>{const R={idToken:p,idTokenClaims:r,idTokenClaimsJson:h,idTokenHeader:d,idTokenHeaderJson:s,idTokenExpiresAt:l};return this.disableAtHashCheck?R:this.checkAtHash(b).then(M=>{if(this.requestAccessToken&&!M){const A="Wrong at_hash";return this.logger.warn(A),Promise.reject(A)}return R})})})}getIdentityClaims(){const p=this._storage.getItem("id_token_claims_obj");return p?JSON.parse(p):null}getGrantedScopes(){const p=this._storage.getItem("granted_scopes");return p?JSON.parse(p):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(p){for(;p.length%4!=0;)p+="=";return p}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const p=this._storage.getItem("expires_at"),n=this.dateTimeService.new();return!(p&&parseInt(p,10)=0&&null!==this._storage.getItem(p)?JSON.parse(this._storage.getItem(p)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(p={},n=""){let f=!1;"boolean"==typeof p&&(f=p,p={});const _=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(s=>this._storage.removeItem(s)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||f||!_&&!this.postLogoutRedirectUri)return;let m;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)m=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(_)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let s=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec});_&&(s=s.set("id_token_hint",_));const d=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";d&&(s=s.set("post_logout_redirect_uri",d),n&&(s=s.set("state",n)));for(let u in p)s=s.set(u,p[u]);m=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+s.toString()}this.config.openUri(m)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(n){return p.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",n):p._storage.setItem("nonce",n),n})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const p=this.document.getElementById(this.silentRefreshIFrameName);p&&p.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const n=this.document.getElementById(this.sessionCheckIFrameName);n&&n.remove()}createNonce(){return new Promise(p=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let f=45,_="";const m="undefined"==typeof self?null:self.crypto||self.msCrypto;if(m){let s=new Uint8Array(f);m.getRandomValues(s),s.map||(s.map=Array.prototype.map),s=s.map(d=>n.charCodeAt(d%n.length)),_=String.fromCharCode.apply(null,s)}else for(;0"discovery_document_loaded"===f.type)).subscribe(f=>this.initCodeFlowInternal(p,n))}initCodeFlowInternal(p="",n={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},_=null;"string"==typeof n?_=n:"object"==typeof n&&(f=n),this.createLoginUrl(p,_,null,!1,f).then(this.config.openUri).catch(m=>{console.error("Error in initAuthorizationCodeFlow"),console.error(m)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const p=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(p,"sha-256")),p]})}extractRecognizedCustomParameters(p){let n=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(f=>{p[f]&&n.set(f,JSON.stringify(p[f]))}),n}revokeTokenAndLogout(p={},n=!1){let f=this.revocationEndpoint,_=this.getAccessToken(),m=this.getRefreshToken();if(!_)return;let s=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}),d=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const u=btoa(`${this.clientId}:${this.dummyClientSecret}`);d=d.set("Authorization","Basic "+u)}if(this.useHttpBasicAuth||(s=s.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(s=s.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const u of Object.getOwnPropertyNames(this.customQueryParams))s=s.set(u,this.customQueryParams[u]);return new Promise((u,h)=>{let r,o;if(_){let i=s.set("token",_).set("token_type_hint","access_token");r=this.http.post(f,i,{headers:d})}else r=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(m){let i=s.set("token",m).set("token_type_hint","refresh_token");o=this.http.post(f,i,{headers:d})}else o=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);n&&(r=r.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(i=>0===i.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(i))),o=o.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(i=>0===i.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(i)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([r,o]).subscribe(i=>{this.logOut(p),u(i),this.logger.info("Token successfully revoked")},i=>{this.logger.error("Error revoking token",i),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",i)),h(i)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return ye.\u0275fac=function(p){return new(p||ye)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpClient),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(_angular_common__WEBPACK_IMPORTED_MODULE_18__.DOCUMENT),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(DateTimeProvider))},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(W){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(W)}}let DefaultOAuthInterceptor=(()=>{class ye{constructor(p,n,f){this.oAuthService=p,this.errorHandler=n,this.moduleConfig=f}checkUrl(p){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(p):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(n=>p.toLowerCase().startsWith(n.toLowerCase()))}intercept(p,n){const f=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(f)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>!!m)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>"token_received"===m.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(m=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(m=>{if(m){const d=p.headers.set("Authorization","Bearer "+m);p=p.clone({headers:d})}return n.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(s=>this.errorHandler.handleError(s)))})):n.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>this.errorHandler.handleError(m))):n.handle(p)}}return ye.\u0275fac=function(p){return new(p||ye)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthModuleConfig,8))},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class NullValidationHandler{validateSignature(W){return Promise.resolve(null)}validateAtHash(W){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class ye{static forRoot(p=null,n=NullValidationHandler){return{ngModule:ye,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:n},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:p},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HTTP_INTERCEPTORS,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return ye.\u0275fac=function(p){return new(p||ye)},ye.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineNgModule({type:ye}),ye.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjector({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.CommonModule]]}),ye})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken("AUTH_CONFIG")},4956:(ye,W,p)=>{"use strict";function s(P){let Oe=P.length;for(;--Oe>=0;)P[Oe]=0}p.r(W),p.d(W,{Deflate:()=>Co,Inflate:()=>Xa,constants:()=>Yr,default:()=>ma,deflate:()=>ho,deflateRaw:()=>fa,gzip:()=>Qa,inflate:()=>Wl,inflateRaw:()=>zl,ungzip:()=>pa});const x=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),C=new Uint8Array([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]),L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Y=new Array(576);s(Y);const X=new Array(60);s(X);const ee=new Array(512);s(ee);const $=new Array(256);s($);const J=new Array(29);s(J);const ie=new Array(30);function ne(P,Oe,he,Ye,Ne){this.static_tree=P,this.extra_bits=Oe,this.extra_base=he,this.elems=Ye,this.max_length=Ne,this.has_stree=P&&P.length}let ae,xe,Ie;function We(P,Oe){this.dyn_tree=P,this.max_code=0,this.stat_desc=Oe}s(ie);const Xe=P=>P<256?ee[P]:ee[256+(P>>>7)],ft=(P,Oe)=>{P.pending_buf[P.pending++]=255&Oe,P.pending_buf[P.pending++]=Oe>>>8&255},Pe=(P,Oe,he)=>{P.bi_valid>16-he?(P.bi_buf|=Oe<>16-P.bi_valid,P.bi_valid+=he-16):(P.bi_buf|=Oe<{Pe(P,he[2*Oe],he[2*Oe+1])},at=(P,Oe)=>{let he=0;do{he|=1&P,P>>>=1,he<<=1}while(--Oe>0);return he>>>1},yt=(P,Oe,he)=>{const Ye=new Array(16);let ht,Ut,Ne=0;for(ht=1;ht<=15;ht++)Ye[ht]=Ne=Ne+he[ht-1]<<1;for(Ut=0;Ut<=Oe;Ut++){let kt=P[2*Ut+1];0!==kt&&(P[2*Ut]=at(Ye[kt]++,kt))}},_t=P=>{let Oe;for(Oe=0;Oe<286;Oe++)P.dyn_ltree[2*Oe]=0;for(Oe=0;Oe<30;Oe++)P.dyn_dtree[2*Oe]=0;for(Oe=0;Oe<19;Oe++)P.bl_tree[2*Oe]=0;P.dyn_ltree[512]=1,P.opt_len=P.static_len=0,P.last_lit=P.matches=0},At=P=>{P.bi_valid>8?ft(P,P.bi_buf):P.bi_valid>0&&(P.pending_buf[P.pending++]=P.bi_buf),P.bi_buf=0,P.bi_valid=0},Bt=(P,Oe,he,Ye)=>{const Ne=2*Oe,ht=2*he;return P[Ne]{const Ye=P.heap[he];let Ne=he<<1;for(;Ne<=P.heap_len&&(Ne{let Ye,Ne,Ut,kt,ht=0;if(0!==P.last_lit)do{Ye=P.pending_buf[P.d_buf+2*ht]<<8|P.pending_buf[P.d_buf+2*ht+1],Ne=P.pending_buf[P.l_buf+ht],ht++,0===Ye?et(P,Ne,Oe):(Ut=$[Ne],et(P,Ut+256+1,Oe),kt=x[Ut],0!==kt&&(Ne-=J[Ut],Pe(P,Ne,kt)),Ye--,Ut=Xe(Ye),et(P,Ut,he),kt=C[Ut],0!==kt&&(Ye-=ie[Ut],Pe(P,Ye,kt)))}while(ht{const he=Oe.dyn_tree,Ye=Oe.stat_desc.static_tree,Ne=Oe.stat_desc.has_stree,ht=Oe.stat_desc.elems;let Ut,kt,wt,bn=-1;for(P.heap_len=0,P.heap_max=573,Ut=0;Ut>1;Ut>=1;Ut--)Et(P,he,Ut);wt=ht;do{Ut=P.heap[1],P.heap[1]=P.heap[P.heap_len--],Et(P,he,1),kt=P.heap[1],P.heap[--P.heap_max]=Ut,P.heap[--P.heap_max]=kt,he[2*wt]=he[2*Ut]+he[2*kt],P.depth[wt]=(P.depth[Ut]>=P.depth[kt]?P.depth[Ut]:P.depth[kt])+1,he[2*Ut+1]=he[2*kt+1]=wt,P.heap[1]=wt++,Et(P,he,1)}while(P.heap_len>=2);P.heap[--P.heap_max]=P.heap[1],((P,Oe)=>{const he=Oe.dyn_tree,Ye=Oe.max_code,Ne=Oe.stat_desc.static_tree,ht=Oe.stat_desc.has_stree,Ut=Oe.stat_desc.extra_bits,kt=Oe.stat_desc.extra_base,bn=Oe.stat_desc.max_length;let wt,$t,Ii,hn,en,Nn,er=0;for(hn=0;hn<=15;hn++)P.bl_count[hn]=0;for(he[2*P.heap[P.heap_max]+1]=0,wt=P.heap_max+1;wt<573;wt++)$t=P.heap[wt],hn=he[2*he[2*$t+1]+1]+1,hn>bn&&(hn=bn,er++),he[2*$t+1]=hn,!($t>Ye)&&(P.bl_count[hn]++,en=0,$t>=kt&&(en=Ut[$t-kt]),Nn=he[2*$t],P.opt_len+=Nn*(hn+en),ht&&(P.static_len+=Nn*(Ne[2*$t+1]+en)));if(0!==er){do{for(hn=bn-1;0===P.bl_count[hn];)hn--;P.bl_count[hn]--,P.bl_count[hn+1]+=2,P.bl_count[bn]--,er-=2}while(er>0);for(hn=bn;0!==hn;hn--)for($t=P.bl_count[hn];0!==$t;)Ii=P.heap[--wt],!(Ii>Ye)&&(he[2*Ii+1]!==hn&&(P.opt_len+=(hn-he[2*Ii+1])*he[2*Ii],he[2*Ii+1]=hn),$t--)}})(P,Oe),yt(he,bn,P.bl_count)},H=(P,Oe,he)=>{let Ye,ht,Ne=-1,Ut=Oe[1],kt=0,bn=7,wt=4;for(0===Ut&&(bn=138,wt=3),Oe[2*(he+1)+1]=65535,Ye=0;Ye<=he;Ye++)ht=Ut,Ut=Oe[2*(Ye+1)+1],!(++kt{let Ye,ht,Ne=-1,Ut=Oe[1],kt=0,bn=7,wt=4;for(0===Ut&&(bn=138,wt=3),Ye=0;Ye<=he;Ye++)if(ht=Ut,Ut=Oe[2*(Ye+1)+1],!(++kt{Pe(P,0+(Ye?1:0),3),((P,Oe,he,Ye)=>{At(P),ft(P,he),ft(P,~he),P.pending_buf.set(P.window.subarray(Oe,Oe+he),P.pending),P.pending+=he})(P,Oe,he)};var Lt={_tr_init:P=>{Be||((()=>{let P,Oe,he,Ye,Ne;const ht=new Array(16);for(he=0,Ye=0;Ye<28;Ye++)for(J[Ye]=he,P=0;P<1<>=7;Ye<30;Ye++)for(ie[Ye]=Ne<<7,P=0;P<1<{let Ne,ht,Ut=0;P.level>0?(2===P.strm.data_type&&(P.strm.data_type=(P=>{let he,Oe=4093624447;for(he=0;he<=31;he++,Oe>>>=1)if(1&Oe&&0!==P.dyn_ltree[2*he])return 0;if(0!==P.dyn_ltree[18]||0!==P.dyn_ltree[20]||0!==P.dyn_ltree[26])return 1;for(he=32;he<256;he++)if(0!==P.dyn_ltree[2*he])return 1;return 0})(P)),fe(P,P.l_desc),fe(P,P.d_desc),Ut=(P=>{let Oe;for(H(P,P.dyn_ltree,P.l_desc.max_code),H(P,P.dyn_dtree,P.d_desc.max_code),fe(P,P.bl_desc),Oe=18;Oe>=3&&0===P.bl_tree[2*F[Oe]+1];Oe--);return P.opt_len+=3*(Oe+1)+5+5+4,Oe})(P),Ne=P.opt_len+3+7>>>3,ht=P.static_len+3+7>>>3,ht<=Ne&&(Ne=ht)):Ne=ht=he+5,he+4<=Ne&&-1!==Oe?st(P,Oe,he,Ye):4===P.strategy||ht===Ne?(Pe(P,2+(Ye?1:0),3),Ee(P,Y,X)):(Pe(P,4+(Ye?1:0),3),((P,Oe,he,Ye)=>{let Ne;for(Pe(P,Oe-257,5),Pe(P,he-1,5),Pe(P,Ye-4,4),Ne=0;Ne(P.pending_buf[P.d_buf+2*P.last_lit]=Oe>>>8&255,P.pending_buf[P.d_buf+2*P.last_lit+1]=255&Oe,P.pending_buf[P.l_buf+P.last_lit]=255&he,P.last_lit++,0===Oe?P.dyn_ltree[2*he]++:(P.matches++,Oe--,P.dyn_ltree[2*($[he]+256+1)]++,P.dyn_dtree[2*Xe(Oe)]++),P.last_lit===P.lit_bufsize-1),_tr_align:P=>{Pe(P,2,3),et(P,256,Y),(P=>{16===P.bi_valid?(ft(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):P.bi_valid>=8&&(P.pending_buf[P.pending++]=255&P.bi_buf,P.bi_buf>>=8,P.bi_valid-=8)})(P)}},gt=(P,Oe,he,Ye)=>{let Ne=65535&P|0,ht=P>>>16&65535|0,Ut=0;for(;0!==he;){Ut=he>2e3?2e3:he,he-=Ut;do{Ne=Ne+Oe[Ye++]|0,ht=ht+Ne|0}while(--Ut);Ne%=65521,ht%=65521}return Ne|ht<<16|0};const qt=new Uint32Array((()=>{let P,Oe=[];for(var he=0;he<256;he++){P=he;for(var Ye=0;Ye<8;Ye++)P=1&P?3988292384^P>>>1:P>>>1;Oe[he]=P}return Oe})());var Se=(P,Oe,he,Ye)=>{const Ne=qt,ht=Ye+he;P^=-1;for(let Ut=Ye;Ut>>8^Ne[255&(P^Oe[Ut])];return-1^P},te={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"},se={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_MEM_ERROR:-4,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};const{_tr_init:Me,_tr_stored_block:Ke,_tr_flush_block:It,_tr_tally:Qt,_tr_align:cn}=Lt,{Z_NO_FLUSH:An,Z_PARTIAL_FLUSH:lt,Z_FULL_FLUSH:ct,Z_FINISH:He,Z_BLOCK:mt,Z_OK:Ot,Z_STREAM_END:un,Z_STREAM_ERROR:on,Z_DATA_ERROR:On,Z_BUF_ERROR:Yn,Z_DEFAULT_COMPRESSION:ji,Z_FILTERED:Oi,Z_HUFFMAN_ONLY:Ni,Z_RLE:Ti,Z_FIXED:qn,Z_DEFAULT_STRATEGY:Vi,Z_UNKNOWN:ci,Z_DEFLATED:Ae}=se,Tn=262,bi=(P,Oe)=>(P.msg=te[Oe],Oe),Rn=P=>(P<<1)-(P>4?9:0),qi=P=>{let Oe=P.length;for(;--Oe>=0;)P[Oe]=0};let Fn=(P,Oe,he)=>(Oe<{const Oe=P.state;let he=Oe.pending;he>P.avail_out&&(he=P.avail_out),0!==he&&(P.output.set(Oe.pending_buf.subarray(Oe.pending_out,Oe.pending_out+he),P.next_out),P.next_out+=he,Oe.pending_out+=he,P.total_out+=he,P.avail_out-=he,Oe.pending-=he,0===Oe.pending&&(Oe.pending_out=0))},mi=(P,Oe)=>{It(P,P.block_start>=0?P.block_start:-1,P.strstart-P.block_start,Oe),P.block_start=P.strstart,$i(P.strm)},Gn=(P,Oe)=>{P.pending_buf[P.pending++]=Oe},ur=(P,Oe)=>{P.pending_buf[P.pending++]=Oe>>>8&255,P.pending_buf[P.pending++]=255&Oe},gn=(P,Oe,he,Ye)=>{let Ne=P.avail_in;return Ne>Ye&&(Ne=Ye),0===Ne?0:(P.avail_in-=Ne,Oe.set(P.input.subarray(P.next_in,P.next_in+Ne),he),1===P.state.wrap?P.adler=gt(P.adler,Oe,Ne,he):2===P.state.wrap&&(P.adler=Se(P.adler,Oe,Ne,he)),P.next_in+=Ne,P.total_in+=Ne,Ne)},yn=(P,Oe)=>{let Ne,ht,he=P.max_chain_length,Ye=P.strstart,Ut=P.prev_length,kt=P.nice_match;const bn=P.strstart>P.w_size-Tn?P.strstart-(P.w_size-Tn):0,wt=P.window,$t=P.w_mask,Ii=P.prev,hn=P.strstart+258;let en=wt[Ye+Ut-1],Nn=wt[Ye+Ut];P.prev_length>=P.good_match&&(he>>=2),kt>P.lookahead&&(kt=P.lookahead);do{if(Ne=Oe,wt[Ne+Ut]===Nn&&wt[Ne+Ut-1]===en&&wt[Ne]===wt[Ye]&&wt[++Ne]===wt[Ye+1]){Ye+=2,Ne++;do{}while(wt[++Ye]===wt[++Ne]&&wt[++Ye]===wt[++Ne]&&wt[++Ye]===wt[++Ne]&&wt[++Ye]===wt[++Ne]&&wt[++Ye]===wt[++Ne]&&wt[++Ye]===wt[++Ne]&&wt[++Ye]===wt[++Ne]&&wt[++Ye]===wt[++Ne]&&YeUt){if(P.match_start=Oe,Ut=ht,ht>=kt)break;en=wt[Ye+Ut-1],Nn=wt[Ye+Ut]}}}while((Oe=Ii[Oe&$t])>bn&&0!=--he);return Ut<=P.lookahead?Ut:P.lookahead},Sn=P=>{const Oe=P.w_size;let he,Ye,Ne,ht,Ut;do{if(ht=P.window_size-P.lookahead-P.strstart,P.strstart>=Oe+(Oe-Tn)){P.window.set(P.window.subarray(Oe,Oe+Oe),0),P.match_start-=Oe,P.strstart-=Oe,P.block_start-=Oe,Ye=P.hash_size,he=Ye;do{Ne=P.head[--he],P.head[he]=Ne>=Oe?Ne-Oe:0}while(--Ye);Ye=Oe,he=Ye;do{Ne=P.prev[--he],P.prev[he]=Ne>=Oe?Ne-Oe:0}while(--Ye);ht+=Oe}if(0===P.strm.avail_in)break;if(Ye=gn(P.strm,P.window,P.strstart+P.lookahead,ht),P.lookahead+=Ye,P.lookahead+P.insert>=3)for(Ut=P.strstart-P.insert,P.ins_h=P.window[Ut],P.ins_h=Fn(P,P.ins_h,P.window[Ut+1]);P.insert&&(P.ins_h=Fn(P,P.ins_h,P.window[Ut+3-1]),P.prev[Ut&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=Ut,Ut++,P.insert--,!(P.lookahead+P.insert<3)););}while(P.lookahead{let he,Ye;for(;;){if(P.lookahead=3&&(P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),0!==he&&P.strstart-he<=P.w_size-Tn&&(P.match_length=yn(P,he)),P.match_length>=3)if(Ye=Qt(P,P.strstart-P.match_start,P.match_length-3),P.lookahead-=P.match_length,P.match_length<=P.max_lazy_match&&P.lookahead>=3){P.match_length--;do{P.strstart++,P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart}while(0!=--P.match_length);P.strstart++}else P.strstart+=P.match_length,P.match_length=0,P.ins_h=P.window[P.strstart],P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+1]);else Ye=Qt(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++;if(Ye&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=P.strstart<2?P.strstart:2,Oe===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2},Li=(P,Oe)=>{let he,Ye,Ne;for(;;){if(P.lookahead=3&&(P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),P.prev_length=P.match_length,P.prev_match=P.match_start,P.match_length=2,0!==he&&P.prev_length4096)&&(P.match_length=2)),P.prev_length>=3&&P.match_length<=P.prev_length){Ne=P.strstart+P.lookahead-3,Ye=Qt(P,P.strstart-1-P.prev_match,P.prev_length-3),P.lookahead-=P.prev_length-1,P.prev_length-=2;do{++P.strstart<=Ne&&(P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart)}while(0!=--P.prev_length);if(P.match_available=0,P.match_length=2,P.strstart++,Ye&&(mi(P,!1),0===P.strm.avail_out))return 1}else if(P.match_available){if(Ye=Qt(P,0,P.window[P.strstart-1]),Ye&&mi(P,!1),P.strstart++,P.lookahead--,0===P.strm.avail_out)return 1}else P.match_available=1,P.strstart++,P.lookahead--}return P.match_available&&(Ye=Qt(P,0,P.window[P.strstart-1]),P.match_available=0),P.insert=P.strstart<2?P.strstart:2,Oe===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2};function nr(P,Oe,he,Ye,Ne){this.good_length=P,this.max_lazy=Oe,this.nice_length=he,this.max_chain=Ye,this.func=Ne}const Or=[new nr(0,0,0,0,(P,Oe)=>{let he=65535;for(he>P.pending_buf_size-5&&(he=P.pending_buf_size-5);;){if(P.lookahead<=1){if(Sn(P),0===P.lookahead&&Oe===An)return 1;if(0===P.lookahead)break}P.strstart+=P.lookahead,P.lookahead=0;const Ye=P.block_start+he;if((0===P.strstart||P.strstart>=Ye)&&(P.lookahead=P.strstart-Ye,P.strstart=Ye,mi(P,!1),0===P.strm.avail_out)||P.strstart-P.block_start>=P.w_size-Tn&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=0,Oe===He?(mi(P,!0),0===P.strm.avail_out?3:4):(P.strstart>P.block_start&&mi(P,!1),1)}),new nr(4,4,8,4,Ri),new nr(4,5,16,8,Ri),new nr(4,6,32,32,Ri),new nr(4,4,16,16,Li),new nr(8,16,32,32,Li),new nr(8,16,128,128,Li),new nr(8,32,128,256,Li),new nr(32,128,258,1024,Li),new nr(32,258,258,4096,Li)];function cr(){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=Ae,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),qi(this.dyn_ltree),qi(this.dyn_dtree),qi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),qi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),qi(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}const $r=P=>{if(!P||!P.state)return bi(P,on);P.total_in=P.total_out=0,P.data_type=ci;const Oe=P.state;return Oe.pending=0,Oe.pending_out=0,Oe.wrap<0&&(Oe.wrap=-Oe.wrap),Oe.status=Oe.wrap?42:113,P.adler=2===Oe.wrap?0:1,Oe.last_flush=An,Me(Oe),Ot},hr=P=>{const Oe=$r(P);return Oe===Ot&&(P=>{P.window_size=2*P.w_size,qi(P.head),P.max_lazy_match=Or[P.level].max_lazy,P.good_match=Or[P.level].good_length,P.nice_match=Or[P.level].nice_length,P.max_chain_length=Or[P.level].max_chain,P.strstart=0,P.block_start=0,P.lookahead=0,P.insert=0,P.match_length=P.prev_length=2,P.match_available=0,P.ins_h=0})(P.state),Oe},ir=(P,Oe,he,Ye,Ne,ht)=>{if(!P)return on;let Ut=1;if(Oe===ji&&(Oe=6),Ye<0?(Ut=0,Ye=-Ye):Ye>15&&(Ut=2,Ye-=16),Ne<1||Ne>9||he!==Ae||Ye<8||Ye>15||Oe<0||Oe>9||ht<0||ht>qn)return bi(P,on);8===Ye&&(Ye=9);const kt=new cr;return P.state=kt,kt.strm=P,kt.wrap=Ut,kt.gzhead=null,kt.w_bits=Ye,kt.w_size=1<P&&P.state&&2===P.state.wrap?(P.state.gzhead=Oe,Ot):on,kr_deflate=(P,Oe)=>{let he,Ye;if(!P||!P.state||Oe>mt||Oe<0)return P?bi(P,on):on;const Ne=P.state;if(!P.output||!P.input&&0!==P.avail_in||666===Ne.status&&Oe!==He)return bi(P,0===P.avail_out?Yn:on);Ne.strm=P;const ht=Ne.last_flush;if(Ne.last_flush=Oe,42===Ne.status)if(2===Ne.wrap)P.adler=0,Gn(Ne,31),Gn(Ne,139),Gn(Ne,8),Ne.gzhead?(Gn(Ne,(Ne.gzhead.text?1:0)+(Ne.gzhead.hcrc?2:0)+(Ne.gzhead.extra?4:0)+(Ne.gzhead.name?8:0)+(Ne.gzhead.comment?16:0)),Gn(Ne,255&Ne.gzhead.time),Gn(Ne,Ne.gzhead.time>>8&255),Gn(Ne,Ne.gzhead.time>>16&255),Gn(Ne,Ne.gzhead.time>>24&255),Gn(Ne,9===Ne.level?2:Ne.strategy>=Ni||Ne.level<2?4:0),Gn(Ne,255&Ne.gzhead.os),Ne.gzhead.extra&&Ne.gzhead.extra.length&&(Gn(Ne,255&Ne.gzhead.extra.length),Gn(Ne,Ne.gzhead.extra.length>>8&255)),Ne.gzhead.hcrc&&(P.adler=Se(P.adler,Ne.pending_buf,Ne.pending,0)),Ne.gzindex=0,Ne.status=69):(Gn(Ne,0),Gn(Ne,0),Gn(Ne,0),Gn(Ne,0),Gn(Ne,0),Gn(Ne,9===Ne.level?2:Ne.strategy>=Ni||Ne.level<2?4:0),Gn(Ne,3),Ne.status=113);else{let Ut=Ae+(Ne.w_bits-8<<4)<<8,kt=-1;kt=Ne.strategy>=Ni||Ne.level<2?0:Ne.level<6?1:6===Ne.level?2:3,Ut|=kt<<6,0!==Ne.strstart&&(Ut|=32),Ut+=31-Ut%31,Ne.status=113,ur(Ne,Ut),0!==Ne.strstart&&(ur(Ne,P.adler>>>16),ur(Ne,65535&P.adler)),P.adler=1}if(69===Ne.status)if(Ne.gzhead.extra){for(he=Ne.pending;Ne.gzindex<(65535&Ne.gzhead.extra.length)&&(Ne.pending!==Ne.pending_buf_size||(Ne.gzhead.hcrc&&Ne.pending>he&&(P.adler=Se(P.adler,Ne.pending_buf,Ne.pending-he,he)),$i(P),he=Ne.pending,Ne.pending!==Ne.pending_buf_size));)Gn(Ne,255&Ne.gzhead.extra[Ne.gzindex]),Ne.gzindex++;Ne.gzhead.hcrc&&Ne.pending>he&&(P.adler=Se(P.adler,Ne.pending_buf,Ne.pending-he,he)),Ne.gzindex===Ne.gzhead.extra.length&&(Ne.gzindex=0,Ne.status=73)}else Ne.status=73;if(73===Ne.status)if(Ne.gzhead.name){he=Ne.pending;do{if(Ne.pending===Ne.pending_buf_size&&(Ne.gzhead.hcrc&&Ne.pending>he&&(P.adler=Se(P.adler,Ne.pending_buf,Ne.pending-he,he)),$i(P),he=Ne.pending,Ne.pending===Ne.pending_buf_size)){Ye=1;break}Ye=Ne.gzindexhe&&(P.adler=Se(P.adler,Ne.pending_buf,Ne.pending-he,he)),0===Ye&&(Ne.gzindex=0,Ne.status=91)}else Ne.status=91;if(91===Ne.status)if(Ne.gzhead.comment){he=Ne.pending;do{if(Ne.pending===Ne.pending_buf_size&&(Ne.gzhead.hcrc&&Ne.pending>he&&(P.adler=Se(P.adler,Ne.pending_buf,Ne.pending-he,he)),$i(P),he=Ne.pending,Ne.pending===Ne.pending_buf_size)){Ye=1;break}Ye=Ne.gzindexhe&&(P.adler=Se(P.adler,Ne.pending_buf,Ne.pending-he,he)),0===Ye&&(Ne.status=103)}else Ne.status=103;if(103===Ne.status&&(Ne.gzhead.hcrc?(Ne.pending+2>Ne.pending_buf_size&&$i(P),Ne.pending+2<=Ne.pending_buf_size&&(Gn(Ne,255&P.adler),Gn(Ne,P.adler>>8&255),P.adler=0,Ne.status=113)):Ne.status=113),0!==Ne.pending){if($i(P),0===P.avail_out)return Ne.last_flush=-1,Ot}else if(0===P.avail_in&&Rn(Oe)<=Rn(ht)&&Oe!==He)return bi(P,Yn);if(666===Ne.status&&0!==P.avail_in)return bi(P,Yn);if(0!==P.avail_in||0!==Ne.lookahead||Oe!==An&&666!==Ne.status){let Ut=Ne.strategy===Ni?((P,Oe)=>{let he;for(;;){if(0===P.lookahead&&(Sn(P),0===P.lookahead)){if(Oe===An)return 1;break}if(P.match_length=0,he=Qt(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++,he&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=0,Oe===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2})(Ne,Oe):Ne.strategy===Ti?((P,Oe)=>{let he,Ye,Ne,ht;const Ut=P.window;for(;;){if(P.lookahead<=258){if(Sn(P),P.lookahead<=258&&Oe===An)return 1;if(0===P.lookahead)break}if(P.match_length=0,P.lookahead>=3&&P.strstart>0&&(Ne=P.strstart-1,Ye=Ut[Ne],Ye===Ut[++Ne]&&Ye===Ut[++Ne]&&Ye===Ut[++Ne])){ht=P.strstart+258;do{}while(Ye===Ut[++Ne]&&Ye===Ut[++Ne]&&Ye===Ut[++Ne]&&Ye===Ut[++Ne]&&Ye===Ut[++Ne]&&Ye===Ut[++Ne]&&Ye===Ut[++Ne]&&Ye===Ut[++Ne]&&NeP.lookahead&&(P.match_length=P.lookahead)}if(P.match_length>=3?(he=Qt(P,1,P.match_length-3),P.lookahead-=P.match_length,P.strstart+=P.match_length,P.match_length=0):(he=Qt(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++),he&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=0,Oe===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2})(Ne,Oe):Or[Ne.level].func(Ne,Oe);if((3===Ut||4===Ut)&&(Ne.status=666),1===Ut||3===Ut)return 0===P.avail_out&&(Ne.last_flush=-1),Ot;if(2===Ut&&(Oe===lt?cn(Ne):Oe!==mt&&(Ke(Ne,0,0,!1),Oe===ct&&(qi(Ne.head),0===Ne.lookahead&&(Ne.strstart=0,Ne.block_start=0,Ne.insert=0))),$i(P),0===P.avail_out))return Ne.last_flush=-1,Ot}return Oe!==He?Ot:Ne.wrap<=0?un:(2===Ne.wrap?(Gn(Ne,255&P.adler),Gn(Ne,P.adler>>8&255),Gn(Ne,P.adler>>16&255),Gn(Ne,P.adler>>24&255),Gn(Ne,255&P.total_in),Gn(Ne,P.total_in>>8&255),Gn(Ne,P.total_in>>16&255),Gn(Ne,P.total_in>>24&255)):(ur(Ne,P.adler>>>16),ur(Ne,65535&P.adler)),$i(P),Ne.wrap>0&&(Ne.wrap=-Ne.wrap),0!==Ne.pending?Ot:un)},kr_deflateEnd=P=>{if(!P||!P.state)return on;const Oe=P.state.status;return 42!==Oe&&69!==Oe&&73!==Oe&&91!==Oe&&103!==Oe&&113!==Oe&&666!==Oe?bi(P,on):(P.state=null,113===Oe?bi(P,On):Ot)},kr_deflateSetDictionary=(P,Oe)=>{let he=Oe.length;if(!P||!P.state)return on;const Ye=P.state,Ne=Ye.wrap;if(2===Ne||1===Ne&&42!==Ye.status||Ye.lookahead)return on;if(1===Ne&&(P.adler=gt(P.adler,Oe,he,0)),Ye.wrap=0,he>=Ye.w_size){0===Ne&&(qi(Ye.head),Ye.strstart=0,Ye.block_start=0,Ye.insert=0);let bn=new Uint8Array(Ye.w_size);bn.set(Oe.subarray(he-Ye.w_size,he),0),Oe=bn,he=Ye.w_size}const ht=P.avail_in,Ut=P.next_in,kt=P.input;for(P.avail_in=he,P.next_in=0,P.input=Oe,Sn(Ye);Ye.lookahead>=3;){let bn=Ye.strstart,wt=Ye.lookahead-2;do{Ye.ins_h=Fn(Ye,Ye.ins_h,Ye.window[bn+3-1]),Ye.prev[bn&Ye.w_mask]=Ye.head[Ye.ins_h],Ye.head[Ye.ins_h]=bn,bn++}while(--wt);Ye.strstart=bn,Ye.lookahead=2,Sn(Ye)}return Ye.strstart+=Ye.lookahead,Ye.block_start=Ye.strstart,Ye.insert=Ye.lookahead,Ye.lookahead=0,Ye.match_length=Ye.prev_length=2,Ye.match_available=0,P.next_in=Ut,P.input=kt,P.avail_in=ht,Ye.wrap=Ne,Ot};const Jr=(P,Oe)=>Object.prototype.hasOwnProperty.call(P,Oe);var si_assign=function(P){const Oe=Array.prototype.slice.call(arguments,1);for(;Oe.length;){const he=Oe.shift();if(he){if("object"!=typeof he)throw new TypeError(he+"must be non-object");for(const Ye in he)Jr(he,Ye)&&(P[Ye]=he[Ye])}}return P},si_flattenChunks=P=>{let Oe=0;for(let Ye=0,Ne=P.length;Ye=252?6:P>=248?5:P>=240?4:P>=224?3:P>=192?2:1;Er[254]=Er[254]=1;var ve_string2buf=P=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(P);let Oe,he,Ye,Ne,ht,Ut=P.length,kt=0;for(Ne=0;Ne>>6,Oe[ht++]=128|63&he):he<65536?(Oe[ht++]=224|he>>>12,Oe[ht++]=128|he>>>6&63,Oe[ht++]=128|63&he):(Oe[ht++]=240|he>>>18,Oe[ht++]=128|he>>>12&63,Oe[ht++]=128|he>>>6&63,Oe[ht++]=128|63&he);return Oe},ve_buf2string=(P,Oe)=>{const he=Oe||P.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(P.subarray(0,Oe));let Ye,Ne;const ht=new Array(2*he);for(Ne=0,Ye=0;Ye4)ht[Ne++]=65533,Ye+=kt-1;else{for(Ut&=2===kt?31:3===kt?15:7;kt>1&&Ye1?ht[Ne++]=65533:Ut<65536?ht[Ne++]=Ut:(Ut-=65536,ht[Ne++]=55296|Ut>>10&1023,ht[Ne++]=56320|1023&Ut)}}return((P,Oe)=>{if(Oe<65534&&P.subarray&&zr)return String.fromCharCode.apply(null,P.length===Oe?P:P.subarray(0,Oe));let he="";for(let Ye=0;Ye{(Oe=Oe||P.length)>P.length&&(Oe=P.length);let he=Oe-1;for(;he>=0&&128==(192&P[he]);)he--;return he<0||0===he?Oe:he+Er[P[he]]>Oe?he:Oe},Nt=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};const nn=Object.prototype.toString,{Z_NO_FLUSH:In,Z_SYNC_FLUSH:ni,Z_FULL_FLUSH:di,Z_FINISH:ai,Z_OK:hi,Z_STREAM_END:Ei,Z_DEFAULT_COMPRESSION:ki,Z_DEFAULT_STRATEGY:xn,Z_DEFLATED:Kr}=se;function rr(P){this.options=si_assign({level:ki,method:Kr,chunkSize:16384,windowBits:15,memLevel:8,strategy:xn},P||{});let Oe=this.options;Oe.raw&&Oe.windowBits>0?Oe.windowBits=-Oe.windowBits:Oe.gzip&&Oe.windowBits>0&&Oe.windowBits<16&&(Oe.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nt,this.strm.avail_out=0;let he=kr_deflateInit2(this.strm,Oe.level,Oe.method,Oe.windowBits,Oe.memLevel,Oe.strategy);if(he!==hi)throw new Error(te[he]);if(Oe.header&&kr_deflateSetHeader(this.strm,Oe.header),Oe.dictionary){let Ye;if(Ye="string"==typeof Oe.dictionary?ve_string2buf(Oe.dictionary):"[object ArrayBuffer]"===nn.call(Oe.dictionary)?new Uint8Array(Oe.dictionary):Oe.dictionary,he=kr_deflateSetDictionary(this.strm,Ye),he!==hi)throw new Error(te[he]);this._dict_set=!0}}function xr(P,Oe){const he=new rr(Oe);if(he.push(P,!0),he.err)throw he.msg||te[he.err];return he.result}rr.prototype.push=function(P,Oe){const he=this.strm,Ye=this.options.chunkSize;let Ne,ht;if(this.ended)return!1;for(ht=Oe===~~Oe?Oe:!0===Oe?ai:In,he.input="string"==typeof P?ve_string2buf(P):"[object ArrayBuffer]"===nn.call(P)?new Uint8Array(P):P,he.next_in=0,he.avail_in=he.input.length;;)if(0===he.avail_out&&(he.output=new Uint8Array(Ye),he.next_out=0,he.avail_out=Ye),(ht===ni||ht===di)&&he.avail_out<=6)this.onData(he.output.subarray(0,he.next_out)),he.avail_out=0;else{if(Ne=kr_deflate(he,ht),Ne===Ei)return he.next_out>0&&this.onData(he.output.subarray(0,he.next_out)),Ne=kr_deflateEnd(this.strm),this.onEnd(Ne),this.ended=!0,Ne===hi;if(0!==he.avail_out){if(ht>0&&he.next_out>0)this.onData(he.output.subarray(0,he.next_out)),he.avail_out=0;else if(0===he.avail_in)break}else this.onData(he.output)}return!0},rr.prototype.onData=function(P){this.chunks.push(P)},rr.prototype.onEnd=function(P){P===hi&&(this.result=si_flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg};var pe={Deflate:rr,deflate:xr,deflateRaw:function(P,Oe){return(Oe=Oe||{}).raw=!0,xr(P,Oe)},gzip:function(P,Oe){return(Oe=Oe||{}).gzip=!0,xr(P,Oe)},constants:se},rt=function(Oe,he){let Ye,Ne,ht,Ut,kt,bn,wt,$t,Ii,hn,en,Nn,er,Ci,ui,Ai,gi,fn,wi,wr,Cn,Pi,Fi,ri;const Jn=Oe.state;Ye=Oe.next_in,Fi=Oe.input,Ne=Ye+(Oe.avail_in-5),ht=Oe.next_out,ri=Oe.output,Ut=ht-(he-Oe.avail_out),kt=ht+(Oe.avail_out-257),bn=Jn.dmax,wt=Jn.wsize,$t=Jn.whave,Ii=Jn.wnext,hn=Jn.window,en=Jn.hold,Nn=Jn.bits,er=Jn.lencode,Ci=Jn.distcode,ui=(1<>>24,en>>>=fn,Nn-=fn,fn=gi>>>16&255,0===fn)ri[ht++]=65535&gi;else{if(!(16&fn)){if(0==(64&fn)){gi=er[(65535&gi)+(en&(1<>>=fn,Nn-=fn),Nn<15&&(en+=Fi[Ye++]<>>24,en>>>=fn,Nn-=fn,fn=gi>>>16&255,!(16&fn)){if(0==(64&fn)){gi=Ci[(65535&gi)+(en&(1<bn){Oe.msg="invalid distance too far back",Jn.mode=30;break e}if(en>>>=fn,Nn-=fn,fn=ht-Ut,wr>fn){if(fn=wr-fn,fn>$t&&Jn.sane){Oe.msg="invalid distance too far back",Jn.mode=30;break e}if(Cn=0,Pi=hn,0===Ii){if(Cn+=wt-fn,fn2;)ri[ht++]=Pi[Cn++],ri[ht++]=Pi[Cn++],ri[ht++]=Pi[Cn++],wi-=3;wi&&(ri[ht++]=Pi[Cn++],wi>1&&(ri[ht++]=Pi[Cn++]))}else{Cn=ht-wr;do{ri[ht++]=ri[Cn++],ri[ht++]=ri[Cn++],ri[ht++]=ri[Cn++],wi-=3}while(wi>2);wi&&(ri[ht++]=ri[Cn++],wi>1&&(ri[ht++]=ri[Cn++]))}break}}break}}while(Ye>3,Ye-=wi,Nn-=wi<<3,en&=(1<{const bn=kt.bits;let gi,fn,wi,wr,Cn,ri,wt=0,$t=0,Ii=0,hn=0,en=0,Nn=0,er=0,Ci=0,ui=0,Ai=0,Pi=null,Fi=0;const Jn=new Uint16Array(16),no=new Uint16Array(16);let fo,Is,io,Ro=null,Za=0;for(wt=0;wt<=15;wt++)Jn[wt]=0;for($t=0;$t=1&&0===Jn[hn];hn--);if(en>hn&&(en=hn),0===hn)return Ne[ht++]=20971520,Ne[ht++]=20971520,kt.bits=1,0;for(Ii=1;Ii0&&(0===P||1!==hn))return-1;for(no[1]=0,wt=1;wt<15;wt++)no[wt+1]=no[wt]+Jn[wt];for($t=0;$t852||2===P&&ui>592)return 1;for(;;){fo=wt-er,Ut[$t]ri?(Is=Ro[Za+Ut[$t]],io=Pi[Fi+Ut[$t]]):(Is=96,io=0),gi=1<>er)+fn]=fo<<24|Is<<16|io|0}while(0!==fn);for(gi=1<>=1;if(0!==gi?(Ai&=gi-1,Ai+=gi):Ai=0,$t++,0==--Jn[wt]){if(wt===hn)break;wt=Oe[he+Ut[$t]]}if(wt>en&&(Ai&wr)!==wi){for(0===er&&(er=en),Cn+=Ii,Nn=wt-er,Ci=1<852||2===P&&ui>592)return 1;wi=Ai&wr,Ne[wi]=en<<24|Nn<<16|Cn-ht|0}}return 0!==Ai&&(Ne[Cn+Ai]=wt-er<<24|64<<16|0),kt.bits=en,0};const{Z_FINISH:fr,Z_BLOCK:Xi,Z_TREES:gr,Z_OK:zi,Z_STREAM_END:Pr,Z_NEED_DICT:ys,Z_STREAM_ERROR:Yi,Z_DATA_ERROR:Ur,Z_MEM_ERROR:bs,Z_BUF_ERROR:Cs,Z_DEFLATED:mn}=se,Ce=P=>(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24);function Te(){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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ve=P=>{if(!P||!P.state)return Yi;const Oe=P.state;return P.total_in=P.total_out=Oe.total=0,P.msg="",Oe.wrap&&(P.adler=1&Oe.wrap),Oe.mode=1,Oe.last=0,Oe.havedict=0,Oe.dmax=32768,Oe.head=null,Oe.hold=0,Oe.bits=0,Oe.lencode=Oe.lendyn=new Int32Array(852),Oe.distcode=Oe.distdyn=new Int32Array(592),Oe.sane=1,Oe.back=-1,zi},it=P=>{if(!P||!P.state)return Yi;const Oe=P.state;return Oe.wsize=0,Oe.whave=0,Oe.wnext=0,Ve(P)},bt=(P,Oe)=>{let he;if(!P||!P.state)return Yi;const Ye=P.state;return Oe<0?(he=0,Oe=-Oe):(he=1+(Oe>>4),Oe<48&&(Oe&=15)),Oe&&(Oe<8||Oe>15)?Yi:(null!==Ye.window&&Ye.wbits!==Oe&&(Ye.window=null),Ye.wrap=he,Ye.wbits=Oe,it(P))},zt=(P,Oe)=>{if(!P)return Yi;const he=new Te;P.state=he,he.window=null;const Ye=bt(P,Oe);return Ye!==zi&&(P.state=null),Ye};let Dn,vi,fi=!0;const Di=P=>{if(fi){Dn=new Int32Array(512),vi=new Int32Array(32);let Oe=0;for(;Oe<144;)P.lens[Oe++]=8;for(;Oe<256;)P.lens[Oe++]=9;for(;Oe<280;)P.lens[Oe++]=7;for(;Oe<288;)P.lens[Oe++]=8;for(xi(1,P.lens,0,288,Dn,0,P.work,{bits:9}),Oe=0;Oe<32;)P.lens[Oe++]=5;xi(2,P.lens,0,32,vi,0,P.work,{bits:5}),fi=!1}P.lencode=Dn,P.lenbits=9,P.distcode=vi,P.distbits=5},hs=(P,Oe,he,Ye)=>{let Ne;const ht=P.state;return null===ht.window&&(ht.wsize=1<=ht.wsize?(ht.window.set(Oe.subarray(he-ht.wsize,he),0),ht.wnext=0,ht.whave=ht.wsize):(Ne=ht.wsize-ht.wnext,Ne>Ye&&(Ne=Ye),ht.window.set(Oe.subarray(he-Ye,he-Ye+Ne),ht.wnext),(Ye-=Ne)?(ht.window.set(Oe.subarray(he-Ye,he),0),ht.wnext=Ye,ht.whave=ht.wsize):(ht.wnext+=Ne,ht.wnext===ht.wsize&&(ht.wnext=0),ht.whave{let he,Ye,Ne,ht,Ut,kt,bn,wt,$t,Ii,hn,en,Nn,er,ui,Ai,gi,fn,wi,wr,Cn,Pi,Ci=0;const Fi=new Uint8Array(4);let ri,Jn;const no=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!P||!P.state||!P.output||!P.input&&0!==P.avail_in)return Yi;he=P.state,12===he.mode&&(he.mode=13),Ut=P.next_out,Ne=P.output,bn=P.avail_out,ht=P.next_in,Ye=P.input,kt=P.avail_in,wt=he.hold,$t=he.bits,Ii=kt,hn=bn,Pi=zi;e:for(;;)switch(he.mode){case 1:if(0===he.wrap){he.mode=13;break}for(;$t<16;){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}if(2&he.wrap&&35615===wt){he.check=0,Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0),wt=0,$t=0,he.mode=2;break}if(he.flags=0,he.head&&(he.head.done=!1),!(1&he.wrap)||(((255&wt)<<8)+(wt>>8))%31){P.msg="incorrect header check",he.mode=30;break}if((15&wt)!==mn){P.msg="unknown compression method",he.mode=30;break}if(wt>>>=4,$t-=4,Cn=8+(15&wt),0===he.wbits)he.wbits=Cn;else if(Cn>he.wbits){P.msg="invalid window size",he.mode=30;break}he.dmax=1<>8&1),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0)),wt=0,$t=0,he.mode=3;case 3:for(;$t<32;){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}he.head&&(he.head.time=wt),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,Fi[2]=wt>>>16&255,Fi[3]=wt>>>24&255,he.check=Se(he.check,Fi,4,0)),wt=0,$t=0,he.mode=4;case 4:for(;$t<16;){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}he.head&&(he.head.xflags=255&wt,he.head.os=wt>>8),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0)),wt=0,$t=0,he.mode=5;case 5:if(1024&he.flags){for(;$t<16;){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}he.length=wt,he.head&&(he.head.extra_len=wt),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0)),wt=0,$t=0}else he.head&&(he.head.extra=null);he.mode=6;case 6:if(1024&he.flags&&(en=he.length,en>kt&&(en=kt),en&&(he.head&&(Cn=he.head.extra_len-he.length,he.head.extra||(he.head.extra=new Uint8Array(he.head.extra_len)),he.head.extra.set(Ye.subarray(ht,ht+en),Cn)),512&he.flags&&(he.check=Se(he.check,Ye,en,ht)),kt-=en,ht+=en,he.length-=en),he.length))break e;he.length=0,he.mode=7;case 7:if(2048&he.flags){if(0===kt)break e;en=0;do{Cn=Ye[ht+en++],he.head&&Cn&&he.length<65536&&(he.head.name+=String.fromCharCode(Cn))}while(Cn&&en>9&1,he.head.done=!0),P.adler=he.check=0,he.mode=12;break;case 10:for(;$t<32;){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}P.adler=he.check=Ce(wt),wt=0,$t=0,he.mode=11;case 11:if(0===he.havedict)return P.next_out=Ut,P.avail_out=bn,P.next_in=ht,P.avail_in=kt,he.hold=wt,he.bits=$t,ys;P.adler=he.check=1,he.mode=12;case 12:if(Oe===Xi||Oe===gr)break e;case 13:if(he.last){wt>>>=7&$t,$t-=7&$t,he.mode=27;break}for(;$t<3;){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}switch(he.last=1&wt,wt>>>=1,$t-=1,3&wt){case 0:he.mode=14;break;case 1:if(Di(he),he.mode=20,Oe===gr){wt>>>=2,$t-=2;break e}break;case 2:he.mode=17;break;case 3:P.msg="invalid block type",he.mode=30}wt>>>=2,$t-=2;break;case 14:for(wt>>>=7&$t,$t-=7&$t;$t<32;){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}if((65535&wt)!=(wt>>>16^65535)){P.msg="invalid stored block lengths",he.mode=30;break}if(he.length=65535&wt,wt=0,$t=0,he.mode=15,Oe===gr)break e;case 15:he.mode=16;case 16:if(en=he.length,en){if(en>kt&&(en=kt),en>bn&&(en=bn),0===en)break e;Ne.set(Ye.subarray(ht,ht+en),Ut),kt-=en,ht+=en,bn-=en,Ut+=en,he.length-=en;break}he.mode=12;break;case 17:for(;$t<14;){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}if(he.nlen=257+(31&wt),wt>>>=5,$t-=5,he.ndist=1+(31&wt),wt>>>=5,$t-=5,he.ncode=4+(15&wt),wt>>>=4,$t-=4,he.nlen>286||he.ndist>30){P.msg="too many length or distance symbols",he.mode=30;break}he.have=0,he.mode=18;case 18:for(;he.have>>=3,$t-=3}for(;he.have<19;)he.lens[no[he.have++]]=0;if(he.lencode=he.lendyn,he.lenbits=7,ri={bits:he.lenbits},Pi=xi(0,he.lens,0,19,he.lencode,0,he.work,ri),he.lenbits=ri.bits,Pi){P.msg="invalid code lengths set",he.mode=30;break}he.have=0,he.mode=19;case 19:for(;he.have>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(ui<=$t);){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}if(gi<16)wt>>>=ui,$t-=ui,he.lens[he.have++]=gi;else{if(16===gi){for(Jn=ui+2;$t>>=ui,$t-=ui,0===he.have){P.msg="invalid bit length repeat",he.mode=30;break}Cn=he.lens[he.have-1],en=3+(3&wt),wt>>>=2,$t-=2}else if(17===gi){for(Jn=ui+3;$t>>=ui,$t-=ui,Cn=0,en=3+(7&wt),wt>>>=3,$t-=3}else{for(Jn=ui+7;$t>>=ui,$t-=ui,Cn=0,en=11+(127&wt),wt>>>=7,$t-=7}if(he.have+en>he.nlen+he.ndist){P.msg="invalid bit length repeat",he.mode=30;break}for(;en--;)he.lens[he.have++]=Cn}}if(30===he.mode)break;if(0===he.lens[256]){P.msg="invalid code -- missing end-of-block",he.mode=30;break}if(he.lenbits=9,ri={bits:he.lenbits},Pi=xi(1,he.lens,0,he.nlen,he.lencode,0,he.work,ri),he.lenbits=ri.bits,Pi){P.msg="invalid literal/lengths set",he.mode=30;break}if(he.distbits=6,he.distcode=he.distdyn,ri={bits:he.distbits},Pi=xi(2,he.lens,he.nlen,he.ndist,he.distcode,0,he.work,ri),he.distbits=ri.bits,Pi){P.msg="invalid distances set",he.mode=30;break}if(he.mode=20,Oe===gr)break e;case 20:he.mode=21;case 21:if(kt>=6&&bn>=258){P.next_out=Ut,P.avail_out=bn,P.next_in=ht,P.avail_in=kt,he.hold=wt,he.bits=$t,rt(P,hn),Ut=P.next_out,Ne=P.output,bn=P.avail_out,ht=P.next_in,Ye=P.input,kt=P.avail_in,wt=he.hold,$t=he.bits,12===he.mode&&(he.back=-1);break}for(he.back=0;Ci=he.lencode[wt&(1<>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(ui<=$t);){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}if(Ai&&0==(240&Ai)){for(fn=ui,wi=Ai,wr=gi;Ci=he.lencode[wr+((wt&(1<>fn)],ui=Ci>>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(fn+ui<=$t);){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}wt>>>=fn,$t-=fn,he.back+=fn}if(wt>>>=ui,$t-=ui,he.back+=ui,he.length=gi,0===Ai){he.mode=26;break}if(32&Ai){he.back=-1,he.mode=12;break}if(64&Ai){P.msg="invalid literal/length code",he.mode=30;break}he.extra=15&Ai,he.mode=22;case 22:if(he.extra){for(Jn=he.extra;$t>>=he.extra,$t-=he.extra,he.back+=he.extra}he.was=he.length,he.mode=23;case 23:for(;Ci=he.distcode[wt&(1<>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(ui<=$t);){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}if(0==(240&Ai)){for(fn=ui,wi=Ai,wr=gi;Ci=he.distcode[wr+((wt&(1<>fn)],ui=Ci>>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(fn+ui<=$t);){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}wt>>>=fn,$t-=fn,he.back+=fn}if(wt>>>=ui,$t-=ui,he.back+=ui,64&Ai){P.msg="invalid distance code",he.mode=30;break}he.offset=gi,he.extra=15&Ai,he.mode=24;case 24:if(he.extra){for(Jn=he.extra;$t>>=he.extra,$t-=he.extra,he.back+=he.extra}if(he.offset>he.dmax){P.msg="invalid distance too far back",he.mode=30;break}he.mode=25;case 25:if(0===bn)break e;if(en=hn-bn,he.offset>en){if(en=he.offset-en,en>he.whave&&he.sane){P.msg="invalid distance too far back",he.mode=30;break}en>he.wnext?(en-=he.wnext,Nn=he.wsize-en):Nn=he.wnext-en,en>he.length&&(en=he.length),er=he.window}else er=Ne,Nn=Ut-he.offset,en=he.length;en>bn&&(en=bn),bn-=en,he.length-=en;do{Ne[Ut++]=er[Nn++]}while(--en);0===he.length&&(he.mode=21);break;case 26:if(0===bn)break e;Ne[Ut++]=he.length,bn--,he.mode=21;break;case 27:if(he.wrap){for(;$t<32;){if(0===kt)break e;kt--,wt|=Ye[ht++]<<$t,$t+=8}if(hn-=bn,P.total_out+=hn,he.total+=hn,hn&&(P.adler=he.check=he.flags?Se(he.check,Ne,hn,Ut-hn):gt(he.check,Ne,hn,Ut-hn)),hn=bn,(he.flags?wt:Ce(wt))!==he.check){P.msg="incorrect data check",he.mode=30;break}wt=0,$t=0}he.mode=28;case 28:if(he.wrap&&he.flags){for(;$t<32;){if(0===kt)break e;kt--,wt+=Ye[ht++]<<$t,$t+=8}if(wt!==(4294967295&he.total)){P.msg="incorrect length check",he.mode=30;break}wt=0,$t=0}he.mode=29;case 29:Pi=Pr;break e;case 30:Pi=Ur;break e;case 31:return bs;default:return Yi}return P.next_out=Ut,P.avail_out=bn,P.next_in=ht,P.avail_in=kt,he.hold=wt,he.bits=$t,(he.wsize||hn!==P.avail_out&&he.mode<30&&(he.mode<27||Oe!==fr))&&hs(P,P.output,P.next_out,hn-P.avail_out),Ii-=P.avail_in,hn-=P.avail_out,P.total_in+=Ii,P.total_out+=hn,he.total+=hn,he.wrap&&hn&&(P.adler=he.check=he.flags?Se(he.check,Ne,hn,P.next_out-hn):gt(he.check,Ne,hn,P.next_out-hn)),P.data_type=he.bits+(he.last?64:0)+(12===he.mode?128:0)+(20===he.mode||15===he.mode?256:0),(0===Ii&&0===hn||Oe===fr)&&Pi===zi&&(Pi=Cs),Pi},Ds_inflateEnd=P=>{if(!P||!P.state)return Yi;let Oe=P.state;return Oe.window&&(Oe.window=null),P.state=null,zi},Ds_inflateGetHeader=(P,Oe)=>{if(!P||!P.state)return Yi;const he=P.state;return 0==(2&he.wrap)?Yi:(he.head=Oe,Oe.done=!1,zi)},Ds_inflateSetDictionary=(P,Oe)=>{const he=Oe.length;let Ye,Ne,ht;return P&&P.state&&(Ye=P.state,0===Ye.wrap||11===Ye.mode)?11===Ye.mode&&(Ne=1,Ne=gt(Ne,Oe,he,0),Ne!==Ye.check)?Ur:(ht=hs(P,Oe,he,he),ht?(Ye.mode=31,bs):(Ye.havedict=1,zi)):Yi},da=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};const to=Object.prototype.toString,{Z_NO_FLUSH:uo,Z_FINISH:co,Z_OK:Ts,Z_STREAM_END:_o,Z_NEED_DICT:Hs,Z_STREAM_ERROR:js,Z_DATA_ERROR:ha,Z_MEM_ERROR:lr}=se;function vo(P){this.options=si_assign({chunkSize:65536,windowBits:15,to:""},P||{});const Oe=this.options;Oe.raw&&Oe.windowBits>=0&&Oe.windowBits<16&&(Oe.windowBits=-Oe.windowBits,0===Oe.windowBits&&(Oe.windowBits=-15)),Oe.windowBits>=0&&Oe.windowBits<16&&!(P&&P.windowBits)&&(Oe.windowBits+=32),Oe.windowBits>15&&Oe.windowBits<48&&0==(15&Oe.windowBits)&&(Oe.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nt,this.strm.avail_out=0;let he=Ds_inflateInit2(this.strm,Oe.windowBits);if(he!==Ts)throw new Error(te[he]);if(this.header=new da,Ds_inflateGetHeader(this.strm,this.header),Oe.dictionary&&("string"==typeof Oe.dictionary?Oe.dictionary=ve_string2buf(Oe.dictionary):"[object ArrayBuffer]"===to.call(Oe.dictionary)&&(Oe.dictionary=new Uint8Array(Oe.dictionary)),Oe.raw&&(he=Ds_inflateSetDictionary(this.strm,Oe.dictionary),he!==Ts)))throw new Error(te[he])}function Ao(P,Oe){const he=new vo(Oe);if(he.push(P),he.err)throw he.msg||te[he.err];return he.result}vo.prototype.push=function(P,Oe){const he=this.strm,Ye=this.options.chunkSize,Ne=this.options.dictionary;let ht,Ut,kt;if(this.ended)return!1;for(Ut=Oe===~~Oe?Oe:!0===Oe?co:uo,he.input="[object ArrayBuffer]"===to.call(P)?new Uint8Array(P):P,he.next_in=0,he.avail_in=he.input.length;;){for(0===he.avail_out&&(he.output=new Uint8Array(Ye),he.next_out=0,he.avail_out=Ye),ht=Ds_inflate(he,Ut),ht===Hs&&Ne&&(ht=Ds_inflateSetDictionary(he,Ne),ht===Ts?ht=Ds_inflate(he,Ut):ht===ha&&(ht=Hs));he.avail_in>0&&ht===_o&&he.state.wrap>0&&0!==P[he.next_in];)Ds_inflateReset(he),ht=Ds_inflate(he,Ut);switch(ht){case js:case ha:case Hs:case lr:return this.onEnd(ht),this.ended=!0,!1}if(kt=he.avail_out,he.next_out&&(0===he.avail_out||ht===_o))if("string"===this.options.to){let bn=ve_utf8border(he.output,he.next_out),wt=he.next_out-bn,$t=ve_buf2string(he.output,bn);he.next_out=wt,he.avail_out=Ye-wt,wt&&he.output.set(he.output.subarray(bn,bn+wt),0),this.onData($t)}else this.onData(he.output.length===he.next_out?he.output:he.output.subarray(0,he.next_out));if(ht!==Ts||0!==kt){if(ht===_o)return ht=Ds_inflateEnd(this.strm),this.onEnd(ht),this.ended=!0,!0;if(0===he.avail_in)break}}return!0},vo.prototype.onData=function(P){this.chunks.push(P)},vo.prototype.onEnd=function(P){P===Ts&&(this.result="string"===this.options.to?this.chunks.join(""):si_flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg};var Gd={Inflate:vo,inflate:Ao,inflateRaw:function(P,Oe){return(Oe=Oe||{}).raw=!0,Ao(P,Oe)},ungzip:Ao,constants:se};const{Deflate:yr,deflate:Oo,deflateRaw:bo,gzip:Yd}=pe,{Inflate:jl,inflate:os,inflateRaw:xs,ungzip:Ya}=Gd;var Co=yr,ho=Oo,fa=bo,Qa=Yd,Xa=jl,Wl=os,zl=xs,pa=Ya,Yr=se,ma={Deflate:yr,deflate:Oo,deflateRaw:bo,gzip:Yd,Inflate:jl,inflate:os,inflateRaw:xs,ungzip:Ya,constants:se}},8210:ye=>{"use strict";ye.exports=JSON.parse('{"license":"The following data (prefixes and units) was generated by the UCUM LHC code from the UCUM data and selected LOINC combinations of UCUM units. The license for the UCUM LHC code (demo and library code as well as the combined units) is located at https://github.com/lhncbc/ucum-lhc/blob/LICENSE.md.","prefixes":{"config":["code_","ciCode_","name_","printSymbol_","value_","exp_"],"data":[["E","EX","exa","E",1000000000000000000,"18"],["G","GA","giga","G",1000000000,"9"],["Gi","GIB","gibi","Gi",1073741824,null],["Ki","KIB","kibi","Ki",1024,null],["M","MA","mega","M",1000000,"6"],["Mi","MIB","mebi","Mi",1048576,null],["P","PT","peta","P",1000000000000000,"15"],["T","TR","tera","T",1000000000000,"12"],["Ti","TIB","tebi","Ti",1099511627776,null],["Y","YA","yotta","Y",1e+24,"24"],["Z","ZA","zetta","Z",1e+21,"21"],["a","A","atto","a",1e-18,"-18"],["c","C","centi","c",0.01,"-2"],["d","D","deci","d",0.1,"-1"],["da","DA","deka","da",10,"1"],["f","F","femto","f",1e-15,"-15"],["h","H","hecto","h",100,"2"],["k","K","kilo","k",1000,"3"],["m","M","milli","m",0.001,"-3"],["n","N","nano","n",1e-9,"-9"],["p","P","pico","p",1e-12,"-12"],["u","U","micro","\u03bc",0.000001,"-6"],["y","YO","yocto","y",1.0000000000000001e-24,"-24"],["z","ZO","zepto","z",1e-21,"-21"]]},"units":{"config":["isBase_","name_","csCode_","ciCode_","property_","magnitude_",["dim_","dimVec_"],"printSymbol_","class_","isMetric_","variable_","cnv_","cnvPfx_","isSpecial_","isArbitrary_","moleExp_","synonyms_","source_","loincProperty_","category_","guidance_","csUnitString_","ciUnitString_","baseFactorStr_","baseFactor_","defError_"],"data":[[true,"meter","m","M","length",1,[1,0,0,0,0,0,0],"m",null,false,"L",null,1,false,false,0,"meters; metres; distance","UCUM","Len","Clinical","unit of length = 1.09361 yards",null,null,null,null,false],[true,"second - time","s","S","time",1,[0,1,0,0,0,0,0],"s",null,false,"T",null,1,false,false,0,"seconds","UCUM","Time","Clinical","",null,null,null,null,false],[true,"gram","g","G","mass",1,[0,0,1,0,0,0,0],"g",null,false,"M",null,1,false,false,0,"grams; gm","UCUM","Mass","Clinical","",null,null,null,null,false],[true,"radian","rad","RAD","plane angle",1,[0,0,0,1,0,0,0],"rad",null,false,"A",null,1,false,false,0,"radians","UCUM","Angle","Clinical","unit of angular measure where 1 radian = 1/2\u03c0 turn = 57.296 degrees. ",null,null,null,null,false],[true,"degree Kelvin","K","K","temperature",1,[0,0,0,0,1,0,0],"K",null,false,"C",null,1,false,false,0,"Kelvin; degrees","UCUM","Temp","Clinical","absolute, thermodynamic temperature scale ",null,null,null,null,false],[true,"coulomb","C","C","electric charge",1,[0,0,0,0,0,1,0],"C",null,false,"Q",null,1,false,false,0,"coulombs","UCUM","","Clinical","defined as amount of 1 electron charge = 6.2415093\xd710^18 e, and equivalent to 1 Ampere-second",null,null,null,null,false],[true,"candela","cd","CD","luminous intensity",1,[0,0,0,0,0,0,1],"cd",null,false,"F",null,1,false,false,0,"candelas","UCUM","","Clinical","SI base unit of luminous intensity",null,null,null,null,false],[false,"the number ten for arbitrary powers","10*","10*","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10^; 10 to the arbitrary powers","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number ten for arbitrary powers","10^","10^","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10*; 10 to the arbitrary power","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number pi","[pi]","[PI]","number",3.141592653589793,[0,0,0,0,0,0,0],"\u03c0","dimless",false,null,null,1,false,false,0,"\u03c0","UCUM","","Constant","a mathematical constant; the ratio of a circle\'s circumference to its diameter \u2248 3.14159","1","1","3.1415926535897932384626433832795028841971693993751058209749445923",3.141592653589793,false],[false,"","%","%","fraction",0.01,[0,0,0,0,0,0,0],"%","dimless",false,null,null,1,false,false,0,"percents","UCUM","FR; NFR; MFR; CFR; SFR Rto; etc. ","Clinical","","10*-2","10*-2","1",1,false],[false,"parts per thousand","[ppth]","[PPTH]","fraction",0.001,[0,0,0,0,0,0,0],"ppth","dimless",false,null,null,1,false,false,0,"ppth; 10^-3","UCUM","MCnc; MCnt","Clinical","[ppth] is often used in solution concentrations as 1 g/L or 1 g/kg.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-3","10*-3","1",1,false],[false,"parts per million","[ppm]","[PPM]","fraction",0.000001,[0,0,0,0,0,0,0],"ppm","dimless",false,null,null,1,false,false,0,"ppm; 10^-6","UCUM","MCnt; MCnc; SFr","Clinical","[ppm] is often used in solution concentrations as 1 mg/L or 1 mg/kg. Also used to express mole fractions as 1 mmol/mol.\\n\\n[ppm] is also used in nuclear magnetic resonance (NMR) to represent chemical shift - the difference of a measured frequency in parts per million from the reference frequency.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-6","10*-6","1",1,false],[false,"parts per billion","[ppb]","[PPB]","fraction",1e-9,[0,0,0,0,0,0,0],"ppb","dimless",false,null,null,1,false,false,0,"ppb; 10^-9","UCUM","MCnt; MCnc; SFr","Clinical","[ppb] is often used in solution concentrations as 1 ug/L or 1 ug/kg. Also used to express mole fractions as 1 umol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-9","10*-9","1",1,false],[false,"parts per trillion","[pptr]","[PPTR]","fraction",1e-12,[0,0,0,0,0,0,0],"pptr","dimless",false,null,null,1,false,false,0,"pptr; 10^-12","UCUM","MCnt; MCnc; SFr","Clinical","[pptr] is often used in solution concentrations as 1 ng/L or 1 ng/kg. Also used to express mole fractions as 1 nmol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-12","10*-12","1",1,false],[false,"mole","mol","MOL","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"mol","si",true,null,null,1,false,false,1,"moles","UCUM","Sub","Clinical","Measure the number of molecules ","10*23","10*23","6.0221367",6.0221367,false],[false,"steradian - solid angle","sr","SR","solid angle",1,[0,0,0,2,0,0,0],"sr","si",true,null,null,1,false,false,0,"square radian; rad2; rad^2","UCUM","Angle","Clinical","unit of solid angle in three-dimensional geometry analagous to radian; used in photometry which measures the perceived brightness of object by human eye (e.g. radiant intensity = watt/steradian)","rad2","RAD2","1",1,false],[false,"hertz","Hz","HZ","frequency",1,[0,-1,0,0,0,0,0],"Hz","si",true,null,null,1,false,false,0,"Herz; frequency; frequencies","UCUM","Freq; Num","Clinical","equal to one cycle per second","s-1","S-1","1",1,false],[false,"newton","N","N","force",1000,[1,-2,1,0,0,0,0],"N","si",true,null,null,1,false,false,0,"Newtons","UCUM","Force","Clinical","unit of force with base units kg.m/s2","kg.m/s2","KG.M/S2","1",1,false],[false,"pascal","Pa","PAL","pressure",1000,[-1,-2,1,0,0,0,0],"Pa","si",true,null,null,1,false,false,0,"pascals","UCUM","Pres","Clinical","standard unit of pressure equal to 1 newton per square meter (N/m2)","N/m2","N/M2","1",1,false],[false,"joule","J","J","energy",1000,[2,-2,1,0,0,0,0],"J","si",true,null,null,1,false,false,0,"joules","UCUM","Enrg","Clinical","unit of energy defined as the work required to move an object 1 m with a force of 1 N (N.m) or an electric charge of 1 C through 1 V (C.V), or to produce 1 W for 1 s (W.s) ","N.m","N.M","1",1,false],[false,"watt","W","W","power",1000,[2,-3,1,0,0,0,0],"W","si",true,null,null,1,false,false,0,"watts","UCUM","EngRat","Clinical","unit of power equal to 1 Joule per second (J/s) = kg\u22c5m2\u22c5s\u22123","J/s","J/S","1",1,false],[false,"Ampere","A","A","electric current",1,[0,-1,0,0,0,1,0],"A","si",true,null,null,1,false,false,0,"Amperes","UCUM","ElpotRat","Clinical","unit of electric current equal to flow rate of electrons equal to 16.2415\xd710^18 elementary charges moving past a boundary in one second or 1 Coulomb/second","C/s","C/S","1",1,false],[false,"volt","V","V","electric potential",1000,[2,-2,1,0,0,-1,0],"V","si",true,null,null,1,false,false,0,"volts","UCUM","Elpot","Clinical","unit of electric potential (voltage) = 1 Joule per Coulomb (J/C)","J/C","J/C","1",1,false],[false,"farad","F","F","electric capacitance",0.001,[-2,2,-1,0,0,2,0],"F","si",true,null,null,1,false,false,0,"farads; electric capacitance","UCUM","","Clinical","CGS unit of electric capacitance with base units C/V (Coulomb per Volt)","C/V","C/V","1",1,false],[false,"ohm","Ohm","OHM","electric resistance",1000,[2,-1,1,0,0,-2,0],"\u03a9","si",true,null,null,1,false,false,0,"\u03a9; resistance; ohms","UCUM","","Clinical","unit of electrical resistance with units of Volt per Ampere","V/A","V/A","1",1,false],[false,"siemens","S","SIE","electric conductance",0.001,[-2,1,-1,0,0,2,0],"S","si",true,null,null,1,false,false,0,"Reciprocal ohm; mho; \u03a9\u22121; conductance","UCUM","","Clinical","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","Ohm-1","OHM-1","1",1,false],[false,"weber","Wb","WB","magnetic flux",1000,[2,-1,1,0,0,-1,0],"Wb","si",true,null,null,1,false,false,0,"magnetic flux; webers","UCUM","","Clinical","unit of magnetic flux equal to Volt second","V.s","V.S","1",1,false],[false,"degree Celsius","Cel","CEL","temperature",1,[0,0,0,0,1,0,0],"\xb0C","si",true,null,"Cel",1,true,false,0,"\xb0C; degrees","UCUM","Temp","Clinical","","K",null,null,1,false],[false,"tesla","T","T","magnetic flux density",1000,[0,-1,1,0,0,-1,0],"T","si",true,null,null,1,false,false,0,"Teslas; magnetic field","UCUM","","Clinical","SI unit of magnetic field strength for magnetic field B equal to 1 Weber/square meter = 1 kg/(s2*A)","Wb/m2","WB/M2","1",1,false],[false,"henry","H","H","inductance",1000,[2,0,1,0,0,-2,0],"H","si",true,null,null,1,false,false,0,"henries; inductance","UCUM","","Clinical","unit of electrical inductance; usually expressed in millihenrys (mH) or microhenrys (uH).","Wb/A","WB/A","1",1,false],[false,"lumen","lm","LM","luminous flux",1,[0,0,0,2,0,0,1],"lm","si",true,null,null,1,false,false,0,"luminous flux; lumens","UCUM","","Clinical","unit of luminous flux defined as 1 lm = 1 cd\u22c5sr (candela times sphere)","cd.sr","CD.SR","1",1,false],[false,"lux","lx","LX","illuminance",1,[-2,0,0,2,0,0,1],"lx","si",true,null,null,1,false,false,0,"illuminance; luxes","UCUM","","Clinical","unit of illuminance equal to one lumen per square meter. ","lm/m2","LM/M2","1",1,false],[false,"becquerel","Bq","BQ","radioactivity",1,[0,-1,0,0,0,0,0],"Bq","si",true,null,null,1,false,false,0,"activity; radiation; becquerels","UCUM","","Clinical","measure of the atomic radiation rate with units s^-1","s-1","S-1","1",1,false],[false,"gray","Gy","GY","energy dose",1,[2,-2,0,0,0,0,0],"Gy","si",true,null,null,1,false,false,0,"absorbed doses; ionizing radiation doses; kerma; grays","UCUM","EngCnt","Clinical","unit of ionizing radiation dose with base units of 1 joule of radiation energy per kilogram of matter","J/kg","J/KG","1",1,false],[false,"sievert","Sv","SV","dose equivalent",1,[2,-2,0,0,0,0,0],"Sv","si",true,null,null,1,false,false,0,"sieverts; radiation dose quantities; equivalent doses; effective dose; operational dose; committed dose","UCUM","","Clinical","SI unit for radiation dose equivalent equal to 1 Joule/kilogram.","J/kg","J/KG","1",1,false],[false,"degree - plane angle","deg","DEG","plane angle",0.017453292519943295,[0,0,0,1,0,0,0],"\xb0","iso1000",false,null,null,1,false,false,0,"\xb0; degree of arc; arc degree; arcdegree; angle","UCUM","Angle","Clinical","one degree is equivalent to \u03c0/180 radians.","[pi].rad/360","[PI].RAD/360","2",2,false],[false,"gon","gon","GON","plane angle",0.015707963267948967,[0,0,0,1,0,0,0],"\u25a1g","iso1000",false,null,null,1,false,false,0,"gon (grade); gons","UCUM","Angle","Nonclinical","unit of plane angle measurement equal to 1/400 circle","deg","DEG","0.9",0.9,false],[false,"arc minute","\'","\'","plane angle",0.0002908882086657216,[0,0,0,1,0,0,0],"\'","iso1000",false,null,null,1,false,false,0,"arcminutes; arcmin; arc minutes; arc mins","UCUM","Angle","Clinical","equal to 1/60 degree; used in optometry and opthamology (e.g. visual acuity tests)","deg/60","DEG/60","1",1,false],[false,"arc second","\'\'","\'\'","plane angle",0.00000484813681109536,[0,0,0,1,0,0,0],"\'\'","iso1000",false,null,null,1,false,false,0,"arcseconds; arcsecs","UCUM","Angle","Clinical","equal to 1/60 arcminute = 1/3600 degree; used in optometry and opthamology (e.g. visual acuity tests)","\'/60","\'/60","1",1,false],[false,"Liters","l","L","volume",0.001,[3,0,0,0,0,0,0],"l","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","dm3","DM3","1",1,false],[false,"Liters","L","L","volume",0.001,[3,0,0,0,0,0,0],"L","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","l",null,"1",1,false],[false,"are","ar","AR","area",100,[2,0,0,0,0,0,0],"a","iso1000",true,null,null,1,false,false,0,"100 m2; 100 m^2; 100 square meter; meters squared; metres","UCUM","Area","Clinical","metric base unit for area defined as 100 m^2","m2","M2","100",100,false],[false,"minute","min","MIN","time",60,[0,1,0,0,0,0,0],"min","iso1000",false,null,null,1,false,false,0,"minutes","UCUM","Time","Clinical","","s","S","60",60,false],[false,"hour","h","HR","time",3600,[0,1,0,0,0,0,0],"h","iso1000",false,null,null,1,false,false,0,"hours; hrs; age","UCUM","Time","Clinical","","min","MIN","60",60,false],[false,"day","d","D","time",86400,[0,1,0,0,0,0,0],"d","iso1000",false,null,null,1,false,false,0,"days; age; dy; 24 hours; 24 hrs","UCUM","Time","Clinical","","h","HR","24",24,false],[false,"tropical year","a_t","ANN_T","time",31556925.216,[0,1,0,0,0,0,0],"at","iso1000",false,null,null,1,false,false,0,"solar years; a tropical; years","UCUM","Time","Clinical","has an average of 365.242181 days but is constantly changing.","d","D","365.24219",365.24219,false],[false,"mean Julian year","a_j","ANN_J","time",31557600,[0,1,0,0,0,0,0],"aj","iso1000",false,null,null,1,false,false,0,"mean Julian yr; a julian; years","UCUM","Time","Clinical","has an average of 365.25 days, and in everyday use, has been replaced by the Gregorian year. However, this unit is used in astronomy to calculate light year. ","d","D","365.25",365.25,false],[false,"mean Gregorian year","a_g","ANN_G","time",31556952,[0,1,0,0,0,0,0],"ag","iso1000",false,null,null,1,false,false,0,"mean Gregorian yr; a gregorian; years","UCUM","Time","Clinical","has an average of 365.2425 days and is the most internationally used civil calendar.","d","D","365.2425",365.2425,false],[false,"year","a","ANN","time",31557600,[0,1,0,0,0,0,0],"a","iso1000",false,null,null,1,false,false,0,"years; a; yr, yrs; annum","UCUM","Time","Clinical","","a_j","ANN_J","1",1,false],[false,"week","wk","WK","time",604800,[0,1,0,0,0,0,0],"wk","iso1000",false,null,null,1,false,false,0,"weeks; wks","UCUM","Time","Clinical","","d","D","7",7,false],[false,"synodal month","mo_s","MO_S","time",2551442.976,[0,1,0,0,0,0,0],"mos","iso1000",false,null,null,1,false,false,0,"Moon; synodic month; lunar month; mo-s; mo s; months; moons","UCUM","Time","Nonclinical","has an average of 29.53 days per month, unit used in astronomy","d","D","29.53059",29.53059,false],[false,"mean Julian month","mo_j","MO_J","time",2629800,[0,1,0,0,0,0,0],"moj","iso1000",false,null,null,1,false,false,0,"mo-julian; mo Julian; months","UCUM","Time","Clinical","has an average of 30.435 days per month","a_j/12","ANN_J/12","1",1,false],[false,"mean Gregorian month","mo_g","MO_G","time",2629746,[0,1,0,0,0,0,0],"mog","iso1000",false,null,null,1,false,false,0,"months; month-gregorian; mo-gregorian","UCUM","Time","Clinical","has an average 30.436875 days per month and is from the most internationally used civil calendar.","a_g/12","ANN_G/12","1",1,false],[false,"month","mo","MO","time",2629800,[0,1,0,0,0,0,0],"mo","iso1000",false,null,null,1,false,false,0,"months; duration","UCUM","Time","Clinical","based on Julian calendar which has an average of 30.435 days per month (this unit is used in astronomy but not in everyday life - see mo_g)","mo_j","MO_J","1",1,false],[false,"metric ton","t","TNE","mass",1000000,[0,0,1,0,0,0,0],"t","iso1000",true,null,null,1,false,false,0,"tonnes; megagrams; tons","UCUM","Mass","Nonclinical","equal to 1000 kg used in the US (recognized by NIST as metric ton), and internationally (recognized as tonne)","kg","KG","1e3",1000,false],[false,"bar","bar","BAR","pressure",100000000,[-1,-2,1,0,0,0,0],"bar","iso1000",true,null,null,1,false,false,0,"bars","UCUM","Pres","Nonclinical","unit of pressure equal to 10^5 Pascals, primarily used by meteorologists and in weather forecasting","Pa","PAL","1e5",100000,false],[false,"unified atomic mass unit","u","AMU","mass",1.6605402e-24,[0,0,1,0,0,0,0],"u","iso1000",true,null,null,1,false,false,0,"unified atomic mass units; amu; Dalton; Da","UCUM","Mass","Clinical","the mass of 1/12 of an unbound Carbon-12 atom nuclide equal to 1.6606x10^-27 kg ","g","G","1.6605402e-24",1.6605402e-24,false],[false,"astronomic unit","AU","ASU","length",149597870691,[1,0,0,0,0,0,0],"AU","iso1000",false,null,null,1,false,false,0,"AU; units","UCUM","Len","Clinical","unit of length used in astronomy for measuring distance in Solar system","Mm","MAM","149597.870691",149597.870691,false],[false,"parsec","pc","PRS","length",30856780000000000,[1,0,0,0,0,0,0],"pc","iso1000",true,null,null,1,false,false,0,"parsecs","UCUM","Len","Clinical","unit of length equal to 3.26 light years, nad used to measure large distances to objects outside our Solar System","m","M","3.085678e16",30856780000000000,false],[false,"velocity of light in a vacuum","[c]","[C]","velocity",299792458,[1,-1,0,0,0,0,0],"c","const",true,null,null,1,false,false,0,"speed of light","UCUM","Vel","Constant","equal to 299792458 m/s (approximately 3 x 10^8 m/s)","m/s","M/S","299792458",299792458,false],[false,"Planck constant","[h]","[H]","action",6.6260755e-31,[2,-1,1,0,0,0,0],"h","const",true,null,null,1,false,false,0,"Planck\'s constant","UCUM","","Constant","constant = 6.62607004 \xd7 10-34 m2.kg/s; defined as quantum of action","J.s","J.S","6.6260755e-34",6.6260755e-34,false],[false,"Boltzmann constant","[k]","[K]","(unclassified)",1.380658e-20,[2,-2,1,0,-1,0,0],"k","const",true,null,null,1,false,false,0,"k; kB","UCUM","","Constant","physical constant relating energy at the individual particle level with temperature = 1.38064852 \xd710^\u221223 J/K","J/K","J/K","1.380658e-23",1.380658e-23,false],[false,"permittivity of vacuum - electric","[eps_0]","[EPS_0]","electric permittivity",8.854187817000001e-15,[-3,2,-1,0,0,2,0],"\u03b50","const",true,null,null,1,false,false,0,"\u03b50; Electric Constant; vacuum permittivity; permittivity of free space ","UCUM","","Constant","approximately equal to 8.854\u2009\xd7 10^\u221212 F/m (farads per meter)","F/m","F/M","8.854187817e-12",8.854187817e-12,false],[false,"permeability of vacuum - magnetic","[mu_0]","[MU_0]","magnetic permeability",0.0012566370614359172,[1,0,1,0,0,-2,0],"\u03bc0","const",true,null,null,1,false,false,0,"\u03bc0; vacuum permeability; permeability of free space; magnetic constant","UCUM","","Constant","equal to 4\u03c0\xd710^\u22127 N/A2 (Newtons per square ampere) \u2248 1.2566\xd710^\u22126 H/m (Henry per meter)","N/A2","4.[PI].10*-7.N/A2","1",0.0000012566370614359173,false],[false,"elementary charge","[e]","[E]","electric charge",1.60217733e-19,[0,0,0,0,0,1,0],"e","const",true,null,null,1,false,false,0,"e; q; electric charges","UCUM","","Constant","the magnitude of the electric charge carried by a single electron or proton \u2248 1.60217\xd710^-19 Coulombs","C","C","1.60217733e-19",1.60217733e-19,false],[false,"electronvolt","eV","EV","energy",1.60217733e-16,[2,-2,1,0,0,0,0],"eV","iso1000",true,null,null,1,false,false,0,"Electron Volts; electronvolts","UCUM","Eng","Clinical","unit of kinetic energy = 1 V * 1.602\xd710^\u221219 C = 1.6\xd710\u221219 Joules","[e].V","[E].V","1",1,false],[false,"electron mass","[m_e]","[M_E]","mass",9.1093897e-28,[0,0,1,0,0,0,0],"me","const",true,null,null,1,false,false,0,"electron rest mass; me","UCUM","Mass","Constant","approximately equal to 9.10938356 \xd7 10-31 kg; defined as the mass of a stationary electron","g","g","9.1093897e-28",9.1093897e-28,false],[false,"proton mass","[m_p]","[M_P]","mass",1.6726231e-24,[0,0,1,0,0,0,0],"mp","const",true,null,null,1,false,false,0,"mp; masses","UCUM","Mass","Constant","approximately equal to 1.672622\xd710\u221227 kg","g","g","1.6726231e-24",1.6726231e-24,false],[false,"Newtonian constant of gravitation","[G]","[GC]","(unclassified)",6.67259e-14,[3,-2,-1,0,0,0,0],"G","const",true,null,null,1,false,false,0,"G; gravitational constant; Newton\'s constant","UCUM","","Constant","gravitational constant = 6.674\xd710\u221211 N\u22c5m2/kg2","m3.kg-1.s-2","M3.KG-1.S-2","6.67259e-11",6.67259e-11,false],[false,"standard acceleration of free fall","[g]","[G]","acceleration",9.80665,[1,-2,0,0,0,0,0],"gn","const",true,null,null,1,false,false,0,"standard gravity; g; \u02610; \u0261n","UCUM","Accel","Constant","defined by standard = 9.80665 m/s2","m/s2","M/S2","980665e-5",9.80665,false],[false,"Torr","Torr","Torr","pressure",133322,[-1,-2,1,0,0,0,0],"Torr","const",false,null,null,1,false,false,0,"torrs","UCUM","Pres","Clinical","1 torr = 1 mmHg; unit used to measure blood pressure","Pa","PAL","133.322",133.322,false],[false,"standard atmosphere","atm","ATM","pressure",101325000,[-1,-2,1,0,0,0,0],"atm","const",false,null,null,1,false,false,0,"reference pressure; atmos; std atmosphere","UCUM","Pres","Clinical","defined as being precisely equal to 101,325 Pa","Pa","PAL","101325",101325,false],[false,"light-year","[ly]","[LY]","length",9460730472580800,[1,0,0,0,0,0,0],"l.y.","const",true,null,null,1,false,false,0,"light years; ly","UCUM","Len","Constant","unit of astronomal distance = 5.88\xd710^12 mi","[c].a_j","[C].ANN_J","1",1,false],[false,"gram-force","gf","GF","force",9.80665,[1,-2,1,0,0,0,0],"gf","const",true,null,null,1,false,false,0,"Newtons; gram forces","UCUM","Force","Clinical","May be specific to unit related to cardiac output","g.[g]","G.[G]","1",1,false],[false,"Kayser","Ky","KY","lineic number",100,[-1,0,0,0,0,0,0],"K","cgs",true,null,null,1,false,false,0,"wavenumbers; kaysers","UCUM","InvLen","Clinical","unit of wavelength equal to cm^-1","cm-1","CM-1","1",1,false],[false,"Gal","Gal","GL","acceleration",0.01,[1,-2,0,0,0,0,0],"Gal","cgs",true,null,null,1,false,false,0,"galileos; Gals","UCUM","Accel","Clinical","unit of acceleration used in gravimetry; equivalent to cm/s2 ","cm/s2","CM/S2","1",1,false],[false,"dyne","dyn","DYN","force",0.01,[1,-2,1,0,0,0,0],"dyn","cgs",true,null,null,1,false,false,0,"dynes","UCUM","Force","Clinical","unit of force equal to 10^-5 Newtons","g.cm/s2","G.CM/S2","1",1,false],[false,"erg","erg","ERG","energy",0.0001,[2,-2,1,0,0,0,0],"erg","cgs",true,null,null,1,false,false,0,"10^-7 Joules, 10-7 Joules; 100 nJ; 100 nanoJoules; 1 dyne cm; 1 g.cm2/s2","UCUM","Eng","Clinical","unit of energy = 1 dyne centimeter = 10^-7 Joules","dyn.cm","DYN.CM","1",1,false],[false,"Poise","P","P","dynamic viscosity",100,[-1,-1,1,0,0,0,0],"P","cgs",true,null,null,1,false,false,0,"dynamic viscosity; poises","UCUM","Visc","Clinical","unit of dynamic viscosity where 1 Poise = 1/10 Pascal second","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"Biot","Bi","BI","electric current",10,[0,-1,0,0,0,1,0],"Bi","cgs",true,null,null,1,false,false,0,"Bi; abamperes; abA","UCUM","ElpotRat","Clinical","equal to 10 amperes","A","A","10",10,false],[false,"Stokes","St","ST","kinematic viscosity",0.0001,[2,-1,0,0,0,0,0],"St","cgs",true,null,null,1,false,false,0,"kinematic viscosity","UCUM","Visc","Clinical","unit of kimematic viscosity with units cm2/s","cm2/s","CM2/S","1",1,false],[false,"Maxwell","Mx","MX","flux of magnetic induction",0.00001,[2,-1,1,0,0,-1,0],"Mx","cgs",true,null,null,1,false,false,0,"magnetix flux; Maxwells","UCUM","","Clinical","unit of magnetic flux","Wb","WB","1e-8",1e-8,false],[false,"Gauss","G","GS","magnetic flux density",0.1,[0,-1,1,0,0,-1,0],"Gs","cgs",true,null,null,1,false,false,0,"magnetic fields; magnetic flux density; induction; B","UCUM","magnetic","Clinical","CGS unit of magnetic flux density, known as magnetic field B; defined as one maxwell unit per square centimeter (see Oersted for CGS unit for H field)","T","T","1e-4",0.0001,false],[false,"Oersted","Oe","OE","magnetic field intensity",79.57747154594767,[-1,-1,0,0,0,1,0],"Oe","cgs",true,null,null,1,false,false,0,"H magnetic B field; Oersteds","UCUM","","Clinical","CGS unit of the auxiliary magnetic field H defined as 1 dyne per unit pole = 1000/4\u03c0 amperes per meter (see Gauss for CGS unit for B field)","A/m","/[PI].A/M","250",79.57747154594767,false],[false,"Gilbert","Gb","GB","magnetic tension",0.7957747154594768,[0,-1,0,0,0,1,0],"Gb","cgs",true,null,null,1,false,false,0,"Gi; magnetomotive force; Gilberts","UCUM","","Clinical","unit of magnetomotive force (magnetic potential)","Oe.cm","OE.CM","1",1,false],[false,"stilb","sb","SB","lum. intensity density",10000,[-2,0,0,0,0,0,1],"sb","cgs",true,null,null,1,false,false,0,"stilbs","UCUM","","Obsolete","unit of luminance; equal to and replaced by unit candela per square centimeter (cd/cm2)","cd/cm2","CD/CM2","1",1,false],[false,"Lambert","Lmb","LMB","brightness",3183.098861837907,[-2,0,0,0,0,0,1],"L","cgs",true,null,null,1,false,false,0,"luminance; lamberts","UCUM","","Clinical","unit of luminance defined as 1 lambert = 1/ \u03c0 candela per square meter","cd/cm2/[pi]","CD/CM2/[PI]","1",1,false],[false,"phot","ph","PHT","illuminance",0.0001,[-2,0,0,2,0,0,1],"ph","cgs",true,null,null,1,false,false,0,"phots","UCUM","","Clinical","CGS photometric unit of illuminance, or luminous flux through an area equal to 10000 lumens per square meter = 10000 lux","lx","LX","1e-4",0.0001,false],[false,"Curie","Ci","CI","radioactivity",37000000000,[0,-1,0,0,0,0,0],"Ci","cgs",true,null,null,1,false,false,0,"curies","UCUM","","Obsolete","unit for measuring atomic disintegration rate; replaced by the Bequerel (Bq) unit","Bq","BQ","37e9",37000000000,false],[false,"Roentgen","R","ROE","ion dose",2.58e-7,[0,0,-1,0,0,1,0],"R","cgs",true,null,null,1,false,false,0,"r\xf6ntgen; Roentgens","UCUM","","Clinical","unit of exposure of X-rays and gamma rays in air; unit used primarily in the US but strongly discouraged by NIST","C/kg","C/KG","2.58e-4",0.000258,false],[false,"radiation absorbed dose","RAD","[RAD]","energy dose",0.01,[2,-2,0,0,0,0,0],"RAD","cgs",true,null,null,1,false,false,0,"doses","UCUM","","Clinical","unit of radiation absorbed dose used primarily in the US with base units 100 ergs per gram of material. Also see the SI unit Gray (Gy).","erg/g","ERG/G","100",100,false],[false,"radiation equivalent man","REM","[REM]","dose equivalent",0.01,[2,-2,0,0,0,0,0],"REM","cgs",true,null,null,1,false,false,0,"Roentgen Equivalent in Man; rems; dose equivalents","UCUM","","Clinical","unit of equivalent dose which measures the effect of radiation on humans equal to 0.01 sievert. Used primarily in the US. Also see SI unit Sievert (Sv)","RAD","[RAD]","1",1,false],[false,"inch","[in_i]","[IN_I]","length",0.025400000000000002,[1,0,0,0,0,0,0],"in","intcust",false,null,null,1,false,false,0,"inches; in; international inch; body height","UCUM","Len","Clinical","standard unit for inch in the US and internationally","cm","CM","254e-2",2.54,false],[false,"foot","[ft_i]","[FT_I]","length",0.3048,[1,0,0,0,0,0,0],"ft","intcust",false,null,null,1,false,false,0,"ft; fts; foot; international foot; feet; international feet; height","UCUM","Len","Clinical","unit used in the US and internationally","[in_i]","[IN_I]","12",12,false],[false,"yard","[yd_i]","[YD_I]","length",0.9144000000000001,[1,0,0,0,0,0,0],"yd","intcust",false,null,null,1,false,false,0,"international yards; yds; distance","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","3",3,false],[false,"mile","[mi_i]","[MI_I]","length",1609.344,[1,0,0,0,0,0,0],"mi","intcust",false,null,null,1,false,false,0,"international miles; mi I; statute mile","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","5280",5280,false],[false,"fathom","[fth_i]","[FTH_I]","depth of water",1.8288000000000002,[1,0,0,0,0,0,0],"fth","intcust",false,null,null,1,false,false,0,"international fathoms","UCUM","Len","Nonclinical","unit used in the US and internationally to measure depth of water; same length as the US fathom","[ft_i]","[FT_I]","6",6,false],[false,"nautical mile","[nmi_i]","[NMI_I]","length",1852,[1,0,0,0,0,0,0],"n.mi","intcust",false,null,null,1,false,false,0,"nautical mile; nautical miles; international nautical mile; international nautical miles; nm; n.m.; nmi","UCUM","Len","Nonclinical","standard unit used in the US and internationally","m","M","1852",1852,false],[false,"knot","[kn_i]","[KN_I]","velocity",0.5144444444444445,[1,-1,0,0,0,0,0],"knot","intcust",false,null,null,1,false,false,0,"kn; kt; international knots","UCUM","Vel","Nonclinical","defined as equal to one nautical mile (1.852 km) per hour","[nmi_i]/h","[NMI_I]/H","1",1,false],[false,"square inch","[sin_i]","[SIN_I]","area",0.0006451600000000001,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in2; in^2; inches squared; sq inch; inches squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[in_i]2","[IN_I]2","1",1,false],[false,"square foot","[sft_i]","[SFT_I]","area",0.09290304,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft2; ft^2; ft squared; sq ft; feet; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[ft_i]2","[FT_I]2","1",1,false],[false,"square yard","[syd_i]","[SYD_I]","area",0.8361273600000002,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"yd2; yd^2; sq. yds; yards squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[yd_i]2","[YD_I]2","1",1,false],[false,"cubic inch","[cin_i]","[CIN_I]","volume",0.000016387064000000003,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in3; in^3; in*3; inches^3; inches*3; cu. in; cu in; cubic inches; inches cubed; cin","UCUM","Vol","Clinical","standard unit used in the US and internationally","[in_i]3","[IN_I]3","1",1,false],[false,"cubic foot","[cft_i]","[CFT_I]","volume",0.028316846592000004,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft3; ft^3; ft*3; cu. ft; cubic feet; cubed; [ft_i]3; international","UCUM","Vol","Clinical","","[ft_i]3","[FT_I]3","1",1,false],[false,"cubic yard","[cyd_i]","[CYD_I]","volume",0.7645548579840002,[3,0,0,0,0,0,0],"cu.yd","intcust",false,null,null,1,false,false,0,"cubic yards; cubic yds; cu yards; CYs; yards^3; yd^3; yds^3; yd3; yds3","UCUM","Vol","Nonclinical","standard unit used in the US and internationally","[yd_i]3","[YD_I]3","1",1,false],[false,"board foot","[bf_i]","[BF_I]","volume",0.002359737216,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"BDFT; FBM; BF; board feet; international","UCUM","Vol","Nonclinical","unit of volume used to measure lumber","[in_i]3","[IN_I]3","144",144,false],[false,"cord","[cr_i]","[CR_I]","volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"crd I; international cords","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3","[ft_i]3","[FT_I]3","128",128,false],[false,"mil","[mil_i]","[MIL_I]","length",0.000025400000000000004,[1,0,0,0,0,0,0],"mil","intcust",false,null,null,1,false,false,0,"thou, thousandth; mils; international","UCUM","Len","Clinical","equal to 0.001 international inch","[in_i]","[IN_I]","1e-3",0.001,false],[false,"circular mil","[cml_i]","[CML_I]","area",5.067074790974979e-10,[2,0,0,0,0,0,0],"circ.mil","intcust",false,null,null,1,false,false,0,"circular mils; cml I; international","UCUM","Area","Clinical","","[pi]/4.[mil_i]2","[PI]/4.[MIL_I]2","1",1,false],[false,"hand","[hd_i]","[HD_I]","height of horses",0.10160000000000001,[1,0,0,0,0,0,0],"hd","intcust",false,null,null,1,false,false,0,"hands; international","UCUM","Len","Nonclinical","used to measure horse height","[in_i]","[IN_I]","4",4,false],[false,"foot - US","[ft_us]","[FT_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],"ftus","us-lengths",false,null,null,1,false,false,0,"US foot; foot US; us ft; ft us; height; visual distance; feet","UCUM","Len","Obsolete","Better to use [ft_i] which refers to the length used worldwide, including in the US; [ft_us] may be confused with land survey units. ","m/3937","M/3937","1200",1200,false],[false,"yard - US","[yd_us]","[YD_US]","length",0.9144018288036575,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US yards; us yds; distance","UCUM","Len; Nrat","Obsolete","Better to use [yd_i] which refers to the length used worldwide, including in the US; [yd_us] refers to unit used in land surveys in the US","[ft_us]","[FT_US]","3",3,false],[false,"inch - US","[in_us]","[IN_US]","length",0.0254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US inches; in us; us in; inch US","UCUM","Len","Obsolete","Better to use [in_i] which refers to the length used worldwide, including in the US","[ft_us]/12","[FT_US]/12","1",1,false],[false,"rod - US","[rd_us]","[RD_US]","length",5.029210058420117,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US rod; US rods; rd US; US rd","UCUM","Len","Obsolete","","[ft_us]","[FT_US]","16.5",16.5,false],[false,"Gunter\'s chain - US","[ch_us]","[CH_US]","length",20.116840233680467,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"surveyor\'s chain; Surveyor\'s chain USA; Gunter\u2019s measurement; surveyor\u2019s measurement; Gunter\'s Chain USA","UCUM","Len","Obsolete","historical unit used for land survey used only in the US","[rd_us]","[RD_US]","4",4,false],[false,"link for Gunter\'s chain - US","[lk_us]","[LK_US]","length",0.20116840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Links for Gunter\'s Chain USA","UCUM","Len","Obsolete","","[ch_us]/100","[CH_US]/100","1",1,false],[false,"Ramden\'s chain - US","[rch_us]","[RCH_US]","length",30.480060960121918,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Ramsden\'s chain; engineer\'s chains","UCUM","Len","Obsolete","distance measuring device used for\xa0land survey","[ft_us]","[FT_US]","100",100,false],[false,"link for Ramden\'s chain - US","[rlk_us]","[RLK_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"links for Ramsden\'s chain","UCUM","Len","Obsolete","","[rch_us]/100","[RCH_US]/100","1",1,false],[false,"fathom - US","[fth_us]","[FTH_US]","length",1.828803657607315,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US fathoms; fathom USA; fth us","UCUM","Len","Obsolete","same length as the international fathom - better to use international fathom ([fth_i])","[ft_us]","[FT_US]","6",6,false],[false,"furlong - US","[fur_us]","[FUR_US]","length",201.16840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US furlongs; fur us","UCUM","Len","Nonclinical","distance unit in horse racing","[rd_us]","[RD_US]","40",40,false],[false,"mile - US","[mi_us]","[MI_US]","length",1609.3472186944373,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"U.S. Survey Miles; US statute miles; survey mi; US mi; distance","UCUM","Len","Nonclinical","Better to use [mi_i] which refers to the length used worldwide, including in the US","[fur_us]","[FUR_US]","8",8,false],[false,"acre - US","[acr_us]","[ACR_US]","area",4046.872609874252,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Acre USA Survey; Acre USA; survey acres","UCUM","Area","Nonclinical","an older unit based on pre 1959 US statute lengths that is still sometimes used in the US only for land survey purposes. ","[rd_us]2","[RD_US]2","160",160,false],[false,"square rod - US","[srd_us]","[SRD_US]","area",25.292953811714074,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"rod2; rod^2; sq. rod; rods squared","UCUM","Area","Nonclinical","Used only in the US to measure land area, based on US statute land survey length units","[rd_us]2","[RD_US]2","1",1,false],[false,"square mile - US","[smi_us]","[SMI_US]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"mi2; mi^2; sq mi; miles squared","UCUM","Area","Nonclinical","historical unit used only in the US for land survey purposes (based on the US survey mile), not the internationally recognized [mi_i]","[mi_us]2","[MI_US]2","1",1,false],[false,"section","[sct]","[SCT]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"sct; sections","UCUM","Area","Nonclinical","tract of land approximately equal to 1 mile square containing 640 acres","[mi_us]2","[MI_US]2","1",1,false],[false,"township","[twp]","[TWP]","area",93239944.93150276,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"twp; townships","UCUM","Area","Nonclinical","land measurement equal to 6 mile square","[sct]","[SCT]","36",36,false],[false,"mil - US","[mil_us]","[MIL_US]","length",0.0000254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"thou, thousandth; mils","UCUM","Len","Obsolete","better to use [mil_i] which is based on the internationally recognized inch","[in_us]","[IN_US]","1e-3",0.001,false],[false,"inch - British","[in_br]","[IN_BR]","length",0.025399980000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial inches; imp in; br in; british inches","UCUM","Len","Obsolete","","cm","CM","2.539998",2.539998,false],[false,"foot - British","[ft_br]","[FT_BR]","length",0.30479976000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British Foot; Imperial Foot; feet; imp fts; br fts","UCUM","Len","Obsolete","","[in_br]","[IN_BR]","12",12,false],[false,"rod - British","[rd_br]","[RD_BR]","length",5.02919604,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British rods; br rd","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","16.5",16.5,false],[false,"Gunter\'s chain - British","[ch_br]","[CH_BR]","length",20.11678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Gunter\'s Chain British; Gunters Chain British; Surveyor\'s Chain British","UCUM","Len","Obsolete","historical unit used for land survey used only in Great Britain","[rd_br]","[RD_BR]","4",4,false],[false,"link for Gunter\'s chain - British","[lk_br]","[LK_BR]","length",0.2011678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Links for Gunter\'s Chain British","UCUM","Len","Obsolete","","[ch_br]/100","[CH_BR]/100","1",1,false],[false,"fathom - British","[fth_br]","[FTH_BR]","length",1.82879856,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British fathoms; imperial fathoms; br fth; imp fth","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6",6,false],[false,"pace - British","[pc_br]","[PC_BR]","length",0.7619994000000001,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British paces; br pc","UCUM","Len","Nonclinical","traditional unit of length equal to 152.4 centimeters, or 1.52 meter. ","[ft_br]","[FT_BR]","2.5",2.5,false],[false,"yard - British","[yd_br]","[YD_BR]","length",0.91439928,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British yards; Br yds; distance","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","3",3,false],[false,"mile - British","[mi_br]","[MI_BR]","length",1609.3427328000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial miles; British miles; English statute miles; imp mi, br mi","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","5280",5280,false],[false,"nautical mile - British","[nmi_br]","[NMI_BR]","length",1853.1825408000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British nautical miles; Imperial nautical miles; Admiralty miles; n.m. br; imp nm","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6080",6080,false],[false,"knot - British","[kn_br]","[KN_BR]","velocity",0.5147729280000001,[1,-1,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British knots; kn br; kt","UCUM","Vel","Obsolete","based on obsolete British nautical mile ","[nmi_br]/h","[NMI_BR]/H","1",1,false],[false,"acre","[acr_br]","[ACR_BR]","area",4046.850049400269,[2,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Imperial acres; British; a; ac; ar; acr","UCUM","Area","Nonclinical","the standard unit for acre used in the US and internationally","[yd_br]2","[YD_BR]2","4840",4840,false],[false,"gallon - US","[gal_us]","[GAL_US]","fluid volume",0.0037854117840000006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gallons; US liquid gallon; gal us; Queen Anne\'s wine gallon","UCUM","Vol","Nonclinical","only gallon unit used in the US; [gal_us] is only used in some other countries in South American and Africa to measure gasoline volume","[in_i]3","[IN_I]3","231",231,false],[false,"barrel - US","[bbl_us]","[BBL_US]","fluid volume",0.158987294928,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"bbl","UCUM","Vol","Nonclinical","[bbl_us] is the standard unit for oil barrel, which is a unit only used in the US to measure the volume oil. ","[gal_us]","[GAL_US]","42",42,false],[false,"quart - US","[qt_us]","[QT_US]","fluid volume",0.0009463529460000001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US quarts; us qts","UCUM","Vol","Clinical","Used only in the US","[gal_us]/4","[GAL_US]/4","1",1,false],[false,"pint - US","[pt_us]","[PT_US]","fluid volume",0.00047317647300000007,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pints; pint US; liquid pint; pt us; us pt","UCUM","Vol","Clinical","Used only in the US","[qt_us]/2","[QT_US]/2","1",1,false],[false,"gill - US","[gil_us]","[GIL_US]","fluid volume",0.00011829411825000002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gills; gil us","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in the US","[pt_us]/4","[PT_US]/4","1",1,false],[false,"fluid ounce - US","[foz_us]","[FOZ_US]","fluid volume",0.000029573529562500005,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"US fluid ounces; fl ozs; FO; fl. oz.; foz us","UCUM","Vol","Clinical","unit used only in the US","[gil_us]/4","[GIL_US]/4","1",1,false],[false,"fluid dram - US","[fdr_us]","[FDR_US]","fluid volume",0.0000036966911953125006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US fluid drams; fdr us","UCUM","Vol","Nonclinical","equal to 1/8 US fluid ounce = 3.69 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_us]/8","[FOZ_US]/8","1",1,false],[false,"minim - US","[min_us]","[MIN_US]","fluid volume",6.1611519921875e-8,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"min US; US min; \u264f US","UCUM","Vol","Obsolete","","[fdr_us]/60","[FDR_US]/60","1",1,false],[false,"cord - US","[crd_us]","[CRD_US]","fluid volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US cord; US cords; crd us; us crd","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3 (the same as international cord [cr_i])","[ft_i]3","[FT_I]3","128",128,false],[false,"bushel - US","[bu_us]","[BU_US]","dry volume",0.03523907016688001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US bushels; US bsh; US bu","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[in_i]3","[IN_I]3","2150.42",2150.42,false],[false,"gallon - historical","[gal_wi]","[GAL_WI]","dry volume",0.004404883770860001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Corn Gallon British; Dry Gallon US; Gallons Historical; Grain Gallon British; Winchester Corn Gallon; historical winchester gallons; wi gal","UCUM","Vol","Obsolete","historical unit of dry volume no longer used","[bu_us]/8","[BU_US]/8","1",1,false],[false,"peck - US","[pk_us]","[PK_US]","dry volume",0.008809767541720002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pecks; US pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[bu_us]/4","[BU_US]/4","1",1,false],[false,"dry quart - US","[dqt_us]","[DQT_US]","dry volume",0.0011012209427150002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry quarts; dry quart US; US dry quart; dry qt; us dry qt; dqt; dqt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[pk_us]/8","[PK_US]/8","1",1,false],[false,"dry pint - US","[dpt_us]","[DPT_US]","dry volume",0.0005506104713575001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry pints; dry pint US; US dry pint; dry pt; dpt; dpt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[dqt_us]/2","[DQT_US]/2","1",1,false],[false,"tablespoon - US","[tbs_us]","[TBS_US]","volume",0.000014786764781250002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Tbs; tbsp; tbs us; US tablespoons","UCUM","Vol","Clinical","unit defined as 0.5 US fluid ounces or 3 teaspoons - used only in the US. See [tbs_m] for the unit used internationally and in the US for nutrional labelling. ","[foz_us]/2","[FOZ_US]/2","1",1,false],[false,"teaspoon - US","[tsp_us]","[TSP_US]","volume",0.0000049289215937500005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; US teaspoons","UCUM","Vol","Nonclinical","unit defined as 1/6 US fluid ounces - used only in the US. See [tsp_m] for the unit used internationally and in the US for nutrional labelling. ","[tbs_us]/3","[TBS_US]/3","1",1,false],[false,"cup - US customary","[cup_us]","[CUP_US]","volume",0.00023658823650000004,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup us; us cups","UCUM","Vol","Nonclinical","Unit defined as 1/2 US pint or 16 US tablespoons \u2248 236.59 mL, which is not the standard unit defined by the FDA of 240 mL - see [cup_m] (metric cup)","[tbs_us]","[TBS_US]","16",16,false],[false,"fluid ounce - metric","[foz_m]","[FOZ_M]","fluid volume",0.000029999999999999997,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"metric fluid ounces; fozs m; fl ozs m","UCUM","Vol","Clinical","unit used only in the US for nutritional labelling, as set by the FDA","mL","ML","30",30,false],[false,"cup - US legal","[cup_m]","[CUP_M]","volume",0.00023999999999999998,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup m; metric cups","UCUM","Vol","Clinical","standard unit equal to 240 mL used in the US for nutritional labelling, as defined by the FDA. Note that this is different from the US customary cup (236.59 mL) and the metric cup used in Commonwealth nations (250 mL).","mL","ML","240",240,false],[false,"teaspoon - metric","[tsp_m]","[TSP_M]","volume",0.0000049999999999999996,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; metric teaspoons","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","5",5,false],[false,"tablespoon - metric","[tbs_m]","[TBS_M]","volume",0.000014999999999999999,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"metric tablespoons; Tbs; tbsp; T; tbs m","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","15",15,false],[false,"gallon- British","[gal_br]","[GAL_BR]","volume",0.004546090000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gallons, UK gallons; British gallons; br gal; imp gal","UCUM","Vol","Nonclinical","Used only in Great Britain and other Commonwealth countries","l","L","4.54609",4.54609,false],[false,"peck - British","[pk_br]","[PK_BR]","volume",0.009092180000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial pecks; British pecks; br pk; imp pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[gal_br]","[GAL_BR]","2",2,false],[false,"bushel - British","[bu_br]","[BU_BR]","volume",0.03636872000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British bushels; imperial; br bsh; br bu; imp","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[pk_br]","[PK_BR]","4",4,false],[false,"quart - British","[qt_br]","[QT_BR]","volume",0.0011365225000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British quarts; imperial quarts; br qts","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gal_br]/4","[GAL_BR]/4","1",1,false],[false,"pint - British","[pt_br]","[PT_BR]","volume",0.0005682612500000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British pints; imperial pints; pt br; br pt; imp pt; pt imp","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[qt_br]/2","[QT_BR]/2","1",1,false],[false,"gill - British","[gil_br]","[GIL_BR]","volume",0.00014206531250000003,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gills; British gills; imp gill, br gill","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in Great Britain","[pt_br]/4","[PT_BR]/4","1",1,false],[false,"fluid ounce - British","[foz_br]","[FOZ_BR]","volume",0.000028413062500000005,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid ounces; Imperial fluid ounces; br fozs; imp fozs; br fl ozs","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gil_br]/5","[GIL_BR]/5","1",1,false],[false,"fluid dram - British","[fdr_br]","[FDR_BR]","volume",0.0000035516328125000006,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid drams; fdr br","UCUM","Vol","Nonclinical","equal to 1/8 Imperial fluid ounce = 3.55 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_br]/8","[FOZ_BR]/8","1",1,false],[false,"minim - British","[min_br]","[MIN_BR]","volume",5.919388020833334e-8,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"min br; br min; \u264f br","UCUM","Vol","Obsolete","","[fdr_br]/60","[FDR_BR]/60","1",1,false],[false,"grain","[gr]","[GR]","mass",0.06479891,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"gr; grains","UCUM","Mass","Nonclinical","an apothecary measure of mass rarely used today","mg","MG","64.79891",64.79891,false],[false,"pound","[lb_av]","[LB_AV]","mass",453.59237,[0,0,1,0,0,0,0],"lb","avoirdupois",false,null,null,1,false,false,0,"avoirdupois pounds, international pounds; av lbs; pounds","UCUM","Mass","Clinical","standard unit used in the US and internationally","[gr]","[GR]","7000",7000,false],[false,"pound force - US","[lbf_av]","[LBF_AV]","force",4448.2216152605,[1,-2,1,0,0,0,0],"lbf","const",false,null,null,1,false,false,0,"lbfs; US lbf; US pound forces","UCUM","Force","Clinical","only rarely needed in health care - see [lb_av] which is the more common unit to express weight","[lb_av].[g]","[LB_AV].[G]","1",1,false],[false,"ounce","[oz_av]","[OZ_AV]","mass",28.349523125,[0,0,1,0,0,0,0],"oz","avoirdupois",false,null,null,1,false,false,0,"ounces; international ounces; avoirdupois ounces; av ozs","UCUM","Mass","Clinical","standard unit used in the US and internationally","[lb_av]/16","[LB_AV]/16","1",1,false],[false,"Dram mass unit","[dr_av]","[DR_AV]","mass",1.7718451953125,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"Dram; drams avoirdupois; avoidupois dram; international dram","UCUM","Mass","Clinical","unit from the avoirdupois system, which is used in the US and internationally","[oz_av]/16","[OZ_AV]/16","1",1,false],[false,"short hundredweight","[scwt_av]","[SCWT_AV]","mass",45359.237,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"hundredweights; s cwt; scwt; avoirdupois","UCUM","Mass","Nonclinical","Used only in the US to equal 100 pounds","[lb_av]","[LB_AV]","100",100,false],[false,"long hundredweight","[lcwt_av]","[LCWT_AV]","mass",50802.345440000005,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial hundredweights; imp cwt; lcwt; avoirdupois","UCUM","Mass","Obsolete","","[lb_av]","[LB_AV]","112",112,false],[false,"short ton - US","[ston_av]","[STON_AV]","mass",907184.74,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"ton; US tons; avoirdupois tons","UCUM","Mass","Clinical","Used only in the US","[scwt_av]","[SCWT_AV]","20",20,false],[false,"long ton - British","[lton_av]","[LTON_AV]","mass",1016046.9088000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial tons; weight tons; British long tons; long ton avoirdupois","UCUM","Mass","Nonclinical","Used only in Great Britain and other Commonwealth countries","[lcwt_av]","[LCWT_AV]","20",20,false],[false,"stone - British","[stone_av]","[STONE_AV]","mass",6350.293180000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"British stones; avoirdupois","UCUM","Mass","Nonclinical","Used primarily in the UK and Ireland to measure body weight","[lb_av]","[LB_AV]","14",14,false],[false,"pennyweight - troy","[pwt_tr]","[PWT_TR]","mass",1.5551738400000001,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"dwt; denarius weights","UCUM","Mass","Obsolete","historical unit used to measure mass and cost of precious metals","[gr]","[GR]","24",24,false],[false,"ounce - troy","[oz_tr]","[OZ_TR]","mass",31.103476800000003,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy ounces; tr ozs","UCUM","Mass","Nonclinical","unit of mass for precious metals and gemstones only","[pwt_tr]","[PWT_TR]","20",20,false],[false,"pound - troy","[lb_tr]","[LB_TR]","mass",373.2417216,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy pounds; tr lbs","UCUM","Mass","Nonclinical","only used for weighing precious metals","[oz_tr]","[OZ_TR]","12",12,false],[false,"scruple","[sc_ap]","[SC_AP]","mass",1.2959782,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"scruples; sc ap","UCUM","Mass","Obsolete","","[gr]","[GR]","20",20,false],[false,"dram - apothecary","[dr_ap]","[DR_AP]","mass",3.8879346,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"\u0292; drachm; apothecaries drams; dr ap; dram ap","UCUM","Mass","Nonclinical","unit still used in the US occasionally to measure amount of drugs in pharmacies","[sc_ap]","[SC_AP]","3",3,false],[false,"ounce - apothecary","[oz_ap]","[OZ_AP]","mass",31.1034768,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary ounces; oz ap; ap ozs; ozs ap","UCUM","Mass","Obsolete","","[dr_ap]","[DR_AP]","8",8,false],[false,"pound - apothecary","[lb_ap]","[LB_AP]","mass",373.2417216,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary pounds; apothecaries pounds; ap lb; lb ap; ap lbs; lbs ap","UCUM","Mass","Obsolete","","[oz_ap]","[OZ_AP]","12",12,false],[false,"ounce - metric","[oz_m]","[OZ_M]","mass",28,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"metric ounces; m ozs","UCUM","Mass","Clinical","see [oz_av] (the avoirdupois ounce) for the standard ounce used internationally; [oz_m] is equal to 28 grams and is based on the apothecaries\' system of mass units which is used in some US pharmacies. ","g","g","28",28,false],[false,"line","[lne]","[LNE]","length",0.002116666666666667,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"British lines; br L; L; l","UCUM","Len","Obsolete","","[in_i]/12","[IN_I]/12","1",1,false],[false,"point (typography)","[pnt]","[PNT]","length",0.0003527777777777778,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"DTP points; desktop publishing point; pt; pnt","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[lne]/6","[LNE]/6","1",1,false],[false,"pica (typography)","[pca]","[PCA]","length",0.004233333333333334,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt]","[PNT]","12",12,false],[false,"Printer\'s point (typography)","[pnt_pr]","[PNT_PR]","length",0.00035145980000000004,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pnt pr","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[in_i]","[IN_I]","0.013837",0.013837,false],[false,"Printer\'s pica (typography)","[pca_pr]","[PCA_PR]","length",0.004217517600000001,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pca pr; Printer\'s picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt_pr]","[PNT_PR]","12",12,false],[false,"pied","[pied]","[PIED]","length",0.3248,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pieds du roi; Paris foot; royal; French; feet","UCUM","Len","Obsolete","","cm","CM","32.48",32.48,false],[false,"pouce","[pouce]","[POUCE]","length",0.027066666666666666,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"historical French inches; French royal inches","UCUM","Len","Obsolete","","[pied]/12","[PIED]/12","1",1,false],[false,"ligne","[ligne]","[LIGNE]","length",0.0022555555555555554,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Paris lines; lignes","UCUM","Len","Obsolete","","[pouce]/12","[POUCE]/12","1",1,false],[false,"didot","[didot]","[DIDOT]","length",0.0003759259259259259,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot point; dd; Didots Point; didots; points","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[ligne]/6","[LIGNE]/6","1",1,false],[false,"cicero","[cicero]","[CICERO]","length",0.004511111111111111,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot\'s pica; ciceros; picas","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[didot]","[DIDOT]","12",12,false],[false,"degrees Fahrenheit","[degF]","[DEGF]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"\xb0F","heat",false,null,"degF",1,true,false,0,"\xb0F; deg F","UCUM","Temp","Clinical","","K",null,null,0.5555555555555556,false],[false,"degrees Rankine","[degR]","[degR]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"\xb0R","heat",false,null,null,1,false,false,0,"\xb0R; \xb0Ra; Rankine","UCUM","Temp","Obsolete","Replaced by Kelvin","K/9","K/9","5",5,false],[false,"degrees R\xe9aumur","[degRe]","[degRe]","temperature",1.25,[0,0,0,0,1,0,0],"\xb0R\xe9","heat",false,null,"degRe",1,true,false,0,"\xb0R\xe9, \xb0Re, \xb0r; R\xe9aumur; degree Reaumur; Reaumur","UCUM","Temp","Obsolete","replaced by Celsius","K",null,null,1.25,false],[false,"calorie at 15\xb0C","cal_[15]","CAL_[15]","energy",4185.8,[2,-2,1,0,0,0,0],"cal15\xb0C","heat",true,null,null,1,false,false,0,"calorie 15 C; cals 15 C; calories at 15 C","UCUM","Enrg","Nonclinical","equal to 4.1855 joules; calorie most often used in engineering","J","J","4.18580",4.1858,false],[false,"calorie at 20\xb0C","cal_[20]","CAL_[20]","energy",4181.9,[2,-2,1,0,0,0,0],"cal20\xb0C","heat",true,null,null,1,false,false,0,"calorie 20 C; cal 20 C; calories at 20 C","UCUM","Enrg","Clinical","equal to 4.18190 joules. ","J","J","4.18190",4.1819,false],[false,"mean calorie","cal_m","CAL_M","energy",4190.0199999999995,[2,-2,1,0,0,0,0],"calm","heat",true,null,null,1,false,false,0,"mean cals; mean calories","UCUM","Enrg","Clinical","equal to 4.19002 joules. ","J","J","4.19002",4.19002,false],[false,"international table calorie","cal_IT","CAL_IT","energy",4186.8,[2,-2,1,0,0,0,0],"calIT","heat",true,null,null,1,false,false,0,"calories IT; IT cals; international steam table calories","UCUM","Enrg","Nonclinical","used in engineering steam tables and defined as 1/860 international watt-hour; equal to 4.1868 joules","J","J","4.1868",4.1868,false],[false,"thermochemical calorie","cal_th","CAL_TH","energy",4184,[2,-2,1,0,0,0,0],"calth","heat",true,null,null,1,false,false,0,"thermochemical calories; th cals","UCUM","Enrg","Clinical","equal to 4.184 joules; used as the unit in medicine and biochemistry (equal to cal)","J","J","4.184",4.184,false],[false,"calorie","cal","CAL","energy",4184,[2,-2,1,0,0,0,0],"cal","heat",true,null,null,1,false,false,0,"gram calories; small calories","UCUM","Enrg","Clinical","equal to 4.184 joules (the same value as the thermochemical calorie, which is the most common calorie used in medicine and biochemistry)","cal_th","CAL_TH","1",1,false],[false,"nutrition label Calories","[Cal]","[CAL]","energy",4184000,[2,-2,1,0,0,0,0],"Cal","heat",false,null,null,1,false,false,0,"food calories; Cal; kcal","UCUM","Eng","Clinical","","kcal_th","KCAL_TH","1",1,false],[false,"British thermal unit at 39\xb0F","[Btu_39]","[BTU_39]","energy",1059670,[2,-2,1,0,0,0,0],"Btu39\xb0F","heat",false,null,null,1,false,false,0,"BTU 39F; BTU 39 F; B.T.U. 39 F; B.Th.U. 39 F; BThU 39 F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05967 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05967",1.05967,false],[false,"British thermal unit at 59\xb0F","[Btu_59]","[BTU_59]","energy",1054800,[2,-2,1,0,0,0,0],"Btu59\xb0F","heat",false,null,null,1,false,false,0,"BTU 59 F; BTU 59F; B.T.U. 59 F; B.Th.U. 59 F; BThU 59F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05480 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05480",1.0548,false],[false,"British thermal unit at 60\xb0F","[Btu_60]","[BTU_60]","energy",1054680,[2,-2,1,0,0,0,0],"Btu60\xb0F","heat",false,null,null,1,false,false,0,"BTU 60 F; BTU 60F; B.T.U. 60 F; B.Th.U. 60 F; BThU 60 F; British thermal units 60 F","UCUM","Eng","Nonclinical","equal to 1.05468 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05468",1.05468,false],[false,"mean British thermal unit","[Btu_m]","[BTU_M]","energy",1055870,[2,-2,1,0,0,0,0],"Btum","heat",false,null,null,1,false,false,0,"BTU mean; B.T.U. mean; B.Th.U. mean; BThU mean; British thermal units mean; ","UCUM","Eng","Nonclinical","equal to 1.05587 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05587",1.05587,false],[false,"international table British thermal unit","[Btu_IT]","[BTU_IT]","energy",1055055.85262,[2,-2,1,0,0,0,0],"BtuIT","heat",false,null,null,1,false,false,0,"BTU IT; B.T.U. IT; B.Th.U. IT; BThU IT; British thermal units IT","UCUM","Eng","Nonclinical","equal to 1.055 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05505585262",1.05505585262,false],[false,"thermochemical British thermal unit","[Btu_th]","[BTU_TH]","energy",1054350,[2,-2,1,0,0,0,0],"Btuth","heat",false,null,null,1,false,false,0,"BTU Th; B.T.U. Th; B.Th.U. Th; BThU Th; thermochemical British thermal units","UCUM","Eng","Nonclinical","equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.054350",1.05435,false],[false,"British thermal unit","[Btu]","[BTU]","energy",1054350,[2,-2,1,0,0,0,0],"btu","heat",false,null,null,1,false,false,0,"BTU; B.T.U. ; B.Th.U.; BThU; British thermal units","UCUM","Eng","Nonclinical","equal to the thermochemical British thermal unit equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","[Btu_th]","[BTU_TH]","1",1,false],[false,"horsepower - mechanical","[HP]","[HP]","power",745699.8715822703,[2,-3,1,0,0,0,0],null,"heat",false,null,null,1,false,false,0,"imperial horsepowers","UCUM","EngRat","Nonclinical","refers to mechanical horsepower, which is unit used to measure engine power primarily in the US. ","[ft_i].[lbf_av]/s","[FT_I].[LBF_AV]/S","550",550,false],[false,"tex","tex","TEX","linear mass density (of textile thread)",0.001,[-1,0,1,0,0,0,0],"tex","heat",true,null,null,1,false,false,0,"linear mass density; texes","UCUM","","Clinical","unit of linear mass density for fibers equal to gram per 1000 meters","g/km","G/KM","1",1,false],[false,"Denier (linear mass density)","[den]","[DEN]","linear mass density (of textile thread)",0.0001111111111111111,[-1,0,1,0,0,0,0],"den","heat",false,null,null,1,false,false,0,"den; deniers","UCUM","","Nonclinical","equal to the mass in grams per 9000 meters of the fiber (1 denier = 1 strand of silk)","g/9/km","G/9/KM","1",1,false],[false,"meter of water column","m[H2O]","M[H2O]","pressure",9806650,[-1,-2,1,0,0,0,0],"m\xa0HO2","clinical",true,null,null,1,false,false,0,"mH2O; m H2O; meters of water column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"meter of mercury column","m[Hg]","M[HG]","pressure",133322000,[-1,-2,1,0,0,0,0],"m\xa0Hg","clinical",true,null,null,1,false,false,0,"mHg; m Hg; meters of mercury column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","133.3220",133.322,false],[false,"inch of water column","[in_i\'H2O]","[IN_I\'H2O]","pressure",249088.91000000003,[-1,-2,1,0,0,0,0],"in\xa0HO2","clinical",false,null,null,1,false,false,0,"inches WC; inAq; in H2O; inch of water gauge; iwg; pressure","UCUM","Pres","Clinical","unit of pressure, especially in respiratory and ventilation care","m[H2O].[in_i]/m","M[H2O].[IN_I]/M","1",1,false],[false,"inch of mercury column","[in_i\'Hg]","[IN_I\'HG]","pressure",3386378.8000000003,[-1,-2,1,0,0,0,0],"in\xa0Hg","clinical",false,null,null,1,false,false,0,"inHg; in Hg; pressure; inches","UCUM","Pres","Clinical","unit of pressure used in US to measure barometric pressure and occasionally blood pressure (see mm[Hg] for unit used internationally)","m[Hg].[in_i]/m","M[HG].[IN_I]/M","1",1,false],[false,"peripheral vascular resistance unit","[PRU]","[PRU]","fluid resistance",133322000000,[-4,-1,1,0,0,0,0],"P.R.U.","clinical",false,null,null,1,false,false,0,"peripheral vascular resistance units; peripheral resistance unit; peripheral resistance units; PRU","UCUM","FldResist","Clinical","used to assess blood flow in the capillaries; equal to 1 mmH.min/mL = 133.3 Pa\xb7min/mL","mm[Hg].s/ml","MM[HG].S/ML","1",1,false],[false,"Wood unit","[wood\'U]","[WOOD\'U]","fluid resistance",7999320000,[-4,-1,1,0,0,0,0],"Wood U.","clinical",false,null,null,1,false,false,0,"hybrid reference units; HRU; mmHg.min/L; vascular resistance","UCUM","Pres","Clinical","simplified unit of measurement for for measuring pulmonary vascular resistance that uses pressure; equal to mmHg.min/L","mm[Hg].min/L","MM[HG].MIN/L","1",1,false],[false,"diopter (lens)","[diop]","[DIOP]","refraction of a lens",1,[1,0,0,0,0,0,0],"dpt","clinical",false,null,"inv",1,false,false,0,"diopters; diop; dioptre; dpt; refractive power","UCUM","InvLen","Clinical","unit of optical power of lens represented by inverse meters (m^-1)","m","/M","1",1,false],[false,"prism diopter (magnifying power)","[p\'diop]","[P\'DIOP]","refraction of a prism",1,[0,0,0,1,0,0,0],"PD","clinical",false,null,"tanTimes100",1,true,false,0,"diopters; dioptres; p diops; pdiop; dpt; pdptr; \u0394; cm/m; centimeter per meter; centimetre; metre","UCUM","Angle","Clinical","unit for prism correction in eyeglass prescriptions","rad",null,null,1,false],[false,"percent of slope","%[slope]","%[SLOPE]","slope",0.017453292519943295,[0,0,0,1,0,0,0],"%","clinical",false,null,"100tan",1,true,false,0,"% slope; %slope; percents slopes","UCUM","VelFr; ElpotRatFr; VelRtoFr; AccelFr","Clinical","","deg",null,null,1,false],[false,"mesh","[mesh_i]","[MESH_I]","lineic number",0.025400000000000002,[1,0,0,0,0,0,0],null,"clinical",false,null,"inv",1,false,false,0,"meshes","UCUM","NLen (lineic number)","Clinical","traditional unit of length defined as the number of strands or particles per inch","[in_i]","/[IN_I]","1",1,false],[false,"French (catheter gauge) ","[Ch]","[CH]","gauge of catheters",0.0003333333333333333,[1,0,0,0,0,0,0],"Ch","clinical",false,null,null,1,false,false,0,"Charri\xe8res, French scales; French gauges; Fr, Fg, Ga, FR, Ch","UCUM","Len; Circ; Diam","Clinical","","mm/3","MM/3","1",1,false],[false,"drop - metric (1/20 mL)","[drp]","[DRP]","volume",5e-8,[3,0,0,0,0,0,0],"drp","clinical",false,null,null,1,false,false,0,"drop dosing units; metric drops; gtt","UCUM","Vol","Clinical","standard unit used in the US and internationally for clinical medicine but note that although [drp] is defined as 1/20 milliliter, in practice, drop sizes will vary due to external factors","ml/20","ML/20","1",1,false],[false,"Hounsfield unit","[hnsf\'U]","[HNSF\'U]","x-ray attenuation",1,[0,0,0,0,0,0,0],"HF","clinical",false,null,null,1,false,false,0,"HU; units","UCUM","","Clinical","used to measure X-ray attenuation, especially in CT scans.","1","1","1",1,false],[false,"Metabolic Equivalent of Task ","[MET]","[MET]","metabolic cost of physical activity",5.833333333333334e-11,[3,-1,-1,0,0,0,0],"MET","clinical",false,null,null,1,false,false,0,"metabolic equivalents","UCUM","RelEngRat","Clinical","unit used to measure rate of energy expenditure per power in treadmill and other functional tests","mL/min/kg","ML/MIN/KG","3.5",3.5,false],[false,"homeopathic potency of decimal series (retired)","[hp\'_X]","[HP\'_X]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,"hpX",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of centesimal series (retired)","[hp\'_C]","[HP\'_C]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,"hpC",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of millesimal series (retired)","[hp\'_M]","[HP\'_M]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,"hpM",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of quintamillesimal series (retired)","[hp\'_Q]","[HP\'_Q]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,"hpQ",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of decimal hahnemannian series","[hp_X]","[HP_X]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal hahnemannian series","[hp_C]","[HP_C]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal hahnemannian series","[hp_M]","[HP_M]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal hahnemannian series","[hp_Q]","[HP_Q]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of decimal korsakovian series","[kp_X]","[KP_X]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal korsakovian series","[kp_C]","[KP_C]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal korsakovian series","[kp_M]","[KP_M]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal korsakovian series","[kp_Q]","[KP_Q]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"equivalent","eq","EQ","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"eq","chemical",true,null,null,1,false,false,1,"equivalents","UCUM","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"osmole","osm","OSM","amount of substance (dissolved particles)",6.0221367e+23,[0,0,0,0,0,0,0],"osm","chemical",true,null,null,1,false,false,1,"osmoles; osmols","UCUM","Osmol","Clinical","the number of moles of solute that contribute to the osmotic pressure of a solution","mol","MOL","1",1,false],[false,"pH","[pH]","[PH]","acidity",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"pH","chemical",false,null,"pH",1,true,false,0,"pH scale","UCUM","LogCnc","Clinical","Log concentration of H+","mol/l",null,null,1,false],[false,"gram percent","g%","G%","mass concentration",10000,[-3,0,1,0,0,0,0],"g%","chemical",true,null,null,1,false,false,0,"gram %; gram%; grams per deciliter; g/dL; gm per dL; gram percents","UCUM","MCnc","Clinical","equivalent to unit gram per deciliter (g/dL), a unit often used in medical tests to represent solution concentrations","g/dl","G/DL","1",1,false],[false,"Svedberg unit","[S]","[S]","sedimentation coefficient",1e-13,[0,1,0,0,0,0,0],"S","chemical",false,null,null,1,false,false,0,"Sv; 10^-13 seconds; 100 fs; 100 femtoseconds","UCUM","Time","Clinical","unit of time used in measuring particle\'s sedimentation rate, usually after centrifugation. ","s","10*-13.S","1",1e-13,false],[false,"high power field (microscope)","[HPF]","[HPF]","view area in microscope",1,[0,0,0,0,0,0,0],"HPF","chemical",false,null,null,1,false,false,0,"HPF","UCUM","Area","Clinical","area visible under the maximum magnification power of the objective in microscopy (usually 400x)\\n","1","1","1",1,false],[false,"low power field (microscope)","[LPF]","[LPF]","view area in microscope",1,[0,0,0,0,0,0,0],"LPF","chemical",false,null,null,1,false,false,0,"LPF; fields","UCUM","Area","Clinical","area visible under the low magnification of the objective in microscopy (usually 100 x)\\n","1","1","100",100,false],[false,"katal","kat","KAT","catalytic activity",6.0221367e+23,[0,-1,0,0,0,0,0],"kat","chemical",true,null,null,1,false,false,1,"mol/secs; moles per second; mol*sec-1; mol*s-1; mol.s-1; katals; catalytic activity; enzymatic; enzyme units; activities","UCUM","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"enzyme unit","U","U","catalytic activity",10036894500000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"micromoles per minute; umol/min; umol per minute; umol min-1; enzymatic activity; enzyme activity","UCUM","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"international unit - arbitrary","[iU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"IU","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","1",1,false],[false,"international unit - arbitrary","[IU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"i.U.","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"arbitary unit","[arb\'U]","[ARB\'U]","arbitrary",1,[0,0,0,0,0,0,0],"arb. U","chemical",false,null,null,1,false,true,0,"arbitary units; arb units; arbU","UCUM","Arb","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"United States Pharmacopeia unit","[USP\'U]","[USP\'U]","arbitrary",1,[0,0,0,0,0,0,0],"U.S.P.","chemical",false,null,null,1,false,true,0,"USP U; USP\'U","UCUM","Arb","Clinical","a dose unit to express potency of drugs and vitamins defined by the United States Pharmacopoeia; usually 1 USP = 1 IU","1","1","1",1,false],[false,"GPL unit","[GPL\'U]","[GPL\'U]","biologic activity of anticardiolipin IgG",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"GPL Units; GPL U; IgG anticardiolipin units; IgG Phospholipid","UCUM","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"MPL unit","[MPL\'U]","[MPL\'U]","biologic activity of anticardiolipin IgM",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"MPL units; MPL U; MPL\'U; IgM anticardiolipin units; IgM Phospholipid Units ","UCUM","ACnc","Clinical","units for antiphospholipid test","1","1","1",1,false],[false,"APL unit","[APL\'U]","[APL\'U]","biologic activity of anticardiolipin IgA",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"APL units; APL U; IgA anticardiolipin; IgA Phospholipid; biologic activity of","UCUM","AMass; ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"Bethesda unit","[beth\'U]","[BETH\'U]","biologic activity of factor VIII inhibitor",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"BU","UCUM","ACnc","Clinical","measures of blood coagulation inhibitior for many blood factors","1","1","1",1,false],[false,"anti factor Xa unit","[anti\'Xa\'U]","[ANTI\'XA\'U]","biologic activity of factor Xa inhibitor (heparin)",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","ACnc","Clinical","[anti\'Xa\'U] unit is equivalent to and can be converted to IU/mL. ","1","1","1",1,false],[false,"Todd unit","[todd\'U]","[TODD\'U]","biologic activity antistreptolysin O",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","InvThres; RtoThres","Clinical","the unit for the results of the testing for antistreptolysin O (ASO)","1","1","1",1,false],[false,"Dye unit","[dye\'U]","[DYE\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","CCnc","Obsolete","equivalent to the Somogyi unit, which is an enzyme unit for amylase but better to use U, the standard enzyme unit for measuring catalytic activity","1","1","1",1,false],[false,"Somogyi unit","[smgy\'U]","[SMGY\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Somogyi units; smgy U","UCUM","CAct","Clinical","measures the enzymatic activity of amylase in blood serum - better to use base units mg/mL ","1","1","1",1,false],[false,"Bodansky unit","[bdsk\'U]","[BDSK\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"","UCUM","ACnc","Obsolete","Enzyme unit specific to alkaline phosphatase - better to use standard enzyme unit of U","1","1","1",1,false],[false,"King-Armstrong unit","[ka\'U]","[KA\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"King-Armstrong Units; King units","UCUM","AMass","Obsolete","enzyme units for acid phosphatase - better to use enzyme unit [U]","1","1","1",1,false],[false,"Kunkel unit","[knk\'U]","[KNK\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"Mac Lagan unit","[mclg\'U]","[MCLG\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"galactose index; galactose tolerance test; thymol turbidity test unit; mclg U; units; indexes","UCUM","ACnc","Obsolete","unit for liver tests - previously used in thymol turbidity tests for liver disease diagnoses, and now is sometimes referred to in the oral galactose tolerance test","1","1","1",1,false],[false,"tuberculin unit","[tb\'U]","[TB\'U]","biologic activity of tuberculin",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"TU; units","UCUM","Arb","Clinical","amount of tuberculin antigen -usually in reference to a TB skin test ","1","1","1",1,false],[false,"50% cell culture infectious dose","[CCID_50]","[CCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"CCID50","chemical",false,null,null,1,false,true,0,"CCID50; 50% cell culture infective doses","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% tissue culture infectious dose","[TCID_50]","[TCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"TCID50","chemical",false,null,null,1,false,true,0,"TCID50; 50% tissue culture infective dose","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% embryo infectious dose","[EID_50]","[EID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"EID50","chemical",false,null,null,1,false,true,0,"EID50; 50% embryo infective doses; EID50 Egg Infective Dosage","UCUM","thresNum","Clinical","","1","1","1",1,false],[false,"plaque forming units","[PFU]","[PFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"PFU","chemical",false,null,null,1,false,true,0,"PFU","UCUM","ACnc","Clinical","tests usually report unit as number of PFU per unit volume","1","1","1",1,false],[false,"focus forming units (cells)","[FFU]","[FFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"FFU","chemical",false,null,null,1,false,true,0,"FFU","UCUM","EntNum","Clinical","","1","1","1",1,false],[false,"colony forming units","[CFU]","[CFU]","amount of a proliferating organism",1,[0,0,0,0,0,0,0],"CFU","chemical",false,null,null,1,false,true,0,"CFU","UCUM","Num","Clinical","","1","1","1",1,false],[false,"index of reactivity (allergen)","[IR]","[IR]","amount of an allergen callibrated through in-vivo testing using the Stallergenes\xae method.",1,[0,0,0,0,0,0,0],"IR","chemical",false,null,null,1,false,true,0,"IR; indexes","UCUM","Acnc","Clinical","amount of an allergen callibrated through in-vivo testing using the Stallergenes method. Usually reported in tests as IR/mL","1","1","1",1,false],[false,"bioequivalent allergen unit","[BAU]","[BAU]","amount of an allergen callibrated through in-vivo testing based on the ID50EAL method of (intradermal dilution for 50mm sum of erythema diameters",1,[0,0,0,0,0,0,0],"BAU","chemical",false,null,null,1,false,true,0,"BAU; Bioequivalent Allergy Units; bioequivalent allergen units","UCUM","Arb","Clinical","","1","1","1",1,false],[false,"allergy unit","[AU]","[AU]","procedure defined amount of an allergen using some reference standard",1,[0,0,0,0,0,0,0],"AU","chemical",false,null,null,1,false,true,0,"allergy units; allergen units; AU","UCUM","Arb","Clinical","Most standard test allergy units are reported as [IU] or as %. ","1","1","1",1,false],[false,"allergen unit for Ambrosia artemisiifolia","[Amb\'a\'1\'U]","[AMB\'A\'1\'U]","procedure defined amount of the major allergen of ragweed.",1,[0,0,0,0,0,0,0],"Amb a 1 U","chemical",false,null,null,1,false,true,0,"Amb a 1 unit; Antigen E; AgE U; allergen units","UCUM","Arb","Clinical","Amb a 1 is the major allergen in short ragweed, and can be converted Bioequivalent allergen units (BAU) where 350 Amb a 1 U/mL = 100,000 BAU/mL","1","1","1",1,false],[false,"protein nitrogen unit (allergen testing)","[PNU]","[PNU]","procedure defined amount of a protein substance",1,[0,0,0,0,0,0,0],"PNU","chemical",false,null,null,1,false,true,0,"protein nitrogen units; PNU","UCUM","Mass","Clinical","defined as 0.01 ug of phosphotungstic acid-precipitable protein nitrogen. Being replaced by bioequivalent allergy units (BAU).","1","1","1",1,false],[false,"Limit of flocculation","[Lf]","[LF]","procedure defined amount of an antigen substance",1,[0,0,0,0,0,0,0],"Lf","chemical",false,null,null,1,false,true,0,"Lf doses","UCUM","Arb","Clinical","the antigen content forming 1:1 ratio against 1 unit of antitoxin","1","1","1",1,false],[false,"D-antigen unit (polio)","[D\'ag\'U]","[D\'AG\'U]","procedure defined amount of a poliomyelitis d-antigen substance",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"DAgU; units","UCUM","Acnc","Clinical","unit of potency of poliovirus vaccine used for poliomyelitis prevention reported as D antigen units/mL. The unit is poliovirus type-specific.","1","1","1",1,false],[false,"fibrinogen equivalent units","[FEU]","[FEU]","amount of fibrinogen broken down into the measured d-dimers",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"FEU","UCUM","MCnc","Clinical","Note both the FEU and DDU units are used to report D-dimer measurements. 1 DDU = 1/2 FFU","1","1","1",1,false],[false,"ELISA unit","[ELU]","[ELU]","arbitrary ELISA unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Enzyme-Linked Immunosorbent Assay Units; ELU; EL. U","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"Ehrlich units (urobilinogen)","[EU]","[EU]","Ehrlich unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"EU/dL; mg{urobilinogen}/dL","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"neper","Np","NEP","level",1,[0,0,0,0,0,0,0],"Np","levels",true,null,"ln",1,true,false,0,"nepers","UCUM","LogRto","Clinical","logarithmic unit for ratios of measurements of physical field and power quantities, such as gain and loss of electronic signals","1",null,null,1,false],[false,"bel","B","B","level",1,[0,0,0,0,0,0,0],"B","levels",true,null,"lg",1,true,false,0,"bels","UCUM","LogRto","Clinical","Logarithm of the ratio of power- or field-type quantities; usually expressed in decibels ","1",null,null,1,false],[false,"bel sound pressure","B[SPL]","B[SPL]","pressure level",0.02,[-1,-2,1,0,0,0,0],"B(SPL)","levels",true,null,"lgTimes2",1,true,false,0,"bel SPL; B SPL; sound pressure bels","UCUM","LogRto","Clinical","used to measure sound level in acoustics","Pa",null,null,0.00002,false],[false,"bel volt","B[V]","B[V]","electric potential level",1000,[2,-2,1,0,0,-1,0],"B(V)","levels",true,null,"lgTimes2",1,true,false,0,"bel V; B V; volts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","V",null,null,1,false],[false,"bel millivolt","B[mV]","B[MV]","electric potential level",1,[2,-2,1,0,0,-1,0],"B(mV)","levels",true,null,"lgTimes2",1,true,false,0,"bel mV; B mV; millivolt bels; 10^-3V bels; 10*-3V ","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","mV",null,null,1,false],[false,"bel microvolt","B[uV]","B[UV]","electric potential level",0.001,[2,-2,1,0,0,-1,0],"B(\u03bcV)","levels",true,null,"lgTimes2",1,true,false,0,"bel uV; B uV; microvolts bels; 10^-6V bel; 10*-6V bel","UCUM","LogRto","Clinical","used to express power gain in electrical circuits","uV",null,null,1,false],[false,"bel 10 nanovolt","B[10.nV]","B[10.NV]","electric potential level",0.000010000000000000003,[2,-2,1,0,0,-1,0],"B(10 nV)","levels",true,null,"lgTimes2",1,true,false,0,"bel 10 nV; B 10 nV; 10 nanovolts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","nV",null,null,10,false],[false,"bel watt","B[W]","B[W]","power level",1000,[2,-3,1,0,0,0,0],"B(W)","levels",true,null,"lg",1,true,false,0,"bel W; b W; b Watt; Watts bels","UCUM","LogRto","Clinical","used to express power","W",null,null,1,false],[false,"bel kilowatt","B[kW]","B[KW]","power level",1000000,[2,-3,1,0,0,0,0],"B(kW)","levels",true,null,"lg",1,true,false,0,"bel kW; B kW; kilowatt bel; kW bel; kW B","UCUM","LogRto","Clinical","used to express power","kW",null,null,1,false],[false,"stere","st","STR","volume",1,[3,0,0,0,0,0,0],"st","misc",true,null,null,1,false,false,0,"st\xe8re; m3; cubic meter; m^3; meters cubed; metre","UCUM","Vol","Nonclinical","equal to one cubic meter, usually used for measuring firewoord","m3","M3","1",1,false],[false,"\xc5ngstr\xf6m","Ao","AO","length",1.0000000000000002e-10,[1,0,0,0,0,0,0],"\xc5","misc",false,null,null,1,false,false,0,"\xc5; Angstroms; Ao; \xc5ngstr\xf6ms","UCUM","Len","Clinical","equal to 10^-10 meters; used to express wave lengths and atom scaled differences ","nm","NM","0.1",0.1,false],[false,"barn","b","BRN","action area",9.999999999999999e-29,[2,0,0,0,0,0,0],"b","misc",false,null,null,1,false,false,0,"barns","UCUM","Area","Clinical","used in high-energy physics to express cross-sectional areas","fm2","FM2","100",100,false],[false,"technical atmosphere","att","ATT","pressure",98066499.99999999,[-1,-2,1,0,0,0,0],"at","misc",false,null,null,1,false,false,0,"at; tech atm; tech atmosphere; kgf/cm2; atms; atmospheres","UCUM","Pres","Obsolete","non-SI unit of pressure equal to one kilogram-force per square centimeter","kgf/cm2","KGF/CM2","1",1,false],[false,"mho","mho","MHO","electric conductance",0.001,[-2,1,-1,0,0,2,0],"mho","misc",true,null,null,1,false,false,0,"siemens; ohm reciprocals; \u03a9^\u22121; \u03a9-1 ","UCUM","","Obsolete","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","S","S","1",1,false],[false,"pound per square inch","[psi]","[PSI]","pressure",6894757.293168359,[-1,-2,1,0,0,0,0],"psi","misc",false,null,null,1,false,false,0,"psi; lb/in2; lb per in2","UCUM","Pres","Clinical","","[lbf_av]/[in_i]2","[LBF_AV]/[IN_I]2","1",1,false],[false,"circle - plane angle","circ","CIRC","plane angle",6.283185307179586,[0,0,0,1,0,0,0],"circ","misc",false,null,null,1,false,false,0,"angles; circles","UCUM","Angle","Clinical","","[pi].rad","[PI].RAD","2",2,false],[false,"spere - solid angle","sph","SPH","solid angle",12.566370614359172,[0,0,0,2,0,0,0],"sph","misc",false,null,null,1,false,false,0,"speres","UCUM","Angle","Clinical","equal to the solid angle of an entire sphere = 4\u03c0sr (sr = steradian) ","[pi].sr","[PI].SR","4",4,false],[false,"metric carat","[car_m]","[CAR_M]","mass",0.2,[0,0,1,0,0,0,0],"ctm","misc",false,null,null,1,false,false,0,"carats; ct; car m","UCUM","Mass","Nonclinical","unit of mass for gemstones","g","G","2e-1",0.2,false],[false,"carat of gold alloys","[car_Au]","[CAR_AU]","mass fraction",0.041666666666666664,[0,0,0,0,0,0,0],"ctAu","misc",false,null,null,1,false,false,0,"karats; k; kt; car au; carats","UCUM","MFr","Nonclinical","unit of purity for gold alloys","/24","/24","1",1,false],[false,"Smoot","[smoot]","[SMOOT]","length",1.7018000000000002,[1,0,0,0,0,0,0],null,"misc",false,null,null,1,false,false,0,"","UCUM","Len","Nonclinical","prank unit of length from MIT","[in_i]","[IN_I]","67",67,false],[false,"meter per square seconds per square root of hertz","[m/s2/Hz^(1/2)]","[M/S2/HZ^(1/2)]","amplitude spectral density",1,[2,-3,0,0,0,0,0],null,"misc",false,null,"sqrt",1,true,false,0,"m/s2/(Hz^.5); m/s2/(Hz^(1/2)); m per s2 per Hz^1/2","UCUM","","Constant","measures amplitude spectral density, and is equal to the square root of power spectral density\\n ","m2/s4/Hz",null,null,1,false],[false,"bit - logarithmic","bit_s","BIT_S","amount of information",1,[0,0,0,0,0,0,0],"bits","infotech",false,null,"ld",1,true,false,0,"bit-s; bit s; bit logarithmic","UCUM","LogA","Nonclinical","defined as the log base 2 of the number of distinct signals; cannot practically be used to express more than 1000 bits\\n\\nIn information theory, the definition of the amount of self-information and information entropy is often expressed with the binary logarithm (log base 2)","1",null,null,1,false],[false,"bit","bit","BIT","amount of information",1,[0,0,0,0,0,0,0],"bit","infotech",true,null,null,1,false,false,0,"bits","UCUM","","Nonclinical","dimensionless information unit of 1 used in computing and digital communications","1","1","1",1,false],[false,"byte","By","BY","amount of information",8,[0,0,0,0,0,0,0],"B","infotech",true,null,null,1,false,false,0,"bytes","UCUM","","Nonclinical","equal to 8 bits","bit","bit","8",8,false],[false,"baud","Bd","BD","signal transmission rate",1,[0,1,0,0,0,0,0],"Bd","infotech",true,null,"inv",1,false,false,0,"Bd; bauds","UCUM","Freq","Nonclinical","unit to express rate in symbols per second or pulses per second. ","s","/s","1",1,false],[false,"per twelve hour","/(12.h)","/HR","",0.000023148148148148147,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"per 12 hours; 12hrs; 12 hrs; /12hrs","LOINC","Rat","Clinical","",null,null,null,null,false],[false,"per arbitrary unit","/[arb\'U]","/[ARB\'U]","",1,[0,0,0,0,0,0,0],"/arb/ U",null,false,null,null,1,false,true,0,"/arbU","LOINC","InvA ","Clinical","",null,null,null,null,false],[false,"per high power field","/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"/HPF; per HPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per international unit","/[IU]","/[IU]","",1,[0,0,0,0,0,0,0],"/i/U.",null,false,null,null,1,false,true,0,"international units; /IU; per IU","LOINC","InvA","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)",null,null,null,null,false],[false,"per low power field","/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"/LPF; per LPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per 10 billion ","/10*10","/10*10","",1e-10,[0,0,0,0,0,0,0],"/1010<.sup>",null,false,null,null,1,false,false,0,"/10^10; per 10*10","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per trillion ","/10*12","/10*12","",1e-12,[0,0,0,0,0,0,0],"/1012<.sup>",null,false,null,null,1,false,false,0,"/10^12; per 10*12","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per thousand","/10*3","/10*3","",0.001,[0,0,0,0,0,0,0],"/103<.sup>",null,false,null,null,1,false,false,0,"/10^3; per 10*3","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per million","/10*6","/10*6","",0.000001,[0,0,0,0,0,0,0],"/106<.sup>",null,false,null,null,1,false,false,0,"/10^6; per 10*6;","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per billion","/10*9","/10*9","",1e-9,[0,0,0,0,0,0,0],"/109<.sup>",null,false,null,null,1,false,false,0,"/10^9; per 10*9","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100","/100","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"per hundred; 10^2; 10*2","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100 cells","/100{cells}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 cells; /100cells; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 neutrophils","/100{neutrophils}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 neutrophils; /100neutrophils; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 spermatozoa","/100{spermatozoa}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 spermatozoa; /100spermatozoa; per hundred","LOINC","NFr","Clinical","",null,null,null,null,false],[false,"per 100 white blood cells","/100{WBCs}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 WBCs; /100WBCs; per hundred","LOINC","Ratio; NFr","Clinical","",null,null,null,null,false],[false,"per year","/a","/ANN","",3.168808781402895e-8,[0,-1,0,0,0,0,0],"/a",null,false,null,null,1,false,false,0,"/Years; /yrs; yearly","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per centimeter of water","/cm[H2O]","/CM[H2O]","",0.000010197162129779282,[1,2,-1,0,0,0,0],"/cm\xa0HO2<.r>",null,false,null,null,1,false,false,0,"/cmH2O; /cm H2O; centimeters; centimetres","LOINC","InvPress","Clinical","",null,null,null,null,false],[false,"per day","/d","/D","",0.000011574074074074073,[0,-1,0,0,0,0,0],"/d",null,false,null,null,1,false,false,0,"/dy; per day","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per deciliter","/dL","/DL","",10000,[-3,0,0,0,0,0,0],"/dL",null,false,null,null,1,false,false,0,"per dL; /deciliter; decilitre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per gram","/g","/G","",1,[0,0,-1,0,0,0,0],"/g",null,false,null,null,1,false,false,0,"/gm; /gram; per g","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per hour","/h","/HR","",0.0002777777777777778,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"/hr; /hour; per hr","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per kilogram","/kg","/KG","",0.001,[0,0,-1,0,0,0,0],"/kg",null,false,null,null,1,false,false,0,"per kg; per kilogram","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per liter","/L","/L","",1000,[-3,0,0,0,0,0,0],"/L",null,false,null,null,1,false,false,0,"/liter; litre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per square meter","/m2","/M2","",1,[-2,0,0,0,0,0,0],"/m2<.sup>",null,false,null,null,1,false,false,0,"/m^2; /m*2; /sq. m; per square meter; meter squared; metre","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per cubic meter","/m3","/M3","",1,[-3,0,0,0,0,0,0],"/m3<.sup>",null,false,null,null,1,false,false,0,"/m^3; /m*3; /cu. m; per cubic meter; meter cubed; per m3; metre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per milligram","/mg","/MG","",1000,[0,0,-1,0,0,0,0],"/mg",null,false,null,null,1,false,false,0,"/milligram; per mg","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per minute","/min","/MIN","",0.016666666666666666,[0,-1,0,0,0,0,0],"/min",null,false,null,null,1,false,false,0,"/minute; per mins; breaths beats per minute","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per milliliter","/mL","/ML","",1000000,[-3,0,0,0,0,0,0],"/mL",null,false,null,null,1,false,false,0,"/milliliter; per mL; millilitre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per millimeter","/mm","/MM","",1000,[-1,0,0,0,0,0,0],"/mm",null,false,null,null,1,false,false,0,"/millimeter; per mm; millimetre","LOINC","InvLen","Clinical","",null,null,null,null,false],[false,"per month","/mo","/MO","",3.802570537683474e-7,[0,-1,0,0,0,0,0],"/mo",null,false,null,null,1,false,false,0,"/month; per mo; monthly; month","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per second","/s","/S","",1,[0,-1,0,0,0,0,0],"/s",null,false,null,null,1,false,false,0,"/second; /sec; per sec; frequency; Hertz; Herz; Hz; becquerels; Bq; s-1; s^-1","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per enzyme unit","/U","/U","",9.963241120049633e-17,[0,1,0,0,0,0,0],"/U",null,false,null,null,1,false,false,-1,"/enzyme units; per U","LOINC","InvC; NCat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"per microliter","/uL","/UL","",999999999.9999999,[-3,0,0,0,0,0,0],"/\u03bcL",null,false,null,null,1,false,false,0,"/microliter; microlitre; /mcl; per uL","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"per week","/wk","/WK","",0.0000016534391534391535,[0,-1,0,0,0,0,0],"/wk",null,false,null,null,1,false,false,0,"/week; per wk; weekly, weeks","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"APL unit per milliliter","[APL\'U]/mL","[APL\'U]/ML","biologic activity of anticardiolipin IgA",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"APL/mL; APL\'U/mL; APL U/mL; APL/milliliter; IgA anticardiolipin units per milliliter; IgA Phospholipid Units; millilitre; biologic activity of","LOINC","ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"arbitrary unit per milliliter","[arb\'U]/mL","[ARB\'U]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(arb. U)/mL","chemical",false,null,null,1,false,true,0,"arb\'U/mL; arbU/mL; arb U/mL; arbitrary units per milliliter; millilitre","LOINC","ACnc","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"colony forming units per liter","[CFU]/L","[CFU]/L","amount of a proliferating organism",1000,[-3,0,0,0,0,0,0],"CFU/L","chemical",false,null,null,1,false,true,0,"CFU per Liter; CFU/L","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"colony forming units per milliliter","[CFU]/mL","[CFU]/ML","amount of a proliferating organism",1000000,[-3,0,0,0,0,0,0],"CFU/mL","chemical",false,null,null,1,false,true,0,"CFU per mL; CFU/mL","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"foot per foot - US","[ft_us]/[ft_us]","[FT_US]/[FT_US]","length",1,[0,0,0,0,0,0,0],"(ftus)/(ftus)","us-lengths",false,null,null,1,false,false,0,"ft/ft; ft per ft; feet per feet; visual acuity","","LenRto","Clinical","distance ratio to measure 20:20 vision","m/3937","M/3937","1200",1200,false],[false,"GPL unit per milliliter","[GPL\'U]/mL","[GPL\'U]/ML","biologic activity of anticardiolipin IgG",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"GPL U/mL; GPL\'U/mL; GPL/mL; GPL U per mL; IgG Phospholipid Units per milliliters; IgG anticardiolipin units; millilitres ","LOINC","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"international unit per 2 hour","[IU]/(2.h)","[IU]/HR","arbitrary",0.0001388888888888889,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/2hrs; IU/2 hours; IU per 2 hrs; international units per 2 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per 24 hour","[IU]/(24.h)","[IU]/HR","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/24hr; IU/24 hours; IU per 24 hrs; international units per 24 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per day","[IU]/d","[IU]/D","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/d","chemical",true,null,null,1,false,true,0,"IU/dy; IU/days; IU per dys; international units per day","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per deciliter","[IU]/dL","[IU]/DL","arbitrary",10000,[-3,0,0,0,0,0,0],"(i.U.)/dL","chemical",true,null,null,1,false,true,0,"IU/dL; IU per dL; international units per deciliters; decilitres","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per gram","[IU]/g","[IU]/G","arbitrary",1,[0,0,-1,0,0,0,0],"(i.U.)/g","chemical",true,null,null,1,false,true,0,"IU/gm; IU/gram; IU per gm; IU per g; international units per gram","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per hour","[IU]/h","[IU]/HR","arbitrary",0.0002777777777777778,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/hrs; IU per hours; international units per hour","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram","[IU]/kg","[IU]/KG","arbitrary",0.001,[0,0,-1,0,0,0,0],"(i.U.)/kg","chemical",true,null,null,1,false,true,0,"IU/kg; IU/kilogram; IU per kg; units","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram per day","[IU]/kg/d","[IU]/KG/D","arbitrary",1.1574074074074074e-8,[0,-1,-1,0,0,0,0],"(i.U.)/kg/d","chemical",true,null,null,1,false,true,0,"IU/kg/dy; IU/kg/day; IU/kilogram/day; IU per kg per day; units","LOINC","ACntRat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per liter","[IU]/L","[IU]/L","arbitrary",1000,[-3,0,0,0,0,0,0],"(i.U.)/L","chemical",true,null,null,1,false,true,0,"IU/L; IU/liter; IU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per minute","[IU]/min","[IU]/MIN","arbitrary",0.016666666666666666,[0,-1,0,0,0,0,0],"(i.U.)/min","chemical",true,null,null,1,false,true,0,"IU/min; IU/minute; IU per minute; international units","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per milliliter","[IU]/mL","[IU]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(i.U.)/mL","chemical",true,null,null,1,false,true,0,"IU/mL; IU per mL; international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"MPL unit per milliliter","[MPL\'U]/mL","[MPL\'U]/ML","biologic activity of anticardiolipin IgM",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"MPL/mL; MPL U/mL; MPL\'U/mL; IgM anticardiolipin units; IgM Phospholipid Units; millilitre ","LOINC","ACnc","Clinical","units for antiphospholipid test\\n","1","1","1",1,false],[false,"number per high power field","{#}/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"#/HPF; # per HPF; number/HPF; numbers per high power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"number per low power field","{#}/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"#/LPF; # per LPF; number/LPF; numbers per low power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"IgA antiphosphatidylserine unit ","{APS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"APS Unit; Phosphatidylserine Antibody IgA Units","LOINC","ACnc","Clinical","unit for antiphospholipid test",null,null,null,null,false],[false,"EIA index","{EIA_index}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"enzyme immunoassay index","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"kaolin clotting time","{KCT\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"KCT","LOINC","Time","Clinical","sensitive\xa0test to detect\xa0lupus anticoagulants; measured in seconds",null,null,null,null,false],[false,"IgM antiphosphatidylserine unit","{MPS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"Phosphatidylserine Antibody IgM Measurement ","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"trillion per liter","10*12/L","(10*12)/L","number",1000000000000000,[-3,0,0,0,0,0,0],"(1012)/L","dimless",false,null,null,1,false,false,0,"10^12/L; 10*12 per Liter; trillion per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^3 (used for cell count)","10*3","10*3","number",1000,[0,0,0,0,0,0,0],"103","dimless",false,null,null,1,false,false,0,"10^3; thousand","LOINC","Num","Clinical","usually used for counting entities (e.g. blood cells) per volume","1","1","10",10,false],[false,"thousand per liter","10*3/L","(10*3)/L","number",1000000,[-3,0,0,0,0,0,0],"(103)/L","dimless",false,null,null,1,false,false,0,"10^3/L; 10*3 per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per milliliter","10*3/mL","(10*3)/ML","number",1000000000,[-3,0,0,0,0,0,0],"(103)/mL","dimless",false,null,null,1,false,false,0,"10^3/mL; 10*3 per mL; thousand per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per microliter","10*3/uL","(10*3)/UL","number",999999999999.9999,[-3,0,0,0,0,0,0],"(103)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^3/uL; 10*3 per uL; thousand per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 thousand per microliter","10*4/uL","(10*4)/UL","number",10000000000000,[-3,0,0,0,0,0,0],"(104)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^4/uL; 10*4 per uL; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^5 ","10*5","10*5","number",100000,[0,0,0,0,0,0,0],"105","dimless",false,null,null,1,false,false,0,"one hundred thousand","LOINC","Num","Clinical","","1","1","10",10,false],[false,"10^6","10*6","10*6","number",1000000,[0,0,0,0,0,0,0],"106","dimless",false,null,null,1,false,false,0,"","LOINC","Num","Clinical","","1","1","10",10,false],[false,"million colony forming unit per liter","10*6.[CFU]/L","(10*6).[CFU]/L","number",1000000000,[-3,0,0,0,0,0,0],"(106).CFU/L","dimless",false,null,null,1,false,true,0,"10*6 CFU/L; 10^6 CFU/L; 10^6CFU; 10^6 CFU per liter; million colony forming units; litre","LOINC","ACnc","Clinical","","1","1","10",10,false],[false,"million international unit","10*6.[IU]","(10*6).[IU]","number",1000000,[0,0,0,0,0,0,0],"(106).(i.U.)","dimless",false,null,null,1,false,true,0,"10*6 IU; 10^6 IU; international units","LOINC","arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","10",10,false],[false,"million per 24 hour","10*6/(24.h)","(10*6)/HR","number",11.574074074074074,[0,-1,0,0,0,0,0],"(106)/h","dimless",false,null,null,1,false,false,0,"10*6/24hrs; 10^6/24 hrs; 10*6 per 24 hrs; 10^6 per 24 hours","LOINC","NRat","Clinical","","1","1","10",10,false],[false,"million per kilogram","10*6/kg","(10*6)/KG","number",1000,[0,0,-1,0,0,0,0],"(106)/kg","dimless",false,null,null,1,false,false,0,"10^6/kg; 10*6 per kg; 10*6 per kilogram; millions","LOINC","NCnt","Clinical","","1","1","10",10,false],[false,"million per liter","10*6/L","(10*6)/L","number",1000000000,[-3,0,0,0,0,0,0],"(106)/L","dimless",false,null,null,1,false,false,0,"10^6/L; 10*6 per Liter; 10^6 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per milliliter","10*6/mL","(10*6)/ML","number",1000000000000,[-3,0,0,0,0,0,0],"(106)/mL","dimless",false,null,null,1,false,false,0,"10^6/mL; 10*6 per mL; 10*6 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per microliter","10*6/uL","(10*6)/UL","number",1000000000000000,[-3,0,0,0,0,0,0],"(106)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^6/uL; 10^6 per uL; 10^6/mcl; 10^6 per mcl; 10^6 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^8","10*8","10*8","number",100000000,[0,0,0,0,0,0,0],"108","dimless",false,null,null,1,false,false,0,"100 million; one hundred million; 10^8","LOINC","Num","Clinical","","1","1","10",10,false],[false,"billion per liter","10*9/L","(10*9)/L","number",1000000000000,[-3,0,0,0,0,0,0],"(109)/L","dimless",false,null,null,1,false,false,0,"10^9/L; 10*9 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per milliliter","10*9/mL","(10*9)/ML","number",1000000000000000,[-3,0,0,0,0,0,0],"(109)/mL","dimless",false,null,null,1,false,false,0,"10^9/mL; 10*9 per mL; 10^9 per mL; 10*9 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per microliter","10*9/uL","(10*9)/UL","number",1000000000000000000,[-3,0,0,0,0,0,0],"(109)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^9/uL; 10^9 per uL; 10^9/mcl; 10^9 per mcl; 10*9 per uL; 10*9 per mcl; 10*9/mcl; 10^9 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 liter per minute per square meter","10.L/(min.m2)","L/(MIN.M2)","",0.00016666666666666666,[1,-1,0,0,0,0,0],"L/(min.(m2))",null,false,null,null,1,false,false,0,"10 liters per minutes per square meter; 10 L per min per m2; m^2; 10 L/(min*m2); 10L/(min*m^2); litres; sq. meter; metre; meters squared","LOINC","ArVRat","Clinical","",null,null,null,null,false],[false,"10 liter per minute","10.L/min","L/MIN","",0.00016666666666666666,[3,-1,0,0,0,0,0],"L/min",null,false,null,null,1,false,false,0,"10 liters per minute; 10 L per min; 10L; 10 L/min; litre","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"10 micronewton second per centimeter to the fifth power per square meter","10.uN.s/(cm5.m2)","(UN.S)/(CM5.M2)","",100000000,[-6,-1,1,0,0,0,0],"(\u03bcN.s)/(cm5).(m2)",null,false,null,null,1,false,false,0,"dyne seconds per centimeter5 and square meter; dyn.s/(cm5.m2); dyn.s/cm5/m2; cm^5; m^2","LOINC","","Clinical","unit to measure systemic vascular resistance per body surface area",null,null,null,null,false],[false,"24 hour","24.h","HR","",86400,[0,1,0,0,0,0,0],"h",null,false,null,null,1,false,false,0,"24hrs; 24 hrs; 24 hours; days; dy","LOINC","Time","Clinical","",null,null,null,null,false],[false,"ampere per meter","A/m","A/M","electric current",1,[-1,-1,0,0,0,1,0],"A/m","si",true,null,null,1,false,false,0,"A/m; amp/meter; magnetic field strength; H; B; amperes per meter; metre","LOINC","","Clinical","unit of magnetic field strength","C/s","C/S","1",1,false],[true,"centigram","cg","CG","mass",0.01,[0,0,1,0,0,0,0],"cg",null,false,"M",null,1,false,false,0,"centigrams; cg; cgm","LOINC","Mass","Clinical","",null,null,null,null,false],[false,"centiliter","cL","CL","volume",0.00001,[3,0,0,0,0,0,0],"cL","iso1000",true,null,null,1,false,false,0,"centiliters; centilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"centimeter","cm","CM","length",0.01,[1,0,0,0,0,0,0],"cm",null,false,"L",null,1,false,false,0,"centimeters; centimetres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"centimeter of water","cm[H2O]","CM[H2O]","pressure",98066.5,[-1,-2,1,0,0,0,0],"cm\xa0HO2","clinical",true,null,null,1,false,false,0,"cm H2O; cmH2O; centimetres; pressure","LOINC","Pres","Clinical","unit of pressure mostly applies to blood pressure","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per liter per second","cm[H2O]/L/s","(CM[H2O]/L)/S","pressure",98066500,[-4,-3,1,0,0,0,0],"(cm\xa0HO2)/L/s","clinical",true,null,null,1,false,false,0,"cm[H2O]/(L/s); cm[H2O].s/L; cm H2O/L/sec; cmH2O/L/sec; cmH2O/Liter; cmH2O per L per secs; centimeters of water per liters per second; centimetres; litres; cm[H2O]/(L/s)","LOINC","PresRat","Clinical","unit used to measure mean pulmonary resistance","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per second per meter","cm[H2O]/s/m","(CM[H2O]/S)/M","pressure",98066.5,[-2,-3,1,0,0,0,0],"(cm\xa0HO2)/s/m","clinical",true,null,null,1,false,false,0,"cm[H2O]/(s.m); cm H2O/s/m; cmH2O; cmH2O/sec/m; cmH2O per secs per meters; centimeters of water per seconds per meter; centimetres; metre","LOINC","PresRat","Clinical","unit used to measure pulmonary pressure time product","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of mercury","cm[Hg]","CM[HG]","pressure",1333220,[-1,-2,1,0,0,0,0],"cm\xa0Hg","clinical",true,null,null,1,false,false,0,"centimeters of mercury; centimetres; cmHg; cm Hg","LOINC","Pres","Clinical","unit of pressure where 1 cmHg = 10 torr","kPa","KPAL","133.3220",133.322,false],[true,"square centimeter","cm2","CM2","length",0.0001,[2,0,0,0,0,0,0],"cm2",null,false,"L",null,1,false,false,0,"cm^2; sq cm; centimeters squared; square centimeters; centimetre; area","LOINC","Area","Clinical","",null,null,null,null,false],[true,"square centimeter per second","cm2/s","CM2/S","length",0.0001,[2,-1,0,0,0,0,0],"(cm2)/s",null,false,"L",null,1,false,false,0,"cm^2/sec; square centimeters per second; sq cm per sec; cm2; centimeters squared; centimetres","LOINC","AreaRat","Clinical","",null,null,null,null,false],[false,"centipoise","cP","CP","dynamic viscosity",1,[-1,-1,1,0,0,0,0],"cP","cgs",true,null,null,1,false,false,0,"cps; centiposes","LOINC","Visc","Clinical","unit of dynamic viscosity in the CGS system with base units: 10^\u22123 Pa.s = 1 mPa\xb7.s (1 millipascal second)","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"centistoke","cSt","CST","kinematic viscosity",0.0000010000000000000002,[2,-1,0,0,0,0,0],"cSt","cgs",true,null,null,1,false,false,0,"centistokes","LOINC","Visc","Clinical","unit for kinematic viscosity with base units of mm^2/s (square millimeter per second)","cm2/s","CM2/S","1",1,false],[false,"dekaliter per minute","daL/min","DAL/MIN","volume",0.00016666666666666666,[3,-1,0,0,0,0,0],"daL/min","iso1000",true,null,null,1,false,false,0,"dekalitres; dekaliters per minute; per min","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"dekaliter per minute per square meter","daL/min/m2","(DAL/MIN)/M2","volume",0.00016666666666666666,[1,-1,0,0,0,0,0],"(daL/min)/(m2)","iso1000",true,null,null,1,false,false,0,"daL/min/m^2; daL/minute/m2; sq. meter; dekaliters per minutes per square meter; meter squared; dekalitres; metre","LOINC","ArVRat","Clinical","The area usually is the body surface area used to normalize cardiovascular measures for patient\'s size","l",null,"1",1,false],[false,"decibel","dB","DB","level",1,[0,0,0,0,0,0,0],"dB","levels",true,null,"lg",0.1,true,false,0,"decibels","LOINC","LogRto","Clinical","unit most commonly used in acoustics as unit of sound pressure level. (also see B[SPL] or bel sound pressure level). ","1",null,null,1,false],[false,"degree per second","deg/s","DEG/S","plane angle",0.017453292519943295,[0,-1,0,1,0,0,0],"\xb0/s","iso1000",false,null,null,1,false,false,0,"deg/sec; deg per sec; \xb0/sec; twist rate; angular speed; rotational speed","LOINC","ARat","Clinical","unit of angular (rotational) speed used to express turning rate","[pi].rad/360","[PI].RAD/360","2",2,false],[true,"decigram","dg","DG","mass",0.1,[0,0,1,0,0,0,0],"dg",null,false,"M",null,1,false,false,0,"decigrams; dgm; 0.1 grams; 1/10 gm","LOINC","Mass","Clinical","equal to 1/10 gram",null,null,null,null,false],[false,"deciliter","dL","DL","volume",0.0001,[3,0,0,0,0,0,0],"dL","iso1000",true,null,null,1,false,false,0,"deciliters; decilitres; 0.1 liters; 1/10 L","LOINC","Vol","Clinical","equal to 1/10 liter","l",null,"1",1,false],[true,"decimeter","dm","DM","length",0.1,[1,0,0,0,0,0,0],"dm",null,false,"L",null,1,false,false,0,"decimeters; decimetres; 0.1 meters; 1/10 m; 10 cm; centimeters","LOINC","Len","Clinical","equal to 1/10 meter or 10 centimeters",null,null,null,null,false],[true,"square decimeter per square second","dm2/s2","DM2/S2","length",0.010000000000000002,[2,-2,0,0,0,0,0],"(dm2)/(s2)",null,false,"L",null,1,false,false,0,"dm2 per s2; dm^2/s^2; decimeters squared per second squared; sq dm; sq sec","LOINC","EngMass (massic energy)","Clinical","units for energy per unit mass or Joules per kilogram (J/kg = kg.m2/s2/kg = m2/s2) ",null,null,null,null,false],[false,"dyne second per centimeter per square meter","dyn.s/(cm.m2)","(DYN.S)/(CM.M2)","force",1,[-2,-1,1,0,0,0,0],"(dyn.s)/(cm.(m2))","cgs",true,null,null,1,false,false,0,"(dyn*s)/(cm*m2); (dyn*s)/(cm*m^2); dyn s per cm per m2; m^2; dyne seconds per centimeters per square meter; centimetres; sq. meter; squared","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"dyne second per centimeter","dyn.s/cm","(DYN.S)/CM","force",1,[0,-1,1,0,0,0,0],"(dyn.s)/cm","cgs",true,null,null,1,false,false,0,"(dyn*s)/cm; dyn sec per cm; seconds; centimetre; dyne seconds","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"equivalent per liter","eq/L","EQ/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"eq/L","chemical",true,null,null,1,false,false,1,"eq/liter; eq/litre; eqs; equivalents per liter; litre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per milliliter","eq/mL","EQ/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"eq/mL","chemical",true,null,null,1,false,false,1,"equivalent/milliliter; equivalents per milliliter; eq per mL; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per millimole","eq/mmol","EQ/MMOL","amount of substance",1000,[0,0,0,0,0,0,0],"eq/mmol","chemical",true,null,null,1,false,false,0,"equivalent/millimole; equivalents per millimole; eq per mmol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per micromole","eq/umol","EQ/UMOL","amount of substance",1000000,[0,0,0,0,0,0,0],"eq/\u03bcmol","chemical",true,null,null,1,false,false,0,"equivalent/micromole; equivalents per micromole; eq per umol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"femtogram","fg","FG","mass",1e-15,[0,0,1,0,0,0,0],"fg",null,false,"M",null,1,false,false,0,"fg; fgm; femtograms; weight","LOINC","Mass","Clinical","equal to 10^-15 grams",null,null,null,null,false],[false,"femtoliter","fL","FL","volume",1e-18,[3,0,0,0,0,0,0],"fL","iso1000",true,null,null,1,false,false,0,"femtolitres; femtoliters","LOINC","Vol; EntVol","Clinical","equal to 10^-15 liters","l",null,"1",1,false],[true,"femtometer","fm","FM","length",1e-15,[1,0,0,0,0,0,0],"fm",null,false,"L",null,1,false,false,0,"femtometres; femtometers","LOINC","Len","Clinical","equal to 10^-15 meters",null,null,null,null,false],[false,"femtomole","fmol","FMOL","amount of substance",602213670,[0,0,0,0,0,0,0],"fmol","si",true,null,null,1,false,false,1,"femtomoles","LOINC","EntSub","Clinical","equal to 10^-15 moles","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per gram","fmol/g","FMOL/G","amount of substance",602213670,[0,0,-1,0,0,0,0],"fmol/g","si",true,null,null,1,false,false,1,"femtomoles; fmol/gm; fmol per gm","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per liter","fmol/L","FMOL/L","amount of substance",602213670000,[-3,0,0,0,0,0,0],"fmol/L","si",true,null,null,1,false,false,1,"femtomoles; fmol per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milligram","fmol/mg","FMOL/MG","amount of substance",602213670000,[0,0,-1,0,0,0,0],"fmol/mg","si",true,null,null,1,false,false,1,"fmol per mg; femtomoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milliliter","fmol/mL","FMOL/ML","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"fmol/mL","si",true,null,null,1,false,false,1,"femtomoles; millilitre; fmol per mL; fmol per milliliter","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"gram meter","g.m","G.M","mass",1,[1,0,1,0,0,0,0],"g.m",null,false,"M",null,1,false,false,0,"g*m; gxm; meters; metres","LOINC","Enrg","Clinical","Unit for measuring stroke work (heart work)",null,null,null,null,false],[true,"gram per 100 gram","g/(100.g)","G/G","mass",0.01,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"g/100 gm; 100gm; grams per 100 grams; gm per 100 gm","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per 12 hour","g/(12.h)","G/HR","mass",0.000023148148148148147,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/12hrs; 12 hrs; gm per 12 hrs; 12hrs; grams per 12 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 24 hour","g/(24.h)","G/HR","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; gm/dy; gm per dy; grams per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 3 days","g/(3.d)","G/D","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/3dy; gm/3 dy; gm per 3 days; grams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 4 hour","g/(4.h)","G/HR","mass",0.00006944444444444444,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/4hrs; gm/4 hrs; gm per 4 hrs; 4hrs; grams per 4 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 48 hour","g/(48.h)","G/HR","mass",0.000005787037037037037,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/48hrs; gm/48 hrs; gm per 48 hrs; 48hrs; grams per 48 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 5 hour","g/(5.h)","G/HR","mass",0.00005555555555555556,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/5hrs; gm/5 hrs; gm per 5 hrs; 5hrs; grams per 5 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 6 hour","g/(6.h)","G/HR","mass",0.000046296296296296294,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/6hrs; gm/6 hrs; gm per 6 hrs; 6hrs; grams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 72 hour","g/(72.h)","G/HR","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/72hrs; gm/72 hrs; gm per 72 hrs; 72hrs; grams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per cubic centimeter","g/cm3","G/CM3","mass",999999.9999999999,[-3,0,1,0,0,0,0],"g/(cm3)",null,false,"M",null,1,false,false,0,"g/cm^3; gm per cm3; g per cm^3; grams per centimeter cubed; cu. cm; centimetre; g/mL; gram per milliliter; millilitre","LOINC","MCnc","Clinical","g/cm3 = g/mL",null,null,null,null,false],[true,"gram per day","g/d","G/D","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/dy; gm per dy; grams per day; gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; serving","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per deciliter","g/dL","G/DL","mass",10000,[-3,0,1,0,0,0,0],"g/dL",null,false,"M",null,1,false,false,0,"gm/dL; gm per dL; grams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per gram","g/g","G/G","mass",1,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"gm; grams","LOINC","MRto ","Clinical","",null,null,null,null,false],[true,"gram per hour","g/h","G/HR","mass",0.0002777777777777778,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/hr; gm per hr; grams; intake; output","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per hour per square meter","g/h/m2","(G/HR)/M2","mass",0.0002777777777777778,[-2,-1,1,0,0,0,0],"(g/h)/(m2)",null,false,"M",null,1,false,false,0,"gm/hr/m2; gm/h/m2; /m^2; sq. m; g per hr per m2; grams per hours per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"gram per kilogram","g/kg ","G/KG","mass",0.001,[0,0,0,0,0,0,0],"g/kg",null,false,"M",null,1,false,false,0,"g per kg; gram per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per kilogram per 8 hour ","g/kg/(8.h)","(G/KG)/HR","mass",3.472222222222222e-8,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(8.kg.h); gm/kg/8hrs; 8 hrs; g per kg per 8 hrs; 8hrs; grams per kilograms per 8 hours; shift","LOINC","MCntRat; RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a 8 hours, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per day","g/kg/d","(G/KG)/D","mass",1.1574074074074074e-8,[0,-1,0,0,0,0,0],"(g/kg)/d",null,false,"M",null,1,false,false,0,"g/(kg.d); gm/kg/dy; gm per kg per dy; grams per kilograms per day","LOINC","RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a day, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per hour","g/kg/h","(G/KG)/HR","mass",2.7777777777777776e-7,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(kg.h); g/kg/hr; g per kg per hrs; grams per kilograms per hour","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per minute","g/kg/min","(G/KG)/MIN","mass",0.000016666666666666667,[0,-1,0,0,0,0,0],"(g/kg)/min",null,false,"M",null,1,false,false,0,"g/(kg.min); g/kg/min; g per kg per min; grams per kilograms per minute","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per liter","g/L","G/L","mass",1000,[-3,0,1,0,0,0,0],"g/L",null,false,"M",null,1,false,false,0,"gm per liter; g/liter; grams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per square meter","g/m2","G/M2","mass",1,[-2,0,1,0,0,0,0],"g/(m2)",null,false,"M",null,1,false,false,0,"g/m^2; gram/square meter; g/sq m; g per m2; g per m^2; grams per square meter; meters squared; metre","LOINC","ArMass","Clinical","Tests measure myocardial mass (heart ventricle system) per body surface area; unit used to measure mass dose per body surface area",null,null,null,null,false],[true,"gram per milligram","g/mg","G/MG","mass",1000,[0,0,0,0,0,0,0],"g/mg",null,false,"M",null,1,false,false,0,"g per mg; grams per milligram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"gram per minute","g/min","G/MIN","mass",0.016666666666666666,[0,-1,1,0,0,0,0],"g/min",null,false,"M",null,1,false,false,0,"g per min; grams per minute; gram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per milliliter","g/mL","G/ML","mass",1000000,[-3,0,1,0,0,0,0],"g/mL",null,false,"M",null,1,false,false,0,"g per mL; grams per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per millimole","g/mmol","G/MMOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"g/mmol",null,false,"M",null,1,false,false,-1,"grams per millimole; g per mmol","LOINC","Ratio","Clinical","",null,null,null,null,false],[false,"joule per liter","J/L","J/L","energy",1000000,[-1,-2,1,0,0,0,0],"J/L","si",true,null,null,1,false,false,0,"joules per liter; litre; J per L","LOINC","EngCnc","Clinical","","N.m","N.M","1",1,false],[true,"degree Kelvin per Watt","K/W","K/W","temperature",0.001,[-2,3,-1,0,1,0,0],"K/W",null,false,"C",null,1,false,false,0,"degree Kelvin/Watt; K per W; thermal ohm; thermal resistance; degrees","LOINC","TempEngRat","Clinical","unit for absolute thermal resistance equal to the reciprocal of thermal conductance. Unit used for tests to measure work of breathing",null,null,null,null,false],[false,"kilo international unit per liter","k[IU]/L","K[IU]/L","arbitrary",1000000,[-3,0,0,0,0,0,0],"(ki.U.)/L","chemical",true,null,null,1,false,true,0,"kIU/L; kIU per L; kIU per liter; kilo international units; litre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/L","[iU]","[IU]","1",1,false],[false,"kilo international unit per milliliter","k[IU]/mL","K[IU]/ML","arbitrary",1000000000,[-3,0,0,0,0,0,0],"(ki.U.)/mL","chemical",true,null,null,1,false,true,0,"kIU/mL; kIU per mL; kIU per milliliter; kilo international units; millilitre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/mL","[iU]","[IU]","1",1,false],[false,"katal per kilogram","kat/kg","KAT/KG","catalytic activity",602213670000000000000,[0,-1,-1,0,0,0,0],"kat/kg","chemical",true,null,null,1,false,false,1,"kat per kg; katals per kilogram; mol/s/kg; moles per seconds per kilogram","LOINC","CCnt","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"katal per liter","kat/L","KAT/L","catalytic activity",6.0221366999999994e+26,[-3,-1,0,0,0,0,0],"kat/L","chemical",true,null,null,1,false,false,1,"kat per L; katals per liter; litre; mol/s/L; moles per seconds per liter","LOINC","CCnc","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"kilocalorie","kcal","KCAL","energy",4184000,[2,-2,1,0,0,0,0],"kcal","heat",true,null,null,1,false,false,0,"kilogram calories; large calories; food calories; kcals","LOINC","EngRat","Clinical","It is equal to 1000 calories (equal to 4.184 kJ). But in practical usage, kcal refers to food calories which excludes caloric content in fiber and other constitutes that is not digestible by humans. Also see nutrition label Calories ([Cal])","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per 24 hour","kcal/(24.h)","KCAL/HR","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/24hrs; kcal/24 hrs; kcal per 24hrs; kilocalories per 24 hours; kilojoules; kJ/24hr; kJ/(24.h); kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","","EngRat","Clinical","","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per ounce","kcal/[oz_av]","KCAL/[OZ_AV]","energy",147586.25679704445,[2,-2,0,0,0,0,0],"kcal/oz","heat",true,null,null,1,false,false,0,"kcal/oz; kcal per ozs; large calories per ounces; food calories; servings; international","LOINC","EngCnt","Clinical","used in nutrition to represent calorie of food","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per day","kcal/d","KCAL/D","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/d","heat",true,null,null,1,false,false,0,"kcal/dy; kcal per day; kilocalories per days; kilojoules; kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","LOINC","EngRat","Clinical","unit in nutrition for food intake (measured in calories) in a day","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per hour","kcal/h","KCAL/HR","energy",1162.2222222222222,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/hrs; kcals per hr; intake; kilocalories per hours; kilojoules","LOINC","EngRat","Clinical","used in nutrition to represent caloric requirement or consumption","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per kilogram per 24 hour","kcal/kg/(24.h)","(KCAL/KG)/HR","energy",0.04842592592592593,[2,-3,0,0,0,0,0],"(kcal/kg)/h","heat",true,null,null,1,false,false,0,"kcal/kg/24hrs; 24 hrs; kcal per kg per 24hrs; kilocalories per kilograms per 24 hours; kilojoules","LOINC","EngCntRat","Clinical","used in nutrition to represent caloric requirement per day based on subject\'s body weight in kilograms","cal_th","CAL_TH","1",1,false],[true,"kilogram","kg","KG","mass",1000,[0,0,1,0,0,0,0],"kg",null,false,"M",null,1,false,false,0,"kilograms; kgs","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"kilogram meter per second","kg.m/s","(KG.M)/S","mass",1000,[1,-1,1,0,0,0,0],"(kg.m)/s",null,false,"M",null,1,false,false,0,"kg*m/s; kg.m per sec; kg*m per sec; p; momentum","LOINC","","Clinical","unit for momentum = mass times velocity",null,null,null,null,false],[true,"kilogram per second per square meter","kg/(s.m2)","KG/(S.M2)","mass",1000,[-2,-1,1,0,0,0,0],"kg/(s.(m2))",null,false,"M",null,1,false,false,0,"kg/(s*m2); kg/(s*m^2); kg per s per m2; per sec; per m^2; kilograms per seconds per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"kilogram per hour","kg/h","KG/HR","mass",0.2777777777777778,[0,-1,1,0,0,0,0],"kg/h",null,false,"M",null,1,false,false,0,"kg/hr; kg per hr; kilograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per liter","kg/L","KG/L","mass",1000000,[-3,0,1,0,0,0,0],"kg/L",null,false,"M",null,1,false,false,0,"kg per liter; litre; kilograms","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per square meter","kg/m2","KG/M2","mass",1000,[-2,0,1,0,0,0,0],"kg/(m2)",null,false,"M",null,1,false,false,0,"kg/m^2; kg/sq. m; kg per m2; per m^2; per sq. m; kilograms; meter squared; metre; BMI","LOINC","Ratio","Clinical","units for body mass index (BMI)",null,null,null,null,false],[true,"kilogram per cubic meter","kg/m3","KG/M3","mass",1000,[-3,0,1,0,0,0,0],"kg/(m3)",null,false,"M",null,1,false,false,0,"kg/m^3; kg/cu. m; kg per m3; per m^3; per cu. m; kilograms; meters cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per minute","kg/min","KG/MIN","mass",16.666666666666668,[0,-1,1,0,0,0,0],"kg/min",null,false,"M",null,1,false,false,0,"kilogram/minute; kg per min; kilograms per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per mole","kg/mol","KG/MOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"kg/mol",null,false,"M",null,1,false,false,-1,"kilogram/mole; kg per mol; kilograms per mole","LOINC","SCnt","Clinical","",null,null,null,null,false],[true,"kilogram per second","kg/s","KG/S","mass",1000,[0,-1,1,0,0,0,0],"kg/s",null,false,"M",null,1,false,false,0,"kg/sec; kilogram/second; kg per sec; kilograms; second","LOINC","MRat","Clinical","",null,null,null,null,false],[false,"kiloliter","kL","KL","volume",1,[3,0,0,0,0,0,0],"kL","iso1000",true,null,null,1,false,false,0,"kiloliters; kilolitres; m3; m^3; meters cubed; metre","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"kilometer","km","KM","length",1000,[1,0,0,0,0,0,0],"km",null,false,"L",null,1,false,false,0,"kilometers; kilometres; distance","LOINC","Len","Clinical","",null,null,null,null,false],[false,"kilopascal","kPa","KPAL","pressure",1000000,[-1,-2,1,0,0,0,0],"kPa","si",true,null,null,1,false,false,0,"kilopascals; pressure","LOINC","Pres; PPresDiff","Clinical","","N/m2","N/M2","1",1,false],[true,"kilosecond","ks","KS","time",1000,[0,1,0,0,0,0,0],"ks",null,false,"T",null,1,false,false,0,"kiloseconds; ksec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"kilo enzyme unit","kU","KU","catalytic activity",10036894500000000000,[0,-1,0,0,0,0,0],"kU","chemical",true,null,null,1,false,false,1,"units; mmol/min; millimoles per minute","LOINC","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per gram","kU/g","KU/G","catalytic activity",10036894500000000000,[0,-1,-1,0,0,0,0],"kU/g","chemical",true,null,null,1,false,false,1,"units per grams; kU per gm","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per liter","kU/L","KU/L","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"kU/L","chemical",true,null,null,1,false,false,1,"units per liter; litre; enzymatic activity; enzyme activity per volume; activities","LOINC","ACnc; CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per milliliter","kU/mL","KU/ML","catalytic activity",1.00368945e+25,[-3,-1,0,0,0,0,0],"kU/mL","chemical",true,null,null,1,false,false,1,"kU per mL; units per milliliter; millilitre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Liters per 24 hour","L/(24.h)","L/HR","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/24hrs; L/24 hrs; L per 24hrs; liters per 24 hours; day; dy; litres; volume flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per 8 hour","L/(8.h)","L/HR","volume",3.472222222222222e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/8hrs; L/8 hrs; L per 8hrs; liters per 8 hours; litres; volume flow rate; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/(min.m2) ","L/(MIN.M2)","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"L/(min.(m2))","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per day","L/d","L/D","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/d","iso1000",true,null,null,1,false,false,0,"L/dy; L per day; 24hrs; 24 hrs; 24 hours; liters; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per hour","L/h","L/HR","volume",2.7777777777777776e-7,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/hr; L per hr; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per kilogram","L/kg","L/KG","volume",0.000001,[3,0,-1,0,0,0,0],"L/kg","iso1000",true,null,null,1,false,false,0,"L per kg; litre","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"Liters per liter","L/L","L/L","volume",1,[0,0,0,0,0,0,0],"L/L","iso1000",true,null,null,1,false,false,0,"L per L; liter/liter; litre","LOINC","VFr","Clinical","","l",null,"1",1,false],[false,"Liters per minute","L/min","L/MIN","volume",0.000016666666666666667,[3,-1,0,0,0,0,0],"L/min","iso1000",true,null,null,1,false,false,0,"liters per minute; litre","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/min/m2","(L/MIN)/M2","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"(L/min)/(m2)","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per second","L/s","L/S","volume",0.001,[3,-1,0,0,0,0,0],"L/s","iso1000",true,null,null,1,false,false,0,"L per sec; litres","LOINC","VRat","Clinical","unit used often to measure gas flow and peak expiratory flow","l",null,"1",1,false],[false,"Liters per second per square second","L/s/s2","(L/S)/S2","volume",0.001,[3,-3,0,0,0,0,0],"(L/s)/(s2)","iso1000",true,null,null,1,false,false,0,"L/s/s^2; L/sec/sec2; L/sec/sec^2; L/sec/sq. sec; L per s per s2; L per sec per sec2; s^2; sec^2; liters per seconds per square second; second squared; litres ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output/body surface area","l",null,"1",1,false],[false,"lumen square meter","lm.m2","LM.M2","luminous flux",1,[2,0,0,2,0,0,1],"lm.(m2)","si",true,null,null,1,false,false,0,"lm*m2; lm*m^2; lumen meters squared; lumen sq. meters; metres","LOINC","","Clinical","","cd.sr","CD.SR","1",1,false],[true,"meter per second","m/s","M/S","length",1,[1,-1,0,0,0,0,0],"m/s",null,false,"L",null,1,false,false,0,"meter/second; m per sec; meters per second; metres; velocity; speed","LOINC","Vel","Clinical","unit of velocity",null,null,null,null,false],[true,"meter per square second","m/s2","M/S2","length",1,[1,-2,0,0,0,0,0],"m/(s2)",null,false,"L",null,1,false,false,0,"m/s^2; m/sq. sec; m per s2; per s^2; meters per square second; second squared; sq second; metres; acceleration","LOINC","Accel","Clinical","unit of acceleration",null,null,null,null,false],[false,"milli international unit per liter","m[IU]/L","M[IU]/L","arbitrary",1,[-3,0,0,0,0,0,0],"(mi.U.)/L","chemical",true,null,null,1,false,true,0,"mIU/L; m IU/L; mIU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"milli international unit per milliliter","m[IU]/mL","M[IU]/ML","arbitrary",1000.0000000000001,[-3,0,0,0,0,0,0],"(mi.U.)/mL","chemical",true,null,null,1,false,true,0,"mIU/mL; m IU/mL; mIU per mL; milli international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[true,"square meter","m2","M2","length",1,[2,0,0,0,0,0,0],"m2",null,false,"L",null,1,false,false,0,"m^2; sq m; square meters; meters squared; metres","LOINC","Area","Clinical","unit often used to represent body surface area",null,null,null,null,false],[true,"square meter per second","m2/s","M2/S","length",1,[2,-1,0,0,0,0,0],"(m2)/s",null,false,"L",null,1,false,false,0,"m^2/sec; m2 per sec; m^2 per sec; sq m/sec; meters squared/seconds; sq m per sec; meters squared; metres","LOINC","ArRat","Clinical","",null,null,null,null,false],[true,"cubic meter per second","m3/s","M3/S","length",1,[3,-1,0,0,0,0,0],"(m3)/s",null,false,"L",null,1,false,false,0,"m^3/sec; m3 per sec; m^3 per sec; cu m/sec; cubic meters per seconds; meters cubed; metres","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"milliampere","mA","MA","electric current",0.001,[0,-1,0,0,0,1,0],"mA","si",true,null,null,1,false,false,0,"mamp; milliamperes","LOINC","ElpotRat","Clinical","unit of electric current","C/s","C/S","1",1,false],[false,"millibar","mbar","MBAR","pressure",100000,[-1,-2,1,0,0,0,0],"mbar","iso1000",true,null,null,1,false,false,0,"millibars","LOINC","Pres","Clinical","unit of pressure","Pa","PAL","1e5",100000,false],[false,"millibar second per liter","mbar.s/L","(MBAR.S)/L","pressure",100000000,[-4,-1,1,0,0,0,0],"(mbar.s)/L","iso1000",true,null,null,1,false,false,0,"mbar*s/L; mbar.s per L; mbar*s per L; millibar seconds per liter; millibar second per litre","LOINC","","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"millibar per liter per second","mbar/L/s","(MBAR/L)/S","pressure",100000000,[-4,-3,1,0,0,0,0],"(mbar/L)/s","iso1000",true,null,null,1,false,false,0,"mbar/(L.s); mbar/L/sec; mbar/liter/second; mbar per L per sec; mbar per liter per second; millibars per liters per seconds; litres","LOINC","PresCncRat","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"milliequivalent","meq","MEQ","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"meq","chemical",true,null,null,1,false,false,1,"milliequivalents; meqs","LOINC","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 2 hour","meq/(2.h)","MEQ/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/2hrs; meq/2 hrs; meq per 2 hrs; milliequivalents per 2 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 24 hour","meq/(24.h)","MEQ/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 8 hour","meq/(8.h)","MEQ/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/8hrs; meq/8 hrs; meq per 8 hrs; milliequivalents per 8 hours; shift","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per day","meq/d","MEQ/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/d","chemical",true,null,null,1,false,false,1,"meq/dy; meq per day; milliquivalents per days; meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per deciliter","meq/dL","MEQ/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"meq/dL","chemical",true,null,null,1,false,false,1,"meq per dL; milliequivalents per deciliter; decilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per gram","meq/g","MEQ/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"meq/g","chemical",true,null,null,1,false,false,1,"mgq/gm; meq per gm; milliequivalents per gram","LOINC","MCnt","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per hour","meq/h","MEQ/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/hrs; meq per hrs; milliequivalents per hour","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per kilogram","meq/kg","MEQ/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"meq/kg","chemical",true,null,null,1,false,false,1,"meq per kg; milliequivalents per kilogram","LOINC","SCnt","Clinical","equivalence equals moles per valence; used to measure dose per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per kilogram per hour","meq/kg/h","(MEQ/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(meq/kg)/h","chemical",true,null,null,1,false,false,1,"meq/(kg.h); meq/kg/hr; meq per kg per hr; milliequivalents per kilograms per hour","LOINC","SCntRat","Clinical","equivalence equals moles per valence; unit used to measure dose rate per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per liter","meq/L","MEQ/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"meq/L","chemical",true,null,null,1,false,false,1,"milliequivalents per liter; litre; meq per l; acidity","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per square meter","meq/m2","MEQ/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"meq/(m2)","chemical",true,null,null,1,false,false,1,"meq/m^2; meq/sq. m; milliequivalents per square meter; meter squared; metre","LOINC","ArSub","Clinical","equivalence equals moles per valence; note that the use of m2 in clinical units ofter refers to body surface area","mol","MOL","1",1,false],[false,"milliequivalent per minute","meq/min","MEQ/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"meq/min","chemical",true,null,null,1,false,false,1,"meq per min; milliequivalents per minute","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per milliliter","meq/mL","MEQ/ML","amount of substance",6.0221367e+26,[-3,0,0,0,0,0,0],"meq/mL","chemical",true,null,null,1,false,false,1,"meq per mL; milliequivalents per milliliter; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"milligram","mg","MG","mass",0.001,[0,0,1,0,0,0,0],"mg",null,false,"M",null,1,false,false,0,"milligrams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"milligram per 10 hour","mg/(10.h)","MG/HR","mass",2.7777777777777777e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/10hrs; mg/10 hrs; mg per 10 hrs; milligrams per 10 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 12 hour","mg/(12.h)","MG/HR","mass",2.3148148148148148e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/12hrs; mg/12 hrs; per 12 hrs; 12hrs; milligrams per 12 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 2 hour","mg/(2.h)","MG/HR","mass",1.3888888888888888e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/2hrs; mg/2 hrs; mg per 2 hrs; 2hrs; milligrams per 2 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 24 hour","mg/(24.h)","MG/HR","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/kg/dy; mg per kg per day; milligrams per kilograms per days","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 6 hour","mg/(6.h)","MG/HR","mass",4.6296296296296295e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/6hrs; mg/6 hrs; mg per 6 hrs; 6hrs; milligrams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 72 hour","mg/(72.h)","MG/HR","mass",3.858024691358025e-9,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/72hrs; mg/72 hrs; 72 hrs; 72hrs; milligrams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 8 hour","mg/(8.h)","MG/HR","mass",3.472222222222222e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/8hrs; mg/8 hrs; milligrams per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per day","mg/d","MG/D","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/d",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/dy; mg per day; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per deciliter","mg/dL","MG/DL","mass",10,[-3,0,1,0,0,0,0],"mg/dL",null,false,"M",null,1,false,false,0,"mg per dL; milligrams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per gram","mg/g","MG/G","mass",0.001,[0,0,0,0,0,0,0],"mg/g",null,false,"M",null,1,false,false,0,"mg per gm; milligrams per gram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"milligram per hour","mg/h","MG/HR","mass",2.7777777777777776e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/hr; mg per hr; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per kilogram","mg/kg","MG/KG","mass",0.000001,[0,0,0,0,0,0,0],"mg/kg",null,false,"M",null,1,false,false,0,"mg per kg; milligrams per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"milligram per kilogram per 8 hour","mg/kg/(8.h)","(MG/KG)/HR","mass",3.472222222222222e-11,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(8.h.kg); mg/kg/8hrs; mg/kg/8 hrs; mg per kg per 8hrs; 8 hrs; milligrams per kilograms per 8 hours; shift","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per day","mg/kg/d","(MG/KG)/D","mass",1.1574074074074074e-11,[0,-1,0,0,0,0,0],"(mg/kg)/d",null,false,"M",null,1,false,false,0,"mg/(kg.d); mg/(kg.24.h)mg/kg/dy; mg per kg per day; milligrams per kilograms per days; mg/kg/(24.h); mg/kg/24hrs; 24 hrs; 24 hours","LOINC","RelMRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per hour","mg/kg/h","(MG/KG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(kg.h); mg/kg/hr; mg per kg per hr; milligrams per kilograms per hour","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per minute","mg/kg/min","(MG/KG)/MIN","mass",1.6666666666666667e-8,[0,-1,0,0,0,0,0],"(mg/kg)/min",null,false,"M",null,1,false,false,0,"mg/(kg.min); mg per kg per min; milligrams per kilograms per minute","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per liter","mg/L","MG/L","mass",1,[-3,0,1,0,0,0,0],"mg/L",null,false,"M",null,1,false,false,0,"mg per l; milligrams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per square meter","mg/m2","MG/M2","mass",0.001,[-2,0,1,0,0,0,0],"mg/(m2)",null,false,"M",null,1,false,false,0,"mg/m^2; mg/sq. m; mg per m2; mg per m^2; mg per sq. milligrams; meter squared; metre","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"milligram per cubic meter","mg/m3","MG/M3","mass",0.001,[-3,0,1,0,0,0,0],"mg/(m3)",null,false,"M",null,1,false,false,0,"mg/m^3; mg/cu. m; mg per m3; milligrams per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per milligram","mg/mg","MG/MG","mass",1,[0,0,0,0,0,0,0],"mg/mg",null,false,"M",null,1,false,false,0,"mg per mg; milligrams; milligram/milligram","LOINC","MRto","Clinical","",null,null,null,null,false],[true,"milligram per minute","mg/min","MG/MIN","mass",0.000016666666666666667,[0,-1,1,0,0,0,0],"mg/min",null,false,"M",null,1,false,false,0,"mg per min; milligrams per minutes; milligram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per milliliter","mg/mL","MG/ML","mass",1000.0000000000001,[-3,0,1,0,0,0,0],"mg/mL",null,false,"M",null,1,false,false,0,"mg per mL; milligrams per milliliters; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per millimole","mg/mmol","MG/MMOL","mass",1.660540186674939e-24,[0,0,1,0,0,0,0],"mg/mmol",null,false,"M",null,1,false,false,-1,"mg per mmol; milligrams per millimole; ","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"milligram per week","mg/wk","MG/WK","mass",1.6534391534391535e-9,[0,-1,1,0,0,0,0],"mg/wk",null,false,"M",null,1,false,false,0,"mg/week; mg per wk; milligrams per weeks; milligram/week","LOINC","Mrat","Clinical","",null,null,null,null,false],[false,"milliliter","mL","ML","volume",0.000001,[3,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"milliliters; millilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"milliliter per 10 hour","mL/(10.h)","ML/HR","volume",2.7777777777777777e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/10hrs; ml/10 hrs; mL per 10hrs; 10 hrs; milliliters per 10 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 12 hour","mL/(12.h)","ML/HR","volume",2.3148148148148147e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/12hrs; ml/12 hrs; mL per 12hrs; 12 hrs; milliliters per 12 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 2 hour","mL/(2.h)","ML/HR","volume",1.3888888888888888e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/2hrs; ml/2 hrs; mL per 2hrs; 2 hrs; milliliters per 2 hours; millilitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 24 hour","mL/(24.h)","ML/HR","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/24hrs; ml/24 hrs; mL per 24hrs; 24 hrs; milliliters per 24 hours; millilitres; ml/dy; /day; ml per dy; days; fluid outputs; fluid inputs; flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 4 hour","mL/(4.h)","ML/HR","volume",6.944444444444444e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/4hrs; ml/4 hrs; mL per 4hrs; 4 hrs; milliliters per 4 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 5 hour","mL/(5.h)","ML/HR","volume",5.5555555555555553e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/5hrs; ml/5 hrs; mL per 5hrs; 5 hrs; milliliters per 5 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 6 hour","mL/(6.h)","ML/HR","volume",4.6296296296296294e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/6hrs; ml/6 hrs; mL per 6hrs; 6 hrs; milliliters per 6 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 72 hour","mL/(72.h)","ML/HR","volume",3.8580246913580245e-12,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/72hrs; ml/72 hrs; mL per 72hrs; 72 hrs; milliliters per 72 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour","mL/(8.h)","ML/HR","volume",3.472222222222222e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/8hrs; ml/8 hrs; mL per 8hrs; 8 hrs; milliliters per 8 hours; millilitres; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour per kilogram","mL/(8.h)/kg","(ML/HR)/KG","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/h)/kg","iso1000",true,null,null,1,false,false,0,"mL/kg/(8.h); ml/8h/kg; ml/8 h/kg; ml/8hr/kg; ml/8 hr/kgr; mL per 8h per kg; 8 h; 8hr; 8 hr; milliliters per 8 hours per kilogram; millilitres; shift","LOINC","VRatCnt","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per square inch (international)","mL/[sin_i]","ML/[SIN_I]","volume",0.0015500031000061998,[1,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"mL/sin; mL/in2; mL/in^2; mL per sin; in2; in^2; sq. in; milliliters per square inch; inch squared","LOINC","ArVol","Clinical","","l",null,"1",1,false],[false,"milliliter per centimeter of water","mL/cm[H2O]","ML/CM[H2O]","volume",1.0197162129779282e-11,[4,2,-1,0,0,0,0],"mL/(cm\xa0HO2)","iso1000",true,null,null,1,false,false,0,"milliliters per centimeter of water; millilitre per centimetre of water; millilitres per centimetre of water; mL/cmH2O; mL/cm H2O; mL per cmH2O; mL per cm H2O","LOINC","Compli","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per day","mL/d","ML/D","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/d","iso1000",true,null,null,1,false,false,0,"ml/day; ml per day; milliliters per day; 24 hours; 24hrs; millilitre;","LOINC","VRat","Clinical","usually used to measure fluid output or input; flow rate","l",null,"1",1,false],[false,"milliliter per deciliter","mL/dL","ML/DL","volume",0.009999999999999998,[0,0,0,0,0,0,0],"mL/dL","iso1000",true,null,null,1,false,false,0,"mL per dL; millilitres; decilitre; milliliters","LOINC","VFr; VFrDiff","Clinical","","l",null,"1",1,false],[false,"milliliter per hour","mL/h","ML/HR","volume",2.7777777777777777e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"mL/hr; mL per hr; milliliters per hour; millilitres; fluid intake; fluid output","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram","mL/kg","ML/KG","volume",9.999999999999999e-10,[3,0,-1,0,0,0,0],"mL/kg","iso1000",true,null,null,1,false,false,0,"mL per kg; milliliters per kilogram; millilitres","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram per 8 hour","mL/kg/(8.h)","(ML/KG)/HR","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(8.h.kg); mL/kg/8hrs; mL/kg/8 hrs; mL per kg per 8hrs; 8 hrs; milliliters per kilograms per 8 hours; millilitres; shift","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per day","mL/kg/d","(ML/KG)/D","volume",1.1574074074074072e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/d","iso1000",true,null,null,1,false,false,0,"mL/(kg.d); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; mg/kg/24hrs; 24 hrs; per 24 hours millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per hour","mL/kg/h","(ML/KG)/HR","volume",2.7777777777777774e-13,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(kg.h); mL/kg/hr; mL per kg per hr; milliliters per kilograms per hour; millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per minute","mL/kg/min","(ML/KG)/MIN","volume",1.6666666666666664e-11,[3,-1,-1,0,0,0,0],"(mL/kg)/min","iso1000",true,null,null,1,false,false,0,"mL/(kg.min); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; millilitres","LOINC","RelEngRat","Clinical","used for tests that measure activity metabolic rate compared to standard resting metabolic rate ","l",null,"1",1,false],[false,"milliliter per square meter","mL/m2","ML/M2","volume",0.000001,[1,0,0,0,0,0,0],"mL/(m2)","iso1000",true,null,null,1,false,false,0,"mL/m^2; mL/sq. meter; mL per m2; m^2; sq. meter; milliliters per square meter; millilitres; meter squared","LOINC","ArVol","Clinical","used for tests that relate to heart work - e.g. ventricular stroke volume; atrial volume per body surface area","l",null,"1",1,false],[false,"milliliter per millibar","mL/mbar","ML/MBAR","volume",1e-11,[4,2,-1,0,0,0,0],"mL/mbar","iso1000",true,null,null,1,false,false,0,"mL per mbar; milliliters per millibar; millilitres","LOINC","","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per minute","mL/min","ML/MIN","volume",1.6666666666666667e-8,[3,-1,0,0,0,0,0],"mL/min","iso1000",true,null,null,1,false,false,0,"mL per min; milliliters; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per minute per square meter","mL/min/m2","(ML/MIN)/M2","volume",1.6666666666666667e-8,[1,-1,0,0,0,0,0],"(mL/min)/(m2)","iso1000",true,null,null,1,false,false,0,"ml/min/m^2; ml/min/sq. meter; mL per min per m2; m^2; sq. meter; milliliters per minutes per square meter; millilitres; metre; meter squared","LOINC","ArVRat","Clinical","unit used to measure volume per body surface area; oxygen consumption index","l",null,"1",1,false],[false,"milliliter per millimeter","mL/mm","ML/MM","volume",0.001,[2,0,0,0,0,0,0],"mL/mm","iso1000",true,null,null,1,false,false,0,"mL per mm; milliliters per millimeter; millilitres; millimetre","LOINC","Lineic Volume","Clinical","","l",null,"1",1,false],[false,"milliliter per second","mL/s","ML/S","volume",0.000001,[3,-1,0,0,0,0,0],"mL/s","iso1000",true,null,null,1,false,false,0,"ml/sec; mL per sec; milliliters per second; millilitres","LOINC","Vel; VelRat; VRat","Clinical","","l",null,"1",1,false],[true,"millimeter","mm","MM","length",0.001,[1,0,0,0,0,0,0],"mm",null,false,"L",null,1,false,false,0,"millimeters; millimetres; height; length; diameter; thickness; axis; curvature; size","LOINC","Len","Clinical","",null,null,null,null,false],[true,"millimeter per hour","mm/h","MM/HR","length",2.7777777777777776e-7,[1,-1,0,0,0,0,0],"mm/h",null,false,"L",null,1,false,false,0,"mm/hr; mm per hr; millimeters per hour; millimetres","LOINC","Vel","Clinical","unit to measure sedimentation rate",null,null,null,null,false],[true,"millimeter per minute","mm/min","MM/MIN","length",0.000016666666666666667,[1,-1,0,0,0,0,0],"mm/min",null,false,"L",null,1,false,false,0,"mm per min; millimeters per minute; millimetres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"millimeter of water","mm[H2O]","MM[H2O]","pressure",9806.65,[-1,-2,1,0,0,0,0],"mm\xa0HO2","clinical",true,null,null,1,false,false,0,"mmH2O; mm H2O; millimeters of water; millimetres","LOINC","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"millimeter of mercury","mm[Hg]","MM[HG]","pressure",133322,[-1,-2,1,0,0,0,0],"mm\xa0Hg","clinical",true,null,null,1,false,false,0,"mmHg; mm Hg; millimeters of mercury; millimetres","LOINC","Pres; PPres; Ratio","Clinical","1 mm[Hg] = 1 torr; unit to measure blood pressure","kPa","KPAL","133.3220",133.322,false],[true,"square millimeter","mm2","MM2","length",0.000001,[2,0,0,0,0,0,0],"mm2",null,false,"L",null,1,false,false,0,"mm^2; sq. mm.; sq. millimeters; millimeters squared; millimetres","LOINC","Area","Clinical","",null,null,null,null,false],[false,"millimole","mmol","MMOL","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"mmol","si",true,null,null,1,false,false,1,"millimoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 12 hour","mmol/(12.h)","MMOL/HR","amount of substance",13940131250000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/12hrs; mmol/12 hrs; mmol per 12 hrs; 12hrs; millimoles per 12 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 2 hour","mmol/(2.h)","MMOL/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/2hrs; mmol/2 hrs; mmol per 2 hrs; 2hrs; millimoles per 2 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 24 hour","mmol/(24.h)","MMOL/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 5 hour","mmol/(5.h)","MMOL/HR","amount of substance",33456315000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/5hrs; mmol/5 hrs; mmol per 5 hrs; 5hrs; millimoles per 5 hours","LOINC","SRat","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 6 hour","mmol/(6.h)","MMOL/HR","amount of substance",27880262500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/6hrs; mmol/6 hrs; mmol per 6 hrs; 6hrs; millimoles per 6 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 8 hour","mmol/(8.h)","MMOL/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/8hrs; mmol/8 hrs; mmol per 8 hrs; 8hrs; millimoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per day","mmol/d","MMOL/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/d","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per deciliter","mmol/dL","MMOL/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"mmol/dL","si",true,null,null,1,false,false,1,"mmol per dL; millimoles; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per gram","mmol/g","MMOL/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mmol/g","si",true,null,null,1,false,false,1,"mmol per gram; millimoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per hour","mmol/h","MMOL/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/hr; mmol per hr; millimoles per hour","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram","mmol/kg","MMOL/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"mmol/kg","si",true,null,null,1,false,false,1,"mmol per kg; millimoles per kilogram","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per 8 hour","mmol/kg/(8.h)","(MMOL/KG)/HR","amount of substance",20910196875000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/(8.h.kg); mmol/kg/8hrs; mmol/kg/8 hrs; mmol per kg per 8hrs; 8 hrs; millimoles per kilograms per 8 hours; shift","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per day","mmol/kg/d","(MMOL/KG)/D","amount of substance",6970065625000,[0,-1,-1,0,0,0,0],"(mmol/kg)/d","si",true,null,null,1,false,false,1,"mmol/kg/dy; mmol/kg/day; mmol per kg per dy; millimoles per kilograms per day","LOINC","RelSRat","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per hour","mmol/kg/h","(MMOL/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/kg/hr; mmol per kg per hr; millimoles per kilograms per hour","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per minute","mmol/kg/min","(MMOL/KG)/MIN","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/min","si",true,null,null,1,false,false,1,"mmol/(kg.min); mmol/kg/min; mmol per kg per min; millimoles per kilograms per minute","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass; note that the unit for the enzyme unit U = umol/min. mmol/kg/min = kU/kg; ","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per liter","mmol/L","MMOL/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mmol/L","si",true,null,null,1,false,false,1,"mmol per L; millimoles per liter; litre","LOINC","SCnc","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per square meter","mmol/m2","MMOL/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"mmol/(m2)","si",true,null,null,1,false,false,1,"mmol/m^2; mmol/sq. meter; mmol per m2; m^2; sq. meter; millimoles; meter squared; metre","LOINC","ArSub","Clinical","unit used to measure molar dose per patient body surface area","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per minute","mmol/min","MMOL/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"mmol/min","si",true,null,null,1,false,false,1,"mmol per min; millimoles per minute","LOINC","Srat; CAct","Clinical","unit for the enzyme unit U = umol/min. mmol/min = kU","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per millimole","mmol/mmol","MMOL/MMOL","amount of substance",1,[0,0,0,0,0,0,0],"mmol/mmol","si",true,null,null,1,false,false,0,"mmol per mmol; millimoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per mole","mmol/mol","MMOL/MOL","amount of substance",0.001,[0,0,0,0,0,0,0],"mmol/mol","si",true,null,null,1,false,false,0,"mmol per mol; millimoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per second per liter","mmol/s/L","(MMOL/S)/L","amount of substance",6.0221367e+23,[-3,-1,0,0,0,0,0],"(mmol/s)/L","si",true,null,null,1,false,false,1,"mmol/sec/L; mmol per s per L; per sec; millimoles per seconds per liter; litre","LOINC","CCnc ","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram","mol/kg","MOL/KG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mol/kg","si",true,null,null,1,false,false,1,"mol per kg; moles; mols","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram per second","mol/kg/s","(MOL/KG)/S","amount of substance",602213670000000000000,[0,-1,-1,0,0,0,0],"(mol/kg)/s","si",true,null,null,1,false,false,1,"mol/kg/sec; mol per kg per sec; moles per kilograms per second; mols","LOINC","CCnt","Clinical","unit of catalytic activity (mol/s) per mass (kg)","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per liter","mol/L","MOL/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"mol/L","si",true,null,null,1,false,false,1,"mol per L; moles per liter; litre; moles; mols","LOINC","SCnc","Clinical","unit often used in tests measuring oxygen content","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per cubic meter","mol/m3","MOL/M3","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mol/(m3)","si",true,null,null,1,false,false,1,"mol/m^3; mol/cu. m; mol per m3; m^3; cu. meter; mols; moles; meters cubed; metre; mole per kiloliter; kilolitre; mol/kL","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per milliliter","mol/mL","MOL/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"mol/mL","si",true,null,null,1,false,false,1,"mol per mL; moles; millilitre; mols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per mole","mol/mol","MOL/MOL","amount of substance",1,[0,0,0,0,0,0,0],"mol/mol","si",true,null,null,1,false,false,0,"mol per mol; moles per mol; mols","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per second","mol/s","MOL/S","amount of substance",6.0221367e+23,[0,-1,0,0,0,0,0],"mol/s","si",true,null,null,1,false,false,1,"mol per sec; moles per second; mols","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"milliosmole","mosm","MOSM","amount of substance (dissolved particles)",602213670000000000000,[0,0,0,0,0,0,0],"mosm","chemical",true,null,null,1,false,false,1,"milliosmoles","LOINC","Osmol","Clinical","equal to 1/1000 of an osmole","mol","MOL","1",1,false],[false,"milliosmole per kilogram","mosm/kg","MOSM/KG","amount of substance (dissolved particles)",602213670000000000,[0,0,-1,0,0,0,0],"mosm/kg","chemical",true,null,null,1,false,false,1,"mosm per kg; milliosmoles per kilogram","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"milliosmole per liter","mosm/L","MOSM/L","amount of substance (dissolved particles)",6.0221367e+23,[-3,0,0,0,0,0,0],"mosm/L","chemical",true,null,null,1,false,false,1,"mosm per liter; litre; milliosmoles","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"millipascal","mPa","MPAL","pressure",1,[-1,-2,1,0,0,0,0],"mPa","si",true,null,null,1,false,false,0,"millipascals","LOINC","Pres","Clinical","unit of pressure","N/m2","N/M2","1",1,false],[false,"millipascal second","mPa.s","MPAL.S","pressure",1,[-1,-1,1,0,0,0,0],"mPa.s","si",true,null,null,1,false,false,0,"mPa*s; millipoise; mP; dynamic viscosity","LOINC","Visc","Clinical","base units for millipoise, a measurement of dynamic viscosity","N/m2","N/M2","1",1,false],[true,"megasecond","Ms","MAS","time",1000000,[0,1,0,0,0,0,0],"Ms",null,false,"T",null,1,false,false,0,"megaseconds","LOINC","Time","Clinical","",null,null,null,null,false],[true,"millisecond","ms","MS","time",0.001,[0,1,0,0,0,0,0],"ms",null,false,"T",null,1,false,false,0,"milliseconds; duration","LOINC","Time","Clinical","",null,null,null,null,false],[false,"milli enzyme unit per gram","mU/g","MU/G","catalytic activity",10036894500000,[0,-1,-1,0,0,0,0],"mU/g","chemical",true,null,null,1,false,false,1,"mU per gm; milli enzyme units per gram; enzyme activity; enzymatic activity per mass","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per liter","mU/L","MU/L","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"mU/L","chemical",true,null,null,1,false,false,1,"mU per liter; litre; milli enzyme units enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milligram","mU/mg","MU/MG","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"mU/mg","chemical",true,null,null,1,false,false,1,"mU per mg; milli enzyme units per milligram","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter","mU/mL","MU/ML","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"mU/mL","chemical",true,null,null,1,false,false,1,"mU per mL; milli enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter per minute","mU/mL/min","(MU/ML)/MIN","catalytic activity",167281575000000000,[-3,-2,0,0,0,0,0],"(mU/mL)/min","chemical",true,null,null,1,false,false,1,"mU per mL per min; mU per milliliters per minute; millilitres; milli enzyme units; enzymatic activity; enzyme activity","LOINC","CCncRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"millivolt","mV","MV","electric potential",1,[2,-2,1,0,0,-1,0],"mV","si",true,null,null,1,false,false,0,"millivolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false],[false,"Newton centimeter","N.cm","N.CM","force",10,[2,-2,1,0,0,0,0],"N.cm","si",true,null,null,1,false,false,0,"N*cm; Ncm; N cm; Newton*centimeters; Newton* centimetres; torque; work","LOINC","","Clinical","as a measurement of work, N.cm = 1/100 Joules;\\nnote that N.m is the standard unit of measurement for torque (although dimensionally equivalent to Joule), and N.cm can also be thought of as a torqe unit","kg.m/s2","KG.M/S2","1",1,false],[false,"Newton second","N.s","N.S","force",1000,[1,-1,1,0,0,0,0],"N.s","si",true,null,null,1,false,false,0,"Newton*seconds; N*s; N s; Ns; impulse; imp","LOINC","","Clinical","standard unit of impulse","kg.m/s2","KG.M/S2","1",1,false],[true,"nanogram","ng","NG","mass",1e-9,[0,0,1,0,0,0,0],"ng",null,false,"M",null,1,false,false,0,"nanograms","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"nanogram per 24 hour","ng/(24.h)","NG/HR","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/24hrs; ng/24 hrs; nanograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per 8 hour","ng/(8.h)","NG/HR","mass",3.4722222222222224e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/8hrs; ng/8 hrs; nanograms per 8 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per million","ng/10*6","NG/(10*6)","mass",1e-15,[0,0,1,0,0,0,0],"ng/(106)",null,false,"M",null,1,false,false,0,"ng/10^6; ng per 10*6; 10^6; nanograms","LOINC","MNum","Clinical","",null,null,null,null,false],[true,"nanogram per day","ng/d","NG/D","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/d",null,false,"M",null,1,false,false,0,"ng/dy; ng per day; nanograms ","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per deciliter","ng/dL","NG/DL","mass",0.00001,[-3,0,1,0,0,0,0],"ng/dL",null,false,"M",null,1,false,false,0,"ng per dL; nanograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per gram","ng/g","NG/G","mass",1e-9,[0,0,0,0,0,0,0],"ng/g",null,false,"M",null,1,false,false,0,"ng/gm; ng per gm; nanograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per hour","ng/h","NG/HR","mass",2.777777777777778e-13,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/hr; ng per hr; nanograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram","ng/kg","NG/KG","mass",1e-12,[0,0,0,0,0,0,0],"ng/kg",null,false,"M",null,1,false,false,0,"ng per kg; nanograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram per 8 hour","ng/kg/(8.h)","(NG/KG)/HR","mass",3.472222222222222e-17,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(8.h.kg); ng/kg/8hrs; ng/kg/8 hrs; ng per kg per 8hrs; 8 hrs; nanograms per kilograms per 8 hours; shift","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per hour","ng/kg/h","(NG/KG)/HR","mass",2.7777777777777775e-16,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(kg.h); ng/kg/hr; ng per kg per hr; nanograms per kilograms per hour","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per minute","ng/kg/min","(NG/KG)/MIN","mass",1.6666666666666667e-14,[0,-1,0,0,0,0,0],"(ng/kg)/min",null,false,"M",null,1,false,false,0,"ng/(kg.min); ng per kg per min; nanograms per kilograms per minute","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per liter","ng/L","NG/L","mass",0.000001,[-3,0,1,0,0,0,0],"ng/L",null,false,"M",null,1,false,false,0,"ng per L; nanograms per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per square meter","ng/m2","NG/M2","mass",1e-9,[-2,0,1,0,0,0,0],"ng/(m2)",null,false,"M",null,1,false,false,0,"ng/m^2; ng/sq. m; ng per m2; m^2; sq. meter; nanograms; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"nanogram per milligram","ng/mg","NG/MG","mass",0.000001,[0,0,0,0,0,0,0],"ng/mg",null,false,"M",null,1,false,false,0,"ng per mg; nanograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per milligram per hour","ng/mg/h","(NG/MG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(ng/mg)/h",null,false,"M",null,1,false,false,0,"ng/mg/hr; ng per mg per hr; nanograms per milligrams per hour","LOINC","MRtoRat ","Clinical","",null,null,null,null,false],[true,"nanogram per minute","ng/min","NG/MIN","mass",1.6666666666666667e-11,[0,-1,1,0,0,0,0],"ng/min",null,false,"M",null,1,false,false,0,"ng per min; nanograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per millliiter","ng/mL","NG/ML","mass",0.001,[-3,0,1,0,0,0,0],"ng/mL",null,false,"M",null,1,false,false,0,"ng per mL; nanograms; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per milliliter per hour","ng/mL/h","(NG/ML)/HR","mass",2.7777777777777776e-7,[-3,-1,1,0,0,0,0],"(ng/mL)/h",null,false,"M",null,1,false,false,0,"ng/mL/hr; ng per mL per mL; nanograms per milliliter per hour; nanogram per millilitre per hour; nanograms per millilitre per hour; enzymatic activity per volume; enzyme activity per milliliters","LOINC","CCnc","Clinical","tests that measure enzymatic activity",null,null,null,null,false],[true,"nanogram per second","ng/s","NG/S","mass",1e-9,[0,-1,1,0,0,0,0],"ng/s",null,false,"M",null,1,false,false,0,"ng/sec; ng per sec; nanograms per second","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per enzyme unit","ng/U","NG/U","mass",9.963241120049634e-26,[0,1,1,0,0,0,0],"ng/U",null,false,"M",null,1,false,false,-1,"ng per U; nanograms per enzyme unit","LOINC","CMass","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"nanokatal","nkat","NKAT","catalytic activity",602213670000000,[0,-1,0,0,0,0,0],"nkat","chemical",true,null,null,1,false,false,1,"nanokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"nanoliter","nL","NL","volume",1.0000000000000002e-12,[3,0,0,0,0,0,0],"nL","iso1000",true,null,null,1,false,false,0,"nanoliters; nanolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"nanometer","nm","NM","length",1e-9,[1,0,0,0,0,0,0],"nm",null,false,"L",null,1,false,false,0,"nanometers; nanometres","LOINC","Len","Clinical","",null,null,null,null,false],[true,"nanometer per second per liter","nm/s/L","(NM/S)/L","length",0.000001,[-2,-1,0,0,0,0,0],"(nm/s)/L",null,false,"L",null,1,false,false,0,"nm/sec/liter; nm/sec/litre; nm per s per l; nm per sec per l; nanometers per second per liter; nanometre per second per litre; nanometres per second per litre","LOINC","VelCnc","Clinical","",null,null,null,null,false],[false,"nanomole","nmol","NMOL","amount of substance",602213670000000,[0,0,0,0,0,0,0],"nmol","si",true,null,null,1,false,false,1,"nanomoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per 24 hour","nmol/(24.h)","NMOL/HR","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/h","si",true,null,null,1,false,false,1,"nmol/24hr; nmol/24 hr; nanomoles per 24 hours; nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per day","nmol/d","NMOL/D","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/d","si",true,null,null,1,false,false,1,"nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day; nmol/24hr; nmol/24 hr; nanomoles per 24 hours; ","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per deciliter","nmol/dL","NMOL/DL","amount of substance",6022136700000000000,[-3,0,0,0,0,0,0],"nmol/dL","si",true,null,null,1,false,false,1,"nmol per dL; nanomoles per deciliter; nanomole per decilitre; nanomoles per decilitre; nanomole/deciliter; nanomole/decilitre; nanomol/deciliter; nanomol/decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per gram","nmol/g","NMOL/G","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"nmol/g","si",true,null,null,1,false,false,1,"nmol per gram; nanomoles per gram; nanomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per hour per liter","nmol/h/L","(NMOL/HR)/L","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(nmol/h)/L","si",true,null,null,1,false,false,1,"nmol/hrs/L; nmol per hrs per L; nanomoles per hours per liter; litre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per liter","nmol/L","NMOL/L","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"nmol/L","si",true,null,null,1,false,false,1,"nmol per L; nanomoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram","nmol/mg","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nmol per mg; nanomoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram per hour","nmol/mg/h","(NMOL/MG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(nmol/mg)/h","si",true,null,null,1,false,false,1,"nmol/mg/hr; nmol per mg per hr; nanomoles per milligrams per hour","LOINC","SCntRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram of protein","nmol/mg{prot}","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nanomoles; nmol/mg prot; nmol per mg prot","LOINC","Ratio; CCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute","nmol/min","NMOL/MIN","amount of substance",10036894500000,[0,-1,0,0,0,0,0],"nmol/min","si",true,null,null,1,false,false,1,"nmol per min; nanomoles per minute; milli enzyme units; enzyme activity per volume; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/min = mU (milli enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute per milliliter","nmol/min/mL","(NMOL/MIN)/ML","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/min)/mL","si",true,null,null,1,false,false,1,"nmol per min per mL; nanomoles per minutes per milliliter; millilitre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter","nmol/mL","NMOL/ML","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"nmol/mL","si",true,null,null,1,false,false,1,"nmol per mL; nanomoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per hour","nmol/mL/h","(NMOL/ML)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/h","si",true,null,null,1,false,false,1,"nmol/mL/hr; nmol per mL per hr; nanomoles per milliliters per hour; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per minute","nmol/mL/min","(NMOL/ML)/MIN","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/min","si",true,null,null,1,false,false,1,"nmol per mL per min; nanomoles per milliliters per min; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole","nmol/mmol","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nmol per mmol; nanomoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole of creatinine","nmol/mmol{creat}","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per mole","nmol/mol","NMOL/MOL","amount of substance",1e-9,[0,0,0,0,0,0,0],"nmol/mol","si",true,null,null,1,false,false,0,"nmol per mole; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per nanomole","nmol/nmol","NMOL/NMOL","amount of substance",1,[0,0,0,0,0,0,0],"nmol/nmol","si",true,null,null,1,false,false,0,"nmol per nmol; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second","nmol/s","NMOL/S","amount of substance",602213670000000,[0,-1,0,0,0,0,0],"nmol/s","si",true,null,null,1,false,false,1,"nmol/sec; nmol per sec; nanomoles per sercond; milli enzyme units; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second per liter","nmol/s/L","(NMOL/S)/L","amount of substance",602213670000000000,[-3,-1,0,0,0,0,0],"(nmol/s)/L","si",true,null,null,1,false,false,1,"nmol/sec/L; nmol per s per L; nmol per sec per L; nanomoles per seconds per liter; litre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[true,"nanosecond","ns","NS","time",1e-9,[0,1,0,0,0,0,0],"ns",null,false,"T",null,1,false,false,0,"nanoseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"nanoenzyme unit per milliliter","nU/mL","NU/ML","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"nU/mL","chemical",true,null,null,1,false,false,1,"nU per mL; nanoenzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 fU = pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Ohm meter","Ohm.m","OHM.M","electric resistance",1000,[3,-1,1,0,0,-2,0],"\u03a9.m","si",true,null,null,1,false,false,0,"electric resistivity; meters; metres","LOINC","","Clinical","unit of electric resistivity","V/A","V/A","1",1,false],[false,"osmole per kilogram","osm/kg","OSM/KG","amount of substance (dissolved particles)",602213670000000000000,[0,0,-1,0,0,0,0],"osm/kg","chemical",true,null,null,1,false,false,1,"osm per kg; osmoles per kilogram; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"osmole per liter","osm/L","OSM/L","amount of substance (dissolved particles)",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"osm/L","chemical",true,null,null,1,false,false,1,"osm per L; osmoles per liter; litre; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"picoampere","pA","PA","electric current",1e-12,[0,-1,0,0,0,1,0],"pA","si",true,null,null,1,false,false,0,"picoamperes","LOINC","","Clinical","equal to 10^-12 amperes","C/s","C/S","1",1,false],[true,"picogram","pg","PG","mass",1e-12,[0,0,1,0,0,0,0],"pg",null,false,"M",null,1,false,false,0,"picograms","LOINC","Mass; EntMass","Clinical","",null,null,null,null,false],[true,"picogram per deciliter","pg/dL","PG/DL","mass",9.999999999999999e-9,[-3,0,1,0,0,0,0],"pg/dL",null,false,"M",null,1,false,false,0,"pg per dL; picograms; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per liter","pg/L","PG/L","mass",1e-9,[-3,0,1,0,0,0,0],"pg/L",null,false,"M",null,1,false,false,0,"pg per L; picograms; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per milligram","pg/mg","PG/MG","mass",1e-9,[0,0,0,0,0,0,0],"pg/mg",null,false,"M",null,1,false,false,0,"pg per mg; picograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"picogram per milliliter","pg/mL","PG/ML","mass",0.000001,[-3,0,1,0,0,0,0],"pg/mL",null,false,"M",null,1,false,false,0,"pg per mL; picograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per millimeter","pg/mm","PG/MM","mass",1e-9,[-1,0,1,0,0,0,0],"pg/mm",null,false,"M",null,1,false,false,0,"pg per mm; picogram/millimeter; picogram/millimetre; picograms per millimeter; millimetre","LOINC","Lineic Mass","Clinical","",null,null,null,null,false],[false,"picokatal","pkat","PKAT","catalytic activity",602213670000,[0,-1,0,0,0,0,0],"pkat","chemical",true,null,null,1,false,false,1,"pkats; picokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"picoliter","pL","PL","volume",1e-15,[3,0,0,0,0,0,0],"pL","iso1000",true,null,null,1,false,false,0,"picoliters; picolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"picometer","pm","PM","length",1e-12,[1,0,0,0,0,0,0],"pm",null,false,"L",null,1,false,false,0,"picometers; picometres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"picomole","pmol","PMOL","amount of substance",602213670000,[0,0,0,0,0,0,0],"pmol","si",true,null,null,1,false,false,1,"picomoles; pmols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per 24 hour","pmol/(24.h)","PMOL/HR","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/h","si",true,null,null,1,false,false,1,"pmol/24hrs; pmol/24 hrs; pmol per 24 hrs; 24hrs; days; dy; picomoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per day","pmol/d","PMOL/D","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/d","si",true,null,null,1,false,false,1,"pmol/dy; pmol per day; 24 hours; 24hrs; 24 hrs; picomoles","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per deciliter","pmol/dL","PMOL/DL","amount of substance",6022136700000000,[-3,0,0,0,0,0,0],"pmol/dL","si",true,null,null,1,false,false,1,"pmol per dL; picomoles per deciliter; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per gram","pmol/g","PMOL/G","amount of substance",602213670000,[0,0,-1,0,0,0,0],"pmol/g","si",true,null,null,1,false,false,1,"pmol per gm; picomoles per gram; picomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per hour per milliliter ","pmol/h/mL","(PMOL/HR)/ML","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(pmol/h)/mL","si",true,null,null,1,false,false,1,"pmol/hrs/mL; pmol per hrs per mL; picomoles per hour per milliliter; millilitre; micro enzyme units per volume; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. ","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per liter","pmol/L","PMOL/L","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"pmol/L","si",true,null,null,1,false,false,1,"picomole/liter; pmol per L; picomoles; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per minute","pmol/min","PMOL/MIN","amount of substance",10036894500,[0,-1,0,0,0,0,0],"pmol/min","si",true,null,null,1,false,false,1,"picomole/minute; pmol per min; picomoles per minute; micro enzyme units; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. pmol/min = uU (micro enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per milliliter","pmol/mL","PMOL/ML","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"pmol/mL","si",true,null,null,1,false,false,1,"picomole/milliliter; picomole/millilitre; pmol per mL; picomoles; millilitre; picomols; pmols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per micromole","pmol/umol","PMOL/UMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"pmol/\u03bcmol","si",true,null,null,1,false,false,0,"pmol/mcgmol; picomole/micromole; pmol per umol; pmol per mcgmol; picomoles ","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"picosecond","ps","PS","time",1e-12,[0,1,0,0,0,0,0],"ps",null,false,"T",null,1,false,false,0,"picoseconds; psec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"picotesla","pT","PT","magnetic flux density",1e-9,[0,-1,1,0,0,-1,0],"pT","si",true,null,null,1,false,false,0,"picoteslas","LOINC","","Clinical","SI unit of magnetic field strength for magnetic field B","Wb/m2","WB/M2","1",1,false],[false,"enzyme unit per 12 hour","U/(12.h)","U/HR","catalytic activity",232335520833.33334,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/12hrs; U/ 12hrs; U per 12 hrs; 12hrs; enzyme units per 12 hours; enzyme activity; enzymatic activity per time; umol per min per 12 hours; micromoles per minute per 12 hours; umol/min/12hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 2 hour","U/(2.h)","U/HR","catalytic activity",1394013125000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/2hrs; U/ 2hrs; U per 2 hrs; 2hrs; enzyme units per 2 hours; enzyme activity; enzymatic activity per time; umol per minute per 2 hours; micromoles per minute; umol/min/2hr; umol per min per 2hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 24 hour","U/(24.h)","U/HR","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/24hrs; U/ 24hrs; U per 24 hrs; 24hrs; enzyme units per 24 hours; enzyme activity; enzymatic activity per time; micromoles per minute per 24 hours; umol/min/24hr; umol per min per 24hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10","U/10","U","catalytic activity",1003689450000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"enzyme unit/10; U per 10; enzyme units per 10; enzymatic activity; enzyme activity; micromoles per minute; umol/min/10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10 billion","U/10*10","U/(10*10)","catalytic activity",1003689.45,[0,-1,0,0,0,0,0],"U/(1010)","chemical",true,null,null,1,false,false,1,"U per 10*10; enzyme units per 10*10; U per 10 billion; enzyme units; enzymatic activity; micromoles per minute per 10 billion; umol/min/10*10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per trillion","U/10*12","U/(10*12)","catalytic activity",10036.8945,[0,-1,0,0,0,0,0],"U/(1012)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*12; U per 10*12; enzyme units per 10*12; enzyme units per trillion; enzymatic activity; micromoles per minute per trillion; umol/min/10*12; umol per min per 10*12","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per million","U/10*6","U/(10*6)","catalytic activity",10036894500,[0,-1,0,0,0,0,0],"U/(106)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*6; U per 10*6; enzyme units per 10*6; enzyme units; enzymatic activity per volume; micromoles per minute per million; umol/min/10*6; umol per min per 10*6","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per billion","U/10*9","U/(10*9)","catalytic activity",10036894.5,[0,-1,0,0,0,0,0],"U/(109)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*9; U per 10*9; enzyme units per 10*9; enzymatic activity per volume; micromoles per minute per billion; umol/min/10*9; umol per min per 10*9","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per day","U/d","U/D","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/d","chemical",true,null,null,1,false,false,1,"U/dy; enzyme units per day; enzyme units; enzyme activity; enzymatic activity per time; micromoles per minute per day; umol/min/day; umol per min per day","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per deciliter","U/dL","U/DL","catalytic activity",100368945000000000000,[-3,-1,0,0,0,0,0],"U/dL","chemical",true,null,null,1,false,false,1,"U per dL; enzyme units per deciliter; decilitre; micromoles per minute per deciliter; umol/min/dL; umol per min per dL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per gram","U/g","U/G","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"U/g","chemical",true,null,null,1,false,false,1,"U/gm; U per gm; enzyme units per gram; micromoles per minute per gram; umol/min/g; umol per min per g","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per hour","U/h","U/HR","catalytic activity",2788026250000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/hr; U per hr; enzyme units per hour; micromoles per minute per hour; umol/min/hr; umol per min per hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per liter","U/L","U/L","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"U/L","chemical",true,null,null,1,false,false,1,"enzyme unit/liter; enzyme unit/litre; U per L; enzyme units per liter; enzyme unit per litre; micromoles per minute per liter; umol/min/L; umol per min per L","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per minute","U/min","U/MIN","catalytic activity",167281575000000,[0,-2,0,0,0,0,0],"U/min","chemical",true,null,null,1,false,false,1,"enzyme unit/minute; U per min; enzyme units; umol/min/min; micromoles per minute per minute; micromoles per min per min; umol","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per milliliter","U/mL","U/ML","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"U/mL","chemical",true,null,null,1,false,false,1,"U per mL; enzyme units per milliliter; millilitre; micromoles per minute per milliliter; umol/min/mL; umol per min per mL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per second","U/s","U/S","catalytic activity",10036894500000000,[0,-2,0,0,0,0,0],"U/s","chemical",true,null,null,1,false,false,1,"U/sec; U per second; enzyme units per second; micromoles per minute per second; umol/min/sec; umol per min per sec","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"micro international unit","u[IU]","U[IU]","arbitrary",0.000001,[0,0,0,0,0,0,0],"\u03bci.U.","chemical",true,null,null,1,false,true,0,"uIU; u IU; microinternational units","LOINC","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per liter","u[IU]/L","U[IU]/L","arbitrary",0.001,[-3,0,0,0,0,0,0],"(\u03bci.U.)/L","chemical",true,null,null,1,false,true,0,"uIU/L; u IU/L; uIU per L; microinternational units per liter; litre; ","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per milliliter","u[IU]/mL","U[IU]/ML","arbitrary",1,[-3,0,0,0,0,0,0],"(\u03bci.U.)/mL","chemical",true,null,null,1,false,true,0,"uIU/mL; u IU/mL; uIU per mL; microinternational units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"microequivalent","ueq","UEQ","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"\u03bceq","chemical",true,null,null,1,false,false,1,"microequivalents; 10^-6 equivalents; 10-6 equivalents","LOINC","Sub","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per liter","ueq/L","UEQ/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"\u03bceq/L","chemical",true,null,null,1,false,false,1,"ueq per liter; litre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per milliliter","ueq/mL","UEQ/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"\u03bceq/mL","chemical",true,null,null,1,false,false,1,"ueq per milliliter; millilitre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[true,"microgram","ug","UG","mass",0.000001,[0,0,1,0,0,0,0],"\u03bcg",null,false,"M",null,1,false,false,0,"mcg; micrograms; 10^-6 grams; 10-6 grams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"microgram per 100 gram","ug/(100.g)","UG/G","mass",1e-8,[0,0,0,0,0,0,0],"\u03bcg/g",null,false,"M",null,1,false,false,0,"ug/100gm; ug/100 gm; mcg; ug per 100g; 100 gm; mcg per 100g; micrograms per 100 grams","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per 24 hour","ug/(24.h)","UG/HR","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/24hrs; ug/24 hrs; mcg/24hrs; ug per 24hrs; mcg per 24hrs; 24 hrs; micrograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per 8 hour","ug/(8.h)","UG/HR","mass",3.472222222222222e-11,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/8hrs; ug/8 hrs; mcg/8hrs; ug per 8hrs; mcg per 8hrs; 8 hrs; micrograms per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per square foot (international)","ug/[sft_i]","UG/[SFT_I]","mass",0.000010763910416709721,[-2,0,1,0,0,0,0],"\u03bcg",null,false,"M",null,1,false,false,0,"ug/sft; ug/ft2; ug/ft^2; ug/sq. ft; micrograms; sq. foot; foot squared","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"microgram per day","ug/d","UG/D","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"\u03bcg/d",null,false,"M",null,1,false,false,0,"ug/dy; mcg/dy; ug per day; mcg; micrograms per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per deciliter","ug/dL","UG/DL","mass",0.009999999999999998,[-3,0,1,0,0,0,0],"\u03bcg/dL",null,false,"M",null,1,false,false,0,"ug per dL; mcg/dl; mcg per dl; micrograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per gram","ug/g","UG/G","mass",0.000001,[0,0,0,0,0,0,0],"\u03bcg/g",null,false,"M",null,1,false,false,0,"ug per gm; mcg/gm; mcg per g; micrograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per hour","ug/h","UG/HR","mass",2.7777777777777777e-10,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/hr; mcg/hr; mcg per hr; ug per hr; ug per hour; micrograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per kilogram","ug/kg","UG/KG","mass",9.999999999999999e-10,[0,0,0,0,0,0,0],"\u03bcg/kg",null,false,"M",null,1,false,false,0,"ug per kg; mcg/kg; mcg per kg; micrograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per kilogram per 8 hour","ug/kg/(8.h)","(UG/KG)/HR","mass",3.472222222222222e-14,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/h",null,false,"M",null,1,false,false,0,"ug/kg/8hrs; mcg/kg/8hrs; ug/kg/8 hrs; mcg/kg/8 hrs; ug per kg per 8hrs; 8 hrs; mcg per kg per 8hrs; micrograms per kilograms per 8 hours; shift","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per day","ug/kg/d","(UG/KG)/D","mass",1.1574074074074072e-14,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/d",null,false,"M",null,1,false,false,0,"ug/(kg.d); ug/kg/dy; mcg/kg/day; ug per kg per dy; 24 hours; 24hrs; mcg; kilograms; microgram per kilogram and day","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per hour","ug/kg/h","(UG/KG)/HR","mass",2.7777777777777774e-13,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/h",null,false,"M",null,1,false,false,0,"ug/(kg.h); ug/kg/hr; mcg/kg/hr; ug per kg per hr; mcg per kg per hr; kilograms","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per minute","ug/kg/min","(UG/KG)/MIN","mass",1.6666666666666664e-11,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/min",null,false,"M",null,1,false,false,0,"ug/kg/min; ug/kg/min; mcg/kg/min; ug per kg per min; mcg; micrograms per kilograms per minute ","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per liter","ug/L","UG/L","mass",0.001,[-3,0,1,0,0,0,0],"\u03bcg/L",null,false,"M",null,1,false,false,0,"mcg/L; ug per L; mcg; micrograms per liter; litre ","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per liter per 24 hour","ug/L/(24.h)","(UG/L)/HR","mass",1.1574074074074074e-8,[-3,-1,1,0,0,0,0],"(\u03bcg/L)/h",null,false,"M",null,1,false,false,0,"ug/L/24hrs; ug/L/24 hrs; mcg/L/24hrs; ug per L per 24hrs; 24 hrs; day; dy mcg; micrograms per liters per 24 hours; litres","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per square meter","ug/m2","UG/M2","mass",0.000001,[-2,0,1,0,0,0,0],"\u03bcg/(m2)",null,false,"M",null,1,false,false,0,"ug/m^2; ug/sq. m; mcg/m2; mcg/m^2; mcg/sq. m; ug per m2; m^2; sq. meter; mcg; micrograms per square meter; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"microgram per cubic meter","ug/m3","UG/M3","mass",0.000001,[-3,0,1,0,0,0,0],"\u03bcg/(m3)",null,false,"M",null,1,false,false,0,"ug/m^3; ug/cu. m; mcg/m3; mcg/m^3; mcg/cu. m; ug per m3; ug per m^3; ug per cu. m; mcg; micrograms per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per milligram","ug/mg","UG/MG","mass",0.001,[0,0,0,0,0,0,0],"\u03bcg/mg",null,false,"M",null,1,false,false,0,"ug per mg; mcg/mg; mcg per mg; micromilligrams per milligram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per minute","ug/min","UG/MIN","mass",1.6666666666666667e-8,[0,-1,1,0,0,0,0],"\u03bcg/min",null,false,"M",null,1,false,false,0,"ug per min; mcg/min; mcg per min; microminutes per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per milliliter","ug/mL","UG/ML","mass",1,[-3,0,1,0,0,0,0],"\u03bcg/mL",null,false,"M",null,1,false,false,0,"ug per mL; mcg/mL; mcg per mL; micrograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per millimole","ug/mmol","UG/MMOL","mass",1.660540186674939e-27,[0,0,1,0,0,0,0],"\u03bcg/mmol",null,false,"M",null,1,false,false,-1,"ug per mmol; mcg/mmol; mcg per mmol; micrograms per millimole","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"microgram per nanogram","ug/ng","UG/NG","mass",999.9999999999999,[0,0,0,0,0,0,0],"\u03bcg/ng",null,false,"M",null,1,false,false,0,"ug per ng; mcg/ng; mcg per ng; micrograms per nanogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[false,"microkatal","ukat","UKAT","catalytic activity",602213670000000000,[0,-1,0,0,0,0,0],"\u03bckat","chemical",true,null,null,1,false,false,1,"microkatals; ukats","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"microliter","uL","UL","volume",1e-9,[3,0,0,0,0,0,0],"\u03bcL","iso1000",true,null,null,1,false,false,0,"microliters; microlitres; mcl","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"microliter per 2 hour","uL/(2.h)","UL/HR","volume",1.388888888888889e-13,[3,-1,0,0,0,0,0],"\u03bcL/h","iso1000",true,null,null,1,false,false,0,"uL/2hrs; uL/2 hrs; mcg/2hr; mcg per 2hr; uL per 2hr; uL per 2 hrs; microliters per 2 hours; microlitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"microliter per hour","uL/h","UL/HR","volume",2.777777777777778e-13,[3,-1,0,0,0,0,0],"\u03bcL/h","iso1000",true,null,null,1,false,false,0,"uL/hr; mcg/hr; mcg per hr; uL per hr; microliters per hour; microlitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[true,"micrometer","um","UM","length",0.000001,[1,0,0,0,0,0,0],"\u03bcm",null,false,"L",null,1,false,false,0,"micrometers; micrometres; \u03bcm; microns","LOINC","Len","Clinical","Unit of length that is usually used in tests related to the eye",null,null,null,null,false],[true,"microns per second","um/s","UM/S","length",0.000001,[1,-1,0,0,0,0,0],"\u03bcm/s",null,false,"L",null,1,false,false,0,"um/sec; micron/second; microns/second; um per sec; micrometers per second; micrometres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"micromole","umol","UMOL","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"\u03bcmol","si",true,null,null,1,false,false,1,"micromoles; umols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 2 hour","umol/(2.h)","UMOL/HR","amount of substance",83640787500000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/2hrs; umol/2 hrs; umol per 2 hrs; 2hrs; micromoles per 2 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 24 hour","umol/(24.h)","UMOL/HR","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/24hrs; umol/24 hrs; umol per 24 hrs; per 24hrs; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 8 hour","umol/(8.h)","UMOL/HR","amount of substance",20910196875000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/8hr; umol/8 hr; umol per 8 hr; umol per 8hr; umols per 8hr; umol per 8 hours; micromoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per day","umol/d","UMOL/D","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"\u03bcmol/d","si",true,null,null,1,false,false,1,"umol/day; umol per day; umols per day; umol per days; micromoles per days; umol/24hr; umol/24 hr; umol per 24 hr; umol per 24hr; umols per 24hr; umol per 24 hours; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per deciliter","umol/dL","UMOL/DL","amount of substance",6.0221367e+21,[-3,0,0,0,0,0,0],"\u03bcmol/dL","si",true,null,null,1,false,false,1,"micromole/deciliter; micromole/decilitre; umol per dL; micromoles per deciliters; micromole per decilitres","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per gram","umol/g","UMOL/G","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"\u03bcmol/g","si",true,null,null,1,false,false,1,"micromole/gram; umol per g; micromoles per gram","LOINC","SCnt; Ratio","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per hour","umol/h","UMOL/HR","amount of substance",167281575000000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/hr; umol per hr; umol per hour; micromoles per hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per kilogram","umol/kg","UMOL/KG","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"\u03bcmol/kg","si",true,null,null,1,false,false,1,"umol per kg; micromoles per kilogram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter","umol/L","UMOL/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"\u03bcmol/L","si",true,null,null,1,false,false,1,"micromole/liter; micromole/litre; umol per liter; micromoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter per hour","umol/L/h","(UMOL/L)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(\u03bcmol/L)/h","si",true,null,null,1,false,false,1,"umol/liter/hr; umol/litre/hr; umol per L per hr; umol per liter per hour; micromoles per liters per hour; litre","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min; umol/L/h is a derived unit of enzyme units","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milligram","umol/mg","UMOL/MG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"\u03bcmol/mg","si",true,null,null,1,false,false,1,"micromole/milligram; umol per mg; micromoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute","umol/min","UMOL/MIN","amount of substance",10036894500000000,[0,-1,0,0,0,0,0],"\u03bcmol/min","si",true,null,null,1,false,false,1,"micromole/minute; umol per min; micromoles per minute; enzyme units","LOINC","CAct","Clinical","unit for the enzyme unit U = umol/min","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per gram","umol/min/g","(UMOL/MIN)/G","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(\u03bcmol/min)/g","si",true,null,null,1,false,false,1,"umol/min/gm; umol per min per gm; micromoles per minutes per gram; U/g; enzyme units","LOINC","CCnt","Clinical","unit for the enzyme unit U = umol/min. umol/min/g = U/g","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per liter","umol/min/L","(UMOL/MIN)/L","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(\u03bcmol/min)/L","si",true,null,null,1,false,false,1,"umol/min/liter; umol/minute/liter; micromoles per minutes per liter; litre; enzyme units; U/L","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/min/L = U/L","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter","umol/mL","UMOL/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"\u03bcmol/mL","si",true,null,null,1,false,false,1,"umol per mL; micromoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter per minute","umol/mL/min","(UMOL/ML)/MIN","amount of substance",1.00368945e+22,[-3,-1,0,0,0,0,0],"(\u03bcmol/mL)/min","si",true,null,null,1,false,false,1,"umol per mL per min; micromoles per milliliters per minute; millilitres","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/mL/min = U/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per millimole","umol/mmol","UMOL/MMOL","amount of substance",0.001,[0,0,0,0,0,0,0],"\u03bcmol/mmol","si",true,null,null,1,false,false,0,"umol per mmol; micromoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per mole","umol/mol","UMOL/MOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"\u03bcmol/mol","si",true,null,null,1,false,false,0,"umol per mol; micromoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per micromole","umol/umol","UMOL/UMOL","amount of substance",1,[0,0,0,0,0,0,0],"\u03bcmol/\u03bcmol","si",true,null,null,1,false,false,0,"umol per umol; micromoles per micromole","LOINC","Srto; SFr; EntSRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"microOhm","uOhm","UOHM","electric resistance",0.001,[2,-1,1,0,0,-2,0],"\u03bc\u03a9","si",true,null,null,1,false,false,0,"microOhms; \xb5\u03a9","LOINC","","Clinical","unit of electric resistance","V/A","V/A","1",1,false],[true,"microsecond","us","US","time",0.000001,[0,1,0,0,0,0,0],"\u03bcs",null,false,"T",null,1,false,false,0,"microseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"micro enzyme unit per gram","uU/g","UU/G","catalytic activity",10036894500,[0,-1,-1,0,0,0,0],"\u03bcU/g","chemical",true,null,null,1,false,false,1,"uU per gm; micro enzyme units per gram; micro enzymatic activity per mass; enzyme activity","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per liter","uU/L","UU/L","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"\u03bcU/L","chemical",true,null,null,1,false,false,1,"uU per L; micro enzyme units per liter; litre; enzymatic activity per volume; enzyme activity ","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per milliliter","uU/mL","UU/ML","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"\u03bcU/mL","chemical",true,null,null,1,false,false,1,"uU per mL; micro enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"microvolt","uV","UV","electric potential",0.001,[2,-2,1,0,0,-1,0],"\u03bcV","si",true,null,null,1,false,false,0,"microvolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false]]}}')},4147:ye=>{"use strict";ye.exports=JSON.parse('{"name":"matchboxv3","version":"3.1.0","license":"MIT","scripts":{"ng":"ng","start":"ng serve","build":"ng build --configuration production --base-href /matchboxv3/","test":"ng test","test-ci":"ng test --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox --code-coverage","lint":"ng lint","e2e":"ng e2e"},"private":true,"dependencies":{"@angular/animations":"^13.1.1","@angular/cdk":"^13.1.1","@angular/common":"^13.1.1","@angular/compiler":"^13.1.1","@angular/core":"^13.1.1","@angular/forms":"^13.1.1","@angular/material":"^13.1.1","@angular/platform-browser":"^13.1.1","@angular/platform-browser-dynamic":"^13.1.1","@angular/router":"^13.1.1","@ngx-translate/core":"^11.0.1","@ngx-translate/http-loader":"^4.0.0","@types/jasmine":"^3.6.9","@types/pako":"^1.0.3","ace-builds":"^1.4.14","angular-cli-ghpages":"^1.0.0-rc.1","angular-oauth2-oidc":"^13.0.1","antlr4":"^4.7.2","browserify-zlib":"^0.2.0","core-js":"^2.6.2","debug":"^4.3.1","fhir-kit-client":"file:../fhir-kit-client","fhirpath":"^2.10.2","jasmine":"^3.7.0","js-base64":"^3.7.2","js-untar":"^2.0.0","ngx-filesize":"^1.1.4","ngx-highlightjs":"^4.1.3","pako":"^2.0.4","ramda":"^0.26.1","rxjs":"^6.6.7","tsickle":"^0.34.0","tslib":"^2.0.0","uuid":"^8.3.2","yarn":"^1.22.17","zone.js":"^0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"^13.1.2","@angular-eslint/builder":"13.0.0-alpha.1","@angular-eslint/eslint-plugin":"13.0.0-alpha.1","@angular-eslint/eslint-plugin-template":"13.0.0-alpha.1","@angular-eslint/schematics":"13.0.0-alpha.1","@angular-eslint/template-parser":"13.0.0-alpha.1","@angular/cli":"^13.1.2","@angular/compiler-cli":"^13.1.1","@angular/language-service":"^13.1.1","@types/debug":"^4.1.5","@types/node":"^10.12.18","@types/ramda":"^0.26.44","@typescript-eslint/eslint-plugin":"5.3.0","@typescript-eslint/parser":"5.3.0","codelyzer":"^6.0.0","eslint":"^8.2.0","husky":"^1.3.1","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","json-patch":"^0.7.0","karma":"~6.3.1","karma-chrome-launcher":"~3.1.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","prettier":"2.2.1","pretty-quick":"^1.10.0","protractor":"~7.0.0","ts-node":"~7.0.1","tslint":"~6.1.0","typescript":"~4.5.4"},"browser":{"fs":false,"os":false,"path":false,"zlib":false},"prettier":{"singleQuote":true,"trailingComma":"es5"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}}}')}},ye=>{ye(ye.s=4431)}]); \ No newline at end of file diff --git a/pom.xml b/pom.xml index 39ea7bfd5af..5761e730cb3 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ matchbox - 3.2.0-SNAPSHOT + 3.2.0 pom matchbox